[Red5commits] [2125] Added to echo test example:setCredentials support for RemoteObject?FP version
TTriemstra
luke at codegent.com
Thu Jun 21 11:00:08 EDT 2007
Added to echo test example:
setCredentials support for RemoteObject?
FP version nr
Timestamp: 06/21/07 09:47:42 EST (less than one hour ago)
Change: 2125
Author: TTriemstra
Files (see diff or trac for details):
java/server/trunk/swf/DEV_Source/classes/org/red5/samples/echo/EchoTest.as
java/server/trunk/swf/DEV_Source/classes/org/red5/ui/VideoContainer.as
java/server/trunk/swf/DEV_Source/echo/echotest.mxml
Trac: http://mirror1.cvsdude.com/trac/osflash/red5/changeset/2125
Index: /java/server/trunk/swf/DEV_Source/classes/org/red5/samples/echo/EchoTest.as
===================================================================
--- /java/server/trunk/swf/DEV_Source/classes/org/red5/samples/echo/EchoTest.as (revision 2118)
+++ /java/server/trunk/swf/DEV_Source/classes/org/red5/samples/echo/EchoTest.as (revision 2125)
@@ -183,4 +183,5 @@
if ( username_txt.text.length > 0 ) {
nc.addHeader("Credentials", false, {username: username_txt.text, password: password_txt.text});
+ echoService.setCredentials( username_txt.text, password_txt.text );
}
var url: String;
Index: /java/server/trunk/swf/DEV_Source/classes/org/red5/ui/VideoContainer.as
===================================================================
--- /java/server/trunk/swf/DEV_Source/classes/org/red5/ui/VideoContainer.as (revision 1833)
+++ /java/server/trunk/swf/DEV_Source/classes/org/red5/ui/VideoContainer.as (revision 2125)
@@ -32,4 +32,5 @@
public class VideoContainer extends UIComponent
{
+
/**
* Video object instance.
@@ -44,5 +45,5 @@
{
super();
- addEventListener( Event.RESIZE, resizeHandler );
+ addEventListener( Event.RESIZE, resizeHandler );
}
@@ -81,5 +82,5 @@
}
}
-
+
}
}
Index: /java/server/trunk/swf/DEV_Source/echo/echotest.mxml
===================================================================
--- /java/server/trunk/swf/DEV_Source/echo/echotest.mxml (revision 2119)
+++ /java/server/trunk/swf/DEV_Source/echo/echotest.mxml (revision 2125)
@@ -13,4 +13,5 @@
<mx:Label text="Password:"/>
<mx:TextInput id="password_txt" displayAsPassword="true" width="100%" text=""/>
+ <mx:Button label="disconnect" click="echoService.disconnect()"/>
</mx:HBox>
</mx:FormItem>
@@ -28,11 +29,11 @@
<mx:Button id="btnConnectHTTP3" label="HTTP AMF3" labelPlacement="left" click="onConnect('http', ObjectEncoding.AMF3)" />
<mx:Button id="btnConnectRemoteObject" label="mx:RemoteObject" labelPlacement="left" click="onConnect('remoteObject', ObjectEncoding.AMF3)" />
+ <mx:Text text="FP { Capabilities.version }" paddingTop="2" fontSize="9"/>
</mx:HBox>
</mx:FormItem>
</mx:Form>
- <mx:TextArea id="textArea" width="100%" height="100%">
- </mx:TextArea>
+ <mx:TextArea id="textArea" width="100%" height="100%" editable="false"/>
<mx:RemoteObject
- id="echoService"
+ id="echoService"
destination="Red5Echo"
source="EchoService"
Note:
Diffs are chopped if more than 25k.
This is to get past the limit on the mailing list.
More information about the Red5commits
mailing list