[SOLVED] YouTube Fails To Stream on Mobile App

Hi Meteorites

The youtube embed for ex: https://www.youtube.com/embed/Y9XZQO1n_7c does not stream in the mobile app. The images are showing fine, but clicking on the play button only shows the spinning dots and no stream.

– these are the rules I have added to the mobile-config
App.accessRule(‘https://.youtube.com/’);
App.accessRule(‘https://youtube.com/’);
App.accessRule(‘https://ytimg.com/’);
App.accessRule(‘https://.ytimg.com/’);

App.accessRule(“https://.doubleclick.net/”);
App.accessRule(“https://.gstatic.com/”);
App.accessRule(“https://.googlevideo.com/”);
App.accessRule(“https://.googlevideo.com/”, “navigation”);
App.accessRule(“https://.doubleclick.net/”, ‘navigation’);
App.accessRule(“https://.gstatic.com/”, “navigation”);

App.accessRule(‘https://.youtube.com/’, ‘navigation’);
App.accessRule(‘https://youtube.com/’, ‘navigation’);
App.accessRule(‘https://ytimg.com/’, ‘navigation’);
App.accessRule(‘https://.ytimg.com/’, ‘navigation’);

— this is the kind of error that is received
cannot load https://r4—sn-jtu5-aj5e.googlevideo.com/[…]. The ‘Access-Control-Allow-Origin’ header has a value ‘https://r4—sn-jtu5-aj5e.googlevideo.com’ that is not equal to the supplied origin. Origin ‘https://www.youtube.com’ is therefore not allowed access.

Can someone please point out what the error could be.

Cheers
raskal

Answering my own question:

The settings above do work. I had only done a hot push. Changing mobile-config requires the app to be updated.

Cheers
raskal