-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Playing audio through the AudioBridge plugin #51
Comments
For that the Quoting the Janus API docs: You can start the playback of an .opus file in an existing room using the play_file request, which has to be formatted as follows:
Notice that, as explained above, in case you configured an admin_key property and extended it to RTP forwarding as well, you'll need to provide it in the request as well or it will be rejected as unauthorized. By default play_file only requires the room secret, meaning only people authorized to edit the room can start an audio playback. Also notice that the only supported files are .opus files: no other audio format will be accepted. Besides, the file must be reachable and available on the file system: network addresses (e.g., HTTP URL) are NOT supported. |
Hi atoppi Thanks for the detailed response! I have a better understanding of how it works now 👍 |
Hi atoppi, after reviewing the audiobridge plugin in a little more detail, I notice that there is functionality to join as an RTP participant.
I was wondering if this could fit my usecase, and i was testing with the janus web demo from janus-gateway github
But for some reason I am unable to hear the audio from the frontend client Is this the correct usecase for the rtp participant? Or am i misunderstanding how it can be used |
alright, after reading this pull request I realised that i had to leave out the ip and port fields
Because in my case it is for playing an external audio. so this playing file capability can be done by using gstreamer to stream the audio over plain rtp |
Yes that should fit your use case. |
From my firsthand experience with janode, I was able to join AudioBridge room and start an RTP stream using Gstreamer to multicast audio from a web-client using janus-gateway npm package for my application.
However now I am wondering how do I use janode to play audio in the AudioBridge room.
For example a, use case would be playing pre-recorded announcement which could be available as an audio file.
The text was updated successfully, but these errors were encountered: