add more file

This commit is contained in:
Harvey Zack committed 2018-10-18 15:05:18 +08:00
1 parent 506b34522b
commit 73283a838a
26 files changed
+435 -51

No files matched your search

+3 -3
View File
@@ -46,19 +46,19 @@ export default class Subtitle {
}
show() {
const { refs: { $subtitle } } = this.art;
const { $subtitle } = this.art.refs;
$subtitle.style.display = 'block';
this.art.emit('subtitle:show', $subtitle);
}
hide() {
const { refs: { $subtitle } } = this.art;
const { $subtitle } = this.art.refs;
$subtitle.style.display = 'none';
this.art.emit('subtitle:hide', $subtitle);
}
switch(url) {
const { refs: { $track } } = this.art;
const { $track } = this.art.refs;
errorHandle(
getExt(url) === 'vtt',
`'url' option require 'vtt' format, but got '${getExt(url)}'.`