Don't rely on events after player release in ExoHostedTest
ExoHostedTest was calculating the total play time by solely listening to onIsPlayingChanged. The last update to false (when playback ends) was relying on a callback that was always called after the player has already been released. This happened because of a now fixed bug where callbacks were still issued if player.release() is called from within another callback (as in ExoHostedTest). Fix the currently broken test by posting the release call so that all pending events are still delivered first. PiperOrigin-RevId: 339438863
Showing
with
4 additions
and
1 deletions
Please
register
or
sign in
to comment