Question
File Plug-in strange behaviour
Hi all,
I'm trying to publish a stream using my own File Plugin but I don't understand how the FMS wants to use it.
When I publish a stream using NetStream.publish("streamname", "record") the FMS:
1.- opens the file to read
2.- query all the attributes of the file (using the handle). I return size '0' (the file is empty).
3.- tries to read 294912 bytes.
4.- the file is empty, so I tell the FMS that I've read 0 bytes.
5.- closes the file
6.- queries all the attributes of the file (using the name).
7.- open the file to read & write
8.- queries again the file.
9.- tries to read 294912 bytes, but the file is empty.
10.- closes the file.
The client gets 'NetStream.Record.NoAccess'.
I don't know what the FMS is expecting from the File Plugin. I'm trying to follow the documentation and the examples, but it doesn't work.
Any clues?
Thanks,
Jorge
I'm trying to publish a stream using my own File Plugin but I don't understand how the FMS wants to use it.
When I publish a stream using NetStream.publish("streamname", "record") the FMS:
1.- opens the file to read
2.- query all the attributes of the file (using the handle). I return size '0' (the file is empty).
3.- tries to read 294912 bytes.
4.- the file is empty, so I tell the FMS that I've read 0 bytes.
5.- closes the file
6.- queries all the attributes of the file (using the name).
7.- open the file to read & write
8.- queries again the file.
9.- tries to read 294912 bytes, but the file is empty.
10.- closes the file.
The client gets 'NetStream.Record.NoAccess'.
I don't know what the FMS is expecting from the File Plugin. I'm trying to follow the documentation and the examples, but it doesn't work.
Any clues?
Thanks,
Jorge
