O'Reilly logo

Android Apps for Absolute Beginners by Wallace Jackson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter     11

Digital Video: Streaming Video, MediaPlayer, and MediaController classes

In the previous chapter on 2D Animation, we covered implementing motion graphics in Android and using digital image file formats such as PNG or JPEG in conjunction with XML constructs to create frame-based animation.

There is another way that you can play a series of frames in Android, called “digital video.” Digital video assets are especially well-suited for situations when you have hundreds or even thousands of frames, and cannot easily handle them all using an Android AnimationDrawable class. Additionally, digital video can be “streamed” over a network connection, which 2D animation assets cannot, and thus your new media can be external to your application. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required