Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get metadata from Amazon Kinesis Video Streams? #164

Open
tinir-mohammed opened this issue Feb 7, 2022 · 0 comments
Open

How to get metadata from Amazon Kinesis Video Streams? #164

tinir-mohammed opened this issue Feb 7, 2022 · 0 comments

Comments

@tinir-mohammed
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant