Skip to content

Commit

Permalink
fix:setseektime() value m to ms. (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
hu authored Dec 14, 2023
1 parent d7d96c1 commit 36d675d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 25 deletions.
Binary file modified harmony/rn_video.har
Binary file not shown.
2 changes: 1 addition & 1 deletion harmony/rn_video/oh-package.json5
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
"name": "rnoh-video",
"description": "",
"main": "index.ets",
"version": "0.0.5",
"version": "0.0.6",
"dependencies": {}
}
6 changes: 3 additions & 3 deletions harmony/rn_video/src/main/ets/controller/VideoController.ets
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ export class VideoController {
*/
setSeekTime(value: number) {
Logger.info(`RNOH in ctrl setSeekTime== ${JSON.stringify(value)}`);
this.seekTime = value;
this.seekTime = value*1000;
Logger.info(`RNOH in ctrl setSeekTime== ${this.seekTime}`);
/* seek 只能在prepared/playing/paused/complete状态调用 毫秒(ms)*/
if (this.status === CommonConstants.STATUS_PREPARED ||
Expand Down Expand Up @@ -380,7 +380,7 @@ export class VideoController {
/* 更新音频流类型 */
this.watchStatus();
} else {
Logger.info(`RNOH in ctrl, updateProp ${JSON.stringify(this.avPlayer)}`);
Logger.info(`RNOH in ctrl, updateProp : ${JSON.stringify(this.avPlayer)}`);
}

}
Expand Down Expand Up @@ -606,4 +606,4 @@ export class VideoController {
}
}

}
}
20 changes: 0 additions & 20 deletions harmony/rn_video/src/main/module.json

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-native-oh-tpl/react-native-video",
"version": "5.2.1-0.0.5",
"version": "5.2.1-0.0.6",
"description": "A <Video /> element for react-native",
"harmony": {
"alias": "react-native-video"
Expand Down Expand Up @@ -66,6 +66,7 @@
"lib",
"windows",
"harmony/rn_video.har",
"harmony/rn_video",
"FilterType.js",
"DRMType.js",
"TextTrackType.js",
Expand Down

0 comments on commit 36d675d

Please sign in to comment.