UPDATE: Set volume on load
This commit is contained in:
@@ -83,8 +83,7 @@ class OwncastPlayer {
|
|||||||
this.log('Start playing');
|
this.log('Start playing');
|
||||||
const source = { ...VIDEO_SRC };
|
const source = { ...VIDEO_SRC };
|
||||||
|
|
||||||
if (getLocalStorage(PLAYER_VOLUME) !== null)
|
this.vjsPlayer.volume(getLocalStorage(PLAYER_VOLUME) || 1);
|
||||||
this.vjsPlayer.volume(getLocalStorage(PLAYER_VOLUME));
|
|
||||||
this.vjsPlayer.src(source);
|
this.vjsPlayer.src(source);
|
||||||
// this.vjsPlayer.play();
|
// this.vjsPlayer.play();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user