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

MusicTrack

Media metadata representing a music track.

example

{
  type: 'musicTrack',
  title: 'Photograph',
  artist: 'Ed Sheeran'
}

Hierarchy

  • MediaMetadata

    ↳ MusicTrack

Index

Properties

  • albumArtist
  • albumTitle
  • artist
  • composer
  • discNumber
  • images
  • releaseDate
  • title
  • trackNumber
  • type

Properties

Optional albumArtist

• albumArtist? : undefined | string

The name of the artist who produced an album. For example, in compilation albums such as DJ mixes, the album artist is not necessarily the same as the artist(s) of the individual songs on the album.


Optional albumTitle

• albumTitle? : undefined | string

The title of the album that the music track belongs to.


Optional artist

• artist? : undefined | string

The name of the artist who created the track.


Optional composer

• composer? : undefined | string

The name of the composer of the music track.


Optional discNumber

• discNumber? : undefined | number

The disc number (counting from 1) that the music track belongs to in a multi-disc album.


Optional images

• images? : WebImage[]

Inherited from MediaMetadata.images

List of images, e.g. a poster image, album cover, photo etc.


Optional releaseDate

• releaseDate? : undefined | string

The date and/or time at which the music track was released, in ISO-8601 format.


Optional title

• title? : undefined | string

The title of the music track.


Optional trackNumber

• trackNumber? : undefined | number

The track number of the music track on an album disc. Typically track numbers are counted starting from 1, however this value may be 0 if it is a "hidden track" at the beginning of an album.


type

• type: "musicTrack"

Overrides MediaMetadata.type

Media type.

← MoviePhoto →
  • Hierarchy
  • Index
    • Properties
  • Properties
    • Optional albumArtist
    • Optional albumTitle
    • Optional artist
    • Optional composer
    • Optional discNumber
    • Optional images
    • Optional releaseDate
    • Optional title
    • Optional trackNumber
    • type