摘要 |
Disclosed are a subtitle switching method and device, the method comprising the following steps: receiving a subtitle switching instruction input by a user; acquiring to-be-switched subtitle data corresponding to the subtitle switching instruction and stored in a corresponding preset buffer area and a present time stamp of video and audio data currently being played; and outputting and displaying subtitle data of the to-be-switched subtitle data having a time stamp matching the present time stamp. When playing a video and audio file, the present invention caches subtitles in all languages, removes stored data of language subtitle data not currently being played and having a time stamp earlier than that of the video and audio data currently being played in a buffer area, and outputs and displays data of the to-be-switched subtitle data having a time stamp matching that of the video and audio data currently being played, such that the content of a data frame of the switched subtitle data matches that of a data frame currently being played, thus enabling smoother subtitle switching with no lag time. |