summaryrefslogtreecommitdiffstats
path: root/chromecast/media/audio
diff options
context:
space:
mode:
authorhalliwell <halliwell@chromium.org>2015-11-18 20:43:54 -0800
committerCommit bot <commit-bot@chromium.org>2015-11-19 04:44:49 +0000
commit4d1b80a42727d3411c4ed6c60ce6cf0b3372b99e (patch)
tree6793355a8c0c8513e2f223a949ac054c3658333c /chromecast/media/audio
parent02a377770e28b7b6129435d2eb27d38ac53dd619 (diff)
downloadchromium_src-4d1b80a42727d3411c4ed6c60ce6cf0b3372b99e.zip
chromium_src-4d1b80a42727d3411c4ed6c60ce6cf0b3372b99e.tar.gz
chromium_src-4d1b80a42727d3411c4ed6c60ce6cf0b3372b99e.tar.bz2
[Chromecast] Allow CMA backend to notify of key expiry
This allows CMA backend implementations to notify us when keys have expired. We will need a corresponding internal CL to handle this event in the CDM and send keystatuseschange event upward to JS. BUG=internal b/22702612 Review URL: https://codereview.chromium.org/1407253007 Cr-Commit-Position: refs/heads/master@{#360523}
Diffstat (limited to 'chromecast/media/audio')
-rw-r--r--chromecast/media/audio/cast_audio_output_stream.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chromecast/media/audio/cast_audio_output_stream.cc b/chromecast/media/audio/cast_audio_output_stream.cc
index 98aae10..3d1419a 100644
--- a/chromecast/media/audio/cast_audio_output_stream.cc
+++ b/chromecast/media/audio/cast_audio_output_stream.cc
@@ -175,6 +175,10 @@ class CastAudioOutputStream::Backend : public MediaPipelineBackend::Delegate {
OnPushBufferComplete(decoder_, MediaPipelineBackend::kBufferFailed);
}
+ void OnKeyStatusChanged(const std::string& key_id,
+ CastKeyStatus key_status,
+ uint32_t system_code) override {}
+
base::WeakPtr<CastAudioOutputStream::Backend> GetWeakPtr() {
return weak_factory_.GetWeakPtr();
}