prettier all the things
This commit is contained in:
parent
08d797246f
commit
0778f3b230
4 changed files with 37 additions and 30 deletions
|
@ -142,7 +142,7 @@ export class WebRTCStreamer extends Streamer {
|
|||
|
||||
createPeerConnection(iceServers: RTCIceServer[]) {
|
||||
this.pc = new RTCPeerConnection({
|
||||
iceServers
|
||||
iceServers,
|
||||
});
|
||||
this.pc.oniceconnectionstatechange = async (e) => {
|
||||
if (!this.pc) {
|
||||
|
|
|
@ -71,7 +71,10 @@ export function MicTab() {
|
|||
return (
|
||||
<>
|
||||
<h3>Mic Selection</h3>
|
||||
<p>Click the "<b>Find Microphones</b>" button, then choose the microphone you want from the dropdown.</p>
|
||||
<p>
|
||||
Click the "<b>Find Microphones</b>" button, then choose the microphone
|
||||
you want from the dropdown.
|
||||
</p>
|
||||
<button
|
||||
onClick={fetchMicNames}
|
||||
disabled={micList !== null}
|
||||
|
@ -111,8 +114,9 @@ export function MicTab() {
|
|||
<div style={{ opacity: state.open ? 1 : 0.5 }}>
|
||||
<h3>Calibration</h3>
|
||||
<p>
|
||||
Speak into the microphone at your <b>nomal presenting volume</b>. Adjust the gain slider
|
||||
until the bar below is <b>green</b> when you're speaking.
|
||||
Speak into the microphone at your <b>nomal presenting volume</b>.
|
||||
Adjust the gain slider until the bar below is <b>green</b> when you're
|
||||
speaking.
|
||||
</p>
|
||||
<div>
|
||||
<VUMeter
|
||||
|
|
|
@ -18,7 +18,10 @@ export const USE_REAL_GAIN_VALUE = false;
|
|||
|
||||
function PlayerNumbers({ id }: { id: number }) {
|
||||
const store = useStore<RootState, any>();
|
||||
const [[timeCurrent, timeLength, timeRemaining, endTime], setTimings] = useState([0, 0, 0, 0]);
|
||||
const [
|
||||
[timeCurrent, timeLength, timeRemaining, endTime],
|
||||
setTimings,
|
||||
] = useState([0, 0, 0, 0]);
|
||||
const tickerRef = useRef<number | undefined>(undefined);
|
||||
|
||||
useEffect(() => {
|
||||
|
@ -29,7 +32,7 @@ function PlayerNumbers({ id } : { id: number}) {
|
|||
state.timeCurrent,
|
||||
state.timeLength,
|
||||
state.timeRemaining,
|
||||
now.valueOf() / 1000 + state.timeRemaining
|
||||
now.valueOf() / 1000 + state.timeRemaining,
|
||||
]);
|
||||
}, 1000);
|
||||
return () => window.clearInterval(tickerRef.current);
|
||||
|
@ -47,8 +50,7 @@ function PlayerNumbers({ id } : { id: number}) {
|
|||
{secToHHMM(timeRemaining)}
|
||||
</span>
|
||||
<span id={"ends-" + id} className="m-0 outro bypass-click">
|
||||
End -{" "}
|
||||
{timestampToHHMM(endTime)}
|
||||
End - {timestampToHHMM(endTime)}
|
||||
</span>
|
||||
</>
|
||||
);
|
||||
|
@ -57,7 +59,8 @@ function PlayerNumbers({ id } : { id: number}) {
|
|||
export function Player({ id }: { id: number }) {
|
||||
const playerState = useSelector(
|
||||
(state: RootState) => state.mixer.players[id],
|
||||
(a, b) => shallowEqual(
|
||||
(a, b) =>
|
||||
shallowEqual(
|
||||
omit(a, "timeCurrent", "timeRemaining"),
|
||||
omit(b, "timeCurrent", "timeRemaining")
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue