How to create private voice groups?

Is there a way to restrict who can join a voice group? Glancing over the docs it looks like chat groups allow you to make them unlisted and you could make them an guid so they can’t be guessed. Since audio groups appear to be integers, would just picking a random uint128 number work?

Best Answer

  • JohnTube
    JohnTube ✭✭✭✭✭
    Answer ✓
    Hi @CRJ,

    Thank you for choosing Photon!

    Interest groups are byte (custom range 1..255)
    You could choose one value and make it known only by users who should talk in that group.

    However, if this is a sensitive matter, this won't prevent modified clients from subscribing to all groups and eavesdropping.
    If you want tighter security you could add an extra layer of security on top: token/password protection, end to end encryption...this is not built-in for voice communication based on interest groups. This probably won't be added to the API itself but maybe as a demo but not any time soon.
    If you know the target clients beforehand there might be an option to make use of another feature to target only those clients instead of an interest group. But you will have to specify the target actors on every recorder when transmitting. this is also not available out of the box and could be added if the use case fits and really make sense but I can't promise anything.

Answers

  • JohnTube
    JohnTube ✭✭✭✭✭
    Answer ✓
    Hi @CRJ,

    Thank you for choosing Photon!

    Interest groups are byte (custom range 1..255)
    You could choose one value and make it known only by users who should talk in that group.

    However, if this is a sensitive matter, this won't prevent modified clients from subscribing to all groups and eavesdropping.
    If you want tighter security you could add an extra layer of security on top: token/password protection, end to end encryption...this is not built-in for voice communication based on interest groups. This probably won't be added to the API itself but maybe as a demo but not any time soon.
    If you know the target clients beforehand there might be an option to make use of another feature to target only those clients instead of an interest group. But you will have to specify the target actors on every recorder when transmitting. this is also not available out of the box and could be added if the use case fits and really make sense but I can't promise anything.