Browse Source

add composer, new services

master
R4SAS 6 years ago
parent
commit
f8f0914dc9
  1. BIN
      composer.phar
  2. 53
      src/Component/Services/CyberGameTV.php
  3. 52
      src/Component/Services/GoodGame.php
  4. 52
      src/Component/Services/Livestream.php
  5. 52
      src/Component/Services/StreamLive.php
  6. 56
      src/Component/Services/StreamMe.php
  7. 52
      src/Component/Services/Vimeo.php
  8. 3
      src/Component/Services/Youtube.php

BIN
composer.phar

Binary file not shown.

53
src/Component/Services/CyberGameTV.php

@ -0,0 +1,53 @@ @@ -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

@ -0,0 +1,52 @@ @@ -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

@ -0,0 +1,52 @@ @@ -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

@ -0,0 +1,52 @@ @@ -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

@ -0,0 +1,56 @@ @@ -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

@ -0,0 +1,52 @@ @@ -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();
}
}

3
src/Component/Services/Youtube.php

@ -36,7 +36,8 @@ class Youtube extends AbstractService @@ -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'
];
}

Loading…
Cancel
Save