Skip to content

Commit f49d07f

Browse files
committed
ProtectionController: loadKeySession() takes also initData as input, along with associated session ID
1 parent 887e702 commit f49d07f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/streaming/protection/controllers/ProtectionController.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,13 @@ function ProtectionController(config) {
184184
* essentially creates a new key session
185185
*
186186
* @param {string} sessionID
187+
* @param {string} initData
187188
* @memberof module:ProtectionController
188189
* @instance
189190
* @fires ProtectionController#KeySessionCreated
190191
*/
191-
function loadKeySession(sessionID) {
192-
protectionModel.loadKeySession(sessionID);
192+
function loadKeySession(sessionID, initData) {
193+
protectionModel.loadKeySession(sessionID, initData, getSessionType(keySystem));
193194
}
194195

195196
/**

0 commit comments

Comments
 (0)