UZCastingManager
open class UZCastingManager: NSObject
Undocumented
-
Undocumented
Declaration
Swift
public static let shared = UZCastingManager()
-
Undocumented
Declaration
Swift
open var hasConnectedSession: Bool
-
Undocumented
Declaration
Swift
open var deviceCount: Int
-
Undocumented
Declaration
Swift
open func device(at index: UInt) -> GCKDevice
-
Undocumented
Declaration
Swift
open var mediaDuration: TimeInterval
-
Undocumented
Declaration
Swift
open var lastPosition: TimeInterval = 0
-
Undocumented
Declaration
Swift
open var currentPosition: TimeInterval
-
Undocumented
Declaration
Swift
open var currentPlayerState: GCKMediaPlayerState
-
Undocumented
Declaration
Swift
open private(set) var discoverManager : GCKDiscoveryManager!
-
Undocumented
Declaration
Swift
open private(set) var sessionManager : GCKSessionManager!
-
Undocumented
Declaration
Swift
open private(set) var remoteClient: GCKRemoteMediaClient?
-
Undocumented
Declaration
Swift
open private(set) var currentCastSession: GCKCastSession? = nil
-
Undocumented
Declaration
Swift
open private(set) var currentCastItem: UZCastItem? = nil
-
Undocumented
Declaration
Swift
open func startDiscovering()
-
Undocumented
Declaration
Swift
open func stopDiscovering()
-
Undocumented
Declaration
Swift
open func cast(item: UZCastItem, to device: GCKDevice)
-
Undocumented
Declaration
Swift
open func connect(to device: GCKDevice, andCast item: UZCastItem? = nil)
-
Undocumented
Declaration
Swift
open func disconnect()
-
Undocumented
Declaration
Swift
open func castItem(item: UZCastItem, with playlist: [UZCastItem]? = nil)
-
Undocumented
Declaration
Swift
open func play()
-
Undocumented
Declaration
Swift
open func pause()
-
Undocumented
Declaration
Swift
open func stop()
-
Undocumented
Declaration
Swift
open func seek(to interval: TimeInterval, resumeState: GCKMediaResumeState = .unchanged)
-
Undocumented
Declaration
Swift
open func setVolume(_ volume: Float)
-
Undocumented
Declaration
Swift
open func setMute(_ muted: Bool)
-
Undocumented
Declaration
Swift
open func selectTracksIDs(_ tracks: [NSNumber])
-
Undocumented
Declaration
Swift
public func didUpdateDeviceList()
-
Undocumented
Declaration
Swift
public func sessionManager(_ sessionManager: GCKSessionManager, didStart session: GCKCastSession)
-
Undocumented
Declaration
Swift
public func sessionManager(_ sessionManager: GCKSessionManager, didResumeCastSession session: GCKCastSession)
-
Undocumented
Declaration
Swift
public func sessionManager(_ sessionManager: GCKSessionManager, session: GCKSession, didReceiveDeviceStatus statusText: String?)
-
Undocumented
Declaration
Swift
public func sessionManager(_ sessionManager: GCKSessionManager, didEnd session: GCKSession, withError error: Error?)
-
Undocumented
Declaration
Swift
public func sessionManager(_ sessionManager: GCKSessionManager, didSuspend session: GCKCastSession, with reason: GCKConnectionSuspendReason)
-
Undocumented
Declaration
Swift
public func remoteMediaClient(_ client: GCKRemoteMediaClient, didStartMediaSessionWithID sessionID: Int)
-
Undocumented
Declaration
Swift
public func remoteMediaClient(_ client: GCKRemoteMediaClient, didUpdate mediaStatus: GCKMediaStatus?)
-
Undocumented
Declaration
Swift
public func requestDidComplete(_ request: GCKRequest)
-
Undocumented
Declaration
Swift
public func request(_ request: GCKRequest, didFailWithError error: GCKError)
-
Undocumented
Declaration
Swift
public func request(_ request: GCKRequest, didAbortWith abortReason: GCKRequestAbortReason)