From 8b9e490d2d61a451dc504eee39f4c6d5ff5a5e06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=96R=C3=96K=20Attila?= Date: Fri, 19 Jan 2024 00:43:03 +0100 Subject: [PATCH] avm2: Add remaining `StageVideoEvent` constants --- .../globals/flash/events/StageVideoEvent.as | 24 ++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/core/src/avm2/globals/flash/events/StageVideoEvent.as b/core/src/avm2/globals/flash/events/StageVideoEvent.as index d01aeddd6..96360607d 100644 --- a/core/src/avm2/globals/flash/events/StageVideoEvent.as +++ b/core/src/avm2/globals/flash/events/StageVideoEvent.as @@ -5,11 +5,29 @@ 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 { - 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. - + // 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; + 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.