Skip to main content
Participant
September 8, 2008
Question

File Plug-in strange behaviour

  • September 8, 2008
  • 1 reply
  • 278 views
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
    This topic has been closed for replies.

    1 reply

    Participating Frequently
    September 8, 2008
    The file plug-in works fine in publishing case. Just use provided FMS sample and you will be able to record publishing file using external plug-in. Do not modify read by returning 0 since FMS expects flv file header 13 bytes. Actually in publishing case you do not needed to modify anything since in that case FMS passing data to you in write request and you could post that data anywhere you want.