How to play video from ftp streaming file? - android

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

Related

Error in MPEG-DASH with Azure Media Services

I am trying to implement Video on Demand using Azure Media Services on Android.
I have uploaded the video, encoded it to Multi-Bitrate MP4 and then added AES encryption and published it.
I received this MPEG-DASH Url: http://prepladder-inct.streaming.media.azure.net/xxxx-xxxx-xxxx-xxxx-xxxxxxxx/sample-video.ism/manifest(format=mpd-time-csf)
But i am unable to play this video on any MPEG-DASH player (Android or web)
I am even unable to play this video on Azure dash player link: http://dashplayer.azurewebsites.net/
When i enter the stream url, the player is able to show the duration of the video but does not play.
On ExoPlayer on Android, i am able to play all MPEG-DASH streams available online for testing purpose.
Also, i am able to play HLS stream provided by Azure for the same media on ExoPlayer and on iOS.
I have not added any token authorization or DRM during video encryption.
I am missing something? Please help.
The problem is likely that your video file name has unsupported characters. The issue is documented here, where we point out that certain characters should not be used. Try renaming the source video to, say, GM_1st_acid_fast_stain.mp4, upload it to a new Asset, encode, and then create the streaming URL.
For FairPlay/HLS, it is critical to provide the Application Cert (public key only) to the player. Apple's recommended way is to host this App Cert on a web server and pass the URL to player.
SPC/CKC negotiation is performed inside the player.
I would suggest to use this test/diag tool http://aka.ms/amtest which is equipped to support all 3 DRMs (FairPlay, Widevine, PlayReady) and AES-128. If you expand "player_settings" you will see an entry called "FPS AC Path" which is where you paste in your App Cert URL. Also put in "FairPlay" under protectionInfo.type. Of course you need to run the test in Safari on macOS.
Hope this helps.
William

In Android, possible to save video directly in Amazon server while recording

While uploading the videos/audio files from my application,mostly i followed the following ways,
Record the file (video/audio)
Save into Internal/External Storage (inside application folder)
Then upload in server.
here my question is, whether its possible to save directly in the server (Amazon s3 or others). Why i'm asking this, while i using Periscope application they streaming the video as well as stored the video in their server.
Checkout LibStreaming : https://github.com/fyhertz/libstreaming or some of the suggestion in : Streaming video from Android camera to server
You can see this github or use ffmpeg
I think that it all depends on the importance of your video. When you use your original approach you guarantee that you have the full video in hand (device) and you can make sure it will be fully uploaded to your server. On the other hand, streaming it directly to the server can make you lose frames (connectivity hiccups and such) and hurt the video. I'm sure that streaming is done using UDP which makes loosing packages a really good option.

What is the best audio file format to stream on both iPhone and Android

My client do have 10000+ audio songs on a server, he does want to develop an iPhone and Android app to play those songs. He is willing to convert the audio files for any given format.
So what is the best format store those files on the server to consume in iOS and Android ?
OGG is the best I've used so far on both Android and iOS.
Here's the list of libraries for this for other platforms as well.
The best format used by many well known streaming sites like SoundCloud is:
-> 128kbps transcoded mp3
Everything you need to stream is preferred to be in 128kbps transcoded mp3.
Hope that help somebody.

Play .ts video file on Android?

I am pretty new at streaming video, so please bear with me. :)
I am trying to port an m3u8 stream over from iPhone to Android. Looking in the m3u8 feed, I found some .ts files. From what I can tell, .ts files are, themselves, wrappers that contain the video stream (Elementary Stream).
Is it possible to play a .ts file in Android? (The docs only list 3gp and mp4 as supported formats.)
Is there a way to extract the Elementary Stream and just process the video feed? If that is in 3gp or mp4, I should be ok.
Will Stagefright handle .ts? Is Stagefright even available? I read that there are/were some problems with it.
(As a further caveat, I am not getting much help from my server guys. They are pushing for a Flash player solution, including a proprietary player. They will not provide me with a 3gp or an mp4 feed, but I'm hoping I can find that in the .ts file.)
I'm open to other suggestions. Thanks for your patience with this newbie. :)
There is a standard for that called HTTP Live Streaming. Android 3.0 supports this protocol to some extent which means you can pass the URL of the m3u8 playlist to the MediaPlayer and the player should be able to stream it over HTTP. Stagefright is bundled with Android 3.0.
You can browse its source code here.
Also, this thread might interest you: it summarizes support for HTTP Live Streaming.
Android stagefright in Gingerbread and prior versions does not support playback of .ts (transport stream) or elementary stream. As you have rightly pointed out, it only supports MP4/3GP/MP3 file formats.
You can play .ts video file in android by using NDK based project. Dolphine player is best open source player for android and also supports various formats of video.
You got the .ts link from m3u file. Now you can fetch binary data from .ts file and store this binary data in file, then play this file by using video player.

RTP Client Application on Android Mobile Device

Hey folks,i am developing a RTP client on an Android device which can play streaming videos from a server.
I am confused regarding how should i start about?
i am thinking of developing a web app, using HTML,CSS and Javascript, which can later be wrapped in Android.is this approach correct? does javascript support real time media player?
please guide me, i am a fresher and completely clueless..:(
You should play your video with MediaPlayer. Of course you can prepare dedicated website that lists available streams and wrap it up into WebView. Having this stream list in WebView you can write interface that will bind javascript on your webpage with proper interface in your Android code. Check out this section of Android Dev Guide:
And here is a list of supported media formats
I successfully played rtsp stream on Android 2.2 but I'm not sure if it's supported on previous versions.
To sum up.
Prepare website with javascript code and streams list
Create layout with webview with javascript enabled for example:
Webview wv = (WebView) findViewById(R.id.WebView01);
wv.setJavaScriptEnabled(true);
Add class that will be invoked by javascript like in the Dev Guide above:
wv.addJavascriptInterface(new JavaScriptInterface(this), "Android");`
Play stream with MediaPlayer
Hope that helps.
I guess you may setup a streaming media server(live555, darwin stream server) to publish media file in rtsp protocol, and use VideoView on android to play it
If you create normal android app then MediaPlayer class will handle everything for you. Just feed it with rtp stream url, that is it.

Categories

Resources