_unbindSourceEvents(loadOnly = false)
    {
        if (!this._source) return;

        this._source.removeEventListener('load', this._boundOnSourceLoad);
        this._source.removeEventListener('canplay', this._boundOnSourceLoad);
        this._source.removeEventListener('canplaythrough', this._boundOnSourceLoad);
        this._source.removeEventListener('error', this._boundOnSourceError);

        if (!loadOnly)
        {
            this._source.removeEventListener('play', this._boundOnSourcePlay);
            this._source.removeEventListener('pause', this._boundOnSourceStop);
        }
    }
/**
     * Unbinds listeners from a source image or video.
     *
     * @private
     * @param {boolean} loadOnly - Only manage events related to loading.
     */
Unbinds listeners from a source image or video.
@private
@param {boolean} loadOnly - Only manage events related to loading.
Unbinds listeners from a source image or video . @private @param { boolean } loadOnly - Only manage events related to loading .
_unbindSourceEvents(loadOnly = false)
    {
        if (!this._source) return;
        this._source.removeEventListener('load', this._boundOnSourceLoad);
        this._source.removeEventListener('canplay', this._boundOnSourceLoad);
        this._source.removeEventListener('canplaythrough', this._boundOnSourceLoad);
        this._source.removeEventListener('error', this._boundOnSourceError);
        if (!loadOnly)
        {
            this._source.removeEventListener('play', this._boundOnSourcePlay);
            this._source.removeEventListener('pause', this._boundOnSourceStop);
        }
    }
_unbindSourceEvents ( loadOnly = false ) { if ( ! this . _source ) return ; this . _source . removeEventListener ( 'load' , this . _boundOnSourceLoad ) ; this . _source . removeEventListener ( 'canplay' , this . _boundOnSourceLoad ) ; this . _source . removeEventListener ( 'canplaythrough' , this . _boundOnSourceLoad ) ; this . _source . removeEventListener ( 'error' , this . _boundOnSourceError ) ; if ( ! loadOnly ) { this . _source . removeEventListener ( 'play' , this . _boundOnSourcePlay ) ; this . _source . removeEventListener ( 'pause' , this . _boundOnSourceStop ) ; } }
Unbinds listeners from a source image or video.
Unbinds listeners from a source image or video .