Skip to content

[FIX] Livestreaming can't be accessed #494#495

Open
chfsx wants to merge 4 commits intoopencast-ilias:release_10from
srsolutionsag:fix/10/494
Open

[FIX] Livestreaming can't be accessed #494#495
chfsx wants to merge 4 commits intoopencast-ilias:release_10from
srsolutionsag:fix/10/494

Conversation

@chfsx
Copy link
Copy Markdown
Contributor

@chfsx chfsx commented Apr 30, 2026

@okaufman this PR tries to fix the issue #494, since we cannot test live events in ReviewApps, can you please deploy this in your infrastructure (ILIAS 10)? thanks a lot!

@chfsx chfsx self-assigned this Apr 30, 2026
@chfsx chfsx added the ILIAS 10 Currently based on http://10-redesign.opencast.k8s.sr.solutions/ label Apr 30, 2026
@dagraf dagraf moved this from Backlog to In progress in Opencast & Opencast PageComponent May 5, 2026
@dagraf
Copy link
Copy Markdown

dagraf commented May 5, 2026

With the latest fixes, live-streams do now work on our installation.

@ferishili: Can you please review this PR and state your findings here? Thx!

@dagraf dagraf requested a review from ferishili May 5, 2026 08:52
@dagraf dagraf moved this from In progress to In review in Opencast & Opencast PageComponent May 5, 2026
@marcusm7
Copy link
Copy Markdown

marcusm7 commented May 5, 2026

Can confirm. Livestream works on our installation, too.

  • powered by ILIAS (v10.6 2026-03-10)
  • Plugin: commit 5ceb1b1 (HEAD -> srsolutions/fix/10/494, srsolutions/fix/10/494) Author: Fabian Schmid fabian@sr.solutions Date: Tue May 5 10:33:56 2026 +0200

I guess the relative paths did the trick. 🙂

Copy link
Copy Markdown
Contributor

@ferishili ferishili left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @chfsx,
Kudus for using getRelativeDirectory to load resources, that was the main problem in release_10

Everything works fine, I've added minor improvement!

Comment thread src/Views/Event/EventActionResolver.php Outdated
)) * 60;
$accessible_from = $start - $accessible_before_start;
$accessible_to = $event->getScheduling()->getEnd()->getTimestamp();
$accessible = ($accessible_from < time()) && ($accessible_to > time());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest calling time() once and reusing it for consistency and readability:
Also use <= and >= for more precision 😄

Suggested change
$accessible = ($accessible_from < time()) && ($accessible_to > time());
$now = time();
$accessible = ($accessible_from <= $now) && ($accessible_to >= $now);

Not sure if this is overkill, but should we also handle edge cases where $accessible_from or $accessible_to might be missing or invalid?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the hint! I reused the code from release_9 here but it's worth to make it better of course :-) not sure about the $accessible_from or $accessible_to might be missing or invalid?

@chfsx
Copy link
Copy Markdown
Contributor Author

chfsx commented May 5, 2026

@ferishili see 6929cca

Copy link
Copy Markdown
Contributor

@ferishili ferishili left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great to me, especially the removal of PluginConfig from the child classes.
It would still be good if @dagraf could do a quick re-test.

Approved from my side 👍

@dagraf
Copy link
Copy Markdown

dagraf commented May 5, 2026

Re-test was successful. @chfsx : PR is ready to merge!

@dagraf dagraf moved this from In review to Ready to merge in Opencast & Opencast PageComponent May 5, 2026
@marcusm7
Copy link
Copy Markdown

marcusm7 commented May 5, 2026

Note: @chfsx asked me to file a separate issue for this: #498

Livestream works in the most recent version, but it has cosmetic issues for me:
image

  • finished events show as live in the status button (noch nicht begonnen)
    • the event is not yet ingested/ processed by OC
  • %s in the status button
  • live status not correct (it is live but claims to be not yet started)

referring to

  • commit 6929cca (HEAD -> srsolutions/fix/10/494, srsolutions/fix/10/494)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ILIAS 10 Currently based on http://10-redesign.opencast.k8s.sr.solutions/

Projects

Status: Ready to merge

Development

Successfully merging this pull request may close these issues.

4 participants