Rolamix / cordova-plugin-playlist

🎶 A Cordova plugin for Android and iOS with native support for audio playlists, background support, and lock screen controls 🎶
MIT License
33 stars 33 forks source link

Small stutter occurs when playing next item in playlist #20

Open biesbjerg opened 5 years ago

biesbjerg commented 5 years ago

Expected Behaviour

Play next item in playlist smoothly

Actual Behaviour

Next item in playlist stutters at the beginning

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Load up a playlist and play from beginning (make sure items does not have silent gaps in the beginning, or you won't be able to hear the stutter)

Platform and Version (eg. Android 5.0 or iOS 9.2.1)

iPhone X, iOS 12

Cordova CLI version and cordova platform version

8.1.2 (cordova-lib@8.1.1)

Installed platforms: android 6.2.3 browser 4.1.0 ios 4.4.0 Available platforms: osx ~4.0.1 windows ~6.0.0

Plugin version

cordova-plugin-playlist 0.6.0 "AudioPlayer"

Sample Push Data Payload

Sample Code that illustrates the problem

Logs taken while reproducing problem

I have some data from verbose option, which shows the currentPosition of the item resetting after a few ms.

image

biesbjerg commented 5 years ago

It seems the 'Track Changed' event is called twice shortly after each other, maybe that is relevant:

image

nawaz081 commented 4 years ago

@biesbjerg - Hi... Thanks for the detailed analysis. Were you able to fix this issue in your project for ios devices? I am using a flutter plugin which is built based on this plugin and have been facing the same issue on ios devices.

biesbjerg commented 4 years ago

Hi

Sadly no, I moved on by creating my own plugin using Capacitor. Sorry!

nawaz081 commented 4 years ago

@biesbjerg - Thanks for your response. I will move on to a different plugin too I guess.