How can I consume metadata for a KVS stream using Python?

1

We understand that using Python for consuming a KVS stream is not recommended but were able to put together some code that consumes the stream in chunks using the GetMedia API and also decode some of the KVS metadata like "AWS_KINESISVIDEO_FRAGMENT_NUMBER" and "AWS_KINESISVIDEO_SERVER_TIMESTAMP" with help from this issue. However, when we push custom metadata, we are unable to read it on the python consumer. We tried reading the same on the AWS Java consumer found here and were successful. Is it possible to read this metadata on Python? If so, do you have any suggestions?

  • As part of your request, are you consuming the KVS stream as an HLS session, or are you calling one of the other APIs such as GetMedia to download clips?

  • Hi David! I've edited the question to mention that we're using the GetMedia API via boto3

  • Is your code somewhere I could look at it, such as Github?

已提问 2 年前141 查看次数
没有答案

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则