Check whether StageVideo is available

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.

  1. 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
        }
    }
    
  2. If StageVideo is not available, check flash.media.StageVideoAvailabilityReason.

On this page

Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now