PDA

View Full Version : delete an recorded stream


Andi
09-14-2004, 04:46 PM
Hi,

it is possible to delete an recorded stream with the FCS? How can i do it? I tried to delete with an php-script, but FCS dont allowed this.

thx

Andi

ibizconsultants
09-18-2004, 07:43 PM
Hi Andi,

You need to add the following code in your main.asc file and then invoke using the NetConnection.Call function that will actually execute the code.

This is what you need to do:

var ns:NetStream = new NetStream();
ns.publish("mystreamfile");

This will delete the mystreamfile.flv file on the server.

Please let me know if this helps.

iBizConsultants
Ecommerce web site design (http://www.ibizconsultants.com)
Internet Marketing Solutions (http://www.ibizconsultants.com)

Andi
10-02-2004, 07:30 PM
Hi,

I checked netStream.clear(). But this statement delete only one stream. Now I have this solution:


//delete all streams in the path
Client.prototype.delStream = function(streamPath) {
if (streamPath == null) {
application.clearStreams("/");
}else{
application.clearStreams("/" + streamPath + "/");
}
};


Thanks,
Andi