Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
littleGnAl committed Feb 23, 2023
1 parent d370c67 commit aec7d1e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/src/impl/video_view_controller_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,12 @@ mixin VideoViewControllerBaseMixin implements VideoViewControllerBase {
mediaPlayerId: canvas.mediaPlayerId,
);
if (canvas.uid != 0) {
await rtcEngine.setupRemoteVideo(videoCanvas);
if (connection != null && rtcEngine is RtcEngineEx) {
await (rtcEngine as RtcEngineEx)
.setupRemoteVideoEx(canvas: videoCanvas, connection: connection!);
} else {
await rtcEngine.setupRemoteVideo(videoCanvas);
}
} else {
await rtcEngine.setupLocalVideo(videoCanvas);
}
Expand Down

0 comments on commit aec7d1e

Please sign in to comment.