Skip to content

Commit

Permalink
add support for mkv only in chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
unclekingpin committed Nov 5, 2023
1 parent f2d338d commit b056d5d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/mediaCapabilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ function getMaxAudioChannels() {

function getMediaCapabilities() {
var mediaElement = document.createElement('video');
var formats = ['mp4', 'matroska,webm'];
var formats = ['mp4'];
if (window.chrome || window.cast) {
formats.push('matroska,webm');
}
var videoCodecs = VIDEO_CODEC_CONFIGS
.map(function(config) {
return canPlay(config, { mediaElement: mediaElement });
Expand Down

0 comments on commit b056d5d

Please sign in to comment.