Jump to content
  • 0

Ant Media Server In an LXD Container Help Needed


Ray Jender
 Share

Question

I am working on an idea for using LXD containers to host Ant Media Server instances.   One Ant Media Server per container.
I won't go into details why I am doing this. Its more of an experiment at this time. But just know that I need containers to accomplish my goal.

So my infrastructure is:  One VPS running Ubuntu 18.04; one LXD Container also running Ubuntu 18.04 and HAProxy, and one LXD container running Ubuntu 18.04 and hosting Ant Media Server. Both containers are inside the VPS.

I have this working, in the sense that I can browse to a subdomain of my domain and forward the query to the container and access Ant Media .  The getusermedia is working fine.  I can access
my web cam and see my webcam video.  If I click the "Start Publishing" button, it does start the publishing, but the publishing stops after 10-15 seconds for some reason.  Here is a diagram of my current configuration.   The functionality would be this:

1. The broadcaster would browse to https://amsc1.mydomain.us
2. The VPS would perform port forwarding for  ports 80/443 and forward the URL to
the HAProxy container.
3. The HAProxy would trigger on the subdomain part of the URL, which in this example would be
amsc1 and redirect to the amsc1 container
4. The Ant Media Server would be accessed and the broadcaster webcam/mic would be accessed
and getUsermedia would fire.  The broadcaster would see his webcam video.
5. Clicking the "Start Broadcasting" would start the broadcast.

So, steps 1-4 are working find.  It's step 5 that is not working.  It starts to broadcast,  but after 10-15 seconds it stops.

I have opened the UDP ports 5000:65000 as others have recommended but that obviously did not help.

Any ideas how to fix are welcome.  I have also attached a copy of the log file for this procedure.

Let me know if you need anything else.

Thanks,

Ray















Broadcast Stops After 10-15 Secs.txt

1669828732_AntMediaContainer.thumb.png.5eeb6971c4c94406f99bb75cc8800957.png

Link to comment
Share on other sites

  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

Posted Images

1 answer to this question

Recommended Posts

  • 0
Right click on the diagram pic and open image in new tab.


On Thursday, March 19, 2020 at 2:47:07 PM UTC-4, Ray Jender wrote:
I am working on an idea for using LXD containers to host Ant Media Server instances.   One Ant Media Server per container.
I won't go into details why I am doing this. Its more of an experiment at this time. But just know that I need containers to accomplish my goal.

So my infrastructure is:  One VPS running Ubuntu 18.04; one LXD Container also running Ubuntu 18.04 and HAProxy, and one LXD container running Ubuntu 18.04 and hosting Ant Media Server. Both containers are inside the VPS.

I have this working, in the sense that I can browse to a subdomain of my domain and forward the query to the container and access Ant Media .  The getusermedia is working fine.  I can access
my web cam and see my webcam video.  If I click the "Start Publishing" button, it does start the publishing, but the publishing stops after 10-15 seconds for some reason.  Here is a diagram of my current configuration.   The functionality would be this:

1. The broadcaster would browse to https://amsc1.mydomain.us
2. The VPS would perform port forwarding for  ports 80/443 and forward the URL to
the HAProxy container.
3. The HAProxy would trigger on the subdomain part of the URL, which in this example would be
amsc1 and redirect to the amsc1 container
4. The Ant Media Server would be accessed and the broadcaster webcam/mic would be accessed
and getUsermedia would fire.  The broadcaster would see his webcam video.
5. Clicking the "Start Broadcasting" would start the broadcast.

So, steps 1-4 are working find.  It's step 5 that is not working.  It starts to broadcast,  but after 10-15 seconds it stops.

I have opened the UDP ports 5000:65000 as others have recommended but that obviously did not help.

Any ideas how to fix are welcome.  I have also attached a copy of the log file for this procedure.

Let me know if you need anything else.

Thanks,

Ray



Ant Media Container.png










Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share


×
×
  • Create New...