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
2 answers

Play video in android device from PHP server?

I am developing a school application and I want to play video from my PHP server I have tried this code but it couldn't play Uri video = Uri.fromFile(myurl); Intent intent = new Intent(Intent.ACTION_VIEW); …
Karan Mavadhiya
  • 1,042
  • 8
  • 23
1
vote
2 answers

Video not playing inside Webview android (Google TV)

I've and web app which uses Web view to load the HTML content. I'm developing it for Google TV, The web page having an video in it , So my problem is when i click to play an video it opens in another page not in same webview and it happens for…
Rahul Shirphule
  • 989
  • 3
  • 14
  • 36
1
vote
0 answers

Decrypting video on the fly using libmedia library

I Tried as below using libmedia library (http://libeasy.alwaysdata.net/) : But the encrypted video doesn't decrypt and play with the same key and cipher. Pls. see my code below: (Modified for easy understanding) public class MyClassActivity extends…
1
vote
0 answers

Android Videoview giving isPlaying() false

- I have two activities, suppose Activity A and Activity B. - My aim here is to have a function that will record a video and save it. Then once its done, we play it and printing at Logcat that its playing. - We are using VideoView to play the video,…
RINK
  • 620
  • 5
  • 15
1
vote
0 answers

android onPrepared videoview issue

We are developing an android application which shows a rtsp stream in the VideoView control. The following code is used the show the video. Its in a…
developerXXX
  • 689
  • 3
  • 7
  • 18
1
vote
1 answer

Android check video stream ended

i've got this simple video stream player: if (play) { myVideoView.stopPlayback(); myVideoView.clearFocus(); myVideoView = null; button5.setText("Start"); …
David
  • 2,331
  • 4
  • 29
  • 42
1
vote
1 answer

Android Vitamio weired buffering on progressive download stream

I try to stream (progressive e.g: http://server.com/video.mp4) when i use the standard google mediaplayer (VideoView from android package) and register an onBufferingUpdateListener then i get the bufferpercentage that refers to the download state of…
user2389812
  • 11
  • 1
  • 3
1
vote
0 answers

Android JW Player issue

I had implement JW Player in android, but getting black screen when video load from live URL. My HTML file
Chirag
  • 2,321
  • 24
  • 36
1
vote
1 answer

Show videoView full screen over other Layouts

I am developing an android app in which am using various tabs using TabHost, one tab contains video view. I am also using images at top. My Layout is as |main| --|Images| --|TabHost| ----|LinearLayout| ----|FrameLayout| ----|TabWidget| I wants to…
A_J
  • 1,635
  • 1
  • 18
  • 31
1
vote
2 answers

How to rotate video on rotate of device in Android?

I am working on a project where I am showing a live streaming video in android. I am showing the video in video view. I want to provide facility of landscape and portrait video view to the user. If I rotate the device the video should be bigger in…
Sanchit Paurush
  • 6,114
  • 17
  • 68
  • 107
1
vote
1 answer

What is this error I got when using VideoView : MediaPlayer(29449): Error (1,-1004) in android

I want to play live stream using VideoView but what is the error I got error : 04-21 21:13:27.326: D/MediaPlayer(29449): Couldn't open file on client side, trying server side 04-21 21:13:27.529: D/dalvikvm(29449): GC_CONCURRENT freed 81K, 2% free…
Adham
  • 63,550
  • 98
  • 229
  • 344
1
vote
0 answers

How to seek Previous video when backing video in 0:0 Android?

I use Videoview for Play video and I use seekto for seek in video. And Now I want when use mediaControler and pree back key and Arrived 00:00 video is stoped and previous video Begging play video. How find that video is 00:00 time ?
Farzad
  • 212
  • 2
  • 6
  • 19
1
vote
1 answer

Getting an error while playing a video using VideoView in android

In my application I want to show a video by online streaming but video does not start and I am getting an error "Sorry this video can not be played" and logcat error is couldn't open file on client side trying server side and mediaplayer error…
1
vote
2 answers

How to Play video from an Arbitrary Time in Android?

I want to play video in arbitrary time for videoview in Android _player.setVideoURI(Uri.parse(uri)); MediaController mc = new MediaController(this); _player.setMediaController(mc); _player.start(); Now I want set time: 10:20…
user1534010
1
vote
0 answers

rtsp for sony-max in android 2.3.3

i have an android app that will live stream videos in android 2.3.3,i have found on that rtsp link in videoview works for that purpose from String LINK = "type_here_the_link"; setContentView(R.layout.mediaplayer); VideoView videoView = (VideoView)…
Hardi Shah
  • 133
  • 1
  • 11