Media class

Constructors

Media.new({required Onvif onvif, required String uri})

Properties

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

Methods

getAudioSources() Future<List<AudioSource>>
This command lists all available physical audio inputs of the device.
getMetadataConfigurations() Future<List<MetaDataConfiguration>>
This operation lists all existing metadata configurations. The client need not know anything apriori about the metadata in order to use the command.
getProfiles() Future<List<Profile>>
Any endpoint can ask for the existing media profiles of a device using the getProfiles command. Pre-configured or dynamically configured profiles can be retrieved using this command. This command lists all configured profiles in a device. The client does not need to know the media profile in order to use the command.
getServiceCapabilities() Future<void>
Returns the capabilities of the media service. The result is returned in a typed answer.
getSnapshotUri(String profileToken, {bool validUntilConnect = false, bool validUntilReboot = false, String timeout = 'PT0S'}) Future<MediaUri>
A client uses the getSnapshotUri command to obtain a JPEG snapshot from the device. The returned URI shall remain valid indefinitely even if the profile is changed. The validUntilConnect, validUntilReboot and timeout parameter shall be set accordingly (validUntilConnect=false, validUntilReboot=false, timeout=PT0S). The URI can be used for acquiring a JPEG image through a HTTP GET operation. The image encoding will always be JPEG regardless of the encoding setting in the media profile. The Jpeg settings (like resolution or quality) may be taken from the profile if suitable. The provided image will be updated automatically and independent from calls to getSnapshotUri.
getStreamUri(String profileToken, {String streamType = 'RTP_unicast', String transportProtocol = 'RTSP', bool validUntilConnect = false, bool validUntilReboot = false, String timeout = 'PT0S'}) Future<MediaUri>
This operation requests a Uri that can be used to initiate a live media stream using RTSP as the control protocol. The returned URI shall remain valid indefinitely even if the profile is changed. The validUntilConnect, validUntilReboot and Timeout Parameter shall be set accordingly ( validUntilConnect=false, validUntilReboot=false, timeout=PT0S).
getVideoSources() Future<VideoSources>
This command lists all available physical video inputs of the device.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startMulticastStreaming() Future<void>
This command starts multicast streaming using a specified media profile of a device. Streaming continues until StopMulticastStreaming is called for the same Profile. The streaming shall continue after a reboot of the device until a StopMulticastStreaming request is received. The multicast address, port and TTL are configured in the VideoEncoderConfiguration, AudioEncoderConfiguration and MetadataConfiguration respectively.
stopMulticastStreaming() Future<void>
This command stop multicast streaming using a specified media profile of a device
toString() String
A string representation of this object.
inherited

Operators

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