本文介绍了与Backbone.js的的Video.js - 不适用皮肤的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用backbonejs videojs 4,并且在某些情况下,播放器呈现,但不施加在缺省皮肤。相反,我看到一些默认控制

I use videojs 4 with backbonejs, and in some cases the player is rendered, but default skin in is not applied. Instead I see some "default" controls 1

装载videojs组件的任何特定的顺序是必需的?它加载正确的,当我打开网页,但如果我找到它从另一个观点 - 不是

Any particular order of loading videojs components is required? It loads correctly, when I open the page, but if I navigate to it from the other view -- not.

推荐答案

我意识到这种情况,如果有玩家初始化期间内部JS错误。好像该方法不在这种情况下完成的,并且不施加皮肤。我通过控制我的播放器是如何处理解决问题。

I realized this happens if there is an internal JS error during the player initialisation. Seems like the process does not complete in this case, and skin is not applied. I solved the issue by controlling how my player is disposed.

此讨论帮助

这篇关于与Backbone.js的的Video.js - 不适用皮肤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-12 14:34