mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 00:31:20 -08:00
add more file
This commit is contained in:
1 parent
506b34522b
commit
73283a838a
26 files changed
+435
-51
No files matched your search
+3
-3
@@ -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)}'.`
|
||||
|
||||
Reference in new issue
Block a user