Fix url retrieval to match updated getVideo JSON response schema (#48)
This commit is contained in:
Родитель
97064f9b1b
Коммит
32d79f0ee9
|
@ -133,8 +133,8 @@ export class Player extends BaseWidget {
|
||||||
} else {
|
} else {
|
||||||
const response = await videoInformation.json();
|
const response = await videoInformation.json();
|
||||||
// Init media API
|
// Init media API
|
||||||
MediaApi.baseStream = response.properties.streaming.archiveBaseUrl;
|
MediaApi.baseStream = response.properties.contentUrls.archiveBaseUrl;
|
||||||
MediaApi.liveStream = response.properties.streaming.rtspTunnelUrl;
|
MediaApi.liveStream = response.properties.contentUrls.rtspTunnelUrl;
|
||||||
|
|
||||||
// Authorize video
|
// Authorize video
|
||||||
await AvaAPi.authorize();
|
await AvaAPi.authorize();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче