Note that there are some explanatory texts on larger screens.

plurals
  1. POPrepare failed 0x1 Android
    primarykey
    data
    text
    <p>I have a wvm file I'm trying to load, but it always fail on prepare with IO exception.</p> <p>If I'm trying to run the same url in VLC player on the same device it will play normally.</p> <p>This is my MediaPlayer code</p> <pre><code> mPlayer = MediaPlayer.create(context, Uri.parse(file_url)); if(mPlayer != null){ mPlayer.setSurface(s); mPlayer.setOnCompletionListener(this); mPlayer.setOnErrorListener(this); mPlayer.setOnInfoListener(this); mPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); video_prepared = true; if(got_initial_media_hit) { OnEvent(PLAYER_EVENT.load); } } else { OnError(PLAYER_ERRORS.player_not_loaded, ""); } </code></pre> <p>This is the error I'm getting</p> <pre><code>09-29 14:48:56.314: E/MediaPlayer(18209): error (1, -1) 09-29 14:48:56.334: D/MediaPlayer(18209): create failed: 09-29 14:48:56.334: D/MediaPlayer(18209): java.io.IOException: Prepare failed.: status=0x1 09-29 14:48:56.334: D/MediaPlayer(18209): at android.media.MediaPlayer.prepare(Native Method) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.media.MediaPlayer.create(MediaPlayer.java:792) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.media.MediaPlayer.create(MediaPlayer.java:769) 09-29 14:48:56.334: D/MediaPlayer(18209): at com.tvinci.sdk.player.DefaultPlayer.initPlayer(DefaultPlayer.java:247) 09-29 14:48:56.334: D/MediaPlayer(18209): at com.tvinci.sdk.player.DefaultPlayer.onSurfaceTextureAvailable(DefaultPlayer.java:287) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.view.TextureView.getHardwareLayer(TextureView.java:385) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.view.View.getDisplayList(View.java:12804) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.view.View.getDisplayList(View.java:12880) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.view.View.draw(View.java:13657) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.view.ViewGroup.drawChild(ViewGroup.java:3083) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2920) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.view.View.getDisplayList(View.java:12833) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.view.View.getDisplayList(View.java:12880) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.view.View.draw(View.java:13657) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.view.ViewGroup.drawChild(ViewGroup.java:3083) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2920) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.view.View.getDisplayList(View.java:12833) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.view.View.getDisplayList(View.java:12880) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.view.View.draw(View.java:13657) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.view.ViewGroup.drawChild(ViewGroup.java:3083) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2920) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.view.View.getDisplayList(View.java:12833) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.view.View.getDisplayList(View.java:12880) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.view.View.draw(View.java:13657) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.view.ViewGroup.drawChild(ViewGroup.java:3083) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2920) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.view.View.draw(View.java:13947) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.widget.FrameLayout.draw(FrameLayout.java:467) 09-29 14:48:56.334: D/MediaPlayer(18209): at com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:2224) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.view.View.getDisplayList(View.java:12838) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.view.View.getDisplayList(View.java:12880) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.view.HardwareRenderer$GlRenderer.buildDisplayList(HardwareRenderer.java:1411) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.view.HardwareRenderer$GlRenderer.draw(HardwareRenderer.java:1359) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.view.ViewRootImpl.draw(ViewRootImpl.java:2367) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2239) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1872) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1004) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5481) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:749) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.view.Choreographer.doCallbacks(Choreographer.java:562) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.view.Choreographer.doFrame(Choreographer.java:532) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:735) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.os.Handler.handleCallback(Handler.java:730) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.os.Handler.dispatchMessage(Handler.java:92) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.os.Looper.loop(Looper.java:137) 09-29 14:48:56.334: D/MediaPlayer(18209): at android.app.ActivityThread.main(ActivityThread.java:5103) 09-29 14:48:56.334: D/MediaPlayer(18209): at java.lang.reflect.Method.invokeNative(Native Method) 09-29 14:48:56.334: D/MediaPlayer(18209): at java.lang.reflect.Method.invoke(Method.java:525) 09-29 14:48:56.334: D/MediaPlayer(18209): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737) 09-29 14:48:56.334: D/MediaPlayer(18209): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) 09-29 14:48:56.334: D/MediaPlayer(18209): at dalvik.system.NativeStart.main(Native Method) </code></pre> <p>What can it be? Thanks</p> <p>Edit:</p> <p>If I'm using VideoView instead it works like a charm. Any ideas?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload