Chimeejs / chimee-player

A complete set of H5 player. 这是一套包含UI插件、FLV和HLS解码器的快速上手解决方案,可以按您的业务场景适当调整依赖后重新构建打包。
http://chimee.org/#demo
296 stars 45 forks source link

样式丢失 #8

Open pdap opened 6 years ago

pdap commented 6 years ago

直接在vue中 import("chimee-player").then(s => { const ChimeePlayer = s.default; let box = this.palyermaps[this.property.option.playertype].box; let isLive = this.palyermaps[this.property.option.playertype].isLive; let src = this.property.option.src; this.Instance && this.Instance.destroy(); this.Instance = new ChimeePlayer({ // 播放地址 src: src, // 直播:live 点播:vod isLive: isLive, // 编解码容器 box: box, poster: this.property.option.poster, // dom容器 wrapper: this.$el, // video autoplay: this.property.option.autoplay, loop: this.property.option.loop, muted: this.property.option.muted, controls: true, crossOrigin: "anonymous" }); }); 样式丢失

yandeqiang commented 6 years ago

js 和 css 分开的。 需要手动引入 css