
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