Questions tagged [android-videoview]

An Android View to manage and display a video file.

The VideoView class can load images from various sources (such as resources or content providers), takes care of computing its measurement from the video so that it can be used in any layout manager, and provides various display options such as scaling and tinting.

Methods of this class

void setVideoPath(String pth): This method will set the absolute path of the video file which is going to be play.

void setMediaController(MediaController cntlor): This method is used to set the controller for the controls of playback .

void start(): This method is used to start the playback of video file.

void pause(): This method is used to pause the current playback.

boolean canPause(): This method will tell whether video view is able to pause.

boolean canSeekForward(): This method will return true value if video view is able to seek forward.

int getDuration(): This method is used to get the total duration of video view.

boolean isPlaying(): This method will return true value if the current video view is in play state.

void resume(): This method is used to play the resumed file.

2566 questions
1
vote
1 answer

When seekBar updating Android's MediaPlayer video is not smooth

I'm playing video via MediPlayer in my android application and have SeekBar displayed. Now I want this seeks bar to automatically update as the video progresses so it should automatically move from left to right. At the moment, (code below) the bar…
spirytus
  • 10,726
  • 14
  • 61
  • 75
1
vote
0 answers

Android media player not playing RTSP link Errror error (100, 0) E/MediaPlayer( 1170): Error (100,0)

I'm trying to play RTSP link in micromax tablet android version 4.0.3,kernel version-3.0.8+inet-soft@inet#1.Same link is playing in another phone(like lava and Dell)but in micromax tab when we want to play it throws…
Dilip
  • 2,271
  • 5
  • 32
  • 52
1
vote
1 answer

Android VideoView - blank video after path change on some devices

I'm quite new to android development and I am currently developing a very simple application that includes also some videos. To demonstrate my problem I have 2 videos (e.g. video1.mp4 and video2.mp4) in my res/raw/ directory. I want to start…
j99
  • 285
  • 2
  • 17
1
vote
0 answers

Android RTSP request does not send audio SETUP command

I have a RTSP server which sends out a H.264/L16 live stream. It plays out fine on VLC. However, when played using VideoView or MediaPlayer in Android it only sends the SETUP request once for video before sending the PLAY request. Therefore, only…
mjiang
  • 63
  • 5
1
vote
2 answers

when video finished go back to activity

I have some videos using videoView. everything is running well, but when the video is finished nothing happens, the phone stay on dark screen waiting to pres play again or the blink back on the phone. I want that when videos is finished, go back to…
user1542141
  • 31
  • 1
  • 3
1
vote
1 answer

Android "Can't Play Video" after repeat it for several hours

I have an application that repeats a video in flash card. It is working and play the video for several hours but then the player crash (and some times the Android system freezes too) while showing the message "Can't Play Video". So its not a problem…
KammutierSpule
  • 109
  • 1
  • 5
1
vote
1 answer

Android VideoView sdcard not working

I am trying to use Android's VideoView to play a video off of the sdcard folder on my device. It seems like it used to work just fine but I refactored some code and now I can't seem to get it working. Here is a sample: // filepath =…
dlee123
  • 81
  • 1
  • 4
1
vote
1 answer

ASUS padfone shows black screen when playing Http Live Streaming (m3u8) files using Android VideoView

When I try to play HLS m3u8 file (http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8) on ASUS padfone (http://www.asus.com/Mobile/PadFone/), it shows a black screen with no video nor audio. There is no error report in logcat. The…
spiralmoon
  • 3,084
  • 2
  • 25
  • 26
1
vote
3 answers

android - flash live stream in application using webview or videoview

I'm trying to make an app which plays a live stream inside the android app. The source path is: "http://mediasuite.316networks.com/templates/livefull2.swf" which is a flash file, played with adobe flash player. I've had a look at both VideoView…
1
vote
3 answers

Videoview not starting when the user comes back to activity

I'm starting a project and I want to reproduce a video in the main activity when the app is executed, when the user presses the video it goes to another activity. If the user press the back button, he is going to the main screen again and reproduces…
AdolfoFermo
  • 107
  • 1
  • 8
1
vote
0 answers

VideoView (building my own video view)

private void openVideo() { if (mUri == null || mSurfaceHolder == null) { // not ready for playback just yet, will try again later return; } // Tell the music playback service to pause // TODO:…
nsp
  • 378
  • 1
  • 4
  • 19
1
vote
1 answer

Exceptions after playing rtsp video streams on android

I am making an android application that would play live streams on android boxes. The box I have has android OS 2.3 and works fine with streams with urls like http: // server /abc/abc/def.m3u8 but streams from clients that are like rtsp:…
samreen
  • 209
  • 2
  • 6
1
vote
1 answer

Cannot play video, android

I have used an mp4 video with a 400x760 resolution at 30fps and integrated it into an app using VideoView and MediaController MediaController mediac; VideoView video1; mediac = new MediaController(this); mediac.setAnchorView(video1); video1 =…
1
vote
1 answer

see several videos from rtsp on android device?

I just want to know if I can see several videos at once from the network using rtsp? I'm trying to do an android app similar to video surveillance and I need to see several videos at the some time in the screen, I tried to use it with MediaPlayer…
Lino
  • 295
  • 1
  • 5
  • 19
1
vote
1 answer

VideoView loses back stack

I have to refactor some old code and am currently up against a wall. Apparently this code used to load a different kind of video format but now it pulls in an .MP4, which means the WebView it used to call can no longer play the video. Given the…
1 2 3
99
100