I should have also said that I've seen the example with Flash CS3 but
I'm using Flex Builder 3 and can't figure out how to modify it to
make it work.
In the program I'm using to write the metadata, I have:
private function sendMetadata(oData:Object):void {
// this function called multiple times
nc.call("sendDataEvent",null,oData);
}
In the main.asc I have:
Client.prototype.sendDataEvent = function(oData) {
this.newStream = Stream.get("myStream");
this.newStream.send("onDataEvent",oData);
trace('here'); // shows in log
};
In the player application I have:
public function onDataEvent(event:MetadataEvent):void {
trace('here'); // hit once with the starting metadata
}
<mx:VideoDisplay width="192" height="144" id="pubVideo" x="10" y="10"
metadataReceived="onDataEvent(event)"
/>
Thanks for any advice or direction,
sr
--- In [email protected], "stephendricketts" <[EMAIL PROTECTED]>
wrote:
>
> Does anyone know where I can find an example of writing custom
metadata
> so it's linked to the timeline of a video?
>
> Much appreciated,
>
> sr
>