CPC H04L 65/612 (2022.05) [G06F 21/57 (2013.01); H04L 65/65 (2022.05); H04N 21/4405 (2013.01); H04N 21/4627 (2013.01); H04N 21/8547 (2013.01)] | 20 Claims |
1. A method for playing a streaming media file on a display apparatus, comprising:
having a streaming media file from a streaming application being played on a display of the display apparatus, wherein
the streaming media file comprises audio data and video data, both being Processed by the decryption module and the decoder, the audio data after decryption is at least partially cached in a cache space for a browser of the streaming application and the video data after decryption is not cached;
receiving a command for replaying at least one portion of the streaming media file that has been played from a user via a user input interface of the display apparatus;
determining a first timestamp associating with replaying of the at least one portion of the streaming media file that has been played;
calculating audio data capacity between the first timestamp and a second timestamp corresponding to a current play time point of the streaming media file when the command is received;
in response to the audio data capacity being not greater than capacity of the cache space for the browser of the streaming application,
sending first audio data after the first timestamp in the cache space directly to a decoder for decoding without sending the first audio data to the decryption module for decryption; and
send first video data, corresponding to the first audio data, to the decryption module for decryption and further to the decoder for decoding;
outputting the first audio data after decoding without decryption to a loudspeaker, and
outputting the first video data after decryption and decoding.
|