| Package | vegas.net |
| Interface | public interface INetStreamClient |
| Implementors | NetStreamClient |
| Method | Defined By | ||
|---|---|---|---|
onCuePoint(info:Object):void
Invoked when an embedded cue point is reached while playing an FLV file. | INetStreamClient | ||
onImageData(imageData:Object):void
Dispatched when Flash Player receives image data as a byte array embedded in a media file that is playing. | INetStreamClient | ||
onMetaData(info:Object):void
Dispatched when the application receives descriptive information embedded in the video being played. | INetStreamClient | ||
onPlayStatus(info:Object):void
Dispatched when the application receives descriptive information embedded in the video being played. | INetStreamClient | ||
onTextData(textData:Object):void
The onTextData event sends text data through an AMF0 data channel. | INetStreamClient | ||
onXMPData(info:Object):void
The onXMPData() callback function receives information specific to Adobe Extensible Metadata Platform (XMP)
that is embedded in the Adobe F4V or FLV video file. | INetStreamClient | ||
| onCuePoint | () | method |
public function onCuePoint(info:Object):voidInvoked when an embedded cue point is reached while playing an FLV file. This method can be overrides easily.
Parameters
info:Object |
| onImageData | () | method |
public function onImageData(imageData:Object):voidDispatched when Flash Player receives image data as a byte array embedded in a media file that is playing. The image data can produce either JPEG, PNG or GIF content. Use the flash.display.Loader.loadBytes() method to load the byte array into a display object.
Example :
public function onImageData(imageData:Object):void
{
// display track number
trace(imageData.trackid);
var loader:Loader = new Loader();
//imageData.data is a ByteArray object
loader.loadBytes(imageData.data);
addChild(loader);
}
Parameters
imageData:Object |
| onMetaData | () | method |
public function onMetaData(info:Object):voidDispatched when the application receives descriptive information embedded in the video being played. For information about video file formats supported by Flash Media Server, see the Flash Media Server documentation.
Parameters
info:Object |
| onPlayStatus | () | method |
public function onPlayStatus(info:Object):voidDispatched when the application receives descriptive information embedded in the video being played. For information about video file formats supported by Flash Media Server, see the Flash Media Server documentation.
Parameters
info:Object |
See also
| onTextData | () | method |
public function onTextData(textData:Object):voidThe onTextData event sends text data through an AMF0 data channel. This callback method is invoked when Flash Player receives text data embedded in a media file that is playing.
The text data is in UTF-8 format and can contain information about formatting based on the 3GP timed text specification.
This specification defines a standardized subtitle format. Define an onTextData() callback method to process this information, in the same way that you would define callback methods for onCuePoint or onMetaData. In the following example, the onTextData() method displays the track ID number and corresponding track text.
This special event is intended for use with Flash Media Server; for more information, see the class description. You cannot use the addEventListener() method, or any other EventDispatcher methods, to listen for, or process, this event. Rather, you must define a single callback function and attach it directly to the textData object.
This event is triggered after a call to the NetStream.play() method, but before the video playhead has advanced.
The onTextData event object contains one property for each piece of text data.
Example :
public function onTextData(textData:Object):void
{
// display the track number
trace( textData.trackid ) ;
// displays the text, which can be a null string, indicating old text that should be erased
trace( textData.text ) ;
}
Parameters
textData:Object |
| onXMPData | () | method |
public function onXMPData(info:Object):voidThe onXMPData() callback function receives information specific to Adobe Extensible Metadata Platform (XMP) that is embedded in the Adobe F4V or FLV video file.
The XMP metadata includes cue points as well as other video metadata. XMP metadata support is introduced with Flash Player 10 and Adobe AIR 1.5 and supported by subsequent versions of Flash Player and AIR.
Parameters
info:Object |