Results 1 to 9 of 9

Thread: HLS Streaming (m3u8) to Android (Browser)

  1. #1
    Join Date
    Feb 2014
    Posts
    2

    Default HLS Streaming (m3u8) to Android (Browser)

    Hello,

    I am currently trying to successfully stream HLS to Android devices. I want the video to be played within a browser on an 4.3+ Android device.
    So far I was out of luck trying to get our video files (.m3u8) to run and came here for help since we use Wowza to stream our videos.

    Any suggestions and help is greatly appreciated.

  2. #2
    Join Date
    May 2013
    Posts
    681

    Default

    In your attempts have you had any errors or log statements associated with your playback? Any errors? Have you tried rtsp?

  3. #3

    Default

    It is possible that this device will support HTML 5 <video> tag, but I do not have a device to test.

    The HTML5 video tag can be directly embedded in an HTML page for delivery with code that like this:
    <html>
    <head> 
     <title>HTML 5 Test</title> 
    </head> 
    <body> 
    <video width="100%" height="100%" controls="controls" src="http://[wowza-ip-address]:1935/live/myStream/playlist.m3u8">
    </video> 
    </body> 
    </html>
    Salvadore

  4. #4
    Join Date
    Feb 2014
    Posts
    2

    Default

    Thank you for the responses.

    I tried your method salvadore, and now the page shows me the standard Android video "frame" (previously it showed nothing but a blank black rectangle). But I am still not able to start the video.
    Any suggestions?

    Edit: It works! It was a simple typo in the url to the video. Thanks a lot!
    Last edited by CaptainPayne; 02-20-2014 at 12:49 AM.

  5. #5
    Join Date
    Apr 2014
    Posts
    2

    Default

    I have a m3u8 file, and it works on ios device, but i have no ideal how to play it on Android (Browser), can you give me some strategy. ithinks

  6. #6
    Join Date
    Jun 2011
    Posts
    1,047

    Default

    Hi,
    You need to provide a link (href) containing the playback URL on a web page or embed the same on a web page using the video tag.

    Daren

  7. #7

    Default

    Quote Originally Posted by zapperstab View Post
    I have a m3u8 file, and it works on ios device, but i have no ideal how to play it on Android (Browser), can you give me some strategy. ithinks
    I had a problem like this as well. My streams worked on iOS but I got a "Can't play video" error on Android. Turns out they were using high profile H264 and needed to be baseline. Check out this page maybe it'll help.

    http://developer.android.com/guide/a...a-formats.html

  8. #8
    Join Date
    Apr 2014
    Posts
    2

    Default

    Quote Originally Posted by thekendog View Post
    I had a problem like this as well. My streams worked on iOS but I got a "Can't play video" error on Android. Turns out they were using high profile H264 and needed to be baseline. Check out this page maybe it'll help.

    http://developer.android.com/guide/a...a-formats.html
    thanks, I got a demo: http://developer.longtailvideo.com/p...ples/m3u8.html, it works fine on my android device, but it just play few seconds when I update the url:http://live.3gv.ifeng.com/live/zixun.m3u8.

  9. #9
    Join Date
    Jun 2011
    Posts
    1,047

    Default

    Hi,
    It looks like your stream is H.264 main profile. My 4.2.2 Android tab was able to play it, but some other devices probably can't.
    Try encoding with H.264 baseline profile instead, as suggested by thekendog.

    Daren

Similar Threads

  1. HLS streaming of mp3 file to Android ICS using JW Player 5.9
    By dulmandakh in forum Media Players and Devices Discussion
    Replies: 3
    Last Post: 03-24-2015, 04:29 PM
  2. Replies: 0
    Last Post: 03-28-2014, 04:52 PM
  3. Replies: 2
    Last Post: 10-20-2013, 07:10 PM
  4. Live streaming to an Android browser?
    By elcapitan26 in forum General Forum
    Replies: 1
    Last Post: 11-10-2011, 07:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •