0

我正在尝试开发一个从 JMF streming 网络摄像头获取流的应用程序。我可以使用 jmstudio 流式传输我的网络摄像头。但我无法在平板电脑上观看.. 这是我的代码和日志..

    String path = "rtsp://192.168.1.211:2000";
    MediaController mc= new MediaController(this);
    vw.setVideoPath(path);
    vw.setMediaController(mc);
    vw.requestFocus();      
    mc.show();
    vw.start();

09-26 04:17:17.307:D/CLIPBOARD(22762):在开始输入时隐藏剪贴板对话框:由其他人完成...!09-26 04:17:24.807: V/MediaPlayer-JNI(22762): native_setup

09-26 04:17:24.807: V/MediaPlayer(22762): 构造函数

09-26 04:17:24.807:V/MediaPlayer(22762):setListener

09-26 04:17:24.807: I/MediaPlayer(22762): 路径为空

09-26 04:17:24.807: D/MediaPlayer(22762): 无法在客户端打开文件,正在尝试服务器端

09-26 04:17:24.807: V/MediaPlayer-JNI(22762): setDataSource: 路径 rtsp://192.168.1.211:2000

09-26 04:17:24.807: V/MediaPlayer(22762): setDataSource(rtsp://192.168.1.211:2000)

09-26 04:17:24.807: V/MediaPlayer(22762): setVideoSurfaceTexture

09-26 04:17:24.807: V/MediaPlayer-JNI(22762): setAudioStreamType: 3

09-26 04:17:24.807: V/MediaPlayer(22762): MediaPlayer::setAudioStreamType

09-26 04:17:24.807: V/MediaPlayer(22762): setVideoSurfaceTexture

09-26 04:17:24.807:V/MediaPlayer(22762):prepareAsync

09-26 04:17:55.147: V/MediaPlayer(22762): 收到消息 msg=100, ext1=1, ext2=-2147483648

09-26 04:17:55.147: E/MediaPlayer(22762): 错误 (1, -2147483648)

09-26 04:17:55.147: V/MediaPlayer(22762): 回调应用

09-26 04:17:55.147: V/MediaPlayer(22762): 从回调返回

09-26 04:17:55.147: E/MediaPlayer(22762): 错误 (1,-2147483648)

09-26 04:17:55.147: D/VideoView(22762): 错误: 1,-2147483648

4

0 回答 0