Searching for a trackId that is not on the current playlist should indicate that the track is not present (e.g. could return index -1)
Actual Behaviour
Terminates with uncaught exception
Reproduce Scenario (including but not limited to)
iOS with Ionic, streaming tracks
Steps to Reproduce
Add some tracks to a playlist, then try playing one of those tracks using a non-existant trackId, e.g. this.cdvAudioPlayer.playTrackById('1234567890');
Expected Behaviour
Searching for a trackId that is not on the current playlist should indicate that the track is not present (e.g. could return index
-1
)Actual Behaviour
Terminates with uncaught exception
Reproduce Scenario (including but not limited to)
iOS with Ionic, streaming tracks
Steps to Reproduce
Add some tracks to a playlist, then try playing one of those tracks using a non-existant trackId, e.g.
this.cdvAudioPlayer.playTrackById('1234567890');
Platform and Version
iOS 11.4
Cordova CLI version and cordova platform version
Cordova CLI version 7.1.0
Logs taken while reproducing problem