mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Allow replaying media
This commit is contained in:
parent
b9d625f16e
commit
501e6c1aed
1 changed files with 6 additions and 2 deletions
|
@ -1708,8 +1708,12 @@ impl HTMLMediaElementMethods for HTMLMediaElement {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Step 5.
|
// Step 5.
|
||||||
// FIXME(nox): Seek to earliest possible position if playback has ended
|
if self.Ended() && self.direction_of_playback() == PlaybackDirection::Forwards {
|
||||||
// and direction of playback is forwards.
|
self.seek(
|
||||||
|
self.earliest_possible_position(),
|
||||||
|
/* approximate_for_speed */ false,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
let state = self.ready_state.get();
|
let state = self.ready_state.get();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue