You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[AndroidInAppWebViewController] (android) WebView ID 9 calling "onConsoleMessage" using {messageLevel: 3, message: Uncaught (in promise) Error: error, Exception: type 'Null' is not a subtype of type 'num'}
E/JSBridgeInterface(15516): error, Exception: type 'Null' is not a subtype of type 'num'
I/chromium(15516): [INFO:CONSOLE(1)] "Uncaught (in promise) Error: error, Exception: type 'Null' is not a subtype of type 'num'", source: https://www.youtube.com/ (1)
[AndroidInAppWebViewController] (android) WebView ID 9 calling "VideoTime" using [13.29311102861023, null]
[JavaScript Handler "VideoTime"] type 'Null' is not a subtype of type 'num'
#0 _RawYoutubePlayerState.build.. (package:youtube_player_flutter/src/player/raw_youtube_player.dart:206:27) #1 AndroidInAppWebViewController._handleMethod (package:flutter_inappwebview_android/src/in_app_webview/in_app_webview_controller.dart:1542:73) #2 InternalChannelController.initMethodCallHandler. (package:flutter_inappwebview_platform_interface/src/util.dart:631:30) #3 MethodChannel._handleAsMethodCall (package:flutter/src/services/platform_channel.dart:571:55) #4 MethodChannel.setMethodCallHandler. (package:flutter/src/services/platform_channel.dart:564:34) #5 _DefaultBinaryMessenger.setMessageHandler. (package:flutter/src/services/binding.dart:618:35) #6 _invoke2 (dart:ui/hooks.dart:344:13) #7 _ChannelCallbackRecord.invoke (dart:ui/channel_buffers.dart:45:5) #8 _Channel.push (dart:ui/channel_buffers.dart:135:31) #9 ChannelBuffers.push (dart:ui/channel_buffers.dart:343:17) #10 PlatformDispatcher._dispatchPlatformMessage (dart:ui/platform_dispatcher.dart:750:22) #11 _dispatchPlatformMessage (dart:ui/hooks.dart:257:31)
What is the expected behaviour?
no error
How to reproduce?
play youtube video
Flutter Doctor Output
[✓] Flutter (Channel stable, 3.24.5, on macOS 15.1.1 24B91 darwin-arm64, locale en-SG)
• Flutter version 3.24.5 on channel stable at /Users/purehi/development/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision dec2ee5c1f (10 days ago), 2024-11-13 11:13:06 -0800
• Engine revision a18df97ca5
• Dart version 3.5.4
• DevTools version 2.37.3
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Package
youtube_player_flutter
What happened?
[AndroidInAppWebViewController] (android) WebView ID 9 calling "onConsoleMessage" using {messageLevel: 3, message: Uncaught (in promise) Error: error, Exception: type 'Null' is not a subtype of type 'num'}
E/JSBridgeInterface(15516): error, Exception: type 'Null' is not a subtype of type 'num'
I/chromium(15516): [INFO:CONSOLE(1)] "Uncaught (in promise) Error: error, Exception: type 'Null' is not a subtype of type 'num'", source: https://www.youtube.com/ (1)
[AndroidInAppWebViewController] (android) WebView ID 9 calling "VideoTime" using [13.29311102861023, null]
[JavaScript Handler "VideoTime"] type 'Null' is not a subtype of type 'num'
#0 _RawYoutubePlayerState.build.. (package:youtube_player_flutter/src/player/raw_youtube_player.dart:206:27)
#1 AndroidInAppWebViewController._handleMethod (package:flutter_inappwebview_android/src/in_app_webview/in_app_webview_controller.dart:1542:73)
#2 InternalChannelController.initMethodCallHandler. (package:flutter_inappwebview_platform_interface/src/util.dart:631:30)
#3 MethodChannel._handleAsMethodCall (package:flutter/src/services/platform_channel.dart:571:55)
#4 MethodChannel.setMethodCallHandler. (package:flutter/src/services/platform_channel.dart:564:34)
#5 _DefaultBinaryMessenger.setMessageHandler. (package:flutter/src/services/binding.dart:618:35)
#6 _invoke2 (dart:ui/hooks.dart:344:13)
#7 _ChannelCallbackRecord.invoke (dart:ui/channel_buffers.dart:45:5)
#8 _Channel.push (dart:ui/channel_buffers.dart:135:31)
#9 ChannelBuffers.push (dart:ui/channel_buffers.dart:343:17)
#10 PlatformDispatcher._dispatchPlatformMessage (dart:ui/platform_dispatcher.dart:750:22)
#11 _dispatchPlatformMessage (dart:ui/hooks.dart:257:31)
What is the expected behaviour?
no error
How to reproduce?
play youtube video
Flutter Doctor Output
The text was updated successfully, but these errors were encountered: