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:
parent
17a5a42bfd
commit
40d4586912
1 changed files with 12 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue