src/dom_components/view/ComponentVideoView.js
/**
   * Update the source of the video
   * @private
   */
Update the source of the video
@private
Update the source of the video @private
updateSrc() {
    const { model, videoEl } = this;
    if (!videoEl) return;
    const prov = model.get('provider');
    let src = model.get('src');
    switch (prov) {
      case 'yt':
        src = model.getYoutubeSrc();
        break;
      case 'ytnc':
        src = model.getYoutubeNoCookieSrc();
        break;
      case 'vi':
        src = model.getVimeoSrc();
        break;
    }
    videoEl.src = src;
  }
updateSrc ( ) { const { model , videoEl } = this ; if ( ! videoEl ) return ; const prov = model . get ( 'provider' ) ; let src = model . get ( 'src' ) ; switch ( prov ) { case 'yt' : src = model . getYoutubeSrc ( ) ; break ; case 'ytnc' : src = model . getYoutubeNoCookieSrc ( ) ; break ; case 'vi' : src = model . getVimeoSrc ( ) ; break ; } videoEl . src = src ; }
Update the source of the video
 @private
Update the source of the video @private