From 66883113130801e85dfd07c940e5508f212e1286 Mon Sep 17 00:00:00 2001 From: Ellet Date: Sat, 29 Jun 2024 23:21:27 +0300 Subject: [PATCH] docs: add link to the 'flutter_inappwebview' plugin desktop support issue in YoutubeVideoSupportMode --- example/lib/screens/quill/my_quill_editor.dart | 2 +- .../config/video/editor/youtube_video_support_mode.dart | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/example/lib/screens/quill/my_quill_editor.dart b/example/lib/screens/quill/my_quill_editor.dart index e3ed9942..254057d7 100644 --- a/example/lib/screens/quill/my_quill_editor.dart +++ b/example/lib/screens/quill/my_quill_editor.dart @@ -131,7 +131,7 @@ class MyQuillEditor extends StatelessWidget { }, ), videoEmbedConfigurations: QuillEditorVideoEmbedConfigurations( - // Loading YouTube vidoes on Desktop is not supported yet + // Loading YouTube videos on Desktop is not supported yet // when using iframe platform view youtubeVideoSupportMode: isDesktop(supportWeb: false) ? YoutubeVideoSupportMode.customPlayerWithDownloadUrl diff --git a/flutter_quill_extensions/lib/models/config/video/editor/youtube_video_support_mode.dart b/flutter_quill_extensions/lib/models/config/video/editor/youtube_video_support_mode.dart index 35e2713e..d66285ce 100644 --- a/flutter_quill_extensions/lib/models/config/video/editor/youtube_video_support_mode.dart +++ b/flutter_quill_extensions/lib/models/config/video/editor/youtube_video_support_mode.dart @@ -1,4 +1,4 @@ -/// Enum representing the different modes for handling YouTube video support. +/// Enum represents the different modes for handling YouTube video support. enum YoutubeVideoSupportMode { /// Disable loading of YouTube videos. disabled, @@ -8,6 +8,8 @@ enum YoutubeVideoSupportMode { /// /// This will use Platform View on native platforms to use WebView /// The WebView might not be supported on Desktop and will throw an exception + /// + /// See [Flutter InAppWebview Support for Flutter Desktop](https://github.com/pichillilorenzo/flutter_inappwebview/issues/460) iframeView, /// Load the video using a custom video player by fetching the YouTube video URL.