@christianriedl/media 1.0.161 → 1.0.162

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@christianriedl/media",
3
- "version": "1.0.161",
3
+ "version": "1.0.162",
4
4
  "description": "RIC media interfaces",
5
5
 
6
6
  "main": "dist/index.js",
@@ -92,9 +92,13 @@
92
92
  selected.value = item;
93
93
  computeListHeight();
94
94
  if (mediaAppConfig.useSatIp) {
95
+ audioStreams.splice(0, audioStreams.count);
96
+ audioStream.value = 0;
95
97
  const mediaInfo = await mediaService.getSatIpProbe(item.name, item.url);
96
- const as = MediaHelper.getAudioStreams(mediaInfo);
97
- audioStreams.splice(0, audioStreams.length, ...as);
98
+ if (mediaInfo) {
99
+ const as = MediaHelper.getAudioStreams(mediaInfo);
100
+ audioStreams.splice(0, audioStreams.length, ...as);
101
+ }
98
102
  }
99
103
  const video = item as IVideoFile;
100
104
  params = MediaHelper.getTranscodeParams(mediaAppConfig.useSatIp, video.width, video.height, window.innerWidth, quality.value);
@@ -106,7 +106,7 @@
106
106
  }
107
107
  }
108
108
  function showPictures(folder: IMediaFolder) {
109
- if (folder.files) {
109
+ if (folder.itemType == EItemType.PictureAlbum) {
110
110
  selected.selectedAlbum = folder;
111
111
  router.push({ path: 'photoalbum', query: { id: folder.dlnaid } });
112
112
  }