-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat(ads): Add setVpaidMode to the ima externs #3135
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, let me run the buildbot, and please get back to me on the direct call to the setLocale() method.
google.ima.settings = {}; | ||
|
||
/** @param {string} locale */ | ||
google.ima.settings.setLocale = function(locale) {}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You deleted this bit because of duplication with line#180/183, is that correct?
Could you please manually verify that calling google.ima.settings.setLocale() still works/compiles correctly without it. If it does, I'm ok with deleting this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I changed the type of the google.ima.settings object so that it 'inherits' all of the ImaSdkSettings methods. That way they only need to be defined once in the ImaSdkSettings class. I was able to compile the code* and call google.ima.settings.setLocale('fr')
in the local Shaka Player demo app with these changes. Let me know if there's anything else that would be helpful for me to check.
*A note about compiling: I ran into the same issue that the build bot ran into where there was a missing trailing comma. It looks like that problem was introduced with 0845843. I have a local change that adds the comma, but didn't include it with this PR since it's an unrelated change
Test Failure:
|
Yup, the trailing comma thing is not your fault, we're addressing it. |
There was another seemingly unrelated error that I also had made a local change for to get the build to work, but this was the last one:
I think this comes from 7137286. If I add:
to the shaka.text.ManifestGenerator.Stream class constructor then I'm able to build successfully with |
Sets the type of the google.ima.settings object extern to `google.ima.ImaSdkSettings` to avoid duplicating the defined methods. Also adds the setVpaidMode method and VpaidMode enum to the google.ima.ImaSdkSettings class extern.
I pulled 2371bd8 into my branch and rebased this change on top. Now |
Great. Looks like we have the build fixed. let me run the bot one more time. |
All tests passed! |
There we go. Merging. Thanks for the PR and for putting up with our build :) |
Thanks for the help! |
Sets the type of the google.ima.settings object extern to `google.ima.ImaSdkSettings` to avoid duplicating the defined methods. Also adds the setVpaidMode method and VpaidMode enum to the google.ima.ImaSdkSettings class extern.
Sets the type of the google.ima.settings object extern to
google.ima.ImaSdkSettings
to avoid duplicating the defined methods.Also adds the setVpaidMode method and VpaidMode enum to the
google.ima.ImaSdkSettings class extern.
Resolves #3134