How to write and read data to and from .flv

Ask a Question related to Macromedia Flash Flashcom, Design and Development.

  1. #1

    Default How to write and read data to and from .flv

    Can anyone explain the concept of how to write and read data (plain text
    messages, or entire objects) from and to a .flv file? The application Flogger
    (the bandwidth metering app) writes statistics data into a .flv file and a
    client .swf reads that data back. I must admit I don't understand how this is
    done.
    Do you start a stream and then .send text or an object through the netstream
    and that automatically becomes part of the .flv file? What happens with text
    data or an entire object when a .flv file gets read into an .swf client? And
    how do you access that data in the client?

    e-WideWeb Guest

  2. Similar Questions and Discussions

    1. How to read data from SQL db and write to a OWC component
      I want to create a Excel OWC component and read data from the Orders table of the Northwind database and write into the OWC component. Can you...
    2. Read and write data with flash
      Hi I'm try to create a chat with flash, (without using flash comunication server). All need to know is how to write data to file/db with flash......
    3. File system get auto change from read-write to read-oly
      I have a very strange file system with OS Redhat 7.2 The file system is read-write, but some how it randomly changes to read-only at any time....
    4. Read & Read/Write Groups
      I am trying to achieve a solution to a (hopefully) simple scenario. I have a Solaris 9 server that is going to be used for sharing files. I...
    5. Read and write binary data by using ADO
      I use ADO (AppendChunk) in a C++ program to write binary data file into a table column of type image. The image files have almost the size of 1...
  3. #2

    Default Re: How to write and read data to and from .flv

    Anybody an idea, how text data is stored in a .flv file?
    e-WideWeb Guest

  4. #3

    Default Re: How to write and read data to and from .flv

    There may be other ways of using this feature, but here's how I use it:

    1. Create a function in the .swf that will play the video such as:

    function showText(msg){
    someTextField.text = msg;
    }

    Then, while recording the video, a call would be made over the netStream (I
    like to do this on the server side, but I imagine you could call it from the
    client side as well):

    my_stream.send("showText", "Here is some text");

    That send call gets recorded in the flv (assuming you're recording, otherwise
    it just gets sent to the subscribers).

    On playback, the function is called at the same point in the stream when it
    was called during recording.

    HTH


    JayCharles Guest

  5. #4

    Default Re: How to write and read data to and from .flv

    ahh, thanks for that. This clarifies it a bit. It would be neat however, if you could just "save" objects that way and later retrieve them by playing the .flv. I guess that can't be done though.


    e-WideWeb Guest

  6. #5

    Default Re: How to write and read data to and from .flv

    Well.. I haven't tested this... but there might be a way to get a little closer
    to what you want to do.

    From what I've read, if a stream is being recorded, but no video is being
    published to the stream, all of the send events will fire off at once right at
    the beginning of the recorded .flv. If that works, you could theoretically have
    all of your data (no reason it can't be arrays or other objects) piled into the
    flv with no video. That way, when the flv loads, all of the function calls
    would happen right away.

    Of course, this doesn't get around having to use a function to access the data.

    JayCharles Guest

  7. #6

    Default Re: How to write and read data to and from .flv

    sure.

    makes perfect sense.
    e-WideWeb Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139