We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a185594 commit afd64e2Copy full SHA for afd64e2
lib/src/widgets/video_track_renderer.dart
@@ -179,7 +179,10 @@ class _VideoTrackRendererState extends State<VideoTrackRenderer> {
179
setState(() {});
180
});
181
_renderer?.onResize = () {
182
- final videoValue = (_renderer as ValueNotifier<rtc.RTCVideoValue>).value;
+ final videoValue = (_renderer as ValueNotifier<rtc.RTCVideoValue>?)?.value;
183
+ if (videoValue == null) {
184
+ return;
185
+ }
186
final double width;
187
final double height;
188
if (videoValue.rotation % 180 == 0) {
0 commit comments