Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

样式丢失 #8

Open
pdap opened this issue Aug 28, 2018 · 1 comment
Open

样式丢失 #8

pdap opened this issue Aug 28, 2018 · 1 comment

Comments

@pdap
Copy link

pdap commented Aug 28, 2018

直接在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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants