net.rim.device.api.media.control
Interface AudioPathControl

All Superinterfaces:
Control

public interface AudioPathControl
extends Control

AudioPathControl provides access to changing the audio path on media streams.

Since:
JDE 4.2.0

Field Summary
static int AUDIO_PATH_BLUETOOTH
          Audio Path is the bluetooth.
static int AUDIO_PATH_HANDSET
          Audio Path is the handset.
static int AUDIO_PATH_HANDSFREE
          Audio Path is handsfree.
static int AUDIO_PATH_HEADSET
          Audio Path is the headset.
static int AUDIO_PATH_HEADSET_HANDSFREE
          Audio Path is the headset handsfree.
 
Method Summary
 int getAudioPath()
          Returns the current audio path.
 void setAudioPath(int newPath)
          Requests a change of the current audio path.
 

Field Detail

AUDIO_PATH_HANDSET

public static final int AUDIO_PATH_HANDSET
Audio Path is the handset.
Since:
JDE 4.2.0

AUDIO_PATH_HANDSFREE

public static final int AUDIO_PATH_HANDSFREE
Audio Path is handsfree.
Since:
JDE 4.2.0

AUDIO_PATH_BLUETOOTH

public static final int AUDIO_PATH_BLUETOOTH
Audio Path is the bluetooth.
Since:
JDE 4.2.0

AUDIO_PATH_HEADSET

public static final int AUDIO_PATH_HEADSET
Audio Path is the headset.
Since:
JDE 4.2.0

AUDIO_PATH_HEADSET_HANDSFREE

public static final int AUDIO_PATH_HEADSET_HANDSFREE
Audio Path is the headset handsfree.
Since:
JDE 4.2.0
Method Detail

setAudioPath

public void setAudioPath(int newPath)
                  throws MediaException
Requests a change of the current audio path. The audio path may not be changed if the media stream does not have priority in changing the audio path. (eg. if a phone call is active)
Throws:
MediaException - if the change is not allowed.
Since:
JDE 4.2.0

getAudioPath

public int getAudioPath()
Returns the current audio path.
Returns:
an enumerated integer representing the current audio path one of AUDIO_PATH_HANDSET, AUDIO_PATH_HANDSFREE, AUDIO_PATH_BLUETOOTH, AUDIO_PATH_HEADSET, AUDIO_PATH_HEADSET_HANDSFREE.
Since:
JDE 4.2.0


Copyright 1999-2006 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.