roc-streaming / roc-java

JNI bindings for Roc Toolkit.
https://roc-streaming.org
MIT License
21 stars 14 forks source link

Indicates whether there is a multicast example #131

Open chenqinggang001 opened 6 days ago

chenqinggang001 commented 6 days ago

I only saw unicast examples in the document, is there any example related to multicast for reference? https://roc-streaming.org/toolkit/docs/manuals/roc_send.html

gavv commented 2 days ago

Hi,

For multicast you need two things:

If you're asking specifically about CLI tools (you gave a link to roc-send tool), then take a look at --miface option. (roc-recv has it for a long time, but roc-send has it only in develop branch; for roc-send it's needed when using RTCP).

In C API, see roc_interface_config. It allows to specify multicast group which you want to join.

In Java bindings, I think it's not covered yet, so you'll have to join multicast group manually using platform-specific APIs before binding/connecting endpoints.