-
Notifications
You must be signed in to change notification settings - Fork 754
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
Unhandled Exception: PlatformException(evaluateJavaScript_failed, Failed evaluating JavaScript ... ) #2
Comments
I am facing same error : [VERBOSE-2:ui_dart_state.cc(148)] Unhandled Exception: PlatformException(evaluateJavaScript_failed, Failed evaluating JavaScript, JavaScript string was: 'player.loadVideoById("iLnmTe5Q2Qw", 0)' |
Thanks for reporting issue 😊 . The plugin is completely tested on Android only. Performing tests on iOS currently. Will push new version after tests complete, before this weekend. |
Have the same issue, works great on android but on iOS I get the exception: Unhandled Exception: PlatformException(evaluateJavaScript_failed, Failed evaluating JavaScript, JavaScript string was: 'player.playVideo()' |
+1 and thanks for creating this plugin @sarbagyastha |
Tested new Version 1.1.0 on iOS device and it works as intended, but in simulator video starts playing only after 4-5 minutes (although the above mentioned error shows up) in my case. |
@sarbagyastha Still getting the same exception on iPhone 6s. Running 12.1.4 |
Hello, @sarbagyastha Still getting the same exception too on iPhone 8. Running 12.1.2 |
Hi @sarbagyastha I've tested v1.1.0 on both a iOS 11 and 12 simulators (iPhone X, iPhone 8 etc) and a physical device (iPhone X) and it doesn't seem to be fixed. I did manage to see a playing video on an iOS 11 simulator at one time, but only after 4-5 minutes like you described. When I restarted the simulator I got the error again:
|
Done a little bit of debugging with Safari Web inspector, seems like the issue might be due to XHR ads related files. Will have to rewrite the iOS part i guess, so will take some time. If someone finds out workaround then a PR will be much appreciated. 😊 |
Compiler message:
Can you check what is issue, i can't run app |
@pmrajani , can you report with |
Doctor summary (to see all details, run flutter doctor -v): ! Doctor found issues in 1 category. @sarbagyastha Here it is |
[√] Flutter (Channel beta, v1.1.8, on Microsoft Windows [Version 10.0.17134.1], locale en-US) [√] Android toolchain - develop for Android devices (Android SDK version 28.0.3) [√] Android Studio (version 3.3) [!] Connected device ! Doctor found issues in 1 category. |
You're using older version of dart.. run |
@sarbagyastha it's works now thank you. |
@sarbagyastha Hello how about that problem? I am waiting your upgrade. |
Please fix Failed evaluating JavaScript, JavaScript string was: 'player.playVideo()' issue ASAP. |
@dmazlum @abeeriqbal , currently having a tight schedule so will work on it as soon I get adequate time for it. |
Any update? |
@abeeriqbal there is no update. I changed my player to webview. I embeded youtube code in webview. This is temporary solution. cheers |
Any Update ? |
This bug is affecting me also. Love the plugin though! |
Sorry folks, due to lack of spare time I couldn't work on the issue. I will work on it from next weekend onwards. |
The issue is finally fixed and will be updating the plugin tonight. It's working on iOS now. |
@sarbagyastha I had the same issue. In my case, when value.isReady is still false, I got an error. So, I modified to display the indicator and wait until isReady changes. |
@frgmt Done in Version 6.0.0 |
…ncy_between_youtube_player_builder_and_youtube_player Update dependency between YoutubePlayerBuilder and YoutubePlayer
" Unhandled Exception: PlatformException(FWFEvaluateJavaScriptError, Failed evaluating JavaScript., Instance of 'NSError', null) " Facing this error while trying to run javascript on an iOS simulator. |
Hey there!
This package seemed to look pretty cool so I gave it a shot.
Unfortunately I get this error under iOS (haven't tested Android yet) when I hit the play button.
I did run
pod install
and alsoflutter clean
. The video thumbnail is showing up in my view so I guess thats at least a partial success.The text was updated successfully, but these errors were encountered: