i would like to implement a feature that can save the current time position of a played file on cancel or stop.
i’ve checked the available events, but it seems to me that the track_playback_ended didn’t fire on cancel or stop, it is fired at the end of the file.
the playback_state_changed event is available, but it doesn’t contain the time position.
Alternatively you can query for the current position after you receive a playback_state_changed event. But you’ll hit the same problem that if it was a stop then the returned position will be 0.
I don’t think we have anything in our API that will tell you the time before stopping.