I have a system to make live shows and transmissions with OBS Studio, where basically with the application, you create your live show on my system, using the transmission key and the server, you place it in OBS Studio and the live show works well. But, they have asked me that the user does not have to enter OBS Studio to create the live stream. That is, the direct can be created from the same system.
Comment that I use PUSHR as a content distributor. This is the function that creates the Stream.
This is the function that creates the stream:
$options = name, portada….
$httpClient = new Client();
// disabled SSL
$httpClientConfig = [
'verify' => false,
];
$createStreamingRequest = $httpClient->request(
'POST',
self::PUSHR_API_ENDPOINT . '/stream',
[
'headers' => [
'Accept' => 'application/json',
'APIKEY' => $apikey_pushr,
],
'form_params' => array_merge([
'action' => 'create',
'zone' => $zone_pushr,
'name' => $options['name'],
], $options['settings']),
'http_errors' => false, te
] + $httpClientConfig
);
return json_decode($createStreamingRequest->getBody(), true);
If it is possible to create streams with OBS Studio as a user without having the application?