avm2: Add remaining `StageVideoEvent` constants

This commit is contained in:
TÖRÖK Attila 2024-01-19 00:43:03 +01:00
parent 6f5cf27d55
commit 8b9e490d2d
1 changed files with 21 additions and 3 deletions

View File

@ -5,10 +5,28 @@
package flash.events
{
// According to the AS3 docs, this class is only available starting with Flash Player 10.2,
// and some members of it are AIR-only. This is yet another case of misdocumentation.
[API("667")]
public class StageVideoEvent extends Event
{
// The StageVideoEvent.RENDER_STATE constant defines the value of the type property of a renderState event object.
public static const RENDER_STATE:String = "renderState";
// Indicates that hardware is decoding and displaying the video.
// Deprecated since Flash Player 10.2, AIR 3: Please Use flash.media.VideoStatus.ACCELERATED
public static const RENDER_STATUS_ACCELERATED : String = "accelerated";
// Indicates that software is decoding and displaying the video.
// Deprecated since Flash Player 10.2, AIR 3: Please Use flash.media.VideoStatus.SOFTWARE
public static const RENDER_STATUS_SOFTWARE : String = "software";
// Indicates that displaying the video using the StageVideo object is not possible.
// Deprecated since Flash Player 10.2, AIR 3: Please Use flash.media.VideoStatus.UNAVAILABLE
public static const RENDER_STATUS_UNAVAILABLE : String = "unavailable";
public const codecInfo:String;
public static const RENDER_STATE:String = "renderState"; // The StageVideoEvent.RENDER_STATE constant defines the value of the type property of a renderState event object.
private var _status: String; // The status of the StageVideo object.
private var _colorSpace: String; // The color space used by the video being displayed in the StageVideo object.