Skip to content

Commit

Permalink
fix(FEC-8666): cannot play dash drm (#65)
Browse files Browse the repository at this point in the history
fix(FEC-8666): cannot play dash drm
  • Loading branch information
odedhutzler committed Nov 8, 2018
1 parent a88151c commit 8d724ac
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/dash-adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,11 @@ export default class DashAdapter extends BaseMediaSourceAdapter {
*/
_setShakaConfig(): void {
const textDisplayerConfig = {
textDisplayFactory: function(videoEl) {
return new TextDisplayer(videoEl);
}.bind(null, this._videoElement)
shakaConfig: {
textDisplayFactory: function(videoEl) {
return new TextDisplayer(videoEl);
}.bind(null, this._videoElement)
}
};
this._config = Utils.Object.mergeDeep(textDisplayerConfig, DefaultConfig, this._config);
}
Expand Down Expand Up @@ -301,7 +303,7 @@ export default class DashAdapter extends BaseMediaSourceAdapter {
*/
_maybeSetDrmConfig(): void {
if (DashAdapter._drmProtocol && this._sourceObj && this._sourceObj.drmData) {
DashAdapter._drmProtocol.setDrmPlayback(this._config, this._sourceObj.drmData);
DashAdapter._drmProtocol.setDrmPlayback(this._config.shakaConfig, this._sourceObj.drmData);
}
}

Expand Down

0 comments on commit 8d724ac

Please sign in to comment.