Jump to content
  • 0

Filter domain that can play the source in their iframe


Brax Bruh
 Share

Question

As the title says, how can I only allow specific domains to stream from my AMS in their players or iframe?

My setup is: Dedicated Server (AMS Origin) -> Good bandwidth VPS (AMS Pull) -> Dedicated Server (Our website LAMP | Player)

I would like to only allow two domains, one is the LAMP Server and two, a test domain where I test stuff before deploying.

I am reading about AMS Stream Security but I can't quite get my head around it. I'm very new to this, sorry.

Also, how can I limit viewers to only have 20 minutes of idle time before timing out?

TIA
Link to comment
Share on other sites

  • Answers 9
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

9 answers to this question

Recommended Posts

  • 0
Hi Jonnel Espiritu,
Hope you are doing well.
Also, you can refer the video for the same

Also, how can I limit viewers to only have 20 minutes of idle time before timing out? 
I'm not sure about exact solution for this, can you please let me know about your use case so that I can discuss  and help accordingly.

--
Best Regards,
Mohit Dubey
Star Ant Media Server on GitHub and get a chance to win an AMS Annual Enterprise Edition License.


On Tue, 17 Aug at 4:03 PM , Jonnel Espiritu <staytrue.iwnl@gmail.com> wrote:
As the title says, how can I only allow specific domains to stream from my AMS in their players or iframe?

My setup is: Dedicated Server (AMS Origin) -> Good bandwidth VPS (AMS Pull) -> Dedicated Server (Our website LAMP | Player)

I would like to only allow two domains, one is the LAMP Server and two, a test domain where I test stuff before deploying.

I am reading about AMS Stream Security but I can't quite get my head around it. I'm very new to this, sorry.

Also, how can I limit viewers to only have 20 minutes of idle time before timing out?

TIA
--
You received this message because you are subscribed to the Google Groups "Ant Media Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ant-media-server+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ant-media-server/4f1ae923-b81e-4ae3-a2e3-00772e9f3283n%40googlegroups.com.
45883:1264838
Link to comment
Share on other sites

  • 0
Hi Jonnel Espiritu,
I think to limit the publisher you can use https://github.com/ant-media/Ant-Media-Server/wiki/Stream-Security-Documentation#5-publisher-ip-filter and restrict access to only specific IPs to publish the stream,
for player I'm not yet aware of such case. Allow me some time and I'll discuss it with the developer and get back to you.
--
Best Regards,
Mohit Dubey


 
Star Ant Media Server on GitHub and get a chance to win an AMS Annual Enterprise Edition License.


On Tue, 17 Aug at 4:36 PM , Jonnel Espiritu <staytrue.iwnl@gmail.com> wrote:
I can't understand how to follow that guide and implement for my use-case. Is there anything I need to do within my Website Server?

My use-case is: Stream from my AMS Origin to VPS (Pull) and to my Website which plays the stream to my clients.

On Tuesday, August 17, 2021 at 9:26:44 PM UTC+8 support wrote:
Hi Jonnel Espiritu,
Hope you are doing well.
Also, you can refer the video for the same

Also, how can I limit viewers to only have 20 minutes of idle time before timing out? 
I'm not sure about exact solution for this, can you please let me know about your use case so that I can discuss  and help accordingly.

--
Best Regards,
Mohit Dubey
Star Ant Media Server on GitHub and get a chance to win an AMS Annual Enterprise Edition License.


On Tue, 17 Aug at 4:03 PM

As the title says, how can I only allow specific domains to stream from my AMS in their players or iframe?

My setup is: Dedicated Server (AMS Origin) -> Good bandwidth VPS (AMS Pull) -> Dedicated Server (Our website LAMP | Player)

I would like to only allow two domains, one is the LAMP Server and two, a test domain where I test stuff before deploying.

I am reading about AMS Stream Security but I can't quite get my head around it. I'm very new to this, sorry.

Also, how can I limit viewers to only have 20 minutes of idle time before timing out?

TIA

--

