Commit 05a3da34 authored by Yacine Bandou's avatar Yacine Bandou Committed by Thibault Saunier

protection: Add a new definition for unspecified system protection

In some cases the system protection ID is not present in the contents
or in their metadata.
This define is used to set the value of the "system_id" field in GstProtectionEvent,
with this value, the application will use an external information to choose which
protection system to use.

Example: The matroskademux uses this value in the case of encrypted WebM,
the application will choose the appropriate protection system based on the information
received through EME API.

https://bugzilla.gnome.org/show_bug.cgi?id=797231
parent 22d0f407
......@@ -2506,6 +2506,7 @@ gst_buffer_get_protection_meta
gst_protection_select_system
gst_protection_filter_systems_by_available_decryptors
GST_PROTECTION_SYSTEM_ID_CAPS_FIELD
GST_PROTECTION_UNSPECIFIED_SYSTEM_ID
<SUBSECTION Standard>
GST_PROTECTION_META_API_TYPE
GST_PROTECTION_META_INFO
......
......@@ -34,6 +34,24 @@ G_BEGIN_DECLS
*/
#define GST_PROTECTION_SYSTEM_ID_CAPS_FIELD "protection-system"
/**
* GST_PROTECTION_UNSPECIFIED_SYSTEM_ID:
*
* The protection system value of the unspecified UUID.
* In some cases the system protection ID is not present in the contents or in their
* metadata, as encrypted WebM.
* This define is used to set the value of the "system_id" field in GstProtectionEvent,
* with this value, the application will use an external information to choose which
* protection system to use.
*
* Example: The matroskademux uses this value in the case of encrypted WebM,
* the application will choose the appropriate protection system based on the information
* received through EME API.
*
* Since: 1.16
*/
#define GST_PROTECTION_UNSPECIFIED_SYSTEM_ID "unspecified.gstreamer.org"
typedef struct _GstProtectionMeta GstProtectionMeta;
/**
* GstProtectionMeta:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment