摘要 |
Embodiments provide a method for streaming media and a media controller. The method includes: receiving, by a media controller, a media streaming request sent by a user equipment, and allocating an index to the user equipment, wherein the index is used to indicate an address of a corresponding buffer to which the data to be streamed that is requested by the streaming request is stored to an address of a corresponding buffer in the media controller; binding, by the media controller, the streaming request and the index of the user equipment, storing the bound streaming request and index in a correspondence table, and sending the streaming request and the index of the user equipment to a media server so that the media server controls, according to the correspondence table, a storage device to send the data to be streamed that is requested by the streaming request to an address of a buffer corresponding to the index; and receiving, by the media controller, the data to be streamed that is requested by the streaming request and is sent by the storage device, and streaming the data to be streamed that is requested by the streaming request to the corresponding user equipment by querying the correspondence table. Through a media controller, the technical scheme stores data to be streamed that is requested by a user, and streams the data to the user equipment, implementing separation of data from the CPU on the distribution network, improving the service processing capability of the CPU on the distribution network, and avoiding the increase of address width due to too many users by allocating indexes to user equipments. |