Add Invidious's listen=1 support.
This commit is contained in:
parent
b8ac67b7af
commit
1f03ce5c8a
1 changed files with 2 additions and 1 deletions
|
@ -105,7 +105,8 @@ export default {
|
|||
|
||||
this.player = player;
|
||||
|
||||
if (localStorage && localStorage.getItem("audioOnly")) this.player.configure("manifest.disableVideo", true);
|
||||
if ((localStorage && localStorage.getItem("audioOnly") === "true") || this.$route.query.listen === "1")
|
||||
this.player.configure("manifest.disableVideo", true);
|
||||
|
||||
player.load("data:application/dash+xml;charset=utf-8;base64," + btoa(dash)).then(() => {
|
||||
this.video.subtitles.map(subtitle => {
|
||||
|
|
Loading…
Reference in a new issue