Skip to content
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

Paella Player with buffered live streams #222

Merged
merged 2 commits into from
Nov 24, 2023

Conversation

ferishili
Copy link
Contributor

This PR fixes #219,

Description

With current paella-core version, it is not possible to provide the progress bar and play/pause button during live streams, as it ends up in some sort of error that breaks everything!
Therefore, it was technically impossible to provide such feature at the time.

Solution

  • The described problem was solved in paella-core v1.46.1, therefore we had to upgrade the whole paella package.
  • Apart from that, as there are also institutions that their live stream system does not have this capability, we decided to provide a toggle mechanism as well.
    • under plugin configs > Settings > Events > Live Streams, there is now a new option called Buffered Livestreams for this matter, and by enabling it everything will take place automatically. (you don't need to worry about anything else!)
  • a new theme is also introduced called js/opencast/src/Paella/default_theme/opencast_live_buffered_theme.json that contains the paella player config required to provide progress bar, play button etc. -> (Any custom config changes about this, must be added in this file as it gets loaded when that option is enabled.)
  • A bonus for developers: test_paella_livestream.html has been improved in a way that you could select the configs and enter custom urls on the same page.

@ferishili ferishili assigned ferishili and okaufman and unassigned ferishili Nov 22, 2023
@ferishili ferishili added the enhancement New feature or request label Nov 22, 2023
@reiferschris
Copy link
Contributor

Thanks, both cases work with our setup.

The buffered stream in our setup is of course limited to the part of the livestream you watched and if you watch with a delay you might miss the end, because you don't get the newest chunks anymore. But that isn't the plugins fault.

@chfsx chfsx assigned chfsx and unassigned okaufman Nov 23, 2023
@snoesberger
Copy link

Unfortunately, in our setup, I can't play the live streams any more, instead of the Paella player, I get the message "The Live Event has been paused or prematurely terminated". In Opencast, the same livestream works fine.

Configured settings:

  • Streaming Type: HLS (.m3u8 / .m3u)
  • Buffered Livestreams: tested both "checked"

@ferishili let me know if you need some more information.

@snoesberger
Copy link

Unfortunately, in our setup, I can't play the live streams any more, instead of the Paella player, I get the message "The Live Event has been paused or prematurely terminated". In Opencast, the same livestream works fine.

I have just been able to solve the problem with the help of @ferishili. It was a misunderstanding of the configuration parameter "Streaming Type" on my side with a combination of the used player configuration. We use HLS with MPEG-TS files for our livestreaming, so "HLS (.m3u8 / .m3u)" is not the right setting, but "MPEG-TS".

Everything is now working fine. The progress bar is displayed and I'm able to go backwards and forwards in time. Pause/Play also works.

@chfsx chfsx mentioned this pull request Nov 23, 2023
@chfsx chfsx merged commit 9670852 into opencast-ilias:main Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Progress bar for buffered live streams is not displayed
5 participants