Damn sorry never tried just audio, are you using AS3 ? , try pause /
resume not togglePause, that doesnt work with red5 you will get
exceptions, surely you are getting errors in the console ?
sfort wrote:
> I also can pause and resume like you show if the file is an existing file
> like (Spiderman3_trailer_300.flv) but if i try to record an audio file like
> this:
>
> // Create a connection
> client_nc = new NetConnection();
>
> // Connect to the application
> client_nc.connect("rtmp://localhost/recording");
>
> var out_ns = new NetStream(client_nc);
>
> my_mic = Microphone.get();
> out_ns.attachAudio(my_mic);
>
> // Publish the stream
> out_ns.publish("audio", "record");
>
> and then when i'm playing the audio i try to pause and resume:
>
> //Pause
> in_ns.pause(true);
>
> //Resume
> in_ns.pause(false);
>
> it stops playing but it doesn't resume. I try also with ns.togglePause()
> and ns.pause().
>
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org