Use the handler to update the UI. You can add a sleep to the thread, and then get the latest playback time and send a message to the handler every 1 second to update your time progress
Well, it has been solved. This problem, thank you, brother, is to use the handler to continuously send empty messages with an interval of one second, and then update. However, my colleague said that it can also be used in the timer. I have not tried it. Just use it in the timer. It collapsed, I don’t know why
Use the handler to update the UI. You can add a sleep to the thread, and then get the latest playback time and send a message to the handler every 1 second to update your time progress
Well, it has been solved. This problem, thank you, brother, is to use the handler to continuously send empty messages with an interval of one second, and then update. However, my colleague said that it can also be used in the timer. I have not tried it. Just use it in the timer. It collapsed, I don’t know why