2012-02-07 10 views
2

私はWowzaからAndroidにビデオをストリーミングしようとしています。 MediaPlayer()とパス"rtsp://184.72.239.149/vod/mp4:BigBuckBunny_175k.mov"を設定しようとしましたが、成功しませんでした。私はこれを得る:WowzaとAndroidストリーミング

ARTS接続:サーバーが突然接続を閉じた。

どのように私がこれを解決できるかについてのご意見はありますか?

+0

解決策を見つけましたか?私はこれが必要ですが、私は解決策を見つけることができません... :) – Jovan

答えて

1

まあ私のsoltuionこれは、我々がストリーミングする必要がある方法です...パラメータとしてRTMP URLを取るだろうとFlash Media再生を使用すると、フラッシュを通じてストリームを再生する、HTMLページを作成する

<!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> 
+0

それはあなたが得ることができる最高ではありません...しかし、散歩です.... –

3

ましたwowzaから:

String SrcPath ="rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov"; 

/** Called when the activity is first created. */ 
@Override 
public void onCreate(Bundle savedInstanceState) { 
    super.onCreate(savedInstanceState); 
    setContentView(R.layout.main); 
    VideoView myVideoView = (VideoView)findViewById(R.id.myvideoview); 
    myVideoView.setVideoURI(Uri.parse(SrcPath)); 
    Log.i("parse path",Uri.parse(SrcPath)+""); 
    myVideoView.setMediaController(new MediaController(this)); 
    myVideoView.requestFocus(); 
    myVideoView.start();} 

しかし、あなたがこれを行う前に、コピー「bigbuckbunny」ビデオファイル「VOD」フォルダへごwowzaセットアップインチ

関連する問題