Get YouTube or Vimeo Thumbnails in one shot with jQuery

后端 未结 5 450
陌清茗
陌清茗 2021-02-06 19:44

I\'m trying to put YouTube thumbnail and Vimeo thumbnail together in the same script, but its not really easy for me because I\'m a new to jQuery.

I would to ask if some

5条回答
  •  青春惊慌失措
    2021-02-06 20:43

    I think that now at vimeo.com the id is always the last value...

    } else if (sourceVideo.indexOf("vimeo.com") >= 0) {
        id = sourceVideo.split('/');
        id = id[id.length-1];
    }
    

    Don't need the 3 regex.

提交回复
热议问题