alongubkin / alongubkin/phonertc

Video containers not visible on Android when using Crosswalk

Open
#174 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Objective-C
Stars
864
Forks
298
PR merge metrics
No merged PRs in 30d

Description

Hi,

The plugin works perfectly on both iOS and Android, but after adding Crosswalk I can't see the video containers anymore. I do hear sound, and on the other client the video is being visible, just not on the phone.

I had the following error:

`E/AndroidRuntime(12487): java.lang.ClassCastException: org.crosswalk.engine.XWalkCordovaView cannot be cast to android.webkit.WebView
E/AndroidRuntime(12487): at com.dooble.phonertc.PhoneRTCPlugin.createVideoView(PhoneRTCPlugin.java:320)
E/AndroidRuntime(12487): at com.dooble.phonertc.PhoneRTCPlugin.refreshVideoView(PhoneRTCPlugin.java:345)
E/AndroidRuntime(12487): at com.dooble.phonertc.PhoneRTCPlugin.addRemoteVideoTrack(PhoneRTCPlugin.java:292)
E/AndroidRuntime(12487): at com.dooble.phonertc.Session$PCObserver$2.run(Session.java:283)
E/AndroidRuntime(12487): at android.os.Handler.handleCallback(Handler.java:725)
E/AndroidRuntime(12487): at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime(12487): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime(12487): at android.app.ActivityThread.main(ActivityThread.java:5283)
E/AndroidRuntime(12487): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(12487): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime(12487): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
E/AndroidRuntime(12487): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
E/AndroidRuntime(12487): at dalvik.system.NativeStart.main(Native Method)`

So i replaced the (WebView) casts to XWalkView, but that doesnt help. Maybe it's being added outside the screen or under everything?

Anyone familiar with this?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.