Skip to content

Search Endpoint Response Conflict (OC 15 vs. OC 16+) #429

Open
@ferishili

Description

@ferishili

Description

A breaking change occurred between Opencast 15 and 16 in the way data is returned from the search endpoint. This caused issues for nearly all external applications (e.g., LMSes) when retrieving episodes and related data.
To ensure a consistent and uniform solution, it was decided that this issue should be addressed within the Opencast PHP Library rather than in each LMS individually.

Reference: Opencast ILIAS OpenCast PR #375

Solution

Since the library itself does not control the data returned by Opencast, a utility class called OcUtils was introduced to help LMSes handle these changes efficiently.
The OcUtils class provides a method called findValueByKey, which allows extracting a targeted value from an object or array, regardless of its structure.

More on usage: Opencast PHP Library PR #38

What Needs to Change

The following section should be updated to leverage OcUtils::findValueByKey:

LivePlayerDataBuilder.php#L29

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions