Remove additional viewer counts from status bar. Closes #155

This commit is contained in:
Gabe Kangas 2020-10-08 16:39:11 -07:00
parent 2aa9a86e3d
commit ce14e0d0a7
2 changed files with 0 additions and 24 deletions

View file

@ -31,8 +31,6 @@ export default class VideoOnly extends Component {
//status //status
streamStatusMessage: MESSAGE_OFFLINE, streamStatusMessage: MESSAGE_OFFLINE,
viewerCount: '', viewerCount: '',
sessionMaxViewerCount: '',
overallMaxViewerCount: '',
}; };
// timers // timers
@ -131,8 +129,6 @@ export default class VideoOnly extends Component {
} }
const { const {
viewerCount, viewerCount,
sessionMaxViewerCount,
overallMaxViewerCount,
online, online,
} = status; } = status;
@ -153,8 +149,6 @@ export default class VideoOnly extends Component {
} }
this.setState({ this.setState({
viewerCount, viewerCount,
sessionMaxViewerCount,
overallMaxViewerCount,
streamOnline: online, streamOnline: online,
}); });
} }
@ -215,8 +209,6 @@ export default class VideoOnly extends Component {
configData, configData,
viewerCount, viewerCount,
sessionMaxViewerCount,
overallMaxViewerCount,
playerActive, playerActive,
streamOnline, streamOnline,
streamStatusMessage, streamStatusMessage,
@ -256,8 +248,6 @@ export default class VideoOnly extends Component {
<section id="stream-info" aria-label="Stream status" class="flex text-center flex-row justify-between items-center font-mono py-2 px-8 bg-gray-900 text-indigo-200"> <section id="stream-info" aria-label="Stream status" class="flex text-center flex-row justify-between items-center font-mono py-2 px-8 bg-gray-900 text-indigo-200">
<span>${streamStatusMessage}</span> <span>${streamStatusMessage}</span>
<span>${viewerCount} ${pluralize('viewer', viewerCount)}.</span> <span>${viewerCount} ${pluralize('viewer', viewerCount)}.</span>
<span>Max ${pluralize('viewer', sessionMaxViewerCount)}.</span>
<span>${overallMaxViewerCount} overall.</span>
</section> </section>
</main> </main>
`); `);

View file

@ -64,8 +64,6 @@ export default class App extends Component {
// status // status
streamStatusMessage: MESSAGE_OFFLINE, streamStatusMessage: MESSAGE_OFFLINE,
viewerCount: '', viewerCount: '',
sessionMaxViewerCount: '',
overallMaxViewerCount: '',
// dom // dom
windowWidth: window.innerWidth, windowWidth: window.innerWidth,
@ -208,8 +206,6 @@ export default class App extends Component {
} }
const { const {
viewerCount, viewerCount,
sessionMaxViewerCount,
overallMaxViewerCount,
online, online,
lastConnectTime, lastConnectTime,
} = status; } = status;
@ -231,8 +227,6 @@ export default class App extends Component {
} }
this.setState({ this.setState({
viewerCount, viewerCount,
sessionMaxViewerCount,
overallMaxViewerCount,
lastConnectTime, lastConnectTime,
streamOnline: online, streamOnline: online,
}); });
@ -357,9 +351,7 @@ export default class App extends Component {
displayChat, displayChat,
extraUserContent, extraUserContent,
orientation, orientation,
overallMaxViewerCount,
playerActive, playerActive,
sessionMaxViewerCount,
streamOnline, streamOnline,
streamStatusMessage, streamStatusMessage,
userAvatarImage, userAvatarImage,
@ -483,12 +475,6 @@ export default class App extends Component {
> >
<span>${streamStatusMessage}</span> <span>${streamStatusMessage}</span>
<span>${viewerCount} ${pluralize('viewer', viewerCount)}.</span> <span>${viewerCount} ${pluralize('viewer', viewerCount)}.</span>
<span>
Max ${sessionMaxViewerCount} ${" "} ${pluralize('viewer', sessionMaxViewerCount)} this stream.
</span>
<span>
${overallMaxViewerCount} all time.
</span>
</section> </section>
</main> </main>