web-bugs icon indicating copy to clipboard operation
web-bugs copied to clipboard

us.battle.net - video doesn't play on click

Open ghost opened this issue 11 years ago • 5 comments

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

  1. Navigate to: https://us.battle.net/shop/en/product/heroes-of-the-storm-founders-pack?-
  2. Click video play button
  3. Video does not play
  4. 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

ghost avatar Feb 01 '15 21:02 ghost

@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.

karlcow avatar Feb 01 '15 23:02 karlcow

If you disable flash maybe this behavior happens? I have flash set as Click to play

ghost avatar Feb 02 '15 03:02 ghost

@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&amp;modestbranding=1&amp;rel=0&amp;showinfo=0&amp;enablejsapi=1&amp;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?

karlcow avatar Feb 02 '15 05:02 karlcow

Tested on Firefox version: 31 O.S: Ubuntu 14.04 (64-bit)

Works fine. not able to reproduce the bug.

sharonfrancis91 avatar Feb 04 '15 10:02 sharonfrancis91

Page is 404. Sorry to be slow responding.

hallvors avatar Jul 18 '15 09:07 hallvors