ReCast is a multi platform restreaming tool, you can stream with one servers to multiple services
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

52 lines
995 B

<?php
namespace App\Component\Services;
use App\Entity\Endpoint;
/**
* Class Youtube
* @author Soner Sayakci <shyim@posteo.de>
*/
class GoodGame extends AbstractService
{
/**
* @return string
* @author Soner Sayakci <shyim@posteo.de>
*/
public function getName(): string
{
return 'GoodGame';
}
/**
* @return bool
* @author Soner Sayakci <shyim@posteo.de>
*/
public function hasServerList(): bool
{
return true;
}
/**
* @return array
* @author Soner Sayakci <shyim@posteo.de>
*/
public function getServerList(): array
{
return [
'Moscow' => 'rtmp://msk.goodgame.ru:1940/live'
];
}
/**
* @param Endpoint $endpoint
* @return string
* @author Soner Sayakci <shyim@posteo.de>
*/
public function buildStreamUrl(Endpoint $endpoint): string
{
return $endpoint->getServer() . '/' . $endpoint->getStreamKey();
}
}