Skip to content

Commit 0cbe4fd

Browse files
Hieu Lam - TMAnnhathungkhangonntthitrinh
authored
feature-9082: Enhance language dropdown button (#9164)
* 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 * 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 5f989cc commit 0cbe4fd

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

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

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,23 @@
1111
{{#if (eq @videoStream.videoChannel.provider 'jitsi')}}
1212
<Public::Stream::JitsiStream @videoStream={{@videoStream}} />
1313
{{/if}}
14+
{{#if this.selectingLanguage.selectingLanguage}}
15+
<iframe
16+
style="position: absolute;width: 50%; height: 100%; z-index: -1"
17+
id="video-player-translation"
18+
frameborder="0"
19+
title="YouTube Live Stream Translation"
20+
src="https://www.youtube.com/embed/{{this.selectingLanguage.translationYoutubeId}}?enablejsapi=1&mute=0&autoplay=1&modestbranding=1&loop=1&controls=0&disablekb=1"
21+
gesture="media" allow="autoplay; encrypted-media" allowfullscreen="true"></iframe>
22+
{{/if}}
1423
{{#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}}
21-
<iframe
22-
style="position: absolute; width: 100%; height: 100%;"
23-
id="video-player"
24-
frameborder="0"
25-
title="YouTube Live Stream"
26-
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"
27-
gesture="media" allow="autoplay; encrypted-media" allowfullscreen="true"></iframe>
28-
{{/if}}
24+
<iframe
25+
style="position: absolute; width: 100%; height: 100%;"
26+
id="video-player"
27+
frameborder="0"
28+
title="YouTube Live Stream"
29+
src="https://www.youtube.com/embed/{{this.youtubeId}}?enablejsapi=1&playlist={{this.youtubeId}}&autoplay=1&modestbranding=1&loop={{if @videoStream.extra.loop 1 0}}&mute={{if this.selectingLanguage.selectingLanguage 1 0}}&controls=0&disablekb=1"
30+
gesture="media" allow="autoplay; encrypted-media" allowfullscreen="true"></iframe>
2931
{{/if}}
3032
{{#if (and (eq @videoStream.videoChannel.provider 'vimeo') this.vimeoId)}}
3133
<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)