All Projects → mkhazov → videojs-share

mkhazov / videojs-share

Licence: MIT License
Share plugin for video.js

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to videojs-share

react-custom-share
Social media share buttons for ReactJS. Use one of the built-in button themes or create a custom one from scratch.
Stars: ✭ 47 (+95.83%)
Mutual labels:  share, sharing
Angular Socialshare
Angular social share module, share urls and content on social networks such as facebook, google+, twitter, pinterest and more ... - http://720kb.github.io/angular-socialshare
Stars: ✭ 508 (+2016.67%)
Mutual labels:  share, sharing
videojs-annotation-comments
A plugin for video.js to add support for timeline moment/range comments and annotations
Stars: ✭ 129 (+437.5%)
Mutual labels:  videojs, videojs-plugin
Simplesharingbuttons
Share to Facebook, Twitter, Google+ and other social networks using simple HTML buttons.
Stars: ✭ 147 (+512.5%)
Mutual labels:  share, sharing
tss-rb
A Ruby implementation of Threshold Secret Sharing (Shamir) as defined in IETF Internet-Draft draft-mcgrew-tss-03.txt
Stars: ✭ 22 (-8.33%)
Mutual labels:  share, sharing
generator-videojs-plugin
Yeoman generator for video.js plugins.
Stars: ✭ 71 (+195.83%)
Mutual labels:  videojs, videojs-plugin
videojs-airplay
Videojs Plugin that adds an airplay button to the control bar
Stars: ✭ 28 (+16.67%)
Mutual labels:  videojs, videojs-plugin
videojs-plus
An extension and skin for video.js
Stars: ✭ 49 (+104.17%)
Mutual labels:  videojs, videojs-plugin
shared-react-components-example
An example of a mono-repository of shared React components libraries!
Stars: ✭ 85 (+254.17%)
Mutual labels:  share, sharing
videojs-ima-player
video ad plugin for video.js
Stars: ✭ 12 (-50%)
Mutual labels:  videojs, videojs-plugin
videojs-landscape-fullscreen
Videojs on Mobile and/or React: Automatically Switch to Landscape on Fullscreen, and Fullscreen on Landscape
Stars: ✭ 72 (+200%)
Mutual labels:  videojs, videojs-plugin
cockpit-samba-manager
A Cockpit plugin to manage Samba shares and users.
Stars: ✭ 28 (+16.67%)
Mutual labels:  share
kap-streamable
Kap plugin - Share on Streamable
Stars: ✭ 27 (+12.5%)
Mutual labels:  share
linkcast
Share links, images, blogs and everything on the web with your friends in one click using this chrome extension Linkcast
Stars: ✭ 13 (-45.83%)
Mutual labels:  share
go-http-file-server
Simple command line based HTTP file server to share local file system
Stars: ✭ 90 (+275%)
Mutual labels:  share
OneClip
Share your clipboard with people nearby. No Setup, No Signup.
Stars: ✭ 45 (+87.5%)
Mutual labels:  share
modelforge
Python library to share machine learning models easily and reliably.
Stars: ✭ 18 (-25%)
Mutual labels:  sharing
commons-booking
Wordpress plugin for managing and booking of common goods. New Version 2: https://github.com/wielebenwir/commonsbooking
Stars: ✭ 24 (+0%)
Mutual labels:  sharing
zusam
Private groups to share messages, photos, videos, links with friends and family.
Stars: ✭ 79 (+229.17%)
Mutual labels:  sharing
Valheim-ServerSideMap
This plugin completely moves the explored map and created pins to the server. As clients explore, they will send their explored areas to the server who will then distribute it to all connected clients. When a client joins, the server will synchronize the currently explored areas to the client. Pins are shared as well but default to false and nee…
Stars: ✭ 32 (+33.33%)
Mutual labels:  share

videojs-share

Share plugin for video.js. Allows user to copy video url / embed code and share video to social networks.

List of supported social networks: Facebook, Twitter, Google Plus, LinkedIn, VK, Odnoklassniki, Mail.ru. Supported messengers: Messenger, Telegram, Whatsapp, Viber.

Sharing functioonality provided by vanilla-sharing library. Copying to clipboard is done via clipboard.js.

Build Status Build Status bundlephobia npm npm David David

Table of Contents

Version Support

This is an advanced plugin and due to that it works on videojs versions 6+ see here.

Installation

npm install --save videojs-share

Usage

To include videojs-share on your website or web application, use any of the following methods.

<script> Tag

This is the simplest case. Get the script in whatever way you prefer and include the plugin after you include video.js, so that the videojs global is available.

<script src="//path/to/video.min.js"></script>
<script src="//path/to/videojs-share.min.js"></script>

Browserify/CommonJS

When using with Browserify, install videojs-share via npm and require the plugin as you would any other module.

var videojs = require('video.js');

// The actual plugin function is exported by this module, but it is also
// attached to the `Player.prototype`; so, there is no need to assign it
// to a variable.
require('videojs-share');

RequireJS/AMD

When using with RequireJS (or another AMD library), get the script in whatever way you prefer and require the plugin as you normally would:

require(['video.js', 'videojs-share'], function(videojs) {
  var player = videojs('my-video');

  player.share();
});

Plugin initialization

var player = videojs('my-video');

var shareOptions = {
  socials: ['fb', 'tw', 'reddit', 'gp', 'messenger', 'linkedin', 'telegram', 'whatsapp', 'viber', 'vk', 'ok', 'mail'],

  url: window.location.href,
  title: 'videojs-share',
  description: 'video.js share plugin',
  image: 'https://dummyimage.com/1200x630',

  // required for Facebook and Messenger
  fbAppId: '12345',
  // optional for Facebook
  redirectUri: window.location.href + '#close',

  // optional for VK
  isVkParse: true,
  
  // optinal embed code
  embedCode : '<iframe src="' + window.location.href + '" width="560" height="315" frameborder="0" allowfullscreen></iframe>'
}

player.share(shareOptions);
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].