(EN) The invention belongs to the technical field of computers, and particularly relates to a downloading method and device of a media file, a terminal and a computer readable storage medium, and the method comprises the steps: obtaining the instant speed and the average speed of a network; judging whether the network speed of the network is suddenly increased or decreased or not according to the instant speed and the average speed; if the network speed of the network is suddenly increased or decreased, selecting a media file with a code rate corresponding to the instant speed for downloading according to a pre-stored media configuration file. the problem that when the network speed fluctuates greatly, a user terminal cannot be switched to download the media file corresponding to the code rateand the changed network speed in time, and consequently audio and video playing is jammed or the time for entering the optimal playing state is long is solved.
(ZH) 本发明属于计算机技术领域,尤其涉及一种媒体文件的下载方法、装置、终端和计算机可读存储介质,其中,所述方法包括:获取网络的即时速度和平均速度;根据所述即时速度和平均速度判断所述网络的网络速度是否发生陡升或陡降;若所述网络的网络速度发生陡升或陡降,则根据预先存储的媒体配置文件选择码率与所述即时速度对应的媒体文件进行下载,解决了在网络速度发生较大波动时,用户终端无法及时切换到码率与变化后的网络速度对应的媒体文件的下载,导致音视频播放出现卡顿或者进入最佳播放状态的时间较长的问题。