With flash player 11 came 3D GPU acceleration but not every video card can do the job and when there is unsupported video card acceleration is switched to software. Can I check if hardware acceleration is available in order to customize my application.
Share
You must obtain a
Context3Dto view it’sdriverInfo:For me, this indicates:
Easiest to test for software rendering, hardware accelerated GPU would be indicated by DirectX or OpenGL.
This could be implemented as such:
For GPU accelerated StageVideo, you listen for
StageVideoAvailabilityEventto confirmStageVideoAvailability.AVAILABLE.This could be implemented as:
Once you have a StageVideo, render state is indicated by
StageVideoEvent.RENDER_STATE.Render state is derived by
StageVideoEvent.statusand includes:VideoStatus.ACCELERATED– Decoding and presentation both occur in hardware. (Best performance.)VideoStatus.SOFTWARE– Presentation in hardware, decoding in software. (Acceptable performance.)VideoStatus.UNAVAILABLE– No GPU resources are available to handle video, and nothing is displayed. Fall back to a Video object.