2011-12-15 95 views
0

我想对HTTP实时流。当我确认我的主人的播放列表,它给我上面的错误如何解决 “错误:(-12646:0)非法MIME类型:text/plain的”

我已经分割我的视频首先与

sudo /usr/bin/mediafilesegmenter -I -f Desktop/MyVideo Desktop/MyVideo.mp4

分割的音频只有

sudo /usr/bin/mediafilesegmenter -I -f Desktop/MyAudio -a Desktop/MyVideo.mp4

之后,我以创造主的播放列表variantplaylistcreator和我的最终链接是http://www.example.com/Apple/final.m3u8其中包含视频n音频只有两个流。

当我验证与

mediastreamvalidator validate http://www.example.com/Apple/final.m3u8

此链接它给了我这一点,把

Playlist Validation: 

Error: (-12646:0) Illegal MIME type: text/plain 

Segments: 

    OK 

如何解决这个错误?任何帮助?

预先感谢您.. !!

+0

您需要提供您所使用加载播放列表,是什么产生了播放列表等 –

+0

感谢名单为应对什么样的代码和库更多的信息。我编辑了代码。可能有助于理解。 – iUser

+0

任何帮助....? – iUser

回答

2

您需要修改Web服务器的配置,使得它提供了正确的MIME类型的M3U8文件。据this list of playlist formats,一个M3U播放列表(M3U8是M3U的UTF-8变体)应具有以下MIME类型之一:

Mime type:

audio/mpegurl (recommended)

audio/x-mpegurl

this technical note苹果说application/x-mpegurl应使用,所以我认为这是你最好的选择:

Screenshot of Apple Technical Note

假设你使用Apache(很可能)these instructions should help you configure the server correctly

+0

非常感谢你.. !! :) – iUser

相关问题