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

MediaInfo

A type that aggregates information about a media item.

Used by RemoteMediaClient.loadMedia to load media on the receiver application.

see Android | iOS | Chrome

Hierarchy

  • MediaInfo

Index

Properties

  • contentId
  • contentType
  • contentUrl
  • customData
  • entity
  • hlsSegmentFormat
  • hlsVideoSegmentFormat
  • mediaTracks
  • metadata
  • streamDuration
  • streamType
  • textTrackStyle

Properties

Optional contentId

• contentId? : undefined | string

The content ID for this stream.


Optional contentType

• contentType? : undefined | string

The content (MIME) type.


contentUrl

• contentUrl: string

The URL of the content to be played.


Optional customData

• customData? : undefined | object

The custom data, if any


Optional entity

• entity? : undefined | string

The deep link for the media as used by Google Assistant, if any.


Optional hlsSegmentFormat

• hlsSegmentFormat? : MediaHlsSegmentFormat

The format of HLS audio segments. One of AAC, AC3, E-AC3, FMP4, MP3, TS, TS-AAC.


Optional hlsVideoSegmentFormat

• hlsVideoSegmentFormat? : MediaHlsVideoSegmentFormat

The format of HLS video segments. One of FMP4, MPEG2-TS.


Optional mediaTracks

• mediaTracks? : MediaTrack[]

The media tracks for this stream.


Optional metadata

• metadata? : Generic | Movie | MusicTrack | Photo | TvShow | User

The media item metadata.


Optional streamDuration

• streamDuration? : undefined | number

The length of the stream, in seconds, or undefined if it is a live stream.


Optional streamType

• streamType? : MediaStreamType

The stream type. One of buffered, live, none.


Optional textTrackStyle

• textTrackStyle? : TextTrackStyle | null

The text track style for this stream.

← DeviceMediaLiveSeekableRange →
  • Hierarchy
  • Index
    • Properties
  • Properties
    • Optional contentId
    • Optional contentType
    • contentUrl
    • Optional customData
    • Optional entity
    • Optional hlsSegmentFormat
    • Optional hlsVideoSegmentFormat
    • Optional mediaTracks
    • Optional metadata
    • Optional streamDuration
    • Optional streamType
    • Optional textTrackStyle