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

IPCam's sd card access by cgi-http method(dlink dcs-942l) on android phone

I'm going to develop an ipcam security app on my android phone, and need to access to SD card of ipcam through HTTP request, to play a saved video, and I have two problem: when access with browser to a specific video( I know the specific URL), it…
1
vote
2 answers

Blank screen is shown when I launch the Activity that plays video from an RTSP URL using VideoView?

Im trying to make an android application with live video streaming but whenever the related activity (this one) opens, it doesnt show anything except a blank screen. Can anyone please help me? package guc.edu.iremote; import…
Omar Abdelrazik
  • 683
  • 2
  • 9
  • 30
1
vote
0 answers

Android MediaPlayer Error - (1, -2147483648)

I am fetching data from a web service, that contains list of .mp4 files as url's The problem that arises is out of 10. Seven of the .mp4 files are played and the other remaining three when played says "The video cannot be played" and when i check…
dominic
  • 308
  • 2
  • 6
  • 17
1
vote
2 answers

Android: Video stretches on orientation change

I'm showing a video in a videoview: In my XML:
Oritm
  • 2,113
  • 2
  • 25
  • 40
1
vote
1 answer

How to create a videoThumbnail for remote file?

I am trying to create a video thumbnail for a file : 1- the file is located on YouTube. 2- I would start an implicit intent for Andriod OS to play this file using: Intent intent= new Intent(Intent.ACTION_VIEW,…
Wael Showair
  • 3,092
  • 2
  • 22
  • 29
1
vote
0 answers

Android - cant play my RSTP YouTube links on VideoView but can play other links

I upload videos to youtube and save the link on my database. Then I enter in the Gallery where i see all the vids. I get the RSTP link with: try { HttpClient client = new DefaultHttpClient(); String…
1
vote
0 answers

How to play multiple Youtube videos in VideoView?

I am getting multiple Youtube URL from Json through this link! First Thing is that when i play one url VideoView . I am getting ## Sorry ! this video cannot played##. I have searched for this where RTSP url support VideoView. Now How I'll get…
Deepanker Chaudhary
  • 1,694
  • 3
  • 15
  • 35
1
vote
2 answers

First Back button press not caught when playing a video android

I have a weird error that I cant figure out how to fix . I have a video player - a simple videoview that plays a video. Now I ve implemented logic so that when the user presses the back button - it tells him to press the back button again to exit,…
Vrashabh Irde
  • 14,129
  • 6
  • 51
  • 103
1
vote
0 answers

Move VideoView inside Relativelayout

I have RelativeLayout with VideoView and need to move and zoom videoView by gestures. mAnimationLayout = new RelativeLayout(mContext); mAnimationLayout.setOnTouchListener(new AnimationListener()); RelativeLayout.LayoutParams lpFill = new…
Serafim Suhenky
  • 2,140
  • 1
  • 15
  • 18
1
vote
0 answers

How to show thumbnail while playing audio in VideoView?

I have a videoView which is playing both audio and video streams ,but when I am playing audio I dont want screen to be blank instead I want to show an image or thumbnail ,how can I achieve this task ?
Just Variable
  • 892
  • 10
  • 19
1
vote
1 answer

Android VideoView not displaying

I am having difficulty displaying the camera feed in an Activity that uses the VideoView view. I am simply trying to view my camera (later of which I hope to either record or take a photo) I don't want to use an intent, and I want the actual view to…
Matthew
  • 3,886
  • 7
  • 47
  • 84
1
vote
1 answer

VideoView doesn't work on Android 4.0 and above

I'm creating a VideoView in runtime like this: @Override public View getUIElement(){ if(vv==null){ this.vv = new VideoView(this.getContext()); vv.setVideoURI(Uri.parse(this.url)); mc = new…
1
vote
0 answers

mkv video jitters on ICS

I try to use the class Videoview to play a MKV file on my Archos tablet. The layout is:
1
vote
1 answer

display time on android media controller

Am I missing something? Once I play a video using videoview, I cannot see the current time of the video on the media controller. (Running app on a ICS device, there is no time; however on a Honeycomb device there is time) Code: @Override public…
Saeid Farivar
  • 1,667
  • 24
  • 43
1
vote
1 answer

How to implement Video and video list using two Fragments

I am creating an application for HonyComb in which I have to display videos and video list. For this I have created two fragments,one for displaying video and other for videoList.When user clicks on video list then that video should start playing in…
Nishant
  • 32,082
  • 5
  • 39
  • 53