| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| AppScope/ | 12-May-2024 | - | 36 | 33 | ||
| entry/ | 12-May-2024 | - | 1,799 | 1,513 | ||
| screenshots/devices/ | 12-May-2024 | - | ||||
| .gitignore | D | 12-May-2024 | 121 | 8 | 8 | |
| README.md | D | 12-May-2024 | 967 | 25 | 12 | |
| README_zh.md | D | 12-May-2024 | 1.7 KiB | 34 | 17 | |
| build-profile.json5 | D | 12-May-2024 | 1 KiB | 43 | 41 | |
| hvigorfile.js | D | 12-May-2024 | 168 | 2 | 1 | |
| package.json | D | 12-May-2024 | 375 | 19 | 18 |
README.md
1# Video Player 2 3### Introduction 4 5This 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. 6 7### Usage 8 91. Start the sample app. The home screen displays the local videos. 10 112. 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. 12 133. Touch the **Pause** or **Play** button to pause or play the video. 14 154. Touch the **Previous** or **Next** button to switch between videos. 16 17 18### Constraints 19 201. This sample can only be run on standard-system devices. 21 222. This sample demonstrates the stage model, which supports only API version 9. 23 243. This sample requires DevEco Studio 3.0 Beta4 (Build Version: 3.0.0.992, built on July 14, 2022) to compile and run. 25
README_zh.md
1# 视频播放 2 3### 简介 4 5本示例展示了VideoPlayer播放视频,同时提供一个可供其他应用调用播放视频的Ability。实现效果如下: 6 7  8 9### 相关概念 10 11VideoPlayer:视频播放的主要工作是将视频数据转码并输出到设备进行播放,同时管理播放任务。本文将对视频播放全流程、视频切换、视频循环播放等场景开发进行介绍说明。 12 13### 相关权限 14 15读取公共媒体文件权限:ohos.permission.READ_MEDIA 16 17### 使用说明 18 191.启动应用,首页展示可以查询到的本地视频。若本地没有视频文件,可以push视频到本地媒体库路径(storage/media/100/local/files/Videos)下后测试,需要先hdc进入storage/media/100/local/files路径下查看是否有Videos文件夹,没有则需要mkdir Videos创建文件夹后push视频文件。 20 212.点击视频进入视频播放界面,点击**屏幕显示顶部标题**、**暂停**、**上一个**、**下一个**按钮和底部播放进度条。 22 233.点击**暂停**、**播放**按钮可以暂停和播放视频。 24 254.点击**上一个**和**下一个**按钮可以切换视频。 26 27 28### 约束与限制 29 301.本示例仅支持标准系统上运行。 31 322.本示例仅支持API9版本SDK,本示例涉及使用系统接口:getXComponentSurfaceId(),需要手动替换Full SDK才能编译通过,具体操作可参考[替换指南](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/quick-start/full-sdk-switch-guide.md)。 33 343.本示例需要使用DevEco Studio 3.0 Beta4 (Build Version: 3.0.0.992, built on July 14, 2022)才可编译运行。