*/ class Livestream extends AbstractService { /** * @return string * @author Soner Sayakci */ public function getName(): string { return 'Livestream'; } /** * @return bool * @author Soner Sayakci */ public function hasServerList(): bool { return true; } /** * @return array * @author Soner Sayakci */ public function getServerList(): array { return [ 'Default' => 'rtmp://rtmpin.livestreamingest.com/rtmpin' ]; } /** * @param Endpoint $endpoint * @return string * @author Soner Sayakci */ public function buildStreamUrl(Endpoint $endpoint): string { return $endpoint->getServer() . '/' . $endpoint->getStreamKey(); } }