

You can read more about the lazy delegate here. In our case, this is in the onCreate callback of the activity. app/adle dependencies is a kotlin delegate for lazy initializing a value the first time it is used. Everything from the currently specified exoplayer-codelab-N module is merged when the app is built using a gradle dependency in app/adle. The app module is actually empty, having only a manifest. Screenshot: Project structure when importingĪfter the build finishes, you'll see six modules: the app module (of type application) and five modules with names exoplayer-codelab-N (where N is 00 to 04, each of type library). To get started, download the Android Studio project:Īlternatively, you can clone the GitHub repository: git clone Ĭloning or unzipping provides you with a root folder ( exoplayer-intro), which contains a single gradle project with multiple modules an app module and one for each step of this codelab, along with all the resources you need.
USING ANDROID AS MEDIA CENTER OS CODE
Non-relevant concepts and code blocks are glossed over and are provided for you to simply copy and paste. Note: This codelab is focused on ExoPlayer.

Moderate knowledge of Android development and Android Studio.Note: Read more about the pros and cons in the ExoPlayer developer guide. It is an open source project used by Google apps, including YouTube and Google Play Movies & TV. ExoPlayer is highly customizable and extensible, making it capable of many advanced use cases.
USING ANDROID AS MEDIA CENTER OS PLUS
It supports many of the same media formats as MediaPlayer, plus adaptive formats, such as DASH and SmoothStreaming. ExoPlayer has a number of advantages over the built-in MediaPlayer in Android. Note: ExoPlayer is the video player running in the Android YouTube app.ĮxoPlayer is an app-level media player built on top of low-level media APIs in Android.
