Start a new topic

Problems with playing video in fullscreen

Hello,

We have problems on ios and Android whenever using AR.context.startVideoPlayer(videoUrl).


On IOS:

Video opens in fullscreen but when we close the video player and return to the architect world the screen freezes and we have to close and reopen architect world to get it working again. 


On Android:

Running AR.context.startVideoPlayer(videoUrl) crashes the app. The only error log entry we could get was from logcat with android studio. Here is the log:

 

E/AndroidRuntime: FATAL EXCEPTION: main

    Process: com.kon.cef, PID: 12105

    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.kon.cef/com.wikitude.tools.activities.MediaPlayerActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.WindowInsetsController com.android.internal.policy.DecorView.getWindowInsetsController()' on a null object reference

        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4169)

        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4325)

        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101)

        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)

        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)

        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2574)

        at android.os.Handler.dispatchMessage(Handler.java:106)

        at android.os.Looper.loopOnce(Looper.java:226)

        at android.os.Looper.loop(Looper.java:313)

        at android.app.ActivityThread.main(ActivityThread.java:8757)

        at java.lang.reflect.Method.invoke(Native Method)

        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)

        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)

     Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.WindowInsetsController com.android.internal.policy.DecorView.getWindowInsetsController()' on a null object reference

        at com.android.internal.policy.PhoneWindow.getInsetsController(PhoneWindow.java:4124)

        at com.wikitude.tools.activities.MediaPlayerActivity.onCreate(Unknown Source:70)

        at android.app.Activity.performCreate(Activity.java:8591)

        at android.app.Activity.performCreate(Activity.java:8570)

        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1384)

        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4150)

        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4325) 

        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101) 

        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) 

        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) 

        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2574) 

        at android.os.Handler.dispatchMessage(Handler.java:106) 

        at android.os.Looper.loopOnce(Looper.java:226) 

        at android.os.Looper.loop(Looper.java:313) 

        at android.app.ActivityThread.main(ActivityThread.java:8757) 

        at java.lang.reflect.Method.invoke(Native Method) 

        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571) 

        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067) 

  

Any help is appreciated.

Thank you.

Login or Signup to post a comment