Show framerate of inbound video stream

This commit is contained in:
Gabe Kangas 2020-11-17 22:48:03 -08:00
parent 08972dfb3a
commit 8787e3421b

View file

@ -72,7 +72,7 @@ export default function Home() {
const { audioPassthrough, audioBitrate, videoBitrate, framerate } = setting; const { audioPassthrough, audioBitrate, videoBitrate, framerate } = setting;
const audioSetting = const audioSetting =
audioPassthrough || audioBitrate === 0 audioPassthrough || audioBitrate === 0
? `${streamDetails.audioBitrate} kpbs (passthrough)` ? `${streamDetails.audioCodec} ${streamDetails.audioBitrate} kpbs`
: `${audioBitrate} kbps`; : `${audioBitrate} kbps`;
let settingTitle = 'Outbound Stream Details'; let settingTitle = 'Outbound Stream Details';
@ -95,7 +95,7 @@ export default function Home() {
}); });
const { viewerCount, sessionMaxViewerCount } = serverStatusData; const { viewerCount, sessionMaxViewerCount } = serverStatusData;
const streamVideoDetailString = `${streamDetails.videoCodec} ${streamDetails.videoBitrate} kbps ${streamDetails.width}x${streamDetails.height}`; const streamVideoDetailString = `${streamDetails.videoCodec} ${streamDetails.videoBitrate} kbps ${streamDetails.framerate}fps ${streamDetails.width}x${streamDetails.height}`;
const streamAudioDetailString = `${streamDetails.audioCodec} ${streamDetails.audioBitrate} kbps`; const streamAudioDetailString = `${streamDetails.audioCodec} ${streamDetails.audioBitrate} kbps`;
const broadcastDate = new Date(broadcaster.time); const broadcastDate = new Date(broadcaster.time);