Skip to main content
Participant
October 10, 2011
Question

30 line video chat code for android

  • October 10, 2011
  • 1 reply
  • 1175 views

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,?????????????

This topic has been closed for replies.

1 reply

Participant
March 6, 2012

I am in the same boat.

I am using Flash Builder 4.6 with the lastest LCCS SDK.

Even worst, I am unable to compile any of the sample codes that ship with LCCS.

Can we have some help and/or clarification on the issue preventing us from running that sample code?

Here is my code:

<?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" title="HomeView" xmlns:rtc="http://ns.adobe.com/rtc" currentState="logon">

    <fx:Script>

        [Bindable] private var roomURL:String = "https://collaboration.adobelivecycle.com/XXXXXXXXXX";

        protected function connect():void {

            auth.userName = userName.text;

            auth.password = password.text;

            currentState = "default";

            session.login();

        }

    </fx:Script>

    <fx:Declarations>

        <rtc:AdobeHSAuthenticator id="auth"/>

    </fx:Declarations>

    <s:states>

        <s:State name="default"/>

        <s:State name="logon"/>

    </s:states>

    <s:TextInput id="userName" includeIn="logon" top="200" horizontalCenter="0"/>

    <s:TextInput id="password" includeIn="logon" top="200" horizontalCenter="0"/>

    <s:Button label="Connect" click="connect()" includeIn="logon" top="250" horizontalCenter="0" height="50" width="150"/>

    <rtc:ConnectSessionContainer id="session" roomURL="{roomURL}" authenticator="{auth}" autoLogin="false"><!--  width="100%" height="100%" includeIn="default" -->

        <rtc:WebCamera top="10" left="10" bottom="10" right="10"/>

    </rtc:ConnectSessionContainer>

</s:View>

Participant
March 8, 2012

Nobody?

Come on guys, some help please.