Score:-1

Ngrok more stable

sa flag

Lately i was trying to build a localhost live streaming service for some small events on my community using nginx and ngrok(i don't want to have trouble with all that port opening) but when i was doing some tests today i wat stuck with some instabilities on my stream, sometimes the video doesn't load or load very slowly, the transmission dies completely and must be refreshed to play normally again, and it seems that is ngroks fault(looking at the execution window the latency goes up very easily and when it does my transmission fall, i am using nginx with rtmp module, here is mt conf code:

worker_processes  1;

error_log  logs/error.log info;

events {
    worker_connections  512;
}

rtmp {
server {
    listen 1935;
    chunk_size 4000;
    ping 30s;
    notify_method get;
    application live {
        live on;
   on_publish http://127.0.0.1:80/auth; 

        hls on;
    hls_fragment 10;
    hls_playlist_length 60;
        hls_path www/hls;

    }
}
}

http{

 server {
    listen 80;
    charset utf-8;

    location / {
        add_header Cache-Control no-cache;
        root www;
    }
    location /auth {
        if ($arg_psk = '****') { 
        return 201;
        }
    return 404;
}
}
}

i'm also using an free account on ngrok(i don't know if a premium one will increase perfomance), i wanna know if there is a way to decrease instabillity on my server so it can be better to watch my stream, i will be broadcasting to around 700 people.

vn flag
You're never gonna manage to stream to 700 people through ngrok. Stream to YouTube or Facebook Live or something.
José Pablo Pedrosa Dantas avatar
sa flag
Its that so? i thought this amount of people was a good amount to use ngrok.
vn flag
If you pull up https://ngrok.com/pricing and expand the full feature list, even the Enterprise plan maxes out at 100 connections and 1 GB/month. It's not intended for serving a production website to the public, it's a development tool. Doubly so for production **streaming**. (You'd also likely run out of bandwidth on your local connection, even if Ngrok didn't.)
José Pablo Pedrosa Dantas avatar
sa flag
Thanks for the advice, my problem is that if i use youtube streaming for example people watching my live will be able to copy the stream url to send to others(by clicking on the player), i don't want it to happen, if i could block the youtube player to watch only i could use it, so i am in a very tough spot right now.
vn flag
Can't they copy the ngrok URL just as easily?
José Pablo Pedrosa Dantas avatar
sa flag
yeah but they don't know much about ngrok, when i use youtube they just click in the watch on youtube link on the player or right click on the frame to copy the link, i was told that my stream was shared i just want to change the player to discourage them to try to get the link.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.