getSnapshotUri1 method

Future<MediaUri> getSnapshotUri1(
  1. String profileToken, {
  2. required StreamSetup streamSetup,
})

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.

Implementation

Future<m1.MediaUri> getSnapshotUri1(String profileToken,
        {required StreamSetup streamSetup}) async =>
    _mediaSupportLevel == MediaSupportLevel.one
        ? media1.getSnapshotUri(profileToken)
        : throw NotSupportedException();