We have a media player which gives the following error: (the media player works but the console error is annoying)
www-widgetapi.js:99 Failed to execute 'postMessage' on 'DOMWindow': The target origin provided (xxxx) does not match the recipient window's origin (yyyyy)
Is there some configuration I can change to enable this? The xxxx url is a youtube url with https at the begining
Thanks!
4 Answers, 1 is accepted
0
Hello Marc,
This error comes from the YouTube API, which is requested internally by the MediaPlayer widget. The error is usually observed if you are loading the YouTube video over http as compared to https. Could you confirm if this is the case on your side? Are you loading the page with the MediaPlayer over https? If not, try loading it over https and let us know if the message is still there.
Regards,
Tsvetina
Progress Telerik
This error comes from the YouTube API, which is requested internally by the MediaPlayer widget. The error is usually observed if you are loading the YouTube video over http as compared to https. Could you confirm if this is the case on your side? Are you loading the page with the MediaPlayer over https? If not, try loading it over https and let us know if the message is still there.
Regards,
Tsvetina
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which
deliver the business app essential building blocks - a grid component,
data visualization (charts) and form elements.
0

Marc
Top achievements
Rank 1
answered on 09 Jul 2018, 01:14 PM
Hello
Yes the URL has https at the beginning.
0
Hi Marc,
I tried this in the MediaPlayer demos and the error is actually seen there, too. I forwarded it to the development team and they will investigate the cause of the error in the demos. We will post again in this thread when we have more information.
Regards,
Tsvetina
Progress Telerik
I tried this in the MediaPlayer demos and the error is actually seen there, too. I forwarded it to the development team and they will investigate the cause of the error in the demos. We will post again in this thread when we have more information.
Regards,
Tsvetina
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which
deliver the business app essential building blocks - a grid component,
data visualization (charts) and form elements.
0
Hi Marc,
As my colleague Tsvetina mentioned the problem lies in the Google API. I have researched for possible solution but most of these suggest passing additional parameters when initializing the YouTube player. However our code currently does not expose a way to pass the parameters. That said the only way is to override one of our internal methods which is not recommended. Moreover it is not 100 sure that adding these parameters will resolve the matter as some of the times I was not able to reproduce the error when loading the video.
Since the problem lies in the Google API actually fallback I am not sure that you will experience problems such as stopping the video or preventing it from playing. If however such occur we will provide the necessary override for the part which initializes the player.
Regards,
Angel Petrov
Progress Telerik
As my colleague Tsvetina mentioned the problem lies in the Google API. I have researched for possible solution but most of these suggest passing additional parameters when initializing the YouTube player. However our code currently does not expose a way to pass the parameters. That said the only way is to override one of our internal methods which is not recommended. Moreover it is not 100 sure that adding these parameters will resolve the matter as some of the times I was not able to reproduce the error when loading the video.
Since the problem lies in the Google API actually fallback I am not sure that you will experience problems such as stopping the video or preventing it from playing. If however such occur we will provide the necessary override for the part which initializes the player.
Regards,
Angel Petrov
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which
deliver the business app essential building blocks - a grid component,
data visualization (charts) and form elements.