Post

Replies

Boosts

Views

Activity

HLS AVPlayer modify master manifest
Hi, I am using AVPLayer for play HLS video(live, vod). Is there any possibility to modify master manifest on the fly? The goal to remove some of variants from the playlist. Example: We have master manifest which contains several variants: #EXTM3U #EXT-X-STREAM-INF:BANDWIDTH=150000,RESOLUTION=416x234,CODECS="avc1.42e00a,mp4a.40.2" http://example.com/low/index.m3u8 #EXT-X-STREAM-INF:BANDWIDTH=240000,RESOLUTION=416x234,CODECS="avc1.42e00a,mp4a.40.2" http://example.com/lo_mid/index.m3u8 #EXT-X-STREAM-INF:BANDWIDTH=440000,RESOLUTION=416x234,CODECS="avc1.42e00a,mp4a.40.2" http://example.com/hi_mid/index.m3u8 #EXT-X-STREAM-INF:BANDWIDTH=640000,RESOLUTION=640x360,CODECS="avc1.42e00a,mp4a.40.2" http://example.com/high/index.m3u8 #EXT-X-STREAM-INF:BANDWIDTH=64000,CODECS="mp4a.40.5" http://example.com/audio/index.m3u8 And I want dynamically remove all variants except the last and have in the result: #EXTM3U #EXT-X-STREAM-INF:BANDWIDTH=64000,CODECS="mp4a.40.5" http://example.com/audio/index.m3u8 Thanks in advance for any help! PS: URLProtocol doesn't suitable for this https://developer.apple.com/forums/thread/75328
2
0
2.7k
Sep ’21
AVPLayer switch to Audio only playlist
Hello! I am using AVPLayer for play HLS-stream videos. But I want to switch player to audio only representation of video. For that purpose we have separate playlist in master manifest: ..... #EXT-X-STREAM-INF: Video playlists ........ #EXT-X-STREAM-INF:BANDWIDTH=123456, CODECS="mp4a.40.2", AUDIO="AACL" index.m3u8/blablabla ..... Is there any possibility to switch AVPLayer to play this audio manifest? PS: I have tried to set frame of PlayerView to 0x0 but it is not switch to audio only playlist and also disabling tracks not working because it is not file-based playing.
4
2
2.4k
Jan ’21