GitXplorerGitXplorer
l

vimeowrap.js

public
48 stars
25 forks
7 issues

Commits

List of commits on branch master.
Verified
ba93d3890eb7619348a44984348ae74b166dd625

Update README.md

committed 3 years ago
Unverified
36db1626649816830e6c0e18415390357777dad2

Fix script urls in readme

committed 7 years ago
Unverified
56b7442ad802bbd5e8729dcf6140bf61f6d37b0f

update github url

committed 8 years ago
Unverified
a67951ba4d9ef0f1f4d77b01b77b87236306298c

update vimeo requests to HSTS

committed 10 years ago
Unverified
5db3ddf92d78555ecea2e5e4d407a06a0d92099b

Merge pull request #11 from bdougherty/master

committed 10 years ago
Unverified
e6eeba77b60e5f822c704bdbfb99e056b7f4255d

Update froogaloop library

bbdougherty committed 10 years ago

README

The README file for this repository.

Deprecated!

See https://github.com/playerxo/playerx for the evolution of this project!

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="https://luwes.github.io/vimeowrap.js/vimeowrap.js"></script>
<script>
	vimeowrap('player').setup({
		urls: [
			'https://vimeo.com/user3709818'
		]
	});
</script>

Carousel Plugin

<div id="player"></div>
<script src="https://luwes.github.io/vimeowrap.js/vimeowrap.js"></script>
<script src="https://luwes.github.io/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.