screenCaptureURL property
String
screenCaptureURL
Get the URL of the image when a screenshot is taken with startScreenCapture.
Currently only available at AgoraStorageVendor.googleCloud.
startScreenCaptureでスクリーンショットを撮影した際の画像のURLを取得します。
現在AgoraStorageVendor.googleCloudでのみ利用可能です。
Implementation
String get screenCaptureURL {
if (_engine == null) {
throw Exception(
"The engine is not initialized. [connect] the engine first.",
);
}
final vendor = adapter.storageBucketConfig?.vendor;
switch (vendor) {
case AgoraStorageVendor.googleCloud:
return "https://storage.googleapis.com/${adapter.storageBucketConfig?.bucketName}/$channelName.jpg";
default:
throw Exception("This vendor has not been implemented.");
}
}