Media class
Real-time video and audio streaming configurations are controlled using media profiles. A media profile maps a video and/or audio source to a video and/or an audio encoder, PTZ and analytics configurations.
- Mixed-in types
-
- UiLoggy
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
loggy
→ Loggy<
UiLoggy> -
no setterinherited
- media1 → Media1
-
no setter
- media2 → Media2
-
no setter
- mediaSupportLevel → MediaSupportLevel
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- transport → Transport
-
final
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< MixedProfile> > - returns a MixedProfile which will have fields for m1.Profile or m2.MediaProfile depending on what is supported by the device.
-
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.
-
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.
-
getStreamUri(
String profileToken) → 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.
-
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.
-
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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getMediaSupportLevel(
Media1? media1, Media2? media2) → MediaSupportLevel