dongxiequ3724 2015-06-18 17:10
浏览 129
已采纳

JWPlayer Javascript加载文件

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:

"Error loading player: No playable sources found"

Here is my code: PasteBin link

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.

The whole point of this code is that the Javascript loads the link from: playlist_mysql.php

and here is what is shown on:

playlist_mysql.php

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

  • 写回答

1条回答 默认 最新

  • dongshuzhuo5659 2015-06-18 19:29
    关注

    For JW6, you need to have a file loaded when the player first sets up.

    Example:

    file: 'dummy.mp4',
    

    That will fix the error you are getting.

    Also,

    container.sendEvent
    

    Is for 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

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 运筹学中在线排序的时间在线排序的在线LPT算法
  • ¥30 求一段fortran代码用IVF编译运行的结果
  • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
  • ¥15 lammps拉伸应力应变曲线分析
  • ¥15 C++ 头文件/宏冲突问题解决
  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
  • ¥15 请问Lammps做复合材料拉伸模拟,应力应变曲线问题
  • ¥30 python代码,帮调试,帮帮忙吧