mirror of https://github.com/sualko/cloud_bbb
Compare commits
No commits in common. "73e6e482554475b2ab14d165ac3e7696fe4a8865" and "ad9a5b1d38c2a5841443dd32fe61849c926dd3ea" have entirely different histories.
73e6e48255
...
ad9a5b1d38
|
@ -26,9 +26,6 @@ OC.L10N.register(
|
|||
"Save" : "Salva",
|
||||
"Show room manager in app navigation instead of settings page." : "Mostra il gestore della stanza nella pagina di navigazione dell'applicazioni invece della pagina delle impostazioni.",
|
||||
"Use Nextcloud theme in BigBlueButton." : "Usa il tema di Nextcloud in BigBlueButton.",
|
||||
"Default Room Settings" : "Impostazioni predefinite della stanza",
|
||||
"Below you can change some default values, which are used to create a new room." : "Sotto puoi cambiare alcuni valori predefiniti che vengono usati per creare una stanza nuova.",
|
||||
"Perform media check before usage" : "Fai un controllo del media prima dell'uso",
|
||||
"Community" : "Comunità",
|
||||
"Are you enjoying this app? Give something back to the open source community." : "Ti piace questa applicazione? Restituisci qualcosa alla comunità open source.",
|
||||
"Checkout the contributor guide" : "Controlla la guida del collaboratore",
|
||||
|
|
|
@ -24,9 +24,6 @@
|
|||
"Save" : "Salva",
|
||||
"Show room manager in app navigation instead of settings page." : "Mostra il gestore della stanza nella pagina di navigazione dell'applicazioni invece della pagina delle impostazioni.",
|
||||
"Use Nextcloud theme in BigBlueButton." : "Usa il tema di Nextcloud in BigBlueButton.",
|
||||
"Default Room Settings" : "Impostazioni predefinite della stanza",
|
||||
"Below you can change some default values, which are used to create a new room." : "Sotto puoi cambiare alcuni valori predefiniti che vengono usati per creare una stanza nuova.",
|
||||
"Perform media check before usage" : "Fai un controllo del media prima dell'uso",
|
||||
"Community" : "Comunità",
|
||||
"Are you enjoying this app? Give something back to the open source community." : "Ti piace questa applicazione? Restituisci qualcosa alla comunità open source.",
|
||||
"Checkout the contributor guide" : "Controlla la guida del collaboratore",
|
||||
|
|
|
@ -9,17 +9,14 @@ use BigBlueButton\Parameters\DeleteRecordingsParameters;
|
|||
use BigBlueButton\Parameters\GetRecordingsParameters;
|
||||
use BigBlueButton\Parameters\IsMeetingRunningParameters;
|
||||
use BigBlueButton\Parameters\JoinMeetingParameters;
|
||||
use OCA\BigBlueButton\AppInfo\Application;
|
||||
use OCA\BigBlueButton\Crypto;
|
||||
use OCA\BigBlueButton\Db\Room;
|
||||
use OCA\BigBlueButton\Event\MeetingStartedEvent;
|
||||
use OCA\BigBlueButton\UrlHelper;
|
||||
use OCP\App\IAppManager;
|
||||
use OCP\Defaults;
|
||||
use OCP\EventDispatcher\IEventDispatcher;
|
||||
use OCP\IConfig;
|
||||
use OCP\IL10N;
|
||||
use OCP\IRequest;
|
||||
use OCP\IURLGenerator;
|
||||
|
||||
class API {
|
||||
|
@ -47,12 +44,6 @@ class API {
|
|||
/** @var Defaults */
|
||||
private $defaults;
|
||||
|
||||
/** @var IAppManager */
|
||||
private $appManager;
|
||||
|
||||
/** @var IRequest */
|
||||
private $request;
|
||||
|
||||
public function __construct(
|
||||
IConfig $config,
|
||||
IURLGenerator $urlGenerator,
|
||||
|
@ -60,9 +51,7 @@ class API {
|
|||
IEventDispatcher $eventDispatcher,
|
||||
IL10N $l10n,
|
||||
UrlHelper $urlHelper,
|
||||
Defaults $defaults,
|
||||
IAppManager $appManager,
|
||||
IRequest $request
|
||||
Defaults $defaults
|
||||
) {
|
||||
$this->config = $config;
|
||||
$this->urlGenerator = $urlGenerator;
|
||||
|
@ -71,8 +60,6 @@ class API {
|
|||
$this->l10n = $l10n;
|
||||
$this->urlHelper = $urlHelper;
|
||||
$this->defaults = $defaults;
|
||||
$this->appManager = $appManager;
|
||||
$this->request = $request;
|
||||
}
|
||||
|
||||
private function getServer(): BigBlueButton {
|
||||
|
@ -163,10 +150,6 @@ class API {
|
|||
$createMeetingParams->setLogoutUrl($this->urlGenerator->getBaseUrl());
|
||||
$createMeetingParams->setMuteOnStart($room->getJoinMuted());
|
||||
|
||||
$createMeetingParams->addMeta('bbb-origin-version', $this->appManager->getAppVersion(Application::ID));
|
||||
$createMeetingParams->addMeta('bbb-origin', \method_exists($this->defaults, 'getProductName') ? $this->defaults->getProductName() : 'Nextcloud');
|
||||
$createMeetingParams->addMeta('bbb-origin-server-name', $this->request->getServerHost());
|
||||
|
||||
$mac = $this->crypto->calculateHMAC($room->uid);
|
||||
|
||||
$endMeetingUrl = $this->urlGenerator->linkToRouteAbsolute('bbb.hook.meetingEnded', ['token' => $room->uid, 'mac' => $mac]);
|
||||
|
|
|
@ -82,7 +82,7 @@ class RoomService {
|
|||
public function create(string $name, string $welcome, int $maxParticipants, bool $record, string $access, string $userId): \OCP\AppFramework\Db\Entity {
|
||||
$room = new Room();
|
||||
|
||||
$mediaCheck = $this->config->getAppValue('bbb', 'join.mediaCheck', 'true') === 'true';
|
||||
$mediaCheck = $this->config->getAppValue('bbb', 'join.mediaCheck') === 'true';
|
||||
|
||||
$room->setUid(\OC::$server->getSecureRandom()->generate(16, \OCP\Security\ISecureRandom::CHAR_HUMAN_READABLE));
|
||||
$room->setName($name);
|
||||
|
|
|
@ -30,7 +30,7 @@ class Admin implements ISettings {
|
|||
'app.navigation' => $this->config->getAppValue('bbb', 'app.navigation') === 'true' ? 'checked' : '',
|
||||
'join.theme' => $this->config->getAppValue('bbb', 'join.theme') === 'true' ? 'checked' : '',
|
||||
'app.shortener' => $this->config->getAppValue('bbb', 'app.shortener'),
|
||||
'join.mediaCheck' => $this->config->getAppValue('bbb', 'join.mediaCheck', 'true') === 'true' ? 'checked' : '',
|
||||
'join.mediaCheck' => $this->config->getAppValue('bbb', 'join.mediaCheck') === 'true' ? 'checked' : '',
|
||||
];
|
||||
|
||||
return new TemplateResponse('bbb', 'admin', $parameters);
|
||||
|
|
Loading…
Reference in New Issue