我试图让 JW Player 在 Meteor.js 中工作。我已经尝试过云托管和自托管,但无法让播放器显示。我不确定两者一起使用是否存在冲突。似乎它应该很简单,但我就是无法让它工作。任何建议都会很棒。
谢谢
<head>
<title>Mysite</title>
<script src="http://jwpsrv.com/library/mytoken.js"></script>
</head>
<body>
<div id='my-video'></div>
<script type='text/javascript'>
jwplayer('my-video').setup({
file: 'http://localhost:3000/mymp3.mp3',
width: '640',
height: '360'
});
</script>
</body>
这是我收到的错误消息:
资源解释为图像,但使用 MIME 类型 text/html 传输:"http://167.206.59.228/2-2573/a348fe94-6cbf-458f-8d56-8b69e6091c42_25.152.50.88/5.2.992971814237535". 167.206.59.228/:1
Request URL:http://167.206.59.228/2-2573/ec00f5c8-61a2-493b-a2e6-943f52ac381f_25.152.26.118/5.2.5313433578703552
Request Method:GET
Status Code:200 OK
Request Headersview source
Accept:*/*
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
Cache-Control:max-age=0
Connection:keep-alive
Host:167.206.59.228
Referer:http://localhost:3000/
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.110 Safari/537.36
Response Headersview parsed
HTTP/1.1 200 OK
Server: PorchLight/6.0.20061.1302
Content-Type: text/html; charset=utf-8
Connection: Close
Content-Length: 1