Skip to content

Commit

Permalink
dfpAdServerVideo: set vconp (continuous playblack on) when playbackme…
Browse files Browse the repository at this point in the history
…thod contains 7 (#12590)
  • Loading branch information
dgirardi authored Dec 18, 2024
1 parent 8686d9e commit d3f3696
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/dfpAdServerVideo.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export function buildDfpVideoUrl(options) {
return 'preroll';
}
},
vconp: () => Array.isArray(video?.playbackmethod) && video.playbackmethod.every(m => m === 7) ? '2' : undefined,
vconp: () => Array.isArray(video?.playbackmethod) && video.playbackmethod.some(m => m === 7) ? '2' : undefined,
vpa() {
// playbackmethod = 3 is play on click; 1, 2, 4, 5, 6 are autoplay
if (Array.isArray(video?.playbackmethod)) {
Expand Down
2 changes: 1 addition & 1 deletion test/spec/modules/dfpAdServerVideo_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ describe('The DFP video support module', function () {
video: {
playbackmethod: [7, 1]
},
expected: undefined
expected: '2'
}
],
vpa: [
Expand Down

0 comments on commit d3f3696

Please sign in to comment.