当我尝试播放视频(由 PHP 应用程序流式传输)时,JW Player 5 返回以下错误:
队列在第 5 步失败:无法加载播放列表:播放列表文件不包含有效的播放列表
播放器设置:
jwplayer('container_id').setup({
  'flashplayer' => valid Flash player URL,
  'file' => link that will output a valid video content,
  'width' => 640,
  'height' => 360,
});
播放器下载整个视频文件,然后显示错误。当我将链接指向存储在 Amazon S3 上的同一视频文件时,视频可以正常播放。因此,我的假设是应用程序在提供文件时发送的标头组合导致 JW Player 认为它是播放列表,而不是视频文件。
服务器返回的标头:
Cache-Control   no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection  Keep-Alive
Content-Length  28169930
Content-Type    video/mp4
Date    Thu, 07 Nov 2013 14:36:46 GMT
Expires Thu, 19 Nov 1981 08:52:00 GMT
Keep-Alive  timeout=5, max=80
Pragma  no-cache
Server  Apache/2.2.24 (Unix) DAV/2 PHP/5.4.17 mod_ssl/2.2.24 OpenSSL/0.9.8y
Set-Cookie  …
X-Powered-By    PHP/5.4.17
先感谢您。