Skip to content

Commit

Permalink
Merge pull request #1567 from christianmemije/captions
Browse files Browse the repository at this point in the history
Show captions by default
  • Loading branch information
rtibbles authored May 31, 2017
2 parents 64b5dab + da67895 commit 8040a58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kolibri/plugins/video_mp4_render/assets/src/vue/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<template v-for="video in videoSources">
<source :src="video.storage_url" :type="'video/' + video.extension">
</template>
<template v-for="track in trackSources">
<track kind="captions" :src="track.storage_url" :srclang="track.lang" :label="getLangName(track.lang)">
<template v-for="(track, index) in trackSources">
<track kind="captions" :src="track.storage_url" :srclang="track.lang" :label="getLangName(track.lang)" :default="index === 0">
</template>
</video>
</div>
Expand Down

0 comments on commit 8040a58

Please sign in to comment.