language-icon Old Web
English
Sign In

Caption switching method and device

2014 
The invention discloses a caption switching method and a device. The caption switching method comprises steps that a caption switching instruction inputted by a user is received; the to-be-switched caption data stored in the corresponding preset caching zone and corresponding to the caption switching instruction and the present display timestamp of the audio-video data in a playing process are acquired; the caption data in the to-be-switched caption data with the timestamp equal to the presently-displayed timestamp is outputted and displayed. According to the method, captions of all languages are cached when a audio-video file is played, through removing the storage data in the caching zone with the timestamp of the non-presently-played language caption data smaller than the timestamp of the presently-played audio-video data, the data of the to-be-switched caption data with the timestamp equal to the timestamp of the presently-displayed audio-video data is outputted and displayed, so the content of a data frame of the caption data after switching is in matching with the content of a presently-played data frame, so caption switching is relatively smooth, and a stuttering phenomenon does not occur.
    • Correction
    • Source
    • Cite
    • Save
    • Machine Reading By IdeaReader
    0
    References
    0
    Citations
    NaN
    KQI
    []