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.

Issue: 69813237
  • Loading branch information
dahlstrom-g authored Nov 1, 2023
2 parents 6da4a2d + 9177dcc commit e9e6d75
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 @@ -633,8 +633,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 e9e6d75

Please sign in to comment.