I've got a playlist/table with 15 entries. It looks like this.
Code: Select all
children = { {
duration = 82.860437,
flags = {},
id = 4,
item = <userdata 1>,
name = "This Lullaby",
nb_played = 1,
path = "file:///C:/Music/Lullabies%20To%20Paralyze/01%20-%20This%20Lullaby.mp3"
}, {
duration = 114.4425,
flags = {},
id = 5,
item = <userdata 2>,
name = "Medication",
nb_played = 1,
path = "file:///C:/Music/Lullabies%20To%20Paralyze/02%20-%20Medication.mp3"
},
.....
When I play the first song this is the output. As you can see the first-item-id matches the one in the table, but not what current() is returning.
Code: Select all
lua debug: [mytest] first-item-id = 4
lua debug: [mytest] current-item-id = 5
Code: Select all
lua debug: [mytest] first-item-id id = 4
lua debug: [mytest] current-item-id = 6
Can anyone explain this mismatch to me and/or how to check if the item playing is the first item in the playlist.