Hi, Thijs Triemstra ,
if u r trying using java then i may suggest u to edit StreamService.java
there is a method like bellow,
public void publish(String name, String mode) {
IConnection conn = Red5.getConnectionLocal();
if (!(conn instanceof IStreamCapableConnection))
return;
IStreamCapableConnection streamConn = (IStreamCapableConnection)
conn;
int streamId = getCurrentStreamId();
IClientStream stream = streamConn.getStreamById(streamId);
if (stream != null && !(stream instanceof IClientBroadcastStream))
return;
if (stream == null)
stream = streamConn.newBroadcastStream(streamId);
IClientBroadcastStream bs = (IClientBroadcastStream) stream;
try {
if (IClientStream.MODE_RECORD.equals(mode)) {
bs.start();
bs.saveAs(name, false);
} else if (IClientStream.MODE_APPEND.equals(mode)) {
bs.start();
bs.saveAs(name, true);
} else if (IClientStream.MODE_LIVE.equals(mode)) {
IContext context = conn.getScope().getContext();
IProviderService providerService = (IProviderService)
context.getBean(IProviderService.KEY);
bs.setPublishedName(name);
// TODO handle registration failure
if
(providerService.registerBroadcastStream(conn.getScope(), name, bs)) {
IBroadcastScope bsScope =
getBroadcastScope(conn.getScope(), bs.getPublishedName());
bsScope.setAttribute(IBroadcastScope.STREAM_ATTRIBUTE, bs);
if (conn instanceof BaseConnection)
((BaseConnection)
conn).registerBasicScope(bsScope);
}
bs.start();
bs.saveAs(name, false); /* add this line for saving
meeting data */
log.info("saving vedio");
}
} catch (Exception e) {
// TODO report publish error
}
}
so u will get ur FLV of meeting saved in streams named folder.
Thanks
Rafiq
Thijs Triemstra | Collab <[EMAIL PROTECTED]> wrote:
Hi,
Can you give us any sample code?
Thijs
On Aug 2, 2007, at 4:58 PM, mike beeby wrote:
Hi,
I'm relatively new to RED5 and actionscript so maybe I'm making a silly mistake.
My problem is I adapted the simpleRecorder example and everything worked fine,
new streams were being saved in the directory I created (called record).
Satisfied with this I've been editing the rest of my webapp. I've now returned
to my RED5 recorder, made some further changes, and find that it is not saving
the streams in the directory I created, but instead in a directory called "copy
of record".
I've been trying to think about any changes I've made in the intervening time
period, but I just can't work out the problem. Can anyone help?
Regards,
Mike
-- Enter the Bourne Ultimatum Sweepstakes
View Trailer, Win Free Prizes. In Theaters 08.03.07
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org
---------------------------------
Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. _______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org