Android WebRTC SurfaceViewRenderer旋转

Android WebRTC SurfaceViewRenderer旋转,android,webrtc,webrtc-android,amazon-kinesis-video-streams,Android,Webrtc,Webrtc Android,Amazon Kinesis Video Streams,我正在尝试手动旋转在SurfaceView渲染器中渲染的流。 以下情况不起作用: remoteVideoTrack.removeSink(remoteView); int rotation = 90; remoteView.setRotation(rotation); remoteView.onFrameResolutionChanged(layoutParams.width, layoutParams.height, rotation); remoteVideoTrack.addSink(re

我正在尝试手动旋转在SurfaceView渲染器中渲染的流。 以下情况不起作用:

remoteVideoTrack.removeSink(remoteView);
int rotation = 90;
remoteView.setRotation(rotation);
remoteView.onFrameResolutionChanged(layoutParams.width, layoutParams.height, rotation);
remoteVideoTrack.addSink(remoteView);
有什么想法吗?

同样的问题:(.我使用的是WebRTC的ReactNative模块,在iOS中轮换运行得很好,但在Android中就不行了。