-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* trying to access REST Endpoint to add track * Implementing upload for de and en subtitles * change to expected boolean * Show and make caption files downloadable * Use studip languages as available languages * prettier upload buttons * fiy typo * load captions seperately * Use gettext --------- Co-authored-by: Till Glöggler <[email protected]>
- Loading branch information
Showing
17 changed files
with
440 additions
and
31 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
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,27 @@ | ||
<?php | ||
|
||
namespace Opencast\Routes\Video; | ||
|
||
use Psr\Http\Message\ResponseInterface as Response; | ||
use Psr\Http\Message\ServerRequestInterface as Request; | ||
use Opencast\Errors\AuthorizationFailedException; | ||
use Opencast\Errors\Error; | ||
use Opencast\OpencastTrait; | ||
use Opencast\OpencastController; | ||
use Opencast\Models\Filter; | ||
use Opencast\Models\Videos; | ||
|
||
class VideoCaptions extends OpencastController | ||
{ | ||
use OpencastTrait; | ||
|
||
public function __invoke(Request $request, Response $response, $args) | ||
{ | ||
$token = $args['token']; | ||
$captions = Videos::getCaptionByToken($token); | ||
|
||
return $this->createResponse([ | ||
'caption' => $captions | ||
], $response); | ||
} | ||
} |
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.