From 362b9de835ea9b40bbacb62f84ab4a1cb83e5fbd Mon Sep 17 00:00:00 2001 From: Alba Date: Mon, 29 Jul 2024 18:36:58 +0200 Subject: [PATCH] Change default player and fix errors --- Controller/MediaPackageController.php | 2 +- Resources/doc/Configuration.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Controller/MediaPackageController.php b/Controller/MediaPackageController.php index 469b887..8c9a5ac 100644 --- a/Controller/MediaPackageController.php +++ b/Controller/MediaPackageController.php @@ -121,7 +121,7 @@ public function importAction(Request $request, string $id): RedirectResponse throw new AccessDeniedException('Not allowed. Configure your OpencastBundle to show the Importer Tab.'); } - $this->opencastImportService->importRecording($id, $request->get('invert'), $this->getUser()); + $this->opencastImportService->importRecording($id, filter_var($request->get('invert'), FILTER_VALIDATE_BOOLEAN), $this->getUser()); if ($request->headers->get('referer')) { return $this->redirect($request->headers->get('referer')); diff --git a/Resources/doc/Configuration.md b/Resources/doc/Configuration.md index 03f6626..a492795 100644 --- a/Resources/doc/Configuration.md +++ b/Resources/doc/Configuration.md @@ -43,7 +43,7 @@ Mandatory: - `host` is the Opencast server URL (Engage node in cluster). - `username` is the name of the account used to operate the Opencast REST endpoints (org.opencastproject.security.digest.user). If empty, the connection is as an anonymous user. - `password` is the password for the account used to operate the Opencast REST endpoints (org.opencastproject.security.digest.pass). - - `player` is the Opencast player URL or path (default `/engage/ui/watch.html`). Use `/engage/theodul/ui/core.html` for Opencast 2.x and `/paella/ui/watch.html` if [paella player](http://paellaplayer.upv.es/) is being used. + - `player` is the Opencast player URL or path (default `/engage/ui/watch.html`). Use `/engage/theodul/ui/core.html` for Opencast 2.x and `/paella7/ui/watch.html` if [paella player](http://paellaplayer.upv.es/) is being used. Optional: - `default_tag_imported` set code of tag that you want to set when imports an mmo to PuMuKIT from Opencast.