Problem with Windows/Browser widget/YouTube API video loading

Peter Bogdanoff bogdanoff at me.com
Tue May 26 03:06:02 EDT 2026


Hi LC people,

For my LC application "Music in the Air" I’m using the browser widget (of LiveCode 10.0.0) to play YouTube videos in an iFrame following their API. I’m also using JavaScript handlers to control the YT video player—play, pause, currentTime, seek, etc. The works great on MacOS.

However, when doing the same thing in Windows 11, when the YouTube video starts to load, the player shows an error: 

	Error 153, Video player configuration error.

YouTube’s  iFrame Player API doc explains:

	Error 153 – The request does not include the HTTP Referer header or equivalent API Client identification. See API Client Identity and Credentials for more information.

That page:
https://developers.google.com/youtube/terms/required-minimum-functionality#embedded-player-api-client-identity

explains:

	"API Clients that use the YouTube embedded player (including the YouTube IFrame Player API) must provide identification through the HTTP Referer request header. In some environments, the browser will automatically set HTTP Referer, and API Clients need only ensure they are not setting the Referrer-Policy in a way that suppresses the Referer value. YouTube recommends using strict-origin-when-cross-origin Referrer-Policy, which is already the default in many browsers."

Now, I’m supposing that the MacOS LC browser widget of LiveCode 10 has the HTTP Referer request header set, and the Windows widget does not.

Can that header be set in my HTML/JavaScript? And what would that header say?

I also suppose that the YouTube widget that’s part of LiveCode 11 has this taken care of. However that widget doesn’t have the interactive player functionality that I need, and right now the LiveCode player control in LC 11 doesn’t work reliably, and there are other issues with the player call backs in versions of LC 10 beyond the first release that force me to use ONLY 10.0.0.

Is there an updated LC 10 browser widget for Windows that has this fixed?

Any help with this would be greatly appreciated!

Peter Bogdanoff
ArtsInteractive



More information about the use-livecode mailing list