Closed dashika closed 2 years ago
Stream is freezing if the camera from incoming call is on after the call was started
But the video stuck, camera continue works in the thumb.
If start calls from the webpage with turned on camera everything wok.
override fun onVideoTrackPublished( remoteParticipant: RemoteParticipant, remoteVideoTrackPublication: RemoteVideoTrackPublication ) { Log.i( "Video Call", "onVideoTrackPublished: " + "[RemoteParticipant: identity=${remoteParticipant.identity}], " + "[RemoteVideoTrackPublication: sid=${remoteVideoTrackPublication.trackSid}, " + "enabled=${remoteVideoTrackPublication.isTrackEnabled}, " + "subscribed=${remoteVideoTrackPublication.isTrackSubscribed}, " + "name=${remoteVideoTrackPublication.trackName}]" ) }
override fun onVideoTrackSubscribed( remoteParticipant: RemoteParticipant, remoteVideoTrackPublication: RemoteVideoTrackPublication, remoteVideoTrack: RemoteVideoTrack ) { Log.i( "Video call", "onVideoTrackSubscribed: " + "[RemoteParticipant: identity=${remoteParticipant.identity}], " + "[RemoteVideoTrack: enabled=${remoteVideoTrack.isEnabled}, " + "name=${remoteVideoTrack.name}]" ) addRemoteParticipantVideo(remoteVideoTrack) }
private fun addRemoteParticipantVideo(videoTrack: VideoTrack) { moveLocalVideoToThumbnailView() primaryVideoView.mirror = false videoTrack.addSink(primaryVideoView) }
private fun moveLocalVideoToThumbnailView() { if (thumbnailVideoView.visibility == View.GONE) { thumbnailVideoView.visibility = View.VISIBLE with(localVideoTrack) { this?.removeSink(primaryVideoView) this?.addSink(thumbnailVideoView) } localVideoView = thumbnailVideoView thumbnailVideoView.mirror = cameraCapturerCompat.cameraSource == CameraCapturerCompat.Source.FRONT_CAMERA } }
Stream video must be playing.
Stream video is frozen.
100%
'6.4.0'
Samsung A32 Huawei Mate 10 Pixel 3a Mi 11 Lite 5G
@dashika are you still experiencing this issue with the 7.0.3 release?
No, with version from December 2021 it was solved . Thanks 👍😊
Description
Stream is freezing if the camera from incoming call is on after the call was started
Steps to Reproduce
But the video stuck, camera continue works in the thumb.
If start calls from the webpage with turned on camera everything wok.
Code
override fun onVideoTrackPublished( remoteParticipant: RemoteParticipant, remoteVideoTrackPublication: RemoteVideoTrackPublication ) { Log.i( "Video Call", "onVideoTrackPublished: " + "[RemoteParticipant: identity=${remoteParticipant.identity}], " + "[RemoteVideoTrackPublication: sid=${remoteVideoTrackPublication.trackSid}, " + "enabled=${remoteVideoTrackPublication.isTrackEnabled}, " + "subscribed=${remoteVideoTrackPublication.isTrackSubscribed}, " + "name=${remoteVideoTrackPublication.trackName}]" ) }
private fun addRemoteParticipantVideo(videoTrack: VideoTrack) { moveLocalVideoToThumbnailView() primaryVideoView.mirror = false videoTrack.addSink(primaryVideoView) }
Expected Behavior
Stream video must be playing.
Actual Behavior
Stream video is frozen.
Reproduces how Often
100%
Versions
'6.4.0'
Android Device
Samsung A32 Huawei Mate 10 Pixel 3a Mi 11 Lite 5G