Skip to content
This repository has been archived by the owner on Jun 22, 2021. It is now read-only.

feat(time): Add duration and currentTime property accessors #1

Merged
merged 1 commit into from
Jun 30, 2017

Conversation

Thomasvdam
Copy link
Member

This allows the player to get correct time information without waiting
for events to trigger. Part of meisterplayer/meisterplayer#36.

}

// Check whether we are allowed to seek forward.
if (this.blockSeekForward && targetTime > this.meister.currentTime) { return; }
if (this.blockSeekForward && targetTime > this.player.currentTime) { return; }
Copy link
Contributor

Choose a reason for hiding this comment

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

Zouden we dit niet misschien via een super functie kunnen oplossen o.i.d. Want ik heb t gevoel dat we dit ooit bij een media plugin gaan vergeten (Of dat een 3rd party plugin t vergeet) dat we functionaliteit verliezen?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good call, though this feels like a new issue to me.

Copy link
Member

Choose a reason for hiding this comment

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

This allows the player to get correct time information without waiting
for events to trigger. Part of meisterplayer/meisterplayer#36.
@Thomasvdam
Copy link
Member Author

Updated this branch and checked if everything still works. Is ready for review now @buttonfreak @FranklinWaller

@Thomasvdam Thomasvdam merged commit a79d6ff into master Jun 30, 2017
@Thomasvdam Thomasvdam deleted the feature/time-properties branch June 30, 2017 13:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants