Streampunk / grandiose

Node.JS native bindings to Newtek NDI(tm).
Apache License 2.0
184 stars 47 forks source link

Sending NDI example? #14

Open cliqer opened 3 years ago

cliqer commented 3 years ago

Using @jensstigaard's repo works like a charm on receiving streams but how does sendVideo work?

Tried with grandiose.sendVideo() and send() and I do receive the test patterns (even though the whole app freezes) but couldn't figure out how to use MediaStream Capture as a source.

Also grandiose.sendVideo({source: new MediaStream(null)}) didn't work

justweb1 commented 3 years ago

sending was not implemented yet and the maintainer has not updated this repo in 2 years.

cliqer commented 3 years ago

@jensstigaard has added sending NDI and the tests seem to work just fine. An example is needed though on how data can be sent out correctly.

Should I expect something like this to work?

grandiose.sendVideo(mediaStream.getVideoTracks()[0])

While 'issues' are not available on his forked repo had to request this here :)

jensstigaard commented 3 years ago

Perhaps take a look at this promising fork https://github.com/ianshade/grandiose/tree/feat/sending

numenorien0 commented 3 years ago

Yes, but there's no explanation or example. Do you have an example ?

jensstigaard commented 3 years ago

No not really. But perhaps take a look at the great contribution from rse. There is an example using .send here

billygerhard commented 2 years ago

@jensstigaard Your fork seems the most up to date, are you going to pull in that request from rse to yours?