I want to make an application to visit resources on Samba server. We can suppose that the server and Android device are in a LAN. I cache image files and text files before displaying them. But I think downloading videos to local storage isn't a good idea. Is there any way to play streaming media via SMB protocol? Please give me some tips.
Related
I've a web app which uses HTML5 player to play audio mp3 files hosted on the server. I want to use PhoneGap to convert it to iPhone/Android apps. I want users to cache the audio files on the device. It would be really nice if I can somehow encode it and save it on the device rather than flat mp3 files. Just wondering that how can I do on iPhone/Android using PhoneGap.
I have an app which is using android webview .i am able to stream video in webview .i want know how can i allow users to to save videos automatically in thier internal storage which they stream in webview on website ? Thanks in advance
Most videos streaming to a browser (PC or mobile) will not allow download as the owner of the video may not want to allow it be saved and copied etc.
Simple http progressive download may allow you to save the video in a regular browser by simply right clicking on it.
DRM protected video will generally use a video pipeline (a sort of 'path' through your device) that does not allow an application of any kind access the raw video - this is again is to avoid people making unauthorised copies.
If you think the video in your case is allowed to be copied then you may find it easier to write some functionality to act as the streaming client and save the file locally. You could also pass the received stream along to the media player or to a webview if you wanted to play the file in parallel to saving it.
We want to play m3u8 with ts files stored locally on SD card in Android 4.0 and above devices.
I tried using video TAG inside HTML residing locally on the SD card and android native media player.
Both the codes are failing with the error. The same set of ts and m3u8 files are working fine when played from online when served from a webserver connected through http.
Can we play m3u8 using native support for files stored offline or do we need to use 3rd party libraries. I searched in internet and didn’t find article about not supporting the same.
Any help or recommendation would help my work.
Thanks a lot
Issue Solved
we used nano http server to serve m3u8 file to with all videos parts. Very simple and easy way to play m3u8 video file.
i want my android app to stream video. I have a website stored in a web server. The question is: where should i put the video files? Can i put them in my website's root directory, or do i need a Streaming Server too? I hope this question is not out of topic.
Thanks in advance!!
If they are MP4s marked as "safe for streaming" (MOOV atom is before the first MDAT atom, such as via MP4Box -hint), you can host them on any Web server.
If found many tips about how to stream from classic url link, but nothing about ftp.
Is it the same way to proced ?
Thanks you.
AL.
Android's media framework only supports HTTP and RTSP for streaming. You will need to download your file and play it back, or use some alternative URL that offers HTTP or RTSP for the media file.
If you are looking for an app in android, there is a player for android which will allow streaming from a ftp server. it's called FIPE Video Player. It's free, neat and stream in high quality.
Update: another brilliant app (again if you are looking for an app) I recommend is ES File Explore, which also allows streaming from ftp server instead of downloading locally and then playing.
Just use VLC for Android and add your FTP as a source.
See : https://play.google.com/store/apps/details?id=org.videolan.vlc&hl=fr&gl=US