fix: don't check for preview if video streaming is disabled
This commit is contained in:
@@ -65,6 +65,9 @@ class _VideoWidgetState extends State<VideoWidget> {
|
||||
}
|
||||
|
||||
Future<void> _checkForPreview() async {
|
||||
if (!PreviewVideoStore.instance.isVideoStreamingEnabled) {
|
||||
return;
|
||||
}
|
||||
widget.playbackCallback?.call(false);
|
||||
final data = await PreviewVideoStore.instance
|
||||
.getPlaylist(widget.file)
|
||||
|
||||
Reference in New Issue
Block a user