且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

HLS流无法在Apple设备上运行

更新时间:2023-01-04 09:20:20

播放器可能需要多路复用的视频和音频,因此请添加无声音轨。

The player might expect muxed video and audio so add a silent audio track.

Apple HLS文档说:


媒体段文件通常由流分段器生成,基于来自编码器的输入,由一系列.ts文件组成,包含携带H.264视频 AAC,MP3或AC-3音频的MPEG-2传输流段

The media segment files are normally produced by the stream segmenter, based on input from the encoder, and consist of a series of .ts files containing segments of an MPEG-2 Transport Stream carrying H.264 video and AAC, MP3, or AC-3 audio

技术说明TN2224 和协议的第7版修订版引入了对备用再现(unmuxed streams)的支持,但这是在控制播放的主播放列表中使用 EXT-X-MEDIA 标签完成(您的是媒体播放列表)。

Support for audio-only streams is mentioned in Technical Note TN2224 and the 7th revision of the protocol introduced support for alternate renditions (unmuxed streams) but this is done with EXT-X-MEDIA tags in a master playlist controlling the playback (yours is a media playlist).