You received this message because you are subscribed to the Google Groups "Ant Media Server" group.

To unsubscribe from this group and stop receiving emails from it, send an email to ant-media-serv...@googlegroups.com.

To view this discussion on the web visit
.

--
You received this message because you are subscribed to the Google Groups "Ant Media Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ant-media-server+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ant-media-server/4b25e657-b272-47e0-9ee7-483f4822b476n%40googlegroups.com.
45883:1264838
Link to comment
Share on other sites

  • 0

So you have a ams origin to push and a ams edge to pull and then want to render the stream on your web server pages.?

Publisher security will ensure that only specific IP can publish. Similarly you can use token security to ensure only subscribers with correct token can subscribe. I think what you are specifically looking for is domain locking.

Also, how can I limit viewers to only have 20 minutes of idle time before timing out? - What do you mean by idle time here ?

 

Link to comment
Share on other sites

  • 0
Hi, thank you for replying

"So you have a ams origin to push and a ams edge to pull and then want to render the stream on your web server pages.?" -- Yes

I just don't want the source to be exposed so that they cannot use my streams on their own websites.

"Also, how can I limit viewers to only have 20 minutes of idle time before timing out? - What do you mean by idle time here ?" -- For example, the stream have been on for a viewer, this viewer only has 20mins before the stream stops and he needs to refresh and resume the stream.
Link to comment
Share on other sites

  • 0
​In this you can define the time frame under which the user must start publish/play the stream otherwise the token will expire after the allotted time.
But I think you want a solution in which the stream expires after 20 minutes and not the token?


 
Star Ant Media Server on GitHub and get a chance to win an AMS Annual Enterprise Edition License.


On Wed, 18 Aug at 5:28 PM , Jonnel Espiritu <staytrue.iwnl@gmail.com> wrote:
Same idea, yes. I just want that only viewers that are watching from my website can view it.

On Wednesday, August 18, 2021 at 10:06:38 PM UTC+8 Connessione wrote:
Am not from the official support team but my general opinion would be :

1. You can do that via client side scripting 
2. You cans do that via server side custom scripting. 

I assume you are trying to make some kind of pay per view system ?

--
You received this message because you are subscribed to the Google Groups "Ant Media Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ant-media-server+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ant-media-server/4b26bebc-99ff-4f3c-94fa-32a1287a2ec5n%40googlegroups.com.
45883:1264838
Link to comment
Share on other sites

  • 0
Hi Jonnel Espiritu,
Also, for limiting the player it is like you want only your server to play the stream and not any other IP/server. For this case you can use any security method like One time token https://github.com/ant-media/Ant-Media-Server/wiki/Stream-Security-Documentation#2-one-time-token-control
so that the stream can be played only once with a particular token and if someone tries to play the stream again it won't play as the one time token has already expired. 


 
Star Ant Media Server on GitHub and get a chance to win an AMS Annual Enterprise Edition License.


On Wed, 18 Aug at 5:39 PM , Ant Media Support <support@antmedia.io> wrote:
​In this you can define the time frame under which the user must start publish/play the stream otherwise the token will expire after the allotted time.
But I think you want a solution in which the stream expires after 20 minutes and not the token?


 
Star Ant Media Server on GitHub and get a chance to win an AMS Annual Enterprise Edition License.


On Wed, 18 Aug at 5:28 PM , Jonnel Espiritu <staytrue.iwnl@gmail.com> wrote:
Same idea, yes. I just want that only viewers that are watching from my website can view it.

On Wednesday, August 18, 2021 at 10:06:38 PM UTC+8 Connessione wrote:
Am not from the official support team but my general opinion would be :

1. You can do that via client side scripting 
2. You cans do that via server side custom scripting. 

I assume you are trying to make some kind of pay per view system ?

--
You received this message because you are subscribed to the Google Groups "Ant Media Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ant-media-server+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ant-media-server/4b26bebc-99ff-4f3c-94fa-32a1287a2ec5n%40googlegroups.com.
45883:1264838
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...