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

Photo

Media metadata representing a photo.

example

{
  type: 'photo',
  title: 'Lunch Atop a Skyscraper',
}

Hierarchy

  • MediaMetadata

    ↳ Photo

Index

Properties

  • artist
  • creationDate
  • height
  • images
  • latitude
  • location
  • longitude
  • title
  • type
  • width

Properties

Optional artist

• artist? : undefined | string

The name of the photographer.


Optional creationDate

• creationDate? : undefined | string

The date and/or time at which the photo was taken, in ISO-8601 format.


Optional height

• height? : undefined | number

Photo height, in pixels.


Optional images

• images? : WebImage[]

Inherited from MediaMetadata.images

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


Optional latitude

• latitude? : undefined | number

The latitude component of the geographical location where the photograph was taken.


Optional location

• location? : undefined | string

Location where the photo was taken. For example, "Seattle, Washington, USA".


Optional longitude

• longitude? : undefined | number

The longitude component of the geographical location where the photograph was taken.


Optional title

• title? : undefined | string

The title of the photo.


type

• type: "photo"

Overrides MediaMetadata.type

Media type.


Optional width

• width? : undefined | number

Photo width, in pixels.

← MusicTrackTvShow →
  • Hierarchy
  • Index
    • Properties
  • Properties
    • Optional artist
    • Optional creationDate
    • Optional height
    • Optional images
    • Optional latitude
    • Optional location
    • Optional longitude
    • Optional title
    • type
    • Optional width