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

[Player API] Expose media timeline data #155

Merged
merged 4 commits into from Oct 17, 2018
Merged

Conversation

@ferjm
Copy link
Member

ferjm commented Oct 16, 2018

@ferjm
Copy link
Member Author

ferjm commented Oct 16, 2018

r? @ceyusa

if let Some(seconds) = position.seconds() {
let inner = inner_clone.lock().unwrap();
inner.notify(PlayerEvent::PositionChanged(seconds));
}

This comment has been minimized.

@ceyusa

ceyusa Oct 16, 2018

Contributor

by default it updates de position each 100 ms

I wonder if should configure the interval to 1sec to avoid CPU consumution

This comment has been minimized.

@ferjm

ferjm Oct 17, 2018

Author Member

I ended up setting the interval to 0.5 seconds. I run some tests with 1 second interval and I saw some position updates missing.

@ferjm ferjm force-pushed the ferjm:media.timeline branch from 99cd463 to 287ec7d Oct 17, 2018
@ceyusa
Copy link
Contributor

ceyusa commented Oct 17, 2018

r+

👍

@ferjm ferjm merged commit 069a5bb into servo:master Oct 17, 2018
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@ferjm ferjm deleted the ferjm:media.timeline branch Oct 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.