Browse Source

feat(sub): video arttemp

yuusora 3 years ago
parent
commit
103373f0db
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/template/video.art

+ 1 - 1
src/template/video.art

@@ -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>