mirror of
https://github.com/r4sas/recastin-panel
synced 2025-03-12 13:21:14 +00:00
Added facebook streaming
This commit is contained in:
parent
5ae7e73634
commit
94ef4e8842
51
src/Component/Services/Facebook.php
Normal file
51
src/Component/Services/Facebook.php
Normal file
@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
namespace App\Component\Services;
|
||||
|
||||
use App\Entity\Endpoint;
|
||||
|
||||
/**
|
||||
* Class Facebook
|
||||
* @author Soner Sayakci <shyim@posteo.de>
|
||||
*/
|
||||
class Facebook extends AbstractService
|
||||
{
|
||||
/**
|
||||
* @return string
|
||||
* @author Soner Sayakci <shyim@posteo.de>
|
||||
*/
|
||||
public function getName(): string
|
||||
{
|
||||
return 'Facebook';
|
||||
}
|
||||
|
||||
/**
|
||||
* @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 [
|
||||
'Facebook Streaming' => 'rtmp://live-api.facebook.com:80/rtmp/'
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Endpoint $endpoint
|
||||
* @return string
|
||||
* @author Soner Sayakci <shyim@posteo.de>
|
||||
*/
|
||||
public function buildStreamUrl(Endpoint $endpoint): string
|
||||
{
|
||||
return $endpoint->getServer() . $endpoint->getStreamKey();
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user