|
当用户进入了房间之后,我用如下代码打开本地摄像头,并显示无法显示,请帮忙诊断一下可能原因,最好能够帮忙给出示例代码。谢谢。
@Override
public void OnAnyChatEnterRoomMessage(int dwRoomId, int dwErrorCode) {
if( dwErrorCode == 0 ) {
System.out.println( "进入房间成功!" );
if( videoFrame == null )
videoFrame = new VideoFrame();
videoFrame.setVisible( true );
System.out.println( "LocalCamera:" + anychatCore.UserCameraControl(-1, 1) );
System.out.println( "LocalVoice:" + anychatCore.UserSpeakControl(-1, 1) );
anychatCore.SetVideoPos( -1, videoFrame, 0, 160, 200, 360 );
}
System.out.println(dwErrorCode + "");
}
本地摄像头和音频打印都为0.
|
|