Skip to content

Commit

Permalink
Merge pull request #195 from google/gbg/speaker-app
Browse files Browse the repository at this point in the history
speaker app
  • Loading branch information
barbibulle committed Jun 10, 2023
2 parents 7f987dc + b2c6357 commit 78581cc
Show file tree
Hide file tree
Showing 21 changed files with 1,921 additions and 94 deletions.
Empty file added apps/speaker/__init__.py
Empty file.
42 changes: 42 additions & 0 deletions apps/speaker/logo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
76 changes: 76 additions & 0 deletions apps/speaker/speaker.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
body, h1, h2, h3, h4, h5, h6 {
font-family: sans-serif;
}

#controlsDiv {
margin: 6px;
}

#connectionText {
background-color: rgb(239, 89, 75);
border: none;
border-radius: 4px;
padding: 8px;
display: inline-block;
margin: 4px;
}

#startButton {
padding: 4px;
margin: 6px;
}

#fftCanvas {
border-radius: 16px;
margin: 6px;
}

#bandwidthCanvas {
border: grey;
border-style: solid;
border-radius: 8px;
margin: 6px;
}

#streamStateText {
background-color: rgb(93, 165, 93);
border: none;
border-radius: 8px;
padding: 10px 20px;
display: inline-block;
margin: 6px;
}

#connectionStateText {
background-color: rgb(112, 146, 206);
border: none;
border-radius: 8px;
padding: 10px 20px;
display: inline-block;
margin: 6px;
}

#propertiesTable {
border: grey;
border-style: solid;
border-radius: 4px;
padding: 4px;
margin: 6px;
margin-left: 0px;
}

th, td {
padding-left: 6px;
padding-right: 6px;
}

.properties td:nth-child(even) {
background-color: #D6EEEE;
font-family: monospace;
}

.properties td:nth-child(odd) {
font-weight: bold;
}

.properties tr td:nth-child(2) { width: 150px; }
34 changes: 34 additions & 0 deletions apps/speaker/speaker.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!DOCTYPE html>
<html>
<head>
<title>Bumble Speaker</title>
<script type="text/javascript" src="speaker.js"></script>
<link rel="stylesheet" href="speaker.css">
</head>
<body>
<h1><img src="logo.svg" width=100 height=100 style="vertical-align:middle" alt=""/>Bumble Virtual Speaker</h1>
<div id="connectionText"></div>
<div id="speaker">
<table><tr>
<td>
<table id="propertiesTable" class="properties">
<tr><td>Codec</td><td><span id="codecText"></span></td></tr>
<tr><td>Packets</td><td><span id="packetsReceivedText"></span></td></tr>
<tr><td>Bytes</td><td><span id="bytesReceivedText"></span></td></tr>
</table>
</td>
<td>
<canvas id="bandwidthCanvas" width="500", height="100">Bandwidth Graph</canvas>
</td>
</tr></table>
<span id="streamStateText">IDLE</span>
<span id="connectionStateText">NOT CONNECTED</span>
<div id="controlsDiv">
<button id="audioOnButton">Audio On</button>
<span id="audioSupportMessageText"></span>
</div>
<canvas id="fftCanvas" width="1024", height="300">Audio Frequencies Animation</canvas>
<audio id="audio"></audio>
</div>
</body>
</html>

0 comments on commit 78581cc

Please sign in to comment.