• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

AIR Mobile app using ringtone volume, not media volume

Community Beginner ,
Oct 06, 2014 Oct 06, 2014

Copy link to clipboard

Copied

So I've got an app written in AS3 using AIR Mobile. The issue is that the volume of the app seems to be tied to the ringtone volume on my phone, not the media volume. How do I tie my app's volume to media instead of ringtone? If it makes a difference, I'm developing in FlashDevelop. Thanks.

TOPICS
Development

Views

337

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Oct 06, 2014 Oct 06, 2014

Look into this:


SoundMixer.audioPlaybackMode = AudioPlaybackMode.AMBIENT;


The Play Back mode controls what volume is followed. The default should already be doing what I think you want to do.


Look here for other settings:


AudioPlaybackMode - Adobe ActionScript® 3 (AS3 ) API Reference


'media' might be the one you want.

Votes

Translate

Translate
LEGEND ,
Oct 06, 2014 Oct 06, 2014

Copy link to clipboard

Copied

Look into this:


SoundMixer.audioPlaybackMode = AudioPlaybackMode.AMBIENT;


The Play Back mode controls what volume is followed. The default should already be doing what I think you want to do.


Look here for other settings:


AudioPlaybackMode - Adobe ActionScript® 3 (AS3 ) API Reference


'media' might be the one you want.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 06, 2014 Oct 06, 2014

Copy link to clipboard

Copied

LATEST

Yep, setting it to MEDIA got it to work. Thanks. Not sure why it didn't seem to be the default though.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines