External Control
ParOne exposes functions to allow external control of the player. These functions can be accessed by obtaining a reference to the ParOne element.
Function | Notes |
---|---|
player.play() | Begin content playback |
player.pause() | Pause content playback |
Controlling multiple players on the page
If there are multiple players on a page, you can give each one an ID and then access it via document.querySelector('#playerOne')
.