@christianriedl/media 1.0.220 → 1.0.221
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
const quality = ref(0);
|
|
28
28
|
let params: ITranscodeParams|null = null;
|
|
29
29
|
const paramsText = ref('');
|
|
30
|
+
const cloudUrl = ref('');
|
|
30
31
|
|
|
31
32
|
const backVisible = computed(() => selected.value.itemType != EItemType.VideoRoot);
|
|
32
33
|
const playVisible = computed(() => selected.value.itemType == EItemType.VideoItem || selected.value.itemType == EItemType.VideoBroadcast);
|
|
@@ -55,16 +56,22 @@
|
|
|
55
56
|
})
|
|
56
57
|
}
|
|
57
58
|
function play() {
|
|
58
|
-
let url = mediaService.getVideoUrl(selected.value.url);
|
|
59
59
|
let parSet = false;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
let url: string;
|
|
61
|
+
if (cloudUrl.value) {
|
|
62
|
+
url = cloudUrl.value;
|
|
63
63
|
}
|
|
64
|
-
|
|
65
|
-
url
|
|
66
|
-
|
|
67
|
-
|
|
64
|
+
else {
|
|
65
|
+
url = mediaService.getVideoUrl(selected.value.url);
|
|
66
|
+
if (audioStream.value) {
|
|
67
|
+
url += `?audioStream=${audioStream.value}`;
|
|
68
|
+
parSet = true;
|
|
69
|
+
}
|
|
70
|
+
if (params) {
|
|
71
|
+
url += parSet ? '&' : '?';
|
|
72
|
+
url += params.url;
|
|
73
|
+
parSet = true;
|
|
74
|
+
}
|
|
68
75
|
}
|
|
69
76
|
router.push({ path: 'video', query: { url: url, media: parSet ? selected.value.url : "" } });
|
|
70
77
|
}
|
|
@@ -107,6 +114,16 @@
|
|
|
107
114
|
await window.navigator.clipboard.writeText(url);
|
|
108
115
|
window.alert(`Created and Pasted : ${url} !`);
|
|
109
116
|
}
|
|
117
|
+
async function tryCloud() {
|
|
118
|
+
cloudUrl.value = await mediaService.getCloudUrl ("Recorded", selected.value.name);
|
|
119
|
+
if (cloudUrl.value) {
|
|
120
|
+
if (!paramsText.value.includes ("CLOUD"))
|
|
121
|
+
paramsText.value += " CLOUD";
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
alert ("Not found in cloud (OneDrive)");
|
|
125
|
+
}
|
|
126
|
+
}
|
|
110
127
|
</script>
|
|
111
128
|
|
|
112
129
|
<template>
|
|
@@ -134,6 +151,9 @@
|
|
|
134
151
|
persistent-hint
|
|
135
152
|
hide-details single-line>
|
|
136
153
|
</v-select>
|
|
154
|
+
<v-btn v-if="playVisible" @click.stop="tryCloud">
|
|
155
|
+
<v-icon size="x-large" icon="$weather" />
|
|
156
|
+
</v-btn>
|
|
137
157
|
<v-btn v-if="playVisible" @click.stop="play">
|
|
138
158
|
<v-icon icon="$play" />
|
|
139
159
|
</v-btn>
|