mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-20 12:11:20 -08:00
refactor: Update video element resizing logic in Artplayer and artplayer-proxy-webav
This commit is contained in:
1 parent
b2e54d6969
commit
3a2e7addd9
6 files changed
+9
-14
No files matched your search
@@ -242,7 +242,7 @@ class Artplayer extends (0, _emitterDefault.default) {
|
||||
return "development";
|
||||
}
|
||||
static get build() {
|
||||
return "2024-08-22 18:16:26";
|
||||
return "2024-08-23 10:40:09";
|
||||
}
|
||||
static get config() {
|
||||
return 0, _configDefault.default;
|
||||
@@ -3804,7 +3804,7 @@ class Subtitle extends (0, _componentDefault.default) {
|
||||
this.switch(url);
|
||||
}
|
||||
get textTrack() {
|
||||
return this.art.template.$video.textTracks[0];
|
||||
return this.art.template.$video?.textTracks?.[0];
|
||||
}
|
||||
get activeCue() {
|
||||
if (!this.textTrack) return null;
|
||||
|
||||
Reference in new issue
Block a user