vue-video-player
Advanced tools
Comparing version 2.4.5 to 2.5.0
@@ -24,2 +24,3 @@ /** | ||
if (configs.youtube) require('videojs-youtube') | ||
if (configs.vimeo) require('videojs-vimeo') | ||
if (configs.switcher) require('videojs-resolution-switcher') | ||
@@ -26,0 +27,0 @@ }, |
{ | ||
"name": "vue-video-player", | ||
"version": "2.4.5", | ||
"version": "2.5.0", | ||
"description": "Video Player component for Vue.js(1.x ~ 2.x)", | ||
@@ -33,2 +33,3 @@ "main": "index.js", | ||
"videojs-youtube": "^2.1.1", | ||
"videojs-vimeo": "^2.0.2", | ||
"videojs-contrib-hls": "^3.6.0", | ||
@@ -35,0 +36,0 @@ "videojs-resolution-switcher": "^0.4.2" |
@@ -11,4 +11,8 @@ [![GitHub issues](https://img.shields.io/github/issues/surmon-china/vue-video-player.svg?style=flat-square)](https://github.com/surmon-china/vue-video-player/issues) | ||
Video/Live player for Vue.js(1.x ~ 2.x) | ||
基于 [video.js](https://github.com/videojs/video.js) + [videojs-resolution-switcher](https://github.com/kmoskwiak/videojs-resolution-switcher) + [videojs-contrib-hls](https://github.com/videojs/videojs-contrib-hls) + [videojs-youtube](https://github.com/videojs/videojs-youtube) | ||
基于 [video.js](https://github.com/videojs/video.js) + [videojs-resolution-switcher](https://github.com/kmoskwiak/videojs-resolution-switcher) + [videojs-contrib-hls](https://github.com/videojs/videojs-contrib-hls) + [videojs-youtube](https://github.com/videojs/videojs-youtube) + [videojs-vimeo](https://github.com/videojs/videojs-vimeo) | ||
> ### V2.5.0 | ||
> Added vimeo support | ||
> ### V2.4.5 | ||
@@ -172,2 +176,19 @@ > ... | ||
// vimeo - player config example | ||
export default { | ||
data () { | ||
return { | ||
videoOptions: { | ||
source: { | ||
type: "video/vimeo", | ||
src: "https://vimeo.com/167054481" | ||
}, | ||
techOrder: ["vimeo"], | ||
autoplay: false, | ||
controls: false | ||
} | ||
} | ||
} | ||
} | ||
//------------------------------------------------------------- | ||
@@ -233,3 +254,3 @@ // player state changed callback event | ||
| language | String | player language(default: 'en') | | ||
| techOrder | Array | player support video type (default: example) | ['html5', 'flash', 'youtube'] | | ||
| techOrder | Array | player support video type (default: example) | ['html5', 'flash', 'youtube', 'vimeo'] | | ||
| customEventName| String | player state changed event name (default: example) | 'player-state-changed' | | ||
@@ -250,4 +271,6 @@ | ||
[videojs-vimeo](https://github.com/videojs/videojs-vimeo) | ||
# Author Blog | ||
[Surmon](http://surmon.me) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
114797
1120
273
5
+ Addedvideojs-vimeo@^2.0.2
+ Addedvideojs-vimeo@2.0.2(transitive)