Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Apologies if this belongs in the Media Module issues queue but is anyone else getting this Script error when you embed a YouTube video?
TypeError: Value not an object.
Comments
Comment #1
jonraedeke CreditAttribution: jonraedeke commentedI get this error as well, but only when I reference a YouTube video from a Galleria slideshow using Views, Views Slideshow(Galleria). The error appears in my console in Firefox each time the video leaves the stage during cycle or after I click on a different slide.
In the console it says:
TypeError: Value not an object.
And references:
"http://s.ytimg.com/yts/jsbin/www-embed-player-vflXN6WzI.js(line 216)"
function xk(a){a.k=!1;if(a.M)for(var b in a.j)a.M(b,a.j[b]);a.o=null;a.M=null;for(var c in a.g)a.g[c]=null;a.g.addEventListener=t(a.xb,a);a.g.removeEventListener=t(a.Fd,a);a.g.destroy=t(a.Dd,a);a.g.getPlayerType=t(a.Ed,a);a.g.writePlayer=t(a.pb,a);a.g.isReady=t(a.Gd,a)}g.Gd=function(){return this.k};g.Yb=function(){this.g.updateRemoteReceivers&&this.g.updateRemoteReceivers(fg())};
This does not appear to be a Media: YouTube module issue, because I'm just giving the view a YouTube url and Galleria embeds it. I don't see any reference to media-youtube in the markup. Leaving the issue here, because I'm not positive.
Comment #2
Devin Carlson CreditAttribution: Devin Carlson commentedClosing per #1 and I'm not able to duplicate this with a fresh install of the latest -dev.