Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix rubicon video playersize issue #2791

Merged

Conversation

moonshells
Copy link
Contributor

Type of change

  • Bugfix

Description of change

video player size is always doubly wrapped, which means it's always an array of size array, need to read size from the inside array

@@ -532,7 +532,7 @@ function parseSizes(bid) {
if (hasVideoMediaType(bid)) {
let size = [];
if (typeof utils.deepAccess(bid, 'mediaTypes.video.playerSize') !== 'undefined') {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we are expecting an array this should be changed to check result with Array.isArray

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right, will add that checking

Copy link
Collaborator

@snapwich snapwich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@snapwich snapwich merged commit f52f9ef into prebid:master Jun 29, 2018
dluxemburg pushed a commit to Genius/Prebid.js that referenced this pull request Jul 17, 2018
* video player size is always doublely wrapped, need to read the size from the inside array

* switch priorities and add checking for array
florevallatmrf pushed a commit to Marfeel/Prebid.js that referenced this pull request Sep 6, 2018
* video player size is always doublely wrapped, need to read the size from the inside array

* switch priorities and add checking for array
StefanWallin pushed a commit to mittmedia/Prebid.js that referenced this pull request Sep 28, 2018
* video player size is always doublely wrapped, need to read the size from the inside array

* switch priorities and add checking for array
ghost pushed a commit to devunrulymedia/Prebid.js that referenced this pull request Jan 30, 2019
* video player size is always doublely wrapped, need to read the size from the inside array

* switch priorities and add checking for array
AlessandroDG pushed a commit to simplaex/Prebid.js that referenced this pull request Mar 26, 2019
* video player size is always doublely wrapped, need to read the size from the inside array

* switch priorities and add checking for array
AlessandroDG pushed a commit to simplaex/Prebid.js that referenced this pull request Mar 26, 2019
* video player size is always doublely wrapped, need to read the size from the inside array

* switch priorities and add checking for array
@robertrmartinez robertrmartinez deleted the fix_rubicon_video_playersize_issue branch July 5, 2023 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants