Android VideoView black screen

I meet the same problem, and solve it with the accepted solution above plus this: @Override public void onPrepared(MediaPlayer mp) { mp.setOnInfoListener(new MediaPlayer.OnInfoListener() { @Override public boolean onInfo(MediaPlayer mp, int what, int extra) { Log.d(TAG, “onInfo, what = ” + what); if (what == MediaPlayer.MEDIA_INFO_VIDEO_RENDERING_START) { // video started; hide the placeholder. placeholder.setVisibility(View.GONE); return true; … Read more

How to set the preview image in videoview before playing

Use seekTo( 1 ) to show the first frame. Ensure the movie is paused and then use seekTo() to show the first frame of the video: VideoView mVideoView = (VideoView) findViewById( R.id.video_preview ); mVideoView.setVideoURI( yourVideoPath ); mVideoView.seekTo( 1 ); // 1 millisecond (0.001 s) into the clip. NOTE: We use .seekTo( 1 ) because setting … Read more

Android MediaPlayer error (1, -2147483648)

Just to clarify something for anyone reading this question based on the title. When looking at the error value (1, -2147483648), the ‘1’ value corresponds to the constant in MediaPlayer.MEDIA_ERROR_UNKNOWN. -2147483648 corresponds to hexadecimal 0x80000000 which is defined as UNKNOWN_ERROR in frameworks/native/include/utils/Errors.h This shows that the error’s source is hard to pin down as it … Read more

What is the difference between MediaPlayer and VideoView in Android

Was asking the same question and as I understood from what Mark (CommonsWare) advised on numerous threads here, VideoView is a wrapper (200 hundred lines of code) for MediaPlayer and SurfaceView to provide embedded controls. He also kindly shared some examples: https://github.com/commonsguy/cw-advandroid/blob/master/Media/Video/src/com/commonsware/android/video/VideoDemo.java https://github.com/commonsguy/vidtry/blob/master/src/com/commonsware/android/vidtry/Player.java and example from android sdk http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/media/MediaPlayerDemo.html Also some people had issues playing … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)