Coder Social home page Coder Social logo

vimeowrap.js's Introduction

vimeowrap.js

vimeowrap is an easy to use Vimeo player embedder that can be extended with plugins.

Features

  • Uses oEmbed so the embed code is always up to date
  • Playlist support, play videos one after another
  • Extendable with plugins

Usage

Basic

<div id="player"></div>
<script src="http://luwes.co/vimeowrap.js/vimeowrap.js"></script>
<script>
	vimeowrap('player').setup({
		urls: [
			'https://vimeo.com/user3709818'
		]
	});
</script>

Carousel Plugin

<div id="player"></div>
<script src="http://luwes.co/vimeowrap.js/vimeowrap.js"></script>
<script src="http://luwes.co/vimeowrap.js/vimeowrap.carousel.js"></script>
<script>
	vimeowrap('player').setup({
		urls: [
			'https://vimeo.com/user3709818'
		],
		plugins: {
			'carousel': {}
		}
	});
</script>

Configuration

parameter default description
urls (required) Array with the Vimeo URL's. User or video URL's are supported.
width 480 Width of the Vimeo player.
height 280 Height of the Vimeo player.
autoplay false Automatically start playback of the video. Note that this won’t work on some devices.
repeat none What to do when the video has ended.
none: stop playback when a video is completed.
list: play each video in the playlist once, stop at the end.
always: continously play the video (or all videos in the playlist).
single: continously repeat the current video in the playlist.
item 0 Use this to load the player with a specific playlist item instead of the first item.
plugins Object with plugins. Plugins are seperate javascript files that extend the functionality of vimeowrap.
color 00adef Specify the color of the video controls.
byline true Show the byline on the video.
title true Show the title on the video.
portrait true Show the user's portrait on the video.

vimeowrap.js's People

Contributors

bdougherty avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.