Native Player
1.0
Main Page
Namespaces
Classes
Files
File List
File Members
content_protection_visitor.h
Go to the documentation of this file.
1
// ----------------------------------------------------------------------------
2
//
3
// Copyright (c) 2016, Samsung Electronics Co., Ltd
4
//
5
// Permission is hereby granted, free of charge, to any person obtaining a copy
6
// of this software and associated documentation files (the "Software"), to
7
// deal in the Software without restriction, including without limitation the
8
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
9
// sell copies of the Software, and to permit persons to whom the Software is
10
// furnished to do so, subject to the following conditions:
11
//
12
// The above copyright notice and this permission notice shall be included in
13
// all copies or substantial portions of the Software.
14
//
15
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM
20
// , OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
// THE SOFTWARE.
22
//
23
// @author Adam Bujalski
24
//
25
// ----------------------------------------------------------------------------
26
27
#ifndef SRC_PLAYER_ES_DASH_PLAYER_DASH_CONTENT_PROTECTION_VISITOR_H_
28
#define SRC_PLAYER_ES_DASH_PLAYER_DASH_CONTENT_PROTECTION_VISITOR_H_
29
30
#include <memory>
31
#include <vector>
32
36
37
namespace
dash
{
38
namespace
mpd {
39
class
IDescriptor;
40
}
41
}
42
55
class
ContentProtectionDescriptor
{
56
public
:
58
virtual
~
ContentProtectionDescriptor
() =
default
;
59
60
protected
:
61
ContentProtectionDescriptor
() =
default
;
62
ContentProtectionDescriptor
(
const
ContentProtectionDescriptor
&) =
default
;
63
ContentProtectionDescriptor
(
ContentProtectionDescriptor
&&) =
default
;
64
ContentProtectionDescriptor
& operator=(
const
ContentProtectionDescriptor
&) =
65
default
;
66
ContentProtectionDescriptor
& operator=(
ContentProtectionDescriptor
&&) =
67
default
;
68
};
69
89
class
ContentProtectionVisitor
{
90
public
:
92
virtual
~
ContentProtectionVisitor
() =
default
;
93
106
virtual
std::shared_ptr<ContentProtectionDescriptor> Visit(
107
const
std::vector<dash::mpd::IDescriptor*>& cp) = 0;
108
109
protected
:
110
ContentProtectionVisitor
() =
default
;
111
ContentProtectionVisitor
(
const
ContentProtectionVisitor
&) =
default
;
112
ContentProtectionVisitor
(
ContentProtectionVisitor
&&) =
default
;
113
ContentProtectionVisitor
& operator=(
const
ContentProtectionVisitor
&) =
114
default
;
115
ContentProtectionVisitor
& operator=(
ContentProtectionVisitor
&&) =
116
default
;
117
};
118
119
#endif // SRC_PLAYER_ES_DASH_PLAYER_DASH_CONTENT_PROTECTION_VISITOR_H_
ContentProtectionVisitor
This is an interface for classes provided by the application parsing DRM information from the DASH ma...
Definition:
content_protection_visitor.h:89
dash
Definition:
content_protection_visitor.h:37
ContentProtectionDescriptor
This is an interface for all DRM handling classes provided by the application.
Definition:
content_protection_visitor.h:55
dash
content_protection_visitor.h
Generated by
1.8.11