feat(sub): video arttemp

This commit is contained in:
yuusora 2022-01-13 09:23:14 +08:00
parent d2fc4768fb
commit 103373f0db
1 changed files with 1 additions and 1 deletions

View File

@ -10,6 +10,6 @@
{{ if url }}src="{{ url }}"{{ /if }}
>
{{ if enableSubtitle }}
<track kind="metadata" default src="{{ subtitle.url }}"></track>
<track class="dplayer-subtrack" kind="metadata" default src="{{ typeof subtitle.url === 'string' ? subtitle.url : subtitle.url[subtitle.index].subtitle }}"></track>
{{ /if }}
</video>