A (175)

(Tuis.) #1
CHAPTER 11: Digital Video: Streaming Video, MediaPlayer, and MediaController classes 433

Figure 11-28. Add the videoPlayer.start( ) method call to finish implementation of a VideoView and start playback


Figure 11-27. Go into AndroidApps\AVIs folder, and make sure .MP4 file is named flyover.mp4 (all lower case)



  1. Once you’ve applied the preset to your flyover.avi file, as shown in
    Figure 11-26, you can click the Squeeze It! Button to create the flyover.mp4
    file using the codec preset that you just designed. This will create the video
    asset, as you can see on the right side of Figure 11-27.

  2. Open your operating system’s file management software (on Windows 8.1 it’s
    Explorer) and find your Terragen3 projects folder, and your AndroidApps\AVIs
    sub-folder, and rename the FlyOver_480x800p MPEG-4 file that Squeeze
    saved out for you flyover.mp4 (using all lower case letters, as is required by
    Android OS), as is shown in Figure 11-28.

  3. Next, right-click on the flyover.mp4 file and Copy it to the OS clipboard, so
    that you can Paste it into the /res/raw folder, if you have not already done
    that using this book assets repository, that is!

Free download pdf