Antmedia WebRTC for CDN

229 views
Skip to first unread message

ruell magpayo

unread,
Apr 20, 2021, 4:34:31 AM4/20/21
to Ant Media Server
We are deciding whether to get the Pro version or not so we are evaluating various product and Antmedia is the top choice and official RnD has started for this.

I am doing research now on the possiblity of using a CDN for Antmedia server, so far what I can see is articles and document that says it can be done but Antmedia broadcast to a CDN server using HLS.
I am confuse (though I am also a newbie), is it not possible to use CDN using WebRTC, why is this?

Thanks


Konrad Piwowar

unread,
Apr 20, 2021, 8:23:39 AM4/20/21
to Ant Media Server
I have not found a CDN that supports webrtc. The closest you can do as a far as I know is to install multiple copies of antmedia and run them in cluster mode.

drulz

unread,
Apr 20, 2021, 10:57:19 AM4/20/21
to Konrad Piwowar, Ant Media Server
I just want to confirm,
So I assume running in cluster mode is the way to scale Antmedia without using CDN correct?
Also, using cluster mode, we can use Antmedia for bidirectionaly using WebRTC?

to install multiple copies of antmedia and run them in cluster mode, WebRTC can be used in streaming bidirectionally?

--
You received this message because you are subscribed to a topic in the Google Groups "Ant Media Server" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ant-media-server/VXtqm5-Ol6Y/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ant-media-serv...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ant-media-server/80b63b79-b5be-465e-9860-e4dfbf2ef652n%40googlegroups.com.

Konrad Piwowar

unread,
Apr 20, 2021, 11:01:10 AM4/20/21
to Ant Media Server
The way we did it was we installed multiple copies of antmedia onto servers all over the world, and then use cloudns.net to make geoip-dns to point the same subdomain at all the various servers. We then turned on antmedia in cluster mode and the streams get shared between them. We could broadcast to any server and receive the stream at any server.

James Bond

unread,
Apr 20, 2021, 10:48:33 PM4/20/21
to Ant Media Server
I am looking for the same thing as the originator of the thread, do you have documents, articles or guide on how to do this? =)

Konrad Piwowar

unread,
Apr 21, 2021, 3:01:18 AM4/21/21
to Ant Media Server
They have some doc on github about clustering but not about what we did as far as I know. 

What we did was we first put up an httpd and pointed domain at it to verify SSL certificate. Then we removed the httpd, installed antmedia + the ssl certificate for the single domain (blahcdn.com let's call it) on all of the servers. Then I reg'd an account at cloudns.net, and setup DNS entries so EU went to server X, US West went to server Y etc.
It worked - I don't know how far it would scale - our application was around 35-40 streamers and 200-300 viewers. You might need to do a load balancer at each location if there's alot of traffic but in general - it worked. By streaming to blahcdn.com, I was able to stream to my closest server and everyone could watch it from their closest server and vice versa.

Cem Kılıç

unread,
Apr 21, 2021, 7:11:50 AM4/21/21
to Ant Media Server
Thank you Konrad for sharing your experiences. 
Reply all
Reply to author
Forward
0 new messages