I use my application to upload the video in server and it was stored in appropriate folder in server, i need to show the list of video from remote server folder and allow the user to streaming the video.Is there any sample is there?
I feel you can have a script running on server which tells you about which directory has what videos, and returns their URLs too.
Later, you can access those URLs to play the videos
You can use commons-net-2.2-bin library to create a FTP connection to your server and make a query of listing . files from the folder.
Related
Is there any way possible to get a direct URL to download the media file which I have uploaded onto the Firebase storage using my Android app?.
Scenario 1 :- I am basically looking for a http or a https URL which I can paste it in the browser and the image can be downloaded.
Scenario 2:- I can get a public url so that I can write a download manager in my web app which can download the images from these urls.
Also, If possible I want it to be completely independent of any reference of firebase database.
Thanks in advance.
When you upload the file, a URL for the stored file is available in the returned UploadTask.TaskSnapshot. You can also obtain the URL from a StorageReference using getDownLoadUrl().
An example can be found in the Firebase Quickstart project.
You can use Fibrebase SDK on your server-side to download any stored file to serve it when a client requests it by name for example.
I'd like to upload images to my own hosting, I don't want to use upload services . Please can you suggest any library to be implemented.
You can try using a FTP Client (like this one )to upload directly to your hosting, but anyway you'll need to send the file name and the location of the file via php...
I’m making an Android app that lets users store a bunch of video files on disk after retrieving them from an RSS feed. The app will run in a web view. I’m fetching the videos with XHR requests.
How can I send a message from javascript to java containing the data for the downloaded files?
I mean … I could store the files within indexdb within the web view browser. However, browser cache APIs like app cache and indexdb have strict quotas. I don’t think I can store many video files within those quotas.
And it also looks like the quota updater API is deprecated, so I can’t alter web storage quotas: http://developer.android.com/reference/android/webkit/WebStorage.QuotaUpdater.html
It seems like my only alternative is to send file data from the web view as a message for java code to handle (and store the file on local disk). Later, I can have java tell the web view that it had previously stored data. How can I send such a message using the android API?
I’m fetching the videos with XHR requests
Off the cuff, I wouldn't. Usually video files are large, and if you really want them downloaded, you can't just do that from an activity, whether powered by a WebView or not.
It seems like my only alternative is to send file data from the web view as a message for java code to handle (and store the file on local disk). Later, I can have java tell the web view that it had previously stored data. How can I send such a message using the android API?
Use addJavascriptInterface() on the WebView to inject a Java object into the JavaScript environment of the WebView. On that Java object, have a method that will download the video file, using a Service (perhaps an IntentService) or DownloadManager, given the URL to the file. Not only will this solve your issue of how to get the file stored locally on the device, but it is more likely that the video will actually successfully download if the user navigates away from your app while the download is going on.
I am doing multimedia application, now i am concentrating on to connect Apache web server. I already uploaded some media files in server. I want to access all media file from the server to android device(to client). How to access data from server?
Get the URLs of those files on the server, and use that URL. But this way, the files will be public.
For other security reasons, you can have a server side script, which can deliver your audio video content by setting correct MIME type, and your Android app can request that script for files .
You can use CouchDB or other NoSQL solutions to access data from your mobile application - http://www.infoq.com/news/2010/08/CouchDB-Android
I am doing multimedia application, Now i am concentrating on connecting my application to server. i want to store all my multimedia files(music and videos) into server. whenever my device is connected to WIFI i want to access all my multimedia files from server. In short i want to access my server through WIFI. can anyone pls guide me how to access this process, also give some useful links to know this process in details.
Hi
you need to make an http request to the server and then upload the data to it. for this simply create servlets on the server which can read and store the files. whereas on the client part follow the following APIs. httpclient.. do remember to use POST/GET methods for file uploads etc.Hope this helps