Skip to content

Enhance Event API addTrack endpoint #41

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 18, 2025
Merged

Enhance Event API addTrack endpoint #41

merged 2 commits into from
Feb 18, 2025

Conversation

ferishili
Copy link
Collaborator

This PR fixes #36,

Description

regarding new subtitle mechanism in Opencast called "subtitle-rework", the newly introduced api event endpoint addTrack was not working properly since it could handle caption/source and tags with lang flags.
On the other hand, the overwriteExisting flag was not working properly, meaning no update or delete was taking placing by passing that flag.

What has been Added/Fixed

  • Tags are now included in the OcEventsApi::addTrack method, whihc can handle string format as well as array format
  • overwriteExisting flag problem is now fixed.
  • The PHPUnit tests for addTrack endpoint have been expanded in a way that it covers all the scenarios including add, update and delete!

NOTE

  • keep in mind that the tags params were introduced in Opencast 16!

…ting tracks and add new VTT test files,

fixes #36
@ferishili ferishili added bug Something isn't working enhancement New feature or request upgrade 16.x Issues that are related to the changes introduced in Opencast 16.x upgrade 17.x Issues that are related to the changes introduced in Opencast 17.x labels Feb 18, 2025
@ferishili ferishili self-assigned this Feb 18, 2025
@ferishili ferishili merged commit cf34136 into master Feb 18, 2025
18 checks passed
@ferishili ferishili deleted the issue-36 branch February 19, 2025 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request upgrade 16.x Issues that are related to the changes introduced in Opencast 16.x upgrade 17.x Issues that are related to the changes introduced in Opencast 17.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tags parameter for External API event track update endpoint: addTrack
1 participant