Explorar o código

feat(sub): video arttemp

yuusora %!s(int64=3) %!d(string=hai) anos
pai
achega
103373f0db
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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>