Results 1 to 5 of 5

Thread: Android mediaplayer connects two times

  1. #1
    Join Date
    Dec 2010
    Posts
    9

    Default Android mediaplayer connects two times

    I've created a statistics module for Wowza but I have some problems with Android.
    When I start play the video-on-demand file the mediaplayer is connecting two times.
    In this order: Connect -> play -> disconnect -> connect -> play (and then the video starts playing).
    Any idea why android client connects two times?

    Wowza log:
    INFO server comment - onAppStart: vod/_definst_
    INFO application app-start _definst_ vod/_definst_
    INFO server comment - onRTPSessionCreate: 1583907961
    INFO server comment - Logging to statistics
    INFO rtsp connect 1583907961 -
    INFO server comment - onStreamCreate: 1
    INFO stream create - -
    INFO rtsp describe 1583907961 -
    INFO stream unpause 1f72cd57dac9617e66e591fca4b4660c.mp4 -
    INFO server comment - RTPUDPTransport.bind[vod/_definst_]: in:0.0.0.0/0.0.0.0:6978 out:/213.89.118.70:15550
    INFO server comment - RTPUDPTransport.bind[vod/_definst_]: in:0.0.0.0/0.0.0.0:6979 out:/213.89.118.70:15551
    INFO server comment - RTPUDPTransport.bind[vod/_definst_]: in:0.0.0.0/0.0.0.0:6980 out:/213.89.118.70:15552
    INFO server comment - RTPUDPTransport.bind[vod/_definst_]: in:0.0.0.0/0.0.0.0:6981 out:/213.89.118.70:15553
    INFO rtsp play 1583907961 -
    
    INFO server comment - RTPUDPTransport.unbind[vod/_definst_]: 0.0.0.0/0.0.0.0:6978
    INFO server comment - RTPUDPTransport.unbind[vod/_definst_]: 0.0.0.0/0.0.0.0:6979
    INFO server comment - RTPUDPTransport.unbind[vod/_definst_]: 0.0.0.0/0.0.0.0:6980
    INFO server comment - RTPUDPTransport.unbind[vod/_definst_]: 0.0.0.0/0.0.0.0:6981
    INFO stream stop 1f72cd57dac9617e66e591fca4b4660c.mp4 -
    INFO server comment - onStreamDestroy: 1
    INFO stream destroy 1f72cd57dac9617e66e591fca4b4660c.mp4 -
    INFO server comment - onRTPSessionDestroy: 1583907961
    INFO rtsp disconnect 1583907961 -
    
    INFO server comment - onRTPSessionCreate: 91522283
    INFO server comment - Logging to statistics
    INFO rtsp connect 91522283 -
    INFO server comment - onStreamCreate: 2
    INFO stream create - -
    INFO rtsp describe 91522283 -
    INFO stream unpause 1f72cd57dac9617e66e591fca4b4660c.mp4 -
    INFO rtsp play 91522283 -

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

    Default

    It appears that this device is failing over to TCP (from UDP), which is not a bad thing really. That is what VLC does, and what most Android devices don't do, according to customer info and experience. The way to prevent that is make sure that all UDP ports (0-65535) are open in the server firewall and routed correctly in your network if necessary.

    Richard

  3. #3
    Join Date
    Apr 2012
    Posts
    2

    Default

    We have a same problem(connects two times). However, We connect an android-phone to our PC by USB directly, and Wowza2.24 and Eclipse are installed in our PC.
    Will security software be the cause of this problem?
    As other solutions,the time when Wowza waits until communication in RTPUDPT fails is long, is there the method to shorten time to the time-out of this portion?

  4. #4

    Default

    To enable UDP follow this guide:
    http://www.wowza.com/forums/content.php?45

  5. #5
    Join Date
    Apr 2012
    Posts
    2

    Default

    We already read and tried it.
    We matched setting of "RTP/RTSPBindIpAddress" with the IP address of our PC.

    Furthermore, we tried testing of "rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov".
    However, we were kept waiting at time long as ever.

    Will not there be other solutions?

Similar Threads

  1. In Android the onHTTPSessionCreate method is called 3 times
    By magnesiosl85 in forum General Forum
    Replies: 1
    Last Post: 11-07-2013, 02:44 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
  •