| 套件 | 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 x 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 x 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 x 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, 03:47 PM Z
隱藏繼承公用屬性
顯示繼承公用屬性