Browse Source

Merge pull request #33 from videojs/hotfix/peer-deps

Try using peerDependencies for video.js
pull/80/head
Tom Johnson 12 years ago
parent
commit
45bfb9fcca
  1. 2
      example.html
  2. 8
      package.json

2
example.html

@ -61,7 +61,7 @@
type="application/x-mpegURL">
</video>
<script>
videojs.options.flash.swf = 'node_modules/videojs-swf/dist/video-js.swf';
videojs.options.flash.swf = 'node_modules/video.js/dist/video-js/video-js.swf';
// initialize the player
var player = videojs('video');

8
package.json

@ -23,11 +23,13 @@
"grunt-concurrent": "0.4.3",
"grunt-open": "0.2.3",
"grunt-shell": "0.6.1",
"grunt": "~0.4.1"
"grunt": "~0.4.1",
"video.js": "~4.4"
},
"peerDependencies": {
"video.js": "~4.4"
},
"dependencies": {
"video.js": "git+https://github.com/videojs/video.js.git#v4.4.1",
"videojs-swf": "git+https://github.com/videojs/video-js-swf.git#v4.4.0",
"videojs-contrib-media-sources": "git+https://github.com/videojs/videojs-contrib-media-sources.git"
}
}
Loading…
Cancel
Save