cookpete / react-player

A React component for playing a variety of URLs, including file paths, YouTube, Facebook, Twitch, SoundCloud, Streamable, Vimeo, Wistia and DailyMotion
https://cookpete.github.io/react-player
MIT License
8.9k stars 1.12k forks source link

Double Audio Generation with React Player #1756

Closed Lakshmi203 closed 3 weeks ago

Lakshmi203 commented 2 months ago

Description: I've recently encountered a perplexing issue while utilizing the React Player package for audio playback. It seems that whenever I attempt to play an audio file using the package, the audio is generated twice simultaneously. This results in an undesirable experience for users, as the audio plays with an unintended echo effect.

Steps to Reproduce:

Implement React Player package in a Nextjs application. Url passing to react player component Observe that the audio is generated twice, leading to an echo effect. Expected Behavior: The React Player package should play the audio file once, producing a single instance of sound.

Actual Behavior: The audio file is generated twice simultaneously, resulting in a double audio playback effect.

Additional Notes:

This issue persists across different browsers and operating systems. I have attempted to troubleshoot the problem by reviewing the React Player documentation and exploring potential configuration settings, but to no avail. It's worth noting that this issue seems to be specific to audio playback, as video playback behaves as expected without any duplication.

lludol commented 1 month ago

Hello, I have the same issue! My player is also only for Audio and I have the bug randomly. Sometimes I have it on Chrome other times on Safari (on the phone, tablet, or desktop). I can't manage to find a way to reproduce it every time...