forked from rrze-mmz/Tides
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add a resever button - Also change workflows tables Signed-off-by: Stefanos Georgopoulos <[email protected]>
- Loading branch information
1 parent
02d799d
commit 147a8b8
Showing
29 changed files
with
872 additions
and
693 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
|
||
namespace App\Http\Clients; | ||
|
||
use GuzzleHttp\Client; | ||
|
||
class LiveStreamingClient extends Client | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,6 @@ | |
|
||
use GuzzleHttp\Client; | ||
|
||
class WowzaClient extends Client | ||
class StreamingClient extends Client | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?php | ||
|
||
namespace App\Providers; | ||
|
||
use App\Http\Clients\LiveStreamingClient; | ||
use App\Http\Clients\StreamingClient; | ||
use App\Models\Setting; | ||
use Illuminate\Support\ServiceProvider; | ||
|
||
class LiveStreamingServiceProvider extends ServiceProvider | ||
{ | ||
/** | ||
* Register services. | ||
* | ||
* @return void | ||
*/ | ||
public function register() | ||
{ | ||
$this->app->singleton(StreamingClient::class, function () { | ||
$setting = Setting::streaming(); | ||
|
||
$settingsData = $setting->data; | ||
|
||
$authType = config('app.env') === 'local' ? 'basic' : 'digest'; | ||
|
||
return new LiveStreamingClient([ | ||
'base_uri' => $settingsData['wowza']['server2']['api_url'], | ||
'verify' => config('app.env') === 'production', | ||
'auth' => [ | ||
$settingsData['wowza']['server2']['api_username'], | ||
$settingsData['wowza']['server2']['api_password'], | ||
$authType, | ||
], | ||
]); | ||
}); | ||
} | ||
|
||
/** | ||
* Bootstrap services. | ||
* | ||
* @return void | ||
*/ | ||
public function boot() | ||
{ | ||
// | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.