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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(plugins): add p2p-media-loader options filter #5318

Merged

Conversation

kontrollanten
Copy link
Contributor

Description

Add filter for p2p-media-loader-options filter

Related issues

closes #5317

Has this been tested?

  • 馃憤 yes, I added tests to the test suite
  • 馃挱 no, because this PR is a draft and still needs work
  • 馃檯 no, because this PR does not update server code
  • 馃檵 no, because I need help

@@ -81,7 +81,7 @@ export class PeertubePlayerManager {

const videojsOptions = await this.pluginsManager.runHook(
'filter:internal.player.videojs.options.result',
videojsOptionsBuilder.getVideojsOptions(this.alreadyPlayed)
await videojsOptionsBuilder.getVideojsOptions(this.alreadyPlayed)
Copy link
Owner

Choose a reason for hiding this comment

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

I don't think you need the await since the runHook function will automatically handle the result appropriately if it's a promise

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

Successfully merging this pull request may close these issues.

Possibility for plugins to disable validation of segments
2 participants