0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-22 11:15:14 +00:00

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

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",