-
Notifications
You must be signed in to change notification settings - Fork 10
/
StreamsStyleConfigPlayerStyle.ts
73 lines (63 loc) · 1.77 KB
/
StreamsStyleConfigPlayerStyle.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
60
61
62
63
64
65
66
67
68
69
70
71
72
import {map, mapArray} from '../common/Mapper';
/**
* Player style config
* @export
* @class StreamsStyleConfigPlayerStyle
*/
export class StreamsStyleConfigPlayerStyle {
/**
* Playback marker background color
* @type {string}
* @memberof StreamsStyleConfigPlayerStyle
*/
public playbackMarkerBgColor?: string;
/**
* Playback marker border color
* @type {string}
* @memberof StreamsStyleConfigPlayerStyle
*/
public playbackMarkerBorderColor?: string;
/**
* Playback track played color
* @type {string}
* @memberof StreamsStyleConfigPlayerStyle
*/
public playbackTrackPlayedColor?: string;
/**
* Playback track buffered color
* @type {string}
* @memberof StreamsStyleConfigPlayerStyle
*/
public playbackTrackBufferedColor?: string;
/**
* Playback track background color
* @type {string}
* @memberof StreamsStyleConfigPlayerStyle
*/
public playbackTrackBgColor?: string;
/**
* Text color
* @type {string}
* @memberof StreamsStyleConfigPlayerStyle
*/
public textColor?: string;
/**
* Background color
* @type {string}
* @memberof StreamsStyleConfigPlayerStyle
*/
public backgroundColor?: string;
constructor(obj?: Partial<StreamsStyleConfigPlayerStyle>) {
if(!obj) {
return;
}
this.playbackMarkerBgColor = map(obj.playbackMarkerBgColor);
this.playbackMarkerBorderColor = map(obj.playbackMarkerBorderColor);
this.playbackTrackPlayedColor = map(obj.playbackTrackPlayedColor);
this.playbackTrackBufferedColor = map(obj.playbackTrackBufferedColor);
this.playbackTrackBgColor = map(obj.playbackTrackBgColor);
this.textColor = map(obj.textColor);
this.backgroundColor = map(obj.backgroundColor);
}
}
export default StreamsStyleConfigPlayerStyle;