public class MediastreamerAndroidContext
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
enableEarpiece() |
static void |
enableFilterFromName(java.lang.String name,
boolean enable)
Deprecated.
|
static void |
enableSpeaker() |
static boolean |
filterFromNameEnabled(java.lang.String name)
Deprecated.
|
static android.media.AudioDeviceInfo[] |
getAudioDevices(java.lang.String device_dir) |
static android.content.Context |
getContext() |
static int |
getDeviceFavoriteBufferSize() |
static int |
getDeviceFavoriteSampleRate() |
static java.lang.String |
getNativeLibrariesDirectory() |
static boolean |
getSpeakerphoneAlwaysOn(Factory factory) |
static void |
hackVolume() |
static void |
setContext(java.lang.Object c) |
static void |
startBluetooth() |
static void |
stopBluetooth() |
public static android.content.Context getContext()
public static int getDeviceFavoriteSampleRate()
public static int getDeviceFavoriteBufferSize()
public static java.lang.String getNativeLibrariesDirectory()
public static void setContext(java.lang.Object c)
public static android.media.AudioDeviceInfo[] getAudioDevices(java.lang.String device_dir)
public static boolean getSpeakerphoneAlwaysOn(Factory factory)
public static void enableFilterFromName(java.lang.String name, boolean enable) throws MediastreamException
name
- A name for the filter. refer to ms2 internals to get list of filtersenable
- Whether to enable or not the filterMediastreamException
- if filter name is unknownpublic static boolean filterFromNameEnabled(java.lang.String name)
name
- A name for the filter. refer to ms2 internals to get list of filterspublic static void enableSpeaker()
public static void enableEarpiece()
public static void startBluetooth()
public static void stopBluetooth()
public static void hackVolume()