Skip to content

Commit

Permalink
Clean up UI.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Dec 11, 2018
1 parent 136016b commit 5bc54d1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
10 changes: 5 additions & 5 deletions app/publish.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@
<table class="params">
<tr><th><label for="vid">Video:</label></th>
<td><select name="vid" id="vid">
<option value="" selected="selected">--None--</option>
<option value="env">Env Camera</option>
<option value="">--None--</option>
<option value="env" selected="selected">Env Camera</option>
<option value="user">User Camera</option>
<option value="mjpeg">MJPEG URL</option>
<option value="tag">Video SRC</option>
</select>
<span id="ivideokBps">0</span>kB/s, <span id="res">0x0</span>
<span id="res">0x0</span>, <span id="ivideokBps">0</span>kB/s
</td>
</tr>
<tr><th><label for="aud">Audio:</label></th>
<td><select name="aud" id="aud">
<option value="" selected="selected">--None--</option>
<option value="mic">Microphone</option>
<option value="">--None--</option>
<option value="mic" selected="selected">Microphone</option>
<option value="tag">Video SRC</option>
</select>
<span id="iaudiokBps">0</span>kB/s</td>
Expand Down
8 changes: 8 additions & 0 deletions app/publisher.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,14 @@ function publisherLoad() {
if (publish.checked) {
publishClick();
}

mjpegUrl.addEventListener('click', function selectMjpeg() {
vid.value = 'mjpeg';
});
tagUrl.addEventListener('click', function selectTag() {
vid.value = 'tag';
aud.value = 'tag';
});
}

function onOptionClick(el, cb) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mediasoup-broadcast-example",
"version": "1.2.7-a1",
"version": "1.2.7",
"description": "Sample WebRTC broadcast client/server for the Mediasoup SFU.",
"main": "server/index.js",
"scripts": {
Expand Down

0 comments on commit 5bc54d1

Please sign in to comment.