Audio Only Publishing

30 views
Skip to first unread message

tibin...@gmail.com

unread,
Dec 12, 2019, 1:25:45 PM12/12/19
to OpenVidu
Hello Team,

We have a use case where a large number of users are involved in a conference. Considering the cost, we are planning to limit the video for a single person and all the other users are able to communicate via audio. This is working fine by passing videoSource: null to PublisherProperties. The questions are,

1. Does this approach help me to reduce the bandwidth?
2. Is there a way to specify audio bitrate on PublisherProperties.
3. Even though the stream has only audio, I am passing it to the video player. Is there a way to use an audio player in this case?

Thanks in advance.

Pablo

unread,
Dec 13, 2019, 7:31:12 AM12/13/19
to OpenVidu
1. Sure, not sending video will drastically reduce your users bandwidth.
2. There's no way to specify audio bitrate from the browser's side. It depends on the available bandwidth, and browsers usually will try to maximize it by default.
3. OpenVidu Browser will append a video player by default when initializing a Publisher or Subscriber object. But you can avoid it by not providing an HTML element reference on publish and subscribe methods. Whenever you receive streamCreated event, you can access the internal native MediaStream object through property Stream.mediaStream (this is not documented in the current version, but it is already for next release). And with that you can do wahtever you want, including inserting it into an Audio player element.

tibin...@gmail.com

unread,
Dec 13, 2019, 8:34:43 AM12/13/19
to OpenVidu
Thanks, Pablo. I have another question which is already added under the load test medium article. Do we have load testing results for audio-only sessions?

Pablo

unread,
Dec 16, 2019, 4:12:58 AM12/16/19
to OpenVidu
Not really. We didn't perform the audio-only load test. But we are working right now in the scalable version of OpenVidu Pro tier, so we will resume load testing once we have that working.

tibin...@gmail.com

unread,
Dec 16, 2019, 4:28:10 AM12/16/19
to OpenVidu
Great news. Looking forward to the elastic scalable version. Thank you.
Reply all
Reply to author
Forward
0 new messages