We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Event hadnlers like onPlay, onClick, onPause not working at all. I tried to reproduce it in a codesandbox.
import "./styles.css"; import Plyr from "plyr-react"; import "plyr-react/plyr.css"; export default function App() { return ( <Plyr type="youtube" videoId="umldliRDefQ" onPlay={() => console.log("playing")} onClick={() => { console.log("clicking"); }} /> ); }
Steps to reproduce the behavior:
Expected behavior I want a callback to be run onPlay, onPause, onSeek to attach custom handlers.
[https://stackoverflow.com/questions/76065265/plyr-react-event-callbacks-not-working-at-all](stackoverflow question)
The text was updated successfully, but these errors were encountered:
Yes I confirm this issue exists, a few handlers work others don't
Sorry, something went wrong.
Look at the listeners attribute under the options prop.
listeners
options
Docs: https://github.com/sampotts/plyr#options Available event handlers: https://github.com/sampotts/plyr/blob/a148e2e5b6eb4cda1d63a21397636a365f5dabbb/src/js/config/defaults.js#L214
No branches or pull requests
Event hadnlers like onPlay, onClick, onPause not working at all. I tried to reproduce it in a codesandbox.
Steps to reproduce the behavior:
Expected behavior
I want a callback to be run onPlay, onPause, onSeek to attach custom handlers.
[https://stackoverflow.com/questions/76065265/plyr-react-event-callbacks-not-working-at-all](stackoverflow question)
The text was updated successfully, but these errors were encountered: