Expand my Community achievements bar.

SOLVED

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

Avatar

Former Community Member

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
Former Community Member

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

2 Replies

Avatar

Correct answer by
Former Community Member

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

Former Community Member

Hi,

Thanks you, the problem is fixed, appreciate it.

Regards,

YeeYong

The following has evaluated to null or missing: ==> liqladmin("SELECT id, value FROM metrics WHERE id = 'net_accepted_solutions' and user.id = '${acceptedAnswer.author.id}'").data.items [in template "analytics-container" at line 83, column 41] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign answerAuthorNetSolutions = li... [in template "analytics-container" at line 83, column 5] ----