lundi 3 avril 2017

Rotating a camera feed in Actionscript 3

I am trying to rotate a live camera feed 90 degrees so it's the correct orientation. Here is what I have so far but it just won't do anything with the rotation.

      public function setupCamera(param1:int, param2:int) : void
      {
         camera = Camera.getCamera("1");
         camera.addEventListener(StatusEvent.STATUS,camStatusHandler);
         camera.setMode(param1,param2,stage.frameRate);
         video = new Video(param1,param2);
         video.scaleX = -1;
                     video.rotation = 90;
         video.x = video_placement.x + video_placement.width;
         video.y = video_placement.y;
         video.attachCamera(camera);
         addChildAt(video,0);
      }

Aucun commentaire:

Enregistrer un commentaire