Latest commit. Git stats commits. Failed to load latest commit information. View code. Dependency 2. In Layout 3. In Java 3. Orientation Management 4. Customize the player by adding some more features to your ExoPlayer app. You can go to the ExoPlayer website and learn more about the ExoPlayer. So, we have covered a lot about ExoPlayer in this blog.
But this is not all about ExoPlayer, there are a lot of other features of ExoPlayer. Instead of so many features, before using ExoPlayer, you must think of the features that your app requires i. So, explore more about ExoPlayer from here. Android Online Course for Professionals. Admin MindOrks 24th May Share this blog to spread the knowledge. Share on Facebook. Share on Twitter. Share on Reddit. Share on LinkedIn.
Share on Telegram. Playing downloaded content is similar to playing online content, except that data is read from the download Cache instead of over the network.
Instead, use ExoPlayer library classes as described below. To play downloaded content, create a CacheDataSource. Factory using the same Cache instance that was used for downloading, and inject it into DefaultMediaSourceFactory when building the player:.
If the same player instance will also be used to play non-downloaded content then the CacheDataSource. Factory should be configured as read-only to avoid downloading that content as well during playback. Once the player has been configured with the CacheDataSource. Factory , it will have access to the downloaded content for playback. Playing a download is then as simple as passing the corresponding MediaItem to the player.
A MediaItem can be obtained from a Download using Download. The example above makes the download cache available for playback of all MediaItem s. Adaptive streams e. There are often multiple tracks that contain the same content in different qualities e.
SD, HD and 4K video tracks. There may also be multiple tracks of the same type containing different content e. For streaming playbacks, a track selector can be used to choose which of the tracks are played. Summary Files Reviews. Project Samples. Project Activity. Categories Players , Video. License Apache License V2. Mit einem Experten sprechen. User Reviews Be the first to post a review of ExoPlayer! Report inappropriate content. Advanced Concepts.
Threading in WorkManager. App entry points. App shortcuts. App navigation. Navigation component. App links. Dependency injection. Core topics. App compatibility. Interact with other apps. Package visibility.
Intents and intent filters. User interface. Add motion to your layout with MotionLayout. MotionLayout XML reference. Improving layout performance. Custom view components. Look and feel. Splash screens. Add the app bar. Control the system UI visibility. Supporting swipe-to-refresh. Pop-up messages overview.
Adding search functionality. Creating backward-compatible UIs. Home channels for mobile apps. App widgets. Media app architecture. Building an audio app. Building a video app. The Google Assistant. Routing between devices. Background tasks. Manage device awake state.
0コメント