videojs / videojs-contrib-ads

A Tool for Building Video.js Ad Plugins
http://videojs.github.io/videojs-contrib-ads/
Other
381 stars 257 forks source link

Player not wordking in post loop (WordPress) #502

Open Rob-Nengerman opened 4 years ago

Rob-Nengerman commented 4 years ago

Description

What happens is that only the first video out of the post loop is handled correctly. The rest do not display ads.

Steps to Reproduce

Load the following page: https://klankwijzer.tv/new-player/ the issue becomes apparent immediately.

Expected Results

Al the videos from the post loop should have a preroll.

Versions

videojs 7.5.6 videojs-contrib-ads 6.6.5

mister-ben commented 4 years ago

There's only one Video.js player on the page, the rest are plain video elements. All the video elements have the same id attribute, which is not valid HTML. You'll need to give them unique ids.