mirror of
https://github.com/VueTubeApp/VueTube
synced 2024-11-10 13:35:07 +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",
|
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() {
|
sendWatchTime() {
|
||||||
const player = this.$refs.player.getPlayer();
|
const player = this.$refs.player.getPlayer();
|
||||||
const rt = Math.floor(Date.now() / 1000) - this.startTime;
|
const rt = Math.floor(Date.now() / 1000) - this.startTime;
|
||||||
|
@ -435,6 +441,12 @@ export default {
|
||||||
actionName: "enqueue",
|
actionName: "enqueue",
|
||||||
disabled: true,
|
disabled: true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "Open in VLC",
|
||||||
|
icon: "mdi-traffic-cone",
|
||||||
|
actionName: "vlc",
|
||||||
|
disabled: false,
|
||||||
|
},
|
||||||
// {
|
// {
|
||||||
// name: "Quality",
|
// name: "Quality",
|
||||||
// icon: "mdi-high-definition",
|
// icon: "mdi-high-definition",
|
||||||
|
|
Loading…
Reference in a new issue