Extending Video Playback in Your Packtflix App
Have you ever wanted your users to continue enjoying their favorite videos even when they switch apps or turn off the screen? This chapter dives deep into the world of extended video playback on Android, bringing you the skills to create a more engaging and versatile user experience.
We’ll be exploring two key functionalities: picture-in-picture (PiP) mode and media casting. With PiP, you’ll learn how to create a miniature video player that overlays other apps, allowing users to keep an eye on the video while multitasking. With media casting, we’ll use MediaRouter
and the Cast SDK, which enable users to transfer the video playback to a larger screen, such as a TV with Google Chromecast.
By the end of this chapter, you’ll have gained a solid understanding of the PiP functionalities and unlocked the potential of extended video playback in our Android app.
So, in this chapter, we will cover the following...