Media class
- Mixed in types
-
- Available Extensions
Constructors
-
Media({required Transport transport, Media1? media1, Media2? media2})
-
Methods
-
getAudioSources()
→ Future<List<AudioSource>>
-
This command lists all available physical audio inputs of the device.
-
getMetadataConfiguration(String configurationToken)
→ Future<MetadataConfiguration>
-
The GetMetadataConfiguration command fetches the metadata configuration if
the metadata token is known.
-
getMetadataConfigurations({String? configurationToken, String? profileToken})
→ 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.
-
getProfile(String profileToken)
→ Future<Profile>
-
If the profile token is already known, a profile can be fetched through
the getProfile command.
-
getProfiles({String? referenceToken, List<String>? type})
→ Future<List<MediaProfile>>
-
Calls getProfiles2.
-
getProfiles1({String? referenceToken, List<String>? type})
→ 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.
-
getProfiles2({String? referenceToken, List<String>? type})
→ Future<List<MediaProfile>>
-
Retrieve the profile with the specified token or all defined media
profiles.
-
getServiceCapabilities()
→ Future<Capabilities2>
-
Calls getServiceCapabilities2.
-
getServiceCapabilities1()
→ Future<Capabilities1>
-
Returns the capabilities of the media service. The result is returned in a
typed answer.
-
getServiceCapabilities2()
→ Future<Capabilities2>
-
Returns the capabilities of the media service. The result is returned in a
typed answer.
-
getSnapshotUri(String profileToken)
→ Future<String>
-
Calls getSnapshotUri2.
-
getSnapshotUri1(String profileToken, {required StreamSetup streamSetup})
→ 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 media1
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.
-
getSnapshotUri2(String profileToken)
→ Future<String>
-
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 protocol = 'RTSP'})
→ Future<String>
-
Calls getStreamUri2.
-
getStreamUri1(String profileToken, {required StreamSetup streamSetup})
→ Future<MediaUri>
-
This operation requests a Uri that can be used to initiate a live media1
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).
-
getStreamUri2(String profileToken, {String protocol = 'RTSP'})
→ Future<String>
-
This operation requests a Uri that can be used to initiate a live media1
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<List<VideoSource>>
-
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(String profileToken)
→ Future<bool>
-
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(String profileToken)
→ Future<bool>
-
This command stop multicast streaming using a specified media profile of a
device
-
toString()
→ String
-
A string representation of this object.
inherited