diff --git a/vmall/model.md b/vmall/model.md
index f94325804273959f8ffba201ac62a136344eed0e..a896a97a2581947e921ebb9caad31ea6dfc80759 100644
--- a/vmall/model.md
+++ b/vmall/model.md
@@ -2,7 +2,7 @@
> [!ATTENTION] 使用模板时请将后面带有 (删除) 的语句删除。(删除)
-> 模板版本:v0.1.1
+> 模板版本:v0.1.2
<原库 npm 包名>
@@ -251,19 +251,37 @@ ohpm install
(填入相关权限配置)
+ **以下属性、静态方法、API 需要检查说明中手机平台描述,例如已支持鸿蒙的接口并且说明中提到 ios 和 android,那么需要检查是否补充harmony进到描述中。示例如下(删除)**
+
+ ```
+ // 原描述
+ Needed for Android to work properly with assets, iOS will ignore it.
+ // 修改后
+ Needed for Android and harmony to work properly with assets, iOS will ignore it.
+ ```
+(删除)
## 属性(如有)
| 名称 | 说明 | 类型 | 是否必填 | 原库平台 | 鸿蒙支持 |
+>[!tip] "鸿蒙支持"列为 yes 的属性表示支持鸿蒙平台,并且效果对标"原库平台"列中的 ios 或 android 的效果。
+
+| Name | Description | Type | Required | Platform | Harmony |
| ---- | ---- | ---- | -------- | -------- | -------- |
## 静态方法(如有)
| 名称 | 说明 | 类型 | 是否必填 | 原库平台 | 鸿蒙支持 |
+>[!tip] "鸿蒙支持"列为 yes 的方法表示支持鸿蒙平台,并且效果对标"原库平台"列中的 ios 或 android 的效果。
+
+| Name | Description | Type | Required | Platform | Harmony |
| ---- | ---- | ---- | -------- | -------- | -------- |
## API(如有,一般是 TurboModules)
| 名称 | 说明 | 类型 | 是否必填 | 原库平台 | 鸿蒙支持 |
+>[!tip] "鸿蒙支持"列为 yes 的 API 表示支持鸿蒙平台,并且效果对标"原库平台"列中的 ios 或 android 的效果。
+
+| Name | Description | Type | Required | Platform | Harmony |
| ---- | ---- | ---- | -------- | -------- | -------- |
## 遗留问题
@@ -277,4 +295,4 @@ ohpm install
本项目基于 [XXX License (XXX)](https://github.com/xxx/xxx/blob/main/LICENSE.md) ,请自由地享受和参与开源。
-例子:本项目基于 [The MIT License (MIT)](https://github.com/callstack/react-native-slider/blob/main/LICENSE.md) ,请自由地享受和参与开源。(删除)
+例子:本项目基于 [The MIT License (MIT)](https://github.com/callstack/react-native-slider/blob/main/LICENSE.md) ,请自由地享受和参与开源。(删除)
\ No newline at end of file
diff --git a/vmall/react-native-video.md b/vmall/react-native-video.md
index f5a750b4872a806a3eb9344f401fb513cfcff92b..404396a7634d697158aa43d763e7dfa865ece81a 100644
--- a/vmall/react-native-video.md
+++ b/vmall/react-native-video.md
@@ -321,7 +321,7 @@ ohpm install
```json
"dependencies": {
"rnoh": "file:../rnoh",
- "rnoh-slider": "file:../../node_modules/@react-native-oh-tpl/react-native-video/harmony/rn_video"
+ "rnoh-video": "file:../../node_modules/@react-native-oh-tpl/react-native-video/harmony/rn_video"
}
```
@@ -418,6 +418,23 @@ function CustomComponentBuilder(ctx: ComponentBuilderContext) {
...
```
+### 在 ArkTs 侧引入 RNCVideoPackage
+
+打开 `entry/src/main/ets/RNPackagesFactory.ts`,添加:
+
+```diff
+import type {RNPackageContext, RNPackage} from 'rnoh/ts';
+import {SamplePackage} from 'rnoh-sample-package/ts';
++ import { RNCVideoPackage } from 'rnoh-videoe/ts';
+
+export function createRNPackages(ctx: RNPackageContext): RNPackage[] {
+ return [
+ new SamplePackage(ctx),
++ new RNCVideoPackage(ctx)
+ ];
+}
+```
+
### 运行
点击右上角的 `sync` 按钮
@@ -445,7 +462,7 @@ ohpm install
| 名称 | 说明 | 类型 | 是否必填 | 原库平台 | 鸿蒙支持 |
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :----- | -------- | -------------------------------------------------------- | -------- |
-| `source` | Sets the media source. You can pass an asset loaded via require or an object with a uri. | object | Yes | All | yes |
+| `source` | Sets the media source. You can pass an asset loaded via require or an object with a uri. | object | Yes | All | partially
(仅支持网络适配) |
| `disableFocus` | Determines whether video audio should override background music/audio in Android devices.
**false (default)** | bool | No | Android Exoplayer | yes |
| `muted` | Controls whether the audio is muted.
**false (default)** - Don't mute audio | bool | No | All | yes |
| `paused` | Controls whether the media is paused.
**false (default)** - Don't pause the media | bool | No | All | yes |