Patent 11405499 was granted and assigned to Huawei on August, 2022 by the United States Patent and Trademark Office.
A do-not-disturb method and a terminal are provided. The method includes: displaying, by the terminal, an interface of a first application, then, if the interface of the first application includes a media playing window, and the first application is in a media do-not-disturb mode, determining whether any first media playing in the window was triggered by a playing operation of a user. If the playing of the first media in the window was triggered by the playing operation of the user, the method includes playing the corresponding media, and if the playing of the first media in the window was not triggered by the playing operation of the user, the method includes pausing or stopping play of the corresponding media. This method can avoid automatic playing of media, to reduce resource waste, data traffic consumption, a processing load of a mobile phone, and power consumption.