Yannis Assael Yannis Assael - 6 months ago 38
Android Question

Wowza and Android streaming

I am trying to stream video from Wowza to Android. I tried setting a MediaPlayer() and path

"rtsp://184.72.239.149/vod/mp4:BigBuckBunny_175k.mov"
, but with no success. I get this:


ARTSPConnection: Server unexpectedly closed the connection.


Any suggestions on how I could solve this?

Answer Source

Well my soltuion was to create a HTML page that would take as a parameter the RTMP url and using Flash Media Playback would play the stream through flash...

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=1;" />
        <meta name="apple-mobile-web-app-capable" content="yes" />
        <meta names="apple-mobile-web-app-status-bar-style" content="black-translucent" />
        <title>#############</title>
        <script type="text/javascript">
            function resizeHandler()
            {
                var flash = document.getElementById("FlashMovie");
                window.scrollTo(0, 1);
                flash.focus();
                flash.focus();
            }

            window.onresize = resizeHandler;
            window.onload = resizeHandler;

        </script>
    </head>

    <body style="margin:0; padding:0; background: #000;">
        <div style="margin:0; padding:0; width:100%; height:100%">
            <embed id="FlashMovie" style="width:100%; height:100%" src="http://fpdownload.adobe.com/strobe/FlashMediaPlayback.swf" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" fullScreenOnSelection="true" scale="showall" flashvars="src=rtmp%3A%2F%2F########%2Flive%2FmyStream.sdp&playButtonOverlay=true&loop=true&autoPlay=true&streamType=live&initialBufferTime=2" pluginspage="https://play.google.com/store/apps/details?id=com.adobe.flashplayer"></embed>
        </div>
        <br /><br /><br />
    </body>
</html>
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download