@@ -43,8 +43,7 @@ class MediaKeySessionFactory : public IMediaKeySessionFactory
4343 std::unique_ptr<IMediaKeySession> createMediaKeySession (const std::string &keySystem, int32_t keySessionId,
4444 const firebolt::rialto::wrappers::IOcdmSystem &ocdmSystem,
4545 KeySessionType sessionType,
46- std::weak_ptr<IMediaKeysClient> client,
47- bool isLDL) const override ;
46+ std::weak_ptr<IMediaKeysClient> client) const override ;
4847};
4948
5049/* *
@@ -61,20 +60,19 @@ class MediaKeySession : public IMediaKeySession, public firebolt::rialto::wrappe
6160 * @param[in] ocdmSystem : The ocdm system object to create the session on.
6261 * @param[in] sessionType : The session type.
6362 * @param[in] client : Client object for callbacks.
64- * @param[in] isLDL : Is this an LDL.
6563 * @param[in] mainThreadFactory : The main thread factory.
6664 */
6765 MediaKeySession (const std::string &keySystem, int32_t keySessionId,
6866 const firebolt::rialto::wrappers::IOcdmSystem &ocdmSystem, KeySessionType sessionType,
69- std::weak_ptr<IMediaKeysClient> client, bool isLDL,
70- const std::shared_ptr<IMainThreadFactory> &mainThreadFactory);
67+ std::weak_ptr<IMediaKeysClient> client, const std::shared_ptr<IMainThreadFactory> &mainThreadFactory);
7168
7269 /* *
7370 * @brief Virtual destructor.
7471 */
7572 virtual ~MediaKeySession ();
7673
77- MediaKeyErrorStatus generateRequest (InitDataType initDataType, const std::vector<uint8_t > &initData) override ;
74+ MediaKeyErrorStatus generateRequest (InitDataType initDataType, const std::vector<uint8_t > &initData,
75+ const LimitedDurationLicense &ldlState) override ;
7876
7977 MediaKeyErrorStatus loadSession () override ;
8078
@@ -96,8 +94,6 @@ class MediaKeySession : public IMediaKeySession, public firebolt::rialto::wrappe
9694
9795 MediaKeyErrorStatus selectKeyId (const std::vector<uint8_t > &keyId) override ;
9896
99- bool isNetflixPlayreadyKeySystem () const override ;
100-
10197 void onProcessChallenge (const char url[], const uint8_t challenge[], const uint16_t challengeLength) override ;
10298
10399 void onKeyUpdated (const uint8_t keyId[], const uint8_t keyIdLength) override ;
@@ -137,11 +133,6 @@ class MediaKeySession : public IMediaKeySession, public firebolt::rialto::wrappe
137133 */
138134 std::shared_ptr<IMainThread> m_mainThread;
139135
140- /* *
141- * @brief Is the session LDL.
142- */
143- const bool m_kIsLDL;
144-
145136 /* *
146137 * @brief Is the ocdm session constructed.
147138 */
@@ -187,12 +178,24 @@ class MediaKeySession : public IMediaKeySession, public firebolt::rialto::wrappe
187178 */
188179 std::mutex m_ocdmErrorMutex;
189180
181+ /* *
182+ * @brief Drm header to be set once the session is constructed
183+ */
184+ std::vector<uint8_t > m_queuedDrmHeader;
185+
186+ /* *
187+ * @brief Flag used to check if extended interface is used
188+ */
189+ bool m_extendedInterfaceInUse{false };
190+
190191 /* *
191192 * @brief Posts a getChallenge task onto the main thread.
192193 *
194+ * @param[in] ldlState : The Limited Duration License state.
195+ *
193196 * The challenge data is retrieved from ocdm and notified on a onLicenseRequest.
194197 */
195- void getChallenge ();
198+ void getChallenge (const LimitedDurationLicense &ldlState );
196199
197200 /* *
198201 * @brief Initalises the ocdm error data which checks for onError callbacks.
0 commit comments