diff --git a/package.json b/package.json index 0571d983..38a4f5eb 100644 --- a/package.json +++ b/package.json @@ -24,18 +24,16 @@ "main": "./dist/cld-video-player.js", "style": "./dist/cld-video-player.css", "dependencies": { - "expose-loader": "^0.7.4", + "expose-loader": "^0.7.5", "fetch-ponyfill": "^4.0.0", "get-size": "^2.0.2", "optimize-css-assets-webpack-plugin": "^3.2.0", "promise-polyfill": "^6.0.2", - "video.js": "^6.9.0", + "video.js": "^7.4.1", "videojs-contextmenu": "^1.2.2", - "videojs-contrib-ads": "^6.2.0", - "videojs-contrib-hls": "^5.14.1", - "videojs-contrib-media-sources": "^4.4.2", + "videojs-contrib-ads": "^6.6.1", "videojs-ima": "^1.5.1", - "videojs-per-source-behaviors": "^1.1.3", + "videojs-per-source-behaviors": "^2.1.0", "webfontloader": "^1.6.28", "webpack-bundle-analyzer": "^2.9.1", "webpack-conditional-loader": "^1.0.11", @@ -81,7 +79,7 @@ "uglify-js": "^3.4.7", "uglifyjs-webpack-plugin": "^1.3.0", "url-loader": "^0.5.7", - "webpack": "^2.2.1", + "webpack": "^2.7.0", "webpack-dev-server": "^2.3.0", "webpack-merge": "^2.6.1", "webpack-shell-plugin": "^0.5.0" diff --git a/src/plugins/ima/index.js b/src/plugins/ima/index.js index 90ded75e..00afb134 100644 --- a/src/plugins/ima/index.js +++ b/src/plugins/ima/index.js @@ -20,7 +20,7 @@ (function(factory) { if (typeof define === 'function' && define['amd']) { - define(['video.js', 'videojs-contrib-ads'], function(videojs){ factory(window, document, videojs) }); + define(['video.js', 'videojs-contrib-ads'], function(videojs){ factory(window, document, videojs.default) }); } else if (typeof exports === 'object' && typeof module === 'object') { var vjs = require('video.js'); require('videojs-contrib-ads'); diff --git a/src/plugins/index.js b/src/plugins/index.js index 92611f24..17f509fe 100644 --- a/src/plugins/index.js +++ b/src/plugins/index.js @@ -1,7 +1,6 @@ // #if (!process.env.WEBPACK_BUILD_LIGHT) import 'videojs-contrib-ads'; import './ima'; -import 'videojs-contrib-hls'; // #endif import 'videojs-per-source-behaviors'; import autoplayOnScroll from './autoplay-on-scroll'; diff --git a/src/video-player.js b/src/video-player.js index a1c18342..9ea1eb1a 100644 --- a/src/video-player.js +++ b/src/video-player.js @@ -40,6 +40,7 @@ Object.keys(plugins).forEach((key) => { videojs.registerPlugin(key, plugins[key]); }); + const normalizeAutoplay = (options) => { const autoplayMode = options.autoplayMode; if (autoplayMode) { diff --git a/static/examples/adaptive-streaming.html b/static/examples/adaptive-streaming.html index d6874bff..c52c9f2f 100644 --- a/static/examples/adaptive-streaming.html +++ b/static/examples/adaptive-streaming.html @@ -110,8 +110,8 @@