
The workaround to post a message was needed to ensure we receive any final onIsPlayingChanged event before the test is finished (to record the correct playing time). Using onEvents allows us to do this synchronously as the callback guarantees that there is no other pending event. #exofixit PiperOrigin-RevId: 344436180