@npo/player 1.22.1 → 1.22.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/npoplayer.js +1 -1
- package/lib/package.json +1 -1
- package/package.json +1 -1
package/lib/npoplayer.js
CHANGED
|
@@ -137,7 +137,6 @@ export default class NpoPlayer {
|
|
|
137
137
|
return;
|
|
138
138
|
const drmType = this.streamObject.stream.drmType ?? null;
|
|
139
139
|
this.sourceConfig = await playerAction.processSourceConfig(options.sourceConfig ?? {}, this.streamObject, drmType && drmType.length > 0 ? profile.drm : null, this.streamOptions, this.version, this.npoTag?.npoTagInstance?.getParty());
|
|
140
|
-
await drm.verifyDRM(this, this.player, payload);
|
|
141
140
|
setupMediaSessionActionHandlers(this.player, this.sourceConfig, _streamObject);
|
|
142
141
|
logEvent(this, 'load');
|
|
143
142
|
let streamDuration = _streamObject.metadata.duration;
|
|
@@ -163,6 +162,7 @@ export default class NpoPlayer {
|
|
|
163
162
|
else {
|
|
164
163
|
this.player.on(PlayerEvent.SourceLoaded, initAndStartTracker);
|
|
165
164
|
}
|
|
165
|
+
await drm.verifyDRM(this, this.player, payload);
|
|
166
166
|
}
|
|
167
167
|
else {
|
|
168
168
|
this.doError(`Het is niet gelukt de stream op te halen: \n Input is geen valide token of media object.`, 500);
|
package/lib/package.json
CHANGED