mirror of
https://github.com/owncast/owncast.git
synced 2024-11-29 03:29:03 +03:00
FIX: Set volume only if it exists in localstorage
This commit is contained in:
parent
e2200f09d7
commit
66db710761
1 changed files with 3 additions and 1 deletions
|
@ -80,6 +80,8 @@ class OwncastPlayer {
|
||||||
startPlayer() {
|
startPlayer() {
|
||||||
this.log('Start playing');
|
this.log('Start playing');
|
||||||
const source = { ...VIDEO_SRC };
|
const source = { ...VIDEO_SRC };
|
||||||
|
|
||||||
|
if (localStorage.getItem('owncastVolume') !== null)
|
||||||
this.vjsPlayer.volume(localStorage.getItem('owncastVolume'));
|
this.vjsPlayer.volume(localStorage.getItem('owncastVolume'));
|
||||||
this.vjsPlayer.src(source);
|
this.vjsPlayer.src(source);
|
||||||
// this.vjsPlayer.play();
|
// this.vjsPlayer.play();
|
||||||
|
|
Loading…
Reference in a new issue