mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-05 02:25:45 +02:00
Update:iOS HLS stream buffer set to 50s
This commit is contained in:
parent
6584cd1522
commit
ef1d8a8eb4
1 changed files with 3 additions and 0 deletions
|
@ -88,6 +88,9 @@ class AudioPlayer: NSObject {
|
|||
for track in playbackSession.audioTracks {
|
||||
if let playerAsset = createAsset(itemId: playbackSession.libraryItemId!, track: track) {
|
||||
let playerItem = AVPlayerItem(asset: playerAsset)
|
||||
if (playbackSession.playMethod == PlayMethod.transcode.rawValue) {
|
||||
playerItem.preferredForwardBufferDuration = 50
|
||||
}
|
||||
self.allPlayerItems.append(playerItem)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue