Disable audio only mode in livestreams.

This commit is contained in:
FireMasterK 2021-06-14 00:03:51 +05:30
parent 1460ea1688
commit e243adb111
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD

View File

@ -126,7 +126,10 @@ export default {
this.player = player;
if ((localStorage && localStorage.getItem("audioOnly") === "true") || this.$route.query.listen === "1")
if (
((localStorage && localStorage.getItem("audioOnly") === "true") || this.$route.query.listen === "1") &&
!this.video.livestream
)
this.player.configure("manifest.disableVideo", true);
player.load(uri).then(() => {