mirror of
https://github.com/r4sas/recastin-panel
synced 2025-03-12 13:21:14 +00:00
add composer, new services
This commit is contained in:
parent
f87b1efe56
commit
f8f0914dc9
BIN
composer.phar
Executable file
BIN
composer.phar
Executable file
Binary file not shown.
53
src/Component/Services/CyberGameTV.php
Normal file
53
src/Component/Services/CyberGameTV.php
Normal file
@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace App\Component\Services;
|
||||
|
||||
use App\Entity\Endpoint;
|
||||
|
||||
/**
|
||||
* Class Youtube
|
||||
* @author Soner Sayakci <shyim@posteo.de>
|
||||
*/
|
||||
class CyberGameTV extends AbstractService
|
||||
{
|
||||
/**
|
||||
* @return string
|
||||
* @author Soner Sayakci <shyim@posteo.de>
|
||||
*/
|
||||
public function getName(): string
|
||||
{
|
||||
return 'CyberGame.TV';
|
||||
}
|
||||
|
||||
/**
|
||||
* @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 [
|
||||
'RU Origin' => 'rtmp://st.cybergame.tv:1953/live',
|
||||
'RU Premium' => 'rtmp://premium.cybergame.tv:1953/premium'
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Endpoint $endpoint
|
||||
* @return string
|
||||
* @author Soner Sayakci <shyim@posteo.de>
|
||||
*/
|
||||
public function buildStreamUrl(Endpoint $endpoint): string
|
||||
{
|
||||
return $endpoint->getServer() . '/' . $endpoint->getStreamKey();
|
||||
}
|
||||
}
|
52
src/Component/Services/GoodGame.php
Normal file
52
src/Component/Services/GoodGame.php
Normal file
@ -0,0 +1,52 @@
|
||||
<?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();
|
||||
}
|
||||
}
|
52
src/Component/Services/Livestream.php
Normal file
52
src/Component/Services/Livestream.php
Normal file
@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace App\Component\Services;
|
||||
|
||||
use App\Entity\Endpoint;
|
||||
|
||||
/**
|
||||
* Class Youtube
|
||||
* @author Soner Sayakci <shyim@posteo.de>
|
||||
*/
|
||||
class Livestream extends AbstractService
|
||||
{
|
||||
/**
|
||||
* @return string
|
||||
* @author Soner Sayakci <shyim@posteo.de>
|
||||
*/
|
||||
public function getName(): string
|
||||
{
|
||||
return 'Livestream';
|
||||
}
|
||||
|
||||
/**
|
||||
* @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 [
|
||||
'Default' => 'rtmp://rtmpin.livestreamingest.com/rtmpin'
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Endpoint $endpoint
|
||||
* @return string
|
||||
* @author Soner Sayakci <shyim@posteo.de>
|
||||
*/
|
||||
public function buildStreamUrl(Endpoint $endpoint): string
|
||||
{
|
||||
return $endpoint->getServer() . '/' . $endpoint->getStreamKey();
|
||||
}
|
||||
}
|
52
src/Component/Services/StreamLive.php
Normal file
52
src/Component/Services/StreamLive.php
Normal file
@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace App\Component\Services;
|
||||
|
||||
use App\Entity\Endpoint;
|
||||
|
||||
/**
|
||||
* Class Youtube
|
||||
* @author Soner Sayakci <shyim@posteo.de>
|
||||
*/
|
||||
class StreamLive extends AbstractService
|
||||
{
|
||||
/**
|
||||
* @return string
|
||||
* @author Soner Sayakci <shyim@posteo.de>
|
||||
*/
|
||||
public function getName(): string
|
||||
{
|
||||
return 'Stream.Live';
|
||||
}
|
||||
|
||||
/**
|
||||
* @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 [
|
||||
'Default' => 'rtmp://media.stream.live:1935/live'
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Endpoint $endpoint
|
||||
* @return string
|
||||
* @author Soner Sayakci <shyim@posteo.de>
|
||||
*/
|
||||
public function buildStreamUrl(Endpoint $endpoint): string
|
||||
{
|
||||
return $endpoint->getServer() . '/' . $endpoint->getStreamKey();
|
||||
}
|
||||
}
|
56
src/Component/Services/StreamMe.php
Normal file
56
src/Component/Services/StreamMe.php
Normal file
@ -0,0 +1,56 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace App\Component\Services;
|
||||
|
||||
use App\Entity\Endpoint;
|
||||
|
||||
/**
|
||||
* Class Youtube
|
||||
* @author Soner Sayakci <shyim@posteo.de>
|
||||
*/
|
||||
class StreamMe extends AbstractService
|
||||
{
|
||||
/**
|
||||
* @return string
|
||||
* @author Soner Sayakci <shyim@posteo.de>
|
||||
*/
|
||||
public function getName(): string
|
||||
{
|
||||
return 'Stream.me';
|
||||
}
|
||||
|
||||
/**
|
||||
* @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 [
|
||||
'US, Central' => 'rtmp://uc-origin.stream.me/origin',
|
||||
'US, East' => 'rtmp://ue-origin.stream.me/origin',
|
||||
'US, West' => 'rtmp://uw-origin.stream.me/origin',
|
||||
'Europe, West' => 'rtmp://ew-origin.stream.me/origin',
|
||||
'Asia, East' => 'rtmp://ae-origin.stream.me/origin'
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Endpoint $endpoint
|
||||
* @return string
|
||||
* @author Soner Sayakci <shyim@posteo.de>
|
||||
*/
|
||||
public function buildStreamUrl(Endpoint $endpoint): string
|
||||
{
|
||||
return $endpoint->getServer() . '/' . $endpoint->getStreamKey();
|
||||
}
|
||||
}
|
52
src/Component/Services/Vimeo.php
Normal file
52
src/Component/Services/Vimeo.php
Normal file
@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace App\Component\Services;
|
||||
|
||||
use App\Entity\Endpoint;
|
||||
|
||||
/**
|
||||
* Class Youtube
|
||||
* @author Soner Sayakci <shyim@posteo.de>
|
||||
*/
|
||||
class Vimeo extends AbstractService
|
||||
{
|
||||
/**
|
||||
* @return string
|
||||
* @author Soner Sayakci <shyim@posteo.de>
|
||||
*/
|
||||
public function getName(): string
|
||||
{
|
||||
return 'Vimeo';
|
||||
}
|
||||
|
||||
/**
|
||||
* @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 [
|
||||
'Default' => 'rtmp://rtmp.cloud.vimeo.com/live'
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Endpoint $endpoint
|
||||
* @return string
|
||||
* @author Soner Sayakci <shyim@posteo.de>
|
||||
*/
|
||||
public function buildStreamUrl(Endpoint $endpoint): string
|
||||
{
|
||||
return $endpoint->getServer() . '/' . $endpoint->getStreamKey();
|
||||
}
|
||||
}
|
@ -36,7 +36,8 @@ class Youtube extends AbstractService
|
||||
public function getServerList(): array
|
||||
{
|
||||
return [
|
||||
'Live Streaming' => 'rtmp://a.rtmp.youtube.com/live2'
|
||||
'Live Streaming' => 'rtmp://a.rtmp.youtube.com/live2',
|
||||
'Live Streaming (backup)' => 'rtmp://b.rtmp.youtube.com/live2'
|
||||
];
|
||||
}
|
||||
|
||||
@ -49,4 +50,4 @@ class Youtube extends AbstractService
|
||||
{
|
||||
return $endpoint->getServer() . '/' . $endpoint->getStreamKey();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user