![]() For example, in Safari the browser will return an empty array but in Chrome the browser returns an array of devices but without any identifiable information. Its best to wait until the user has granted permission to use the devices before we ask for the list of permissions because each browser has varying support as to how much information they return. Let’s now take the time to add in the Agora method to load the list of our devices. The configuration object allows us to set the overall width and height of the stream and then within the transcodingUser array we can also specify the scale and position of the individual streams within the merged video stream.Įarlier we added some dropdown UI elements to our microphone and camera buttons. To allow developers to control the layout when the videos are merged into a single video stream. Along with userCount, the transcodingUser array in our example is a single element array, but you can make that dynamic if you wish to have more broadcasters in the external stream.Īnother point worth mentioning: if you are broadcasting more than one stream to a 3rd party service using RTMP, the streams will be merged into a single stream. In our example, the user count is hardcoded in because we are only broadcasting with a single user, but if you intend to have more than a single broadcaster in each channel you need to make this number dynamic to the number of streams you want to push to the external server. One area to take note, is the userCount and transcodingUser. We are using the form elements to allow the broadcaster to control their settings, but since we are building an object for the configuration we need to ensure that we are pulling the values with the correct types. We are using a form to allow a user to configure the settings for their broadcast In this case we need to limit the broadcasting capability to specific users while allowing all other users are in the audience they will only consume the broadcaster stream(s). ![]() ![]() Some users in the channel are broadcasting ( broadcasters) their camera streams and other users that will be watching the content streamed by the “ broadcasters” ( audience). In this project we will be implementing a broadcasting scenario, where there is a mix of users. In “ Building a Group Video Chat Web-App,” the build conformed to the communication scenario, where every user in the channel has the ability to broadcast their audio and video streams.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |