I followed the same doc but ported the script to php.
Every time I try to connect via Obs i get the invalid(signature match) error.
- I created an application "myapp"
- I added "myapp" to the control section with pw 55555
- generated my signature
$uuid = Uuid::uuid5(Uuid::NAMESPACE_DNS,'example.org');
$id = $uuid->toString();
$password = "55555";
$stream_name = '/myapp/live';
$hash = md5($id . $stream_name . $password);
$base64Hash = base64_encode($hash);
$urlsignature = "id=" . $id . "&sign=" . $base64Hash;
$base64urlsignature = base64_encode($urlsignature);
$initial_url = "rtmp://192.168.178.45:27001".$stream_name;
$signedurlwithvalidinterval = $initial_url ."?publishsign=" . $base64urlsignature;
print $signedurlwithvalidinterval;
rtmp://192.168.178.45:27001/myapp/live?publishsign=aWQ9YWFkMDM2ODEtOGI2My01MzA0LTg5ZTAtOGNhOGY0OTQ2MWI1JnNpZ249WlRFNU9EQXlNMlV6WXpjM05HUTJZemhoT0RoaU0yRmtNREUyWldNeFpqST0=
- configured Obs:
url = rtmp://192.168.178.45:27001/myapp?publishsign=aWQ9YWFkMDM2ODEtOGI2My01MzA0LTg5ZTAtOGNhOGY0OTQ2MWI1JnNpZ249WlRFNU9EQXlNMlV6WXpjM05HUTJZemhoT0RoaU0yRmtNREUyWldNeFpqST0=
key = live
(I also tried other combinations but non of them work