mirror of
https://github.com/videojs/video.js.git
synced 2024-11-28 08:58:46 +02:00
Remove Up-Front Config Example
Get rid of the example code for configuring a plugin at creation time. There's already an example in the tutorial and it makes things a bit confusing.
This commit is contained in:
parent
f4cba1649d
commit
1636677995
@ -50,7 +50,7 @@
|
||||
|
||||
<script>
|
||||
(function() {
|
||||
var vid1, vidtag, vid2, progressed;
|
||||
var vid1, progressed;
|
||||
|
||||
// create a really simple plugin
|
||||
// this one just logs the buffered percentage to the console whenever
|
||||
@ -67,19 +67,6 @@
|
||||
// initialize it
|
||||
vid1 = vjs('vid1');
|
||||
vid1.progressed();
|
||||
|
||||
// create a new video and simultaneously initialize a plugin
|
||||
vidtag = document.createElement('video');
|
||||
vidtag.src = 'http://video-js.zencoder.com/oceans-clip.mp4';
|
||||
vidtag.setAttribute('controls');
|
||||
vidtag.setAttribute('class','video-js vjs-default-skin');
|
||||
vidtag.id = 'vid2';
|
||||
document.body.appendChild(vidtag);
|
||||
vid2 = vjs('vid2', {
|
||||
plugins: {
|
||||
progressed: {}
|
||||
}
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user