videopreview.js
A Library for Video Preview from YouTube, Vimeo etc.
This repo is also for distribution on bower. The source for this module is in the
main VideoPreview repo.
Requirements
Installation
Install with bower:
bower install videopreview
Add a <script> to your index.html:
<script src="/bower_components/videopreview/videopreview.js"></script>
Documentation
Get YouTube thumbnails from url
VideoPreview.getYoutubeThumbnail(url);
Get Vimeo thumbnails from url
VideoPreview.getVimeoThumbnail(url);
Get Thumbnails(YouTube,Vimeo) from url
VideoPreview.getThumbnailUrl(url);
Get Embedable video(YouTube,Vimeo) link from url
VideoPreview.getEmbedLink(url);
Example
VideoPreview.getThumbnailUrl(url).then(function(data) {
$scope.videoThumbnailLink = data;
});

Log in or sign up for Devpost to join the conversation.