Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

videopreview

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

videopreview

A Library for Video Preview from YouTube, Vimeo etc.

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

videopreview.js

Bower version Build Status Github Release Github Tag Downloads Version

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

  • node
  • bower

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;
});

Keywords

FAQs

Package last updated on 29 Apr 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc