WWBN / AVideo

Create Your Own Broadcast Network With AVideo Platform Open-Source. OAVP OVP
https://avideo.tube/AVideo_OpenSource
Other
1.91k stars 971 forks source link

Live Stream #1914

Closed akhilleusuggo closed 4 years ago

akhilleusuggo commented 5 years ago

When livestream goes ON , doesn't appear on the notification ( list of the live streams ) . It does only when added manually as external stream from 3er party sites

DanielnetoDotCom commented 5 years ago

Did yo check this

image

akhilleusuggo commented 5 years ago

@DanielnetoDotCom Of Course Daniel image

akhilleusuggo commented 5 years ago

it also shows the livestream OFFLINE when it's online image

DanielnetoDotCom commented 5 years ago

how is your stats page, is it https?

here is the demo: https://youphptube.com:444/stat

is it correctly configured in the plugin?

image

akhilleusuggo commented 5 years ago

oho , the stats I have them on port 8088 ( the one on NGINX ) , let me try 444 and tell you

DanielnetoDotCom commented 5 years ago

Port 444 is not mandatory

as long as your nignx https is running on port 8088

akhilleusuggo commented 5 years ago

Yeh , I have tried it with 444 port , the RTMP stats working and but still , the notification is not showing

akhilleusuggo commented 5 years ago

image

DanielnetoDotCom commented 5 years ago

is the https certificate for nignx on port 444 valid?

check for errors on the JS console

akhilleusuggo commented 5 years ago

VIDEOJS: Play middleware has been registered with videojs video.js:142 VIDEOJS: WARN: A plugin named "reloadSourceOnError" already exists. You may want to avoid re-registering plugins! (anonymous) @ video.js:142 adsbygoogle.js:1 Uncaught M video.js:142 VIDEOJS: WARN: videojs.plugin() is deprecated; use videojs.registerPlugin() instead (anonymous) @ video.js:142 video.js:142 VIDEOJS: overlay#mainVideo_component_427: created, listening to "play" for "start" and "timeupdate" for "end" video.js:142 VIDEOJS: overlay#mainVideo_component_427: hidden video.js:142 VIDEOJS: overlay#mainVideo_component427: bound `startListenerto "play" video.js:142 VIDEOJS: overlay#mainVideo_component_427: unboundendListener_from "timeupdate" ?c=AkhilleusUggo:1191 Trying to reconnect on wss://tube.akhilleusuggo.com/wss/ ?c=AkhilleusUggo:1002 A Javascript-error happend. Please tell your admin to clear the folder videos/cache. If this doesn't help, attach these infos to a github-pull-request: Msg:Script error. Url: embed in html, line: 0, Address: /plugin/Live/?c=AkhilleusUggo video.js:142 VIDEOJS: overlay#mainVideo_component_427: shown video.js:142 VIDEOJS: overlay#mainVideo_component_427: unboundstartListener_from "play" video.js:142 VIDEOJS: overlay#mainVideo_component_427: boundendListener_` to "timeupdate" ?c=AkhilleusUggo:1194 Connection established! script.js:34 closeYouTubeMenu

DanielnetoDotCom commented 5 years ago

I can not see anything wrong. is your https certificate valid?

akhilleusuggo commented 5 years ago

@DanielnetoDotCom Ofc , let's encrypt with crons , working with it for over 1 year auto-renew You can check it by yourself https://tube.akhilleusuggo.com

DanielnetoDotCom commented 5 years ago

Ok, is your plugins parameter with this address?

https://tube.akhilleusuggo.com:444/stat

akhilleusuggo commented 5 years ago

image

DanielnetoDotCom commented 5 years ago

In this case, I am not sure, try to check the YouPHPTube error log.

akhilleusuggo commented 5 years ago

