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...
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...