Hi All,
Sorry for the newbie question - I'm new to Flex, Android, and LCCS but am really impressed with what I've seen so far. I have searched the forums to see if there was a similar question but as unable to find it.
I'm trying to get the LCCS WebCam working on the Android similar to the post on Christopher Coenraets blog:
http://coenraets.org/blog/2010/07/video-chat-for-android-in-30-lines-of-code/
All I want to do right now is authenticate and then have a ConnectSessionContainer. I can get this to work inside of a WindowedApplication for Air for Desktop but not for Android.
For reference, I'm using Flash Builder Burrito and the Flash Player 9 SWC (which, as a side note, only works when I've also loaded in the path to src).
Right now, I have the main .mxml of my application (asdf_mobile.mxml") set with firstView = "asdf_mobileHome.mxml" in the s:mobileApplication tag. I then put the authenticator in the fx:Declarations and the <rtc:ConnectSessionContainer> after that (outside of the declarations).
Here are the two files.
<?xml version="1.0" encoding="utf-8"?>
<s:MobileApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:rtc="http://ns.adobe.com/rtc"
xmlns:mx="library://ns.adobe.com/flex/mx"
firstView = "views.asdf_mobileHome">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
</s:MobileApplication>
<?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:rtc="http://ns.adobe.com/rtc">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
<rtc:AdobeHSAuthenticator id="auth" userName="myusername" password="mypassword"/>
</fx:Declarations>
<rtc:ConnectSessionContainer authenticator="{auth}" roomURL="https://collaboration.adobelivecycle.com/myusername/myfirstroom" width="100%" height="100%">
</rtc:ConnectSessionContainer>
</s:View>
Then in the asdf_mobile-app.xml, I've added in the camera:
<manifest>
<!-- See the Adobe AIR documentation for more information about setting Google Android permissions -->
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.CAMERA"/>
</manifest>
</manifest>
Here are the errors I'm getting
Description Resource Path Location Type
1017: The definition of base class Canvas was not found. asdf_mobile line 106 Flex Problem
Description Resource Path Location Type
1020: Method marked override must override another method. asdf_mobile line 133 Flex Problem
This could be something really simple - like I don't understand where this ConnectSessionContainer is and is not allowed to go, or what it needs to be wrapped inside of. I have created a few really basic mobile Android apps using getCamera(), and they've worked fine, but I can't figure out how to get the LCCS components to work.
Thanks in advance for any help.
Amit