Skip to content

Commit

Permalink
Fix rate setting logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jannemecek committed Feb 26, 2021
1 parent 383f5b3 commit 79f2fdc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Sources/Player.swift
Original file line number Diff line number Diff line change
Expand Up @@ -506,9 +506,8 @@ extension Player {
fileprivate func play() {
if self.autoplay || self._hasAutoplayActivated {
self.playbackState = .playing
self._avplayer.play()
self._avplayer.playImmediately(atRate: rate)
}
self._avplayer.rate = rate
}

/// Pauses playback of the media.
Expand Down

0 comments on commit 79f2fdc

Please sign in to comment.