Add Metadata To A Live Stream - Adobe 65029121 - Flash Media Streaming Server Developer's Manual

Developer's guide
Hide thumbs Also See for 65029121 - Flash Media Streaming Server:
Table of Contents

Advertisement

To let a user record the live video, use the
for the
"record"
howToPublish
rectory within the directory that contains the application. Alternately, you can pass
parameter to record live video and add it to the end of an existing file.
Note: All video is recorded in the FLV file format.
Follow the instructions in
method:
NetStream.publish()
ns.publish("public/myVacation", "record");

Add metadata to a live stream

About metadata
Using Flash Media Server, you can add a data message to the beginning of a live video stream. Useful data might
include the duration of the video, the date it was created, the creator's name, and so on. Any client connecting to the
server receives the metadata when the live video is played.
The metadata you add is in the form of data keyframes. Each data keyframe can contain multiple data properties,
such as a title, height, and width.
Call the
NetStream.send()
syntax for adding a data keyframe:
NetStream.send()
NetStream.send(@setDataFrame, onMetaData [,metadata ])
The
parameter is handler that handles the metadata, when it's received. You can create multiple data
onMetaData
keyframes and each data keyframe must use a unique handler (for example,
on).
The
parameter is an Object (or any subclass of Object) that contains the metadata to set in the stream.
metadata
Each metadata item is a property with a name and a value set in the
Adobe recommends that you use common names, so that the metadata you set can be easily read.
Call the
NetStream.send(@clearDataFrame, onMetaData)
a live stream.
Note: To send metadata from a server-side script, use the Server-Side ActionScript
Metadata properties for live streams
The following metadata properties and values are set by Flash Media Encoder, you do not need to add this metadata
to live streams:
Metadata property name
lastkeyframetimestamp
width
height
videodatarate
NetStream.publish()
parameter. When you pass
Capturing and streaming live audio and
method in a client-side script to add metadata to a live stream. The following is the
Data type
Description
Number
The timestamp of the last video keyframe recorded.
Number
The width of the video, in pixels.
Number
The height of the video, in pixels.
Number
The video bit rate.
method with the name of a video file and pass
, the file is saved on the server in a subdi-
"record"
"append"
video, but use the
onMetaData1
object. You can use any name, but
metadata
method in a client-side script to clear metadata from
Stream.send()
ADOBE FLASH MEDIA SERVER
Developer Guide
for the
howToPublish
parameter with the
record
,
, and so
onMetaData2
method.
44

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash media server

Table of Contents