Skip to content

Commit

Permalink
fix(FEC-7970): Change media from DRM to DRM is not working (#48)
Browse files Browse the repository at this point in the history
Remove destroy from DrmProtocol interface since it has no meaning and we're overriding the old protocol with the new protocol on change media.
  • Loading branch information
Dan Ziv committed Mar 4, 2018
1 parent 3018324 commit 1327693
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/dash-adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ export default class DashAdapter extends BaseMediaSourceAdapter {
*/
_adapterEventsBindings: { [name: string]: Function } = {
[ShakaEvent.ERROR]: (event) => this._onError(event),
[ShakaEvent.ADAPTION] : () => this._onAdaptation(),
[ShakaEvent.BUFFERING] : (event) => this._onBuffering(event),
[EventType.WAITING] : () => this._onWaiting(),
[EventType.PLAYING] : () => this._onPlaying()
[ShakaEvent.ADAPTION]: () => this._onAdaptation(),
[ShakaEvent.BUFFERING]: (event) => this._onBuffering(event),
[EventType.WAITING]: () => this._onWaiting(),
[EventType.PLAYING]: () => this._onPlaying()
};
/**
* The load promise
Expand Down Expand Up @@ -301,10 +301,6 @@ export default class DashAdapter extends BaseMediaSourceAdapter {
this._buffering = false;
this._waitingSent = false;
this._playingSent = false;
if (DashAdapter._drmProtocol) {
DashAdapter._drmProtocol.destroy();
DashAdapter._drmProtocol = null;
}
if (this._shaka) {
this._removeBindings();
return this._shaka.destroy();
Expand Down

0 comments on commit 1327693

Please sign in to comment.