@christianriedl/media 1.0.241 → 1.0.242
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 +1 -1
- package/src/components/FileUpload.vue +2 -2
- package/src/components/PhotoDownload.vue +2 -2
- package/src/views/MusicPage.vue +2 -2
- package/src/views/OnlineRadiosPage.vue +2 -2
- package/src/views/OnlineTVsPage.vue +3 -3
- package/src/views/PhotoAlbumPage.vue +10 -11
- package/src/views/PhotosGridPage.vue +2 -2
- package/src/views/PhotosPage.vue +1 -1
- package/src/views/RecordedVideosPage.vue +1 -1
- package/src/views/ThumbnailsPage.vue +2 -2
- package/src/views/VideoPage.vue +1 -1
- package/src/views/VideosPage.vue +2 -2
package/package.json
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { inject, ref, computed, onMounted, onUnmounted } from 'vue';
|
|
3
3
|
import { Helper } from '@christianriedl/utils';
|
|
4
4
|
import { IRest, IRestResult, IValueResult, Rest } from '@christianriedl/rest';
|
|
5
|
-
import {
|
|
5
|
+
import { MediaServiceBin, getMediaBinSymbol } from '@christianriedl/media';
|
|
6
6
|
|
|
7
7
|
const props = defineProps<{ accept: string }>();
|
|
8
8
|
|
|
9
|
-
const getMediaService = inject(
|
|
9
|
+
const getMediaService = inject(getMediaBinSymbol)!;
|
|
10
10
|
const mediaService = getMediaService();
|
|
11
11
|
const feedBack = ref("");
|
|
12
12
|
const name = ref("");
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { inject, ref } from 'vue';
|
|
3
3
|
import { Helper } from '@christianriedl/utils';
|
|
4
|
-
import { IMediaFolder,
|
|
4
|
+
import { IMediaFolder, MediaServiceBin, IPictureFile, getMediaBinSymbol } from '@christianriedl/media';
|
|
5
5
|
|
|
6
6
|
const props = defineProps<{ folder: IMediaFolder, photos?: IPictureFile[] }>();
|
|
7
7
|
const emits = defineEmits<{ (e: 'close'): void }>();
|
|
8
8
|
|
|
9
9
|
const title = getTitle();
|
|
10
|
-
const getMedia = inject(
|
|
10
|
+
const getMedia = inject(getMediaBinSymbol)!;
|
|
11
11
|
const mediaService = getMedia();
|
|
12
12
|
|
|
13
13
|
enum Quality {
|
package/src/views/MusicPage.vue
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useRouter, useRoute } from 'vue-router';
|
|
5
5
|
import { IAppState, Helper, EDevice, EScope, appStateSymbol, IAppConfig, appConfigSymbol } from '@christianriedl/utils';
|
|
6
6
|
import { Authorize, authorizeSymbol } from '@christianriedl/rest';
|
|
7
|
-
import { EItemType, EMediaType, IMediaFolder, IMediaItem, IAudioFile,
|
|
7
|
+
import { EItemType, EMediaType, IMediaFolder, IMediaItem, IAudioFile, IMediaService, EPlayState, PlayerService,
|
|
8
8
|
IMediaAppConfig, getMediaBinSymbol, getPlayerSymbol } from '@christianriedl/media';
|
|
9
9
|
import FileUpload from '../components/FileUpload.vue';
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
const authorize = inject(authorizeSymbol)!;
|
|
13
13
|
const mediaAppConfig = inject(appConfigSymbol)! as unknown as IMediaAppConfig;
|
|
14
14
|
const getMediaService = inject(getMediaBinSymbol)!;
|
|
15
|
-
const mediaService = getMediaService()
|
|
15
|
+
const mediaService = getMediaService() ;
|
|
16
16
|
const getPlayerService = inject(getPlayerSymbol)!;
|
|
17
17
|
const playerService = getPlayerService();
|
|
18
18
|
const heightStyle = computed<StyleValue>(() => { return { height: appState.bodyHeight.value + 'px', overflowY: 'auto' } });
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import type { ComponentPublicInstance } from 'vue';
|
|
4
4
|
import { useRouter } from 'vue-router';
|
|
5
5
|
import { IAppState, EScope, EDevice, appStateSymbol, appConfigSymbol } from '@christianriedl/utils';
|
|
6
|
-
import { EItemType, EMediaType, IMediaFolder, IMediaItem,
|
|
6
|
+
import { EItemType, EMediaType, IMediaFolder, IMediaItem, IMediaService, IMediaAppConfig, getMediaBinSymbol } from '@christianriedl/media';
|
|
7
7
|
|
|
8
8
|
const appState = inject(appStateSymbol)!;
|
|
9
9
|
const mediaAppConfig = inject(appConfigSymbol)! as unknown as IMediaAppConfig;
|
|
10
10
|
const getMediaService = inject(getMediaBinSymbol)!;
|
|
11
|
-
const mediaService = getMediaService()
|
|
11
|
+
const mediaService = getMediaService() ;
|
|
12
12
|
const heightStyle = computed<StyleValue>(() => { return { height: appState.bodyHeight.value + 'px', overflowY: 'auto' } });
|
|
13
13
|
const isMobile = appState.isMobile && (appState.device != EDevice.iPad);
|
|
14
14
|
const avatarSize = isMobile ? 64 : 128;
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
import { useRouter } from 'vue-router';
|
|
5
5
|
import { IAppState, EScope, EDevice, appStateSymbol, appConfigSymbol, IValueText } from '@christianriedl/utils';
|
|
6
6
|
import { EpgCache, getEpgCacheSymbol } from '@christianriedl/epg';
|
|
7
|
-
import { EItemType, EMediaType, IMediaFolder, IMediaItem,
|
|
7
|
+
import { EItemType, EMediaType, IMediaFolder, IMediaItem, MediaServiceBin, IMediaService, getMediaBinSymbol, IMediaAppConfig, MediaHelper, ITranscodeParams, IVideoFile } from '@christianriedl/media';
|
|
8
8
|
|
|
9
9
|
const appState = inject(appStateSymbol)!;
|
|
10
10
|
const mediaAppConfig = inject(appConfigSymbol)! as unknown as IMediaAppConfig;
|
|
11
11
|
const getMediaService = inject(getMediaBinSymbol)!;
|
|
12
|
-
const mediaService = getMediaService()
|
|
12
|
+
const mediaService = getMediaService() ;
|
|
13
13
|
const getEpgCache = inject(getEpgCacheSymbol)!;
|
|
14
14
|
const epgCache = getEpgCache()!;
|
|
15
15
|
const heightStyle = computed<StyleValue>(() => { return { height: appState.bodyHeight.value + 'px', overflowY: 'auto' } });
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
if (!selected.value)
|
|
67
67
|
return;
|
|
68
68
|
if (mediaAppConfig.useSatIp) {
|
|
69
|
-
url = `${(mediaService as
|
|
69
|
+
url = `${(mediaService as MediaServiceBin).rest.serviceUrl}apistream/satipstream?channelName=${selected.value.name}&url=${encodeURIComponent(selected.value.url)}`;
|
|
70
70
|
if (audioStream.value != null)
|
|
71
71
|
url += `&audioStream=${audioStream.value}`;
|
|
72
72
|
if (params)
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import type { ComponentPublicInstance } from 'vue';
|
|
4
4
|
import { useRouter, useRoute } from 'vue-router';
|
|
5
5
|
import { IAppState, IAppConfig, EDevice, EDirection, Dictionary, Helper, appStateSymbol, appConfigSymbol } from '@christianriedl/utils';
|
|
6
|
-
import { EMediaType, EOrientation, EPictureFlags, IPictureFile, IMediaFolder,
|
|
6
|
+
import { EMediaType, EOrientation, EPictureFlags, IPictureFile, IMediaFolder, IMediaService, IMediaAppConfig, EPictureQuality,
|
|
7
7
|
MediaHelper, getMediaBinSymbol } from '@christianriedl/media';
|
|
8
8
|
|
|
9
9
|
const router = useRouter();
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
const appConfig = inject(appConfigSymbol)!;
|
|
13
13
|
const mediaAppConfig = appConfig as unknown as IMediaAppConfig;
|
|
14
14
|
const getMediaService = inject(getMediaBinSymbol)!;
|
|
15
|
-
const mediaService = getMediaService()
|
|
15
|
+
const mediaService = getMediaService() ;
|
|
16
16
|
const heightStyle = computed<StyleValue>(() => { return { height: appState.bodyHeight.value + 'px', overflowY: 'hidden' } });
|
|
17
17
|
const isMobile = appState.isMobile;
|
|
18
18
|
const infoDialog = ref(false);
|
|
@@ -52,15 +52,14 @@
|
|
|
52
52
|
if (carousel.value)
|
|
53
53
|
appState.fullScreenElement.value = carousel.value.$el as HTMLElement;
|
|
54
54
|
|
|
55
|
-
if (mediaAppConfig.useMediaBin) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
55
|
+
//if (mediaAppConfig.useMediaBin) {
|
|
56
|
+
const rc = await mediaService.initialize(EMediaType.Picture);
|
|
57
|
+
if (!rc)
|
|
58
|
+
return false;
|
|
59
|
+
//else {
|
|
60
|
+
// if (!mediaService.medialists["Picture.Event"])
|
|
61
|
+
// await (mediaService as MediaService).getLists(EMediaType.Picture);
|
|
62
|
+
//}
|
|
64
63
|
let list: IPictureFile[] = [];
|
|
65
64
|
if (route.query!.id) {
|
|
66
65
|
// by id usafe
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useRouter, useRoute } from 'vue-router';
|
|
5
5
|
import { IAppState, IAppConfig, EDevice, EBrowser, appStateSymbol, appConfigSymbol, Helper } from '@christianriedl/utils';
|
|
6
6
|
import { IRestResult, IValueResult } from '@christianriedl/rest';
|
|
7
|
-
import { EItemType, EMediaType, IMediaFolder, IMediaItem, IPhotoSelection,
|
|
7
|
+
import { EItemType, EMediaType, IMediaFolder, IMediaItem, IPhotoSelection, IMediaService,
|
|
8
8
|
getMediaBinSymbol, IMediaAppConfig, MediaHelper, LocationHelper
|
|
9
9
|
} from '@christianriedl/media';
|
|
10
10
|
import FileUpload from '../components/FileUpload.vue';
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
const appConfig = inject(appConfigSymbol)!;
|
|
15
15
|
const mediaAppConfig = appConfig as unknown as IMediaAppConfig;
|
|
16
16
|
const getMediaService = inject(getMediaBinSymbol)!;
|
|
17
|
-
const mediaService = getMediaService()
|
|
17
|
+
const mediaService = getMediaService() ;
|
|
18
18
|
//const heightStyle = computed<StyleValue>(() => { return { height: appState.bodyHeight.value + 'px', overflowY: 'auto' } });
|
|
19
19
|
const isMobile = appState.isMobile && (appState.device != EDevice.iPad);
|
|
20
20
|
const router = useRouter();
|
package/src/views/PhotosPage.vue
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
const appConfig = inject(appConfigSymbol)!;
|
|
14
14
|
const mediaAppConfig = appConfig as unknown as IMediaAppConfig;
|
|
15
15
|
const getMediaService = inject(getMediaBinSymbol)!;
|
|
16
|
-
const mediaService = getMediaService()
|
|
16
|
+
const mediaService = getMediaService();
|
|
17
17
|
const heightStyle = computed<StyleValue>(() => { return { height: appState.bodyHeight.value + 'px', overflowY: 'auto' } });
|
|
18
18
|
const isMobile = appState.isMobile && (appState.device != EDevice.iPad);
|
|
19
19
|
const router = useRouter();
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
const appConfig = inject(appConfigSymbol)!;
|
|
11
11
|
const mediaAppConfig = appConfig as unknown as IMediaAppConfig;
|
|
12
12
|
const getMediaService = inject(getMediaBinSymbol)!;
|
|
13
|
-
const mediaService = getMediaService()
|
|
13
|
+
const mediaService = getMediaService();
|
|
14
14
|
const getDvbService = inject(getDvbServiceSymbol)!;
|
|
15
15
|
const dvbService = getDvbService()!;
|
|
16
16
|
const heightStyle = computed<StyleValue>(() => { return { height: appState.bodyHeight.value + 'px', overflowY: 'auto' } });
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { useRouter, useRoute } from 'vue-router';
|
|
4
4
|
import { IAppState, appStateSymbol, IAppConfig, appConfigSymbol, EDevice, Helper } from '@christianriedl/utils';
|
|
5
5
|
import { IRestResult, IValueResult } from '@christianriedl/rest';
|
|
6
|
-
import { EOrientation, EMediaType, IMediaFolder, IPictureFile, IMediaService,
|
|
6
|
+
import { EOrientation, EMediaType, IMediaFolder, IPictureFile, IMediaService, IMediaAppConfig,
|
|
7
7
|
EPictureFlags, getMediaBinSymbol, MediaHelper
|
|
8
8
|
} from '@christianriedl/media';
|
|
9
9
|
import PhotoDownload from '../components/PhotoDownload.vue';
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
const appConfig = inject(appConfigSymbol)!;
|
|
13
13
|
const mediaAppConfig = appConfig as unknown as IMediaAppConfig;
|
|
14
14
|
const getMediaService = inject(getMediaBinSymbol)!;
|
|
15
|
-
const mediaService = getMediaService()
|
|
15
|
+
const mediaService = getMediaService() ;
|
|
16
16
|
const heightStyle = computed<StyleValue>(() => { return { height: appState.bodyHeight.value + 'px', overflowY: 'auto' } });
|
|
17
17
|
const isMobile = appState.isMobile && appState.device !== EDevice.iPad;
|
|
18
18
|
const router = useRouter();
|
package/src/views/VideoPage.vue
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
const appState = inject(appStateSymbol)!;
|
|
8
8
|
const mediaAppConfig = inject(appConfigSymbol)! as unknown as IMediaAppConfig;
|
|
9
9
|
const getMediaService = inject(getMediaBinSymbol)!;
|
|
10
|
-
const mediaService = getMediaService()
|
|
10
|
+
const mediaService = getMediaService() ;
|
|
11
11
|
const route = useRoute();
|
|
12
12
|
const router = useRouter();
|
|
13
13
|
|
package/src/views/VideosPage.vue
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useRouter, useRoute } from 'vue-router';
|
|
5
5
|
import { IAppState, EDevice, EScope, appStateSymbol, appConfigSymbol, IValueText } from '@christianriedl/utils';
|
|
6
6
|
import { Authorize, authorizeSymbol } from '@christianriedl/rest';
|
|
7
|
-
import { EItemType, EMediaType, IMediaFolder, IMediaItem, IVideoFile,
|
|
7
|
+
import { EItemType, EMediaType, IMediaFolder, IMediaItem, IVideoFile, IMediaService, MediaHelper,
|
|
8
8
|
getMediaBinSymbol, getPlayerSymbol, IMediaAppConfig, ITranscodeParams
|
|
9
9
|
} from '@christianriedl/media';
|
|
10
10
|
import { ISensorsState, sensorsStateSymbol } from '@christianriedl/smarthome';
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
const authorize = inject(authorizeSymbol)!;
|
|
16
16
|
const mediaAppConfig = inject(appConfigSymbol)! as unknown as IMediaAppConfig;
|
|
17
17
|
const getMediaService = inject(getMediaBinSymbol)!;
|
|
18
|
-
const mediaService = getMediaService()
|
|
18
|
+
const mediaService = getMediaService() ;
|
|
19
19
|
const getPlayerService = inject(getPlayerSymbol)!;
|
|
20
20
|
const playerService = getPlayerService();
|
|
21
21
|
const rendererName = "[TV] Samsung Q9 Series (75)";
|