![]() For the sake of simplicity, we'll stick with what we find in the default Leanback template, VideoView. Most developers prefer to opt for a more powerful and feature-rich player, and for Fire TV, the usual choice is the Amazon-customized version of ExoPlayer. VideoView is a very basic video player that is perfect if you just want to display non-encrypted video files in an easy way. There are many different video players that can be used, but when you first deploy the Leanback-enabled project, the default video player is VideoView. On top of the video player is the PlaybackOverlayFragment, which is responsible for displaying all the media controls and managing the underlying content play back. The UI of the PlaybackOverlayActivity is simple: we have a full-screen video player that is responsible for playing the content. In a Leanback-enabled project, playing video content is performed within the PlaybackOverlayActivity. Other Features of Leanback-Enabled Projects.Main Components of the PlaybackOverlayActivity.Now, we will dig into the last part: how to play the video. We have followed the journey on Fire TV from browsing and content discovery to reading the details of specific content and performing an action. Install and Run the Debug APK to Test Your App.Install and Use the Amazon Web App Tester.Cordova plugin for Amazon Catalog Integration.Send Recommendations that Include Amazon Enhancements.Implement VoiceView Accessibility Features.Step 6: Play Video Content with the PlaybackOverlayFragment.Step 5: Provide the Details of the App Content Through the DetailsFragment.Step 4: Edit the User Interface Through Presenters.Step 3: Browse the Content of a Leanback-Enabled Android App.Step 2: Understand the Anatomy of a Leanback-Enabled Android App for Amazon Fire TV.How to Build an Android App for Fire TV.Deep Linking to Featured Content from the Fire TV UI. ![]()
0 Comments
Leave a Reply. |