Skip to content

Commit

Permalink
use codecs for playlist
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey committed May 21, 2020
1 parent efec4e0 commit a67512c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/rendition-mixin.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { isIncompatible, isEnabled } from './playlist.js';
import { codecsForPlaylist } from './util/codecs.js';

/**
* Returns a function that acts as the Enable/disable playlist function.
Expand Down Expand Up @@ -66,9 +67,7 @@ class Representation {

this.bandwidth = playlist.attributes.BANDWIDTH;

if (playlist.attributes.CODECS) {
this.codecs = playlist.attributes.CODECS;
}
this.codecs = codecsForPlaylist(mpc.master(), playlist);

this.playlist = playlist;

Expand Down

0 comments on commit a67512c

Please sign in to comment.