Results 1 to 9 of 9

Thread: Streaming in Android Devices using JW player

  1. #1
    Join Date
    Jan 2013
    Posts
    27

    Default Streaming in Android Devices using JW player

    Hi

    We are using Jw Player to play videos streaming from wowza

    Here is the sample code which we are using for both video on demand and live streaming.

    jwplayer("player").setup({
    'id': 'playerID',
    'width': '600',
    'height': '350',
    'provider': 'rtmp',
    'streamer': 'rtmp://[Ip address]:80/live',
    'file': 'test.sdp',
    sources: [{
    file: "rtmp://[Ip address]:80/live/test.sdp"
    },{
    file: "http://[Ip address]:80/live/test.sdp/playlist.m3u8",
    provider: 'video'
    }]
    });


    This works fine for streaming videos on PC and ios devices. But we are not able to stream videos through android devices. Should we change the streaming type in order to support android devices?
    Can you point me to a similar code snippet to support android, if any?

    Thanks

  2. #2
    Join Date
    Sep 2011
    Posts
    1,933

    Default

    Hi
    Recent android devices do support HLS which means they should be able to play the stream through the Jw Player.
    Most android devices do support rtsp though so an rtsp link to the stream for the devices that do not support HLS should work using the android on-board player.

    Jason

  3. #3
    Join Date
    Jan 2013
    Posts
    27

    Default

    We are using samsung s3. Looks like it is not working with the above code.

  4. #4
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Make sure that model supports Flash. Is it this model? http://wireless.amazon.com/Samsung-G.../dp/B00894K248

    If it supports Flash, it might only support Flash HTTP (sanjose) streaming, which is not supported as far as I know at present with JW Player. Try sanjose streaming with the Wowza /examples/LiveVideoStreaming/FlashHTTPlayer with playback URL:

    http://[wowza-address]:80/live/test.sdp/manifest.f4m

    Make sure you add "sanjosestreamingpacketizer" to the /conf/live/Application.xml /LiveStreamPacketizers

    Richard

  5. #5
    Join Date
    Jan 2013
    Posts
    27

    Default

    I think the model mentioned there is correct. The version of android in the mobile is 4.2. Is there anything that we could do to play videos in android 4.2 using jw player?

  6. #6

    Default

    streaming to a web-based player in Android 4.1+ is unfortunately a huge pain...

    You essentially have 3 options:

    1) Provide an rtsp link and let the users use a 3rd-party player like MXPlayer
    2) Let users install Flash (from an apk, as it's no longer officially supported) and they can use jwplayer (though it's far from ideal, on some devices I can't go fullscreen, for example)
    3) Make your own app using OSMF as the player platform, this will take RTMP or HDS (sanjose)

  7. #7
    Join Date
    Jan 2013
    Posts
    27

    Default

    Thanks for your inputs..

    Actually we tries the second option, we installed flash on the android device and used jwplayer !

    With the following code

    jwplayer("player").setup({
    'id': 'playerID',
    'width': '600',
    'height': '350',
    'provider': 'rtmp',
    'streamer': 'rtmp://[Ip address]:80/live',
    'file': 'test.sdp',
    sources: [{
    file: "rtmp://[Ip address]:80/live/test.sdp"
    },{
    file: "http://[Ip address]:80/live/test.sdp/manifest.f4m",
    provider: 'video'
    }]
    });

    It did not work. let me know if i have to make any changes to the above code. I will try the remaining options mentioned above and get back.
    Last edited by pnethaga; 04-15-2013 at 01:51 AM.

  8. #8
    Join Date
    Jan 2013
    Posts
    27

    Default

    I tried playing the rtsp stream present in the following link on android
    http://www.wowza.com/html/mobile.html

    It did not work. Does android support rtsp streams?

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

    Default

    The rtsp url on that page usually works for most Android devices.
    There may be a few devices where rtsp doesn't work. The SIII should
    work though.

    Longtail's web site (JW PLayer) has some information on the pain of implementing streaming
    for Android devices, mostly with reference to HLS:

    http://www.longtailvideo.com/blog/31...ng-on-android/

    The bottom of that page has some information on Workarounds for rtsp fallback.

    See if that helps.

    Daren

Similar Threads

  1. Live streaming to Android devices not working (all other browsers are great)
    By stevefink in forum Live Streaming and Encoder Discussion
    Replies: 3
    Last Post: 10-08-2013, 11:24 AM
  2. Replies: 2
    Last Post: 09-13-2012, 08:31 AM
  3. Live Streaming to IOS and Android Devices Latency
    By GameDayXtra in forum Performance Tuning Discussion
    Replies: 2
    Last Post: 06-20-2012, 11:53 AM
  4. Streaming to different devices through one player
    By tekmedia in forum General Forum
    Replies: 3
    Last Post: 03-21-2012, 05:02 AM
  5. Streaming failed (on some Android devices)
    By dannyhinhk in forum Live Streaming and Encoder Discussion
    Replies: 2
    Last Post: 03-15-2012, 06:37 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
  •