videoview

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 mVideoView = new VideoView(this); setContentView(mVideoView); mVideoView.setVideoURI(Uri.parse("rtsp://rtsp2.youtube.com/CiILENy73wIaGQkDwp...

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 playing it locally. But is it necessary to download the video before playing: is it possible to play video as progressive download, or by s...

Put any View over a VideoView in Android

It is possible to put any view over a VideoView? (I.e. put the control buttons over the video, like in vimeo). I'm trying to do it using FrameLayout, but I have not found the way, and I'm still not sure if what I'm trying to do something that's is simply not possible. ...

Problems with getting back from Actvity with VideoView

Hi I'm having a problem with the VideoView - launching activity with VideoView from another activity, video plays, press back - i'm in original activity. But sometimes then i came back from the Video activity - screen is frozen, until i go back again to another previous activity. In such case i see in the log 01-27 19:13:11.062: DEBUG/...

Problems with Acitivity LifeCycle with VideoView playback.

Hi all i've ran into another problems with VideoView. Then video is playing, and i put device asleep, using hard button, onPause is called. But it followed by 03-17 11:26:33.779: WARN/ActivityManager(884): Activity pause timeout for HistoryRecord{4359f620 com.package/com.package.VideoViewActivity} And then i have onStart/onResume ...

Android -- Can't play any videos (mp4/mov/3gp/etc.)?

Hello all, I'm having great difficulty getting my Android application to play videos from the SD card. It doesn't matter what size, bitrate, video format, or any other setting I can think of, neither the emulator nor my G1 will play anything I try to encode. I've also tried a number of videos from the web (various video formats, bitrate...

how to play video from url

i am biginner in android development and try to play video from link but it's give error "sorry,we can't play this video" i tride so many links but for all links its show same error. My code it follwing public class VideoDemo extends Activity { private static final String path ="http://demo.digi-corp.com/S2LWebservice/Resources/S...

Android Video View - Fails to Load file from SD Card

I have an activity that uses VideoView and MediaController. I have a .mp4 file. When I put the file in res/raw folder, I can play the video using Uri.parse("android.resource://<package>/" + R.raw.id_video) However, when I put the same file in the filesystem, it plays properly. I use videoView.setVideoPath("/sdcard/myfile.mp4"); ...

MultiView for media files on Android 2.1

Hello, I'd like to play multiple video files at the same time on Android 2.1 (up to 4). It's possible to reduce the resolution of the video files and display them all on the screen, but it seems only one file is playable at a time. I tried then to use threads in the hope that this might help, but it doesn't. Only one video is played. A...

Android Video Layout and backbutton to activity

I have an application where you can click on a button, this takes you to a new activity with four new buttons, listen, bio, ringtone, and watch. My watch button kicks off the following code: Button cmd_watchme = (Button)this.findViewById(R.id.watch); cmd_watchme.setOnClickListener(new View.OnClickListener() { public vo...

Is it possible to view multiple video files with android simultaneously ?

Hello, I would like to play three or more video streams on my Nexus One with the VideoView class (or other). Unfortunately the other streams always stop after I start the next video. Always one at the same time is playing, but not more - even if I use threads. Does anybody have an idea how to solve this? Thanks for help. ...

Android VideoView - Detect point of time in video

Hi all, I am using a VideoView to display a video. I am using setOnPreparedListener and setOnCompletionListener to do stuff before and after the video starts and ends. I was wondering how I could go about detecting some point of time in the video. For eg, say I want to write log to a file when the video has played for 10s. How can I d...

Android VideoView orientation change

I am having a VideoView playing video on my Android app. When I try it on the potrait orientation, the video fills the screen. But when I change the orientation to landscape, the video takes up only half the screen space. I am using FILL_PARENT, FILL_PARENT as the layout params. Is there a way I can have the video fill the screen in bot...

Android - Playing Mp4

I am trying to play video files from http urls in my app. Why is that my app plays only certain mp4 files (I tried 512k mp4 and it worked), and doesn't play some others? Here's the snippet of my code: mVideoView.setVideoPath(myVideoURL); mVideoView.setMediaController(new MediaController(this)); mVideoView.seekTo(currentPosi...

Android - Different ways of playing video

Hi All, I just came across the limitation of VideoView of not being able to play mp4 video files that are wider than 320 pixels. I was wondering how can we overcome these limitations. I am trying to make my app as forgiving as possible, so other than using VideoViews is there another way to play these mp4 videos? Chris ...

Android VideoView plays 2 videos at the same time

I ma trying to play a videoview on top of another video view. the first video view is paused, while the second is playing. It appears to work but no second video appears on he screen (though I hear the audio and see the controls that would normally appear on top). I am assuming this is some sort of Zorder issue. Any thoughts. By the...

Android - Buffering Lag with VideoView

I am using VideoView to display a video in my app. The problem is that, once the layout gets created there is lag of almost 10-30 seconds before which the video starts to play. I can see in LogCat that the video is buffering during the lag. Is there a way I can minimize this lag, or tell MediaPlayer to play the video sooner? Thanks Ch...

Android Show MediaController

I am adding MediaController to a VideoView, but it does not show up unless I tap the phone. The controller disappears after a while. Is there a way I can have the MediaController show always? Thanks Chris ...

Android Show image while video is buffering?

I have an app that displays a video using VideoView. The layout consists of a Clock and a VideoView laid out in a simple vertical LinearLayout. Here's my code snippet that I use: VideoView mVideoView = new VideoView(this); mVideoView.setVideoPath(myVideoURL); mVideoView.requestFocus(); mVideoView.start(); Since the buffering of the vi...

Android VideoView resume and seekTo

I am playing a Video using a VideoView in my app. On the click of a button, it records the current position of the video, and the app opens up the browser with some url. On pressing the back button, the app comes back to video app and resumes the video from where it left off. I looked at the Android Activity lifecycle and saw that onSta...