Skip to content

Commit 3b59443

Browse files
stream: webrtc: frontend: App: Add id for buttons to be used by automatic tools
Signed-off-by: Patrick José Pereira <[email protected]>
1 parent 35ee2c6 commit 3b59443

File tree

1 file changed

+11
-2
lines changed
  • src/stream/webrtc/frontend/src

1 file changed

+11
-2
lines changed

src/stream/webrtc/frontend/src/App.vue

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,18 @@ const manager = reactive(new Manager(ip, 6021, rtc_configuration));
4141
<p>Consumers: {{ manager.consumers.size }}</p>
4242
</div>
4343
<div>
44-
<button type="button" v-on:click="manager.addConsumer()">
44+
<button
45+
id="add-consumer"
46+
type="button"
47+
v-on:click="manager.addConsumer()"
48+
>
4549
Add consumer
4650
</button>
47-
<button type="button" v-on:click="manager.removeAllConsumers()">
51+
<button
52+
id="remove-all-consumers"
53+
type="button"
54+
v-on:click="manager.removeAllConsumers()"
55+
>
4856
Remove all consumers
4957
</button>
5058
</div>
@@ -96,6 +104,7 @@ const manager = reactive(new Manager(ip, 6021, rtc_configuration));
96104
{{ stream.encode }}
97105
</p>
98106
<button
107+
id="add-session"
99108
type="button"
100109
v-on:click="manager.addSession(consumer.id, stream.id)"
101110
>

0 commit comments

Comments
 (0)