@christianriedl/media 1.0.101 → 1.0.103
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/dist/mediaService.js
CHANGED
|
@@ -483,8 +483,8 @@ export class MediaService {
|
|
|
483
483
|
return res;
|
|
484
484
|
}
|
|
485
485
|
getTranscodeParams(useSatIp, width, height, screenWidth, quality) {
|
|
486
|
-
const par = { set: false, text: '', width: width, height: height, videoBitRate:
|
|
487
|
-
let qual =
|
|
486
|
+
const par = { set: false, text: '', width: width, height: height, videoBitRate: 4096, audioBitRate: 192, scaleFactor: 1 };
|
|
487
|
+
let qual = 1;
|
|
488
488
|
while (screenWidth < par.width || qual < quality) {
|
|
489
489
|
par.set = true;
|
|
490
490
|
par.scaleFactor = par.scaleFactor * 2;
|
package/package.json
CHANGED
package/src/views/MusicPage.vue
CHANGED
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
const heightStyle = computed<StyleValue>(() => { return { height: appState.bodyHeight.value + 'px', overflowY: 'auto' } });
|
|
16
16
|
const isMobile = appState.isMobile && (appState.device != EDevice.iPad);
|
|
17
17
|
const avatarSize = isMobile ? 64 : 128;
|
|
18
|
-
const supportsLocalMedia = authorize.checkScope(EScope.Media);
|
|
19
18
|
|
|
20
19
|
const router = useRouter();
|
|
20
|
+
const supportsLocalMedia = ref(authorize.checkScope(EScope.Media));
|
|
21
21
|
const playerNames = reactive<string[]>(['Local']);
|
|
22
22
|
const currentPlayer = ref('Local');
|
|
23
23
|
const items: IMediaItem[] = reactive([]);
|
|
@@ -78,9 +78,12 @@
|
|
|
78
78
|
selected.value = root;
|
|
79
79
|
items.splice(0, items.length, ...root.Folders);
|
|
80
80
|
computeListHeight();
|
|
81
|
-
if (supportsLocalMedia) {
|
|
81
|
+
if (supportsLocalMedia.value) {
|
|
82
82
|
const players = await playerService.getPlayers(EMediaType.Audio, true);
|
|
83
|
-
|
|
83
|
+
if (players && players.length > 0)
|
|
84
|
+
playerNames.splice(playerNames.length, 0, ...players);
|
|
85
|
+
else
|
|
86
|
+
supportsLocalMedia.value = false;
|
|
84
87
|
}
|
|
85
88
|
})
|
|
86
89
|
watch(appState.bodyHeight, () => computeListHeight());
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
<v-checkbox v-model="selectMode" hide-details label="Select Fotos"></v-checkbox>
|
|
86
86
|
</v-col>
|
|
87
87
|
<v-col cols="1">
|
|
88
|
-
<v-btn icon="$share" @click="onShare" ></v-btn>
|
|
88
|
+
<v-btn icon="$share" variant="tonal" @click="onShare" ></v-btn>
|
|
89
89
|
</v-col>
|
|
90
90
|
</v-row>
|
|
91
91
|
<v-row dense align="center">
|
package/src/views/VideosPage.vue
CHANGED
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
@update:modelValue="onQualityChange"
|
|
226
226
|
hide-details single-line>
|
|
227
227
|
</v-select>
|
|
228
|
-
<v-select v-if="playVisible" v-model="audioStream"
|
|
228
|
+
<v-select v-if="playVisible && !isMobile" v-model="audioStream"
|
|
229
229
|
:items="audioStreams"
|
|
230
230
|
persistent-hint
|
|
231
231
|
hide-details single-line>
|