[] Please close this issue, I accidentally submitted it without adding any details
[ ] New documentation
[ x] Correction or update
Details
Actually, the better way to work with the play and pause action, is to save the play promise in a variable, and just do the pause action when you know that the promise have been resolved, otherwise an error may appear, saying that you tried to pause a video that wasn't ready to be paused. The article didn't explained that the play action is asynchronous.
Request type
Details
Actually, the better way to work with the play and pause action, is to save the play promise in a variable, and just do the pause action when you know that the promise have been resolved, otherwise an error may appear, saying that you tried to pause a video that wasn't ready to be paused. The article didn't explained that the play action is asynchronous.