       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);

			_ns = new NetStream(_nc);
			_ns.client = this;
			_video = new Video();
			stage.addEventListener(StageVideoAvailabilityEvent.STAGE_VIDEO_AVAILABILITY, _onStageVideoAvailability);
      setupCallbacks();
		}

	import flash.net.NetStream;

	public class Player extends MovieClip {
		private var _video:Video;
		private var _stageVideo:StageVideo;
		private var _ns:NetStream;
