Skip to content

Commit ba2cc24

Browse files
committed
Format updated
1 parent 26e909c commit ba2cc24

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

io/src/main/java/org/red5/codec/IEnhancedRTMPVideoCodec.java

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,29 @@
33
import java.util.Map;
44

55
import org.apache.mina.core.buffer.IoBuffer;
6+
67
/**
78
* 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.
910
*/
1011
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+
*/
1719
default void onVideoCommand(VideoCommand command, IoBuffer data, int timestamp) {
1820
};
21+
1922
/**
2023
* Called when type is video metadata.
2124
* @param metainfos
2225
*/
2326
default void onVideoMetadata(Map<String, Object> metainfos) {
2427
};
28+
2529
/**
2630
* called when type is multitrack and valid
2731
* @param type
@@ -30,6 +34,7 @@ default void onVideoMetadata(Map<String, Object> metainfos) {
3034
*/
3135
default void onMultiTrackParsed(AvMultitrackType type, IoBuffer data, int timestamp) {
3236
};
37+
3338
/**
3439
* called when frame type is anything other than command, metadata, or multitrack.
3540
* Only will be called if codec id of frame is valid.
@@ -40,8 +45,9 @@ default void onMultiTrackParsed(AvMultitrackType type, IoBuffer data, int timest
4045
*/
4146
default void handleFrame(VideoPacketType packetType, VideoFrameType frameType, IoBuffer data, int timestamp) {
4247
};
48+
4349
/**
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.
4551
* @param type
4652
* @param data
4753
* @param timestamp

0 commit comments

Comments
 (0)