Video
public class Video : ObservableObject
The Video class provides a stream of raw image data directly from Skyle.
-
A reference to the current client, which represents the gRPC connection. This is automatically updated by
ET
when a new connection is established.Declaration
Swift
internal var client: Skyle_SkyleNIOClient?
-
Internal empty constructor
Declaration
Swift
internal init()
-
Internal constructor passing a possible client
Declaration
Swift
internal init(_ client: Skyle_SkyleNIOClient?)
-
The
state
property exposes aPublisher
which indicates the state of the stream of gaze data.Declaration
Swift
@Published private(set) public var state: States { get set }
-
The
image
property exposes aPublisher
which consists of the raw imageDeclaration
Swift
@Published private(set) public var image: Skyle_RawImage { get set }
-
Simple cleanup stops the gRPC call by killing it.
Declaration
Swift
deinit
-
Starts a video stream asyncronously, updating the
state
andpoint
properties.Declaration
Swift
public func start()
-
Stops a video stream asyncronously, updating the
state
property.Declaration
Swift
public func stop()