How to change the play speed rate on AVPlayer (swift)

player = AVPlayer.init(playerItem: playerItem)
player?.play()
player = AVPlayer.init(playerItem: playerItem)
player?.rate = 0.7
player?.play()
player = AVPlayer.init(playerItem: playerItem)
player?.play()…

--

--

--

Majored in Physics, self-taught and worked in the IT industry as a Dev/Design/Planning for 11 years. And I had run my Startup for 3 years. I fancy a ☔️ 🇬🇧

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

“Attempt to create two animations for cell”Error handling

Apple Watch 8 Bug: SwiftUI Navigation Stack pops back with TabView

How to create a re-usable Star Rating View in SwiftUI?

“unable to authenticate with app store connect” error handling

Fix for the error: “You can’t hide a control that has the focus” in Microsoft Access

Vite App iOS Ver. 3.8.0 Released

SwiftUI: Displaying Mathematical Fractions

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Fredric Cliver

Fredric Cliver

Majored in Physics, self-taught and worked in the IT industry as a Dev/Design/Planning for 11 years. And I had run my Startup for 3 years. I fancy a ☔️ 🇬🇧

More from Medium

Reference Type VS Value Type -Swift

Do you know you can test the Apple Push Notification service (APNs) in Simulator?

Supporting Accessibility in your iOS app

Managing different designs for landscape and portrait mode