Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/179.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android QBGLVideoView在调用getCurrentSession()时旋转。switchCapturePosition(null)_Android_Webrtc_Android Videoview_Quickblox - Fatal编程技术网

Android QBGLVideoView在调用getCurrentSession()时旋转。switchCapturePosition(null)

Android QBGLVideoView在调用getCurrentSession()时旋转。switchCapturePosition(null),android,webrtc,android-videoview,quickblox,Android,Webrtc,Android Videoview,Quickblox,我正在工作。一切正常,但我想通过呼叫将摄像头从前摄像头切换到后摄像头的时间: if (getCurrentSession() != null) getCurrentSession().switchCapturePosition(null); 它成功地切换了摄像机,但在另一侧,即在对手的远程视频视图上,视图旋转了180度。 此外,本地视频视图也会旋转。我尝试使用: local_ongoing_call.setVideoViewOrientation(-90); 但是,它会旋转我这边的视

我正在工作。一切正常,但我想通过呼叫将摄像头从前摄像头切换到后摄像头的时间:

if (getCurrentSession() != null)
    getCurrentSession().switchCapturePosition(null);
它成功地切换了摄像机,但在另一侧,即在对手的远程视频视图上,视图旋转了180度。 此外,本地视频视图也会旋转。我尝试使用:

local_ongoing_call.setVideoViewOrientation(-90);

但是,它会旋转我这边的视图,而对手仍然拥有相同的旋转视图。需要帮助

您可以旋转对手一侧的QBGLVideoView。似乎此问题与特定设备和webrtc库版本有关。
在最近的将来应该会发布新的视频通话,因此最有可能的问题将在新版本中得到解决。

我如何在对手一侧旋转QBGLVideoView?