首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >使用EXT-X-MAP标记的任何m3u8播放列表示例

使用EXT-X-MAP标记的任何m3u8播放列表示例
EN

Stack Overflow用户
提问于 2012-10-16 02:44:37
回答 1查看 7.2K关注 0票数 7

标签是介绍在草案-09的HLS规范,没有任何例子。

代码语言:javascript
运行
复制
   3.4.13.  EXT-X-MAP   

   The EXT-X-MAP tag specifies how to obtain the Transport Stream PAT/  
   PMT for the applicable media segment.  It applies to every media 
   segment that appears after it in the Playlist until the next EXT-X-  
   DISCONTINUITY tag, or until the end of the playlist. 

   The EXT-X-MAP tag MUST NOT appear unless the Playlist also contains  
   the EXT-X-I-FRAMES-ONLY tag.  It is RECOMMENDED that the EXT-X-MAP   
   tag only be used for segments whose resource does not start with a   
   PAT/PMT. 

   Its format is:   

   #EXT-X-MAP:<attribute-list>  

   The following attributes are defined:    

   URI  

   The value is a quoted-string containing a URI that identifies a  
   resource that contains the Transport Stream PAT/PMT.  This attribute 
   is mandatory.    

   BYTERANGE    

   The value is a quoted-string specifying a byte range into the    
   resource identified by the URI attribute.  This range SHOULD contain 
   only the Transport Stream PAT/PMT.  The format of the byte range is  
   described in Section 3.4.1.  This attribute is optional; if it is not    
   present, the byte range is the entire resource indicated by the URI. 

   The EXT-X-MAP tag appeared in version 5 of the protocol. 
EN

回答 1

Stack Overflow用户

发布于 2015-05-09 08:56:27

PAT/PMT initalization 560main.mp4中的偏移0开始的示例

代码语言:javascript
运行
复制
#EXTM3U
#EXT-X-TARGETDURATION:5
#EXT-X-VERSION:7
#EXT-X-MEDIA-SEQUENCE:1
#EXT-X-PLAYLIST-TYPE:VOD
#EXT-X-KEY:METHOD=AES-128,URI="./slow_loading.php?delay=5&resource=crypt0.key",IV=0xbf9840dc7d7fa163301a6c38844d6239
#EXT-X-MAP:URI="main.mp4",BYTERANGE="560@0"
#EXTINF:4.96907,    
#EXT-X-BYTERANGE:25312@560
main.mp4
#EXTINF:4.96907,    
#EXT-X-BYTERANGE:25440@25872
main.mp4
#EXTINF:4.96907,    
#EXT-X-BYTERANGE:25440@51312
main.mp4
#EXTINF:4.96907,    
#EXT-X-BYTERANGE:25440@76752
main.mp4
...

来源

票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/12906820

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档