blob: 9268e58245f50970605f3930e1e7c0542a48d6a9 (
plain)
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
|
package com.smartdevicelink.proxy.rpc;
import com.smartdevicelink.proxy.RPCStruct;
import com.smartdevicelink.proxy.rpc.enums.VideoStreamingCodec;
import com.smartdevicelink.proxy.rpc.enums.VideoStreamingProtocol;
import java.util.Hashtable;
/**
* Configuration of a video stream.
*/
public class VideoConfig extends RPCStruct{
public static final String KEY_PROTOCOL = "protocol";
public static final String KEY_CODEC = "codec";
public static final String KEY_WIDTH = "width";
public static final String KEY_HEIGHT = "height";
public VideoConfig(){}
public VideoConfig(Hashtable<String, Object> hash){super(hash);}
public void setProtocol(VideoStreamingProtocol protocol){
setValue(KEY_PROTOCOL, protocol);
}
public VideoStreamingProtocol getProtocol(){
return (VideoStreamingProtocol) getObject(VideoStreamingProtocol.class, KEY_PROTOCOL);
}
public void setCodec(VideoStreamingCodec codec){
setValue(KEY_CODEC, codec);
}
public VideoStreamingCodec getCodec(){
return (VideoStreamingCodec) getObject(VideoStreamingCodec.class, KEY_CODEC);
}
public void setWidth(Integer width){
setValue(KEY_WIDTH, width);
}
public Integer getWidth(){
return getInteger(KEY_WIDTH);
}
public void setHeight(Integer height){
setValue(KEY_HEIGHT, height);
}
public Integer getHeight(){
return getInteger(KEY_HEIGHT);
}
}
|