quinta-feira, 29 de junho de 2017

Categoria » Video

Video Display

<?xml version=”1.0″ encoding=”utf-8″?>
<s:Application xmlns:fx=”http://ns.adobe.com/mxml/2009
                          xmlns:s=”library://ns.adobe.com/flex/spark”
                          xmlns:mx=”library://ns.adobe.com/flex/mx”
                          minWidth=”955″ minHeight=”600″
creationComplete=”application1_creationCompleteHandler(event)”>
       <fx:Script>
               <![CDATA[
                       import mx.events.FlexEvent;
                       import mx.utils.ObjectUtil;

                       protected function application1_creationCompleteHandler(event:FlexEvent):void{
                               // TODO Auto-generated method stub
                               var video:Video = new Video();
                               var camera:Camera = Camera.getCamera();
                               //camera.setQuality(0,85);  // qualidade 85% JPEG não importa banda máxima
                               //camera.setQuality(60000, 0);  // banda máxima 60kb/s com qualidade automática
                               video.attachCamera(camera);
                               TADados.text = ObjectUtil.toString(camera);
                               VD.addChild(video);
                       }
               ]]>
       </fx:Script>
       <fx:Declarations>
               <!– Place non-visual elements (e.g., services, value objects) here –>
       </fx:Declarations>
       <s:VideoDisplay id=”VD” >
       </s:VideoDisplay>
       <s:TextArea id=”TADados”>
       </s:TextArea>
</s:Application>


Faça seu comentário