VideoX

From Noisebridge
Jump to: navigation, search

A ßêãµ project

package  
{
	import flash.display.Sprite;
	import flash.media.Video;
	import flash.media.Camera;
	
	public class VideoX extends Sprite
	{
		public var video:Video;
		
		private var cam:Camera;

		public function VideoX()
		{
			cam = Camera.getCamera();
			cam.setMode(1280, 720, 30);
			
			trace(cam.width, cam.height, cam.fps);
			
			video = new Video();
			video.width = 1280;
			video.height = 720;
			video.attachCamera(cam);
			addChild(video);			
		}

	}
	
}
Personal tools