aws / amazon-kinesis-video-streams-parser-library

Amazon Kinesis Video Streams parser library is for developers to include in their applications that makes it easy to work with the output of video streams such as retrieving frame-level objects, metadata for fragments, and more.
Apache License 2.0
103 stars 52 forks source link

Add ListFragment worker and update GetMediaForFragmentListWorker #111

Closed kyletran200 closed 3 years ago

kyletran200 commented 4 years ago

Issue #, if available:

Description of changes: Currently the parser library does not contain any examples utilizing the ListFragments API for archived media retrieval. I added a worker written in the same vein as the other workers. Given a timestamp range object, the worker will return a list of fragment numbers retrieved within a given Kinesis Video Stream during that period.

Furthermore, the current GetMediaForFragmentListWorker only performs GetMedia for a single fragment number. I made a simple update so that it will retrieve media for a list of fragment numbers instead. Together, these two workers can retrieve and process archived media from a given timestamp range with ease.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.