Question
recorded a stream, but can't rename the resulting flv
I have a simple server-side app that creates a Stream,
creates a NetConnection, and then plays a live stream from that
NetConnection. I record the resulting stream into a file, say
"recordstream.flv"
When I get an UnpublishNotify, I stop recording. When I see NetStream.Record.Stop, I create a File object that points to recordstream.flv, and try to rename it to a different filename with File.renameTo().
This worked in FMS2, but not in FMS3. In FMS3, I get an error that the renameTo() failed. Interestingly, copyTo() the same new filename works, so it is not a directory protection issue or something like that. It appears that FMS3 is forbidding me from fiddling with the file; File.canRead returns false on the file. Is there any way to get FMS3 to release the file? Or should I give up and just use copyTo()?
When I get an UnpublishNotify, I stop recording. When I see NetStream.Record.Stop, I create a File object that points to recordstream.flv, and try to rename it to a different filename with File.renameTo().
This worked in FMS2, but not in FMS3. In FMS3, I get an error that the renameTo() failed. Interestingly, copyTo() the same new filename works, so it is not a directory protection issue or something like that. It appears that FMS3 is forbidding me from fiddling with the file; File.canRead returns false on the file. Is there any way to get FMS3 to release the file? Or should I give up and just use copyTo()?
