Wowza Community

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 -

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

To enable UDP follow this guide:

https://www.wowza.com/docs/how-to-set-up-an-application-for-rtsp-rtp-streaming

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?

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?