Closed iTSangarDEV closed 8 years ago
Empty sound is a hack for buffering long term first remote item, is there any reason that you want to handle it?
As empty sound is not a real sound and finality of method hysteriaPlayerCurrentItemChanged:
is usually update the interface, so I think that can be called only when real item is changed.
I found this necessity when trying transform result of getHysteriaIndex:
in Integer on Swift
and empty sound return null
let index = Int(hysteriaPlayer.getHysteriaIndex(hysteriaPlayer.getCurrentItem()))
But looking around I found solution for check if is null (emptySoundPlaying == YES):
if let index: NSNumber = hysteriaPlayer.getHysteriaIndex(hysteriaPlayer.getCurrentItem()) {
// now I can use Int(index)
}
Thank you for helping me to think better what I wanted, you can close this issue.
Yeah, great approach to find index. Glad to hear that.
Is necessary send delegate message
hysteriaPlayerCurrentItemChanged
when emptySoundPlaying is YES?can be?