The invention relates to a streaming media transmission method on the basis of a UDP data transfer protocol. The method comprises the following steps: establishing a video file at a
server side, wherein the video file comprises a plurality of data frames, and each data frame corresponds to a frame serial number and a frame
timestamp; segmenting each data frame into a plurality of data packets or combining a plurality of the data frames into one data packet, wherein each data packet corresponds to a packet serial number and a packet
timestamp; sending the data packets to a
client side and recording the packet serial number and the packet
timestamp of each data packet into a
queue in an internal storage via the
server side; detecting whether the data packets are lost via the
client side, if yes, feeding back the serial numbers of the lost packets to the
server side, and then finding out the corresponding packet timestamps via the
server side according to the packet serial numbers in the
queue; and according to the relation between the packet timestamps and the frame timestamps, finding out the corresponding data frames of the lost data packets, segmenting one data frame into a plurality of the data packets or combining a plurality of the data frames into one data packet and then sending the lost data packets to the
client side.