@christianriedl/media 1.0.98 → 1.0.99
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/iMedia.d.ts +1 -1
- package/package.json +1 -1
- package/src/views/PhotoAlbumPage.vue +3 -2
package/dist/iMedia.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
let mouseTimer: number = -1;
|
|
38
38
|
let nameTimer: number = -1;
|
|
39
39
|
let nextIndex: number = -1;
|
|
40
|
+
let mediaUrlLength = mediaService.mediaUrl;
|
|
40
41
|
const showName = ref(false);
|
|
41
42
|
|
|
42
43
|
watch([appState.bodyHeight, appState.pageWidth], () => {
|
|
@@ -385,7 +386,7 @@
|
|
|
385
386
|
const item = items[index.value];
|
|
386
387
|
if (mediaAppConfig.useImagePreload) {
|
|
387
388
|
if (index.value != nextIndex) {
|
|
388
|
-
item.blob = "
|
|
389
|
+
item.blob = appConfig.urlPrefix + "img/Wait.png";
|
|
389
390
|
createBlob(item);
|
|
390
391
|
}
|
|
391
392
|
}
|
|
@@ -423,7 +424,7 @@
|
|
|
423
424
|
}
|
|
424
425
|
}
|
|
425
426
|
function createBlob (item: IPictureFile) {
|
|
426
|
-
const url = getUrl
|
|
427
|
+
const url = getUrl(item).substr(mediaUrlLength); // trim mediaserver url
|
|
427
428
|
mediaService.getImage(url)
|
|
428
429
|
.then((blob) => {
|
|
429
430
|
item.blob = window.URL.createObjectURL(blob);
|