Skip to content

Commit

Permalink
++
Browse files Browse the repository at this point in the history
  • Loading branch information
littleGnAl committed May 25, 2023
1 parent b2c8a14 commit 4b39083
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,17 @@ class _State extends State<StartLocalVideoTranscoder> {

await _engine.startCameraCapture(
sourceType: VideoSourceType.videoSourceCameraPrimary, config: config);
} else {
transcodingVideoStreams.add(const TranscodingVideoStream(
sourceType: VideoSourceType.videoSourceCameraPrimary,
width: 160,
height: 320));
}

await _engine
.startLocalVideoTranscoder(_createLocalTranscoderConfiguration());
await _engine.startPreview(
sourceType: VideoSourceType.videoSourceTranscoded);
}

Future<void> _stopLocalVideoTranscoder() async {
Expand Down Expand Up @@ -590,6 +597,7 @@ class _State extends State<StartLocalVideoTranscoder> {
canvas: const VideoCanvas(
uid: 0,
sourceType: VideoSourceType.videoSourceTranscoded,
renderMode: RenderModeType.renderModeFit,
),
),
),
Expand Down

0 comments on commit 4b39083

Please sign in to comment.