Comments (2)
I test
data () {
return {
videoOptions: {
"source": [
{
"type": "video/mp4",
"src": "http://7xkwa7.media1.z0.glb.cloauddn.com/sample_video_H",
"label": "原画",
"res": 1
},
{
"type": "video/mp4",
"src": "http://221.11.100.42/7xkwa7.masdedia1.z0.glb.clouddn.com/sample_video_M?wsiphost=local",
"label": "高清",
"res": 2
},
{
"type": "video/mp4",
"src": "http://7xkwa7.media1.z0.glb.cloudasdasddn.com/sample_video_L",
"label": "流畅",
"res": 3
}
],
"language": "zh-TW",
"playbackRates": [
0.7,
1,
1.3,
1.5,
1.7
],
"poster": "http://www.freemake.com/blog/wp-content/uploads/2015/06/videojs-logo.jpg",
"defaultSrcReId": 2,
"height": 360,
"autoplay": true
}
}
},
methods: {
playerStateChanged(playerCurrentState) {
console.log(playerCurrentState)
}
}
It's worked , not error
version: https://github.com/surmon-china/vue-video-player/tree/v2.2.1
from videojs-player.
Hi thanks,
your component work nice,
I haved to install json-loader
and add config webpack
loaders: [
{ test: /\.json$/, loader: 'json' },
// other loaders
]
I will follow playing with the component.
thanks!
from videojs-player.
Related Issues (20)
- Does not support the download function ???
- The video can only be played once ??? HOT 1
- 用了这个一直报错这个"class" is a reserved attribute and cannot be used as component prop.想问问是什么原因呢 HOT 2
- 在pc端使用时,会自动聚焦到当前播发器
- please add an example how to setup it with Vue3 + TypeScript
- 请问怎么禁用右键的下载等功能
- The userAtions.click does not work
- vite 打包失败报错
- 视频播放完后,再重新播放,视频卡顿
- Vue2中使用 this.$refs.videoPlayer.player设置倍速失败
- 怎么实现分屏同时播放?9个视频在同一个页面同时播放 HOT 1
- Nuxt 3 support HOT 1
- Provide compatibility with Video.js version 8 HOT 1
- error: No matching export in "node_modules/vue/dist/vue.runtime.esm-bundler.js" for import "normalizeClass"
- Does vue3 support custom buttons to play pause video? HOT 1
- Can't hide control buttons HOT 2
- Nuxt: After updating video.js to latest, videojsPlayer redirect to not found page when i reload the page in nuxt
- How to insert ads in the player?
- npm install twice error HOT 1
- How to set up video preloading
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from videojs-player.