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

add ...playlist.elements.loaded hook #4387

Merged

Conversation

kontrollanten
Copy link
Contributor

@kontrollanten kontrollanten commented Sep 8, 2021

Description

Adds a action:video-watch-playlist.elements.loaded hook so that plugins can listen for when video watch playlist elements are loaded.

Update:
playlist and playlistPosition are also passed in the action:video-watch.player.loaded hook.

Related issues

closes #4385

Has this been tested?

  • 🙋 no, because I need help

I couldn't find any client tests for similar hooks. Maybe there's no need to test it more than manual testing?

@Chocobozzz
Copy link
Owner

I edited the PR to use filters instead of action so you can also update the function parameters/results.

@Chocobozzz Chocobozzz merged commit c3bb044 into Chocobozzz:develop Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Get elements in current playlist within a plugin
2 participants