React Native Google Cast

React Native Google Cast

  • Docs
  • GitHub

›Types

Getting Started

  • Installation
  • Setup
  • Usage
  • Troubleshooting

Guides

  • Custom Channels
  • Customize UI
  • Events
  • Hooks
  • Media Tracks
  • Queueing
  • Volume

Components

  • CastButton
  • ExpandedController

API

  • CastChannel
  • CastContext
  • CastSession
  • DiscoveryManager
  • RemoteMediaClient
  • SessionManager

Types

  • ApplicationMetadata
  • Device
  • MediaInfo
  • MediaLiveSeekableRange
  • MediaLoadRequest
  • MediaMetadata
    • Generic
    • Movie
    • MusicTrack
    • Photo
    • TvShow
    • User
  • MediaQueueContainerMetadata
  • MediaQueueData
  • MediaQueueItem
  • MediaSeekOptions
  • MediaStatus
  • MediaTrack
  • TextTrackStyle
  • UseCastSessionOptions
  • VideoInfo
  • WebImage

Enums

  • ActiveInputState
  • CastState
  • MediaHlsSegmentFormat
  • MediaHlsVideoSegmentFormat
  • MediaPlayerIdleReason
  • MediaPlayerState
  • MediaQueueContainerType
  • MediaQueueType
  • MediaRepeatMode
  • MediaStreamType
  • PlayServicesState
  • StandbyState

MediaLoadRequest

Options for loading media with RemoteMediaClient.loadMedia.

When creating the request, you need to provide either mediaInfo if loading a single item, or queueData if loading a queue of items.

see Android | iOS | Chrome

Hierarchy

  • MediaLoadRequest

Index

Properties

  • autoplay
  • credentials
  • credentialsType
  • customData
  • mediaInfo
  • playbackRate
  • queueData
  • startTime

Properties

Optional autoplay

• autoplay? : boolean | null

Whether playback should start immediately. Defaults to true.

When set to null while loading a queue, the first queue item's autoplay property will be used to determine whether to play automatically.


Optional credentials

• credentials? : undefined | string

The user credentials to pass along with the load request to the receiver. The credentials are completely application-specific and can be any arbitrary string.


Optional credentialsType

• credentialsType? : undefined | string

The user credentials type to pass along with the load request to the receiver. The credentials type is completely application-specific and can be any arbitrary string.


Optional customData

• customData? : undefined | object

The custom application-specific data to pass along with the load request.


Optional mediaInfo

• mediaInfo? : MediaInfo

The media item to load. Either this or queueData is required.


Optional playbackRate

• playbackRate? : undefined | number

The playback rate, as the multiplier of the normal playback rate. The accepted value is between 0.5 and 2.0. The normal playback rate is 1.0.


Optional queueData

• queueData? : MediaQueueData

The metadata of media item or queue to load. Either this or mediaInfo is required.


Optional startTime

• startTime? : undefined | number

The initial playback position, in seconds from the beginning of the media.

← MediaLiveSeekableRangeMediaMetadata →
  • Hierarchy
  • Index
    • Properties
  • Properties
    • Optional autoplay
    • Optional credentials
    • Optional credentialsType
    • Optional customData
    • Optional mediaInfo
    • Optional playbackRate
    • Optional queueData
    • Optional startTime