-
Notifications
You must be signed in to change notification settings - Fork 2
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
Extend API #170
Extend API #170
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.
Thanks for the contribution. A few comments to address, and please add a CHANGELOG.md entry - thanks!
Thanks @martinstark, I've started a conversation around existing vs new APIs separately. Re: Changelog: |
Sure! Since the PRs are built on top of each other I'll have a small rebase/force-push party to get it sorted once we agree to the finalized API. I'll move the changelog to the appropriate PR when that happens. |
Ah ok, missed that. I thought we'd merge this one, and then 171 would be just done against All good then, don't worry about the changelog. |
Since I'll likely need to make changes here I'll be doing the rebasing regardless, so I can make sure the changelog is in the correct place as part of that |
Hey @martinstark, |
7c042d7
to
037ad18
Compare
@dweinber new commits added, pr description updated |
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.
Code looks good, thanks for the updates!
Co-authored-by: Daniel Weinberger <dweinber@users.noreply.github.com>
Co-authored-by: Daniel Weinberger <dweinber@users.noreply.github.com>
Co-authored-by: Daniel Weinberger <dweinber@users.noreply.github.com>
Adds the following:
to test, call:
If the player is currently playing an ad, by default, the methods would return the position within the ad and the duration of the ad respectively. If the
TimeMode.AbsoluteTime
parameter is added, the methods will instead return the absolute time, ignoring ongoing ads.