File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,9 @@ class RTCVideoRenderer extends ValueNotifier<RTCVideoValue>
48
48
49
49
@override
50
50
set srcObject (MediaStream ? stream) {
51
- if (_disposed)
51
+ if (_disposed) {
52
52
throw 'Can\' t set srcObject: The RTCVideoRenderer is disposed' ;
53
+ }
53
54
if (textureId == null ) throw 'Call initialize before setting the stream' ;
54
55
_srcObject = stream;
55
56
WebRTC .invokeMethod ('videoRendererSetSrcObject' , < String , dynamic > {
@@ -66,8 +67,9 @@ class RTCVideoRenderer extends ValueNotifier<RTCVideoValue>
66
67
}
67
68
68
69
Future <void > setSrcObject ({MediaStream ? stream, String ? trackId}) async {
69
- if (_disposed)
70
+ if (_disposed) {
70
71
throw 'Can\' t set srcObject: The RTCVideoRenderer is disposed' ;
72
+ }
71
73
if (_textureId == null ) throw 'Call initialize before setting the stream' ;
72
74
_srcObject = stream;
73
75
var oldTextureId = _textureId;
You can’t perform that action at this time.
0 commit comments