Skip to content

Commit 46d6f6c

Browse files
authored
feat: add public stream as iframe (#8469)
* feat: add public stream as iframe * allow fullscreen
1 parent d0c07f7 commit 46d6f6c

File tree

4 files changed

+32
-0
lines changed

4 files changed

+32
-0
lines changed

app/models/event.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ export default class Event extends ModelBase.extend(CustomPrimaryKeyMixin, {
3333
locationName : attr('string'),
3434
searchableLocationName : attr('string'),
3535

36+
publicStreamLink: attr('string'),
37+
3638
longitude : attr('number', { defaultValue: 0.0 }),
3739
latitude : attr('number', { defaultValue: 0.0 }),
3840

app/styles/pages/events.scss

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,21 @@
107107
z-index: 1;
108108
animation: anima .2s ease-in-out 1 both;
109109
}
110+
111+
.container {
112+
position: relative;
113+
width: 100%;
114+
overflow: hidden;
115+
padding-top: 56.25%;
116+
}
117+
118+
.responsive-iframe {
119+
position: absolute;
120+
top: 0;
121+
left: 0;
122+
bottom: 0;
123+
right: 0;
124+
width: 100%;
125+
height: 100%;
126+
border: 0;
127+
}

app/templates/components/forms/wizard/basic-details-step.hbs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,13 @@
7474
<div class="mb-2 mt-2">
7575
{{t 'You can add video meeting rooms or streams after you created a draft of the event.'}}
7676
</div>
77+
<div class="field mt-6">
78+
<label for="stream">{{t 'Public Stream Link'}}</label>
79+
<Input
80+
@type="text"
81+
@id="stream"
82+
@value={{this.data.event.publicStreamLink}} />
83+
</div>
7784
{{/if}}
7885
<br>
7986
<div class="fields">

app/templates/public/index.hbs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
</div>
66
<div class="ui hidden divider"></div>
77
{{/if}}
8+
{{#if this.model.event.publicStreamLink}}
9+
<div class="container">
10+
<iframe class="responsive-iframe" title="{{this.model.event.name}}" src="{{this.model.event.publicStreamLink}}" allowfullscreen></iframe>
11+
</div>
12+
{{/if}}
813
{{#if (and this.model.event.isOneclickSignupEnabled this.model.tickets)}}
914
<h2 id="tickets">{{t 'Registration'}}</h2>
1015
{{!-- template-lint-disable style-concatenation --}}

0 commit comments

Comments
 (0)