VKPlayersManager
@objc
public class VKPlayersManager : NSObject, VKPlaybackQueueDelegate
-
Declaration
Swift
public weak var delegate: VKPlayersManagerProtocol?
-
Declaration
Swift
public typealias PlayerRequestCompletion = (VKPlayerViewController?, Error?) -> Void
-
Declaration
Swift
public var playlist: VKPlaylist? { get }
-
Declaration
Swift
public var playlistIndex: Int { get }
-
Declaration
Swift
public init(prerenderDistance: Int = 5, preloadDistance: Int = 10)
-
Declaration
Swift
public func reset()
-
Declaration
Swift
public func addVideoToPlaylist(_ video: VKVideo)
-
Declaration
Swift
public func setPlaylist(_ playlist: VKPlaylist, index: Int = 0)
-
Declaration
Swift
public func setPlaylistIndex(_ index: Int)
-
Declaration
Swift
public func getPlayerFor(index: Int, completion: @escaping PlayerRequestCompletion)
-
Declaration
Swift
public func getPlayerFor(videoId: String, completion: @escaping PlayerRequestCompletion)
-
Declaration
Swift
public func releasePlayerFor(id: String)
-
Declaration
Swift
public func releasePlayers()
-
Declaration
Swift
public func pausePlayers()
-
Declaration
Swift
public func playbackQueueUpdated(videos: [VKVideo])