A computer-implemented method of switching resolution, the method comprising: in playing audio and/or video using Dynamic Adaptive Streaming over HTTP, DASH, acquiring a Media Presentation Description, MPD, file and obtaining resolution information through parsing the MPD file, wherein the resolution information comprises: multiple usable resolutions and bandwidths corresponding to respective ones of the multiple resolutions; during the playing of the audio and/or video, periodically determining a currently secure downloading speed according to a preset time interval, which comprises: obtaining playing information of N segments before a currently playing segment; calculating an actual downloading speed of each segment based on the playing information of each segment, and calculating an average downloading speed according to actual downloading speeds of the N segments; and multiplying the average downloading speed by a preset secure factor and a percentage to obtain the currently secure downloading speed; determining whether a resolution switching for the audio and/or video currently being played is required according to the currently secure downloading speed and the resolution information, which comprises: comparing the currently secure downloading speed with the bandwidths of each resolution in the resolution information to determine a maximum resolution supported by the currently secure downloading speed; in accordance with a determination that the resolution switching is required, determining a switching time point according to an elapsed duration of a currently playing segment and a preset secure buffering duration and performing resolution switching at the switching time point, which comprises: calculating a switching time point according to a formula of: T = ceil C + Q D, wherein ceil() is a round up function, T represents segment number, C is an elapsed duration of the currently playing segment, Q is a preset secure buffering duration, and D is a playing duration of one segment, and wherein the resolution switching is performed when playing a T-th segment behind the currently playing segment. in playing audio and/or video using Dynamic Adaptive Streaming over HTTP, DASH, acquiring a Media Presentation Description, MPD, file and obtaining resolution information through parsing the MPD file, wherein the resolution information comprises: multiple usable resolutions and bandwidths corresponding to respective ones of the multiple resolutions; during the playing of the audio and/or video, periodically determining a currently secure downloading speed according to a preset time interval, which comprises: obtaining playing information of N segments before a currently playing segment; calculating an actual downloading speed of each segment based on the playing information of each segment, and calculating an average downloading speed according to actual downloading speeds of the N segments; and multiplying the average downloading speed by a preset secure factor and a percentage to obtain the currently secure downloading speed; obtaining playing information of N segments before a currently playing segment; calculating an actual downloading speed of each segment based on the playing information of each segment, and calculating an average downloading speed according to actual downloading speeds of the N segments; and multiplying the average downloading speed by a preset secure factor and a percentage to obtain the currently secure downloading speed; determining whether a resolution switching for the audio and/or video currently being played is required according to the currently secure downloading speed and the resolution information, which comprises: comparing the currently secure downloading speed with the bandwidths of each resolution in the resolution information to determine a maximum resolution supported by the currently secure downloading speed; in accordance with a determination that the resolution switching is required, determining a switching time point according to an elapsed duration of a currently playing segment and a preset secure buffering duration and performing resolution switching at the switching time point, which comprises: calculating a switching time point according to a formula of: T = ceil C + Q D, wherein ceil() is a round up function, T represents segment number, C is an elapsed duration of the currently playing segment, Q is a preset secure buffering duration, and D is a playing duration of one segment, and wherein the resolution switching is performed when playing a T-th segment behind the currently playing segment. calculating a switching time point according to a formula of: T = ceil C + Q D, wherein ceil() is a round up function, T represents segment number, C is an elapsed duration of the currently playing segment, Q is a preset secure buffering duration, and D is a playing duration of one segment, and wherein the resolution switching is performed when playing a T-th segment behind the currently playing segment.