-
Notifications
You must be signed in to change notification settings - Fork 10
/
NexGuardFileMarker.ts
60 lines (52 loc) · 2.1 KB
/
NexGuardFileMarker.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import {map, mapArray} from '../common/Mapper';
import BitmovinResource from './BitmovinResource';
import NexGuardWatermarkingStrength from './NexGuardWatermarkingStrength';
import NexGuardWatermarkingType from './NexGuardWatermarkingType';
/**
* @export
* @class NexGuardFileMarker
*/
export class NexGuardFileMarker extends BitmovinResource {
/**
* Use the base64 license string that Nagra provides you. (required)
* @type {string}
* @memberof NexGuardFileMarker
*/
public license?: string;
/**
* The type of watermarking to be used: * `OTT` - A/B watermarking (for video streams only) * `DUPLICATED` - Stream duplication to match A/B video streams in CDN delivery (for audio streams only)
* @type {NexGuardWatermarkingType}
* @memberof NexGuardFileMarker
*/
public watermarkType?: NexGuardWatermarkingType;
/**
* Specify the payload ID that you want to be associated with this output. Valid values vary depending on your Nagra NexGuard forensic watermarking workflow. For PreRelease Content (NGPR), specify an integer from 1 through 4,194,303. You must generate a unique ID for each asset you watermark, and keep a record of th ID. Neither Nagra nor Bitmovin keep track of this for you.
* @type {number}
* @memberof NexGuardFileMarker
*/
public payload?: number;
/**
* Enter one of the watermarking preset strings that Nagra provides you.
* @type {string}
* @memberof NexGuardFileMarker
*/
public preset?: string;
/**
* Optional. Ignore this setting unless Nagra support directs you to specify a value. When you don't specify a value here, the Nagra NexGuard library uses its default value.
* @type {NexGuardWatermarkingStrength}
* @memberof NexGuardFileMarker
*/
public strength?: NexGuardWatermarkingStrength;
constructor(obj?: Partial<NexGuardFileMarker>) {
super(obj);
if(!obj) {
return;
}
this.license = map(obj.license);
this.watermarkType = map(obj.watermarkType);
this.payload = map(obj.payload);
this.preset = map(obj.preset);
this.strength = map(obj.strength);
}
}
export default NexGuardFileMarker;