Can I access the plyr API?

Created on 19 August 2024, 11 months ago

Problem/Motivation

I want to execute some methods from the plyr API, specifically play() and pause(). But I don't think I have access to the plyr instances that are created by the module. Is there any way to access those instances or do I need to think about a custom integration of plyr into my website?

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ’¬ Support request
Status

Active

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany bobjoe

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @bobjoe
  • πŸ‡©πŸ‡ͺGermany IT-Cru Munich

    @bobjoe: I've checked it shortly and I think for this we need to refactor JS of Plyr module a little bit, that instances of players could be controlled via JS.

  • πŸ‡©πŸ‡ͺGermany bobjoe

    @it-cru: It would be awesome if you could add this as an upcoming feature. I think that other people would appreciate this as well. I would love to help you adding this but I don't have enough programming knowledge myself to really be of assistance here.

  • First commit to issue fork.
  • πŸ‡ΊπŸ‡ΈUnited States onion

    I was wrestling with this myself and in the end just passed the players to the window in plyr-players.js

Production build 0.71.5 2024