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

org.crosswalk.engine.XWalkCordovaView cannot be cast to android.webkit.WebView #240

Open
MeAntonio opened this issue Sep 28, 2017 · 1 comment

Comments

@MeAntonio
Copy link

Have installed crosswalk 2.3.0 into my cordova app and app started exiting when trying to establish p2p connection with a user in game. This is the logger error:

FATAL EXCEPTION: main
E/AndroidRuntime( 794): Process: hr.something.something, PID: 794
E/AndroidRuntime( 794): java.lang.ClassCastException: org.crosswalk.engine.XWalkCordovaView cannot be cast to android.webkit.WebView
E/AndroidRuntime( 794): at com.dooble.phonertc.PhoneRTCPlugin.createVideoView(PhoneRTCPlugin.java:388)
E/AndroidRuntime( 794): at com.dooble.phonertc.PhoneRTCPlugin.refreshVideoView(PhoneRTCPlugin.java:419)
E/AndroidRuntime( 794): at com.dooble.phonertc.PhoneRTCPlugin.addRemoteVideoTrack(PhoneRTCPlugin.java:343)
E/AndroidRuntime( 794): at com.dooble.phonertc.Session$PCObserver$2.run(Session.java:284)
E/AndroidRuntime( 794): at android.os.Handler.handleCallback(Handler.java:733)
E/AndroidRuntime( 794): at android.os.Handler.dispatchMessage(Handler.java:95)
E/AndroidRuntime( 794): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime( 794): at android.app.ActivityThread.main(ActivityThread.java:5103)
E/AndroidRuntime( 794): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 794): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 794): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790)
E/AndroidRuntime( 794): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:606)
E/AndroidRuntime( 794): at dalvik.system.NativeStart.main(Native Method)

If someone know how to approach this error please help.

@purppleshroom
Copy link

Here is the solution:

https://github.com/Tonchyk/phonertc

It works all fine with crosswalk but doesn't check if there is crosswalk installed so it doesn't yet work for no crosswalk use.

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