#✅ - iOS SDK - Kinesis getImages() very unreliable

5 messages · Page 1 of 1 (latest)

sour jetty
#

I'm using AWSKinesisVideoArchivedMedia.getImages() to request some images of a recorded video clip. The clip loads fine but I will request, say, 10 images starting from the start time of the video with a sampling rate of 1000ms. Very often the first 3-9 values returned have null image data and eventually one will have an actual image.

Many clips do not return any successful images.

Is there a better way to use this API or is there a different API I can use to reliably get an image from a video clip? I don't even want 10 images I'm just requesting that many to maximize my chances of getting even 1 successful image.

There's got to be a better way to do this. If it, for some reason, started working properly and actually returned 10 images then it would be a huge amount of unnecessary data transfer.

Any ideas?

#

Here's an example of what the response looks like:

{
  "Images": [
    {
      "Error": "NO_MEDIA",
      "ImageContent": null,
      "TimeStamp": 1701786372.0
    },
    {
      "Error": "NO_MEDIA",
      "ImageContent": null,
      "TimeStamp": 1701786373.0
    },
    {
      "Error": "NO_MEDIA",
      "ImageContent": null,
      "TimeStamp": 1701786374.0
    },
    {
      "Error": "NO_MEDIA",
      "ImageContent": null,
      "TimeStamp": 1701786375.0
    },
    {
      "Error": "NO_MEDIA",
      "ImageContent": null,
      "TimeStamp": 1701786376.0
    },
fair ember
flint cedarBOT
#

✅ - iOS SDK - Kinesis getImages() very unreliable