Fix issues.

This commit is contained in:
Ian Walton 2021-04-10 11:37:17 -04:00
parent 56574b3516
commit de1d36f2dc

View File

@ -191,8 +191,8 @@ async function getApi() {
tryGetFramerate(options) { tryGetFramerate(options) {
if (options.mediaSource && options.mediaSource.MediaStreams) { if (options.mediaSource && options.mediaSource.MediaStreams) {
for (let stream of options.mediaSource.MediaStreams) { for (const stream of options.mediaSource.MediaStreams) {
if (stream.Type == "Video") { if (stream.Type == 'Video') {
return stream.RealFrameRate || stream.AverageFrameRate || null; return stream.RealFrameRate || stream.AverageFrameRate || null;
} }
} }