Capable of receiving streaming video: use the flash.system.Capabilities.hasStreamingVideo property. : system.Capabilities « Development « Flash / Flex / ActionScript
Capable of receiving streaming video: use the flash.system.Capabilities.hasStreamingVideo property.
package{
import flash.display.Sprite;
import flash.system.Capabilities;
publicclass 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");
}
elseif(flash.system.Capabilities.hasEmbeddedVideo) {
trace("Code to load an external .swf containing an embedded video");
}
else {
trace(Alternate content without any video);
}
}
}
}