getSnapshotUri2 method

Future<String> getSnapshotUri2(
  1. String profileToken
)

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.

profileToken - the ProfileToken element indicates the media profile to use and will define the source and dimensions of the snapshot.

Implementation

Future<String> getSnapshotUri2(String profileToken) async =>
    _mediaSupportLevel == MediaSupportLevel.one
        ? throw NotSupportedException()
        : media2.getSnapshotUri(profileToken);