Merge pull request #208 from ttshivers/default_volume

Default web play volume 100%
This commit is contained in:
Sam 2020-05-23 13:49:45 +10:00 committed by GitHub
commit 19b47eaa7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -147,7 +147,7 @@ export default {
fluid: true, fluid: true,
preload: 'auto', preload: 'auto',
volume: 0.5, volume: 1,
aspectRatio: '16:9', aspectRatio: '16:9',
autoplay: true, autoplay: true,
width: '100%', width: '100%',
@ -420,8 +420,8 @@ export default {
}); });
}, },
playerReadied(player) { playerReadied(player) {
// console.log('Setting volume to ' + this.$store.getters.getSettingPTPLAYERVOLUME ) // console.log('Setting volume to ' + this.$store.getters.getSettingPTPLAYERVOLUME)
this.player.volume(this.$store.getters.getSettings.PTPLAYERVOLUME || 0); this.player.volume(this.$store.getters.getSettings.PTPLAYERVOLUME || 100);
this.player.currentTime(this.initialOffset / 1000); this.player.currentTime(this.initialOffset / 1000);
}, },