When using recording, requesting to start recording API error 406 is reported, indicating that there are no participants in it. How can I use Java to determine whether there are participants in the room who need to start recording API

When using recording, requesting to start recording API error 406 is reported, indicating that there are no participants in it. How can I use Java to determine whether there are participants in the room who need to start recording API

Use this method: Session (OpenVidu Java Client 2.26.0 API)

If there are Connection objects associated to the Session, you will be able to start the Recording.