|
Native Player
1.0
|
This is an interface for classes provided by the application parsing DRM information from the DASH manifest. More...
#include <content_protection_visitor.h>
Public Member Functions | |
| virtual | ~ContentProtectionVisitor ()=default |
Destroys ContentProtectionVisitor object. More... | |
| virtual std::shared_ptr< ContentProtectionDescriptor > | Visit (const std::vector< dash::mpd::IDescriptor * > &cp)=0 |
Protected Member Functions | |
| ContentProtectionVisitor ()=default | |
| ContentProtectionVisitor (const ContentProtectionVisitor &)=default | |
| ContentProtectionVisitor (ContentProtectionVisitor &&)=default | |
| ContentProtectionVisitor & | operator= (const ContentProtectionVisitor &)=default |
| ContentProtectionVisitor & | operator= (ContentProtectionVisitor &&)=default |
This is an interface for classes provided by the application parsing DRM information from the DASH manifest.
This class is used to create ContentProtectionDescriptor objects basing on the DASH manifest.
The DASH manifest can have node <ContentProtection> describing DRM.
ContentProtectionVisitor needs to be passed in DashManifest::ParseMPD method in order to be used. When the DASH parser encounters <ContentProtection> ContentProtectionVisitor::Visit is called. Application has to define by itself which fields - subnodes of <ContentProtection> node are needed to be parsed to find DRM information.
Definition at line 89 of file content_protection_visitor.h.
|
virtualdefault |
Destroys ContentProtectionVisitor object.
|
protecteddefault |
|
protecteddefault |
|
protecteddefault |
|
protecteddefault |
|
protecteddefault |
|
pure virtual |
This method is called when DASH parser - DashManifest discovers <ContentProtection> node in DASH manifest and passes vector of it's contents.
This method performs a search for the DRM-dependent <ContentProtection> node and builds ContentProtectionDescription for this specific DRM.
| [in] | cp | A vector of <ContentProtection> node content in which DRM information will be looked for. |
<ContentProtection> node for specified DRM.empty shared_ptr if no information has been found.