[Red5] description = No scope "lfrecord" on this server
laurent
laurent at logiquefloue.org
Fri Feb 22 10:09:57 PST 2008
it was about the 5080 port to presice in the server address
rtmp://192.168.1.36:5080/lfrecord
now error message have change:
(7840659) NetConnection.onStatus:
level = error
code = NetConnection.Connect.Failed
here's my application class:
public class Application extends ApplicationAdapter {
private static final Log log = LogFactory.getLog(
Application.class );
private IScope appScope;
private IServerStream serverStream;
/** Path that will store recorded streams. */
public String recordPath = "recordedStreams/";
/** Path that contains playable streams. */
public String playbackPath = "playbackStreams/";
/** {@inheritDoc} */
@Override
public boolean appStart(IScope app) {
appScope = app;
return true;
}
/** {@inheritDoc} */
@Override
public boolean appConnect(IConnection conn, Object[] params) {
// Trigger calling of "onBWDone", required for some FLV players
measureBandwidth(conn);
if (conn instanceof IStreamCapableConnection) {
IStreamCapableConnection streamConn =
(IStreamCapableConnection) conn;
SimpleConnectionBWConfig bwConfig = new
SimpleConnectionBWConfig();
bwConfig.getChannelBandwidth()[IBandwidthConfigure.OVERALL_CHANNEL] =
1024 * 1024;
bwConfig.getChannelInitialBurst()[IBandwidthConfigure.OVERALL_CHANNEL] =
128 * 1024;
streamConn.setBandwidthConfigure(bwConfig);
}
return super.appConnect(conn, params);
}
/** {@inheritDoc} */
@Override
public void appDisconnect(IConnection conn) {
if (appScope == conn.getScope() && serverStream != null) {
serverStream.close();
}
super.appDisconnect(conn);
}
public Number getStreamSize (String str){
IScope scope = Red5.getConnectionLocal().getScope();
File file = null;
try {
Resource flv = scope.getResource("streams/" + str);
file = flv.getFile();
} catch (IOException e) {
log.error("{}", e);
}
return file==null ? 0 : file.length();
}
}
Is there something wrong here ??
laurent a écrit :
> Hi,
>
> Just made a new app and configured the xml and properties, ant build it
> fine.
> The nohup log file show:
> [main] INFO /lfrecord - set webapp root system property: '/lefrecord'
> = [/opt/red5/dist/webapps/lfrecord]
>
> is it ok ? because it's not showin that for the other demos.
>
> There should be a lfrecord.log file but nothing in /opt/red5/
>
> ofla_demo.swf is showing
> description = No scope "lfrecord" on this server
>
> when connecting to rtmp://192.168.1.36/lfrecord
>
> What could have been omitted ?
>
> thx
> L
>
>
>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
>
More information about the Red5
mailing list