求助:android中的视频通话问题
在android中,有一款叫sipdroid的开源软件,其中有视频通话功能,但是我在G1手机上使用视频通话功能,却提示无法播放视频(两台都是G1手机,都装相同的sipdroid软件,对打)。里面调用的是opencore中的功能。
软件中对应的部分代码为:
if (videopacket.getPayloadLength() > 200)
{
speakermode = Receiver.engine(mContext).speaker(AudioManager.MODE_NORMAL);
speakervalid = Receiver.ccConn.date;
Intent i = new Intent(Intent.ACTION_VIEW,
Uri.parse("rtsp://"+Receiver.engine(mContext).getRemoteAddr()+"
/"+Receiver.engine(mContext).getRemoteVideo()+"/sipdroid"));
startActivity(i);
return;
}
TRACE信息如下:(其中179的IP是对方的IP)
I/ActivityManager( 93): Starting activity: Intent { act=android.intent.action.VIEW dat=rtsp://192.168.208.179/21070/sipdroid cmp=com.android.camera/.MovieView }
D/dalvikvm( 504): threadid=27 wakeup: interrupted
V/VideoView( 581): reset duration to -1 in openVideo
D/MediaPlayer( 581): Couldn't open file on client side, trying server side
W/AudioFlinger( 75): AudioRecordThread: buffer overflow
I/ActivityManager( 93): Displayed activity com.android.camera/.MovieView: 488 ms (total 488 ms)
E/PlayerDriver( 75): Command PLAYER_INIT completed with an error or info PVMFFailure
W/PlayerDriver( 75): PVMFInfoErrorHandlingComplete
E/MediaPlayer( 581): error (1, -1)
E/MediaPlayer( 581): Error (1,-1)
D/VideoView( 581): Error: 1,-1
W/AudioFlinger( 75): AudioRecordThread: buffer overflow
W/AudioFlinger( 75): AudioRecordThread: buffer overflow
W/AudioFlinger( 75): AudioRecordThread: buffer overflow
D/dalvikvm( 93): GC freed 6554 objects / 287024 bytes in 213ms
W/AudioFlinger( 75): AudioRecordThread: buffer overflow
D/VolumePanel( 93): onVolumeChanged(streamType: 3, flags: 0)
D/VolumePanel( 93): onVolumeChanged(streamType: 3, flags: 0)
I/ActivityManager( 93): Starting activity: Intent { flg=0x10000000 cmp=org.sipdroid.sipua/.ui.InCallScreen }
E/MediaPlayer( 581): stop called in state 0
E/MediaPlayer( 581): error (-38, 0)
W/AudioFlinger( 75): AudioRecordThread: buffer overflow
W/MediaPlayer( 581): mediaplayer went away with unhandled events