       ExternalInterface.addCallback("playerPlay", playerPlay);
     }
 
-    private function playerPlay():void {
-      _ns.play(_videoURL);
+    private function playerPlay(url:String):void {
+      _ns.play(url);
     }
 
 		private function _enableStageVideo():void {
 			if (_stageVideo == null) {
 				_stageVideo = stage.stageVideos[0];
-				_stageVideo.viewPort = new Rectangle(0, 0, 320, 240);
+				_stageVideo.viewPort = new Rectangle(0, 0, stage.stageWidth, stage.stageHeight);
 			}
 			if (_video.parent) {
 				removeChild(_video);

package
{
  import flash.external.ExternalInterface;
	import flash.display.MovieClip;
	import flash.geom.Rectangle;
	import flash.events.StageVideoAvailabilityEvent;
	import flash.media.StageVideoAvailability;

			_ns = new NetStream(_nc);
			_ns.client = this;
			_video = new Video();
      stage.scaleMode = StageScaleMode.NO_SCALE;
      stage.align = StageAlign.TOP_LEFT;
      stage.fullScreenSourceRect = new Rectangle(0, 0, stage.stageWidth, stage.stageHeight);
      stage.displayState = StageDisplayState.NORMAL;
			stage.addEventListener(StageVideoAvailabilityEvent.STAGE_VIDEO_AVAILABILITY, _onStageVideoAvailability);
      setupCallbacks();
		}
