Skip to content
This repository has been archived by the owner on Jul 25, 2019. It is now read-only.

"data-setup" attribute affects video playback on iPad and iPhone 6 #12

Open
demisx opened this issue Sep 16, 2016 · 1 comment
Open

Comments

@demisx
Copy link

demisx commented Sep 16, 2016

Hi,

When using data-setup attribute with HTML5 5.8.1 player (Advanced Mode), the video plays sound only on iPad and iPhone 6. See the embedded video html below. Is there a different way to pass these ga options without using the data-setup attribute? Please note these options are each instance specific and not something that can be configured at the player config level in the Brightcove Studio.

<video data-video-id="2323423423"
  data-account="23452342345"
  data-player="kjiuiuh32432"
  data-embed="default"
  data-application-id
  class="video-js"
  data-setup='{ "ga": {"eventCategory": "MOD Videos", "eventLabel": "Test Video"} }'
  controls
  style="width: 100%; height: 100%; position: absolute; top: 0px; bottom: 0px; right: 0px; left: 0px;">
</video>
@mister-ben
Copy link
Collaborator

Try giving the player an id attribute and set up the plugin in js: bc('id').ga({"eventCategory": "MOD Videos", "eventLabel": "Test Video"});

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants