From 611d3d481605049c8ca77f27131282993f448664 Mon Sep 17 00:00:00 2001 From: Jeff Tinker Date: Wed, 21 Aug 2013 11:57:40 -0700 Subject: [PATCH] Add ability to test supported content types to MediaDrm bug: 10244066 Change-Id: I6666d0dbfdc6e791deb9a82c918255af4fa19816 --- include/media/drm/DrmAPI.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/media/drm/DrmAPI.h b/include/media/drm/DrmAPI.h index fbf93bc99..95bdf7762 100644 --- a/include/media/drm/DrmAPI.h +++ b/include/media/drm/DrmAPI.h @@ -60,6 +60,11 @@ namespace android { // given crypto scheme, which is specified by a UUID. virtual bool isCryptoSchemeSupported(const uint8_t uuid[16]) = 0; + // DrmFactory::isContentTypeSupported can be called to determine + // if the plugin factory is able to construct plugins that support a + // given media container format specified by mimeType + virtual bool isContentTypeSupported(const String8 &mimeType) = 0; + // Construct a DrmPlugin for the crypto scheme specified by UUID. virtual status_t createDrmPlugin( const uint8_t uuid[16], DrmPlugin **plugin) = 0;