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

How to get the list of all regions? #93

Closed
kalideir opened this issue Apr 16, 2024 · 1 comment
Closed

How to get the list of all regions? #93

kalideir opened this issue Apr 16, 2024 · 1 comment

Comments

@kalideir
Copy link

kalideir commented Apr 16, 2024

I am trying to play a specific region given its start and end time. I am currently using const wsRegions = ws.plugins[0].regions; then I find the corresponding region using wsRegions.find().

I am implementing regions-heavy functionality, hence interacting with the regions list is very frequent. I am getting this TS error Property 'plugins' is private and only accessible within class 'WaveSurfer'.ts(2341).

Does this library include a more standard method to get the list of current regions?

"wavesurfer-react": "^3.0.2",
"wavesurfer.js": "^7.7.11",
Copy link

github-actions bot commented Apr 16, 2024

Thank you!

Thank you for starting making this module better!

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

No branches or pull requests

1 participant