public class Channel extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
Channel(RTMPConnection conn,
int channelId)
Creates channel from connection and channel id
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes channel with this id on RTMP connection.
|
protected RTMPConnection |
getConnection()
Getter for RTMP connection.
|
int |
getId()
Getter for id.
|
void |
sendStatus(Status status)
Sends status notification.
|
String |
toString() |
void |
write(IRTMPEvent event)
Writes packet from event data to RTMP connection.
|
public Channel(RTMPConnection conn, int channelId)
conn - ConnectionchannelId - Channel idpublic void close()
public int getId()
protected RTMPConnection getConnection()
public void write(IRTMPEvent event)
event - Event datapublic void sendStatus(Status status)
status - StatusCopyright © 2005–2017 Red5. All rights reserved.