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

Exception when Playing mp4 from OBB File #13

Open
appschris opened this issue Aug 20, 2018 · 4 comments
Open

Exception when Playing mp4 from OBB File #13

appschris opened this issue Aug 20, 2018 · 4 comments

Comments

@appschris
Copy link

This only happens on some devices like Huawei P10 light, on other devices videos playing correctly.

Any ideas?

E/SurfaceView: Exception configuring surface
    java.lang.RuntimeException
        at com.google.android.vending.expansion.zipfile.APEZProvider.query(APEZProvider.java:238)
        at android.content.ContentProvider.query(ContentProvider.java:1057)
        at android.content.ContentProvider.query(ContentProvider.java:1149)
        at android.content.ContentProvider$Transport.query(ContentProvider.java:242)
        at android.content.ContentResolver.query(ContentResolver.java:766)
        at android.content.ContentResolver.query(ContentResolver.java:716)
        at android.content.ContentResolver.query(ContentResolver.java:667)
        at android.provider.MediaStore.getDataColumn(MediaStore.java:2506)
        at android.provider.MediaStore.getPath(MediaStore.java:2487)
        at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1048)
        at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1108)
        at android.widget.VideoView.openVideo(VideoView.java:402)
        at android.widget.VideoView.-wrap0(Unknown Source:0)
        at android.widget.VideoView$7.surfaceCreated(VideoView.java:690)
        at android.view.SurfaceView.updateSurface(SurfaceView.java:707)
        at android.view.SurfaceView$2.onPreDraw(SurfaceView.java:151)
        at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:977)
        at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2516)
        at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1515)
        at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7266)
        at android.view.Choreographer$CallbackRecord.run(Choreographer.java:981)
        at android.view.Choreographer.doCallbacks(Choreographer.java:790)
        at android.view.Choreographer.doFrame(Choreographer.java:721)
        at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:967)
        at android.os.Handler.handleCallback(Handler.java:808)
        at android.os.Handler.dispatchMessage(Handler.java:101)
        at android.os.Looper.loop(Looper.java:166)
        at android.app.ActivityThread.main(ActivityThread.java:7425)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
@vadymhimself
Copy link

vadymhimself commented Aug 20, 2018

I would recommend to unzip the file and read it using the regular file system instead of zipfile

@appschris
Copy link
Author

appschris commented Aug 20, 2018

Hm this seems more like a workaround than a solution !

@vadymhimself
Copy link

vadymhimself commented Aug 20, 2018

You're right, it's a temporary workaround for your problem. However, unzipping your files would also give you higher read speeds which might fix your rendering error

@BrainCrumbz
Copy link

@appschris did you ever manage to make this work? As of today, we incur in exactly the same issue (with original Google library though). I hope it's ok to ask here, not looking to detour the issue.

There's also someone else with same issue on StackOverflow, we're looking for hints there as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants