views:

52

answers:

1

Hi there,

I got a question is it possible in Android to load the video data into a VideoView without it instantly starting to play?? If so, how could I do that?

Thank you.

A: 

VideoView will not start playback automatically, at least if you have a MediaController attached. You need to call start() to have it start playback. Hence, if you do not want it to start playback, do not call start().

CommonsWare
The only problem I got now is that the Video doesn't show at all in the view, what I mean is that I would like it to show up (only the first frame) and have controls (play/pause, stop, forward and backward) right underneath it...
kivy
`MediaController` is a pop-up thing -- the user has to tap your `VideoView` for it to appear. If you want always-visible controls, you probably have to do that yourself. See http://github.com/commonsguy/vidtry for a project using `MediaPlayer` and a `SurfaceView` with a custom "controller" panel. With respect to the first frame, other than starting playback, you have no way to force that frame to display, AFAIK.
CommonsWare