FIX: Set volume only if it exists in localstorage
This commit is contained in:
parent
e2200f09d7
commit
66db710761
@ -80,6 +80,8 @@ class OwncastPlayer {
|
||||
startPlayer() {
|
||||
this.log('Start playing');
|
||||
const source = { ...VIDEO_SRC };
|
||||
|
||||
if (localStorage.getItem('owncastVolume') !== null)
|
||||
this.vjsPlayer.volume(localStorage.getItem('owncastVolume'));
|
||||
this.vjsPlayer.src(source);
|
||||
// this.vjsPlayer.play();
|
||||
|
Loading…
x
Reference in New Issue
Block a user