I believe it to be a codec issue, yet i have tested with other videos from the internet with same codec and they worked fine :( Please help.
This is the Log:
09-07 12:24:04.509 5094-5094/com.sourab.videorecorder D/MediaPlayer: setDataSource IOException happend :
java.io.FileNotFoundException: No content provider: DOMAIN/VIDEO_FILE_NAMEmp4
at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:1117)
at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:970)
at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:897)
at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1112)
at android.widget.VideoView.openVideo(VideoView.java:376)
at android.widget.VideoView.access$2100(VideoView.java:73)
at android.widget.VideoView$7.surfaceCreated(VideoView.java:657)
at android.view.SurfaceView.updateWindow(SurfaceView.java:688)
at android.view.SurfaceView$3.onPreDraw(SurfaceView.java:200)
at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:1018)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2301)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1300)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7017)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:777)
at android.view.Choreographer.doCallbacks(Choreographer.java:590)
at android.view.Choreographer.doFrame(Choreographer.java:560)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:763)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:6897)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)
09-07 12:24:04.509 5094-5094/com.sourab.videorecorder D/MediaPlayer: Couldn't open file on client side, trying server side
09-07 12:24:04.509 5094-5094/com.sourab.videorecorder V/MediaPlayer: setVideoSurfaceTexture
09-07 12:24:04.509 5094-5094/com.sourab.videorecorder V/MediaPlayer-JNI: setAudioStreamType: 3
09-07 12:24:04.509 5094-5094/com.sourab.videorecorder V/MediaPlayer: MediaPlayer::setAudioStreamType
09-07 12:24:04.509 5094-5094/com.sourab.videorecorder V/MediaPlayer: setVideoSurfaceTexture
09-07 12:24:04.509 5094-5094/com.sourab.videorecorder V/MediaPlayer: prepareAsync
09-07 12:24:08.239 5094-5581/com.sourab.videorecorder V/MediaPlayer: message received msg=100, ext1=1, ext2=-2147483648
09-07 12:24:08.239 5094-5581/com.sourab.videorecorder E/MediaPlayer: error (1, -2147483648)
09-07 12:24:08.239 5094-5581/com.sourab.videorecorder V/MediaPlayer: callback application
09-07 12:24:08.239 5094-5581/com.sourab.videorecorder V/MediaPlayer: back from callback
09-07 12:24:08.249 5094-5103/com.sourab.videorecorder V/MediaPlayer: message received msg=100, ext1=1, ext2=-2147483648
09-07 12:24:08.249 5094-5103/com.sourab.videorecorder E/MediaPlayer: error (1, -2147483648)
09-07 12:24:08.249 5094-5103/com.sourab.videorecorder V/MediaPlayer: callback application
09-07 12:24:08.249 5094-5103/com.sourab.videorecorder V/MediaPlayer: back from callback
09-07 12:24:08.309 5094-5094/com.sourab.videorecorder E/MediaPlayer: Error (1,-2147483648)
09-07 12:24:08.349 5094-5094/com.sourab.videorecorder E/MediaPlayer: Error (1,-2147483648)
I believe it to be a codec issue, yet i have tested with other videos from the internet with same codec and they worked fine :( Please help.
This is the Log:
09-07 12:24:04.509 5094-5094/com.sourab.videorecorder D/MediaPlayer: setDataSource IOException happend : java.io.FileNotFoundException: No content provider: DOMAIN/VIDEO_FILE_NAMEmp4 at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:1117) at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:970) at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:897) at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1112) at android.widget.VideoView.openVideo(VideoView.java:376) at android.widget.VideoView.access$2100(VideoView.java:73) at android.widget.VideoView$7.surfaceCreated(VideoView.java:657) at android.view.SurfaceView.updateWindow(SurfaceView.java:688) at android.view.SurfaceView$3.onPreDraw(SurfaceView.java:200) at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:1018) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2301) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1300) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7017) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:777) at android.view.Choreographer.doCallbacks(Choreographer.java:590) at android.view.Choreographer.doFrame(Choreographer.java:560) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:763) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:145) at android.app.ActivityThread.main(ActivityThread.java:6897) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199) 09-07 12:24:04.509 5094-5094/com.sourab.videorecorder D/MediaPlayer: Couldn't open file on client side, trying server side 09-07 12:24:04.509 5094-5094/com.sourab.videorecorder V/MediaPlayer: setVideoSurfaceTexture 09-07 12:24:04.509 5094-5094/com.sourab.videorecorder V/MediaPlayer-JNI: setAudioStreamType: 3 09-07 12:24:04.509 5094-5094/com.sourab.videorecorder V/MediaPlayer: MediaPlayer::setAudioStreamType 09-07 12:24:04.509 5094-5094/com.sourab.videorecorder V/MediaPlayer: setVideoSurfaceTexture 09-07 12:24:04.509 5094-5094/com.sourab.videorecorder V/MediaPlayer: prepareAsync 09-07 12:24:08.239 5094-5581/com.sourab.videorecorder V/MediaPlayer: message received msg=100, ext1=1, ext2=-2147483648 09-07 12:24:08.239 5094-5581/com.sourab.videorecorder E/MediaPlayer: error (1, -2147483648) 09-07 12:24:08.239 5094-5581/com.sourab.videorecorder V/MediaPlayer: callback application 09-07 12:24:08.239 5094-5581/com.sourab.videorecorder V/MediaPlayer: back from callback 09-07 12:24:08.249 5094-5103/com.sourab.videorecorder V/MediaPlayer: message received msg=100, ext1=1, ext2=-2147483648 09-07 12:24:08.249 5094-5103/com.sourab.videorecorder E/MediaPlayer: error (1, -2147483648) 09-07 12:24:08.249 5094-5103/com.sourab.videorecorder V/MediaPlayer: callback application 09-07 12:24:08.249 5094-5103/com.sourab.videorecorder V/MediaPlayer: back from callback 09-07 12:24:08.309 5094-5094/com.sourab.videorecorder E/MediaPlayer: Error (1,-2147483648) 09-07 12:24:08.349 5094-5094/com.sourab.videorecorder E/MediaPlayer: Error (1,-2147483648)