Twitch видео, вставленное в iframe через src, выдает ошибки консоли - PullRequest
0 голосов
/ 18 апреля 2019

У меня есть встроенное видео в iframe на моей странице, где src является динамическим.

Код:

 <iframe src="https://player.twitch.tv/?autoplay=false&video=v410582421" 
 allowfullscreen></iframe>
 <iframe src="https://player.twitch.tv/?channel=summit1g" 
 allowfullscreen></iframe>

Issue: Видео работает как положено, но я вижу ошибки консоли, как показано ниже

Invalid operation: t.channel is not implemented
value @ player.c121e93a8ba044cc73a2.js:25.

Uncaught (in promise) DOMException: Failed to execute 'postMessage' on 
'Window': Invalid target origin '' in a call to 'postMessage'.
at https://player.twitch.tv/js/player.c121e93a8ba044cc73a2.js:35:683828
at Array.forEach (<anonymous>)
at e.value 
(https://player.twitch.tv/js/player.c121e93a8ba044cc73a2.js:35:683806)
at e.value 
(https://player.twitch.tv/js/player.c121e93a8ba044cc73a2.js:35:681357)

GET https://api.twitch.tv/kraken/user 401

failed to resolve properties promise Response {type: "cors", url: 
"https://api.twitch.tv/kraken/user", redirected: false, status: 401, 
ok: false, …}

Failed to load resource: the server responded with a status of 401 ().

Пожалуйста, дайте мне знать, почему я получаю эти ошибки и как я могу от них избавиться?

...