Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: RTSP issues on Android 4.x series

  1. #1

    Default RTSP issues on Android 4.x series

    Hi.

    Android 4.x does not stream RTSP content from Wowza, while 2.x and VLC work just fine.

    Any idea what changed in Android 4.x, and what can be done to resolve it?

    Thanks.
    Last edited by SyberNow; 02-18-2013 at 01:00 AM.

  2. #2
    Join Date
    Dec 2007
    Posts
    22,013

    Default

    It is more likely that UDP ports are blocked. If you see two sets of audio and info info blocks in VLC Tools > Codec info, that indicates that UDP ports are blocked or not mapped to your server, in which case VLC fails-over to TCP. However Android devices typically cannot do that.

    Take a look at these guides:

    http://www.wowza.com/forums/content....-RTP-streaming

    http://www.wowza.com/forums/content....P-RTP-playback

    Richard

  3. #3

    Default

    Hi.

    VLC indeed works only in RTSP-over-TCP mode, but it never impacted Android clients before, on versions 2.x...

    Anyhow, I verified and we have the ports 6970-9999 opened on the server side. Should we open or change anything else?

    Thanks.

  4. #4
    Join Date
    Dec 2007
    Posts
    22,013

    Default

    Do you still see VLC failing-over like that?

    Another indicator is in the Wowza logs, when you try to playback on the Android if you see RTPTransport.bind messages followed immediately by RTPTransport.unbind messages for the same port.

    You also have to map UDP ports in your network to the Wowza server, for example port-forwarding in a home router

    Richard

  5. #5

    Default

    Android 3.x+ supports HLS. If latency is not an issue, simply use that?

    Just do some useragent detection and switch playback between rtsp/HLS based on Android version from useragent.

  6. #6
    Join Date
    Jul 2009
    Posts
    135

    Default

    Just to add, Android's HLS support is still very buggy:
    http://www.longtailvideo.com/blog/31...ing-on-android

    We embed with JW 6 and just do something like this:
    <div id="myElement">
        <a href="rtsp://[wowza-address]:1935/vod/_definst_/mp4:myvideos/sample.mp4">Watch this stream over RTSP</a>
    </div> 
    
    jwplayer("myElement").setup({
        file: "http://[wowza-ip-address]/vod/_definst_/mp4:myvideos/sample.mp4/playlist.m3u8",
        fallback: false
    });
    That will give them the same thing as other users (HLS, or RTMP if you prefer), and if that's not supported, it should just display the RTSP link they can click on manually.

    I'd go one step further and give them that same RTSP link outside the JW Player, in case Flash or HLS support is detected but just not working right:
    <script type="text/javascript" language="JavaScript">
    if ( navigator.userAgent.indexOf('Android') >= 0) ) {
      document.write('<a href="rtsp://[wowza-address]:1935/vod/_definst_/mp4:myvideos/sample.mp4">Watch this stream over RTSP</a>');
    }
    </script>
    I don't think any finer/better control is possible with Android right now unless you know your clients specific devices and software versions.

  7. #7

    Default

    Hello. I have the same issue
    Wowza has a direct internet connection, and all UDP ports are opened.
    At the client side I have a home wifi router and Samsung Galaxy Note II. Also, I have a PC connected to that router by ethernet.

    The sample rtsp stream at http://www.wowza.com/html/mobile.html is playing well both on mobile and PC (by VLC). So, I think, it is all good at the client side.

    But the stream from my server is played on VLC only, not on the phone. (rtsp://grey.ether.tv/live/moskva/broadcast37)
    Android video player says me just "Can not play the video", and does not explain why.
    And there are no records containing "RTPTransport" in the log:

    grey logs # tail -f access.log
    2013-04-21 19:55:48 MSK connect rtsp INFO 200 _defaultVHost_ live moskva -
    2013-04-21 19:55:48 MSK create stream INFO 200 _defaultVHost_ live moskva -
    2013-04-21 19:55:48 MSK describe rtsp INFO 200 _defaultVHost_ live moskva -
    2013-04-21 19:55:48 MSK unpublish stream INFO 200 _defaultVHost_ live moskva -
    2013-04-21 19:55:48 MSK destroy stream INFO 200 _defaultVHost_ live moskva -
    2013-04-21 19:55:48 MSK disconnect rtsp INFO 200 _defaultVHost_ live moskva -

    I have tried to change log level to DEBUG (log4j.properties), but nothing about RTPTransport and UDP ports was appeared.

    How ca I see, does Wowza attempts to bind to UDP or not?

  8. #8

    Default

    Sorry, I have left out that test stream (Big Buck Bunny) is a VOD, and my issue and the topic is live streaming.
    VOD is working well, in all cases

  9. #9
    Join Date
    Feb 2013
    Posts
    5

    Default

    Has there been any resolution to this?

    I am experiencing the same issues. HLS is buggy and there's a lot of issues/drift in Android 4.x+

    I am also having problems getting RTSP to work - I can get audio only to work fine, but any time Video is also involved, on Android 4.1 the video is distorted and miscolored and out of sync.

  10. #10
    Join Date
    Feb 2013
    Posts
    5

    Default

    For what it's worth, rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov works fine for me as well. But ... that's not live streaming

Page 1 of 2 12 LastLast

Similar Threads

  1. Issues with RTSP streaming on Android & Blackberry!
    By dearsasidhar in forum Media Players and Devices Discussion
    Replies: 4
    Last Post: 05-17-2012, 05:02 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
  •