jellyfin-archive / jellyfin-client-ios

https://jellyfin.org
Mozilla Public License 2.0
28 stars 11 forks source link

Video Playback Rate #8

Open LeiHao0 opened 4 years ago

LeiHao0 commented 4 years ago

When Watching courses on the web, it usually can speed up at least to 2x

I read the Jellyfin-expo code found the video player was implemented by using <Webview>. In the expo doc, it didn't provide a way to change the video rate in <Webview>, which means it might need to change in jellyfin repo to do so.

Luckily inside the native iOS app can do something like this.

// for audio pitch
var playerItem: AVPlayerItem {
    let item = AVPlayerItem(asset: asset)
    item.audioTimePitchAlgorithm = AVAudioTimePitchAlgorithm.timeDomain
    return item
}
// ... 
player?.playImmediately(atRate: rate)

Here is the  Developer UI, there is a button on the top right corner to the rate.

Screen Shot 2020-06-29 at 12 06 02 PM

So, is there any plan to support the playback rate on the roadmap?