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

playlist count from N to 1 , TRACK_CHANGED's data.hasPrevious =1 and data.hasNext = 1 #23

Open
boboxiaodd opened this issue Feb 18, 2019 · 0 comments

Comments

@boboxiaodd
Copy link

boboxiaodd commented Feb 18, 2019

Expected Behaviour

Actual Behaviour

Reproduce Scenario (including but not limited to)

Steps to Reproduce

var playlist = [{ ... },{...}]
player.setPlaylistItems(null,null,playlist);

playlist = [{...}]
player.setPlaylistItems(null,null,playlist);

when fire the first TRACK_CHANGED event , data.currentItem == {}
then, the second TRACK_CHANGED event fire, data.currentItem is current, but
data.hasPrevious =1 and data.hasNext = 1

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

(Android) What device vendor (e.g. Samsung, HTC, Sony...) iPhone 7 Plus

Cordova CLI version and cordova platform version

cordova --version                                    # e.g.  the Newest
cordova platform version android                     # e.g. the Newest

Plugin version

cordova plugin version | grep phonegap-plugin-push   # e.g. the Newest

Sample Push Data Payload

Sample Code that illustrates the problem

Logs taken while reproducing problem

@boboxiaodd boboxiaodd changed the title playlist count from N playlist count from N to 1 , TRACK_CHANGED's data.hasPrevious =1 and data.hasNext = 1 Feb 18, 2019
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