awslabs / awslabs/amazon-kinesis-client-python
How to get metadata from Amazon Kinesis Video Streams?
- Dominant language
- Python
- Stars
- 377
- Forks
- 228
- PR merge metrics
- No merged PRs in 30d
Description
We are querying for a video that is streamed to KVS. We'd like to return the server and producer timestamp when getting frames.
We pass a time range variable to get a specific time period but we need to confirm from the original KVS stream.
` url = kvam.get_hls_streaming_session_url(
StreamName=STREAM_NAME,
PlaybackMode="ON_DEMAND",
DisplayFragmentTimestamp="ALWAYS",
HLSFragmentSelector={
"FragmentSelectorType": "SERVER_TIMESTAMP",
"TimestampRange": {
"StartTimestamp": datetime.now() - timedelta(seconds=6),
"EndTimestamp": datetime.now() - timedelta(seconds=3.5),
},
},
)["HLSStreamingSessionURL"]
`
The url returns a working HLS links.
Thank you in advance for any help.
Contributor guide
Assessment
This issue has not been assessed yet.