Skip to content

Commit

Permalink
Merge pull request #43 from longgegege/sig
Browse files Browse the repository at this point in the history
style: 优化规范
  • Loading branch information
mingmingaini authored Jul 26, 2024
2 parents b7d1995 + 1ba3f13 commit 39cc8bc
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions harmony/rn_video/src/main/ets/controller/VideoController.ets
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,7 @@ export class VideoController {
* @return
*/
switchVideo(newUrl: string): void {
Logger.debug(TAG, `switchVideo, state ${JSON.stringify(this.avPlayer.state)}`);
this.bindState();
Logger.debug(TAG, `switchVideo, 100`);
Logger.debug(TAG, `switchVideo, state ${JSON.stringify(this.url)},new: ${JSON.stringify(newUrl)}`);
this.url = newUrl;
Logger.debug(TAG, `switchVideo, 200`);
Expand All @@ -276,11 +274,9 @@ export class VideoController {
Logger.debug(TAG, `switchVideo, 201 ,${this.url}`);
this.avPlayer.url = this.url;
} else {
Logger.debug(TAG, `switchVideo, 202 ,reset`);
this.avPlayer.reset();
Logger.debug(TAG, `switchVideo, 202 ,${this.url}`);
}
Logger.debug(TAG, `switchVideo, 300`);
Logger.debug(TAG, `switchVideo, state11 ${JSON.stringify(this.avPlayer.state)}`);
}

Expand Down Expand Up @@ -366,16 +362,13 @@ export class VideoController {
this.status === CommonConstants.STATUS_COMPLETED
) {
this.avPlayer.seek(this.seekTime, media.SeekMode.SEEK_CLOSEST);
Logger.debug(TAG, `avPlayer.seek`);
}
}

/* 初始化播放器状态 */
initProps(): void {

Logger.debug(TAG, `initProps repeat, ${JSON.stringify(this.playerThis.repeat)}`);
this.avPlayer.loop = this.playerThis.repeat;

this.mMuted = this.playerThis.muted;
this.preMutedVolume = this.playerThis.volume;
/* 更新音量 静音 -20231227 */
Expand Down

0 comments on commit 39cc8bc

Please sign in to comment.