diff options
Diffstat (limited to 'drm/libdrmframework/plugins/common/include')
-rw-r--r-- | drm/libdrmframework/plugins/common/include/DrmEngineBase.h | 5 | ||||
-rw-r--r-- | drm/libdrmframework/plugins/common/include/IDrmEngine.h | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/drm/libdrmframework/plugins/common/include/DrmEngineBase.h b/drm/libdrmframework/plugins/common/include/DrmEngineBase.h index 6cebb97..fa51c13 100644 --- a/drm/libdrmframework/plugins/common/include/DrmEngineBase.h +++ b/drm/libdrmframework/plugins/common/include/DrmEngineBase.h @@ -53,7 +53,7 @@ public: DrmInfo* acquireDrmInfo(int uniqueId, const DrmInfoRequest* drmInfoRequest); - String8 getOriginalMimeType(int uniqueId, const String8& path); + String8 getOriginalMimeType(int uniqueId, const String8& path, int fd); int getDrmObjectType(int uniqueId, const String8& path, const String8& mimeType); @@ -222,10 +222,11 @@ protected: * * @param[in] uniqueId Unique identifier for a session * @param[in] path Path of the protected content + * @param[in] fd descriptor of the protected content as a file source * @return String8 * Returns mime-type of the original content, such as "video/mpeg" */ - virtual String8 onGetOriginalMimeType(int uniqueId, const String8& path) = 0; + virtual String8 onGetOriginalMimeType(int uniqueId, const String8& path, int fd) = 0; /** * Retrieves the type of the protected object (content, rights, etc..) diff --git a/drm/libdrmframework/plugins/common/include/IDrmEngine.h b/drm/libdrmframework/plugins/common/include/IDrmEngine.h index 60f4c1b..acc8ed9 100644 --- a/drm/libdrmframework/plugins/common/include/IDrmEngine.h +++ b/drm/libdrmframework/plugins/common/include/IDrmEngine.h @@ -165,11 +165,12 @@ public: * Retrieves the mime type embedded inside the original content * * @param[in] uniqueId Unique identifier for a session - * @param[in] path Path of the protected content + * @param[in] path Path of the content or null. + * @param[in] fd File descriptor of the protected content * @return String8 * Returns mime-type of the original content, such as "video/mpeg" */ - virtual String8 getOriginalMimeType(int uniqueId, const String8& path) = 0; + virtual String8 getOriginalMimeType(int uniqueId, const String8& path, int fd) = 0; /** * Retrieves the type of the protected object (content, rights, etc..) |