|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AudioPathControl
AudioPathControl
provides access to changing the audio path on media streams.
Field Summary | ||
---|---|---|
static int |
AUDIO_PATH_BLUETOOTH
Audio Path is Bluetooth SCO such as a paired Bluetooth enabled device, for example, a Bluetooth car kit. |
|
static int |
AUDIO_PATH_BLUETOOTH_A2DP
Audio Path is for a paired Bluetooth enabled device such as a Bluetooth stereo headset for listening to music. |
|
static int |
AUDIO_PATH_HANDSET
Audio Path is the earpiece on the BlackBerry device. |
|
static int |
AUDIO_PATH_HANDSFREE
Audio Path is the speakerphone on the BlackBerry device. |
|
static int |
AUDIO_PATH_HEADSET
Audio Path is the BlackBerry Hands-free Headset. |
|
static int |
AUDIO_PATH_HEADSET_HANDSFREE
Audio Path is the speakerphone on the BlackBerry device and the BlackBerry Hands-free Headset. |
Method Summary | ||
---|---|---|
boolean |
canSwitchToPath(int path)
|
|
int |
getAudioPath()
Returns the current audio path. |
|
boolean |
isPathExplicitlySet()
Checks if this the audio path has been explicitly set or is using the default supplied by the AudioRouter. |
|
void |
resetAudioPath()
Resets the audio path to the default. |
|
void |
setAudioPath(int newPath)
Requests a change from the current audio path to the given audio path. |
Field Detail |
---|
static final int AUDIO_PATH_HANDSET
static final int AUDIO_PATH_HANDSFREE
static final int AUDIO_PATH_BLUETOOTH
static final int AUDIO_PATH_HEADSET
static final int AUDIO_PATH_HEADSET_HANDSFREE
static final int AUDIO_PATH_BLUETOOTH_A2DP
Method Detail |
---|
void setAudioPath(int newPath) throws MediaException, IllegalArgumentException
newPath
- The audio path to switch to. A valid audio path is one of the AUDIO_PATH_* constants.
MediaException
- If the specified audio path is not allowed for the audio source of this
AudioControlPath. For example, AUDIO_PATH_HEADSET is not allowed for any
AudioControlPath objects, regardless of their source, if the headset is not connected.
IllegalArgumentException
- if newPath is not one of the AUDIO_PATH_*
constants.- Since:
- BlackBerry API 4.2.0
int getAudioPath()
boolean canSwitchToPath(int path)
path
- the audio path.
void resetAudioPath()
boolean isPathExplicitlySet()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2010 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. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.