Add Invidious's listen=1 support.

This commit is contained in:
FireMasterK 2021-06-08 02:30:08 +05:30
parent b8ac67b7af
commit 1f03ce5c8a
No known key found for this signature in database
GPG Key ID: 8DFF5DD33E93DB58

View File

@ -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 => {