diff --git a/test/rtmp-publisher/RtmpPlayer.mxml b/test/rtmp-publisher/RtmpPlayer.mxml
index f874394..485066a 100644
--- a/test/rtmp-publisher/RtmpPlayer.mxml
+++ b/test/rtmp-publisher/RtmpPlayer.mxml
@@ -1,70 +1,67 @@
+ xmlns:s="library://ns.adobe.com/flex/spark"
+ xmlns:mx="library://ns.adobe.com/flex/mx"
+ minWidth="500" minHeight="350" creationComplete="init()">
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
+ file = FlexGlobals.topLevelApplication.parameters.file;
+ if(file == null) {
+ Alert.show('Missing flashvars: file');
+ return;
+ }
+
+ playButton.addEventListener(MouseEvent.CLICK, playButtonListener);
+ fullscreenButton.addEventListener(MouseEvent.CLICK, fullscreenButtonListener);
+ }
+ ]]>
+
+
+
+
+
+
diff --git a/test/rtmp-publisher/RtmpPlayer.swf b/test/rtmp-publisher/RtmpPlayer.swf
index a8aa285..004c140 100644
Binary files a/test/rtmp-publisher/RtmpPlayer.swf and b/test/rtmp-publisher/RtmpPlayer.swf differ
diff --git a/test/rtmp-publisher/RtmpPublisher.mxml b/test/rtmp-publisher/RtmpPublisher.mxml
index 6da35c4..8ab7912 100644
--- a/test/rtmp-publisher/RtmpPublisher.mxml
+++ b/test/rtmp-publisher/RtmpPublisher.mxml
@@ -78,6 +78,6 @@
-
+
diff --git a/test/rtmp-publisher/RtmpPublisher.swf b/test/rtmp-publisher/RtmpPublisher.swf
index f4780fa..5ce8148 100644
Binary files a/test/rtmp-publisher/RtmpPublisher.swf and b/test/rtmp-publisher/RtmpPublisher.swf differ
diff --git a/test/rtmp-publisher/player.html b/test/rtmp-publisher/player.html
index 5a2a2d8..81da0ae 100644
--- a/test/rtmp-publisher/player.html
+++ b/test/rtmp-publisher/player.html
@@ -8,7 +8,10 @@
streamer: 'rtmp://localhost/myapp',
file:'mystream'
};
- swfobject.embedSWF("RtmpPlayer.swf", "rtmp-publisher", "500", "400", "9.0.0", null, flashVars);
+ var params = {};
+ params.allowfullscreen = "true";
+ var attributes = {};
+ swfobject.embedSWF("RtmpPlayer.swf", "rtmp-publisher", "640", "480", "9.0.0", null, flashVars, params, attributes);