[29-Jul-2019 20:30:37 Europe/Helsinki] Page generated in 0.0194 seconds. User: admin - No Cache (/plugin/Live/stats.json.php?Label) FROM: xxx.xxx.xxx Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36 [29-Jul-2019 20:30:38 Europe/Helsinki] PHP Fatal error: Uncaught RuntimeException: Failed to listen on "tcp://0.0.0.0:8888": Address already in use in /var/www/web/YouPHPTube/plugin/LiveChat/ratchet/react/socket/src/TcpServer.php:164 Stack trace:

0 /var/www/web/YouPHPTube/plugin/LiveChat/ratchet/react/socket/src/Server.php(31): React\Socket\TcpServer->__construct('tcp://0.0.0.0:8...', Object(React\EventLoop\StreamSelectLoop), Array)

1 /var/www/web/YouPHPTube/plugin/LiveChat/ratchet/cboden/ratchet/src/Ratchet/Server/IoServer.php(59): React\Socket\Server->__construct('0.0.0.0:8888', Object(React\EventLoop\StreamSelectLoop))

2 /var/www/web/YouPHPTube/plugin/LiveChat/chat-server.php(20): Ratchet\Server\IoServer::factory(Object(Ratchet\Http\HttpServer), '8888')

3 {main}

thrown in /var/www/web/YouPHPTube/plugin/LiveChat/ratchet/react/socket/src/TcpServer.php on line 164 [29-Jul-2019 20:30:38 Europe/Helsinki] Page generated in 0.1101 seconds. User: admin - No Cache (/plugin/Live/?c=AkhilleusUggo) FROM: xxx.xxx.xxx Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36 [29-Jul-2019 20:30:42 Europe/Helsinki] Page generated in 0.0194 seconds. User: admin - No Cache (/plugin/Live/stats.json.php?Menu) FROM: xxx.xxx.xxx Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36

akhilleusuggo commented 5 years ago

Omg , now that I've seen that I have errors on the chat , I went to try it and got even more errors , but does that has anything to do with this ?

DanielnetoDotCom commented 5 years ago

I think I got it

The live stream name should be the stream key. https://github.com/YouPHPTube/YouPHPTube/issues/1382#issuecomment-468976335

image

image

I guess you are redirecting your code somewhere on nginx.conf

akhilleusuggo commented 5 years ago

and how I fix this . I got what you mean , but I haven't modified any redirecting . The only one was from the control panel , redirect all traffic from http to https

DanielnetoDotCom commented 5 years ago

I am not sure, but one time I fixed a similar problem removing the redirect on the .htccess.

maybe you are redirecting on the nginx.conf.

you will need to find out where is it.

akhilleusuggo commented 5 years ago

@DanielnetoDotCom The .htaccess file you've removed , is the one on the /YouPHPTube directory ? Because I'm having 3 of them .htaccess new.htaccess classic.htaccess

PS: Btw NGINX doesn't support .htaccess
On the site it says "You can’t do this. You shouldn’t. If you need .htaccess, you’re probably doing it wrong.")

DanielnetoDotCom commented 5 years ago

I am do not mean remove the .htaccess file, I mean remove the redirect parameter on the .htaccess.

the YouPHPTube default .htaccess does not have any redirect

akhilleusuggo commented 5 years ago

You didn't helped me at all :( Can you guide me to what to do exactly ? What part should I copy/past here so you can get a look at it ? Thank you :)

DanielnetoDotCom commented 5 years ago

Did you change the original .htaccess?

do you have something redirecting your NGINX site?

I would guess when you installed the SSL, on nginx, you add a redirect rule from http to https

akhilleusuggo commented 5 years ago

Let me show you:

http {
            include       mime.types;
            default_type  application/octet-stream;
            server {
                    listen 8088;
                    listen 444 ssl;
                    server_name example.com;
                    ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
                    ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
                    #creates the http-location for our full-resolution (desktop) HLS stream - "http://my-ip/live/my-stream-key/index.m3u8"   $
                    location /live {
                            # Disable cache
                            add_header 'Cache-Control' 'no-cache';
TrippyTubeTV commented 5 years ago

I am having the same issue. Did you ever find a resolution?

akhilleusuggo commented 5 years ago

@TrippyTubeTV #1945

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.