Skip to content

Commit 5f989cc

Browse files
Hieu Lam - TMAnnhathungkhangonntthitrinh
authored
feature-9082: Enhance language dropdown button (#9162)
* feature-9082: Enhance language dropdown button * feature-9082: Enhance language dropdown button * fix css * fix UI * fix missing header * fix missing header * fix missing header * fix missing header * fix missing header * fix missing header * avoid using css inline * feature-9082: Fix css dropdown side panel * feature-9082: Fix css dropdown side panel * feature-9082: Fix css dropdown side panel * fix-9082 language dropdown not showing up * fix-9082 language dropdown not showing up * feature-9082: Enhance language dropdown button * feature-9082: Enhance language dropdown button * feature-9082: Enhance language dropdown button --------- Co-authored-by: nnhathung <[email protected]> Co-authored-by: Khang On - TMA <[email protected]> Co-authored-by: ntthitrinh <[email protected]>
1 parent e811c76 commit 5f989cc

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

app/components/public/stream/video-stream.hbs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,20 @@
1212
<Public::Stream::JitsiStream @videoStream={{@videoStream}} />
1313
{{/if}}
1414
{{#if (eq this.provider 'youtube')}}
15+
{{#if this.selectingLanguage.selectingLanguage}}
16+
<iframe
17+
style="position: absolute; width: 100%; height: 100%" id="video-player-translation" width="50%" height="50%" frameborder="0" title="YouTube Live Stream Translation"
18+
src="https://www.youtube.com/embed/{{this.selectingLanguage.translationYoutubeId}}?enablejsapi=1&autoplay=1&modestbranding=1&loop=1&controls=0&disablekb=1"
19+
gesture="media" allow="autoplay; encrypted-media" allowfullscreen="true"></iframe>
20+
{{else}}
1521
<iframe
1622
style="position: absolute; width: 100%; height: 100%;"
1723
id="video-player"
1824
frameborder="0"
1925
title="YouTube Live Stream"
2026
src="https://www.youtube.com/embed/{{this.youtubeId}}?enablejsapi=1&playlist={{this.youtubeId}}&autoplay=1&modestbranding=1&loop={{if @videoStream.extra.loop 1 0}}&controls=0&disablekb=1"
21-
gesture="media" allow="autoplay; encrypted-media" allowfullscreen="true"></iframe>
27+
gesture="media" allow="autoplay; encrypted-media" allowfullscreen="true"></iframe>
28+
{{/if}}
2229
{{/if}}
2330
{{#if (and (eq @videoStream.videoChannel.provider 'vimeo') this.vimeoId)}}
2431
<iframe style="position: absolute" src="https://player.vimeo.com/video/{{this.vimeoId}}?autoplay={{if @videoStream.extra.autoplay 1 0}}&loop={{if @videoStream.extra.loop 1 0}}" width="50%" height="50%" frameborder="0" allow="autoplay" title="StreamYard Live Stream" allowfullscreen="true"></iframe>

0 commit comments

Comments
 (0)