1. Go to this page and download the library: Download rajibul/lolipop-sfu library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
use Rajibul\LolipopSfu\Facades\Lolipop;
Lolipop::broadcastMessage(
roomId: 'room_101',
senderId: 'system',
senderName: 'Admin',
message: 'Stream rule notice: Be respectful in the live chat!',
level: 'warning'
);
use Rajibul\LolipopSfu\Facades\Lolipop;
if (Lolipop::getHealth()) {
// SFU Media Server is healthy and accepting connections
}