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

MediaTrack

A type that represents a media track, such as a language track or closed caption text track in a video.

see Android | iOS

Hierarchy

  • MediaTrack

Index

Properties

  • contentId
  • contentType
  • customData
  • id
  • language
  • name
  • subtype
  • type

Properties

Optional contentId

• contentId? : undefined | string

The content ID (URI) of the media track.


Optional contentType

• contentType? : undefined | string

The content type (MIME type) of the media track, or undefined if none was specified.


Optional customData

• customData? : undefined | object

The custom data object for this media track, or undefined if none was specified.


id

• id: number

The unique ID of the media track. Used for setting activeTrackIds.


Optional language

• language? : undefined | string

The language of this media track in RFC-5464 format, or undefined if none was specified. Required for subtitles type but optional otherwise.


Optional name

• name? : undefined | string

The name of the media track, or undefined if none was specified.


Optional subtype

• subtype? : "captions" | "chapters" | "descriptions" | "metadata" | "subtitles"

The text track's subtype; applies only to text tracks. One of captions, chapters, descriptions, metadata, subtitles.


type

• type: "audio" | "text" | "video"

The type of the track. One of audio, text, video.

← MediaStatusTextTrackStyle →
  • Hierarchy
  • Index
    • Properties
  • Properties
    • Optional contentId
    • Optional contentType
    • Optional customData
    • id
    • Optional language
    • Optional name
    • Optional subtype
    • type