Skip to content

Commit

Permalink
Remove Subtitle Feature Flag
Browse files Browse the repository at this point in the history
  • Loading branch information
twobiers authored Nov 11, 2023
1 parent ac4bfa7 commit df36dbe
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions assets/template/streamItem.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,25 @@
<?js if(supportsAutoplay) {?>
<video class="item-image-actual" draggable="true" loop autoplay preload="auto">
<source src="{item.image}" type="video/mp4">
<?js if (CONFIG.FEATURE_FLAG.SUBTITLES) { ?>
<?js if (item.subtitles && item.subtitles.length > 0) { ?>
<?js for (const st of item.subtitles) { ?>
<track kind="subtitles" src="{st.path}" label="{st.label}" srclang="{st.language}" <?js if (st.isDefault) { ?>
data-is-default=""
<?js } ?> >
<?js } ?>
<?js } ?>
<?js } ?>
</video>
<?js } else { ?>
<video class="item-image-actual" draggable="true" webkit-playsinline playsinline loop preload="metadata"
poster="{item.thumb}">
<source src="{item.image}" type="video/mp4">
<?js if (CONFIG.FEATURE_FLAG.SUBTITLES) { ?>
<?js if (item.subtitles && item.subtitles.length > 0) { ?>
<?js for (const st of item.subtitles) { ?>
<track kind="subtitles" src="{st.path}" label="{st.label}" srclang="{st.language}" <?js if (st.isDefault) { ?>
data-is-default=""
<?js } ?> >
<?js } ?>
<?js } ?>
<?js } ?>
</video>
<svg class="video-play-button" viewBox="0 0 200 200">
<circle cx="100" cy="100" r="90" fill="none" stroke-width="15" stroke="#fff"></circle>
Expand Down Expand Up @@ -83,7 +79,7 @@
</div>
</div>
<?js } ?>
<?js if (CONFIG.FEATURE_FLAG.SUBTITLES && item.subtitles && item.subtitles.length > 0) { ?>
<?js if (item.subtitles && item.subtitles.length > 0) { ?>
<?js if (item.subtitles.length === 1) { ?>
<label title="{{item.subtitles[0].label}} (U)" class="subtitle-controls" id="video-controls-enable-subtitles-label">
<input type="checkbox" id="video-controls-enable-subtitles-checkbox">
Expand Down

0 comments on commit df36dbe

Please sign in to comment.