From 6793a04d620b3181ce78703dd26033fe8bfa344c Mon Sep 17 00:00:00 2001 From: Gloria Wang Date: Fri, 29 Oct 2010 16:44:37 -0700 Subject: [PATCH] Add support for WV plugin Change-Id: I0b9d0488f123c05ad2d94315236458f479e00b78 --- .../plugins/widevine/Android.mk | 27 +++++++++++++++++++ include/drm/drm_framework_common.h | 4 +++ 2 files changed, 31 insertions(+) create mode 100644 drm/libdrmframework/plugins/widevine/Android.mk diff --git a/drm/libdrmframework/plugins/widevine/Android.mk b/drm/libdrmframework/plugins/widevine/Android.mk new file mode 100644 index 0000000000000..2c388da307853 --- /dev/null +++ b/drm/libdrmframework/plugins/widevine/Android.mk @@ -0,0 +1,27 @@ +# +# Copyright (C) 2010 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +LOCAL_PATH:= $(call my-dir) +include $(CLEAR_VARS) + +LOCAL_MODULE := libdrmwvmplugin + +LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/drm/plugins/native + +LOCAL_PRELINK_MODULE := false + +LOCAL_MODULE_TAGS := optional + +include $(BUILD_SHARED_LIBRARY) diff --git a/include/drm/drm_framework_common.h b/include/drm/drm_framework_common.h index c5765a9de5f51..1758cdd61b3af 100644 --- a/include/drm/drm_framework_common.h +++ b/include/drm/drm_framework_common.h @@ -217,6 +217,10 @@ public: * POSIX based Decrypt API set for container based DRM */ static const int CONTAINER_BASED = 0x02; + /** + * Decrypt API for Widevine streams + */ + static const int WV_BASED = 0x3; }; /**