| 包 | fl.video |
| 类 | public final class VideoScaleMode |
| 继承 | VideoScaleMode Object |
| 语言版本: | ActionScript 3.0 |
| 产品版本: | Flash CS3 |
| 运行时版本: | Flash Player 9.0.28.0, AIR 1.0 |
FLVPlayback.scaleMode 和 VideoPlayer.scaleMode 属性的常量值。
相关 API 元素
| 常量 | 由以下参数定义 | ||
|---|---|---|---|
| EXACT_FIT : String = "exactFit" [静态]
指定以 registrationHeight 或 height 及 registrationWidth 或 width 属性所指定的高度和宽度显示视频。 | VideoScaleMode | ||
| MAINTAIN_ASPECT_RATIO : String = "maintainAspectRatio" [静态]
指定将视频限制在由 registrationX、registrationY、registrationWidth 和 registrationHeight 属性所确定的矩形中,但保持其原始高宽比。 | VideoScaleMode | ||
| NO_SCALE : String = "noScale" [静态]
指定完全以源视频的高度和宽度显示视频。 | VideoScaleMode | ||
EXACT_FIT | 常量 |
public static const EXACT_FIT:String = "exactFit"| 语言版本: | ActionScript 3.0 |
| 产品版本: | Flash CS3 |
| 运行时版本: | Flash Player 9.0.28.0, AIR 1.0 |
指定以 registrationHeight 或 height 及 registrationWidth 或 width 属性所指定的高度和宽度显示视频。
例如,若 registrationWidth = width = 100,registrationHeight = height = 100,registrationX = 200 且 registrationY = 200,并且加载一个 FLV 文件,其 width 为 648,height 为 480(高宽比近似为 4:3),并且 align = VideoAlign.CENTER,scaleMode = EXACT_FIT,将会得到 width = 100、height = 100、x = 200 和 y = 200。
MAINTAIN_ASPECT_RATIO | 常量 |
public static const MAINTAIN_ASPECT_RATIO:String = "maintainAspectRatio"| 语言版本: | ActionScript 3.0 |
| 产品版本: | Flash CS3 |
| 运行时版本: | Flash Player 9.0.28.0, AIR 1.0 |
指定将视频限制在由 registrationX、registrationY、registrationWidth 和 registrationHeight 属性所确定的矩形中,但保持其原始高宽比。
例如,若 registrationWidth = 100,registrationHeight = 100,registrationX = 200 且 registrationY = 200,并且加载一个 FLV 文件,其 width 为 648,height 为 480(高宽比近似为 4:3),并且 align = VideoAlign.CENTER,scaleMode = MAINTAIN_ASPECT_RATIO,将会得到 width = 100、height = (100 * 480 / 648) = 74、x = 10 和 y = (10 + ((100 - 74) / 2)) = 23。
NO_SCALE | 常量 |
public static const NO_SCALE:String = "noScale"| 语言版本: | ActionScript 3.0 |
| 产品版本: | Flash CS3 |
| 运行时版本: | Flash Player 9.0.28.0, AIR 1.0 |
指定完全以源视频的高度和宽度显示视频。
例如,若 registrationWidth = 100,registrationHeight = 100,registrationX = 200 且 registrationY = 200,并且加载一个 FLV 文件,其 width 为 648,height 为 480(高宽比近似为 4:3),并且 align = VideoAlign.CENTER,scaleMode = NO_SCALE,将会得到 width = 648、height = 480、x = (200 + ((100 - 648) / 2)) = -74 和 y = (200 + ((100 - 480) / 2)) = 10。
Tue Jun 12 2018, 11:04 AM Z
隐藏继承的公共属性
显示继承的公共属性