devopvoid / webrtc-java

WebRTC for desktop platforms running Java
Apache License 2.0
248 stars 60 forks source link

How to set video frame captuer? #54

Closed SeanMooneySavari closed 1 year ago

SeanMooneySavari commented 2 years ago

Is there a way to create a video track where frames are passed in via a captureFrame method?

Charles92011 commented 2 years ago

@SeanMooneySavari You can use VideoCapture.setVideoSink and you will the onVideoFrame event.
Once you receive the frame, I haven't figured out what to do with it. Have you worked this out? Or, are interested in collaborating on the solution?

devopvoid commented 1 year ago

Streaming a file is not supported yet, but will be possible in the near future. For upcoming progress see https://github.com/devopvoid/webrtc-java/issues/87