us.battle.net - video doesn't play on click
URL: https://us.battle.net/shop/en/product/heroes-of-the-storm-founders-pack?- Browser / Version: Firefox 35.0 Operating System: Mac OS X 10.10 Problem type: Unknown Site owner: Unknown
Steps to Reproduce
- Navigate to: https://us.battle.net/shop/en/product/heroes-of-the-storm-founders-pack?-
- Click video play button
- Video does not play
- Inspector has error on click Empty string passed to getElementById().
Expected Behavior: Video plays for Firefox Actual Behavior: It does not play in Firefox but plays in all other browsers
@bkerensa Thanks for the report.
I have tested on a clean profile of Firefox 35.0.1 on Mac OS X 10.10. I didn't have any issues. Could you test again without any addons (if there was).
Thanks.
If you disable flash maybe this behavior happens? I have flash set as Click to play
@bkerensa thanks. So indeed setting flash to "always Ask". Clicking doesn't get us anywhere and the console displays:
Empty string passed to getElementById().
There are two events attached on this div.
function(b) {
MediaLightbox.showInlineProductVideo(b.delegateTarget);
}
so when we click, we call
MediaLightbox.showInlineProductVideo = function (b) {
var e = $(b);
var d = e.attr('data-video-id'),
c = e.attr('data-video-target');
e.attr('data-video-played', 'false');
if (d && c) {
var a = $('#' + c);
if (a.length) {
a.append('<div id="' + c + '_1"></div>');
return MediaLightbox._embedYouTubeVideo(d, c + '_1', function () {
e.hide();
a.show();
}, function (f) {
if (typeof _gaq !== 'undefined' && f.data === YT.PlayerState.PLAYING && e.attr('data-video-played') !== 'true') {
e.attr('data-video-played', 'true');
_gaq.push(['_trackEvent',
'Shop-product video play',
'Click-play',
Msg.productSlug || window.location.pathname]);
}
});
}
}
return undefined;
};
At a point this code is initialized
"<iframe xmlns="http://www.w3.org/1999/xhtml" width="100%" height="100%" id="productVideoFrame_1" frameBorder="0" allowfullscreen="1" title="YouTube video player" src="https://www.youtube.com/embed/usFxFa5E7N4?autoplay=1&modestbranding=1&rel=0&showinfo=0&enablejsapi=1&origin=https%3A%2F%2Fus.battle.net"></iframe><div xmlns="http://www.w3.org/1999/xhtml" id="productVideoFrame_1"></div>"
but the click event stops propagating and stays in limbo.
@hallvors an idea on how to fix it?
Tested on Firefox version: 31 O.S: Ubuntu 14.04 (64-bit)
Works fine. not able to reproduce the bug.
Page is 404. Sorry to be slow responding.