@webitel/api-services 26.8.48 → 26.8.50
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
|
@@ -122,6 +122,11 @@ export const getCallMediaUrl = (
|
|
|
122
122
|
return `${baseUrl}/storage/recordings/${id}/${download ? 'download' : 'stream'}?access_token=${accessToken}`;
|
|
123
123
|
};
|
|
124
124
|
|
|
125
|
+
export const getMediaStreamUrl = (id: ApiId) => {
|
|
126
|
+
const accessToken = localStorage.getItem('access-token');
|
|
127
|
+
return `${baseUrl}/storage/media/${id}/stream?access_token=${accessToken}`;
|
|
128
|
+
};
|
|
129
|
+
|
|
125
130
|
export const getMediaUrl = (id: ApiId, isThumb: boolean = false) => {
|
|
126
131
|
const accessToken = localStorage.getItem('access-token'); // after auth token variable is null
|
|
127
132
|
const url = `${baseUrl}/storage/file/${id}/stream?access_token=${accessToken}&fetch_thumbnail=${isThumb}`;
|