Check the property flash.system.Capabilities.hasEbeddedVideo to ensure that the user can view this content before initiating this download. : System.Capabilities : Development Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Development » System.Capabilities »

 

Check the property flash.system.Capabilities.hasEbeddedVideo to ensure that the user can view this content before initiating this download.


 

package{
  import flash.display.Sprite;
  import flash.system.Capabilities;
  public class Main extends Sprite{
    public function Main(){

        if(flash.system.Capabilities.hasStreamingVideo) {
          trace("Code to set up a video stream and start streaming a specific video");
        }
        else if(flash.system.Capabilities.hasEmbeddedVideo) {
          trace("Code to load an external .swf containing an embedded video");
        }
        else {
          trace("Alternate content without any video");
        }

    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Development
» System.Capabilities