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

VideoView.setVideoURI() not accepting HTTPS

this.videoView.setVideoURI(Uri.parse(url+"&ext=.m3u8")); The call never reaches the server. With http everything works fine. On all other Android devices (!=Google TV) HTTPS also works fine. The url has the…
Torge
  • 2,174
  • 1
  • 23
  • 33
1
vote
1 answer

Cannot compile Vitamio demo

I successfully installed the Zi library and the VitamioBundle, but I cannot achieve to compile the VitamioDemo example. Eclipse says that the methods setVideoPath, setVideoQuality, setMediaController and setVideoLayout are undefined for the type…
thomaus
  • 6,170
  • 8
  • 45
  • 63
1
vote
1 answer

Android: How to show video files in oval view

people. How to create my own CustomVideoView I want show video files in my videoView in oval. But I don't know how to do it? What myst I create: view or something else draw in canvas? Please help me. It's must look like this: I think that I can…
DavyJonesUA
  • 2,309
  • 2
  • 18
  • 21
1
vote
1 answer

android recording video and playing it back immediately

hi guys i have been trying to record a video with front camera and the playing it back using the videoview and mediacontroller. But facing the orientation problem, as i record the video with camera orientation set to 90 degree(PORTRAIT) but when the…
Dinash
  • 3,027
  • 4
  • 32
  • 45
1
vote
1 answer

How to know which android devices support video playback?

I've made an app to view vine videos on Android devices. These are basically .mp4 videos being loaded into a VideoView. From the following documentation (http://developer.android.com/guide/appendix/media-formats.html), mp4 video playback is…
Henrique
  • 4,921
  • 6
  • 36
  • 61
1
vote
0 answers

Play the video from assests in VideoView not in Full screen mode in tablet

I am playing the video from the Assets in my application. I am developing the application for the tablet. I am having mp4 videos. my videoview in xml is below. MY PROBLEM IS THAT I AM GETTING THE CENTER ALIGN VIDEO and GAP in TWOSIDE RIGHT AS WELL…
Arpit Patel
  • 1,561
  • 13
  • 23
1
vote
1 answer

Android Videoview

I try to use Android Videoview to play a video in my sdcard. And it play next video in my sdcard if the sdcard have several videos. But neither in my emulator or my smartphone the app work. I already add the permission
DekangHu
  • 155
  • 4
  • 14
1
vote
2 answers

Play RTSP streaming on android

I have a RTSP source, and I wanna play it on my android app, but it play on 2 or 3 minute and can't play longer :( How can i play it longer? // there is my code to play, thanks for advice! // videoview is my VideoView on layout …
Sang Nguyễn
  • 61
  • 1
  • 7
1
vote
0 answers

Cannot Play Video error in PopupWindow

Hi I am trying to play video in PopupWindow but I am getting this error. I am able to play the same video directly in my activity. I found lot of queries related to Cannot Play video but none of them helped me in resolving this issue. Can any one…
Swati
  • 1,179
  • 9
  • 28
1
vote
1 answer

VideoView not working for video with rotation on LG Android phones

With LG MS840, if I take a video in lanscape orientation, then display it in a VideoView, it looks same to what it used to be. However if a take a video in portait orientation, then display it in VideoView, the video's width and height will be…
tactoth
  • 897
  • 1
  • 12
  • 24
1
vote
0 answers

android videoview stuck image

i've got a simple videoview. I've made a stop button with: myVideoView.stopPlayback(); but when it stops it keeps the last scene of the video in the videoview. How can i reset the videoview after the video has been stopped?
david
  • 89
  • 11
1
vote
0 answers

Vitamio, VideoView and RTMPGW issues

I am trying to utilise RTMPGW as part of my app, which usually works great in Linux. I am trying to use the Vitamio bundle to play back the stream. Here is the main code, taken from the Vitamio Demo: package io.vov.vitamio.demo; import…
Dan Turner
  • 171
  • 1
  • 11
1
vote
0 answers

Can't play mp4 video in Android

I'm new to Android development, I'm trying to play an MP4 video from the RAW folder but, although I likely read every answer here and browsed for hours on google, I couldn't make it work. My current code is (called on the onCreate()…
Damien Pirsy
  • 25,319
  • 8
  • 70
  • 77
1
vote
0 answers

Transparent ImageButtons get tinted when over active VideoView

When placing semi-transparent .png files (say, white rectangles with an 80% opacity) as ImageButtons over an ImageView, the buttons appear completely as expected, however if these buttons are displayed over a VideoView that is playing a video, the…
Daniel Smith
  • 8,561
  • 3
  • 35
  • 58
1
vote
2 answers

How to play unsupported video in Java/Android

So I have tried 2 things: 1. inserted a MediaPlayer and 2. Inserted a VideoView in my layout, and tried setting the Url of the video. None have worked, both with an MP4 and FLV file. From what I've read on SO, the videos probably have unsupported…
Eduard Luca
  • 6,514
  • 16
  • 85
  • 137