Skip to content
This repository has been archived by the owner on Mar 2, 2023. It is now read-only.

Closing of inputstream blocks during media streaming #71

Open
parvindersingh22 opened this issue Mar 22, 2022 · 2 comments
Open

Closing of inputstream blocks during media streaming #71

parvindersingh22 opened this issue Mar 22, 2022 · 2 comments

Comments

@parvindersingh22
Copy link

Hello,

We are using the code from this source and found that inputstream.close() blocks if we try to close it during in-progress media streaming.

GetMediaResult getMediaResult = amazonKinesisVideoMedia.getMedia(new GetMediaRequest()
.withStreamName(streamName)
.withStartSelector(startSelector));
InputStream inputStream = getMediaResult.getPayload();

inputStream .close(); //This will block if the media is still streaming in KVS

This inputstream closing is same as that of KVSTranscribeStreamingLambda (line 274 - kvsStreamTrackObject.getInputStream().close();)

Please suggest how we can resolve this issue.

Regards,
Parvinder

@angieyu
Copy link
Contributor

angieyu commented Oct 3, 2022

Hi is this still an issue? Did you manage to fix it?

@parvindersingh22
Copy link
Author

Hi is this still an issue? Did you manage to fix it?

Yes. Thanks.

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

No branches or pull requests

2 participants