LiveInputRecording class

Control recording the input to a Stream video. Behavior depends on the mode. In most cases, the video will initially be viewable as a live video and transition to on-demand after a condition is satisfied.

Available Extensions
Annotations
  • @CopyWith(skipFields: true)
  • @JsonSerializable()

Constructors

LiveInputRecording({LiveInputRecordingMode? mode, bool? requireSignedURLs, List<String>? allowedOrigins, int? timeoutSeconds})
LiveInputRecording.fromJson(Map<String, dynamic> json)
factory

Properties

allowedOrigins List<String>
List of which origins should be allowed to display videos created with this input. Enter allowed origin domains in an array and use * for wildcard subdomains. Empty array will allow the video to be viewed on any origin.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
mode LiveInputRecordingMode
Specifies the recording behavior of the live input. 'off' indicates no recording will be made. 'automatic' indicates a recording should be made, and that the recording should transition to on-demand after Stream Live stops receiving input.
final
requireSignedURLs bool
Indicates whether videos created using this Live Input has the requireSignedURLs property set. This enforces access controls on any video created with the live input.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeoutSeconds int
Specifies how long a live feed can be disconnected before it results in a new video being created. A live input configured in 'automatic' mode waits before determining a recording should transition from live to on-demand. A value of 0 indicates the platform default should be used. 0 is recommended for most use cases.
getter/setter pair

Methods

fromJsonList(List? jsonList) List<LiveInputRecording>?
inherited
fromJsonMap(Map<String, dynamic>? json) LiveInputRecording?
fromJsonString(String? json) LiveInputRecording?
inherited
fromJsonStringList(String? jsonStringList) List<LiveInputRecording>?
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toJsonMap() Map<String, dynamic>
inherited
toJsonString() String
inherited
toString() String
This is just to suggest children to implement a named constructor to support creating objects fromJson(...) and fromJsonString(...) as easy as T.build().fromJson(...) or T.build().fromJsonString(...)
inherited

Operators

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