Skip to content

Commit b525d45

Browse files
committed
format: format some type
1 parent 6b9aac3 commit b525d45

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/app-plyr/src/controller.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,11 @@ export class Controller {
215215
console.log('[app plyr] willSyncPlayerState', volume, muted, playTimeState);
216216
if (isNumber(volume)) {
217217
// this.notSyncOperation.add('volume');
218-
this.player.volume = volume;
218+
this.player.volume = volume as number;
219219
}
220220
if (isBoolean(muted)) {
221221
// this.notSyncOperation.add('muted');
222-
this.player.muted = muted;
222+
this.player.muted = muted as boolean;
223223
}
224224
if (playTimeState) {
225225
const progressTime = this.progressTime / 1000;
@@ -497,7 +497,7 @@ export class Controller {
497497
if (this.player) {
498498
const playPermission = this.hasPermission('play');
499499
if (playPermission === 'sync' && this.forceSyncOperation.has('play')) {
500-
console.log('[app plyr] pause 0000, paused:', this.player?.paused);
500+
console.log('[app plyr] pause by sync, paused:', this.player?.paused);
501501
this.willActiveUpdatePlayTimeState();
502502
}
503503
this.forceSyncOperation.delete('play');

0 commit comments

Comments
 (0)