• Home
Name Date Size #Lines LOC

..--

entry/12-May-2024-378301

screenshots/device/12-May-2024-

.gitignoreD12-May-2024121 88

README.mdD12-May-2024659 189

README_zh.mdD12-May-2024886 2915

build-profile.json5D12-May-20241 KiB4341

hvigorfile.jsD12-May-2024174 21

package.jsonD12-May-2024370 1818

README.md

1# JsVideo
2
3### Introduction
4
5 This sample shows how to use the JS UI component **\<video>** to implement video playback. You can play a video and pause the playback through the control bar of the **\<video>** component.
6
7### Usage
8
91. Start the sample app. The **\<video>** component is displayed and the preset video is loaded. The video is not played currently.
10
112. Touch the play button on the control bar at the bottom to play the video. Touch the video screen to pause or resume the playback.
12
133. Touch and hold the video screen to exit the playback. The screen will be reloaded.
14
15### Constraints
16
17This sample can only be run on standard-system devices.
18

README_zh.md

1# 视频播放和管理
2
3### 简介
4
5 此Demo使用JS UI中的<video/>组件,实现视频播放。您可以通过video自带的控制栏进行播放、暂停等操作。实现效果如下:
6
7![main](screenshots/device/main.png)
8
9### 相关概念
10
11video:视频播放组件,通过在布局中使用video组件,设置播放视频内容的路径实现视频的播放。
12
13### 相关权限
14
15不涉及。
16
17### 使用说明
18
191.启动应用,界面展示<video/>组件,加载预置视频,此时视频处于暂停播放状态。
20
212.点击底部控制栏的播放按钮开始播放视频,点击视频会暂停或继续播放。
22
233.长按视频界面会退出播放状态,界面重新加载。
24
25### 约束与限制
26
271.本示例仅支持标准系统上运行。
28
292.本示例需要使用DevEco Studio 3.0 Beta4 (Build Version: 3.0.0.992, built on July 14, 2022)才可编译运行。