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.
Merge pull request rrze-mmz#94 from rrze-mmz/87-make-a-hidden-livestr…
…eam-reservation-for-admin-feedback Implement hidden livestreams
- Loading branch information
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.