Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Gets media for a list of fragments (specified by fragment number) from the archived data in a Kinesis video stream.
The following limits apply when using the GetMediaForFragmentList
API:
- A client can call
GetMediaForFragmentList
up to five times per second per stream. - Kinesis Video Streams sends media data at a rate of up to 25 megabytes per second (or 200 megabits per second) during a
GetMediaForFragmentList
session.
Synopsis
- getMediaForFragmentList :: Text -> GetMediaForFragmentList
- data GetMediaForFragmentList
- gmfflStreamName :: Lens' GetMediaForFragmentList Text
- gmfflFragments :: Lens' GetMediaForFragmentList [Text]
- getMediaForFragmentListResponse :: Int -> RsBody -> GetMediaForFragmentListResponse
- data GetMediaForFragmentListResponse
- gmfflrsContentType :: Lens' GetMediaForFragmentListResponse (Maybe Text)
- gmfflrsResponseStatus :: Lens' GetMediaForFragmentListResponse Int
- gmfflrsPayload :: Lens' GetMediaForFragmentListResponse RsBody
Creating a Request
getMediaForFragmentList Source #
Creates a value of GetMediaForFragmentList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gmfflStreamName
- The name of the stream from which to retrieve fragment media.gmfflFragments
- A list of the numbers of fragments for which to retrieve media. You retrieve these values withListFragments
.
data GetMediaForFragmentList Source #
See: getMediaForFragmentList
smart constructor.
Instances
Request Lenses
gmfflStreamName :: Lens' GetMediaForFragmentList Text Source #
The name of the stream from which to retrieve fragment media.
gmfflFragments :: Lens' GetMediaForFragmentList [Text] Source #
A list of the numbers of fragments for which to retrieve media. You retrieve these values with ListFragments
.
Destructuring the Response
getMediaForFragmentListResponse Source #
Creates a value of GetMediaForFragmentListResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gmfflrsContentType
- The content type of the requested media.gmfflrsResponseStatus
- -- | The response status code.gmfflrsPayload
- The payload that Kinesis Video Streams returns is a sequence of chunks from the specified stream. For information about the chunks, see PutMedia . The chunks that Kinesis Video Streams returns in theGetMediaForFragmentList
call also include the following additional Matroska (MKV) tags: * AWS_KINESISVIDEO_FRAGMENT_NUMBER - Fragment number returned in the chunk. * AWS_KINESISVIDEO_SERVER_SIDE_TIMESTAMP - Server-side time stamp of the fragment. * AWS_KINESISVIDEO_PRODUCER_SIDE_TIMESTAMP - Producer-side time stamp of the fragment. The following tags will be included if an exception occurs: * AWS_KINESISVIDEO_FRAGMENT_NUMBER - The number of the fragment that threw the exception * AWS_KINESISVIDEO_EXCEPTION_ERROR_CODE - The integer code of the exception * AWS_KINESISVIDEO_EXCEPTION_MESSAGE - A text description of the exception
data GetMediaForFragmentListResponse Source #
See: getMediaForFragmentListResponse
smart constructor.
Instances
Show GetMediaForFragmentListResponse Source # | |
Generic GetMediaForFragmentListResponse Source # | |
type Rep GetMediaForFragmentListResponse Source # | |
Defined in Network.AWS.KinesisVideoArchivedMedia.GetMediaForFragmentList type Rep GetMediaForFragmentListResponse = D1 (MetaData "GetMediaForFragmentListResponse" "Network.AWS.KinesisVideoArchivedMedia.GetMediaForFragmentList" "amazonka-kinesis-video-archived-media-1.6.1-GNz2M31Sb8E5K9Q0duB32R" False) (C1 (MetaCons "GetMediaForFragmentListResponse'" PrefixI True) (S1 (MetaSel (Just "_gmfflrsContentType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_gmfflrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int) :*: S1 (MetaSel (Just "_gmfflrsPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 RsBody)))) |
Response Lenses
gmfflrsContentType :: Lens' GetMediaForFragmentListResponse (Maybe Text) Source #
The content type of the requested media.
gmfflrsResponseStatus :: Lens' GetMediaForFragmentListResponse Int Source #
- - | The response status code.
gmfflrsPayload :: Lens' GetMediaForFragmentListResponse RsBody Source #
The payload that Kinesis Video Streams returns is a sequence of chunks from the specified stream. For information about the chunks, see PutMedia . The chunks that Kinesis Video Streams returns in the GetMediaForFragmentList
call also include the following additional Matroska (MKV) tags: * AWS_KINESISVIDEO_FRAGMENT_NUMBER - Fragment number returned in the chunk. * AWS_KINESISVIDEO_SERVER_SIDE_TIMESTAMP - Server-side time stamp of the fragment. * AWS_KINESISVIDEO_PRODUCER_SIDE_TIMESTAMP - Producer-side time stamp of the fragment. The following tags will be included if an exception occurs: * AWS_KINESISVIDEO_FRAGMENT_NUMBER - The number of the fragment that threw the exception * AWS_KINESISVIDEO_EXCEPTION_ERROR_CODE - The integer code of the exception * AWS_KINESISVIDEO_EXCEPTION_MESSAGE - A text description of the exception