The invention relates to a video frame caching and forwarding method and device,
computer equipment and a computer readable storage medium. The method comprises the following steps: receiving a videoframe of a
video sharing terminal; if the received video frame is a
key frame, clearing the video frame data in the buffer, storing the
key frame in the buffer, and setting pointing positions of a head pointer and a
tail pointer of the buffer to point to the
key frame; and if the received video frame is not the key frame, moving the pointing position of the
tail pointer backwards for one bit, andstoring the received video frame into the pointing position of the
tail pointer in the buffer. According to the video frame caching method, the
video sharing terminal only needs to send one piece of video frame data to the
server for caching and forwarding, so that
network congestion caused by sending the video frames to a plurality of video request terminals is avoided. The buffer only stores onekey frame at the same time, so that the real-time performance of the video frame stored by the buffer is ensured, the occupation of cache resources can be reduced, and the caching and forwarding efficiency of the video frame is improved.