Chromecast

public protocol Chromecast : EventDispatcherProtocol

Chromecast, also known as Google Cast, is a casting device designed by Google.

  • Indicates whether or not THEOplayer is casting to a chromecast and has control over the current chromecast session.

    Declaration

    Swift

    var casting: Bool { get }
  • The last error thrown by chromecast.

    Declaration

    Swift

    var error: CastError? { get }
  • The name of the chromecast device that THEOplayer is casting to. This value is null if THEOplayer is not controlling the current chromecast session.

    Declaration

    Swift

    var receiverName: String? { get }
  • The source to be used for casting.

    Declaration

    Swift

    var source: SourceDescription? { get set }
  • Indicates the state of the casting process.

    Declaration

    Swift

    var state: PlayerCastState? { get }
  • Start casting to the chromecast. A dialog will prompt to choose the device.

    Declaration

    Swift

    func start()
  • Stop casting to the chromecast.

    Declaration

    Swift

    func stop()