lib/defaults/index.js
function scrapVideo(window){
   var $ = window.$;
   var url = window.location.href;
   var thumbs = [];

   // Open Graph protocol by Facebook: <meta property="og:video" content="(*)"/>
   $('meta').each(function(){
      var property = $(this).attr('property');
      var content = $(this).attr('content');
      if(property === 'og:video' && content){
         thumbs.push(utils.toURL(content));
      }
   });

   $('video, embed').each(function(){
      var src = $(this).attr('src');
      if(src) thumbs.push(utils.toURL(src,url));
   });

   return thumbs;
}
function scrapVideo(window){
   var $ = window.$;
   var url = window.location.href;
   var thumbs = [];

   // Open Graph protocol by Facebook: <meta property="og:video" content="(*)"/>
   $('meta').each(function(){
      var property = $(this).attr('property');
      var content = $(this).attr('content');
      if(property === 'og:video' && content){
         thumbs.push(utils.toURL(content));
      }
   });

   $('video, embed').each(function(){
      var src = $(this).attr('src');
      if(src) thumbs.push(utils.toURL(src,url));
   });

   return thumbs;
}
function scrapVideo ( window ) { var $ = window . $ ; var url = window . location . href ; var thumbs = [ ] ; // Open Graph protocol by Facebook: <meta property="og:video" content="(*)"/> $ ( 'meta' ) . each ( function ( ) { var property = $ ( this ) . attr ( 'property' ) ; var content = $ ( this ) . attr ( 'content' ) ; if ( property === 'og:video' && content ) { thumbs . push ( utils . toURL ( content ) ) ; } } ) ; $ ( 'video, embed' ) . each ( function ( ) { var src = $ ( this ) . attr ( 'src' ) ; if ( src ) thumbs . push ( utils . toURL ( src , url ) ) ; } ) ; return thumbs ; }
Retrieve the video urls on the page

@param  {Object} window -
@return {Array}
@api public
Retrieve the video urls on the page