"Stream stopped. undefined" error message when trying to livestream in WebRTC way
Describe the question Cannot livestream in WebRTC way.
Screenshots The process of my operation below
And below is the process.
guest status
remember passwd
Go Live button
my desktop has no camera, so I turned to screen blue button
connecting...
Undefined appeared.
Currently, basic modules are all OK. They are green from the Health Check module. RTMP is also OK, https://mydomain.tld:8443/stat accessible.
I just came across two or three times "success", by which I mean the Undefined brown alert didn't appear, like this below. There is no Go Live green button, just a Stop button, like in the demo/instruction.
And how do I know I really streamlived? Where to watch?

When you try to go live check your AVideo logs and share them here
When you try to go live check your AVideo logs and share them here
OK.
I cleared the log file by sudo bash -c "cat /dev/null > /var/www/html/AVideo/videos/avideo.log".
Then went to Plugin page and checked the WebRTC status, which showed Server Status: connected (green).
After that clicked the menu on the top right to Go Live, setting camera source to be the blue button Screen, and pressing the green button Go Live.
After a while, on the bottom left corner there was a brown alert Stream stopped. undefined, the error message.
Here are the logs
[20-Apr-2025 07:08:02 Africa/Abidjan] myMySQLDatabaseLog::DEBUG: Live::getStatsObject[0] 5: forced to be recreated done [{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/Live\/Live.php","line":2165,"function":"getStatsObject","class":"Live","object":{},"type":"->","args":[0,true]},{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/Live\/Live.php","line":1827,"function":"_getStats","class":"Live","type":"::","args":[0,true]},{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/Live\/Live.php","line":1772,"function":"getStats","class":"Live","type":"::","args":[true]},{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/Live\/Live.php","line":1745,"function":"getStatsApplications","class":"Live","type":"::","args":[true]},{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/Live\/Live.php","line":1696,"function":"unfinishAllFromStats","class":"Live","type":"::","args":[true]},{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/Live\/Live.php","line":4283,"function":"checkAllFromStats","class":"Live","type":"::","args":[true]},{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/myMySQLDatabasePlugin.php","line":3162,"function":"executeEveryMinute","class":"Live","object":{},"type":"->","args":[]},{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/Scheduler\/run.php","line":85,"function":"executeEveryMinute","class":"myMySQLDatabasePlugin","type":"::","args":[]}] SCRIPT_NAME: path/to/my/streamer/site/plugin/Scheduler/run.php
[20-Apr-2025 07:08:02 Africa/Abidjan] myMySQLDatabaseLog::DEBUG: Live::getStatsObject[0] 5: forced to be recreated SCRIPT_NAME: path/to/my/streamer/site/plugin/Scheduler/run.php
[20-Apr-2025 07:08:02 Africa/Abidjan] myMySQLDatabaseLog::DEBUG: WebRTC::checkAndUpdate: You are already running the latest version. SCRIPT_NAME: path/to/my/streamer/site/plugin/Scheduler/run.php
[20-Apr-2025 15:07:31 Asia/Shanghai] myMySQLDatabaseLog::DEBUG: Live::getInfo LiveStreamObject= => , , , SCRIPT_NAME: /plugin/Live/latestOrLive.php
[20-Apr-2025 15:07:30 Asia/Shanghai] myMySQLDatabaseLog::DEBUG: contentSearchFound NOT FOUND LAST TOTAL SQL SELECT count(v.id) as total FROM videos v LEFT JOIN categories c ON categories_id = c.id LEFT JOIN users u ON v.users_id = u.id WHERE 1=1 AND u.status = 'a' AND v.status IN ('a','k','f','h') SCRIPT_NAME: /view/index.php
[20-Apr-2025 15:07:30 Asia/Shanghai] myMySQLDatabaseLog::DEBUG: contentSearchFound NOT FOUND LAST SQL SELECT STRAIGHT_JOIN u.*, u.externalOptions as userExternalOptions, v.*, nv.title as next_title, nv.clean_title as next_clean_title, nv.filename as next_filename, nv.id as next_id, c.id as category_id,c.iconClass,c.name as category,c.iconClass, c.clean_name as clean_category,c.description as category_description, v.created as videoCreation , (SELECT `like` FROM likes as l where l.videos_id = v.id AND users_id = '1' LIMIT 1 ) as myVote FROM videos as v LEFT JOIN categories c ON categories_id = c.id LEFT JOIN users u ON v.users_id = u.id LEFT JOIN videos nv ON v.next_videos_id = nv.id WHERE 1=1 AND u.status = 'a' AND ( v.status IN ('a','k','f','h') ) AND v.id != 1 LIMIT 0, 1 SCRIPT_NAME: /view/index.php
[20-Apr-2025 15:07:30 Asia/Shanghai] myMySQLDatabaseLog::DEBUG: contentSearchFound NOT FOUND [{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/Gallery\/view\/modeGallery.php","line":21,"function":"include"},{"file":"\/var\/www\/html\/myMySQLDatabase\/view\/index_firstPage.php","line":58,"args":["\/var\/www\/html\/myMySQLDatabase\/plugin\/Gallery\/view\/modeGallery.php"],"function":"require"},{"file":"\/var\/www\/html\/myMySQLDatabase\/view\/index.php","line":25,"args":["\/var\/www\/html\/myMySQLDatabase\/view\/index_firstPage.php"],"function":"include"}] SCRIPT_NAME: /view/index.php
[20-Apr-2025 07:07:01 Africa/Abidjan] myMySQLDatabaseLog::DEBUG: Live::getStatsObject[0] 5: forced to be recreated done [{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/Live\/Live.php","line":2165,"function":"getStatsObject","class":"Live","object":{},"type":"->","args":[0,true]},{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/Live\/Live.php","line":1827,"function":"_getStats","class":"Live","type":"::","args":[0,true]},{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/Live\/Live.php","line":1772,"function":"getStats","class":"Live","type":"::","args":[true]},{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/Live\/Live.php","line":1745,"function":"getStatsApplications","class":"Live","type":"::","args":[true]},{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/Live\/Live.php","line":1696,"function":"unfinishAllFromStats","class":"Live","type":"::","args":[true]},{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/Live\/Live.php","line":4283,"function":"checkAllFromStats","class":"Live","type":"::","args":[true]},{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/myMySQLDatabasePlugin.php","line":3162,"function":"executeEveryMinute","class":"Live","object":{},"type":"->","args":[]},{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/Scheduler\/run.php","line":85,"function":"executeEveryMinute","class":"myMySQLDatabasePlugin","type":"::","args":[]}] SCRIPT_NAME: path/to/my/streamer/site/plugin/Scheduler/run.php
[20-Apr-2025 07:07:01 Africa/Abidjan] myMySQLDatabaseLog::DEBUG: Live::getStatsObject[0] 5: forced to be recreated SCRIPT_NAME: path/to/my/streamer/site/plugin/Scheduler/run.php
[20-Apr-2025 07:07:01 Africa/Abidjan] myMySQLDatabaseLog::DEBUG: WebRTC::checkAndUpdate: You are already running the latest version. SCRIPT_NAME: path/to/my/streamer/site/plugin/Scheduler/run.php
[20-Apr-2025 07:06:01 Africa/Abidjan] myMySQLDatabaseLog::DEBUG: Live::getStatsObject[0] 5: forced to be recreated done [{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/Live\/Live.php","line":2165,"function":"getStatsObject","class":"Live","object":{},"type":"->","args":[0,true]},{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/Live\/Live.php","line":1827,"function":"_getStats","class":"Live","type":"::","args":[0,true]},{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/Live\/Live.php","line":1772,"function":"getStats","class":"Live","type":"::","args":[true]},{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/Live\/Live.php","line":1745,"function":"getStatsApplications","class":"Live","type":"::","args":[true]},{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/Live\/Live.php","line":1696,"function":"unfinishAllFromStats","class":"Live","type":"::","args":[true]},{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/Live\/Live.php","line":4283,"function":"checkAllFromStats","class":"Live","type":"::","args":[true]},{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/myMySQLDatabasePlugin.php","line":3162,"function":"executeEveryMinute","class":"Live","object":{},"type":"->","args":[]},{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/Scheduler\/run.php","line":85,"function":"executeEveryMinute","class":"myMySQLDatabasePlugin","type":"::","args":[]}] SCRIPT_NAME: path/to/my/streamer/site/plugin/Scheduler/run.php
[20-Apr-2025 07:06:01 Africa/Abidjan] myMySQLDatabaseLog::DEBUG: Live::getStatsObject[0] 5: forced to be recreated SCRIPT_NAME: path/to/my/streamer/site/plugin/Scheduler/run.php
[20-Apr-2025 07:06:01 Africa/Abidjan] myMySQLDatabaseLog::DEBUG: WebRTC::checkAndUpdate: You are already running the latest version. SCRIPT_NAME: path/to/my/streamer/site/plugin/Scheduler/run.php
[20-Apr-2025 07:05:01 Africa/Abidjan] myMySQLDatabaseLog::DEBUG: Live::getStatsObject[0] 5: forced to be recreated done [{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/Live\/Live.php","line":2165,"function":"getStatsObject","class":"Live","object":{},"type":"->","args":[0,true]},{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/Live\/Live.php","line":1827,"function":"_getStats","class":"Live","type":"::","args":[0,true]},{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/Live\/Live.php","line":1772,"function":"getStats","class":"Live","type":"::","args":[true]},{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/Live\/Live.php","line":1745,"function":"getStatsApplications","class":"Live","type":"::","args":[true]},{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/Live\/Live.php","line":1696,"function":"unfinishAllFromStats","class":"Live","type":"::","args":[true]},{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/Live\/Live.php","line":4283,"function":"checkAllFromStats","class":"Live","type":"::","args":[true]},{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/myMySQLDatabasePlugin.php","line":3162,"function":"executeEveryMinute","class":"Live","object":{},"type":"->","args":[]},{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/Scheduler\/run.php","line":85,"function":"executeEveryMinute","class":"myMySQLDatabasePlugin","type":"::","args":[]}] SCRIPT_NAME: path/to/my/streamer/site/plugin/Scheduler/run.php
[20-Apr-2025 07:05:01 Africa/Abidjan] myMySQLDatabaseLog::DEBUG: Live::getStatsObject[0] 5: forced to be recreated SCRIPT_NAME: path/to/my/streamer/site/plugin/Scheduler/run.php
[20-Apr-2025 07:05:01 Africa/Abidjan] myMySQLDatabaseLog::DEBUG: WebRTC::checkAndUpdate: You are already running the latest version. SCRIPT_NAME: path/to/my/streamer/site/plugin/Scheduler/run.php
[20-Apr-2025 07:04:01 Africa/Abidjan] myMySQLDatabaseLog::DEBUG: Live::getStatsObject[0] 5: forced to be recreated done [{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/Live\/Live.php","line":2165,"function":"getStatsObject","class":"Live","object":{},"type":"->","args":[0,true]},{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/Live\/Live.php","line":1827,"function":"_getStats","class":"Live","type":"::","args":[0,true]},{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/Live\/Live.php","line":1772,"function":"getStats","class":"Live","type":"::","args":[true]},{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/Live\/Live.php","line":1745,"function":"getStatsApplications","class":"Live","type":"::","args":[true]},{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/Live\/Live.php","line":1696,"function":"unfinishAllFromStats","class":"Live","type":"::","args":[true]},{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/Live\/Live.php","line":4283,"function":"checkAllFromStats","class":"Live","type":"::","args":[true]},{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/myMySQLDatabasePlugin.php","line":3162,"function":"executeEveryMinute","class":"Live","object":{},"type":"->","args":[]},{"file":"\/var\/www\/html\/myMySQLDatabase\/plugin\/Scheduler\/run.php","line":85,"function":"executeEveryMinute","class":"myMySQLDatabasePlugin","type":"::","args":[]}] SCRIPT_NAME: path/to/my/streamer/site/plugin/Scheduler/run.php
[20-Apr-2025 07:04:01 Africa/Abidjan] myMySQLDatabaseLog::DEBUG: Live::getStatsObject[0] 5: forced to be recreated SCRIPT_NAME: path/to/my/streamer/site/plugin/Scheduler/run.php
[20-Apr-2025 07:04:01 Africa/Abidjan] myMySQLDatabaseLog::DEBUG: WebRTC::checkAndUpdate: You are already running the latest version. SCRIPT_NAME: path/to/my/streamer/site/plugin/Scheduler/run.php
[20-Apr-2025 15:03:58 Asia/Shanghai] Connection to 127.0.0.1 3000 port [tcp/*] succeeded!
In the logs you shared there is not live connection attempt.
In the logs you shared there is not live connection attempt.
So I need to wait for a while after the brown color alert appeared?
I'll try again.
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.