Skip to content

Commit 7664431

Browse files
committed
fix(Admin/Live): show expire of secrets
1 parent 9b8bed9 commit 7664431

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/views/Admin/ChannelLive.vue

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
</tr>
1414
</thead>
1515
<tbody>
16+
<tr v-if="policy !== null">
17+
<td>Stream URLs and Keys Valide till</td>
18+
<td>
19+
<code>{{ new Date(policy.url_expire) }}</code>
20+
</td>
21+
</tr>
1622
<tr>
1723
<td>RTMP Complete Link</td>
1824
<td>
@@ -107,6 +113,7 @@ export default {
107113
ingressWS: "",
108114
// Stream
109115
sources: "",
116+
policy: null,
110117
video: null,
111118
};
112119
},
@@ -128,6 +135,9 @@ export default {
128135
api.Channels.Get(this.channelid).then((resp) => {
129136
this.ingressRTMP = resp.data.ingress.rtmp;
130137
this.ingressWS = resp.data.ingress.webrtc;
138+
if (resp.data.ingress.policy) {
139+
this.policy = resp.data.ingress.policy;
140+
}
131141
this.sources = resp.data.stream_sources;
132142
websocket.joinHandler(
133143
resp.data.data.id,

0 commit comments

Comments
 (0)