VKStreamsAPI
@objc
public class VKStreamsAPI : NSObject
-
Declaration
Swift
@objc public static let shared: VKStreamsAPI
-
Get a stream by id Docs: https://docs.video.io/api/#tag/streams/paths/~1v1~1streams~1{id}/get
Declaration
Swift
@discardableResult @objc public func get(streamId id: String, completion: @escaping VKStreamsCompletionBlock) -> VKCancellable
Parameters
id
String Stream ID
-
Get streams by state Docs: http://gateway.video.io/documentation/index.html#/streams/get_v1_streams
Declaration
Swift
@discardableResult @objc public func list(withState state: VKStreamState, completion: @escaping VKListStreamsCompletionBlock) -> VKCancellable
Parameters
id
String Stream ID
-
Get a stream by id Docs: https://gateway.video.io/documentation/index.html#/streams/post_v1_streams
Declaration
Swift
@discardableResult @objc public func create(withProfile profile: VKStreamProfile, completion: @escaping VKStreamsCompletionBlock) -> VKCancellable
Parameters
profile
String Stream Profile
-
Delete an existing stream Docs: https://gateway.video.io/documentation/index.html#/streams/delete_v1_streams__id_
Declaration
Swift
@discardableResult @objc public func delete(streamId id: String, completion: @escaping VKDeleteStreamCompletionBlock) -> VKCancellable
Parameters
id
String Stream ID