Chromecast
public protocol Chromecast : EventDispatcherProtocolChromecast, also known as Google Cast, is a casting device designed by Google.
- 
                  
                  Whether THEOplayer is casting to a chromecast and has control over the current chromecast session. DeclarationSwift var casting: Bool { get }
- 
                  
                  The last error thrown by chromecast. DeclarationSwift var error: CastError? { get }
- 
                  
                  The name of the chromecast device that THEOplayer is casting to. Remark This value is nil if THEOplayer is not controlling the current chromecast session.DeclarationSwift var receiverName: String? { get }
- 
                  
                  Indicates the state of the casting process. DeclarationSwift var state: PlayerCastState? { get }
- 
                  
                  The ChromecastConnectionDelegate to be used when the Chromecast connection changes. DeclarationSwift func setConnectionDelegate(_ delegate: ChromecastConnectionDelegate?)
- 
                  
                  Start casting to the chromecast. A dialog will prompt to choose the device. DeclarationSwift func start()
- 
                  
                  Stop casting to the chromecast. DeclarationSwift func stop()
- 
                  
                  Join an active chromecast session. DeclarationSwift func join()
- 
                  
                  Leave an active chromecast session without affecting other devices. DeclarationSwift func leave()
- 
                  
                  Adds the given event listener of the given ChromecastEventType.Remark When attaching a listener on the wrong object the application will crash. DeclarationSwift func addEventListener<E>(type: EventType<E>, listener: @escaping (E) -> ()) -> EventListener where E : EventProtocolParameterstypeChromecastEventType of the added event listener. listenerClosure called when event is dispatched. Return ValueEventListener that can be removed. 
- 
                  
                  Removes the given event listener of the given ChromecastEventType.DeclarationSwift func removeEventListener<E>(type: EventType<E>, listener: EventListener) where E : EventProtocolParameterstypeChromecastEventType of the removed event listener. listenerEventListener object that has been return on addEventListener. 
 Chromecast Protocol Reference
      Chromecast Protocol Reference