bytedance / xgplayer-vue Goto Github PK
View Code? Open in Web Editor NEWVue component for xgplayer, a HTML5 video player with a parser that saves traffic
License: MIT License
Vue component for xgplayer, a HTML5 video player with a parser that saves traffic
License: MIT License
按readme.md配置的。
<template>
<Xgplayer :config="config" @player="Player = $event"/>
</template>
<script>
import Xgplayer from 'xgplayer-vue';
export default {
data () {
return {
config: {
id: 'vs',
url: 'http://127.0.0.1:8080/xgplayer-demo.mp4'
},
Player: null
}
}
}
</script>
没啥问题吧。
报错
The requested module '/node_modules/xgplayer/dist/index.js?v=f9f41c0b' does not provide an export named 'default'
切换源会html中出现多个video,怎么解决啊 !sir 我qq1020733373 求助
开发中...
<script>
import Xgplayer from 'xgplayer-vue'
export default {
name: 'App',
components: {
Xgplayer,
},
data() {
return {
config: {
id: 'vs',
url: './assets/video/wn.mp4',
// poster: './assets/img/舞娘.jpg',
},
Player: null,
}
},
}
</script>
想问问是模块问题吗?
配置里面 ignores:[‘progress’] 未生效,就算不能关闭,那禁用进度条的点击和拖动也可以啊
<Xgplayer :config="config" @player="Player = $event"/>
this.Player.on('ready', ()=>{ console.log('ready') })
正常输出 => // ready
this.Player.on('play', ()=>{ console.log('play') })
无法监听play事件
使用console.log(this.Player.currentTime)读不出来啊,console.log(this.Player)是能看到的
本来就慢,clone🐘🐌
chrome版本: 89.0.4389.90(正式版本) (64 位)
os:windows
xgplayer-vue版本:1.1.5
已知:mac正常,低版本时正常(85.0),用其他浏览器打开正常
问题描述:没有显示封面,,显示为底色,鼠标移到原本播放键处可点击播放。已确认封面链接没问题
文件这么大么,下载到55%,就卡死了,
工程哪里有问题,git更新不下来啊
does not provide an export named 'default' (at xgplayer-vue.vue:7:8)
我采用的mp4的格式视频,然后30帧率的就没有问题,25视频帧率的就有问题
能监听到play、focus、ratechange、volumechange 单个单词的事件 监听不到 fullscreen_change、cssFullscreen_change、autoplay_started,这种是监听不到的,
1.如何动态设置播放url,比如从远程获取然后设置;
2.config里边必须要设置视频源么,如果不设置,怎么默认占位
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.