video.js的回调函数? [英] Callback function for video.js?

查看:209
本文介绍了video.js的回调函数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用video.js插件.我正在使用ajax从另一页加载另一堆视频,但我想再次调用javascript再次执行换肤操作.我的ajax完成加载到html后,是否可以使用回调函数?

I'm using the video.js plugin. I'm using ajax to load in another bunch of videos from another page but I want to call the javascript again to perform the skinning again. Is there a callback function I can use after my ajax has finished loading in the html?

具体来说,我要使用video.js编写的实际函数名称(如果有的话).即运行用来修饰视频的javascript.

To be specific I'm after the actual function name (if there is one) that video.js has made. ie the javascript which runs to dress up the videos.

推荐答案

Ajax成功调用了您可能可以使用的电话.

Ajax has a success call back you may be able to use.

$.ajax({ 
    type: "GET",
    url: url,
    success: function(data){
         //Call back stuff
    }
});

还有错误和其他回调可以使用.您可以在此处找到信息.

There are also, error and other callbacks you can use. You can find information on here.

如果您无权访问ajax事件,则仍可以绑定到成功回调.有关此操作的文档.

If you don't have access to the ajax event, you can still bind to the success call back. Here's documentation on how to do it.

这篇关于video.js的回调函数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