Package org.mozilla.geckoview
Class GeckoSession.PermissionDelegate.MediaSource
Object
org.mozilla.geckoview.GeckoSession.PermissionDelegate.MediaSource
- Enclosing interface:
- GeckoSession.PermissionDelegate
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic @interface
static @interface
-
Field Summary
Modifier and TypeFieldDescriptionfinal String
A string giving a unique source identifier.final String
A string giving the name of the video source from the system (for example, "Camera 0, Facing back, Orientation 90").final int
An int indicating the media source type.static final int
Constant to indicate that device audio playback will be recorded.static final int
Constant to indicate that camera will be recorded.static final int
Constant to indicate that microphone will be recorded.static final int
Constant to indicate a media source that does not fall under the other categories.static final int
Constant to indicate that screen will be recorded.final int
An int giving the type of media, must be either TYPE_VIDEO or TYPE_AUDIO.static final int
The media type is audio.static final int
The media type is video. -
Constructor Summary
-
Method Summary
-
Field Details
-
SOURCE_CAMERA
public static final int SOURCE_CAMERAConstant to indicate that camera will be recorded.- See Also:
-
SOURCE_SCREEN
public static final int SOURCE_SCREENConstant to indicate that screen will be recorded.- See Also:
-
SOURCE_MICROPHONE
public static final int SOURCE_MICROPHONEConstant to indicate that microphone will be recorded.- See Also:
-
SOURCE_AUDIOCAPTURE
public static final int SOURCE_AUDIOCAPTUREConstant to indicate that device audio playback will be recorded.- See Also:
-
SOURCE_OTHER
public static final int SOURCE_OTHERConstant to indicate a media source that does not fall under the other categories.- See Also:
-
TYPE_VIDEO
public static final int TYPE_VIDEOThe media type is video.- See Also:
-
TYPE_AUDIO
public static final int TYPE_AUDIOThe media type is audio.- See Also:
-
id
A string giving a unique source identifier. -
name
A string giving the name of the video source from the system (for example, "Camera 0, Facing back, Orientation 90"). May be empty. -
source
public final int sourceAn int indicating the media source type. Possible values for a video source are: SOURCE_CAMERA, SOURCE_SCREEN, and SOURCE_OTHER. Possible values for an audio source are: SOURCE_MICROPHONE, SOURCE_AUDIOCAPTURE, and SOURCE_OTHER. -
type
public final int typeAn int giving the type of media, must be either TYPE_VIDEO or TYPE_AUDIO.
-
-
Constructor Details
-
MediaSource
protected MediaSource()Empty constructor for tests.
-