3
3
import java .util .Map ;
4
4
5
5
import org .apache .mina .core .buffer .IoBuffer ;
6
+
6
7
/**
7
8
* Extended interface for new E-rtmp video handlers. Methods called by abstract video codec when allowing it to parse the data.
8
- * Methods are called only if codec id of frame is valid.
9
+ * Methods are called only if codec id of frame is valid.
9
10
*/
10
11
public interface IEnhancedRTMPVideoCodec extends IVideoStreamCodec {
11
- /**
12
- * Called when frame type is video command.
13
- * @param command
14
- * @param data
15
- * @param timestamp
16
- */
12
+
13
+ /**
14
+ * Called when frame type is video command.
15
+ * @param command
16
+ * @param data
17
+ * @param timestamp
18
+ */
17
19
default void onVideoCommand (VideoCommand command , IoBuffer data , int timestamp ) {
18
20
};
21
+
19
22
/**
20
23
* Called when type is video metadata.
21
24
* @param metainfos
22
25
*/
23
26
default void onVideoMetadata (Map <String , Object > metainfos ) {
24
27
};
28
+
25
29
/**
26
30
* called when type is multitrack and valid
27
31
* @param type
@@ -30,6 +34,7 @@ default void onVideoMetadata(Map<String, Object> metainfos) {
30
34
*/
31
35
default void onMultiTrackParsed (AvMultitrackType type , IoBuffer data , int timestamp ) {
32
36
};
37
+
33
38
/**
34
39
* called when frame type is anything other than command, metadata, or multitrack.
35
40
* Only will be called if codec id of frame is valid.
@@ -40,8 +45,9 @@ default void onMultiTrackParsed(AvMultitrackType type, IoBuffer data, int timest
40
45
*/
41
46
default void handleFrame (VideoPacketType packetType , VideoFrameType frameType , IoBuffer data , int timestamp ) {
42
47
};
48
+
43
49
/**
44
- * Called if video frame is not enhanced and codec id is valid.
50
+ * Called if video frame is not enhanced and codec id is valid.
45
51
* @param type
46
52
* @param data
47
53
* @param timestamp
0 commit comments