Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Uncaught (in promise) Error: error, Exception: type 'Null' is not a subtype of type 'num'" #1028

Open
1 task done
Purehi opened this issue Nov 23, 2024 · 0 comments
Open
1 task done
Assignees

Comments

@Purehi
Copy link

Purehi commented Nov 23, 2024

Is there an existing issue for this?

  • I have searched the existing issues

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

[✓] 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants