Broadcast live audio on my website - webrtc

I am having a requirement to broadcast live audio on my website. Scenario is
1) one user will talk/sing in my application and
2) his followers will have to listen that live audio instantly in the same application.
Can you please suggest me any 3rd party libraries for this?
Note: I am developing my web application in ASP.Net MVC5.
Thanks in advance.

Towards that goal, if you plan on using WebRTC, you'll need to add media servers that route media around.
Look at Kurento, Jitsi or Janus for open source alternatives - especially if you plan on adding video support to it.
You can also try using Asterisk or FreeSWITCH - these are telephony based solutions but can be re-purposed to use WebRTC and offer a conference call like experience where you mute everyone and have a single speaker "broadcast" his audio to all the rest.

Related

Can we mute remote audio at source while using Agora Web SDK API?

I am working on an application where host needs to mute other participants. I have tried using remotestream.muteAudio() api. But this doesn't mute the audio at source. Which means with this API, if host mutes Participant A it is muted only for the host. But participant B can still hear Participant A.
I went through the API documentation and couldn't find the solution.
https://docs.agora.io/en/faq/API%20Reference/web/interfaces/agorartc.stream.html#muteaudio
Can this be achieved by any ways?
Hi there you need to use the Agora RTM SDK to do that.
You can create an RTM channel with the same name as the RTC channel. Alternatively, You can use P2P messaging(Also present in RTM) if that suits your use case better.
Then the host can send a message to the concerned user to mute. On receiving this message, the user can call the muteAudio on their side, thereby muting the audio at source. All of this would be done programmatically.

How to obtain list of Music Sources from the Sonos household?

I am trying to get a list of music services to which the Sonos household has a subscription. Is it possible to obtain such information from HTTP API or from any other source? If yes, then under what conditions?
I have analyzed the traffic between the Sonos Connect and Windows Sonos Controller. I discover, that information about music services is transmitted from Connect to Controller inside the ThirdPartyMediaServersX tag of the NOTIFY HTTP request. But this content is encoded in the base64-like cipher.
<e:propertyset xmlns:e="urn:schemas-upnp-org:event-1-0">
<e:property>
<ThirdPartyMediaServersX>
2:oZoYgaU5pqEq6IauQ1hYVS0oCUJnqbCkJL1vXP/DoeijejEwUBQT8UG0CksUG9VcarvLhCyElhKTUjfhQt0SAcV2oBOyLJ5BCmjd7TcJfPrVuTGHczd5/AS2tgj85n0U9yU9EwwHROFb5uV09syZNLVaZuJnENCWRKatIq1SNMm1SE4tHneLG6ULQoDOR50nf7TwyRQbkit8Bvy+kZyNPlrgBZFGmizoRmYjW8COFvHJpZhREEGruhQ2J6A8gnQOWyFzstAyHNZeLqp2xcNGnts6f2DQ56r/ducstbibFH0SZOZC0XM/BB4DvOT8UalezPL0R9/s8Jibm5T6mS1FWk14GWg2RMmRBIVE5G/gG2c=
</ThirdPartyMediaServersX>
</e:property>
</e:propertyset>
I expect to obtain list of music services, but the actual list were hidden.
As you figured out, Sonos disabled this functionality some time ago.
I've spend a lot of time figuring out how it works, and I now have a "work-a-round". External music services describes what to do.
And sonos-ts has support for external music services. If you read my first link and check the code in this library you should probably be able to figure out how to do that in your programming language.
I know this is no access to the list that is kept by Sonos, but this work-a-round also saves the tokens on the device for every client application to use.
Recently I've found someone who build an music service emulator. So that are both sides of external music services.
This is not supported by the Sonos API.

Spotify Web API to control playback on connect devices

Is there any way to use an API to control playback on my registered spotify connect devices? I'm not trying to create or add a new connect devices but control playback to them.
Is there any official or reverse engineering discussion on how to do this?
As far as I can tell, there is no way to do this currently.
That said, it's also unclear if or when this feature will be added. Spotify hasn't updated its api code in months. It also appears that the login functionality is broken on my app too. Spotify doesn't seem to be easy to work with.

video advertisement networks working with video.js

Recnetly, I have seen a video.js plugin (https://github.com/videojs/videojs-contrib-ads) that provides common functionality needed by video advertisement libraries.
Since I'm pretty new to this area, not sure what kind kinds of video networks can be used here, in addition to Google Video Adsense.
Could you list all possible (and well-known) video networks that can be used with this library?
Thanks!
videojs-contrib-ads is just a framework for ad support, you do need an additional plugin that builds off that to interact with the ad server and act on the response. Google's IMA plugin is an example of that, and should work not only with DFP but with other VAST-compliant ad servers.

What can we do with UCWA API (Lync)? and What can we not do with UCWA API?

Please explain what are features available in UCWA API (Lync)? I'm interested in the following:
Screen Sharing?
Video Chatting?
Voice Chatting?
Send a file?
I want to access UCWA API in android code, is it possible?
As per the About link of UCWA, API helps you to do the following things,
-Anonymous Web Chat.
-Support audio conferencing
-Light up IM & Presence in your Line-Of-Business app, including Windows 8, iPad, and others
-Inline Instant Messaging into your application (Contextual Communications)
-Search for Skype and/or business contacts
-Better together with UCMA Customer Care family of apps
Also you can refer this site UCWA Capabilities
A good wealth of information surrounding UCWA is available at http://ucwa.lync.com paying specific attention to the Documentation menu. A good rundown of features can be found at Core-Features which do not currently (CU3+) include screen sharing, video, voice, data collaboration (sending a file).
It is possible to place a audio call using a feature named Call-Via-Work which requires the user provide a callback number that Lync will use to connect you with the remote party, but it is not exactly the same as an audio call between two parties.
I want to access UCWA API in android code, is it possible?
There are sample libraries available (UCWA Helper Libraries) in JavaScript, but it is quite possible to use the libraries to construct code to run on an Android platform (Java, etc).