30 line video chat code for android
Hi all,
I am trying to build Video Chat application for android in flex 4.5 using LiveCycle Collaboration Services. I have created new flex mobile application and used following code in mxml file:
<?xml version="1.0" encoding="utf-8"?>
<s:view xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:cs="http://ns.adobe.com/rtc"
title="
HomeView><fx:Script>
[Bindable] private var roomURL:String = "https://collaboration.adobelivecycle.com/sample/myfirstroom";
protected function connect():void {
auth.userName = userName.text;
currentState = "default";
session.login();
}
</fx:Script>
<s:states>
<s:State name="default"/>
<s:State name="logon"/>
</s:states>
<fx:Declarations>
<cs:AdobeHSAuthenticator id="auth"/>
</fx:Declarations>
<s:TextInput id="userName" includeIn="logon" top="200" horizontalCenter="0"/>
<s:Button label="Connect" click="connect()" includeIn="logon" top="250" horizontalCenter="0" height="50" width="150"/>
<cs:ConnectSessionContainer id="session" roomURL="{roomURL}" authenticator="{auth}" autoLogin="false" width="100%" height="100%" includeIn="default">
<cs:WebCamera top="10" left="10" bottom="10" right="10"/>
</cs:ConnectSessionContainer>
</s:view>
I have also added lccs.swf and source folder. I was not able to compile the code due to error:'ConnectSessionContainer' declaration must be contained within the <Declarations> tag, since it is not assignable to the default property's element type 'mx.core.IVisualElement'. Can anybody please suggest why I am getting this error.
Actually there are 2 files get generated when opening the adobe mobile project.
for example if the project name is sample
1, sample.mxml
2.samplehomeview.mxml.
i have placed the code in view. i am getting this error . Can any one plese help me. how i can do this,?????????????
