android直播流错误错误(1,-2147483648)

时间:2012-02-02 10:34:21

标签: android rtsp

我想在服务器(wowza)中播放直播视频到Android设备? 我已经使用了this code它在模拟器中的完美工作但它在Android设备中不起作用它显示错误如Error (1,-2147483648)某些人指导我如何播放 rtsp url视频到android设备。这是我的代码

public class AnVideoView extends Activity {

String SrcPath = "rtsp://myip/live/mpegts";

   /** 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));
       myVideoView.setMediaController(new MediaController(this));
       myVideoView.requestFocus();
       myVideoView.start();
   }
}

0 个答案:

没有答案