fix: don't check for preview if video streaming is disabled

This commit is contained in:
Prateek Sunal
2025-02-23 05:33:02 +05:30
parent e99bc335d9
commit 386554ac70

View File

@@ -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)