简体   繁体   English

JWPlayer Javascript文件加载

[英]JWPlayer Javascript Load of file

Can someone tell me why this script doesn't work, it used to work on JW Player 5.x but now when they updated JwPlayer it doesn't work... the error I get is: 谁能告诉我为什么这个脚本不起作用,它曾经在JW Player 5.x上起作用,但是现在当他们更新JwPlayer时它不起作用了……我得到的错误是:

"Error loading player: No playable sources found" “播放器加载错误:无可播放源”

Here is my code: PasteBin link 这是我的代码: PasteBin链接

I would very much appreciate it if someone helps me, I have worked on it more then a week now and it's not working... 如果有人帮助我,我将不胜感激,而我已经花了一个多星期的时间来解决这个问题,但是它却无法正常工作...

Right now I have the newest version of JWpLayer. 现在,我拥有最新版本的JWpLayer。

The whole point of this code is that the Javascript loads the link from: playlist_mysql.php 此代码的全部要点是Javascript从以下位置加载链接:playlist_mysql.php

and here is what is shown on: 这是显示在下面的内容:

playlist_mysql.php playlist_mysql.php

http://Example.com/mp3/2%20Unlimited%20-%20Jump%20For%20Joy.mp3|9|196|2 Unlimited|Jump for Joy http://Example.com/mp3/2%20Unlimited%20-%20Jump%20For%20Joy.mp3|9|196|2 Unlimited | Jump for Joy

where the the player has to load the link 玩家必须在哪里加载链接

and seek to the 9-th second and it has to refresh after: 196 seconds where it's going to load another link from playlist_mysql.php 并寻求第9秒,它必须在以下时间刷新:196秒,它将从playlist_mysql.php加载另一个链接

For JW6, you need to have a file loaded when the player first sets up. 对于JW6,您需要在播放器首次设置时加载文件。

Example: 例:

file: 'dummy.mp4',

That will fix the error you are getting. 这样可以解决您遇到的错误。

Also, 也,

container.sendEvent

Is for JW4. 适用于JW4。

If you want to adjust things you need to use our new API to do that - http://support.jwplayer.com/customer/portal/articles/1413089-javascript-api-reference 如果您想进行调整,则需要使用我们的新API来完成-http: //support.jwplayer.com/customer/portal/articles/1413089-javascript-api-reference

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM