mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-17 18:11:20 -08:00
Subtitle add url setter
This commit is contained in:
1 parent
d4572cd469
commit
b6055b202a
3 files changed
+8
-1
No files matched your search
@@ -28,6 +28,10 @@ export default class Subtitle extends Component {
|
||||
return this.art.template.$track.src;
|
||||
}
|
||||
|
||||
set url(url) {
|
||||
this.switch(url);
|
||||
}
|
||||
|
||||
get textTrack() {
|
||||
return this.art.template.$video.textTracks[0];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user