Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
unclekingpin committed Nov 4, 2023
1 parent 5fe9556 commit 8dd2811
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/mediaCapabilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function getMediaCapabilities() {
}).reduce(function(result, value) {
return result.concat(value);
}, []),
maxAudioChannels
maxAudioChannels: maxAudioChannels
},
'matroska,webm': {
videoCodecs: MATROSKA_CONFIG.VIDEO_CODECS.map(function(config) {
Expand All @@ -137,7 +137,7 @@ function getMediaCapabilities() {
}).reduce(function(result, value) {
return result.concat(value);
}, []),
maxAudioChannels,
maxAudioChannels: maxAudioChannels
},
};
}
Expand Down
2 changes: 1 addition & 1 deletion src/withStreamingServer/withStreamingServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ function withStreamingServer(Video) {
queryParams.append('audioCodecs', audioCodec);
});

const maxAudioChannels = Object.keys(mediaCapabilities).reduce(function(result, format) {
var maxAudioChannels = Object.keys(mediaCapabilities).reduce(function(result, format) {
return Math.max(result, mediaCapabilities[format].maxAudioChannels);
}, 2);
queryParams.set('maxAudioChannels', maxAudioChannels);
Expand Down

0 comments on commit 8dd2811

Please sign in to comment.