0
video-js에 광고를 표시 할 수있는 플러그인을 사용하고 있습니다. VideoJS - videojs.getComponent (...)가 정의되지 않았습니다.
https://github.com/dirkjanm/videojs-preroll/blob/master/lib/videojs.ads.js
이
버전 5까지 완벽하게 일을하지만 지금은 버전 6으로 이주하고 싶어했는지,이 플러그인이 더 이상 작동 로그가 나에게 다음과 같은 오류가 발생합니다 :TypeError: videojs.getComponent(...) is undefined videojs.ads.js:386
이 보인다 모든 것이 플러그인의이 부분 (라인 386)에있다 :
플러그인은 얼마 전 이후 업데이트되지 않은(function() {
var
videoEvents = videojs.getComponent('Html5').Events,
i,
returnTrue = function() { return true; },
triggerEvent = function(type, event) {
// pretend we called stopImmediatePropagation because we want the native
// element events to continue propagating
event.isImmediatePropagationStopped = returnTrue;
event.cancelBubble = true;
event.isPropagationStopped = returnTrue;
player.trigger({
type: type + event.type,
state: player.ads.state,
originalEvent: event
});
},
그래서 나는 또한 일부 ALAR했다 어떻게 플러그인을 등록하는 방법에 대한 ms하지만 그것을 해결할 수있는, 나는 자바 스크립트를 잘 이해하지 못해서 어떻게 해결할 수 있을지 모르겠다.