blob: f4ca98d0b1b30a36b7b85947a65dca99a657aac9 (
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
|
package com.coremedia.iso.boxes.apple;
import java.util.HashMap;
import java.util.Map;
/**
* itunes MetaData comment box.
*/
public class AppleMediaTypeBox extends AbstractAppleMetaDataBox {
private static Map<String, String> mediaTypes = new HashMap<String, String>();
static {
mediaTypes.put("0", "Movie (is now 9)");
mediaTypes.put("1", "Normal (Music)");
mediaTypes.put("2", "Audiobook");
mediaTypes.put("6", "Music Video");
mediaTypes.put("9", "Movie");
mediaTypes.put("10", "TV Show");
mediaTypes.put("11", "Booklet");
mediaTypes.put("14", "Ringtone");
}
public static final String TYPE = "stik";
public AppleMediaTypeBox() {
super(TYPE);
appleDataBox = AppleDataBox.getUint8AppleDataBox();
}
public String getReadableValue() {
if (mediaTypes.containsKey(getValue())) {
return mediaTypes.get(getValue());
} else {
return "unknown media type " + getValue();
}
}
}
|