Я разрабатываю приложение для потоковой передачи и загрузки DRM, защищенных HLS -видео на основе официального «Fairplay Streaming Server SDK».
Когда я воспроизводит загруженное видео, оно просит сервер для .ts или .aac, даже Хотя я прошел путь загруженного видео в Avurlasset.
В результате воспроизведение не сбои, когда устройство не в автономном режиме, например, в режиме самолета. < /p>
// load
let path = ".../xxx.movpkg" // Path of the downloaded file
videoAsset = AVURLAsset(url: path)
playerItem = AVPlayerItem(asset: videoAsset!)
player.replaceCurrentItem(with: playerItem)
< /code>
// isPlayableOffline
print("videoAsset.assetCache.isPlayableOffline = \(videoAsset.assetCache.isPlayableOffline)") // true
< /code>
network log
This behavior depends on the playback time of the video and occurs when trying to download and play a video with a playback time of 19 hours or more.
It did not occur for videos with a playback time of 18 hours.
The environment we checked is iOS 18.3.
The solution at this time is to limit the video playback time to 18 hours, but if possible, we would like to allow download playback of videos longer than 19 hours.
Does anyone have any information or know of a solution to this problem, such as if you have experienced this type of event, or if you know that content longer than 19 hours cannot be played offline?
Подробнее здесь: https://stackoverflow.com/questions/794 ... loaded-hls
Почему я получаю запросы .ts и .aac на сервер при воспроизведении загруженного HLS? ⇐ IOS
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение