I tried using Dropbox links in my cache manifest, but it didn't work.
I tried NOT using cache manifest and simply:
<audio src="dropbox url" autoplay="true"></audio>
It doesn't play the sound either. If I point src to a file within the project or on the hard disk, it works. Are there any free services for hosting such things?
I don't know of any free and legal services for hosting audio content. I'd recommend looking into cloud-based storage options (AWS S3, Rackspace Cloud Files, et cetera). They typically have a cost based on the amount of files you have stored and the amount of data transfer per month.
You should be able to use external URLs in your cache manifest. However, it may be possible the URL you're trying to use has response headers that prevent it from being used in such a way.
You mean something simple and FREE that provides 100gb storage and 100gb traffic with ftp-access?
See sites like http://www.100gb.co/. There are a lot more of those kind of services, just USE GOOGLE! Think about it.. what kind of $%^&* would pay anno 2012 ?!?
You could also use services like sound-cloud. The main difference is that you don't link to the bare *.mp3 file anymore, but to a flash file.
Warning: just make sure you legally own the stuff you post. For instance, when I rip the albums from our band and post them online, I can do so, I co-wrote/own the material. It's just like taping: mp3 can never sound as good as the real full cd. Impossible.
Good Luck!!
Related
I am developing a HTML5 game, and would like to share it with file base.
So my friends can play it with a local html file (file://xxx.html).
However, most of the storage are based on the domain, such as localStorage.
I would like to know if there is any alternative to persist the game-progress-save under file-protocol?
I searched that windows.name may be the solution, but it can not store data after closing the browser.
Javascript/HTML Storage Options Under File Protocol (file://)
I also found the FileSystem API (Window.requestFileSystem), but seems only Chrome has implemented it.
Any suggestion?
You can:
Bundle it by using Cordova or Electron
Use Node.js + lite-server
Use some free hosting service, my prefered solution would be Firebase as you would get a free yourGame.web.app domain, certificate and storage. You could set it up in less than an hour. To be honest, this is what I would do as it would be easiest for your friends to access the game too.
We are currently looking at porting a enterprise silverlight application over to html5. The major roadblock that we have hit is the ability to open files from the user's local disk. Currently they have a document library which just links to files on their computer that they can open from within the app and view or print out. All that I read is that you can only access the local sandbox of the web app with the html5 file api's. We want to load these files from code.
Does anyone know of any workarounds to this?
Thanks
There is no way for html5 to access local file without user selection. But FSO: FileSystemObject works for IE and MAYBE could be regarded as a work around. But still there are some requirements to meet.
It is possible to use chrome's filesystem API to access files on a users local filesytem. So you'd have to be willing to make this a chrome only application.
Using java you can create a "Signed" applet which has access to the local filesystem. (if the applet is signed you can request filesystm permissions)
then there is a tutorial for accessing methods of your java code directly from javascript here: http://docs.oracle.com/javase/tutorial/deployment/applet/invokingAppletMethodsFromJavaScript.html
you should be able to perform something similar from silverlight.
There is no workaround in pure HTML5/Javascript. You need the use of plugins, such as Java or Silverlight (maybe you shouldn't port it after all). As for workarounds, HTML5 gives you an easy way drag and drop multiple files that you could transfer on the server and then display back to your users. Another workaround would be to install a custom agent (a software with only a tray icon) that would send the information about the current user "document library" to server and then again, you could display it back to the user.
Note: I've heard somewhere that browsers will eventually stop supporting plugins. http://www.howtogeek.com/179213/why-browser-plug-ins-are-going-away-and-whats-replacing-them/
Ya, I agree with Markain. However, if you were to limit your audience solely to chrome users, I daresay, you would most likely use some of your users. If Huazhihao is right, then your number of leaving customers should decrease but users who regularly use firefox won't be happy. Overall, I think that this will not work. Otherwise, there would be too many websites that trashed your hard driver (or at least wherever you have the rights to edit/delete files). I think it would be best if your product was setup to synchronize the file whenever an internet connection was detected and a change was made to the file. That way the user would not need to visit the website whenever the file was uploaded. If this is some kind of an error file, then it would be most beneficial if you were to make a link in the application that when clicked, would upload the file to the website and the website were to do whatever was necessary. If this is a purely online thing, then I don't see what business you would have looking through other peoples' files =-). Hope I helped!
I want to grant access to audio files for some group of people - now in the browser but in future in Ionic / Cordova app as well. But Access to them will be after authentication and I want to protect against downloading them.
What will be the best way to do it?
put files to some service for audio files - similar to youtube?
streaming from server - I use PHP?
use flash app?
Thanks for any solutions,
Similarly, to video files you can't prevent someone form downloading a file if you want to stream it to their device.
Ultimately, the file has to get to the device and there are many ways to store it even if you try to make it hard.
The usual approach to take is to DRM protect the files - this is commonly used by the paid music services.
Audio DRM is a little different from video, because most devices do not have a secure media pipeline for audio, which means it is a little less secure.
Ultimately, all these measures are hurdles and detergents - it generally ends up being as much a business solution as anything. If the user perceives that the cost is not too high for the service, or is low enough not to bother circumventing, then they are more likely to use it legitimately.
I want to store audio files of a podcast in my Dropbox for showcasing them on a smaller static Website.
So far I tried using public links to each file, but reach the bandwidth limit of these quite fast, because everytime somebody reloads the page that takes around 500 MB.
I thought about using the Dropbox API for accessing the files, but are there the same limits for the API?
Maybe no, you can try contacting their support team.
Dropbox links have bandwidth limits. You can find more information here:
https://www.dropbox.com/help/4204
This does not apply to authenticated (non-link) access though. For example, downloading files via dropbox.com or via the API /2/files/download. That probably isn't a great solution though, as it requires an access token. You may be better served by a normal CDN.
Please hear me out before you start crying security issues.
This is for an intranet application, hence I have full range to install any plugins or change any security permissions to suit.
What I want is for them to go to a webpage and click a link to download a file, such as a Word Document. This gets transferred to local storage of some kind (sandboxed if need be) and then is opened in word as a regular file.
When they click save, JavaScript or something will pickup the file is saved or the program is no longer accessing it and can be actioned upon, such as uploading back up to the server.
Is there any way to do this. I have looked at IndexedDb, WebStorage, HTML5 FileSystem API but I am new to all and don't see a way to do this.
I am open to coding any needed plugins as long as you don't mention Flash. The main issue I am coming across is opening a file downloaded into some form of local browser and then opening it via a desktop application, e.g. Word.
Any help, greatly appreciated.
After much research the only way to do it is with a plugin. IndexedDB, FileSystem API or WebStorage can not access the local file system. Which is good.
Silverlight is a good option for intranet and .NET, which is what I have chosen to go with.
Silverlight 5 in full permissions with a file watcher. The file watcher can be accomplished with this method: Is there an alternative to accomplishing what the FileSystemWatcher does in Silverlight?