All Questions

55
votes
9answers
64760 views

Android MediaPlayer error (1, -2147483648)

I have two different videos which I'm trying to load into a VideoView using videoView.setVideoURI(Uri.parse(url)); The two videos, let them be video 1 and video 2, have the following specs (extrac...
13
votes
5answers
23744 views

How to play multiple video files simultaneously in one layout side by side in different view in Android

In Android, I created a layout with three surface view side by side, and I want to play one video file with different media player simultaneously. But one problem I faced that none of three can play t...
11
votes
2answers
10742 views

VideoView getDrawingCache is returning black

So I'm trying to do a screen shot of a VideoView. I figured the easiest way would be: videoView.setDrawingCacheEnabled(true); Then when I need to take a screenshot: Bitmap screenshot = videoView.g...
22
votes
6answers
57810 views

Full screen videoview without stretching the video

I wonder if I can get a way to let video run via videoview in full screen? I searched a lot and tried many ways such as: Apply theme in manifest: android:theme="@android:style/Theme.NoTitleBar.Ful...
11
votes
2answers
15754 views

Rotating an android VideoView

My application offers only Portrait mode. In a portrait activity I have a fullscreen VideoView. What I want to do is rotate the VideoView ( the actual video, videobuffer) 90 degrees at Landscape mode....
18
votes
6answers
20018 views

Can a videoview play a video stored on internal storage?

I'm trying to provide my users with the ability to use either external or internal storage. I'm displaying both images and videos (of a scientific nature). When storing the media on the SD card, all i...
30
votes
8answers
111404 views

how to play video from url

I am beginner in android development and try to play video from link. But it's giving error "sorry,we can't play this video". I tried so many links but for all links its show same error. My code is t...
23
votes
2answers
30426 views

Android MediaPlayer/VideoView error (1, -2147483648)

I've been having an inconsistent experience with setting a VideoView's video from a file path. VideoView myVideoView = findViewById(R.id.videoView); ... myVideoView.setVideoPath(videoFilename); ... m...
40
votes
3answers
54780 views

Using VideoView for streaming or progressive-download video

I'm confused about how VideoView can be used to play video: from a local file, as progressive download and streaming. This example work for me (on 1.5 and 2.0 at least) by downloading the file and pl...
28
votes
8answers
41983 views

Streaming Youtube Videos

I am writing an application to play youtube videos using streaming. First method: I am getting the RTSP URL to the video using GData APIs. Here is the code to play the RTSP url. VideoView mVideo...

Previous Next