Results 1 to 6 of 6

Thread: Live video streaming on Android device

  1. #1

    Default Live video streaming to Android 4.x device

    Hi,

    Assume

    Wowza re-streams IP camera.

    Wowza is configured to stream RTSP/RTP.
    UDP ports are opened.
    Wowza Media server and Android device are on the same LAN (there are no problems with firewall).

    RTSP stream from Wowza uses UPD ports (checked with VLC).
    For test we use Google friendly devices: Nexus S, Nexus 4

    But native Android Media player fails with error 100,0.
    Java code for Media Player is taken from the Google SDK samples.


    Another Android player (BSPlayer) plays the same stream.

    Please provide some light on this issue.
    Last edited by sam.shm; 05-06-2013 at 11:19 AM. Reason: title fix

  2. #2

    Default

    Sam, I believe android only supports h264 video and AAC audio encoding using RTSP

    Salvadore

  3. #3

    Default

    Video is H.264 and no audio.

  4. #4

    Default

    Does your camera support RTSP/RTP interleaved (RTP over TCP)? If not you need to change the RTPTransportMode value from interleave to udp:

            <MediaCaster>
                 <RTP>
                      <RTSP>
                           <!-- udp, interleave -->
                 		<RTPTransportMode>interleave</RTPTransportMode>
                      </RTSP>
                 </RTP>
                 <!-- Properties defined here will override any properties defined in conf/MediaCasters.xml for any MediaCasters loaded by this application -->
                 <Properties>
                 </Properties>
            </MediaCaster>
    I just found this in the trouble shooting documentation:
    Android does not support RTSP/RTP interleaved (RTP over TCP). This means if UDP is unavailable for RTP playback, RTP over TCP will not work as a failover and your stream will not play

    Salvadore
    Last edited by salvadore; 05-06-2013 at 04:56 PM. Reason: found additional info

  5. #5

    Default

    Quote Originally Posted by salvadore View Post
    Does your camera support RTSP/RTP interleaved (RTP over TCP)? If not you need to change the RTPTransportMode value from interleave to udp:

            <MediaCaster>
                 <RTP>
                      <RTSP>
                           <!-- udp, interleave -->
                 		<RTPTransportMode>interleave</RTPTransportMode>
                      </RTSP>
                 </RTP>
                 <!-- Properties defined here will override any properties defined in conf/MediaCasters.xml for any MediaCasters loaded by this application -->
                 <Properties>
                 </Properties>
            </MediaCaster>
    I just found this in the trouble shooting documentation:
    Android does not support RTSP/RTP interleaved (RTP over TCP). This means if UDP is unavailable for RTP playback, RTP over TCP will not work as a failover and your stream will not play

    Salvadore

    Hi,

    Wowza streams RTSP/RTP over UDP checked with WireShark and VLC media player.
    (No VLC fallback to TCP, all RTP packets are send via UDP).
    Device and Media Server are on the same LAN.

    Not native android players do play the stream.

    I could provide Aplication.xml

  6. #6

    Default

    Android is very tricky business, I suggest you zip up your [install-dir]/logs and [install-dir]/conf folders and send them to support@wowza.com
    include a link to this thread for reference.

    Salvadore

Similar Threads

  1. Stream video live from Android device
    By deepanjanghosh16 in forum Live Streaming and Encoders
    Replies: 4
    Last Post: 04-28-2014, 09:26 AM
  2. Replies: 1
    Last Post: 02-21-2014, 07:43 AM
  3. Android > 4.0 Imposible to stream to device. html5 video tag.
    By Andres in forum Media Players and Devices Discussion
    Replies: 1
    Last Post: 05-31-2013, 10:07 AM
  4. Streaming to android device Live video from wowza...
    By Andres in forum General Forum
    Replies: 9
    Last Post: 11-23-2012, 07:10 AM

Posting Permissions

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