StreamClient class Viam SDK

A client to manage a camera's WebRTC stream.

Use the getStream method to obtain a stream of MediaStream that can be used to display WebRTC video.

Constructors

StreamClient(String name, Future<void> _open(String name), Future<void> _close(String name))

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

closeStream() Future<void>
Close the stream connection and release resources.
getStream() Stream<MediaStream?>
Return a stream of MediaStream, which can be used to display WebRTC video.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited