public static class GeckoSession.PermissionDelegate.MediaSource extends Object
Modifier and Type | Field and Description |
---|---|
String |
id
A string giving the origin-specific source identifier.
|
String |
name
A string giving the name of the video source from the system
(for example, "Camera 0, Facing back, Orientation 90").
|
String |
rawId
A string giving the non-origin-specific source identifier.
|
int |
source
An int indicating the media source type.
|
static int |
SOURCE_AUDIOCAPTURE
Constant to indicate that device audio playback will be recorded.
|
static int |
SOURCE_CAMERA
Constant to indicate that camera will be recorded.
|
static int |
SOURCE_MICROPHONE
Constant to indicate that microphone will be recorded.
|
static int |
SOURCE_OTHER
Constant to indicate a media source that does not fall under the other categories.
|
static int |
SOURCE_SCREEN
Constant to indicate that screen will be recorded.
|
int |
type
An int giving the type of media, must be either TYPE_VIDEO or TYPE_AUDIO.
|
static int |
TYPE_AUDIO
The media type is audio.
|
static int |
TYPE_VIDEO
The media type is video.
|
Modifier | Constructor and Description |
---|---|
protected |
MediaSource()
Empty constructor for tests.
|
public static final int SOURCE_CAMERA
public static final int SOURCE_SCREEN
public static final int SOURCE_MICROPHONE
public static final int SOURCE_AUDIOCAPTURE
public static final int SOURCE_OTHER
public static final int TYPE_VIDEO
public static final int TYPE_AUDIO
@Nullable public final String name
public final int source
public final int type