If StageVideo is unavailable, and your application tries to use StageVideo, the TVSDK does not issue an error. Your application can determine whether StageVideo is available by listening for the StageVideoAvailabilityEvent.
From Flash 15 and later, when hardware StageVideo
is not available, it will fall back to software StageVideo
. For Flash 14 and earlier, you can determine whether StageVideo
is available. If StageVideo
is not available, you can use StageVideoAvailabilityEvent
to understand why it is unavailable.
Listen for StageVideoAvailabilityEvent
to determine whether StageVideo
is available.
For example:
private function onStageAvailable(event:StageVideoAvailabilityEvent):void {
if (event.availability != StageVideoAvailability.AVAILABLE) {
// process the error scenario here
}
}
If StageVideo
is not available, check flash.media.StageVideoAvailabilityReason
.