mirror of
https://github.com/iv-org/videojs-quality-selector.git
synced 2024-11-26 23:20:38 +00:00
fix: update playbackRate after switching qualities
This commit is contained in:
parent
06b18e4a17
commit
f200d0102e
@ -16,6 +16,7 @@ module.exports = function(videojs) {
|
||||
function changeQuality(event, newSource) {
|
||||
var sources = player.currentSources(),
|
||||
currentTime = player.currentTime(),
|
||||
currentPlaybackRate = player.playbackRate(),
|
||||
isPaused = player.paused(),
|
||||
selectedSource;
|
||||
|
||||
@ -49,6 +50,7 @@ module.exports = function(videojs) {
|
||||
// player's `src` is updated but the player's `currentTime` has not yet
|
||||
// been set by the SafeSeek operation.
|
||||
player._qualitySelectorSafeSeek = new SafeSeek(player, currentTime);
|
||||
player.playbackRate(currentPlaybackRate);
|
||||
}
|
||||
|
||||
if (!isPaused) {
|
||||
|
Loading…
Reference in New Issue
Block a user