Werter12/material-ui-audio-player

How to pause audio without click on pause button

Closed this issue · 1 comments

hello,

I have listed many audio and when i click on play button audio file is playing successfully but when i click on other play button then also both audio playing concurrently...

I need to stop previous audio and play current audio .

Is that possible?

Thanks

@sitestrokes Hello! In the new version of player v1.6.7...v1.7.0 I've added program access (from the higher component) to audio player HTML audio and dispatch. You can take advantage of this feature (use getPlayer prop). Check out the storybook demo (Controlled Audio Player section) and documentation.