CastStrategy

@objc(THEOplayerCastStrategy)
public enum CastStrategy : Int
extension CastStrategy: Encodable

The cast strategies that specify the ways an existing chromecast session can be joined.

  • The player will automatically join a cast session at startup if one exists when play is called.

    Declaration

    Swift

    @objc(THEOplayerCastStrategyAUTO)
    case auto = 1
  • The player will take over an existing session if there is one and the cast button is clicked.

    Declaration

    Swift

    @objc(THEOplayerCastStrategyMANUAL)
    case manual = 2
  • The player will not be affected by any existing cast sessions.

    Declaration

    Swift

    @objc(THEOplayerCastStrategyDISABLED)
    case disabled = 3
  • The raw value of type String.

    Declaration

    Swift

    public var _rawValue: String { get set }