Video Player

Introduction

This sample shows how to play a video using VideoPlayer in eTS. It also provides an ability that can be invoked by other applications to play the video.

Usage

  1. Start the sample app. The home screen displays the local videos.

  2. Touch a video to enter the video playback screen. The video title is displayed on the top of the screen, the Pause, Previous, and Next buttons are displayed in the middle of the screen, and the playback progress bar is displayed at the bottom of the screen.

  3. Touch the Pause or Play button to pause or play the video.

  4. Touch the Previous or Next button to switch between videos.

Constraints

  1. This sample can only be run on standard-system devices.

  2. This sample demonstrates the stage model, which supports only API version 9.

  3. The DevEco Studio version used in this sample must be 3.0.0.900 or later.