I'm trying to stream .m3u8 file using media player for Android. But it seems the media player failed to fetch the playlist:
Error log:
08-28 13:40:48.358: ERROR/LiveSession(8804): unable to fetch master playlist 'http://192.168.0.3:49152/live-streaming/192.168.0.5/6344.m3u8'.
The most frustrated things so far is I did this once and it worked fine, Once I tried for second time, blank screen just appeared.
http://vov.io/vitamio/ This library supports m3u8. see if it works a little better.
Maybe a long shot, but have you tried httplive://192.168.0.3:49152/live-streaming/192.168.0.5/6344.m3u8 ?
Using that in html5 video elements works in Android 2.3.5 for me.
I would suggest ExoMedia, a striped down easier-to-use version of Google's own ExoPlayer. Streams m3u8 well, easy as:
emVideoView.setVideoURI(Uri.parse("https://somewebsite.com/somepath/somelink.m3u8"));
Related
I used libvlc in my android application and I got it to work. The problem now is, it keeps giving me an error of:
core video output: picture is too late to be displayed (missing 29787 ms)
Using the VLC player, I don't get any lags. What seems to be the problem?
Are you using any LibVLC options? If not, you should. Here is what VLC for Android uses https://github.com/videolan/vlc-android/blob/master/application/resources/src/main/java/org/videolan/resources/VLCOptions.kt
My guess is you have not properly configured hardware decoding, which leads to the video output displaying the picture later than it should.
Has anyone been able to successfully play a video using Android Things on a Raspberry Pi? If so was there anything special you had to do to get it to work? If not does any one know why it isn't working?
I made a simple video player that plays a local video from disk. The app runs fine on a phone but I get an error dialog on the Pi saying "Can't play this video".
One Thing I have already ran into but I think I solved was there are no content providers in Android Things, so instead of using a uri for the video source I gave it a file directly like so.
EDIT: Code edit
VideoView videoPanel;
.
.
.
videoPanel.SetVideoURI(Android.Net.Uri.FromFile(new Java.IO.File("/sdcard/Movies/videoFile.mp4")));
I was using 0.5.1-devpreview with raspberry pi 3, and tried to use exoplayer to play mp4. Audio works but not video (just black screen). Same result for youtube iframe sdk (black screen with only audio playing).
I was able to get it to work for my project using setVideoPath instead of SetVideoURI. So your code would be
File file = new Java.IO.File("/sdcard/Movies/videoFile.mp4");
videoPanel.setVideoPath(file.getAbsolutePath());
Try adding this
android:hardwareAccelerated="true"
to your activity in the manifest.
Anyone would have a recomendation on how to improve HLS on Android when running XBMC
I read that native HLS on Android is pretty bad but no recomemnded solution on how to improve.
Not even sure XBMC uses the native HLS decoding
Its just impossible to watch a video..
Cache some of the video, plays, stops to cache, plays,....
Would really apreciate.
I use one of the Android Stick. It works great for everything except when videos are HLS..
(Also use XBMC on tablet, phone,..)
You can use Vitamio for Android to run HLS.
I use it and it works perfectly.
I am trying to create an Android App to stream live/archived videos from my church's website.
However, I ran into a problem because all of the streams are giving .flv (flash) videos and or flash players...
I have succesfully been able to load .3gp videos in a VideoView but because Android doesn't support flash natively I tried to open the videos via the WebView.
This didn't work. At least, not for the links that I am working with. However, I can open youtube.com and click on any video to play it - but I can't play any of the streams from the church website.
My question:
Is there any way for me to make this work?
I have access to
1) rtsp stream of .f4v
2) http stream of .m3u8
3) rtmp stream of .fv4
I have spent 2 days searching the web for ideas or fixes and everything I find doesn't seem
to work with my particular case.
It seems to me that the only option is to have the church stream direct .3gp/mp4 files that I can access.
Otherwise, I have no clue how to make .f4v files work. No luck with the WebViews yet..
Do any of you have any suggestions for me?
P.S. I will also have to create an iOS app so looking for a solution that will work on
both platforms.
Thanks for your time!
To answer my own question:
It seems that the android emulator cannot play flash/m3u8 files.
However, my nexus 7 does just fine with both VideoView and WebView!
Cool library I found is Vitamio that is supposed to solve the problem I had.
I didn't use it however.
I am new to android and trying to streaming video from my server.
When i run the application it gives Error "sorry,this video is not valid for streaming to this Device.." than i download and push to sdcard of my device(samsung Galaxy 5)this time video is playing.... i convert this video by SOTHINK VIDEO CONVERTER..
Any Help??
Thanks..
We ran into exactly the same problem, and I found a solution at this link:
http://code.google.com/p/android/issues/detail?id=9044
In short, if you have access to a Mac, you can encode the videos using HandBrake. Be sure to check the "Web optimized" checkbox. I'm encoding as format:MP4 file, Video Codec: H.264. After I did this and uploaded I was able to view the videos (or at least listen to them) in a 2.1 simulator, which had been giving that exact warning message before. I have not been able to get a hold of an actual 2.1 device, but I suspect it will work. When I confirm that I'll check back in here to let you know.
It seems that you are talking about sothink video encoder engine. Actually this program only supports the apple devices in ios system, for example, iphone, ipad and ipod.
Here is the official product homepage of sothink video encoder engine, and hope it helps!
http://www.sothinkmedia.com/flash-video-encoder-command-line/
The only issue for error "sorry,this video is not valid for streaming to this Device.." is that there is some problem in video format. Just correct the format/codec of mp4 and then it would run gracfully.