Package org.red5.server.net.rtmp
Class Channel
java.lang.Object
org.red5.server.net.rtmp.Channel
Identified connection that transfers packets.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionChannel(RTMPConnection conn, int channelId) Creates channel from connection and channel id -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes channel with this id on RTMP connection.protected RTMPConnectionGetter for RTMP connection.intgetId()Getter for id.voidsendStatus(Status status) Sends status notification.toString()voidwrite(IRTMPEvent event) Writes packet from event data to RTMP connection.
-
Field Details
-
log
protected static org.slf4j.Logger log
-
-
Constructor Details
-
Channel
Creates channel from connection and channel id- Parameters:
conn- ConnectionchannelId- Channel id
-
-
Method Details
-
close
public void close()Closes channel with this id on RTMP connection. -
getId
public int getId()Getter for id.- Returns:
- Channel ID
-
getConnection
Getter for RTMP connection.- Returns:
- RTMP connection
-
write
Writes packet from event data to RTMP connection.- Parameters:
event- Event data
-
sendStatus
Sends status notification.- Parameters:
status- Status
-
toString
-