Package org.mozilla.geckoview
Class GeckoSession.PermissionDelegate.MediaSource
Object
org.mozilla.geckoview.GeckoSession.PermissionDelegate.MediaSource
- Enclosing interface:
- GeckoSession.PermissionDelegate
Defines the set of media source categories and types used for media capture.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceMedia source type definitions for media device sources.static @interfaceMedia device type definitions for media capture. -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StringA string giving a unique source identifier.final StringA string giving the name of the video source from the system (for example, "Camera 0, Facing back, Orientation 90").final intAn int indicating the media source type.static final intConstant to indicate that device audio playback will be recorded.static final intConstant to indicate that camera will be recorded.static final intConstant to indicate that microphone will be recorded.static final intConstant to indicate a media source that does not fall under the other categories.static final intConstant to indicate that screen will be recorded.final intAn int giving the type of media, must be either TYPE_VIDEO or TYPE_AUDIO.static final intThe media type is audio.static final intThe media type is video. -
Constructor Summary
Constructors -
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.
-