Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Webcam and Whiteboard not working with Adobe AIR with Adobe Flash Builder

Avatar

Level 2

Hi,

I am trying to build a  simple chat service using Adobe Flash Builder target for desktop AIR( my final objective is to port it to android). My adobe AIR version is 2.5.0 and below is my source code:

<?xml version="1.0" encoding="utf-8"?>

<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"

   xmlns:s="library://ns.adobe.com/flex/spark"

   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:rtc="http://ns.adobe.com/rtc">

<fx:Declarations>

<!-- Place non-visual elements (e.g., services, value objects) here -->

<rtc:AdobeHSAuthenticator id="auth" userName="Yy" protocol="rtmfp"/>

</fx:Declarations>

<rtc:ConnectSessionContainer id="session" authenticator="{auth}" roomURL="https://collaboration.adobelivecycle.com/yytan1987/myfirstroom" width="100%" height="100%">

<mx:HBox width="100%" height="100%">

<mx:VBox width="25%" height="100%">

<rtc:WebCamera width="100%" height="50%"/>

<rtc:SimpleChat width="100%" height="50%"/>

</mx:VBox>

<rtc:SharedWhiteBoard width="75%" height="100%"/>

</mx:HBox>

</rtc:ConnectSessionContainer>

</s:WindowedApplication>

Basically when i debug it with AIR, the chat is working properly but the webcam and whiteboard just don't work....I really don't know what's wrong with it already...Appreciate it if anyone can help,thanks!!

Regards

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

My take is , is your autopromote tuned on for the room. I mean whats

your user role when an user enters the room(who is not host), is it 10

or 50. If its 10 i.e. viewer , then he cant use his own cam etc. You

need to take a look at the logs when an user enters and if its 10 and

you want to give him these permissions, turn autopromote on from the

devconsole for the room to make his role 50 i.e. publisher.

I just now downloaded 2.5.1 AIR and created a new project with your

source and I am able to use everything.

Thanks

Hironmay Basu

View solution in original post

0 Replies

Avatar

Correct answer by
Level 10

Hi,

My take is , is your autopromote tuned on for the room. I mean whats

your user role when an user enters the room(who is not host), is it 10

or 50. If its 10 i.e. viewer , then he cant use his own cam etc. You

need to take a look at the logs when an user enters and if its 10 and

you want to give him these permissions, turn autopromote on from the

devconsole for the room to make his role 50 i.e. publisher.

I just now downloaded 2.5.1 AIR and created a new project with your

source and I am able to use everything.

Thanks

Hironmay Basu

Avatar

Level 2

Hi,

Thanks you, the problem is fixed, appreciate it.

Regards,

YeeYong