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 8dd2811 commit 6674a40
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions src/mediaCapabilities.js
Original file line number Diff line number Diff line change
@@ -1,50 +1,50 @@
var MP4_CONFIG = {
VIDEO_CODECS: [
{
codec: "h264",
codec: 'h264',
force: window.chrome || window.cast,
mime: 'video/mp4; codecs="avc1.42E01E"',
},
{
codec: "h265",
codec: 'h265',
force: window.chrome || window.cast,
mime: 'video/mp4; codecs="hev1.1.6.L150.B0"',
aliases: ["hevc"],
aliases: ['hevc'],
},
{
codec: "vp8",
codec: 'vp8',
mime: 'video/mp4; codecs="vp8"',
},
{
codec: "vp9",
codec: 'vp9',
mime: 'video/mp4; codecs="vp9"',
},
],
AUDIO_CODEC: [
{
codec: "aac",
codec: 'aac',
force: window.chrome || window.cast,
mime: 'audio/mp4; codecs="mp4a.40.2"',
},
{
codec: "mp3",
codec: 'mp3',
force: window.chrome || window.cast,
mime: 'audio/mp4; codecs="mp3"',
},
{
codec: "ac3",
codec: 'ac3',
mime: 'audio/mp4; codecs="ac-3"',
},
{
codec: "eac3",
codec: 'eac3',
mime: 'audio/mp4; codecs="ec-3"',
},
{
codec: "vorbis",
codec: 'vorbis',
mime: 'audio/mp4; codecs="vorbis"',
},
{
codec: "opus",
codec: 'opus',
mime: 'audio/mp4; codecs="opus"',
},
],
Expand All @@ -53,38 +53,38 @@ var MP4_CONFIG = {
var MATROSKA_CONFIG = {
VIDEO_CODECS: [
{
codec: "h264",
codec: 'h264',
force: window.chrome || window.cast,
},
{
codec: "h265",
codec: 'h265',
force: window.chrome || window.cast,
aliases: ["hevc"],
aliases: ['hevc'],
},
{
codec: "vp8",
codec: 'vp8',
mime: 'video/webm; codecs="vp8"',
},
{
codec: "vp9",
codec: 'vp9',
mime: 'video/webm; codecs="vp9"',
},
],
AUDIO_CODEC: [
{
codec: "aac",
codec: 'aac',
force: window.chrome || window.cast,
},
{
codec: "mp3",
codec: 'mp3',
force: window.chrome || window.cast,
},
{
codec: "vorbis",
codec: 'vorbis',
mime: 'audio/webm; codecs="vorbis"',
},
{
codec: "opus",
codec: 'opus',
mime: 'audio/webm; codecs="opus"',
},
],
Expand All @@ -110,7 +110,7 @@ function getMaxAudioChannels() {
}

function getMediaCapabilities() {
var mediaElement = document.createElement("video");
var mediaElement = document.createElement('video');
var maxAudioChannels = getMaxAudioChannels();
return {
mp4: {
Expand Down

0 comments on commit 6674a40

Please sign in to comment.