Skip to main content
Version: Current

Media Types

  • MediaPermissionAction

    Defines an event that gets permission for audio and/or video.

    Members

    • audio? boolean

      Should include audio permission.

    • playerId? string

      The ID of the player that created this task. Set by remote action handlers when a task is recieved from a remote player.

    • taskId (string | number)

      The ID of the async task.

    • type "media_permission"

      The type of the event. This helps determine how the event should be applied to the state.

    • uncopiable? boolean

      Whether the action can be structure cloned. If true, then the action should not be passed across message ports without special handling.

    • video? boolean

      Should include video permission.

  • MediaPermissionOptions

    Defines an interface that represents options for requesting media permissions.

    Members

    • audio? boolean

      Should include audio permission.

    • video? boolean

      Should include video permission.