13.08.2012 Views

ACTIONSCRIPT 3 Developer’s Guide en

ACTIONSCRIPT 3 Developer’s Guide en

ACTIONSCRIPT 3 Developer’s Guide en

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>ACTIONSCRIPT</strong> 3.0 DEVELOPER’S GUIDE<br />

Working with video<br />

moovposition=731965<br />

height=352<br />

avclevel=21<br />

videocodecid=avc1<br />

duration=2.36<br />

width=704<br />

videoframerate=25<br />

avcprofile=88<br />

trackinfo=[object Object]<br />

Using the information object<br />

The following table shows the possible values for video metadata that are passed to the onMetaData() callback<br />

function in the Object that they receive:<br />

Parameter Description<br />

aacaot AAC audio object type; 0, 1, or 2 are supported.<br />

avclevel AVC IDC level number such as 10, 11, 20, 21, and so on.<br />

avcprofile AVC profile number such as 55, 77, 100, and so on.<br />

audiocodecid A string that indicates the audio codec (code/decode technique) that was used - for example “.Mp3” or “mp4a”<br />

audiodatarate A number that indicates the rate at which audio was <strong>en</strong>coded, in kilobytes per second.<br />

audiodelay A number that indicates what time in the FLV file "time 0" of the original FLV file exists. The video cont<strong>en</strong>t<br />

needs to be delayed by a small amount to properly synchronize the audio.<br />

canSeekToEnd A Boolean value that is true if the FLV file is <strong>en</strong>coded with a keyframe on the last frame, which allows seeking<br />

to the <strong>en</strong>d of a progressive -download video file. It is false if the FLV file is not <strong>en</strong>coded with a keyframe on<br />

the last frame.<br />

cuePoints An array of objects, one for each cue point embedded in the FLV file. Value is undefined if the FLV file does not<br />

contain any cue points. Each object has the following properties:<br />

type: a string that specifies the type of cue point as either "navigation" or "ev<strong>en</strong>t".<br />

name: a string that is the name of the cue point.<br />

time: a number that is the time of the cue point in seconds with a precision of three decimal places<br />

(milliseconds).<br />

parameters: an optional object that has name-value pairs that are designated by the user wh<strong>en</strong> creating<br />

the cue points.<br />

duration A number that specifies the duration of the video file, in seconds.<br />

framerate A number that is the frame rate of the FLV file.<br />

height A number that is the height of the FLV file, in pixels.<br />

seekpoints An array that lists the available keyframes as timestamps in milliseconds. Optional.<br />

tags An array of key-value pairs that repres<strong>en</strong>t the information in the “ilst” atom, which is the equival<strong>en</strong>t of ID3 tags<br />

for MP4 files. iTunes uses these tags. Can be used to display artwork, if available.<br />

trackinfo Object that provides information on all the tracks in the MP4 file, including their sample description ID.<br />

videocodecid A string that is the codec version that was used to <strong>en</strong>code the video. - for example, “avc1” or “VP6F”<br />

Last updated 6/6/2012<br />

496

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!