[swift] Swift에서 비디오 재생 시 재생 속도 변경하기
import AVFoundation

// AVPlayer 인스턴스 생성
let player = AVPlayer(url: URL(fileURLWithPath: "path_to_video"))

// 재생 속도 설정 (1.0은 정상 속도)
player.rate = 1.5

위의 예제에서는 AVPlayer를 사용하여 비디오를 재생하고, player.rate를 사용하여 재생 속도를 설정합니다. 1.0은 정상 속도이며, 이 값을 조정하여 비디오의 재생 속도를 변경할 수 있습니다.

비디오의 재생 속도를 변경함으로써, 사용자 경험을 향상시키거나 특정 시나리오에 맞게 비디오를 조절할 수 있습니다.

참조: https://developer.apple.com/documentation/avfoundation/avplayer/1388819-rate