Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
bindEvents() {
// Clappr 0.3 support
if (Events.CORE_ACTIVE_CONTAINER_CHANGED) {
this.listenTo(this.core, Events.CORE_ACTIVE_CONTAINER_CHANGED, this.rebindEvents)
}
this.listenTo(this.core.mediaControl, Events.MEDIACONTROL_MOUSEMOVE_SEEKBAR, this._onMouseMove)
this.listenTo(this.core.mediaControl, Events.MEDIACONTROL_MOUSELEAVE_SEEKBAR, this._onMouseLeave)
this.listenTo(this.core.mediaControl, Events.MEDIACONTROL_RENDERED, this._init)
this.listenTo(this.core.mediaControl, Events.MEDIACONTROL_CONTAINERCHANGED, this._onMediaControlContainerChanged)
}
unBindEvents() {
this.stopListening(
this.core.mediaControl,
Events.MEDIACONTROL_CONTAINERCHANGED
);
this.stopListening(this.core.mediaControl, Events.MEDIACONTROL_RENDERED);
this.stopListening(this.core.mediaControl, Events.MEDIACONTROL_HIDE);
}
bindEvents() {
this.listenTo(this.core.mediaControl, Events.MEDIACONTROL_RENDERED, this._onMediaControlRendered)
this.listenTo(this.core.mediaControl, Events.MEDIACONTROL_CONTAINERCHANGED, this._onMediaControlContainerChanged)
}
bindEvents() {
this.listenTo(this.core.mediaControl, Events.CORE_ACTIVE_CONTAINER_CHANGED, this.reload);
this.listenTo(this.core.mediaControl, Events.MEDIACONTROL_RENDERED, this.render);
this.listenTo(this.core.mediaControl, Events.MEDIACONTROL_HIDE, this.hideContextMenu);
this.listenTo(this.core.mediaControl, PlaybackRatePlugin.MEDIACONTROL_PLAYBACKRATE, this.updatePlaybackRate);
}
bindEvents() {
this.listenTo(
this.core.mediaControl,
Events.MEDIACONTROL_CONTAINERCHANGED,
this.reload
);
this.listenTo(
this.core.mediaControl,
Events.MEDIACONTROL_RENDERED,
this.render
);
this.listenTo(
this.core.mediaControl,
Events.MEDIACONTROL_HIDE,
this.hideContextMenu
);
this.listenTo(
this.core.mediaControl,
ParatiiUserInfo.MEDIACONTROL_PLAYBACKRATE,
this.updatePlaybackRate
);
}