Brax Bruh Posted August 17, 2021 Share Posted August 17, 2021 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 More sharing options...
0 Ant Media Support Posted August 17, 2021 Share Posted August 17, 2021 Hi Jonnel Espiritu,Hope you are doing well. For stream security you can refer to our guide https://github.com/ant-media/Ant-Media-Server/wiki/Stream-Security-Documentation 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 More sharing options...
0 Brax Bruh Posted August 17, 2021 Author Share Posted August 17, 2021 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. Link to comment Share on other sites More sharing options...
0 Ant Media Support Posted August 18, 2021 Share Posted August 18, 2021 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. For stream security you can refer to our guide https://github.com/ant-media/Ant-Media-Server/wiki/Stream-Security-Documentation 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 https://groups.google.com/d/msgid/ant-media-server/4f1ae923-b81e-4ae3-a2e3-00772e9f3283n%40googlegroups.com. -- 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 More sharing options...
0 Connessione Posted August 18, 2021 Share Posted August 18, 2021 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 More sharing options...
0 Brax Bruh Posted August 18, 2021 Author Share Posted August 18, 2021 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 More sharing options...
0 Connessione Posted August 18, 2021 Share Posted August 18, 2021 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 ? Link to comment Share on other sites More sharing options...
0 Brax Bruh Posted August 18, 2021 Author Share Posted August 18, 2021 Same idea, yes. I just want that only viewers that are watching from my website can view it. Link to comment Share on other sites More sharing options...
0 Ant Media Support Posted August 18, 2021 Share Posted August 18, 2021 Hi Jonnel Espiritu,You can use TOTP method for this https://github.com/ant-media/Ant-Media-Server/wiki/Time-based-One-Time-Password-(TOTP) 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 More sharing options...
0 Ant Media Support Posted August 18, 2021 Share Posted August 18, 2021 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: Hi Jonnel Espiritu,You can use TOTP method for this https://github.com/ant-media/Ant-Media-Server/wiki/Time-based-One-Time-Password-(TOTP) 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 More sharing options...
Question
Brax Bruh
Link to comment
Share on other sites
Top Posters For This Question
4
4
2
Popular Days
Aug 18
7
Aug 17
3
Top Posters For This Question
Ant Media Support 4 posts
Brax Bruh 4 posts
Connessione 2 posts
Popular Days
Aug 18 2021
7 posts
Aug 17 2021
3 posts
9 answers to this question
Recommended Posts