Skip to content

Commit

Permalink
++
Browse files Browse the repository at this point in the history
  • Loading branch information
littleGnAl committed Dec 27, 2023
1 parent 9a31a2d commit aa8a4b0
Showing 1 changed file with 14 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ class _State extends State<StartLocalVideoTranscoder> {
remoteUid.clear();
});
},
onLocalVideoTranscoderError: (stream, error) {
logSink
.log('[onLocalVideoTranscoderError] stream: $stream error: $error');
},
));

_videoDeviceManager = _engine.getVideoDeviceManager();
Expand Down Expand Up @@ -229,6 +233,7 @@ class _State extends State<StartLocalVideoTranscoder> {

await _engine.stopCameraCapture(VideoSourceType.videoSourceCameraPrimary);
await _engine.stopLocalVideoTranscoder();
await _engine.startPreview();
transcodingVideoStreams.clear();
_isSecondaryCameraSource = false;
_isPrimaryScreenSource = false;
Expand Down Expand Up @@ -591,16 +596,17 @@ class _State extends State<StartLocalVideoTranscoder> {
if (!_isReadyPreview) return Container();
return Stack(
children: [
AgoraVideoView(
controller: VideoViewController(
rtcEngine: _engine,
canvas: const VideoCanvas(
uid: 0,
sourceType: VideoSourceType.videoSourceTranscoded,
renderMode: RenderModeType.renderModeFit,
if (_isStartLocalvideoTranscoder)
AgoraVideoView(
controller: VideoViewController(
rtcEngine: _engine,
canvas: const VideoCanvas(
uid: 0,
sourceType: VideoSourceType.videoSourceTranscoded,
renderMode: RenderModeType.renderModeFit,
),
),
),
),
Align(
alignment: Alignment.topLeft,
child: SingleChildScrollView(
Expand Down

0 comments on commit aa8a4b0

Please sign in to comment.