mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Re-enables HLS support (can't use AVAsset for HTTP live stream media).
This commit is contained in:
@@ -89,7 +89,11 @@
|
||||
[self removePlayerItemObservers];
|
||||
|
||||
if (_asset) {
|
||||
_currentPlayerItem = [[AVPlayerItem alloc] initWithAsset:_asset];
|
||||
if ([_asset.tracks count]) {
|
||||
_currentPlayerItem = [[AVPlayerItem alloc] initWithAsset:_asset];
|
||||
} else {
|
||||
_currentPlayerItem = [[AVPlayerItem alloc] initWithURL:((AVURLAsset *)_asset).URL];
|
||||
}
|
||||
}
|
||||
|
||||
if (_currentPlayerItem) {
|
||||
|
||||
Reference in New Issue
Block a user