A do-not-disturb method, applicable to a terminal on which a first application is installed, wherein the method comprises: displaying an interface of the first application; when the interface of the first application comprises a media playing window, the media containing video and sound, creating a player to play the first media, and determining a creation time point of the player; and if the first application is in a media do-not-disturb mode, determining whether playing of first media in the window is triggered by a playing operation of a user; if the playing of the first media in the window is triggered by the playing operation of the user, pause playing an image of the corresponding media and continue playing a sound of the corresponding media; and if the playing of the first media in the window is not triggered by the playing operation of the user, pausing or stopping playing the corresponding media; and wherein the determining whether playing of first media in the window is triggered by a playing operation of a user comprises: determining whether a target input event exists in obtained input events, wherein the target input event is an input event corresponding to the playing operation of the user, a distribution time point of the target input event is earlier than the creation time point of the player, a time difference between the distribution time point of the target input event and the creation time point of the player is less than first preset duration, and the target input event is distributed to the first application at the distribution time point; if the target input event exists, determining that the playing of the first media in the window is triggered by the playing operation of the user; and if the target input event does not exist, determining that the playing of the first media in the window is not triggered by the playing operation of the user. displaying an interface of the first application; when the interface of the first application comprises a media playing window, the media containing video and sound, creating a player to play the first media, and determining a creation time point of the player; and if the first application is in a media do-not-disturb mode, determining whether playing of first media in the window is triggered by a playing operation of a user; if the playing of the first media in the window is triggered by the playing operation of the user, pause playing an image of the corresponding media and continue playing a sound of the corresponding media; and if the playing of the first media in the window is not triggered by the playing operation of the user, pausing or stopping playing the corresponding media; and wherein the determining whether playing of first media in the window is triggered by a playing operation of a user comprises: determining whether a target input event exists in obtained input events, wherein the target input event is an input event corresponding to the playing operation of the user, a distribution time point of the target input event is earlier than the creation time point of the player, a time difference between the distribution time point of the target input event and the creation time point of the player is less than first preset duration, and the target input event is distributed to the first application at the distribution time point; if the target input event exists, determining that the playing of the first media in the window is triggered by the playing operation of the user; and if the target input event does not exist, determining that the playing of the first media in the window is not triggered by the playing operation of the user. determining whether a target input event exists in obtained input events, wherein the target input event is an input event corresponding to the playing operation of the user, a distribution time point of the target input event is earlier than the creation time point of the player, a time difference between the distribution time point of the target input event and the creation time point of the player is less than first preset duration, and the target input event is distributed to the first application at the distribution time point; if the target input event exists, determining that the playing of the first media in the window is triggered by the playing operation of the user; and if the target input event does not exist, determining that the playing of the first media in the window is not triggered by the playing operation of the user.