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

Event Close Youtube when youtube is running #6

Open
tuananh1998hust opened this issue Feb 12, 2020 · 4 comments
Open

Event Close Youtube when youtube is running #6

tuananh1998hust opened this issue Feb 12, 2020 · 4 comments

Comments

@tuananh1998hust
Copy link

When youtube is running and i close youtube, callback function close youtube can not call

@JoelAH
Copy link

JoelAH commented Apr 18, 2020

Hi, Im getting the same issue as well. Is there any fix? See my stacktrace below:

AndroidRuntime: Caused by: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=242, result=0, data=null} to activity {[omit].MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.cordova.CallbackContext.error(java.lang.String)' on a null object reference
04-18 14:33:23.492 6365 6365 E AndroidRuntime: at android.app.ActivityThread.deliverResults(ActivityThread.java:4342)
04-18 14:33:23.492 6365 6365 E AndroidRuntime: at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3625)
04-18 14:33:23.492 6365 6365 E AndroidRuntime: ... 10 more
04-18 14:33:23.492 6365 6365 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.cordova.CallbackContext.error(java.lang.String)' on a null object reference
04-18 14:33:23.492 6365 6365 E AndroidRuntime: at com.bunkerpalace.cordova.YoutubeVideoPlayer.onActivityResult(YoutubeVideoPlayer.java:39)
04-18 14:33:23.492 6365 6365 E AndroidRuntime: at org.apache.cordova.CordovaInterfaceImpl.onActivityResult(CordovaInterfaceImpl.java:159)
04-18 14:33:23.492 6365 6365 E AndroidRuntime: at org.apache.cordova.CordovaActivity.onActivityResult(CordovaActivity.java:359)
04-18 14:33:23.492 6365 6365 E AndroidRuntime: at android.app.Activity.dispatchActivityResult(Activity.java:7235)
04-18 14:33:23.492 6365 6365 E AndroidRuntime: at android.app.ActivityThread.deliverResults(ActivityThread.java:4338)

@tuananh1998hust
Copy link
Author

tuananh1998hust commented Apr 19, 2020

i create custom native code and resolve issues

@gmoraiz
Copy link

gmoraiz commented Mar 15, 2021

any solution for this problem?

@JensUweB
Copy link

Can confirm, close event doesn't work for me too. @tuananh1998hust can you share that code, so that everyone else can get this working too, please?

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

4 participants