arut / nginx-rtmp-module

NGINX-based Media Streaming Server
http://nginx-rtmp.blogspot.com
BSD 2-Clause "Simplified" License
13.45k stars 3.52k forks source link

Issue when using the RTMP plugin with YouPHPTube for livestream #1336

Open siniztr opened 5 years ago

siniztr commented 5 years ago

Good day,

Allow me to explain the current setup: Ubuntu 18.04 Apache2 running website youPHPtube SSL Enabled for website NGINX 1.13.8 with RTMP Module 1.1.4 STATS page also on SSL

The youPHPtube is set to look for livestreams using it's livestream key, but with my current set up, instead of it showing the key as the streamname, it is showing with the on_publish.php address. This is how it shows with my setup: stat xml for youphptube-livestream

This is how it should show:

At first we (I was also in contact with the developers from youPHPtube) thought it was because I was using a higher version of NGINX. At first I had 1.15. So I removed and compiled for 1.13.8 as recommended by the developer. Tried again and am still getting the same issue.

For the rest the website works fine. The live stream works fine as well, however because the website script is not recognizing the stream name from stats, it is not showing as an available live stream. However, if you go directly to the link address, the stream works.

Details on what has been done can be seen my youPHPtube issue.

MalcolmMerlyn commented 5 years ago

I have this exact same issue, did you figure out the cause of it?

winshining commented 5 years ago

The module doesn't support HTTPS, see ngx_rtmp_notify_parse_url in ngx_rtmp_notify_module.c:

if (ngx_strncasecmp(url->data, (u_char *) "http://", 7) == 0) {
    add = 7;
}

So if https is specified, add is 0 (8 is expected), the url will be incorrectly parsed.

Puyodead1 commented 5 years ago

Having the same issue. image

cwchristerw commented 5 years ago

You cannot have rtmp to website directly and you should configure hls or dash on your rtmp server. Then you should how it's should be connected to youphpTube