You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't find these info. Could you tell me how to get it?
Environment
[] Operating system and version:Mac
[] Java version:openjdk version "1.8.0_151"
[] Red5 version:1.0.9 release
Expected behavior
get query string like paramsOne or user1
Actual behavior
I can't find any info about query string like paramsOne or user1.
Steps to reproduce
1.use my custom ApplicationAdapter and registerStreamPublishSecurity
public boolean isPublishAllowed(IScope iScope, String str1, String str2) {
Set attributeNames = iScope.getAttributeNames();
for (String attributeName : attributeNames) {
log.info("attributeName = " + attributeName);
}
log.info("str1 = " + str1);
log.info("str2 = " + str2);
}
2. publish a rtmp stream: rtmp://127.0.0.1:1935/live/aaa?paramsOne=user1
to get the params=aaa in my ApplicationAdapter in connect(IConnection conn, IScope scope, Object[] params)
log.info("Connection params: {}", conn.getConnectParams());
log.info("Connection attributes: {}", conn.getAttributes());
if (params != null) {
log.info("Params: {}", Arrays.toString(params));
}
Logs
Place logs on pastebin or elsewhere and put links here
[INFO] [NioProcessor-2] org.red5.server.adapter.MyApplicationAdapter - Connection params: {app=live, type=nonprivate, flashVer=FMLE/3.0 (compatible; FMSc/1.0), swfUrl=rtmp://127.0.0.1:1935/live, tcUrl=rtmp://127.0.0.1:1935/live, path=live}
[INFO] [NioProcessor-2] org.red5.server.adapter.MyApplicationAdapter - Connection attributes: {}
[INFO] [NioProcessor-2] org.red5.server.adapter.MyApplicationAdapter - Params: []
[INFO] [NioProcessor-2] org.red5.server.adapter.MyStreamPublishSecurity - key = _transient__service_cache:org.red5.server.api.stream.IStreamService, value = org.red5.server.stream.StreamService@158d9c1b
[INFO] [NioProcessor-2] org.red5.server.adapter.MyStreamPublishSecurity - key = _transient__service_cache:org.red5.server.api.service.IStreamSecurityService, value = org.red5.server.adapter.MyApplicationAdapter@2fff333e
[INFO] [NioProcessor-2] org.red5.server.adapter.MyStreamPublishSecurity - str1 = aaa
[INFO] [NioProcessor-2] org.red5.server.adapter.MyStreamPublishSecurity - str2 = live
The text was updated successfully, but these errors were encountered:
Issue
Short description
I can't find these info. Could you tell me how to get it?
Environment
[] Operating system and version:Mac
[] Java version:openjdk version "1.8.0_151"
[] Red5 version:1.0.9 release
Expected behavior
get query string like paramsOne or user1
Actual behavior
I can't find any info about query string like paramsOne or user1.
Steps to reproduce
1.use my custom ApplicationAdapter and registerStreamPublishSecurity
public boolean isPublishAllowed(IScope iScope, String str1, String str2) {
Set attributeNames = iScope.getAttributeNames();
for (String attributeName : attributeNames) {
log.info("attributeName = " + attributeName);
}
log.info("str1 = " + str1);
log.info("str2 = " + str2);
}
2. publish a rtmp stream: rtmp://127.0.0.1:1935/live/aaa?paramsOne=user1
log.info("Connection params: {}", conn.getConnectParams());
log.info("Connection attributes: {}", conn.getAttributes());
if (params != null) {
log.info("Params: {}", Arrays.toString(params));
}
Logs
Place logs on pastebin or elsewhere and put links here
[INFO] [NioProcessor-2] org.red5.server.adapter.MyApplicationAdapter - Connection params: {app=live, type=nonprivate, flashVer=FMLE/3.0 (compatible; FMSc/1.0), swfUrl=rtmp://127.0.0.1:1935/live, tcUrl=rtmp://127.0.0.1:1935/live, path=live}
[INFO] [NioProcessor-2] org.red5.server.adapter.MyApplicationAdapter - Connection attributes: {}
[INFO] [NioProcessor-2] org.red5.server.adapter.MyApplicationAdapter - Params: []
[INFO] [NioProcessor-2] org.red5.server.adapter.MyStreamPublishSecurity - key = _transient__service_cache:org.red5.server.api.stream.IStreamService, value = org.red5.server.stream.StreamService@158d9c1b
[INFO] [NioProcessor-2] org.red5.server.adapter.MyStreamPublishSecurity - key = _transient__service_cache:org.red5.server.api.service.IStreamSecurityService, value = org.red5.server.adapter.MyApplicationAdapter@2fff333e
[INFO] [NioProcessor-2] org.red5.server.adapter.MyStreamPublishSecurity - str1 = aaa
[INFO] [NioProcessor-2] org.red5.server.adapter.MyStreamPublishSecurity - str2 = live
The text was updated successfully, but these errors were encountered: