Preventing WASM worker errors in console log when *not streaming*

0

Whenever a stream has stopped, but you are still accessing the page where the IVS player has been embedded, I get errors in the console. If I try to implement a couple of iframes in another page with IVS players, these error logs are multiplied by the amount of iframes, causing the browser to crash after a while (out of memory).

Is there a way to surpress the errors? We tried to find the source, but it appears it is caused by the WASM worker ... which we cannot modify.

Access to fetch at 'https://[xxx].eu-west-1.playback.live-video.net/api/video/v1/eu-west-1.[xxx].channel.[xxx].m3u8?player_version=1.8.0' from origin '[xxx]' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
FB
已提問 1 年前檢視次數 229 次
1 個回答
0

Hi FB! It looks like you are using an older version of the IVS player (1.8.0). If possible, you might want to upgrade to the latest player version (1.16.0).

The message you are seeing is likely caused by trying to call load() or play() on a channel that is not broadcasting. One possible approach would be to use fetch() to first check that the playlist URL does not return a 404 before calling load() or play() on the channel.

profile picture
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南