Expand my Community achievements bar.

Packager for iPhone and AudioSubscriber

Avatar

Level 2

Hi,

I wrote code which connects to session and subscribe the sound:

var auth:AdobeHSAuthenticator = new AdobeHSAuthenticator();
auth.userName="xxx";

var session:ConnectSession = new ConnectSession();
session.roomURL="https://connectnow.acrobat.com/xxx/room/";
session.authenticator=auth;

session.login();

var asub:AudioSubscriber = new AudioSubscriber();
asub.connectSession = session;
asub.subscribe();

When I run it on the computer with AIR its work fine, But when I run it on the iPhone I can't hear the sound.

Why?

Thanks,

Eyal.

12 Replies

Avatar

Level 4

Not sure but do you even get access to the mike with the packager? From

the iPhone air docs:

Which Flash Runtime APIs are available when developing for the iPhone?

As a general rule, Flash Player 10 and Adobe AIR 2.0 APIs are available when

developing content for the iPhone. However, there are a number of

exceptions, including, but not limited to:

- Embedded HTML content (via webkit in Adobe AIR).

- RTMPE

- Dynamically loading SWFs that contain ActionScript

- PixelBender Filters

- Microphone Access

- Video Camera Access

In addition, APIs which do not apply to iPhone (such as accessing dock

icons) are not available.

Sent from my iPhone

Avatar

Level 2

Hi esteimle,

I want to hear the sound, not record from the Microphone...

And on the iPhone air docs don't say anything about it.

Eyal.

Avatar

Level 4

Oops sorry I was just waking up then.

Avatar

Level 4

How is your incoming audio stream encoded? I stopped working on the iphone

sdk when Apple refused to allow it, but on the Android side I had trouble

with the speex codec not being supported. Maybe the subscriber doesn't know

how to decode the incoming audio stream? Just a thought.

-Eric

Avatar

Level 2

The audio stream encoded with Nellymoser.

Why Apple refused to allow it? What they wrote to you?

Avatar

Level 4

They wrote to the whole world, no applications developed with the Adobe

packager are allowed in the app store. From an article:

Adobe is no longer investing in iPhone-based Flash development, Adobe

principal product manager Mike Chambers wrote in a Tuesday blog

post<http://www.mikechambers.com/blog/2010/04/20/on-adobe-flash-cs5-and-iphone-applications/>

.

The move comes after Apple put out new draft of its iPhone developer program

license, which banned private APIs and required apps to be written in

Objective-C, C, C++, or JavaScript as executed by the iPhone OS WebKit

engine.

-Eric

Avatar

Level 2

It really sucks,

Adobe has done something amazing, and so fun to program with as3.

Avatar

Level 2

Now, that Apple is accepting the iPhone packager, I tried the same code and I still can not hear some sound.

I can see my shared webcam (amazing man!) but I can not hear my shared mic.

Adobe Connect that uses iPhone packager can do that.

Does anyone know what could be?

My code:

Thanks.

Avatar

Former Community Member

Hi,

In LCCS, you can't hear your own audio but you can hear that of others

if anyone is sharing is audio. Open two instances and share your audio

and you will be able to hear the audio in the other.

Hope this helps

Thanks

Hironmay Basu

Avatar

Level 2

Yes, sure, I'm doing like you said.

But the problem is: Running in the browser, it works fine, but when I try to run on iPhone, I can not hear anything.

PS: With Adobe Connect Mobile we can hear.

Thanks.

Avatar

Level 2

Just to report: I found the problem.

The problem was in the AudioPublisher. To publish audio to iPhone, you must set the coded as NELLYMOSER:

That's it.

Avatar

Former Community Member

Interesting. Even i wasn't aware speex doesnt work with iphone. It

should ideally work since speex works with player 10 and 10.1.

Thanks for sharing it.

Regards

Hironmay Basu