Need help resolving api error using embed_html

Hi guys,

I’m using the twitch api v5 to get some clips. I’m using php curl to get them. This works fine. I’m using the embed_html that’s returned. I edit it before echoing to add &autoplay=false which also works. The problem is every time I echo a clip I get this error in console:

Uncaught (in promise) DOMException: Failed to execute ‘postMessage’ on ‘Window’: Invalid target origin ‘’ in a call to ‘postMessage’.
at https://clips.twitch.tv/js/player.43e136462e48c037043b.js:42:565948
at Array.forEach ()
at e.value (https://clips.twitch.tv/js/player.43e136462e48c037043b.js:42:565926)
at e.value (https://clips.twitch.tv/js/player.43e136462e48c037043b.js:42:563477)
at https://clips.twitch.tv/js/player.43e136462e48c037043b.js:42:498563
at https://clips.twitch.tv/js/player.43e136462e48c037043b.js:42:481996
at https://clips.twitch.tv/js/player.43e136462e48c037043b.js:42:500255
at https://clips.twitch.tv/js/player.43e136462e48c037043b.js:42:481996
at https://clips.twitch.tv/js/player.43e136462e48c037043b.js:42:500071
at https://clips.twitch.tv/js/player.43e136462e48c037043b.js:42:481996
player.43e136462e48c037043b.js:42 Invalid quality ‘medium’. Available qualities: 360p30, 480p30, 720p60, 1080p60

When it’s just 1 error it doesn’t have an effect on the page but 12 of them forces chrome to go black for 1 second then displays all clips with a green colour as placeholder image.

Is there anything I can do to stop this error? am I doing something wrong? any help is much appreciated.

Edit: SOLVED. Hardware acceleration causes this I just needed to disable it but I should not display so many clips because usually your video card can not run that many decodes at the same time.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.