docs: add link to the 'flutter_inappwebview' plugin desktop support issue in YoutubeVideoSupportMode

pull/1916/head
Ellet 10 months ago
parent 661dbf8c16
commit 6688311313
  1. 2
      example/lib/screens/quill/my_quill_editor.dart
  2. 4
      flutter_quill_extensions/lib/models/config/video/editor/youtube_video_support_mode.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

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

Loading…
Cancel
Save