Skip to content

Commit

Permalink
Pass Out has_new_usable_key in CE CDM
Browse files Browse the repository at this point in the history
See Widevine CE CDM
commit 24c22a7a02a9df19192a747188fbcdd66e1bd8ed.

Bug: 69813237
Co-authored-by: John Bruce <[email protected]>
  • Loading branch information
dahlstrom-g and arashikou authored Aug 17, 2023
1 parent 93fca3c commit 022e8b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions starboard/shared/widevine/drm_system_widevine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -631,8 +631,8 @@ void DrmSystemWidevine::onMessage(const std::string& wvcdm_session_id,
}
}

void DrmSystemWidevine::onKeyStatusesChange(
const std::string& wvcdm_session_id) {
void DrmSystemWidevine::onKeyStatusesChange(const std::string& wvcdm_session_id,
bool has_new_usable_key) {
wv3cdm::KeyStatusMap key_statuses;
wv3cdm::Status status = cdm_->getKeyStatuses(wvcdm_session_id, &key_statuses);

Expand Down
4 changes: 3 additions & 1 deletion starboard/shared/widevine/drm_system_widevine.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ class DrmSystemWidevine : public SbDrmSystemPrivate,
::widevine::Cdm::MessageType message_type,
const std::string& message) override;
// There has been a change in the keys in the session or their status.
void onKeyStatusesChange(const std::string& wvcdm_session_id) override;
void onKeyStatusesChange(const std::string& wvcdm_session_id,
bool has_new_usable_key) override;

// A remove() operation has been completed.
void onRemoveComplete(const std::string& wvcdm_session_id) override;
// Called when a deferred action has completed.
Expand Down

0 comments on commit 022e8b9

Please sign in to comment.