open in vlc (downloading)

allows you to "download" by opening the video in VLC video player

also this was surprisingly easy lol
This commit is contained in:
Sushi 2022-06-12 20:34:06 -06:00
parent 17a5a42bfd
commit 40d4586912
1 changed files with 12 additions and 0 deletions

View File

@ -367,6 +367,12 @@ export default {
dialogTitle: "Share video",
});
},
vlc() {
this.$youtube.showToast("Opening in VLC");
// redirect to vlc://url
window.location.href = "vlc://" + this.video.availableResolutions[this.video.availableResolutions.length-1].url;
},
sendWatchTime() {
const player = this.$refs.player.getPlayer();
const rt = Math.floor(Date.now() / 1000) - this.startTime;
@ -435,6 +441,12 @@ export default {
actionName: "enqueue",
disabled: true,
},
{
name: "Open in VLC",
icon: "mdi-traffic-cone",
actionName: "vlc",
disabled: false,
},
// {
// name: "Quality",
// icon: "mdi-high-definition",