-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.html
51 lines (47 loc) · 2.09 KB
/
example.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Share Screen Example</title>
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<link href="src/css/vjs-share-overlay.css" rel="stylesheet">
<!-- Video.JS -->
<link href="//vjs.zencdn.net/4.5/video-js.css" rel="stylesheet">
<script src="//vjs.zencdn.net/4.5/video.js"></script>
<!-- Share Plugin -->
<script src="src/js/videojs-share.js"></script>
<script src="src/js/ui/share-overlay.js"></script>
<script src="src/js/ui/share-control-bar-button.js"></script>
<!-- Set the location of the flash SWF -->
<script>
videojs.options.flash.swf = 'node_modules/video.js/dist/video-js/video-js.swf'
</script>
</head>
<body>
<video id="video" class="video-js vjs-default-skin" controls preload="auto"
width="960" height="540"
poster="src/img/poster.jpg"
data-setup='{}'>
<source src="http://media11.traileraddict.com/i_am_hardwell-hd.mp4?8b4c33b911618ed7466247e6cfe20c297e3e7ce8000e" type='video/mp4'>
</video>
<script>
// initialize the player
var player = videojs('video');
// initialize the plugin
player.share({
title: 'I AM Hardwell',
embedCode: 'Embed Script Here',
directLink: 'http://www.traileraddict.com/i-am-hardwell/trailer',
startTime: '00:00',
networks: [
{name: 'pinterest', url: 'https://www.pinterest.com/explore/hardwell/', backgroundClass: 'vjs-share-options-container-social-icon-pt'},
{name: 'facebook', url: 'https://www.facebook.com/djhardwell', backgroundClass: 'vjs-share-options-container-social-icon-fb'},
{name: 'twitter', url: 'https://twitter.com/hardwell', backgroundClass: 'vjs-share-options-container-social-icon-tw'},
{name: 'tumblr', url: 'http://www.tumblr.com/', backgroundClass: 'vjs-share-options-container-social-icon-tu'},
{name: 'linkedIn', url: 'http://www.linkedin.com/', backgroundClass: 'vjs-share-options-container-social-icon-in'},
{name: 'google-plus', url: 'https://www.google.com/#q=Hardwell', backgroundClass: 'vjs-share-options-container-social-icon-gp'}
]
});
</script>
</body>
</html>