Class GeckoSession.PermissionDelegate.MediaSource

Object
org.mozilla.geckoview.GeckoSession.PermissionDelegate.MediaSource
Enclosing interface:
GeckoSession.PermissionDelegate

public static class GeckoSession.PermissionDelegate.MediaSource extends Object
Defines the set of media source categories and types used for media capture.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
    Media source type definitions for media device sources.
    static @interface 
    Media device type definitions for media capture.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final 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

    Constructors
    Modifier
    Constructor
    Description
    protected
    Empty constructor for tests.
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • SOURCE_CAMERA

      public static final int SOURCE_CAMERA
      Constant to indicate that camera will be recorded.
      See Also:
    • SOURCE_SCREEN

      public static final int SOURCE_SCREEN
      Constant to indicate that screen will be recorded.
      See Also:
    • SOURCE_MICROPHONE

      public static final int SOURCE_MICROPHONE
      Constant to indicate that microphone will be recorded.
      See Also:
    • SOURCE_AUDIOCAPTURE

      public static final int SOURCE_AUDIOCAPTURE
      Constant to indicate that device audio playback will be recorded.
      See Also:
    • SOURCE_OTHER

      public static final int SOURCE_OTHER
      Constant to indicate a media source that does not fall under the other categories.
      See Also:
    • TYPE_VIDEO

      public static final int TYPE_VIDEO
      The media type is video.
      See Also:
    • TYPE_AUDIO

      public static final int TYPE_AUDIO
      The media type is audio.
      See Also:
    • id

      @NonNull public final String id
      A string giving a unique source identifier.
    • name

      @Nullable public final String 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 source
      An 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 type
      An int giving the type of media, must be either TYPE_VIDEO or TYPE_AUDIO.
  • Constructor Details

    • MediaSource

      protected MediaSource()
      Empty constructor for tests.