HTTP实时流传输中的m3u8文件的用途? [英] purpose of m3u8 file in HTTP live streaming?

查看:523
本文介绍了HTTP实时流传输中的m3u8文件的用途?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

m3u8文件是否在服务器中维护用于实时流传输的单个文件? MPMoviePlayerController是否足以进行实时流播以显示电视频道?还有其他可能性吗?我已验证 Apple文档

is m3u8 file a single file maintained in server for live streaming? is MPMoviePlayerController enough for live streaming to show a TV channel? what are the other possibilities? I have verified the Apple Document

推荐答案

m3u8文件是Apple HTTP实时(或VoD)流媒体的播放列表.它包含指向.ts文件的URL,这些文件通常每个音频/视频包含10秒. 您可以将.m3u8 URL放入iPhone的浏览器中,它将播放实时流. 这是实时流的.m3u8文件的示例内容:

The m3u8 file is the playlist for Apple HTTP live (or VoD) streaming. It contains URLs to the .ts files which normally contain 10 seconds of audio/video each. You can put the .m3u8 URL into the iPhone's browser and it will play the live stream. Here's the sample contents of a live stream's .m3u8 file:

#EXTM3U
#EXT-X-TARGETDURATION:10
#EXT-X-MEDIA-SEQUENCE:1
#EXTINF:10, no desc
media-000001.ts
#EXTINF:10, no desc
media-000002.ts
#EXTINF:10, no desc
media-000003.ts

这篇关于HTTP实时流传输中的m3u8文件的用途?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