id int32 0 165k | repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 |
|---|---|---|---|---|---|---|---|---|---|---|---|
108,000 | Red5/red5-server-common | src/main/java/org/red5/server/scope/Scope.java | Scope.setPersistenceClass | public void setPersistenceClass(String persistenceClass) throws Exception {
this.persistenceClass = persistenceClass;
if (persistenceClass != null) {
store = PersistenceUtils.getPersistenceStore(this, persistenceClass);
}
} | java | public void setPersistenceClass(String persistenceClass) throws Exception {
this.persistenceClass = persistenceClass;
if (persistenceClass != null) {
store = PersistenceUtils.getPersistenceStore(this, persistenceClass);
}
} | [
"public",
"void",
"setPersistenceClass",
"(",
"String",
"persistenceClass",
")",
"throws",
"Exception",
"{",
"this",
".",
"persistenceClass",
"=",
"persistenceClass",
";",
"if",
"(",
"persistenceClass",
"!=",
"null",
")",
"{",
"store",
"=",
"PersistenceUtils",
"."... | Set scope persistence class
@param persistenceClass
Scope's persistence class
@throws Exception
Exception | [
"Set",
"scope",
"persistence",
"class"
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/scope/Scope.java#L1066-L1071 |
108,001 | Red5/red5-server-common | src/main/java/org/red5/server/scope/Scope.java | Scope.unregisterServiceHandler | public void unregisterServiceHandler(String name) {
Map<String, Object> serviceHandlers = getServiceHandlers(false);
if (serviceHandlers != null) {
serviceHandlers.remove(name);
}
} | java | public void unregisterServiceHandler(String name) {
Map<String, Object> serviceHandlers = getServiceHandlers(false);
if (serviceHandlers != null) {
serviceHandlers.remove(name);
}
} | [
"public",
"void",
"unregisterServiceHandler",
"(",
"String",
"name",
")",
"{",
"Map",
"<",
"String",
",",
"Object",
">",
"serviceHandlers",
"=",
"getServiceHandlers",
"(",
"false",
")",
";",
"if",
"(",
"serviceHandlers",
"!=",
"null",
")",
"{",
"serviceHandler... | Unregisters service handler by name
@param name
Service handler name | [
"Unregisters",
"service",
"handler",
"by",
"name"
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/scope/Scope.java#L1144-L1149 |
108,002 | Red5/red5-server-common | src/main/java/org/red5/server/scope/Scope.java | Scope.getServer | public IServer getServer() {
if (hasParent()) {
final IScope parent = getParent();
if (parent instanceof Scope) {
return ((Scope) parent).getServer();
} else if (parent instanceof IGlobalScope) {
return ((IGlobalScope) parent).getServer()... | java | public IServer getServer() {
if (hasParent()) {
final IScope parent = getParent();
if (parent instanceof Scope) {
return ((Scope) parent).getServer();
} else if (parent instanceof IGlobalScope) {
return ((IGlobalScope) parent).getServer()... | [
"public",
"IServer",
"getServer",
"(",
")",
"{",
"if",
"(",
"hasParent",
"(",
")",
")",
"{",
"final",
"IScope",
"parent",
"=",
"getParent",
"(",
")",
";",
"if",
"(",
"parent",
"instanceof",
"Scope",
")",
"{",
"return",
"(",
"(",
"Scope",
")",
"parent... | Return the server instance connected to this scope.
@return the server instance | [
"Return",
"the",
"server",
"instance",
"connected",
"to",
"this",
"scope",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/scope/Scope.java#L1156-L1166 |
108,003 | Red5/red5-server-common | src/main/java/org/red5/server/messaging/PipeConnectionEvent.java | PipeConnectionEvent.setParamMap | public void setParamMap(Map<String, Object> paramMap) {
if (paramMap != null && !paramMap.isEmpty()) {
this.paramMap.putAll(paramMap);
}
} | java | public void setParamMap(Map<String, Object> paramMap) {
if (paramMap != null && !paramMap.isEmpty()) {
this.paramMap.putAll(paramMap);
}
} | [
"public",
"void",
"setParamMap",
"(",
"Map",
"<",
"String",
",",
"Object",
">",
"paramMap",
")",
"{",
"if",
"(",
"paramMap",
"!=",
"null",
"&&",
"!",
"paramMap",
".",
"isEmpty",
"(",
")",
")",
"{",
"this",
".",
"paramMap",
".",
"putAll",
"(",
"paramM... | Setter for event parameters map
@param paramMap
Event parameters as Map | [
"Setter",
"for",
"event",
"parameters",
"map"
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/messaging/PipeConnectionEvent.java#L155-L159 |
108,004 | Red5/red5-server-common | src/main/java/org/red5/server/messaging/PipeConnectionEvent.java | PipeConnectionEvent.build | public final static PipeConnectionEvent build(AbstractPipe source, EventType type, IConsumer consumer, Map<String, Object> paramMap) {
return new PipeConnectionEvent(source, type, consumer, paramMap);
} | java | public final static PipeConnectionEvent build(AbstractPipe source, EventType type, IConsumer consumer, Map<String, Object> paramMap) {
return new PipeConnectionEvent(source, type, consumer, paramMap);
} | [
"public",
"final",
"static",
"PipeConnectionEvent",
"build",
"(",
"AbstractPipe",
"source",
",",
"EventType",
"type",
",",
"IConsumer",
"consumer",
",",
"Map",
"<",
"String",
",",
"Object",
">",
"paramMap",
")",
"{",
"return",
"new",
"PipeConnectionEvent",
"(",
... | Builds a PipeConnectionEvent with a source pipe and consumer.
@param source pipe that triggers this event
@param type event type
@param consumer the consumer
@param paramMap parameters map
@return event | [
"Builds",
"a",
"PipeConnectionEvent",
"with",
"a",
"source",
"pipe",
"and",
"consumer",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/messaging/PipeConnectionEvent.java#L189-L191 |
108,005 | Red5/red5-server-common | src/main/java/org/red5/server/messaging/PipeConnectionEvent.java | PipeConnectionEvent.build | public final static PipeConnectionEvent build(AbstractPipe source, EventType type, IProvider provider, Map<String, Object> paramMap) {
return new PipeConnectionEvent(source, type, provider, paramMap);
} | java | public final static PipeConnectionEvent build(AbstractPipe source, EventType type, IProvider provider, Map<String, Object> paramMap) {
return new PipeConnectionEvent(source, type, provider, paramMap);
} | [
"public",
"final",
"static",
"PipeConnectionEvent",
"build",
"(",
"AbstractPipe",
"source",
",",
"EventType",
"type",
",",
"IProvider",
"provider",
",",
"Map",
"<",
"String",
",",
"Object",
">",
"paramMap",
")",
"{",
"return",
"new",
"PipeConnectionEvent",
"(",
... | Builds a PipeConnectionEvent with a source pipe and provider.
@param source pipe that triggers this event
@param type event type
@param provider the provider
@param paramMap parameters map
@return event | [
"Builds",
"a",
"PipeConnectionEvent",
"with",
"a",
"source",
"pipe",
"and",
"provider",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/messaging/PipeConnectionEvent.java#L202-L204 |
108,006 | Red5/red5-server-common | src/main/java/org/red5/server/net/remoting/RemotingClient.java | RemotingClient.setCredentials | public void setCredentials(String userid, String password) {
Map<String, String> data = new HashMap<String, String>();
data.put("userid", userid);
data.put("password", password);
RemotingHeader header = new RemotingHeader(RemotingHeader.CREDENTIALS, true, data);
headers.put(... | java | public void setCredentials(String userid, String password) {
Map<String, String> data = new HashMap<String, String>();
data.put("userid", userid);
data.put("password", password);
RemotingHeader header = new RemotingHeader(RemotingHeader.CREDENTIALS, true, data);
headers.put(... | [
"public",
"void",
"setCredentials",
"(",
"String",
"userid",
",",
"String",
"password",
")",
"{",
"Map",
"<",
"String",
",",
"String",
">",
"data",
"=",
"new",
"HashMap",
"<",
"String",
",",
"String",
">",
"(",
")",
";",
"data",
".",
"put",
"(",
"\"u... | Send authentication data with each remoting request.
@param userid
User identifier
@param password
Password | [
"Send",
"authentication",
"data",
"with",
"each",
"remoting",
"request",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/remoting/RemotingClient.java#L265-L271 |
108,007 | Red5/red5-server-common | src/main/java/org/red5/server/net/remoting/RemotingClient.java | RemotingClient.addHeader | public void addHeader(String name, boolean required, Object value) {
RemotingHeader header = new RemotingHeader(name, required, value);
headers.put(name, header);
} | java | public void addHeader(String name, boolean required, Object value) {
RemotingHeader header = new RemotingHeader(name, required, value);
headers.put(name, header);
} | [
"public",
"void",
"addHeader",
"(",
"String",
"name",
",",
"boolean",
"required",
",",
"Object",
"value",
")",
"{",
"RemotingHeader",
"header",
"=",
"new",
"RemotingHeader",
"(",
"name",
",",
"required",
",",
"value",
")",
";",
"headers",
".",
"put",
"(",
... | Send an additional header to the server.
@param name
Header name
@param required
Header required?
@param value
Header body | [
"Send",
"an",
"additional",
"header",
"to",
"the",
"server",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/remoting/RemotingClient.java#L290-L293 |
108,008 | Red5/red5-server-common | src/main/java/org/red5/server/net/remoting/RemotingClient.java | RemotingClient.invokeMethod | public Object invokeMethod(String method, Object[] params) {
log.debug("invokeMethod url: {}", (url + appendToUrl));
IoBuffer resultBuffer = null;
IoBuffer data = encodeInvoke(method, params);
//setup POST
HttpPost post = null;
try {
post = new HttpPost... | java | public Object invokeMethod(String method, Object[] params) {
log.debug("invokeMethod url: {}", (url + appendToUrl));
IoBuffer resultBuffer = null;
IoBuffer data = encodeInvoke(method, params);
//setup POST
HttpPost post = null;
try {
post = new HttpPost... | [
"public",
"Object",
"invokeMethod",
"(",
"String",
"method",
",",
"Object",
"[",
"]",
"params",
")",
"{",
"log",
".",
"debug",
"(",
"\"invokeMethod url: {}\"",
",",
"(",
"url",
"+",
"appendToUrl",
")",
")",
";",
"IoBuffer",
"resultBuffer",
"=",
"null",
";"... | Invoke a method synchronously on the remoting server.
@param method
Method name
@param params
Parameters passed to method
@return the result of the method call | [
"Invoke",
"a",
"method",
"synchronously",
"on",
"the",
"remoting",
"server",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/remoting/RemotingClient.java#L314-L362 |
108,009 | Red5/red5-server-common | src/main/java/org/red5/server/net/remoting/RemotingClient.java | RemotingClient.invokeMethod | public void invokeMethod(String method, Object[] methodParams, IRemotingCallback callback) {
try {
RemotingWorker worker = new RemotingWorker(this, method, methodParams, callback);
executor.execute(worker);
} catch (Exception err) {
log.warn("Exception invoking m... | java | public void invokeMethod(String method, Object[] methodParams, IRemotingCallback callback) {
try {
RemotingWorker worker = new RemotingWorker(this, method, methodParams, callback);
executor.execute(worker);
} catch (Exception err) {
log.warn("Exception invoking m... | [
"public",
"void",
"invokeMethod",
"(",
"String",
"method",
",",
"Object",
"[",
"]",
"methodParams",
",",
"IRemotingCallback",
"callback",
")",
"{",
"try",
"{",
"RemotingWorker",
"worker",
"=",
"new",
"RemotingWorker",
"(",
"this",
",",
"method",
",",
"methodPa... | Invoke a method asynchronously on the remoting server.
@param method
Method name
@param methodParams
Parameters passed to method
@param callback
Callback | [
"Invoke",
"a",
"method",
"asynchronously",
"on",
"the",
"remoting",
"server",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/remoting/RemotingClient.java#L374-L381 |
108,010 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/codec/RTMPProtocolDecoder.java | RTMPProtocolDecoder.decodeBuffer | public List<Object> decodeBuffer(RTMPConnection conn, IoBuffer buffer) {
final int position = buffer.position();
//if (log.isTraceEnabled()) {
//log.trace("decodeBuffer: {}", Hex.encodeHexString(Arrays.copyOfRange(buffer.array(), position, buffer.limit())));
//}
// decod... | java | public List<Object> decodeBuffer(RTMPConnection conn, IoBuffer buffer) {
final int position = buffer.position();
//if (log.isTraceEnabled()) {
//log.trace("decodeBuffer: {}", Hex.encodeHexString(Arrays.copyOfRange(buffer.array(), position, buffer.limit())));
//}
// decod... | [
"public",
"List",
"<",
"Object",
">",
"decodeBuffer",
"(",
"RTMPConnection",
"conn",
",",
"IoBuffer",
"buffer",
")",
"{",
"final",
"int",
"position",
"=",
"buffer",
".",
"position",
"(",
")",
";",
"//if (log.isTraceEnabled()) {\r",
"//log.trace(\"decodeBuffer: {}\",... | Decode all available objects in buffer.
@param conn
RTMP connection
@param buffer
IoBuffer of data to be decoded
@return a list of decoded objects, may be empty if nothing could be decoded | [
"Decode",
"all",
"available",
"objects",
"in",
"buffer",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/codec/RTMPProtocolDecoder.java#L102-L163 |
108,011 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/codec/RTMPProtocolDecoder.java | RTMPProtocolDecoder.decode | public Object decode(RTMPConnection conn, RTMPDecodeState state, IoBuffer in) throws ProtocolException {
//if (log.isTraceEnabled()) {
//log.trace("Decoding for {}", conn.getSessionId());
//}
try {
final byte connectionState = conn.getStateCode();
switch... | java | public Object decode(RTMPConnection conn, RTMPDecodeState state, IoBuffer in) throws ProtocolException {
//if (log.isTraceEnabled()) {
//log.trace("Decoding for {}", conn.getSessionId());
//}
try {
final byte connectionState = conn.getStateCode();
switch... | [
"public",
"Object",
"decode",
"(",
"RTMPConnection",
"conn",
",",
"RTMPDecodeState",
"state",
",",
"IoBuffer",
"in",
")",
"throws",
"ProtocolException",
"{",
"//if (log.isTraceEnabled()) {\r",
"//log.trace(\"Decoding for {}\", conn.getSessionId());\r",
"//}\r",
"try",
"{",
... | Decodes the buffer data.
@param conn
RTMP connection
@param state
Stores state for the protocol, ProtocolState is just a marker interface
@param in
IoBuffer of data to be decoded
@return one of three possible values:
<pre>
1. null : the object could not be decoded, or some data was skipped, just continue
2. ProtocolS... | [
"Decodes",
"the",
"buffer",
"data",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/codec/RTMPProtocolDecoder.java#L184-L212 |
108,012 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/codec/RTMPProtocolDecoder.java | RTMPProtocolDecoder.decodeMessage | public IRTMPEvent decodeMessage(RTMPConnection conn, Header header, IoBuffer in) {
IRTMPEvent message;
byte dataType = header.getDataType();
switch (dataType) {
case TYPE_AUDIO_DATA:
message = decodeAudioData(in);
message.setSourceType(Constants.... | java | public IRTMPEvent decodeMessage(RTMPConnection conn, Header header, IoBuffer in) {
IRTMPEvent message;
byte dataType = header.getDataType();
switch (dataType) {
case TYPE_AUDIO_DATA:
message = decodeAudioData(in);
message.setSourceType(Constants.... | [
"public",
"IRTMPEvent",
"decodeMessage",
"(",
"RTMPConnection",
"conn",
",",
"Header",
"header",
",",
"IoBuffer",
"in",
")",
"{",
"IRTMPEvent",
"message",
";",
"byte",
"dataType",
"=",
"header",
".",
"getDataType",
"(",
")",
";",
"switch",
"(",
"dataType",
"... | Decodes RTMP message event.
@param conn
RTMP connection
@param header
RTMP header
@param in
Input IoBuffer
@return RTMP event | [
"Decodes",
"RTMP",
"message",
"event",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/codec/RTMPProtocolDecoder.java#L499-L571 |
108,013 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/codec/RTMPProtocolDecoder.java | RTMPProtocolDecoder.doDecodeSharedObject | protected void doDecodeSharedObject(SharedObjectMessage so, IoBuffer in, Input input) {
// Parse request body
Input amf3Input = new org.red5.io.amf3.Input(in);
while (in.hasRemaining()) {
final ISharedObjectEvent.Type type = SharedObjectTypeMapping.toType(in.get());
... | java | protected void doDecodeSharedObject(SharedObjectMessage so, IoBuffer in, Input input) {
// Parse request body
Input amf3Input = new org.red5.io.amf3.Input(in);
while (in.hasRemaining()) {
final ISharedObjectEvent.Type type = SharedObjectTypeMapping.toType(in.get());
... | [
"protected",
"void",
"doDecodeSharedObject",
"(",
"SharedObjectMessage",
"so",
",",
"IoBuffer",
"in",
",",
"Input",
"input",
")",
"{",
"// Parse request body\r",
"Input",
"amf3Input",
"=",
"new",
"org",
".",
"red5",
".",
"io",
".",
"amf3",
".",
"Input",
"(",
... | Perform the actual decoding of the shared object contents.
@param so
Shared object message
@param in
input buffer
@param input
Input object to be processed | [
"Perform",
"the",
"actual",
"decoding",
"of",
"the",
"shared",
"object",
"contents",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/codec/RTMPProtocolDecoder.java#L669-L739 |
108,014 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/codec/RTMPProtocolDecoder.java | RTMPProtocolDecoder.decodeAction | private Invoke decodeAction(Encoding encoding, IoBuffer in, Header header) {
// for response, the action string and invokeId is always encoded as AMF0 we use the first byte to decide which encoding to use
in.mark();
byte tmp = in.get();
in.reset();
Input input;
if (... | java | private Invoke decodeAction(Encoding encoding, IoBuffer in, Header header) {
// for response, the action string and invokeId is always encoded as AMF0 we use the first byte to decide which encoding to use
in.mark();
byte tmp = in.get();
in.reset();
Input input;
if (... | [
"private",
"Invoke",
"decodeAction",
"(",
"Encoding",
"encoding",
",",
"IoBuffer",
"in",
",",
"Header",
"header",
")",
"{",
"// for response, the action string and invokeId is always encoded as AMF0 we use the first byte to decide which encoding to use\r",
"in",
".",
"mark",
"(",... | Decode the 'action' for a supplied an Invoke.
@param encoding
AMF encoding
@param in
buffer
@param header
data header
@return notify | [
"Decode",
"the",
"action",
"for",
"a",
"supplied",
"an",
"Invoke",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/codec/RTMPProtocolDecoder.java#L752-L796 |
108,015 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/codec/RTMPProtocolDecoder.java | RTMPProtocolDecoder.decodePing | public Ping decodePing(IoBuffer in) {
Ping ping = null;
if (log.isTraceEnabled()) {
// gets the raw data as hex without changing the data or pointer
String hexDump = in.getHexDump();
log.trace("Ping dump: {}", hexDump);
}
// control type
... | java | public Ping decodePing(IoBuffer in) {
Ping ping = null;
if (log.isTraceEnabled()) {
// gets the raw data as hex without changing the data or pointer
String hexDump = in.getHexDump();
log.trace("Ping dump: {}", hexDump);
}
// control type
... | [
"public",
"Ping",
"decodePing",
"(",
"IoBuffer",
"in",
")",
"{",
"Ping",
"ping",
"=",
"null",
";",
"if",
"(",
"log",
".",
"isTraceEnabled",
"(",
")",
")",
"{",
"// gets the raw data as hex without changing the data or pointer\r",
"String",
"hexDump",
"=",
"in",
... | Decodes ping event.
@param in
IoBuffer
@return Ping event | [
"Decodes",
"ping",
"event",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/codec/RTMPProtocolDecoder.java#L810-L840 |
108,016 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/codec/RTMPProtocolDecoder.java | RTMPProtocolDecoder.isStreamCommand | @SuppressWarnings("unused")
private boolean isStreamCommand(String action) {
switch (StreamAction.getEnum(action)) {
case CREATE_STREAM:
case DELETE_STREAM:
case RELEASE_STREAM:
case PUBLISH:
case PLAY:
case PLAY2:
... | java | @SuppressWarnings("unused")
private boolean isStreamCommand(String action) {
switch (StreamAction.getEnum(action)) {
case CREATE_STREAM:
case DELETE_STREAM:
case RELEASE_STREAM:
case PUBLISH:
case PLAY:
case PLAY2:
... | [
"@",
"SuppressWarnings",
"(",
"\"unused\"",
")",
"private",
"boolean",
"isStreamCommand",
"(",
"String",
"action",
")",
"{",
"switch",
"(",
"StreamAction",
".",
"getEnum",
"(",
"action",
")",
")",
"{",
"case",
"CREATE_STREAM",
":",
"case",
"DELETE_STREAM",
":"... | Checks if the passed action is a reserved stream method.
@param action
Action to check
@return true if passed action is a reserved stream method, false otherwise | [
"Checks",
"if",
"the",
"passed",
"action",
"is",
"a",
"reserved",
"stream",
"method",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/codec/RTMPProtocolDecoder.java#L1092-L1112 |
108,017 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/Channel.java | Channel.write | public void write(IRTMPEvent event) {
if (!connection.isClosed()) {
final IClientStream stream = connection.getStreamByChannelId(id);
if (id > 3 && stream == null) {
log.warn("Non-existant stream for channel id: {}, session: {} discarding: {}", id, connection.getSessi... | java | public void write(IRTMPEvent event) {
if (!connection.isClosed()) {
final IClientStream stream = connection.getStreamByChannelId(id);
if (id > 3 && stream == null) {
log.warn("Non-existant stream for channel id: {}, session: {} discarding: {}", id, connection.getSessi... | [
"public",
"void",
"write",
"(",
"IRTMPEvent",
"event",
")",
"{",
"if",
"(",
"!",
"connection",
".",
"isClosed",
"(",
")",
")",
"{",
"final",
"IClientStream",
"stream",
"=",
"connection",
".",
"getStreamByChannelId",
"(",
"id",
")",
";",
"if",
"(",
"id",
... | Writes packet from event data to RTMP connection.
@param event
Event data | [
"Writes",
"packet",
"from",
"event",
"data",
"to",
"RTMP",
"connection",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/Channel.java#L103-L115 |
108,018 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/Channel.java | Channel.write | private void write(IRTMPEvent event, Number streamId) {
log.trace("write to stream id: {} channel: {}", streamId, id);
final Header header = new Header();
final Packet packet = new Packet(header, event);
// set the channel id
header.setChannelId(id);
int ts = event.... | java | private void write(IRTMPEvent event, Number streamId) {
log.trace("write to stream id: {} channel: {}", streamId, id);
final Header header = new Header();
final Packet packet = new Packet(header, event);
// set the channel id
header.setChannelId(id);
int ts = event.... | [
"private",
"void",
"write",
"(",
"IRTMPEvent",
"event",
",",
"Number",
"streamId",
")",
"{",
"log",
".",
"trace",
"(",
"\"write to stream id: {} channel: {}\"",
",",
"streamId",
",",
"id",
")",
";",
"final",
"Header",
"header",
"=",
"new",
"Header",
"(",
")"... | Writes packet from event data to RTMP connection and stream id.
@param event
Event data
@param streamId
Stream id | [
"Writes",
"packet",
"from",
"event",
"data",
"to",
"RTMP",
"connection",
"and",
"stream",
"id",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/Channel.java#L125-L140 |
108,019 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/Channel.java | Channel.discard | @SuppressWarnings("unused")
private void discard(IRTMPEvent event) {
if (event instanceof IStreamData<?>) {
log.debug("Discarding: {}", ((IStreamData<?>) event).toString());
IoBuffer data = ((IStreamData<?>) event).getData();
if (data != null) {
log.... | java | @SuppressWarnings("unused")
private void discard(IRTMPEvent event) {
if (event instanceof IStreamData<?>) {
log.debug("Discarding: {}", ((IStreamData<?>) event).toString());
IoBuffer data = ((IStreamData<?>) event).getData();
if (data != null) {
log.... | [
"@",
"SuppressWarnings",
"(",
"\"unused\"",
")",
"private",
"void",
"discard",
"(",
"IRTMPEvent",
"event",
")",
"{",
"if",
"(",
"event",
"instanceof",
"IStreamData",
"<",
"?",
">",
")",
"{",
"log",
".",
"debug",
"(",
"\"Discarding: {}\"",
",",
"(",
"(",
... | Discard an event routed to this channel.
@param event | [
"Discard",
"an",
"event",
"routed",
"to",
"this",
"channel",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/Channel.java#L147-L159 |
108,020 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/Channel.java | Channel.sendStatus | public void sendStatus(Status status) {
if (connection != null) {
final boolean andReturn = !status.getCode().equals(StatusCodes.NS_DATA_START);
final Invoke event = new Invoke();
if (andReturn) {
final PendingCall call = new PendingCall(null, CALL_ON_STA... | java | public void sendStatus(Status status) {
if (connection != null) {
final boolean andReturn = !status.getCode().equals(StatusCodes.NS_DATA_START);
final Invoke event = new Invoke();
if (andReturn) {
final PendingCall call = new PendingCall(null, CALL_ON_STA... | [
"public",
"void",
"sendStatus",
"(",
"Status",
"status",
")",
"{",
"if",
"(",
"connection",
"!=",
"null",
")",
"{",
"final",
"boolean",
"andReturn",
"=",
"!",
"status",
".",
"getCode",
"(",
")",
".",
"equals",
"(",
"StatusCodes",
".",
"NS_DATA_START",
")... | Sends status notification.
@param status
Status | [
"Sends",
"status",
"notification",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/Channel.java#L167-L196 |
108,021 | Red5/red5-server-common | src/main/java/org/red5/server/stream/StreamService.java | StreamService.pause | public void pause(Boolean pausePlayback, int position) {
IConnection conn = Red5.getConnectionLocal();
if (conn instanceof IStreamCapableConnection) {
IStreamCapableConnection streamConn = (IStreamCapableConnection) conn;
Number streamId = conn.getStreamId();
ICl... | java | public void pause(Boolean pausePlayback, int position) {
IConnection conn = Red5.getConnectionLocal();
if (conn instanceof IStreamCapableConnection) {
IStreamCapableConnection streamConn = (IStreamCapableConnection) conn;
Number streamId = conn.getStreamId();
ICl... | [
"public",
"void",
"pause",
"(",
"Boolean",
"pausePlayback",
",",
"int",
"position",
")",
"{",
"IConnection",
"conn",
"=",
"Red5",
".",
"getConnectionLocal",
"(",
")",
";",
"if",
"(",
"conn",
"instanceof",
"IStreamCapableConnection",
")",
"{",
"IStreamCapableConn... | Pause at given position. Required as "pausePlayback" can be "null" if no flag is passed by the client
@param pausePlayback
Pause playback or not
@param position
Pause position | [
"Pause",
"at",
"given",
"position",
".",
"Required",
"as",
"pausePlayback",
"can",
"be",
"null",
"if",
"no",
"flag",
"is",
"passed",
"by",
"the",
"client"
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/stream/StreamService.java#L255-L274 |
108,022 | Red5/red5-server-common | src/main/java/org/red5/server/stream/StreamService.java | StreamService.play | public void play(String name, int start, int length, Object reset) {
if (reset instanceof Boolean) {
play(name, start, length, ((Boolean) reset).booleanValue());
} else {
if (reset instanceof Integer) {
int value = (Integer) reset;
switch (va... | java | public void play(String name, int start, int length, Object reset) {
if (reset instanceof Boolean) {
play(name, start, length, ((Boolean) reset).booleanValue());
} else {
if (reset instanceof Integer) {
int value = (Integer) reset;
switch (va... | [
"public",
"void",
"play",
"(",
"String",
"name",
",",
"int",
"start",
",",
"int",
"length",
",",
"Object",
"reset",
")",
"{",
"if",
"(",
"reset",
"instanceof",
"Boolean",
")",
"{",
"play",
"(",
"name",
",",
"start",
",",
"length",
",",
"(",
"(",
"B... | Plays back a stream based on the supplied name, from the specified position for the given length of time.
@param name
- The name of a recorded file, or the identifier for live data. If
@param start
- The start time, in seconds. Allowed values are -2, -1, 0, or a positive number. The default value is -2, which looks fo... | [
"Plays",
"back",
"a",
"stream",
"based",
"on",
"the",
"supplied",
"name",
"from",
"the",
"specified",
"position",
"for",
"the",
"given",
"length",
"of",
"time",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/stream/StreamService.java#L294-L325 |
108,023 | Red5/red5-server-common | src/main/java/org/red5/server/stream/StreamService.java | StreamService.sendNSFailed | private void sendNSFailed(IConnection conn, String errorCode, String description, String name, Number streamId) {
StreamService.sendNetStreamStatus(conn, errorCode, description, name, Status.ERROR, streamId);
} | java | private void sendNSFailed(IConnection conn, String errorCode, String description, String name, Number streamId) {
StreamService.sendNetStreamStatus(conn, errorCode, description, name, Status.ERROR, streamId);
} | [
"private",
"void",
"sendNSFailed",
"(",
"IConnection",
"conn",
",",
"String",
"errorCode",
",",
"String",
"description",
",",
"String",
"name",
",",
"Number",
"streamId",
")",
"{",
"StreamService",
".",
"sendNetStreamStatus",
"(",
"conn",
",",
"errorCode",
",",
... | Send NetStream.Play.Failed to the client.
@param conn
@param errorCode
@param description
@param name
@param streamId | [
"Send",
"NetStream",
".",
"Play",
".",
"Failed",
"to",
"the",
"client",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/stream/StreamService.java#L800-L802 |
108,024 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/RTMPHandshake.java | RTMPHandshake.initRC4Encryption | protected void initRC4Encryption(byte[] sharedSecret) {
log.debug("Shared secret: {}", Hex.encodeHexString(sharedSecret));
// create output cipher
log.debug("Outgoing public key [{}]: {}", outgoingPublicKey.length, Hex.encodeHexString(outgoingPublicKey));
byte[] rc4keyOut = new byte[... | java | protected void initRC4Encryption(byte[] sharedSecret) {
log.debug("Shared secret: {}", Hex.encodeHexString(sharedSecret));
// create output cipher
log.debug("Outgoing public key [{}]: {}", outgoingPublicKey.length, Hex.encodeHexString(outgoingPublicKey));
byte[] rc4keyOut = new byte[... | [
"protected",
"void",
"initRC4Encryption",
"(",
"byte",
"[",
"]",
"sharedSecret",
")",
"{",
"log",
".",
"debug",
"(",
"\"Shared secret: {}\"",
",",
"Hex",
".",
"encodeHexString",
"(",
"sharedSecret",
")",
")",
";",
"// create output cipher\r",
"log",
".",
"debug"... | Prepare the ciphers.
@param sharedSecret shared secret byte sequence | [
"Prepare",
"the",
"ciphers",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/RTMPHandshake.java#L213-L239 |
108,025 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/RTMPHandshake.java | RTMPHandshake.generateKeyPair | protected KeyPair generateKeyPair() {
KeyPair keyPair = null;
DHParameterSpec keySpec = new DHParameterSpec(DH_MODULUS, DH_BASE);
try {
KeyPairGenerator keyGen = KeyPairGenerator.getInstance("DH");
keyGen.initialize(keySpec);
keyPair = keyGen.generateKey... | java | protected KeyPair generateKeyPair() {
KeyPair keyPair = null;
DHParameterSpec keySpec = new DHParameterSpec(DH_MODULUS, DH_BASE);
try {
KeyPairGenerator keyGen = KeyPairGenerator.getInstance("DH");
keyGen.initialize(keySpec);
keyPair = keyGen.generateKey... | [
"protected",
"KeyPair",
"generateKeyPair",
"(",
")",
"{",
"KeyPair",
"keyPair",
"=",
"null",
";",
"DHParameterSpec",
"keySpec",
"=",
"new",
"DHParameterSpec",
"(",
"DH_MODULUS",
",",
"DH_BASE",
")",
";",
"try",
"{",
"KeyPairGenerator",
"keyGen",
"=",
"KeyPairGen... | Creates a Diffie-Hellman key pair.
@return dh keypair | [
"Creates",
"a",
"Diffie",
"-",
"Hellman",
"key",
"pair",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/RTMPHandshake.java#L246-L260 |
108,026 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/RTMPHandshake.java | RTMPHandshake.getPublicKey | protected byte[] getPublicKey(KeyPair keyPair) {
DHPublicKey incomingPublicKey = (DHPublicKey) keyPair.getPublic();
BigInteger dhY = incomingPublicKey.getY();
if (log.isDebugEnabled()) {
log.debug("Public key: {}", Hex.encodeHexString(BigIntegers.asUnsignedByteArray(dhY)));
... | java | protected byte[] getPublicKey(KeyPair keyPair) {
DHPublicKey incomingPublicKey = (DHPublicKey) keyPair.getPublic();
BigInteger dhY = incomingPublicKey.getY();
if (log.isDebugEnabled()) {
log.debug("Public key: {}", Hex.encodeHexString(BigIntegers.asUnsignedByteArray(dhY)));
... | [
"protected",
"byte",
"[",
"]",
"getPublicKey",
"(",
"KeyPair",
"keyPair",
")",
"{",
"DHPublicKey",
"incomingPublicKey",
"=",
"(",
"DHPublicKey",
")",
"keyPair",
".",
"getPublic",
"(",
")",
";",
"BigInteger",
"dhY",
"=",
"incomingPublicKey",
".",
"getY",
"(",
... | Returns the public key for a given key pair.
@param keyPair key pair
@return public key | [
"Returns",
"the",
"public",
"key",
"for",
"a",
"given",
"key",
"pair",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/RTMPHandshake.java#L268-L275 |
108,027 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/RTMPHandshake.java | RTMPHandshake.calculateDigest | public void calculateDigest(int digestPos, byte[] handshakeMessage, int handshakeOffset, byte[] key, int keyLen, byte[] digest, int digestOffset) {
if (log.isTraceEnabled()) {
log.trace("calculateDigest - digestPos: {} handshakeOffset: {} keyLen: {} digestOffset: {}", digestPos, handshakeOffset, k... | java | public void calculateDigest(int digestPos, byte[] handshakeMessage, int handshakeOffset, byte[] key, int keyLen, byte[] digest, int digestOffset) {
if (log.isTraceEnabled()) {
log.trace("calculateDigest - digestPos: {} handshakeOffset: {} keyLen: {} digestOffset: {}", digestPos, handshakeOffset, k... | [
"public",
"void",
"calculateDigest",
"(",
"int",
"digestPos",
",",
"byte",
"[",
"]",
"handshakeMessage",
",",
"int",
"handshakeOffset",
",",
"byte",
"[",
"]",
"key",
",",
"int",
"keyLen",
",",
"byte",
"[",
"]",
"digest",
",",
"int",
"digestOffset",
")",
... | Calculates the digest given the its offset in the handshake data.
@param digestPos digest position
@param handshakeMessage handshake message
@param handshakeOffset handshake message offset
@param key contains the key
@param keyLen the length of the key
@param digest contains the calculated digest
@param digestOffset d... | [
"Calculates",
"the",
"digest",
"given",
"the",
"its",
"offset",
"in",
"the",
"handshake",
"data",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/RTMPHandshake.java#L323-L335 |
108,028 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/RTMPHandshake.java | RTMPHandshake.verifyDigest | public boolean verifyDigest(int digestPos, byte[] handshakeMessage, byte[] key, int keyLen) {
if (log.isTraceEnabled()) {
log.trace("verifyDigest - digestPos: {} keyLen: {} handshake size: {} ", digestPos, keyLen, handshakeMessage.length);
}
byte[] calcDigest = new byte[DIGEST_LE... | java | public boolean verifyDigest(int digestPos, byte[] handshakeMessage, byte[] key, int keyLen) {
if (log.isTraceEnabled()) {
log.trace("verifyDigest - digestPos: {} keyLen: {} handshake size: {} ", digestPos, keyLen, handshakeMessage.length);
}
byte[] calcDigest = new byte[DIGEST_LE... | [
"public",
"boolean",
"verifyDigest",
"(",
"int",
"digestPos",
",",
"byte",
"[",
"]",
"handshakeMessage",
",",
"byte",
"[",
"]",
"key",
",",
"int",
"keyLen",
")",
"{",
"if",
"(",
"log",
".",
"isTraceEnabled",
"(",
")",
")",
"{",
"log",
".",
"trace",
"... | Verifies the digest.
@param digestPos digest position
@param handshakeMessage handshake message
@param key contains the key
@param keyLen the length of the key
@return true if valid and false otherwise | [
"Verifies",
"the",
"digest",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/RTMPHandshake.java#L346-L356 |
108,029 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/RTMPHandshake.java | RTMPHandshake.calculateHMAC_SHA256 | public void calculateHMAC_SHA256(byte[] message, int messageOffset, int messageLen, byte[] key, int keyLen, byte[] digest, int digestOffset) {
if (log.isTraceEnabled()) {
log.trace("calculateHMAC_SHA256 - messageOffset: {} messageLen: {}", messageOffset, messageLen);
log.trace("calcul... | java | public void calculateHMAC_SHA256(byte[] message, int messageOffset, int messageLen, byte[] key, int keyLen, byte[] digest, int digestOffset) {
if (log.isTraceEnabled()) {
log.trace("calculateHMAC_SHA256 - messageOffset: {} messageLen: {}", messageOffset, messageLen);
log.trace("calcul... | [
"public",
"void",
"calculateHMAC_SHA256",
"(",
"byte",
"[",
"]",
"message",
",",
"int",
"messageOffset",
",",
"int",
"messageLen",
",",
"byte",
"[",
"]",
"key",
",",
"int",
"keyLen",
",",
"byte",
"[",
"]",
"digest",
",",
"int",
"digestOffset",
")",
"{",
... | Calculates an HMAC SHA256 hash into the digest at the given offset.
@param message incoming bytes
@param messageOffset message offset
@param messageLen message length
@param key incoming key bytes
@param keyLen the length of the key
@param digest contains the calculated digest
@param digestOffset digest offset | [
"Calculates",
"an",
"HMAC",
"SHA256",
"hash",
"into",
"the",
"digest",
"at",
"the",
"given",
"offset",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/RTMPHandshake.java#L369-L391 |
108,030 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/RTMPHandshake.java | RTMPHandshake.calculateSwfVerification | public void calculateSwfVerification(byte[] handshakeMessage, byte[] swfHash, int swfSize) {
// SHA256 HMAC hash of decompressed SWF, key are the last 32 bytes of the server handshake
byte[] swfHashKey = new byte[DIGEST_LENGTH];
System.arraycopy(handshakeMessage, Constants.HANDSHAKE_SIZE - DI... | java | public void calculateSwfVerification(byte[] handshakeMessage, byte[] swfHash, int swfSize) {
// SHA256 HMAC hash of decompressed SWF, key are the last 32 bytes of the server handshake
byte[] swfHashKey = new byte[DIGEST_LENGTH];
System.arraycopy(handshakeMessage, Constants.HANDSHAKE_SIZE - DI... | [
"public",
"void",
"calculateSwfVerification",
"(",
"byte",
"[",
"]",
"handshakeMessage",
",",
"byte",
"[",
"]",
"swfHash",
",",
"int",
"swfSize",
")",
"{",
"// SHA256 HMAC hash of decompressed SWF, key are the last 32 bytes of the server handshake\r",
"byte",
"[",
"]",
"s... | Calculates the swf verification token.
@param handshakeMessage servers handshake bytes
@param swfHash hash of swf
@param swfSize size of swf | [
"Calculates",
"the",
"swf",
"verification",
"token",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/RTMPHandshake.java#L400-L417 |
108,031 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/RTMPHandshake.java | RTMPHandshake.getDHOffset | public int getDHOffset(int algorithm, byte[] handshake, int bufferOffset) {
switch (algorithm) {
case 1:
return getDHOffset2(handshake, bufferOffset);
default:
case 0:
return getDHOffset1(handshake, bufferOffset);
}
} | java | public int getDHOffset(int algorithm, byte[] handshake, int bufferOffset) {
switch (algorithm) {
case 1:
return getDHOffset2(handshake, bufferOffset);
default:
case 0:
return getDHOffset1(handshake, bufferOffset);
}
} | [
"public",
"int",
"getDHOffset",
"(",
"int",
"algorithm",
",",
"byte",
"[",
"]",
"handshake",
",",
"int",
"bufferOffset",
")",
"{",
"switch",
"(",
"algorithm",
")",
"{",
"case",
"1",
":",
"return",
"getDHOffset2",
"(",
"handshake",
",",
"bufferOffset",
")",... | Returns the DH offset from an array of bytes.
@param algorithm validation algorithm
@param handshake handshake sequence
@param bufferOffset buffer offset
@return DH offset | [
"Returns",
"the",
"DH",
"offset",
"from",
"an",
"array",
"of",
"bytes",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/RTMPHandshake.java#L427-L435 |
108,032 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/RTMPHandshake.java | RTMPHandshake.getDigestOffset | public int getDigestOffset(int algorithm, byte[] handshake, int bufferOffset) {
switch (algorithm) {
case 1:
return getDigestOffset2(handshake, bufferOffset);
default:
case 0:
return getDigestOffset1(handshake, bufferOffset);
}
... | java | public int getDigestOffset(int algorithm, byte[] handshake, int bufferOffset) {
switch (algorithm) {
case 1:
return getDigestOffset2(handshake, bufferOffset);
default:
case 0:
return getDigestOffset1(handshake, bufferOffset);
}
... | [
"public",
"int",
"getDigestOffset",
"(",
"int",
"algorithm",
",",
"byte",
"[",
"]",
"handshake",
",",
"int",
"bufferOffset",
")",
"{",
"switch",
"(",
"algorithm",
")",
"{",
"case",
"1",
":",
"return",
"getDigestOffset2",
"(",
"handshake",
",",
"bufferOffset"... | Returns the digest offset using current validation scheme.
@param algorithm validation algorithm
@param handshake handshake sequence
@param bufferOffset buffer offset
@return digest offset | [
"Returns",
"the",
"digest",
"offset",
"using",
"current",
"validation",
"scheme",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/RTMPHandshake.java#L491-L499 |
108,033 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/RTMPHandshake.java | RTMPHandshake.validHandshakeType | public final static boolean validHandshakeType(byte handshakeType) {
switch (handshakeType) {
case RTMPConnection.RTMP_NON_ENCRYPTED:
case RTMPConnection.RTMP_ENCRYPTED:
case RTMPConnection.RTMP_ENCRYPTED_XTEA:
case RTMPConnection.RTMP_ENCRYPTED_BLOWFISH:
... | java | public final static boolean validHandshakeType(byte handshakeType) {
switch (handshakeType) {
case RTMPConnection.RTMP_NON_ENCRYPTED:
case RTMPConnection.RTMP_ENCRYPTED:
case RTMPConnection.RTMP_ENCRYPTED_XTEA:
case RTMPConnection.RTMP_ENCRYPTED_BLOWFISH:
... | [
"public",
"final",
"static",
"boolean",
"validHandshakeType",
"(",
"byte",
"handshakeType",
")",
"{",
"switch",
"(",
"handshakeType",
")",
"{",
"case",
"RTMPConnection",
".",
"RTMP_NON_ENCRYPTED",
":",
"case",
"RTMPConnection",
".",
"RTMP_ENCRYPTED",
":",
"case",
... | Returns whether or not a given handshake type is valid.
@param handshakeType the type of handshake
@return true if valid and supported, false otherwise | [
"Returns",
"whether",
"or",
"not",
"a",
"given",
"handshake",
"type",
"is",
"valid",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/RTMPHandshake.java#L597-L607 |
108,034 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/RTMPHandshake.java | RTMPHandshake.useEncryption | public boolean useEncryption() {
switch (handshakeType) {
case RTMPConnection.RTMP_ENCRYPTED:
case RTMPConnection.RTMP_ENCRYPTED_XTEA:
case RTMPConnection.RTMP_ENCRYPTED_BLOWFISH:
return true;
}
return false;
} | java | public boolean useEncryption() {
switch (handshakeType) {
case RTMPConnection.RTMP_ENCRYPTED:
case RTMPConnection.RTMP_ENCRYPTED_XTEA:
case RTMPConnection.RTMP_ENCRYPTED_BLOWFISH:
return true;
}
return false;
} | [
"public",
"boolean",
"useEncryption",
"(",
")",
"{",
"switch",
"(",
"handshakeType",
")",
"{",
"case",
"RTMPConnection",
".",
"RTMP_ENCRYPTED",
":",
"case",
"RTMPConnection",
".",
"RTMP_ENCRYPTED_XTEA",
":",
"case",
"RTMPConnection",
".",
"RTMP_ENCRYPTED_BLOWFISH",
... | Whether or not encryptions is in use.
@return true if handshake type is an encrypted type, false otherwise | [
"Whether",
"or",
"not",
"encryptions",
"is",
"in",
"use",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/RTMPHandshake.java#L614-L622 |
108,035 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/RTMPHandshake.java | RTMPHandshake.setHandshakeType | public void setHandshakeType(byte handshakeType) {
if (log.isTraceEnabled()) {
if (handshakeType < HANDSHAKE_TYPES.length) {
log.trace("Setting handshake type: {}", HANDSHAKE_TYPES[handshakeType]);
} else {
log.trace("Invalid handshake type: {}", hand... | java | public void setHandshakeType(byte handshakeType) {
if (log.isTraceEnabled()) {
if (handshakeType < HANDSHAKE_TYPES.length) {
log.trace("Setting handshake type: {}", HANDSHAKE_TYPES[handshakeType]);
} else {
log.trace("Invalid handshake type: {}", hand... | [
"public",
"void",
"setHandshakeType",
"(",
"byte",
"handshakeType",
")",
"{",
"if",
"(",
"log",
".",
"isTraceEnabled",
"(",
")",
")",
"{",
"if",
"(",
"handshakeType",
"<",
"HANDSHAKE_TYPES",
".",
"length",
")",
"{",
"log",
".",
"trace",
"(",
"\"Setting han... | Sets the handshake type. Currently only two types are supported, plain and encrypted.
@param handshakeType handshake type | [
"Sets",
"the",
"handshake",
"type",
".",
"Currently",
"only",
"two",
"types",
"are",
"supported",
"plain",
"and",
"encrypted",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/RTMPHandshake.java#L629-L638 |
108,036 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/RTMPHandshake.java | RTMPHandshake.addBuffer | public void addBuffer(IoBuffer in) {
byte[] tmp = new byte[in.remaining()];
in.get(tmp);
if (log.isDebugEnabled()) {
log.debug("addBuffer - pos: {} limit: {} remain: {}", buffer.position(), buffer.limit(), buffer.remaining());
}
if (buffer.remaining() == 0) {
... | java | public void addBuffer(IoBuffer in) {
byte[] tmp = new byte[in.remaining()];
in.get(tmp);
if (log.isDebugEnabled()) {
log.debug("addBuffer - pos: {} limit: {} remain: {}", buffer.position(), buffer.limit(), buffer.remaining());
}
if (buffer.remaining() == 0) {
... | [
"public",
"void",
"addBuffer",
"(",
"IoBuffer",
"in",
")",
"{",
"byte",
"[",
"]",
"tmp",
"=",
"new",
"byte",
"[",
"in",
".",
"remaining",
"(",
")",
"]",
";",
"in",
".",
"get",
"(",
"tmp",
")",
";",
"if",
"(",
"log",
".",
"isDebugEnabled",
"(",
... | Add a IoBuffer to the buffer.
@param in incoming IoBuffer | [
"Add",
"a",
"IoBuffer",
"to",
"the",
"buffer",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/RTMPHandshake.java#L699-L709 |
108,037 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/RTMPHandshake.java | RTMPHandshake.getBuffer | public byte[] getBuffer() {
buffer.flip();
byte[] tmp = new byte[buffer.remaining()];
buffer.get(tmp);
buffer.clear();
return tmp;
} | java | public byte[] getBuffer() {
buffer.flip();
byte[] tmp = new byte[buffer.remaining()];
buffer.get(tmp);
buffer.clear();
return tmp;
} | [
"public",
"byte",
"[",
"]",
"getBuffer",
"(",
")",
"{",
"buffer",
".",
"flip",
"(",
")",
";",
"byte",
"[",
"]",
"tmp",
"=",
"new",
"byte",
"[",
"buffer",
".",
"remaining",
"(",
")",
"]",
";",
"buffer",
".",
"get",
"(",
"tmp",
")",
";",
"buffer"... | Returns buffered byte array.
@return bytes | [
"Returns",
"buffered",
"byte",
"array",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/RTMPHandshake.java#L725-L731 |
108,038 | Red5/red5-server-common | src/main/java/org/red5/server/stream/PlaylistSubscriberStream.java | PlaylistSubscriberStream.moveToNext | private void moveToNext() {
if (controller != null) {
currentItemIndex = controller.nextItem(this, currentItemIndex);
} else {
currentItemIndex = defaultController.nextItem(this, currentItemIndex);
}
} | java | private void moveToNext() {
if (controller != null) {
currentItemIndex = controller.nextItem(this, currentItemIndex);
} else {
currentItemIndex = defaultController.nextItem(this, currentItemIndex);
}
} | [
"private",
"void",
"moveToNext",
"(",
")",
"{",
"if",
"(",
"controller",
"!=",
"null",
")",
"{",
"currentItemIndex",
"=",
"controller",
".",
"nextItem",
"(",
"this",
",",
"currentItemIndex",
")",
";",
"}",
"else",
"{",
"currentItemIndex",
"=",
"defaultContro... | Move the current item to the next in list. | [
"Move",
"the",
"current",
"item",
"to",
"the",
"next",
"in",
"list",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/stream/PlaylistSubscriberStream.java#L595-L601 |
108,039 | Red5/red5-server-common | src/main/java/org/red5/server/stream/PlaylistSubscriberStream.java | PlaylistSubscriberStream.moveToPrevious | private void moveToPrevious() {
if (controller != null) {
currentItemIndex = controller.previousItem(this, currentItemIndex);
} else {
currentItemIndex = defaultController.previousItem(this, currentItemIndex);
}
} | java | private void moveToPrevious() {
if (controller != null) {
currentItemIndex = controller.previousItem(this, currentItemIndex);
} else {
currentItemIndex = defaultController.previousItem(this, currentItemIndex);
}
} | [
"private",
"void",
"moveToPrevious",
"(",
")",
"{",
"if",
"(",
"controller",
"!=",
"null",
")",
"{",
"currentItemIndex",
"=",
"controller",
".",
"previousItem",
"(",
"this",
",",
"currentItemIndex",
")",
";",
"}",
"else",
"{",
"currentItemIndex",
"=",
"defau... | Move the current item to the previous in list. | [
"Move",
"the",
"current",
"item",
"to",
"the",
"previous",
"in",
"list",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/stream/PlaylistSubscriberStream.java#L606-L612 |
108,040 | Red5/red5-server-common | src/main/java/org/red5/server/stream/VideoCodecFactory.java | VideoCodecFactory.getVideoCodec | public static IVideoStreamCodec getVideoCodec(IoBuffer data) {
IVideoStreamCodec result = null;
//get the codec identifying byte
int codecId = data.get() & 0x0f;
try {
switch (codecId) {
case 2: //sorenson
result = (IVideoStreamCode... | java | public static IVideoStreamCodec getVideoCodec(IoBuffer data) {
IVideoStreamCodec result = null;
//get the codec identifying byte
int codecId = data.get() & 0x0f;
try {
switch (codecId) {
case 2: //sorenson
result = (IVideoStreamCode... | [
"public",
"static",
"IVideoStreamCodec",
"getVideoCodec",
"(",
"IoBuffer",
"data",
")",
"{",
"IVideoStreamCodec",
"result",
"=",
"null",
";",
"//get the codec identifying byte\r",
"int",
"codecId",
"=",
"data",
".",
"get",
"(",
")",
"&",
"0x0f",
";",
"try",
"{",... | Create and return new video codec applicable for byte buffer data
@param data
Byte buffer data
@return Video codec | [
"Create",
"and",
"return",
"new",
"video",
"codec",
"applicable",
"for",
"byte",
"buffer",
"data"
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/stream/VideoCodecFactory.java#L68-L110 |
108,041 | Red5/red5-server-common | src/main/java/org/red5/server/stream/DefaultStreamFilenameGenerator.java | DefaultStreamFilenameGenerator.getStreamDirectory | private String getStreamDirectory(IScope scope) {
final StringBuilder result = new StringBuilder();
final IScope app = ScopeUtils.findApplication(scope);
final String prefix = "streams/";
while (scope != null && scope != app) {
result.insert(0, scope.getName() + "/");
... | java | private String getStreamDirectory(IScope scope) {
final StringBuilder result = new StringBuilder();
final IScope app = ScopeUtils.findApplication(scope);
final String prefix = "streams/";
while (scope != null && scope != app) {
result.insert(0, scope.getName() + "/");
... | [
"private",
"String",
"getStreamDirectory",
"(",
"IScope",
"scope",
")",
"{",
"final",
"StringBuilder",
"result",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"final",
"IScope",
"app",
"=",
"ScopeUtils",
".",
"findApplication",
"(",
"scope",
")",
";",
"final",
... | Generate stream directory based on relative scope path. The base directory is
<pre>
streams
</pre>
, e.g. a scope
<pre>
/application/one/two/
</pre>
will generate a directory
<pre>
/streams/one/two/
</pre>
inside the application.
@param scope
Scope
@return Directory based on relative scope path | [
"Generate",
"stream",
"directory",
"based",
"on",
"relative",
"scope",
"path",
".",
"The",
"base",
"directory",
"is"
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/stream/DefaultStreamFilenameGenerator.java#L58-L72 |
108,042 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/status/StatusObjectService.java | StatusObjectService.cacheStatusObjects | public void cacheStatusObjects() {
cachedStatusObjects = new HashMap<String, byte[]>();
String statusCode;
IoBuffer out = IoBuffer.allocate(256);
out.setAutoExpand(true);
for (String s : statusObjects.keySet()) {
statusCode = s;
StatusObject s... | java | public void cacheStatusObjects() {
cachedStatusObjects = new HashMap<String, byte[]>();
String statusCode;
IoBuffer out = IoBuffer.allocate(256);
out.setAutoExpand(true);
for (String s : statusObjects.keySet()) {
statusCode = s;
StatusObject s... | [
"public",
"void",
"cacheStatusObjects",
"(",
")",
"{",
"cachedStatusObjects",
"=",
"new",
"HashMap",
"<",
"String",
",",
"byte",
"[",
"]",
">",
"(",
")",
";",
"String",
"statusCode",
";",
"IoBuffer",
"out",
"=",
"IoBuffer",
".",
"allocate",
"(",
"256",
"... | Cache status objects | [
"Cache",
"status",
"objects"
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/status/StatusObjectService.java#L122-L148 |
108,043 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/status/StatusObjectService.java | StatusObjectService.serializeStatusObject | public void serializeStatusObject(IoBuffer out, StatusObject statusObject) {
Map<?, ?> statusMap = new BeanMap(statusObject);
Output output = new Output(out);
Serializer.serialize(output, statusMap);
} | java | public void serializeStatusObject(IoBuffer out, StatusObject statusObject) {
Map<?, ?> statusMap = new BeanMap(statusObject);
Output output = new Output(out);
Serializer.serialize(output, statusMap);
} | [
"public",
"void",
"serializeStatusObject",
"(",
"IoBuffer",
"out",
",",
"StatusObject",
"statusObject",
")",
"{",
"Map",
"<",
"?",
",",
"?",
">",
"statusMap",
"=",
"new",
"BeanMap",
"(",
"statusObject",
")",
";",
"Output",
"output",
"=",
"new",
"Output",
"... | Serializes status object
@param out
Byte buffer for output object
@param statusObject
Status object to serialize | [
"Serializes",
"status",
"object"
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/status/StatusObjectService.java#L158-L162 |
108,044 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/ReceivedMessageTask.java | ReceivedMessageTask.runDeadlockFuture | @SuppressWarnings("unchecked")
public void runDeadlockFuture(Runnable deadlockGuardTask) {
if (deadlockFuture == null) {
ThreadPoolTaskScheduler deadlockGuard = conn.getDeadlockGuardScheduler();
if (deadlockGuard != null) {
try {
deadlockFutu... | java | @SuppressWarnings("unchecked")
public void runDeadlockFuture(Runnable deadlockGuardTask) {
if (deadlockFuture == null) {
ThreadPoolTaskScheduler deadlockGuard = conn.getDeadlockGuardScheduler();
if (deadlockGuard != null) {
try {
deadlockFutu... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"void",
"runDeadlockFuture",
"(",
"Runnable",
"deadlockGuardTask",
")",
"{",
"if",
"(",
"deadlockFuture",
"==",
"null",
")",
"{",
"ThreadPoolTaskScheduler",
"deadlockGuard",
"=",
"conn",
".",
"getDeadlock... | Runs deadlock guard task
@param deadlockGuardTask
deadlock guard task | [
"Runs",
"deadlock",
"guard",
"task"
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/ReceivedMessageTask.java#L91-L107 |
108,045 | Red5/red5-server-common | src/main/java/org/red5/server/api/stream/support/DynamicPlayItem.java | DynamicPlayItem.build | public static DynamicPlayItem build(String name, long start, long length) {
DynamicPlayItem playItem = new DynamicPlayItem(name, start, length);
return playItem;
} | java | public static DynamicPlayItem build(String name, long start, long length) {
DynamicPlayItem playItem = new DynamicPlayItem(name, start, length);
return playItem;
} | [
"public",
"static",
"DynamicPlayItem",
"build",
"(",
"String",
"name",
",",
"long",
"start",
",",
"long",
"length",
")",
"{",
"DynamicPlayItem",
"playItem",
"=",
"new",
"DynamicPlayItem",
"(",
"name",
",",
"start",
",",
"length",
")",
";",
"return",
"playIte... | Builder for DynamicPlayItem
@param name
name
@param start
start
@param length
length
@return play item instance | [
"Builder",
"for",
"DynamicPlayItem"
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/api/stream/support/DynamicPlayItem.java#L186-L189 |
108,046 | Red5/red5-server-common | src/main/java/org/red5/server/stream/AbstractStream.java | AbstractStream.getMetaData | public Notify getMetaData() {
Notify md = metaData.get();
if (md != null) {
try {
return md.duplicate();
} catch (Exception e) {
}
}
return md;
} | java | public Notify getMetaData() {
Notify md = metaData.get();
if (md != null) {
try {
return md.duplicate();
} catch (Exception e) {
}
}
return md;
} | [
"public",
"Notify",
"getMetaData",
"(",
")",
"{",
"Notify",
"md",
"=",
"metaData",
".",
"get",
"(",
")",
";",
"if",
"(",
"md",
"!=",
"null",
")",
"{",
"try",
"{",
"return",
"md",
".",
"duplicate",
"(",
")",
";",
"}",
"catch",
"(",
"Exception",
"e... | Returns a copy of the metadata for the associated stream, if it exists.
@return stream meta data | [
"Returns",
"a",
"copy",
"of",
"the",
"metadata",
"for",
"the",
"associated",
"stream",
"if",
"it",
"exists",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/stream/AbstractStream.java#L143-L152 |
108,047 | Red5/red5-server-common | src/main/java/org/red5/server/stream/AbstractStream.java | AbstractStream.setState | public void setState(StreamState newState) {
StreamState oldState = state.get();
if (!oldState.equals(newState) && state.compareAndSet(oldState, newState)) {
fireStateChange(oldState, newState);
}
} | java | public void setState(StreamState newState) {
StreamState oldState = state.get();
if (!oldState.equals(newState) && state.compareAndSet(oldState, newState)) {
fireStateChange(oldState, newState);
}
} | [
"public",
"void",
"setState",
"(",
"StreamState",
"newState",
")",
"{",
"StreamState",
"oldState",
"=",
"state",
".",
"get",
"(",
")",
";",
"if",
"(",
"!",
"oldState",
".",
"equals",
"(",
"newState",
")",
"&&",
"state",
".",
"compareAndSet",
"(",
"oldSta... | Sets the stream state.
@param newState stream state | [
"Sets",
"the",
"stream",
"state",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/stream/AbstractStream.java#L235-L240 |
108,048 | Red5/red5-server-common | src/main/java/org/red5/server/stream/AbstractStream.java | AbstractStream.getStreamAwareHandler | protected IStreamAwareScopeHandler getStreamAwareHandler() {
if (scope != null) {
IScopeHandler handler = scope.getHandler();
if (handler instanceof IStreamAwareScopeHandler) {
return (IStreamAwareScopeHandler) handler;
}
}
return null;
... | java | protected IStreamAwareScopeHandler getStreamAwareHandler() {
if (scope != null) {
IScopeHandler handler = scope.getHandler();
if (handler instanceof IStreamAwareScopeHandler) {
return (IStreamAwareScopeHandler) handler;
}
}
return null;
... | [
"protected",
"IStreamAwareScopeHandler",
"getStreamAwareHandler",
"(",
")",
"{",
"if",
"(",
"scope",
"!=",
"null",
")",
"{",
"IScopeHandler",
"handler",
"=",
"scope",
".",
"getHandler",
"(",
")",
";",
"if",
"(",
"handler",
"instanceof",
"IStreamAwareScopeHandler",... | Return stream aware scope handler or null if scope is null.
@return IStreamAwareScopeHandler implementation | [
"Return",
"stream",
"aware",
"scope",
"handler",
"or",
"null",
"if",
"scope",
"is",
"null",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/stream/AbstractStream.java#L247-L255 |
108,049 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/codec/RTMPProtocolEncoder.java | RTMPProtocolEncoder.encode | public IoBuffer encode(Object message) throws Exception {
if (message != null) {
try {
return encodePacket((Packet) message);
} catch (Exception e) {
log.error("Error encoding", e);
}
} else if (log.isDebugEnabled()) {
... | java | public IoBuffer encode(Object message) throws Exception {
if (message != null) {
try {
return encodePacket((Packet) message);
} catch (Exception e) {
log.error("Error encoding", e);
}
} else if (log.isDebugEnabled()) {
... | [
"public",
"IoBuffer",
"encode",
"(",
"Object",
"message",
")",
"throws",
"Exception",
"{",
"if",
"(",
"message",
"!=",
"null",
")",
"{",
"try",
"{",
"return",
"encodePacket",
"(",
"(",
"Packet",
")",
"message",
")",
";",
"}",
"catch",
"(",
"Exception",
... | Encodes object with given protocol state to byte buffer
@param message
Object to encode
@return IoBuffer with encoded data
@throws Exception
Any decoding exception | [
"Encodes",
"object",
"with",
"given",
"protocol",
"state",
"to",
"byte",
"buffer"
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/codec/RTMPProtocolEncoder.java#L108-L124 |
108,050 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/codec/RTMPProtocolEncoder.java | RTMPProtocolEncoder.encodePacket | public IoBuffer encodePacket(Packet packet) {
IoBuffer out = null;
Header header = packet.getHeader();
int channelId = header.getChannelId();
//log.trace("Channel id: {}", channelId);
IRTMPEvent message = packet.getMessage();
if (message instanceof ChunkSize) {
... | java | public IoBuffer encodePacket(Packet packet) {
IoBuffer out = null;
Header header = packet.getHeader();
int channelId = header.getChannelId();
//log.trace("Channel id: {}", channelId);
IRTMPEvent message = packet.getMessage();
if (message instanceof ChunkSize) {
... | [
"public",
"IoBuffer",
"encodePacket",
"(",
"Packet",
"packet",
")",
"{",
"IoBuffer",
"out",
"=",
"null",
";",
"Header",
"header",
"=",
"packet",
".",
"getHeader",
"(",
")",
";",
"int",
"channelId",
"=",
"header",
".",
"getChannelId",
"(",
")",
";",
"//lo... | Encode packet.
@param packet
RTMP packet
@return Encoded data | [
"Encode",
"packet",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/codec/RTMPProtocolEncoder.java#L133-L201 |
108,051 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/codec/RTMPProtocolEncoder.java | RTMPProtocolEncoder.getHeaderType | private byte getHeaderType(final Header header, final Header lastHeader) {
//int lastFullTs = ((RTMPConnection) Red5.getConnectionLocal()).getState().getLastFullTimestampWritten(header.getChannelId());
if (lastHeader == null || header.getStreamId() != lastHeader.getStreamId() || header.getTimer() < la... | java | private byte getHeaderType(final Header header, final Header lastHeader) {
//int lastFullTs = ((RTMPConnection) Red5.getConnectionLocal()).getState().getLastFullTimestampWritten(header.getChannelId());
if (lastHeader == null || header.getStreamId() != lastHeader.getStreamId() || header.getTimer() < la... | [
"private",
"byte",
"getHeaderType",
"(",
"final",
"Header",
"header",
",",
"final",
"Header",
"lastHeader",
")",
"{",
"//int lastFullTs = ((RTMPConnection) Red5.getConnectionLocal()).getState().getLastFullTimestampWritten(header.getChannelId());\r",
"if",
"(",
"lastHeader",
"==",
... | Determine type of header to use.
@param header RTMP message header
@param lastHeader Previous header
@return Header type to use | [
"Determine",
"type",
"of",
"header",
"to",
"use",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/codec/RTMPProtocolEncoder.java#L356-L370 |
108,052 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/codec/RTMPProtocolEncoder.java | RTMPProtocolEncoder.calculateHeaderSize | private int calculateHeaderSize(final Header header, final Header lastHeader) {
final byte headerType = getHeaderType(header, lastHeader);
int channelIdAdd = 0;
int channelId = header.getChannelId();
if (channelId > 320) {
channelIdAdd = 2;
} else if (channelId ... | java | private int calculateHeaderSize(final Header header, final Header lastHeader) {
final byte headerType = getHeaderType(header, lastHeader);
int channelIdAdd = 0;
int channelId = header.getChannelId();
if (channelId > 320) {
channelIdAdd = 2;
} else if (channelId ... | [
"private",
"int",
"calculateHeaderSize",
"(",
"final",
"Header",
"header",
",",
"final",
"Header",
"lastHeader",
")",
"{",
"final",
"byte",
"headerType",
"=",
"getHeaderType",
"(",
"header",
",",
"lastHeader",
")",
";",
"int",
"channelIdAdd",
"=",
"0",
";",
... | Calculate number of bytes necessary to encode the header.
@param header
RTMP message header
@param lastHeader
Previous header
@return Calculated size | [
"Calculate",
"number",
"of",
"bytes",
"necessary",
"to",
"encode",
"the",
"header",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/codec/RTMPProtocolEncoder.java#L381-L391 |
108,053 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/codec/RTMPProtocolEncoder.java | RTMPProtocolEncoder.encodeHeader | public IoBuffer encodeHeader(Header header, Header lastHeader) {
final IoBuffer result = IoBuffer.allocate(calculateHeaderSize(header, lastHeader));
encodeHeader(header, lastHeader, result);
return result;
} | java | public IoBuffer encodeHeader(Header header, Header lastHeader) {
final IoBuffer result = IoBuffer.allocate(calculateHeaderSize(header, lastHeader));
encodeHeader(header, lastHeader, result);
return result;
} | [
"public",
"IoBuffer",
"encodeHeader",
"(",
"Header",
"header",
",",
"Header",
"lastHeader",
")",
"{",
"final",
"IoBuffer",
"result",
"=",
"IoBuffer",
".",
"allocate",
"(",
"calculateHeaderSize",
"(",
"header",
",",
"lastHeader",
")",
")",
";",
"encodeHeader",
... | Encode RTMP header.
@param header
RTMP message header
@param lastHeader
Previous header
@return Encoded header data | [
"Encode",
"RTMP",
"header",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/codec/RTMPProtocolEncoder.java#L402-L406 |
108,054 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/codec/RTMPProtocolEncoder.java | RTMPProtocolEncoder.encodeHeader | public void encodeHeader(Header header, Header lastHeader, IoBuffer buf) {
byte headerType = getHeaderType(header, lastHeader);
RTMPUtils.encodeHeaderByte(buf, headerType, header.getChannelId());
if (log.isTraceEnabled()) {
log.trace("{} lastHeader: {}", Header.HeaderType.values(... | java | public void encodeHeader(Header header, Header lastHeader, IoBuffer buf) {
byte headerType = getHeaderType(header, lastHeader);
RTMPUtils.encodeHeaderByte(buf, headerType, header.getChannelId());
if (log.isTraceEnabled()) {
log.trace("{} lastHeader: {}", Header.HeaderType.values(... | [
"public",
"void",
"encodeHeader",
"(",
"Header",
"header",
",",
"Header",
"lastHeader",
",",
"IoBuffer",
"buf",
")",
"{",
"byte",
"headerType",
"=",
"getHeaderType",
"(",
"header",
",",
"lastHeader",
")",
";",
"RTMPUtils",
".",
"encodeHeaderByte",
"(",
"buf",
... | Encode RTMP header into given IoBuffer.
@param header RTMP message header
@param lastHeader Previous header
@param buf Buffer for writing encoded header into | [
"Encode",
"RTMP",
"header",
"into",
"given",
"IoBuffer",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/codec/RTMPProtocolEncoder.java#L415-L502 |
108,055 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/codec/RTMPProtocolEncoder.java | RTMPProtocolEncoder.encodeServerBW | private IoBuffer encodeServerBW(ServerBW serverBW) {
final IoBuffer out = IoBuffer.allocate(4);
out.putInt(serverBW.getBandwidth());
return out;
} | java | private IoBuffer encodeServerBW(ServerBW serverBW) {
final IoBuffer out = IoBuffer.allocate(4);
out.putInt(serverBW.getBandwidth());
return out;
} | [
"private",
"IoBuffer",
"encodeServerBW",
"(",
"ServerBW",
"serverBW",
")",
"{",
"final",
"IoBuffer",
"out",
"=",
"IoBuffer",
".",
"allocate",
"(",
"4",
")",
";",
"out",
".",
"putInt",
"(",
"serverBW",
".",
"getBandwidth",
"(",
")",
")",
";",
"return",
"o... | Encode server-side bandwidth event.
@param serverBW
Server-side bandwidth event
@return Encoded event data | [
"Encode",
"server",
"-",
"side",
"bandwidth",
"event",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/codec/RTMPProtocolEncoder.java#L605-L609 |
108,056 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/codec/RTMPProtocolEncoder.java | RTMPProtocolEncoder.encodeClientBW | private IoBuffer encodeClientBW(ClientBW clientBW) {
final IoBuffer out = IoBuffer.allocate(5);
out.putInt(clientBW.getBandwidth());
out.put(clientBW.getLimitType());
return out;
} | java | private IoBuffer encodeClientBW(ClientBW clientBW) {
final IoBuffer out = IoBuffer.allocate(5);
out.putInt(clientBW.getBandwidth());
out.put(clientBW.getLimitType());
return out;
} | [
"private",
"IoBuffer",
"encodeClientBW",
"(",
"ClientBW",
"clientBW",
")",
"{",
"final",
"IoBuffer",
"out",
"=",
"IoBuffer",
".",
"allocate",
"(",
"5",
")",
";",
"out",
".",
"putInt",
"(",
"clientBW",
".",
"getBandwidth",
"(",
")",
")",
";",
"out",
".",
... | Encode client-side bandwidth event.
@param clientBW
Client-side bandwidth event
@return Encoded event data | [
"Encode",
"client",
"-",
"side",
"bandwidth",
"event",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/codec/RTMPProtocolEncoder.java#L618-L623 |
108,057 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/codec/RTMPProtocolEncoder.java | RTMPProtocolEncoder.encodeCommand | protected IoBuffer encodeCommand(Notify invoke) {
IoBuffer out = IoBuffer.allocate(1024);
out.setAutoExpand(true);
encodeCommand(out, invoke);
return out;
} | java | protected IoBuffer encodeCommand(Notify invoke) {
IoBuffer out = IoBuffer.allocate(1024);
out.setAutoExpand(true);
encodeCommand(out, invoke);
return out;
} | [
"protected",
"IoBuffer",
"encodeCommand",
"(",
"Notify",
"invoke",
")",
"{",
"IoBuffer",
"out",
"=",
"IoBuffer",
".",
"allocate",
"(",
"1024",
")",
";",
"out",
".",
"setAutoExpand",
"(",
"true",
")",
";",
"encodeCommand",
"(",
"out",
",",
"invoke",
")",
... | Encode notification event.
@param invoke
Notification event
@return Encoded event data | [
"Encode",
"notification",
"event",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/codec/RTMPProtocolEncoder.java#L801-L806 |
108,058 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/codec/RTMPProtocolEncoder.java | RTMPProtocolEncoder.generateErrorResult | protected StatusObject generateErrorResult(String code, Throwable error) {
// Construct error object to return
String message = "";
while (error != null && error.getCause() != null) {
error = error.getCause();
}
if (error != null && error.getMessage() != null) {... | java | protected StatusObject generateErrorResult(String code, Throwable error) {
// Construct error object to return
String message = "";
while (error != null && error.getCause() != null) {
error = error.getCause();
}
if (error != null && error.getMessage() != null) {... | [
"protected",
"StatusObject",
"generateErrorResult",
"(",
"String",
"code",
",",
"Throwable",
"error",
")",
"{",
"// Construct error object to return\r",
"String",
"message",
"=",
"\"\"",
";",
"while",
"(",
"error",
"!=",
"null",
"&&",
"error",
".",
"getCause",
"("... | Generate error object to return for given exception.
@param code
call
@param error
error
@return status object | [
"Generate",
"error",
"object",
"to",
"return",
"for",
"given",
"exception",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/codec/RTMPProtocolEncoder.java#L976-L1005 |
108,059 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/codec/RTMPProtocolEncoder.java | RTMPProtocolEncoder.encodeFlexMessage | public IoBuffer encodeFlexMessage(FlexMessage msg) {
IoBuffer out = IoBuffer.allocate(1024);
out.setAutoExpand(true);
// Unknown byte, always 0?
out.put((byte) 0);
encodeCommand(out, msg);
return out;
} | java | public IoBuffer encodeFlexMessage(FlexMessage msg) {
IoBuffer out = IoBuffer.allocate(1024);
out.setAutoExpand(true);
// Unknown byte, always 0?
out.put((byte) 0);
encodeCommand(out, msg);
return out;
} | [
"public",
"IoBuffer",
"encodeFlexMessage",
"(",
"FlexMessage",
"msg",
")",
"{",
"IoBuffer",
"out",
"=",
"IoBuffer",
".",
"allocate",
"(",
"1024",
")",
";",
"out",
".",
"setAutoExpand",
"(",
"true",
")",
";",
"// Unknown byte, always 0?\r",
"out",
".",
"put",
... | Encodes Flex message event.
@param msg
Flex message event
@return Encoded data | [
"Encodes",
"Flex",
"message",
"event",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/codec/RTMPProtocolEncoder.java#L1014-L1021 |
108,060 | Red5/red5-server-common | src/main/java/org/red5/server/stream/bandwidth/ServerClientDetection.java | ServerClientDetection.resultReceived | public void resultReceived(IPendingServiceCall call) {
// if we aren't connection, skip any further testing
if (Call.STATUS_NOT_CONNECTED != call.getStatus()) {
// receive time using nanos
long now = System.nanoTime();
// increment received
int received = ... | java | public void resultReceived(IPendingServiceCall call) {
// if we aren't connection, skip any further testing
if (Call.STATUS_NOT_CONNECTED != call.getStatus()) {
// receive time using nanos
long now = System.nanoTime();
// increment received
int received = ... | [
"public",
"void",
"resultReceived",
"(",
"IPendingServiceCall",
"call",
")",
"{",
"// if we aren't connection, skip any further testing",
"if",
"(",
"Call",
".",
"STATUS_NOT_CONNECTED",
"!=",
"call",
".",
"getStatus",
"(",
")",
")",
"{",
"// receive time using nanos",
"... | Handle callback from service call. | [
"Handle",
"callback",
"from",
"service",
"call",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/stream/bandwidth/ServerClientDetection.java#L106-L154 |
108,061 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/message/Packet.java | Packet.setData | public void setData(IoBuffer buffer) {
if (noCopy) {
log.trace("Using buffer reference");
this.data = buffer;
} else {
// try the backing array first if it exists
if (buffer.hasArray()) {
log.trace("Buffer has backing array, making a... | java | public void setData(IoBuffer buffer) {
if (noCopy) {
log.trace("Using buffer reference");
this.data = buffer;
} else {
// try the backing array first if it exists
if (buffer.hasArray()) {
log.trace("Buffer has backing array, making a... | [
"public",
"void",
"setData",
"(",
"IoBuffer",
"buffer",
")",
"{",
"if",
"(",
"noCopy",
")",
"{",
"log",
".",
"trace",
"(",
"\"Using buffer reference\"",
")",
";",
"this",
".",
"data",
"=",
"buffer",
";",
"}",
"else",
"{",
"// try the backing array first if i... | Setter for data
@param buffer
Packet data | [
"Setter",
"for",
"data"
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/message/Packet.java#L136-L155 |
108,062 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/message/SharedObjectTypeMapping.java | SharedObjectTypeMapping.toByte | public static byte toByte(Type type) {
switch (type) {
case SERVER_CONNECT:
return 0x01;
case SERVER_DISCONNECT:
return 0x02;
case SERVER_SET_ATTRIBUTE:
return 0x03;
case CLIENT_UPDATE_DATA:
... | java | public static byte toByte(Type type) {
switch (type) {
case SERVER_CONNECT:
return 0x01;
case SERVER_DISCONNECT:
return 0x02;
case SERVER_SET_ATTRIBUTE:
return 0x03;
case CLIENT_UPDATE_DATA:
... | [
"public",
"static",
"byte",
"toByte",
"(",
"Type",
"type",
")",
"{",
"switch",
"(",
"type",
")",
"{",
"case",
"SERVER_CONNECT",
":",
"return",
"0x01",
";",
"case",
"SERVER_DISCONNECT",
":",
"return",
"0x02",
";",
"case",
"SERVER_SET_ATTRIBUTE",
":",
"return"... | Convert SO event type to byte representation that RTMP uses
@param type
Event type
@return Byte representation of given event type | [
"Convert",
"SO",
"event",
"type",
"to",
"byte",
"representation",
"that",
"RTMP",
"uses"
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/message/SharedObjectTypeMapping.java#L66-L96 |
108,063 | Red5/red5-server-common | src/main/java/org/red5/server/stream/consumer/ConnectionConsumer.java | ConnectionConsumer.sendChunkSize | private void sendChunkSize() {
if (chunkSizeSent.compareAndSet(false, true)) {
log.debug("Sending chunk size: {}", chunkSize);
ChunkSize chunkSizeMsg = new ChunkSize(chunkSize);
conn.getChannel((byte) 2).write(chunkSizeMsg);
}
} | java | private void sendChunkSize() {
if (chunkSizeSent.compareAndSet(false, true)) {
log.debug("Sending chunk size: {}", chunkSize);
ChunkSize chunkSizeMsg = new ChunkSize(chunkSize);
conn.getChannel((byte) 2).write(chunkSizeMsg);
}
} | [
"private",
"void",
"sendChunkSize",
"(",
")",
"{",
"if",
"(",
"chunkSizeSent",
".",
"compareAndSet",
"(",
"false",
",",
"true",
")",
")",
"{",
"log",
".",
"debug",
"(",
"\"Sending chunk size: {}\"",
",",
"chunkSize",
")",
";",
"ChunkSize",
"chunkSizeMsg",
"=... | Send the chunk size | [
"Send",
"the",
"chunk",
"size"
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/stream/consumer/ConnectionConsumer.java#L284-L290 |
108,064 | Red5/red5-server-common | src/main/java/org/red5/server/stream/consumer/ConnectionConsumer.java | ConnectionConsumer.closeChannels | private void closeChannels() {
conn.closeChannel(video.getId());
conn.closeChannel(audio.getId());
conn.closeChannel(data.getId());
} | java | private void closeChannels() {
conn.closeChannel(video.getId());
conn.closeChannel(audio.getId());
conn.closeChannel(data.getId());
} | [
"private",
"void",
"closeChannels",
"(",
")",
"{",
"conn",
".",
"closeChannel",
"(",
"video",
".",
"getId",
"(",
")",
")",
";",
"conn",
".",
"closeChannel",
"(",
"audio",
".",
"getId",
"(",
")",
")",
";",
"conn",
".",
"closeChannel",
"(",
"data",
"."... | Close all the channels | [
"Close",
"all",
"the",
"channels"
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/stream/consumer/ConnectionConsumer.java#L295-L299 |
108,065 | Red5/red5-server-common | src/main/java/org/red5/server/net/servlet/ServletUtils.java | ServletUtils.copy | public static void copy(HttpServletRequest req, OutputStream output) throws IOException {
InputStream input = req.getInputStream();
int availableBytes = req.getContentLength();
log.debug("copy - available: {}", availableBytes);
if (availableBytes > 0) {
byte[] buf = new ... | java | public static void copy(HttpServletRequest req, OutputStream output) throws IOException {
InputStream input = req.getInputStream();
int availableBytes = req.getContentLength();
log.debug("copy - available: {}", availableBytes);
if (availableBytes > 0) {
byte[] buf = new ... | [
"public",
"static",
"void",
"copy",
"(",
"HttpServletRequest",
"req",
",",
"OutputStream",
"output",
")",
"throws",
"IOException",
"{",
"InputStream",
"input",
"=",
"req",
".",
"getInputStream",
"(",
")",
";",
"int",
"availableBytes",
"=",
"req",
".",
"getCont... | Copies information from the http request to the output stream using the specified content length.
@param req
Request
@param output
Output stream
@throws java.io.IOException
on error | [
"Copies",
"information",
"from",
"the",
"http",
"request",
"to",
"the",
"output",
"stream",
"using",
"the",
"specified",
"content",
"length",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/servlet/ServletUtils.java#L110-L126 |
108,066 | Red5/red5-server-common | src/main/java/org/red5/server/net/servlet/ServletUtils.java | ServletUtils.getRemoteAddresses | public static List<String> getRemoteAddresses(HttpServletRequest request) {
List<String> addresses = new ArrayList<String>();
addresses.add(request.getRemoteHost());
if (!request.getRemoteAddr().equals(request.getRemoteHost())) {
// Store both remote host and remote address
... | java | public static List<String> getRemoteAddresses(HttpServletRequest request) {
List<String> addresses = new ArrayList<String>();
addresses.add(request.getRemoteHost());
if (!request.getRemoteAddr().equals(request.getRemoteHost())) {
// Store both remote host and remote address
... | [
"public",
"static",
"List",
"<",
"String",
">",
"getRemoteAddresses",
"(",
"HttpServletRequest",
"request",
")",
"{",
"List",
"<",
"String",
">",
"addresses",
"=",
"new",
"ArrayList",
"<",
"String",
">",
"(",
")",
";",
"addresses",
".",
"add",
"(",
"reques... | Return all remote addresses that were involved in the passed request.
@param request
request
@return remote addresses | [
"Return",
"all",
"remote",
"addresses",
"that",
"were",
"involved",
"in",
"the",
"passed",
"request",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/servlet/ServletUtils.java#L165-L189 |
108,067 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/event/Invoke.java | Invoke.duplicate | @Override
public Invoke duplicate() throws IOException, ClassNotFoundException {
Invoke result = new Invoke();
ByteArrayOutputStream baos = new ByteArrayOutputStream();
ObjectOutputStream oos = new ObjectOutputStream(baos);
writeExternal(oos);
oos.close();
byte... | java | @Override
public Invoke duplicate() throws IOException, ClassNotFoundException {
Invoke result = new Invoke();
ByteArrayOutputStream baos = new ByteArrayOutputStream();
ObjectOutputStream oos = new ObjectOutputStream(baos);
writeExternal(oos);
oos.close();
byte... | [
"@",
"Override",
"public",
"Invoke",
"duplicate",
"(",
")",
"throws",
"IOException",
",",
"ClassNotFoundException",
"{",
"Invoke",
"result",
"=",
"new",
"Invoke",
"(",
")",
";",
"ByteArrayOutputStream",
"baos",
"=",
"new",
"ByteArrayOutputStream",
"(",
")",
";",... | Duplicate this Invoke message to future injection. Serialize to memory and deserialize, safe way.
@return duplicated Invoke event | [
"Duplicate",
"this",
"Invoke",
"message",
"to",
"future",
"injection",
".",
"Serialize",
"to",
"memory",
"and",
"deserialize",
"safe",
"way",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/event/Invoke.java#L104-L119 |
108,068 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/ReceivedMessageTaskQueue.java | ReceivedMessageTaskQueue.addTask | public void addTask(ReceivedMessageTask task) {
tasks.add(task);
Packet packet = task.getPacket();
// don't run the deadlock guard if timeout is <= 0
if (packet.getExpirationTime() > 0L) {
// run a deadlock guard so hanging tasks will be interrupted
task.runDeadlo... | java | public void addTask(ReceivedMessageTask task) {
tasks.add(task);
Packet packet = task.getPacket();
// don't run the deadlock guard if timeout is <= 0
if (packet.getExpirationTime() > 0L) {
// run a deadlock guard so hanging tasks will be interrupted
task.runDeadlo... | [
"public",
"void",
"addTask",
"(",
"ReceivedMessageTask",
"task",
")",
"{",
"tasks",
".",
"add",
"(",
"task",
")",
";",
"Packet",
"packet",
"=",
"task",
".",
"getPacket",
"(",
")",
";",
"// don't run the deadlock guard if timeout is <= 0",
"if",
"(",
"packet",
... | Adds new task to the end of the queue.
@param task
received message task | [
"Adds",
"new",
"task",
"to",
"the",
"end",
"of",
"the",
"queue",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/ReceivedMessageTaskQueue.java#L63-L74 |
108,069 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/ReceivedMessageTaskQueue.java | ReceivedMessageTaskQueue.removeTask | public void removeTask(ReceivedMessageTask task) {
if (tasks.remove(task)) {
task.cancelDeadlockFuture();
if (listener != null) {
listener.onTaskRemoved(this);
}
}
} | java | public void removeTask(ReceivedMessageTask task) {
if (tasks.remove(task)) {
task.cancelDeadlockFuture();
if (listener != null) {
listener.onTaskRemoved(this);
}
}
} | [
"public",
"void",
"removeTask",
"(",
"ReceivedMessageTask",
"task",
")",
"{",
"if",
"(",
"tasks",
".",
"remove",
"(",
"task",
")",
")",
"{",
"task",
".",
"cancelDeadlockFuture",
"(",
")",
";",
"if",
"(",
"listener",
"!=",
"null",
")",
"{",
"listener",
... | Removes the specified task from the queue.
@param task
received message task | [
"Removes",
"the",
"specified",
"task",
"from",
"the",
"queue",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/ReceivedMessageTaskQueue.java#L82-L89 |
108,070 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/ReceivedMessageTaskQueue.java | ReceivedMessageTaskQueue.getTaskToProcess | public ReceivedMessageTask getTaskToProcess() {
ReceivedMessageTask task = tasks.peek();
if (task != null && task.setProcessing()) {
return task;
}
return null;
} | java | public ReceivedMessageTask getTaskToProcess() {
ReceivedMessageTask task = tasks.peek();
if (task != null && task.setProcessing()) {
return task;
}
return null;
} | [
"public",
"ReceivedMessageTask",
"getTaskToProcess",
"(",
")",
"{",
"ReceivedMessageTask",
"task",
"=",
"tasks",
".",
"peek",
"(",
")",
";",
"if",
"(",
"task",
"!=",
"null",
"&&",
"task",
".",
"setProcessing",
"(",
")",
")",
"{",
"return",
"task",
";",
"... | Gets first task from queue if it can be processed. If first task is already in process it returns null.
@return task that can be processed or null otherwise | [
"Gets",
"first",
"task",
"from",
"queue",
"if",
"it",
"can",
"be",
"processed",
".",
"If",
"first",
"task",
"is",
"already",
"in",
"process",
"it",
"returns",
"null",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/ReceivedMessageTaskQueue.java#L96-L102 |
108,071 | Red5/red5-server-common | src/main/java/org/red5/server/api/stream/support/SimplePlayItem.java | SimplePlayItem.build | public static SimplePlayItem build(String name, long start, long length) {
SimplePlayItem playItem = new SimplePlayItem(name, start, length);
return playItem;
} | java | public static SimplePlayItem build(String name, long start, long length) {
SimplePlayItem playItem = new SimplePlayItem(name, start, length);
return playItem;
} | [
"public",
"static",
"SimplePlayItem",
"build",
"(",
"String",
"name",
",",
"long",
"start",
",",
"long",
"length",
")",
"{",
"SimplePlayItem",
"playItem",
"=",
"new",
"SimplePlayItem",
"(",
"name",
",",
"start",
",",
"length",
")",
";",
"return",
"playItem",... | Builder for SimplePlayItem
@param name
name
@param start
start
@param length
length
@return play item instance | [
"Builder",
"for",
"SimplePlayItem"
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/api/stream/support/SimplePlayItem.java#L192-L195 |
108,072 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/BaseRTMPHandler.java | BaseRTMPHandler.getHostname | protected String getHostname(String url) {
if (log.isDebugEnabled()) {
log.debug("getHostname - url: {}", url);
}
String[] parts = url.split("/");
if (parts.length == 2) {
return "";
} else {
String host = parts[2];
// stri... | java | protected String getHostname(String url) {
if (log.isDebugEnabled()) {
log.debug("getHostname - url: {}", url);
}
String[] parts = url.split("/");
if (parts.length == 2) {
return "";
} else {
String host = parts[2];
// stri... | [
"protected",
"String",
"getHostname",
"(",
"String",
"url",
")",
"{",
"if",
"(",
"log",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"log",
".",
"debug",
"(",
"\"getHostname - url: {}\"",
",",
"url",
")",
";",
"}",
"String",
"[",
"]",
"parts",
"=",
"url"... | Return hostname for URL.
@param url
URL
@return Hostname from that URL | [
"Return",
"hostname",
"for",
"URL",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/BaseRTMPHandler.java#L208-L224 |
108,073 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/BaseRTMPHandler.java | BaseRTMPHandler.handlePendingCallResult | protected void handlePendingCallResult(RTMPConnection conn, Invoke invoke) {
final IServiceCall call = invoke.getCall();
final IPendingServiceCall pendingCall = conn.retrievePendingCall(invoke.getTransactionId());
if (pendingCall != null) {
// The client sent a response to a prev... | java | protected void handlePendingCallResult(RTMPConnection conn, Invoke invoke) {
final IServiceCall call = invoke.getCall();
final IPendingServiceCall pendingCall = conn.retrievePendingCall(invoke.getTransactionId());
if (pendingCall != null) {
// The client sent a response to a prev... | [
"protected",
"void",
"handlePendingCallResult",
"(",
"RTMPConnection",
"conn",
",",
"Invoke",
"invoke",
")",
"{",
"final",
"IServiceCall",
"call",
"=",
"invoke",
".",
"getCall",
"(",
")",
";",
"final",
"IPendingServiceCall",
"pendingCall",
"=",
"conn",
".",
"ret... | Handler for pending call result. Dispatches results to all pending call handlers.
@param conn
Connection
@param invoke
Pending call result event context | [
"Handler",
"for",
"pending",
"call",
"result",
".",
"Dispatches",
"results",
"to",
"all",
"pending",
"call",
"handlers",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/BaseRTMPHandler.java#L234-L257 |
108,074 | Red5/red5-server-common | src/main/java/org/red5/server/net/rtmp/BaseRTMPHandler.java | BaseRTMPHandler.onStreamBytesRead | protected void onStreamBytesRead(RTMPConnection conn, Channel channel, Header source, BytesRead streamBytesRead) {
conn.receivedBytesRead(streamBytesRead.getBytesRead());
} | java | protected void onStreamBytesRead(RTMPConnection conn, Channel channel, Header source, BytesRead streamBytesRead) {
conn.receivedBytesRead(streamBytesRead.getBytesRead());
} | [
"protected",
"void",
"onStreamBytesRead",
"(",
"RTMPConnection",
"conn",
",",
"Channel",
"channel",
",",
"Header",
"source",
",",
"BytesRead",
"streamBytesRead",
")",
"{",
"conn",
".",
"receivedBytesRead",
"(",
"streamBytesRead",
".",
"getBytesRead",
"(",
")",
")"... | Stream bytes read event handler.
@param conn
Connection
@param channel
Channel
@param source
Header
@param streamBytesRead
Bytes read event context | [
"Stream",
"bytes",
"read",
"event",
"handler",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/net/rtmp/BaseRTMPHandler.java#L341-L343 |
108,075 | Red5/red5-server-common | src/main/java/org/red5/server/stream/ClientBroadcastStream.java | ClientBroadcastStream.close | public void close() {
//log.debug("Stream close: {}", publishedName);
if (closed.compareAndSet(false, true)) {
if (livePipe != null) {
livePipe.unsubscribe((IProvider) this);
}
// if we have a recording listener, inform that this stream is done
... | java | public void close() {
//log.debug("Stream close: {}", publishedName);
if (closed.compareAndSet(false, true)) {
if (livePipe != null) {
livePipe.unsubscribe((IProvider) this);
}
// if we have a recording listener, inform that this stream is done
... | [
"public",
"void",
"close",
"(",
")",
"{",
"//log.debug(\"Stream close: {}\", publishedName);\r",
"if",
"(",
"closed",
".",
"compareAndSet",
"(",
"false",
",",
"true",
")",
")",
"{",
"if",
"(",
"livePipe",
"!=",
"null",
")",
"{",
"livePipe",
".",
"unsubscribe",... | Closes stream, unsubscribes provides, sends stoppage notifications and broadcast close notification. | [
"Closes",
"stream",
"unsubscribes",
"provides",
"sends",
"stoppage",
"notifications",
"and",
"broadcast",
"close",
"notification",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/stream/ClientBroadcastStream.java#L205-L236 |
108,076 | Red5/red5-server-common | src/main/java/org/red5/server/stream/ClientBroadcastStream.java | ClientBroadcastStream.setPublishedName | public void setPublishedName(String name) {
//log.debug("setPublishedName: {}", name);
// a publish name of "false" is a special case, used when stopping a stream
if (StringUtils.isNotEmpty(name) && !"false".equals(name)) {
this.publishedName = name;
registerJMX();
... | java | public void setPublishedName(String name) {
//log.debug("setPublishedName: {}", name);
// a publish name of "false" is a special case, used when stopping a stream
if (StringUtils.isNotEmpty(name) && !"false".equals(name)) {
this.publishedName = name;
registerJMX();
... | [
"public",
"void",
"setPublishedName",
"(",
"String",
"name",
")",
"{",
"//log.debug(\"setPublishedName: {}\", name);\r",
"// a publish name of \"false\" is a special case, used when stopping a stream\r",
"if",
"(",
"StringUtils",
".",
"isNotEmpty",
"(",
"name",
")",
"&&",
"!",
... | Setter for stream published name
@param name
Name that used for publishing. Set at client side when begin to broadcast with NetStream#publish. | [
"Setter",
"for",
"stream",
"published",
"name"
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/stream/ClientBroadcastStream.java#L423-L430 |
108,077 | Red5/red5-server-common | src/main/java/org/red5/server/stream/ClientBroadcastStream.java | ClientBroadcastStream.notifyBroadcastClose | private void notifyBroadcastClose() {
final IStreamAwareScopeHandler handler = getStreamAwareHandler();
if (handler != null) {
try {
handler.streamBroadcastClose(this);
} catch (Throwable t) {
log.error("Error in notifyBroadcastClose", t);
... | java | private void notifyBroadcastClose() {
final IStreamAwareScopeHandler handler = getStreamAwareHandler();
if (handler != null) {
try {
handler.streamBroadcastClose(this);
} catch (Throwable t) {
log.error("Error in notifyBroadcastClose", t);
... | [
"private",
"void",
"notifyBroadcastClose",
"(",
")",
"{",
"final",
"IStreamAwareScopeHandler",
"handler",
"=",
"getStreamAwareHandler",
"(",
")",
";",
"if",
"(",
"handler",
"!=",
"null",
")",
"{",
"try",
"{",
"handler",
".",
"streamBroadcastClose",
"(",
"this",
... | Notifies handler on stream broadcast close | [
"Notifies",
"handler",
"on",
"stream",
"broadcast",
"close"
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/stream/ClientBroadcastStream.java#L495-L504 |
108,078 | Red5/red5-server-common | src/main/java/org/red5/server/stream/ClientBroadcastStream.java | ClientBroadcastStream.notifyRecordingStop | private void notifyRecordingStop() {
IStreamAwareScopeHandler handler = getStreamAwareHandler();
if (handler != null) {
try {
handler.streamRecordStop(this);
} catch (Throwable t) {
log.error("Error in notifyRecordingStop", t);
}... | java | private void notifyRecordingStop() {
IStreamAwareScopeHandler handler = getStreamAwareHandler();
if (handler != null) {
try {
handler.streamRecordStop(this);
} catch (Throwable t) {
log.error("Error in notifyRecordingStop", t);
}... | [
"private",
"void",
"notifyRecordingStop",
"(",
")",
"{",
"IStreamAwareScopeHandler",
"handler",
"=",
"getStreamAwareHandler",
"(",
")",
";",
"if",
"(",
"handler",
"!=",
"null",
")",
"{",
"try",
"{",
"handler",
".",
"streamRecordStop",
"(",
"this",
")",
";",
... | Notifies handler on stream recording stop | [
"Notifies",
"handler",
"on",
"stream",
"recording",
"stop"
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/stream/ClientBroadcastStream.java#L509-L518 |
108,079 | Red5/red5-server-common | src/main/java/org/red5/server/stream/ClientBroadcastStream.java | ClientBroadcastStream.notifyBroadcastStart | private void notifyBroadcastStart() {
IStreamAwareScopeHandler handler = getStreamAwareHandler();
if (handler != null) {
try {
handler.streamBroadcastStart(this);
} catch (Throwable t) {
log.error("Error in notifyBroadcastStart", t);
... | java | private void notifyBroadcastStart() {
IStreamAwareScopeHandler handler = getStreamAwareHandler();
if (handler != null) {
try {
handler.streamBroadcastStart(this);
} catch (Throwable t) {
log.error("Error in notifyBroadcastStart", t);
... | [
"private",
"void",
"notifyBroadcastStart",
"(",
")",
"{",
"IStreamAwareScopeHandler",
"handler",
"=",
"getStreamAwareHandler",
"(",
")",
";",
"if",
"(",
"handler",
"!=",
"null",
")",
"{",
"try",
"{",
"handler",
".",
"streamBroadcastStart",
"(",
"this",
")",
";... | Notifies handler on stream broadcast start | [
"Notifies",
"handler",
"on",
"stream",
"broadcast",
"start"
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/stream/ClientBroadcastStream.java#L523-L555 |
108,080 | Red5/red5-server-common | src/main/java/org/red5/server/stream/ClientBroadcastStream.java | ClientBroadcastStream.notifyChunkSize | private void notifyChunkSize() {
if (chunkSize > 0 && livePipe != null) {
OOBControlMessage setChunkSize = new OOBControlMessage();
setChunkSize.setTarget("ConnectionConsumer");
setChunkSize.setServiceName("chunkSize");
if (setChunkSize.getServiceParamMap() =... | java | private void notifyChunkSize() {
if (chunkSize > 0 && livePipe != null) {
OOBControlMessage setChunkSize = new OOBControlMessage();
setChunkSize.setTarget("ConnectionConsumer");
setChunkSize.setServiceName("chunkSize");
if (setChunkSize.getServiceParamMap() =... | [
"private",
"void",
"notifyChunkSize",
"(",
")",
"{",
"if",
"(",
"chunkSize",
">",
"0",
"&&",
"livePipe",
"!=",
"null",
")",
"{",
"OOBControlMessage",
"setChunkSize",
"=",
"new",
"OOBControlMessage",
"(",
")",
";",
"setChunkSize",
".",
"setTarget",
"(",
"\"Co... | Send OOB control message with chunk size | [
"Send",
"OOB",
"control",
"message",
"with",
"chunk",
"size"
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/stream/ClientBroadcastStream.java#L560-L571 |
108,081 | Red5/red5-server-common | src/main/java/org/red5/server/stream/ClientBroadcastStream.java | ClientBroadcastStream.onOOBControlMessage | public void onOOBControlMessage(IMessageComponent source, IPipe pipe, OOBControlMessage oobCtrlMsg) {
String target = oobCtrlMsg.getTarget();
if ("ClientBroadcastStream".equals(target)) {
String serviceName = oobCtrlMsg.getServiceName();
if ("chunkSize".equals(serviceName)) {... | java | public void onOOBControlMessage(IMessageComponent source, IPipe pipe, OOBControlMessage oobCtrlMsg) {
String target = oobCtrlMsg.getTarget();
if ("ClientBroadcastStream".equals(target)) {
String serviceName = oobCtrlMsg.getServiceName();
if ("chunkSize".equals(serviceName)) {... | [
"public",
"void",
"onOOBControlMessage",
"(",
"IMessageComponent",
"source",
",",
"IPipe",
"pipe",
",",
"OOBControlMessage",
"oobCtrlMsg",
")",
"{",
"String",
"target",
"=",
"oobCtrlMsg",
".",
"getTarget",
"(",
")",
";",
"if",
"(",
"\"ClientBroadcastStream\"",
"."... | Out-of-band control message handler
@param source
OOB message source
@param pipe
Pipe that used to send OOB message
@param oobCtrlMsg
Out-of-band control message | [
"Out",
"-",
"of",
"-",
"band",
"control",
"message",
"handler"
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/stream/ClientBroadcastStream.java#L583-L596 |
108,082 | Red5/red5-server-common | src/main/java/org/red5/server/stream/ClientBroadcastStream.java | ClientBroadcastStream.saveAs | public void saveAs(String name, boolean isAppend) throws IOException {
//log.debug("SaveAs - name: {} append: {}", name, isAppend);
// get connection to check if client is still streaming
IStreamCapableConnection conn = getConnection();
if (conn == null) {
throw new IOEx... | java | public void saveAs(String name, boolean isAppend) throws IOException {
//log.debug("SaveAs - name: {} append: {}", name, isAppend);
// get connection to check if client is still streaming
IStreamCapableConnection conn = getConnection();
if (conn == null) {
throw new IOEx... | [
"public",
"void",
"saveAs",
"(",
"String",
"name",
",",
"boolean",
"isAppend",
")",
"throws",
"IOException",
"{",
"//log.debug(\"SaveAs - name: {} append: {}\", name, isAppend);\r",
"// get connection to check if client is still streaming\r",
"IStreamCapableConnection",
"conn",
"="... | Save broadcasted stream.
@param name
Stream name
@param isAppend
Append mode
@throws IOException
File could not be created/written to | [
"Save",
"broadcasted",
"stream",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/stream/ClientBroadcastStream.java#L666-L736 |
108,083 | Red5/red5-server-common | src/main/java/org/red5/server/stream/ClientBroadcastStream.java | ClientBroadcastStream.sendPublishStartNotify | private void sendPublishStartNotify() {
Status publishStatus = new Status(StatusCodes.NS_PUBLISH_START);
publishStatus.setClientid(getStreamId());
publishStatus.setDetails(getPublishedName());
StatusMessage startMsg = new StatusMessage();
startMsg.setBody(publishStatus);
... | java | private void sendPublishStartNotify() {
Status publishStatus = new Status(StatusCodes.NS_PUBLISH_START);
publishStatus.setClientid(getStreamId());
publishStatus.setDetails(getPublishedName());
StatusMessage startMsg = new StatusMessage();
startMsg.setBody(publishStatus);
... | [
"private",
"void",
"sendPublishStartNotify",
"(",
")",
"{",
"Status",
"publishStatus",
"=",
"new",
"Status",
"(",
"StatusCodes",
".",
"NS_PUBLISH_START",
")",
";",
"publishStatus",
".",
"setClientid",
"(",
"getStreamId",
"(",
")",
")",
";",
"publishStatus",
".",... | Sends publish start notifications | [
"Sends",
"publish",
"start",
"notifications"
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/stream/ClientBroadcastStream.java#L741-L750 |
108,084 | Red5/red5-server-common | src/main/java/org/red5/server/stream/ClientBroadcastStream.java | ClientBroadcastStream.sendPublishStopNotify | private void sendPublishStopNotify() {
Status stopStatus = new Status(StatusCodes.NS_UNPUBLISHED_SUCCESS);
stopStatus.setClientid(getStreamId());
stopStatus.setDetails(getPublishedName());
StatusMessage stopMsg = new StatusMessage();
stopMsg.setBody(stopStatus);
p... | java | private void sendPublishStopNotify() {
Status stopStatus = new Status(StatusCodes.NS_UNPUBLISHED_SUCCESS);
stopStatus.setClientid(getStreamId());
stopStatus.setDetails(getPublishedName());
StatusMessage stopMsg = new StatusMessage();
stopMsg.setBody(stopStatus);
p... | [
"private",
"void",
"sendPublishStopNotify",
"(",
")",
"{",
"Status",
"stopStatus",
"=",
"new",
"Status",
"(",
"StatusCodes",
".",
"NS_UNPUBLISHED_SUCCESS",
")",
";",
"stopStatus",
".",
"setClientid",
"(",
"getStreamId",
"(",
")",
")",
";",
"stopStatus",
".",
"... | Sends publish stop notifications | [
"Sends",
"publish",
"stop",
"notifications"
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/stream/ClientBroadcastStream.java#L755-L764 |
108,085 | Red5/red5-server-common | src/main/java/org/red5/server/stream/ClientBroadcastStream.java | ClientBroadcastStream.sendRecordFailedNotify | private void sendRecordFailedNotify(String reason) {
Status failedStatus = new Status(StatusCodes.NS_RECORD_FAILED);
failedStatus.setLevel(Status.ERROR);
failedStatus.setClientid(getStreamId());
failedStatus.setDetails(getPublishedName());
failedStatus.setDesciption(reason);... | java | private void sendRecordFailedNotify(String reason) {
Status failedStatus = new Status(StatusCodes.NS_RECORD_FAILED);
failedStatus.setLevel(Status.ERROR);
failedStatus.setClientid(getStreamId());
failedStatus.setDetails(getPublishedName());
failedStatus.setDesciption(reason);... | [
"private",
"void",
"sendRecordFailedNotify",
"(",
"String",
"reason",
")",
"{",
"Status",
"failedStatus",
"=",
"new",
"Status",
"(",
"StatusCodes",
".",
"NS_RECORD_FAILED",
")",
";",
"failedStatus",
".",
"setLevel",
"(",
"Status",
".",
"ERROR",
")",
";",
"fail... | Sends record failed notifications | [
"Sends",
"record",
"failed",
"notifications"
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/stream/ClientBroadcastStream.java#L769-L779 |
108,086 | Red5/red5-server-common | src/main/java/org/red5/server/stream/ClientBroadcastStream.java | ClientBroadcastStream.sendRecordStartNotify | private void sendRecordStartNotify() {
Status recordStatus = new Status(StatusCodes.NS_RECORD_START);
recordStatus.setClientid(getStreamId());
recordStatus.setDetails(getPublishedName());
StatusMessage startMsg = new StatusMessage();
startMsg.setBody(recordStatus);
... | java | private void sendRecordStartNotify() {
Status recordStatus = new Status(StatusCodes.NS_RECORD_START);
recordStatus.setClientid(getStreamId());
recordStatus.setDetails(getPublishedName());
StatusMessage startMsg = new StatusMessage();
startMsg.setBody(recordStatus);
... | [
"private",
"void",
"sendRecordStartNotify",
"(",
")",
"{",
"Status",
"recordStatus",
"=",
"new",
"Status",
"(",
"StatusCodes",
".",
"NS_RECORD_START",
")",
";",
"recordStatus",
".",
"setClientid",
"(",
"getStreamId",
"(",
")",
")",
";",
"recordStatus",
".",
"s... | Sends record start notifications | [
"Sends",
"record",
"start",
"notifications"
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/stream/ClientBroadcastStream.java#L784-L792 |
108,087 | Red5/red5-server-common | src/main/java/org/red5/server/stream/ClientBroadcastStream.java | ClientBroadcastStream.sendRecordStopNotify | private void sendRecordStopNotify() {
Status stopStatus = new Status(StatusCodes.NS_RECORD_STOP);
stopStatus.setClientid(getStreamId());
stopStatus.setDetails(getPublishedName());
StatusMessage stopMsg = new StatusMessage();
stopMsg.setBody(stopStatus);
pushMessag... | java | private void sendRecordStopNotify() {
Status stopStatus = new Status(StatusCodes.NS_RECORD_STOP);
stopStatus.setClientid(getStreamId());
stopStatus.setDetails(getPublishedName());
StatusMessage stopMsg = new StatusMessage();
stopMsg.setBody(stopStatus);
pushMessag... | [
"private",
"void",
"sendRecordStopNotify",
"(",
")",
"{",
"Status",
"stopStatus",
"=",
"new",
"Status",
"(",
"StatusCodes",
".",
"NS_RECORD_STOP",
")",
";",
"stopStatus",
".",
"setClientid",
"(",
"getStreamId",
"(",
")",
")",
";",
"stopStatus",
".",
"setDetail... | Sends record stop notifications | [
"Sends",
"record",
"stop",
"notifications"
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/stream/ClientBroadcastStream.java#L797-L805 |
108,088 | Red5/red5-server-common | src/main/java/org/red5/server/stream/ClientBroadcastStream.java | ClientBroadcastStream.pushMessage | protected void pushMessage(StatusMessage msg) {
if (connMsgOut != null) {
try {
connMsgOut.pushMessage(msg);
} catch (IOException err) {
log.error("Error while pushing message: {}", msg, err);
}
} else {
log.warn("Co... | java | protected void pushMessage(StatusMessage msg) {
if (connMsgOut != null) {
try {
connMsgOut.pushMessage(msg);
} catch (IOException err) {
log.error("Error while pushing message: {}", msg, err);
}
} else {
log.warn("Co... | [
"protected",
"void",
"pushMessage",
"(",
"StatusMessage",
"msg",
")",
"{",
"if",
"(",
"connMsgOut",
"!=",
"null",
")",
"{",
"try",
"{",
"connMsgOut",
".",
"pushMessage",
"(",
"msg",
")",
";",
"}",
"catch",
"(",
"IOException",
"err",
")",
"{",
"log",
".... | Pushes a message out to a consumer.
@param msg
StatusMessage | [
"Pushes",
"a",
"message",
"out",
"to",
"a",
"consumer",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/stream/ClientBroadcastStream.java#L813-L823 |
108,089 | Red5/red5-server-common | src/main/java/org/red5/server/stream/ClientBroadcastStream.java | ClientBroadcastStream.start | public void start() {
//log.info("Stream start: {}", publishedName);
checkVideoCodec = true;
checkAudioCodec = true;
firstPacketTime = -1;
latestTimeStamp = -1;
bytesReceived = 0;
IConsumerService consumerManager = (IConsumerService) getScope().getContext()... | java | public void start() {
//log.info("Stream start: {}", publishedName);
checkVideoCodec = true;
checkAudioCodec = true;
firstPacketTime = -1;
latestTimeStamp = -1;
bytesReceived = 0;
IConsumerService consumerManager = (IConsumerService) getScope().getContext()... | [
"public",
"void",
"start",
"(",
")",
"{",
"//log.info(\"Stream start: {}\", publishedName);\r",
"checkVideoCodec",
"=",
"true",
";",
"checkAudioCodec",
"=",
"true",
";",
"firstPacketTime",
"=",
"-",
"1",
";",
"latestTimeStamp",
"=",
"-",
"1",
";",
"bytesReceived",
... | Starts stream, creates pipes, connects | [
"Starts",
"stream",
"creates",
"pipes",
"connects"
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/stream/ClientBroadcastStream.java#L868-L884 |
108,090 | Red5/red5-server-common | src/main/java/org/red5/server/stream/ClientBroadcastStream.java | ClientBroadcastStream.stopRecording | public void stopRecording() {
IRecordingListener listener = null;
if (recordingListener != null && (listener = recordingListener.get()).isRecording()) {
sendRecordStopNotify();
notifyRecordingStop();
// remove the listener
removeStreamListener(listen... | java | public void stopRecording() {
IRecordingListener listener = null;
if (recordingListener != null && (listener = recordingListener.get()).isRecording()) {
sendRecordStopNotify();
notifyRecordingStop();
// remove the listener
removeStreamListener(listen... | [
"public",
"void",
"stopRecording",
"(",
")",
"{",
"IRecordingListener",
"listener",
"=",
"null",
";",
"if",
"(",
"recordingListener",
"!=",
"null",
"&&",
"(",
"listener",
"=",
"recordingListener",
".",
"get",
"(",
")",
")",
".",
"isRecording",
"(",
")",
")... | Stops any currently active recording. | [
"Stops",
"any",
"currently",
"active",
"recording",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/stream/ClientBroadcastStream.java#L913-L926 |
108,091 | Red5/red5-server-common | src/main/java/org/red5/server/stream/RecordingListener.java | RecordingListener.processQueue | private void processQueue() {
CachedEvent cachedEvent;
try {
IRTMPEvent event = null;
RTMPMessage message = null;
// get first event in the queue
cachedEvent = queue.poll();
if (cachedEvent != null) {
// get the data typ... | java | private void processQueue() {
CachedEvent cachedEvent;
try {
IRTMPEvent event = null;
RTMPMessage message = null;
// get first event in the queue
cachedEvent = queue.poll();
if (cachedEvent != null) {
// get the data typ... | [
"private",
"void",
"processQueue",
"(",
")",
"{",
"CachedEvent",
"cachedEvent",
";",
"try",
"{",
"IRTMPEvent",
"event",
"=",
"null",
";",
"RTMPMessage",
"message",
"=",
"null",
";",
"// get first event in the queue\r",
"cachedEvent",
"=",
"queue",
".",
"poll",
"... | Process the queued items. | [
"Process",
"the",
"queued",
"items",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/stream/RecordingListener.java#L279-L334 |
108,092 | Red5/red5-server-common | src/main/java/org/red5/server/Server.java | Server.getKey | protected String getKey(String hostName, String contextPath) {
return String.format("%s/%s", (hostName == null ? EMPTY : hostName), (contextPath == null ? EMPTY : contextPath));
} | java | protected String getKey(String hostName, String contextPath) {
return String.format("%s/%s", (hostName == null ? EMPTY : hostName), (contextPath == null ? EMPTY : contextPath));
} | [
"protected",
"String",
"getKey",
"(",
"String",
"hostName",
",",
"String",
"contextPath",
")",
"{",
"return",
"String",
".",
"format",
"(",
"\"%s/%s\"",
",",
"(",
"hostName",
"==",
"null",
"?",
"EMPTY",
":",
"hostName",
")",
",",
"(",
"contextPath",
"==",
... | Return scope key. Scope key consists of host name concatenated with context path by slash symbol
@param hostName
Host name
@param contextPath
Context path
@return Scope key as string | [
"Return",
"scope",
"key",
".",
"Scope",
"key",
"consists",
"of",
"host",
"name",
"concatenated",
"with",
"context",
"path",
"by",
"slash",
"symbol"
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/Server.java#L118-L120 |
108,093 | Red5/red5-server-common | src/main/java/org/red5/server/Server.java | Server.lookupGlobal | public IGlobalScope lookupGlobal(String hostName, String contextPath) {
log.trace("{}", this);
log.debug("Lookup global scope - host name: {} context path: {}", hostName, contextPath);
// Init mappings key
String key = getKey(hostName, contextPath);
// If context path contai... | java | public IGlobalScope lookupGlobal(String hostName, String contextPath) {
log.trace("{}", this);
log.debug("Lookup global scope - host name: {} context path: {}", hostName, contextPath);
// Init mappings key
String key = getKey(hostName, contextPath);
// If context path contai... | [
"public",
"IGlobalScope",
"lookupGlobal",
"(",
"String",
"hostName",
",",
"String",
"contextPath",
")",
"{",
"log",
".",
"trace",
"(",
"\"{}\"",
",",
"this",
")",
";",
"log",
".",
"debug",
"(",
"\"Lookup global scope - host name: {} context path: {}\"",
",",
"host... | Does global scope lookup for host name and context path
@param hostName
Host name
@param contextPath
Context path
@return Global scope | [
"Does",
"global",
"scope",
"lookup",
"for",
"host",
"name",
"and",
"context",
"path"
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/Server.java#L131-L171 |
108,094 | Red5/red5-server-common | src/main/java/org/red5/server/Server.java | Server.getGlobal | public IGlobalScope getGlobal(String name) {
if (name == null) {
return null;
}
return globals.get(name);
} | java | public IGlobalScope getGlobal(String name) {
if (name == null) {
return null;
}
return globals.get(name);
} | [
"public",
"IGlobalScope",
"getGlobal",
"(",
"String",
"name",
")",
"{",
"if",
"(",
"name",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"return",
"globals",
".",
"get",
"(",
"name",
")",
";",
"}"
] | Return global scope by name
@param name
Global scope name
@return Global scope | [
"Return",
"global",
"scope",
"by",
"name"
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/Server.java#L180-L185 |
108,095 | Red5/red5-server-common | src/main/java/org/red5/server/Server.java | Server.registerGlobal | public void registerGlobal(IGlobalScope scope) {
log.trace("Registering global scope: {}", scope.getName(), scope);
globals.put(scope.getName(), scope);
} | java | public void registerGlobal(IGlobalScope scope) {
log.trace("Registering global scope: {}", scope.getName(), scope);
globals.put(scope.getName(), scope);
} | [
"public",
"void",
"registerGlobal",
"(",
"IGlobalScope",
"scope",
")",
"{",
"log",
".",
"trace",
"(",
"\"Registering global scope: {}\"",
",",
"scope",
".",
"getName",
"(",
")",
",",
"scope",
")",
";",
"globals",
".",
"put",
"(",
"scope",
".",
"getName",
"... | Register global scope
@param scope
Global scope to register | [
"Register",
"global",
"scope"
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/Server.java#L193-L196 |
108,096 | Red5/red5-server-common | src/main/java/org/red5/server/Server.java | Server.removeMapping | public boolean removeMapping(String hostName, String contextPath) {
log.info("Remove mapping host: {} context: {}", hostName, contextPath);
final String key = getKey(hostName, contextPath);
log.debug("Remove mapping: {}", key);
return (mapping.remove(key) != null);
} | java | public boolean removeMapping(String hostName, String contextPath) {
log.info("Remove mapping host: {} context: {}", hostName, contextPath);
final String key = getKey(hostName, contextPath);
log.debug("Remove mapping: {}", key);
return (mapping.remove(key) != null);
} | [
"public",
"boolean",
"removeMapping",
"(",
"String",
"hostName",
",",
"String",
"contextPath",
")",
"{",
"log",
".",
"info",
"(",
"\"Remove mapping host: {} context: {}\"",
",",
"hostName",
",",
"contextPath",
")",
";",
"final",
"String",
"key",
"=",
"getKey",
"... | Remove mapping with given key
@param hostName
Host name
@param contextPath
Context path
@return true if mapping was removed, false if key doesn't exist | [
"Remove",
"mapping",
"with",
"given",
"key"
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/Server.java#L225-L230 |
108,097 | Red5/red5-server-common | src/main/java/org/red5/server/so/ClientSharedObject.java | ClientSharedObject.connect | public void connect(IConnection conn) {
if (conn instanceof RTMPConnection) {
if (!isConnected()) {
source = conn;
SharedObjectMessage msg = new SharedObjectMessage(name, 0, isPersistent());
msg.addEvent(new SharedObjectEvent(Type.SERVER_CONNECT, ... | java | public void connect(IConnection conn) {
if (conn instanceof RTMPConnection) {
if (!isConnected()) {
source = conn;
SharedObjectMessage msg = new SharedObjectMessage(name, 0, isPersistent());
msg.addEvent(new SharedObjectEvent(Type.SERVER_CONNECT, ... | [
"public",
"void",
"connect",
"(",
"IConnection",
"conn",
")",
"{",
"if",
"(",
"conn",
"instanceof",
"RTMPConnection",
")",
"{",
"if",
"(",
"!",
"isConnected",
"(",
")",
")",
"{",
"source",
"=",
"conn",
";",
"SharedObjectMessage",
"msg",
"=",
"new",
"Shar... | Connect the shared object using the passed connection.
@param conn
Attach SO to given connection | [
"Connect",
"the",
"shared",
"object",
"using",
"the",
"passed",
"connection",
"."
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/so/ClientSharedObject.java#L91-L105 |
108,098 | Red5/red5-server-common | src/main/java/org/red5/server/so/ClientSharedObject.java | ClientSharedObject.notifyUpdate | protected void notifyUpdate(String key, Object value) {
for (ISharedObjectListener listener : listeners) {
listener.onSharedObjectUpdate(this, key, value);
}
} | java | protected void notifyUpdate(String key, Object value) {
for (ISharedObjectListener listener : listeners) {
listener.onSharedObjectUpdate(this, key, value);
}
} | [
"protected",
"void",
"notifyUpdate",
"(",
"String",
"key",
",",
"Object",
"value",
")",
"{",
"for",
"(",
"ISharedObjectListener",
"listener",
":",
"listeners",
")",
"{",
"listener",
".",
"onSharedObjectUpdate",
"(",
"this",
",",
"key",
",",
"value",
")",
";"... | Notify listeners on update
@param key
Updated attribute key
@param value
Updated attribute value | [
"Notify",
"listeners",
"on",
"update"
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/so/ClientSharedObject.java#L211-L215 |
108,099 | Red5/red5-server-common | src/main/java/org/red5/server/so/ClientSharedObject.java | ClientSharedObject.notifyUpdate | protected void notifyUpdate(String key, Map<String, Object> value) {
if (value.size() == 1) {
Map.Entry<String, Object> entry = value.entrySet().iterator().next();
notifyUpdate(entry.getKey(), entry.getValue());
return;
}
for (ISharedObjectListener liste... | java | protected void notifyUpdate(String key, Map<String, Object> value) {
if (value.size() == 1) {
Map.Entry<String, Object> entry = value.entrySet().iterator().next();
notifyUpdate(entry.getKey(), entry.getValue());
return;
}
for (ISharedObjectListener liste... | [
"protected",
"void",
"notifyUpdate",
"(",
"String",
"key",
",",
"Map",
"<",
"String",
",",
"Object",
">",
"value",
")",
"{",
"if",
"(",
"value",
".",
"size",
"(",
")",
"==",
"1",
")",
"{",
"Map",
".",
"Entry",
"<",
"String",
",",
"Object",
">",
"... | Notify listeners on map attribute update
@param key
Updated attribute key
@param value
Updated attribute value | [
"Notify",
"listeners",
"on",
"map",
"attribute",
"update"
] | 39ae73710c25bda86d70b13ef37ae707962217b9 | https://github.com/Red5/red5-server-common/blob/39ae73710c25bda86d70b13ef37ae707962217b9/src/main/java/org/red5/server/so/ClientSharedObject.java#L225-L234 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.