diff --git a/src/Component/Services/Facebook.php b/src/Component/Services/Facebook.php new file mode 100644 index 0000000..7194910 --- /dev/null +++ b/src/Component/Services/Facebook.php @@ -0,0 +1,51 @@ + + */ +class Facebook extends AbstractService +{ + /** + * @return string + * @author Soner Sayakci + */ + public function getName(): string + { + return 'Facebook'; + } + + /** + * @return bool + * @author Soner Sayakci + */ + public function hasServerList(): bool + { + return true; + } + + /** + * @return array + * @author Soner Sayakci + */ + public function getServerList(): array + { + return [ + 'Facebook Streaming' => 'rtmp://live-api.facebook.com:80/rtmp/' + ]; + } + + /** + * @param Endpoint $endpoint + * @return string + * @author Soner Sayakci + */ + public function buildStreamUrl(Endpoint $endpoint): string + { + return $endpoint->getServer() . $endpoint->getStreamKey(); + } +} \ No newline at end of file