awslabs / amazon-kinesis-video-streams-producer-sdk-java

Allows developers to install and customize their connected camera and other devices to securely stream video, audio, and time-encoded data to Kinesis Video Streams
Apache License 2.0
78 stars 76 forks source link

Push live stream to Kinesis video stream from webcam #136

Closed BodapatlaKiranReddy closed 3 years ago

BodapatlaKiranReddy commented 3 years ago

How can use i use web cam to integrate with kinesis video stream producer to push the live stream? The SDK show sample demo but how to connect with webcam and in this SDK we don't find the CameraMediaSource class.

Any suggestion on this will really help me a lot. Thanks in advance

BodapatlaKiranReddy commented 3 years ago

How can use i use web cam to integrate with kinesis video stream producer to push the live stream? The SDK show sample demo but how to connect with webcam and in this SDK we don't find the CameraMediaSource class.

Any suggestion on this will really help me a lot. Thanks in advance

@zhiyua-git @MushMal

Any suggestion will be appreciated

MushMal commented 3 years ago

CameraMediaSource is a simple helper and doesn't actually provide access to your laptops generic webcam. It's used with the Android solution where there is a standardized media pipeline (MediaCodec API). Generic Java doesn't have a common access to a/v hardware nor the encoders on the device.

Try to read through some of the posts. I just searched the keyword in the issues and pasted here:

https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-java/search?q=webcam&type=issues

BodapatlaKiranReddy commented 3 years ago

@MushMal Thanks for your response. Is seems like we don't have option to stream from webcam? or do we have in java? Any idea.

CameraMediaSource is a simple helper and doesn't actually provide access to your laptops generic webcam. It's used with the Android solution where there is a standardized media pipeline (MediaCodec API). Generic Java doesn't have a common access to a/v hardware nor the encoders on the device.

Try to read through some of the posts. I just searched the keyword in the issues and pasted here:

https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-java/search?q=webcam&type=issues

@MushMal Thanks for your response. Is seems like we don't have option to stream from webcam? or do we have any other option in java? Any idea.

MushMal commented 3 years ago

Your question is not properly formulated. There is no Java standard common way to handle it but there are some 3rd party libraries you could use. I attached the search results so you can read through and get more info

BodapatlaKiranReddy commented 3 years ago

Your question is not properly formulated. There is no Java standard common way to handle it but there are some 3rd party libraries you could use. I attached the search results so you can read through and get more info

ok sure, Thanks

hassanctech commented 3 years ago

@BodapatlaKiranReddy It looks like this question has been answered. I am closing this issue. If you have any more questions please open a new issue.