Search code examples
androidvideoandroid-videoview

Only loading video into VideoView without instantly playing


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?


Solution

  • 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().