iOS stream switch camera issue

andrew.n

Member
Context:
Using two-way streaming service
I have separated properties for sessions and streams
private var playURLSession: FPWCSApi2Session?
private var broadcastURLSession: FPWCSApi2Session?
private var playURLStream: FPWCSApi2Stream?
private var broadcastURLStream: FPWCSApi2Stream?

Also 2 RTCEAGLVideoView
@IBOutlet private weak var playURLVideoView: RTCEAGLVideoView?
@IBOutlet private weak var broadcastURLVideoView: RTCEAGLVideoView?


I call switch camera for broadcastURLStream
@IBAction func didTapSwitchCameraButton(_ sender: UIButton) {
broadcastURLStream?.switchCamera()
}

broadcastURLVideoView changes properly, which is good
but playURLVideoView displays the content in full screen instead to keep the frame I provided in
func videoView(_ videoView: RTCEAGLVideoView, didChangeVideoSize size: CGSize) { ... }

Sometimes, this delegate method is called again the RTCEAGLVideoView gets fixed... but randomly... just waiting...
 

Max

Administrator
Staff member
Good day.
Sometimes, this delegate method is called again the RTCEAGLVideoView gets fixed... but randomly... just waiting...
Check if the problem is reproduced on Two Way Streamin example out of the box. If no, please provide us a code example based on Two Way Streaming with minimal changes to reproduce the problem, and sen using this link, we will check.
 
Top