We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df0ab4e commit ff75340Copy full SHA for ff75340
src/Traits/CanRecognizeVideos.php
@@ -3,6 +3,7 @@
3
namespace Meema\MediaRecognition\Traits;
4
5
use Exception;
6
+use Illuminate\Support\Str;
7
8
trait CanRecognizeVideos
9
{
@@ -34,7 +35,8 @@ protected function setVideoSettings($type): void
34
35
'SNSTopicArn' => config('media-recognition.sns_topic_arn'),
36
];
37
- $uniqueId = $type.'_'.$this->mediaId;
38
+ $uniqueId = $type.'_'.$this->mediaId.'_'.Str::random(6);
39
+
40
// Idempotent token used to identify the start request.
41
// If you use the same token with multiple StartCelebrityRecognition requests, the same JobId is returned.
42
// Use ClientRequestToken to prevent the same job from being accidentally started more than once.
0 commit comments