Hi,
I'm getting an unusual error on the Tizen::Media:Player. OnPlayerEndOfClip callback seem to arrive after the audio player was stopped.
To be more clear here is how the system is setup. We use the MediaPlayer to playback audio files that read text. The user can chose to listed the audio to the end or just move to the next page/audio clip.
So we have two main flow, suppose (A) and (B) are the two audio buffers:
1) OPEN (A) -> PLAY (A) -> ENDOFCLIP (A) -> CLOSE(A) -> OPEN (B) -> PLAY (B) etc....
2) OPEN (A) -> PLAY(A) -> STOP (A) -> CLOSE (A) -> OPEN (B) -> PLAY (B) etc..
This works fine 99% of the time but once in a while I get an error on the flow 2). It seems that ENDOFCLIP from A arrive after right after I started to PLAY (B)
This is how the error flow looks like
OPEN (A) -> PLAY (A) -> STOP (A) -> CLOSE (A) -> OPEN (B) -> PLAY (B) -> ENDOFCLIP( A? immediatly after I play B )
There are two options on why I get ENDOFCLIP so quickly
1) ENDOFCLIP call is the call back from A that was never cancelled
2) there was some kind of error in playing B buffer and it ends prematurely.
I'm prone to believe 1) is the issue as an error in playback should call OnPlayerErrorOccurred but this function is never called.
This is fairly rare (one every 30mins of testing). The timing is very fast we update audio at 30fps so there are probably 0.33ms between the stopping of A and starting of B and the ENDOFCLIP of A. If this is the case this would be a bug in the media player. Unfortunatelly as far as I know I don't have a way to test what clip the ENDOFCLIP callback is related to so I cannot be 100%.
If anyone has seens a similar issue or has any suggestions, I would be really appreciated.
Thanks,
Stefano