Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

WebGL Game works great locally, but continually fails, lags on itch.io

A topic by TomorrowTV created Oct 22, 2023 Views: 572 Replies: 4
Viewing posts 1 to 3

I've gone through several iterations with my video-centric webGL game.  I'm using Visual Studio, not Unity as it is quite a simple build.  The constant error I recieve in the web console upon testing on itch.io (again, never any issues running locally though) is this:  

[Error] Blocked a frame with origin "https://tomorrowtv.itch.io" from accessing a frame with origin "https://v6p9d9t4.ssl.hwcdn.net". Protocols, domains, and ports must match.

I've certainly been able to use videos on itch with other projects.  Is there some simple matter that I'm over-looking?

here's the "game" in question:  https://tomorrowtv.itch.io/test

thanks everybody!

(+1)

I can hear the audio but there are no visuals.  The top half of the screen is black and the bottom half is dark grey

Same for me!  So the issue is that the audio of mp4 clips are indeed playing, so it's not a file path problem.  The visual just doesn't show up to the videos.  I'm stuck, no resources online for this problem.

Admin (1 edit)

It’s hard to say what could be the cause exactly, other than what is explicitly stated in the error message: You are trying to access the document object of the enclosing window of the game. This goes against the a browsers security restrictions. Either this is something you are doing explicitly or it’s something your game engine is doing.

You can also try using our CDN with modified headers, which may enable certain game engines to use functionality to improve their performance. You can learn more here: https://itch.io/t/2025776/experimental-sharedarraybuffer-support

thanks, I've tried utilizing, researching sharedarraybuffer, and still these sorts of errors come about:  

[Error] Blocked a frame with origin "https://itch.io" from accessing a frame with origin "https://html.itch.zone". Protocols, domains, and ports must match.

[Error] Failed to load resource: the server responded with a status of 403 (Forbidden) (script.js, line 0)

Again, there seems to be something that blocks the video or overall performance on itch.io's side, not repeatable locally.  Is there anyone that could assist or look into this further? 


Works: https://tomorrowtv.itch.io/portfolio

Doesn't Work:  https://tomorrowtv.itch.io/test

I'm truly stuck.  Don't know who to reach out to!

This topic has been auto-archived and can no longer be posted in because there haven't been any posts in a while.