CN111786957A - Media stream distribution method, server and electronic equipment - Google Patents

Media stream distribution method, server and electronic equipment Download PDF

Info

Publication number
CN111786957A
CN111786957A CN202010518335.8A CN202010518335A CN111786957A CN 111786957 A CN111786957 A CN 111786957A CN 202010518335 A CN202010518335 A CN 202010518335A CN 111786957 A CN111786957 A CN 111786957A
Authority
CN
China
Prior art keywords
media stream
buffer
information
stream information
sending
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010518335.8A
Other languages
Chinese (zh)
Inventor
方登建
申森
李彪
张涛涛
吕卫民
李海燕
李敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Naval University of Engineering PLA
Original Assignee
Naval University of Engineering PLA
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Naval University of Engineering PLA filed Critical Naval University of Engineering PLA
Priority to CN202010518335.8A priority Critical patent/CN111786957A/en
Publication of CN111786957A publication Critical patent/CN111786957A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24552Database cache management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Multimedia (AREA)
  • Computational Linguistics (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a media stream distribution method, a server and electronic equipment, wherein the media stream distribution method comprises the following steps: buffering the media stream information in a receive buffer; determining index information of the media stream information based on the media stream information; sending the index information to a sending buffer; and transmitting the media stream information based on the index information. According to the media stream distribution method provided by the embodiment of the invention, the index information is sent to the sending buffer, the media stream information is sent based on the index information, the received data is uniquely stored in the receiving buffer, and when the media stream information is sent, the index information based on the data points to the data to be sent, so that the copying work of the bottom layer to the media stream data is greatly reduced, the CPU load is reduced, and the concurrency of a media stream distribution program is improved.

Description

Media stream distribution method, server and electronic equipment
Technical Field
The present invention relates to the field of streaming media services, and in particular, to a media stream distribution method, a server, and an electronic device.
Background
The stream media is an audio, video or multimedia file transmitted through a network, the whole file is not downloaded before the stream media is played, the data stream of the stream media is transmitted at any time and played at any time, and when the stream media file is transmitted to a computer of a user, part of the content of the file is stored in a memory before the file is played. The media stream is a technology that uses a streaming mode to make the streaming media play on the network.
At present, the number of concurrent playing paths met by a camera is limited, the distribution capability of Network video recorder equipment (Network video recorder, nvr) is limited, and the service requirement cannot be met, namely, the same path of audio and video stream is difficult to be simultaneously provided for an ultra-large number of client equipment for use. When the traditional video camera and nvr system distribute media streams, the io trigger mechanism is mostly select poll, and after the event is triggered by the select mechanism and the poll mechanism, the confirmation processing is performed after polling comparison is performed on all descriptors, so that the efficiency is low.
The current popular streaming media distribution service mostly uses a fixed open source module architecture, which is always different from a specific application architecture in terms of difference and redundancy, and also causes a lot of unnecessary overhead, which affects the concurrency of programs.
Disclosure of Invention
Embodiments of the present invention provide a media stream distribution method, a server and an electronic device that overcome the above problems or at least partially solve the above problems.
In a first aspect, an embodiment of the present invention provides a media stream distribution method, including: buffering the media stream information in a receive buffer; determining index information of the media stream information based on the media stream information; sending the index information to a sending buffer; and transmitting the media stream information based on the index information.
In some embodiments, the receiving buffer is a first overlay structure for receiving data, and the buffering media stream information in the receiving buffer comprises: when media stream information is received, setting a first storage unit in the first overlapping structure as a current element of the receiving buffer, and updating the current element of the receiving buffer to be a next idle element; the first storage unit is used for storing a first address pointer and a data length of the media stream information.
In some embodiments, the first storage unit points to the receive buffer.
In some embodiments, the index information comprises a head address pointer and a data length of the media stream information, and the transmission buffer is a second overlapping structure for transmitting data; the sending the media stream information based on the index information includes: determining that the sending buffer is not empty, and a second storage unit in the second overlapping structure acquires a first address pointer and a data length of the media stream information; and sending the media stream information represented by the sending buffer based on the head address pointer and the data length of the media stream information.
In some embodiments, the second storage unit points to the transmit buffer.
In some embodiments, after the sending the media stream information based on the index information, the method further includes: after the second overlay structure data is successfully sent, removing a first address pointer and size of the media stream information in the sending buffer, and setting a corresponding element identifier in the receiving buffer; and when the multiple outputs to be distributed of a certain path of input media stream information are all successfully transmitted, setting the element identifier in the receiving buffer to be idle.
In some embodiments, the receive buffer is a circular buffer and the transmit buffer is a doubly linked list buffer.
In a second aspect, an embodiment of the present invention provides a media stream distribution server, including: the media stream information caching module is used for caching media stream information in a receiving buffer, determining index information of the media stream information based on the media stream information, and sending the index information to a sending buffer; and the media stream information sending module is used for sending the media stream information based on the index information.
In a third aspect, an embodiment of the present invention provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the steps of the media stream distribution method according to any one of the foregoing embodiments.
In a fourth aspect, an embodiment of the present invention provides a non-transitory computer readable storage medium, on which a computer program is stored, the computer program, when executed by a processor, implementing the steps of the media stream distribution method according to any one of the above embodiments.
According to the media stream distribution method provided by the embodiment of the invention, the index information is sent to the sending buffer, the media stream information is sent based on the index information, the received data is uniquely stored in the receiving buffer, and when the media stream information is sent, the index information based on the data points to the data to be sent, so that the copying work of the bottom layer to the media stream data is greatly reduced, the CPU load is reduced, and the concurrency of a media stream distribution program is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a flow chart of a media stream distribution method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an overall media stream distribution structure according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an overlay structure according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating receive buffering according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating transmit buffering according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The media stream distribution method, the server and the electronic device according to the embodiments of the present invention are described below with reference to fig. 1 to 6.
As shown in fig. 1, the media stream distribution method according to the embodiment of the present invention includes step S100, step S200, step S300, and step S400.
Step S100, the media stream information is buffered in the receiving buffer.
It should be noted that, when implementing the media stream distribution method, a media stream distribution server constructed based on an Input/Output Completion Port (IOCP) trigger mechanism needs to start the IOCP mechanism and perform initialization work through the constructed IOCP trigger model. And after the media stream distribution server receives the media stream information through the IOCP mechanism, caching the media stream information in a receiving buffer.
Step S200, based on the media stream information, determining the index information of the media stream information.
It should be noted that, when receiving an input media stream, the media stream distribution server sets the first storage unit in the first overlay structure as a current element of the receive buffer, and updates the current element of the receive buffer as a next idle element; when the media stream distribution server successfully receives the input media stream information, the index information of the data in the receiving buffer is further determined, and the corresponding index information is added into the sending buffer to be sent.
When the media stream information is actually used, the index information of the media stream information is the first address pointer and the data length of the media stream information.
For example, the first overlay structure is an overlay structure for receiving data, the first storage unit is formed by using the Wsabuf variable in the first overlay structure, and the first address pointer and the data length of the data are saved by the Wsabuf variable.
The data length indicates a memory length occupied from the head address to the end of the data.
Step S300, sending the index information to a sending buffer.
In actual use, after determining the index information of the data in the receiving buffer, the media stream distribution server adds the corresponding index information to the sending buffer to be sent, so that the element of the sending buffer is the index information of the media stream information, that is, the media stream data is described by the head address and the data length of the sending buffer data.
And step S400, transmitting the media stream information based on the index information.
In practical use, after the sending buffer receives the index information of the media stream information, the second overlay structure sends the media stream information according to the index information.
It should be noted that each time the IOCP triggers a reception completion event, the IOCP adds the received media stream data index to the transmission buffer, and then invokes wsasedto to transmit the media stream information represented by the transmission buffer. After receiving the successful event of transmission, the media stream distribution server detects whether the transmission buffer is empty, if not, the media stream distribution server calls wsasedto to transmit the media stream data represented in the transmission buffer, removes the elements of the successfully transmitted transmission buffer, updates the identifiers of the elements in the successfully transmitted reception buffer, and sets the element identifiers of the input media stream reception buffer to be idle when the input media stream reception buffer elements are successfully transmitted on a plurality of specified output paths.
In the above embodiment, by sending the index information to the transmission buffer and sending the media stream information based on the index information, the media stream distribution method makes the media stream data unique from the media stream data received in the variable wsabuf in the overlapping structure for receiving to the media stream data sent by the variable wsabuf in the overlapping structure for sending, thereby avoiding the copy process of the media stream data, saving the overhead of the media stream distribution server, and ensuring the amount of concurrency of the program.
According to the media stream distribution method provided by the embodiment of the invention, the index information is sent to the sending buffer, the media stream information is sent based on the index information, the received data is uniquely stored in the receiving buffer, and when the media stream information is sent, the index information based on the data points to the data to be sent, so that the copying work of the bottom layer to the media stream data is greatly reduced, the CPU load is reduced, and the concurrency of a media stream distribution program is improved.
In fig. 1, the receiving buffer is a first overlay structure for receiving data, and step S100 buffers media stream information in the receiving buffer, including: when media stream information is received, setting a first storage unit in a first overlapping structure as a current element of a receiving buffer, and updating the current element of the receiving buffer into a next idle element; the first storage unit is used for storing a first address pointer and a data length of the media stream information.
The overlay structure for receiving data is defined as a first overlay structure of the media stream distribution server, and the receive buffer is represented by the first overlay structure. When the media stream distribution server receives the media stream information, the current element of the receiving buffer is obtained through the first storage unit in the first overlapping structure, the first address pointer and the data length of the received media stream information are stored, and then the current element of the receiving buffer is updated to be the next idle element.
In the media stream distribution method provided by the embodiment of the present invention, the first address pointer and the data length of the media stream information are stored in the first storage unit in the first overlapping structure, so that when the media stream distribution server sends the media stream information, the sending buffer can point to the data to be sent according to the first address pointer and the data length of the media stream information, thereby reducing copy work of a bottom layer on media stream data, reducing cpu load, and improving concurrency of a media stream distribution program.
In the above embodiment, the first storage unit points to the receive buffer.
It should be noted that the first storage unit points to the receiving buffer, and the first address pointer and the data length of the media stream data are stored through the first storage unit. The first storage unit can point to the elements in the receiving buffer, the media stream distribution server can be ensured to send the media stream information according to the head address pointer and the data length of the media stream data, and the concurrency of the media stream distribution program is improved.
In step S400, the index information includes a first address pointer and a data length of the media stream information, and the transmission buffer is a second overlay structure for transmitting data; transmitting media stream information based on the index information, comprising: determining that the sending buffer is not empty, and acquiring a first address pointer and a data length of the media stream information by a second storage unit in a second overlapping structure; and transmitting the media stream information represented by the transmission buffer based on the first address pointer and the data length of the media stream information.
When the second overlapping structure is used for sending the media stream information in practice, when the second overlapping structure sends the media stream information according to the index information, and the sending buffer is not empty, namely the sending buffer has the index information, the second storage unit in the second overlapping structure obtains the first address pointer and the data length of the media stream information, and sends the media stream information represented by the sending buffer according to the first address pointer and the data length of the media stream information.
According to the media stream distribution method provided by the embodiment of the invention, the first address pointer and the data length of the media stream information are stored through the second storage unit in the second overlapping structure, so that when the media stream distribution server sends the media stream information, the media stream distribution server can point to the data to be sent according to the first address pointer and the data length of the media stream information, the copy work of a bottom layer on the media stream data is reduced, the cpu load is reduced, and the concurrency of a media stream distribution program is increased.
In the above embodiment, the second storage unit points to the transmission buffer.
It should be noted that the second storage unit points to the transmission buffer, and the first address pointer and the data length of the media stream data are received through the second storage unit. The second storage unit can point to the elements in the receiving buffer, so that the media stream distribution server can send media stream information according to the head address pointer and the data length of the media stream data, and the concurrency of a media stream distribution program is improved.
Step S400 is to transmit media stream information based on the index information, and then further includes: after the second overlapped structure data is successfully sent, removing a first address pointer and a data length of media stream information in a sending buffer, and setting a corresponding element identifier in a receiving buffer; and when the multiple outputs to be distributed of a certain path of input media stream information are all successfully transmitted, setting the element identifier in the receiving buffer to be idle.
When the data stream is actually used, the second overlapping structure needs to remove the data element in the sending buffer after the media stream information is successfully sent according to the index information, and sets the corresponding element identifier of the receiving buffer to be in an idle state; when the multiple outputs to be distributed of a certain path of input media stream information are all successfully transmitted, setting the element identifier in the receiving buffer to be idle.
In the above embodiment, the receiving buffer is a circular buffer, and the transmitting buffer is a doubly linked list buffer.
In practice, the receive buffer is set to a circular buffer, which is implemented using an array data structure, i.e., its memory space is contiguous, and used and unused data is swapped when the data reception reaches a specified length. The transmission buffer is a double linked list buffer, and is realized by adopting a double linked list principle. The media stream distribution server can point to the data to be sent based on the index information of the data, copy work of a bottom layer on the media stream data is reduced, CPU load is reduced, and concurrency of a media stream distribution program is improved.
As shown in fig. 2, a media stream distribution server includes: the media stream information caching module is used for caching the media stream information in a receiving buffer, determining the index information of the media stream information based on the media stream information, and sending the index information to a sending buffer; and the media stream information sending module is used for sending the media stream information based on the index information.
In fig. 2, the overall structure of media stream distribution includes: the IOCP mechanism is used for completing the input and output mechanisms of the ports; a first overlay structure for receiving data; and a second overlapping structure for transmitting data. As shown in fig. 4, the receive buffer may be a circular buffer or a ring structure; as shown in fig. 5, the transmit buffer may be a doubly linked list buffer, or chain structure.
In the first overlapping structure and the second overlapping structure, Socket1 is a local Socket of the current connection; socket2 is used for storing handshake sockets during tcp accept handshake operation; the length of actually read and written data is received and transmitted by Rw each time; the Wsabuf in the Recv points to a receiving buffer element, and a specific data structure is expanded and explained in FIG. 4; wsabuf in send points to the send buffer element, and the specific data structure is illustrated in fig. 5; an Event represents an Event; ip of remote indicates the Ip address of the remote end; port of remote indicates the Port number of the remote end; callback io represents a handle function pointer for an event; context io represents the processing Context of an event; recv is an overlay structure for receiving data inheriting from the overlay structure, corresponding to 107 in fig. 2; send is the overlay structure for the transmit data inherits from the overlay structure, corresponding to 106 in FIG. 2.
In addition, the media stream distribution server supports the GB28181 protocol and the rtsp protocol to negotiate the media stream. As shown in fig. 2, 101, 102, 103, 104 are gb28181 protocol negotiation modules; 109. 110, 111, 112 are rtsp protocol negotiation modules. Wherein 101 represents a sip protocol stack; 102 represents an invite request session carrying sdp information; 103, an invite request session without sdp information is shown; 104 represents the mapping of the client requested invite session and the invite session sent to the front-end camera; 105 denotes a done port io mechanism; 106, which is illustrated in fig. 3, represents an overlapping structure for transmitting data; 107 denotes an overlay structure for receiving data, which is illustrated in fig. 3; 108, data to be transmitted and received; 109 represents the mapping of client requested rtsp sessions to the front-end cameras; 110 represents a client-initiated connection; 111 denotes a connection to a front camera; 112 denotes an rtsp protocol stack.
The session negotiation of the sip protocol request media stream is realized through the gb28181 protocol negotiation module, the IOCP, the overlay structure for receiving data and the overlay structure for transmitting data, and the overlay structure of the negotiated media stream is determined. The negotiation session of the sip protocol request media stream is associated with the overlapping structure of the negotiated media stream, so that the upper layer protocol controls the media stream.
Through the rtsp protocol negotiation module, the IOCP, the overlapping structure for receiving data and the overlapping structure for sending data, the negotiation session of the rtsp protocol request media stream is realized, and the overlapping structure of the negotiated media stream is determined. And requesting the media stream negotiation session by the rtsp protocol, associating the negotiated media stream overlapping structure, and realizing the control of the upper layer protocol on the media stream.
According to the media stream distribution server provided by the embodiment of the invention, the index information is sent to the sending buffer through the media stream information caching module, the media stream information sending module sends the media stream information based on the index information, the received data is uniquely stored in the receiving buffer, and when the media stream information is sent, the index information based on the data points to the data to be sent, so that the copying work of the media stream data by a bottom layer is greatly reduced, the cpu load is reduced, and the concurrency of a media stream distribution program is improved.
Fig. 6 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 6: a processor (processor)810, a communication Interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication Interface 820 and the memory 830 communicate with each other via the communication bus 840. The processor 810 may invoke logic instructions in the memory 830 to perform a media stream distribution method comprising: buffering the media stream information in a receive buffer; determining index information of the media stream information based on the media stream information; sending the index information to a sending buffer; and transmitting the media stream information based on the index information.
It should be noted that, when being implemented specifically, the electronic device in this embodiment may be a server, a PC, or other devices, as long as the structure includes the processor 810, the communication interface 820, the memory 830, and the communication bus 840 shown in fig. 6, where the processor 810, the communication interface 820, and the memory 830 complete mutual communication through the communication bus 840, and the processor 810 may call the logic instructions in the memory 830 to execute the above method. The embodiment does not limit the specific implementation form of the electronic device.
In addition, the logic instructions in the memory 830 may be implemented in software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Further, the present invention discloses a computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, which when executed by a computer, the computer is capable of executing the media stream distribution method provided by the above-mentioned method embodiments.
In another aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented to perform the media stream distribution method provided in the foregoing embodiments when executed by a processor.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for media stream distribution, comprising:
buffering the media stream information in a receive buffer;
determining index information of the media stream information based on the media stream information;
sending the index information to a sending buffer;
and transmitting the media stream information based on the index information.
2. The media stream distribution method according to claim 1, wherein the receiving buffer is a first overlay structure for receiving data, and wherein the buffering media stream information in the receiving buffer comprises:
when media stream information is received, setting a first storage unit in the first overlapping structure as a current element of the receiving buffer, and updating the current element of the receiving buffer to be a next idle element;
the first storage unit is used for storing a first address pointer and a data length of the media stream information.
3. A media stream distribution method according to claim 2, characterized in that said first storage unit points to said reception buffer.
4. A media stream distribution method according to any of claims 1-3, wherein said index information comprises a head address pointer and a data length of said media stream information, said transmission buffer being a second overlap structure for transmitting data;
the sending the media stream information based on the index information includes:
determining that the sending buffer is not empty, and a second storage unit in the second overlapping structure acquires a first address pointer and a data length of the media stream information;
and sending the media stream information represented by the sending buffer based on the head address pointer and the data length of the media stream information.
5. The media stream distribution method according to claim 4, wherein said second storage unit points to said transmission buffer.
6. The media stream distribution method according to claim 4, further comprising, after said sending the media stream information based on the index information:
after the second overlay structure data is successfully sent, removing a first address pointer and size of the media stream information in the sending buffer, and setting a corresponding element identifier in the receiving buffer;
and when the multiple outputs to be distributed of a certain path of input media stream information are all successfully transmitted, setting the element identifier in the receiving buffer to be idle.
7. A media stream distribution method according to any of claims 1-3, wherein the receive buffer is a circular buffer and the transmit buffer is a doubly linked list buffer.
8. A media stream distribution server, comprising:
the media stream information caching module is used for caching media stream information in a receiving buffer, determining index information of the media stream information based on the media stream information, and sending the index information to a sending buffer;
and the media stream information sending module is used for sending the media stream information based on the index information.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the media stream distribution method according to any of claims 1 to 7 are implemented by the processor when executing the program.
10. A non-transitory computer readable storage medium, having stored thereon a computer program, which, when being executed by a processor, carries out the steps of the media stream distribution method according to any one of claims 1 to 7.
CN202010518335.8A 2020-06-09 2020-06-09 Media stream distribution method, server and electronic equipment Pending CN111786957A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010518335.8A CN111786957A (en) 2020-06-09 2020-06-09 Media stream distribution method, server and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010518335.8A CN111786957A (en) 2020-06-09 2020-06-09 Media stream distribution method, server and electronic equipment

Publications (1)

Publication Number Publication Date
CN111786957A true CN111786957A (en) 2020-10-16

Family

ID=72753758

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010518335.8A Pending CN111786957A (en) 2020-06-09 2020-06-09 Media stream distribution method, server and electronic equipment

Country Status (1)

Country Link
CN (1) CN111786957A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020091863A1 (en) * 1997-11-17 2002-07-11 Schug Klaus H. Interoperable network communication architecture
CN101827251A (en) * 2010-05-07 2010-09-08 深圳创维-Rgb电子有限公司 Method and device for playing network streaming media
CN105406999A (en) * 2015-11-20 2016-03-16 福建星网锐捷安防科技有限公司 Multi-data distribution method and distribution equipment
CN107948713A (en) * 2017-10-31 2018-04-20 北京飞利信电子技术有限公司 A kind of delay live method and system
CN108270732A (en) * 2016-12-30 2018-07-10 北京视联动力国际信息技术有限公司 A kind of Streaming Media processing method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020091863A1 (en) * 1997-11-17 2002-07-11 Schug Klaus H. Interoperable network communication architecture
CN101827251A (en) * 2010-05-07 2010-09-08 深圳创维-Rgb电子有限公司 Method and device for playing network streaming media
CN105406999A (en) * 2015-11-20 2016-03-16 福建星网锐捷安防科技有限公司 Multi-data distribution method and distribution equipment
CN108270732A (en) * 2016-12-30 2018-07-10 北京视联动力国际信息技术有限公司 A kind of Streaming Media processing method and system
CN107948713A (en) * 2017-10-31 2018-04-20 北京飞利信电子技术有限公司 A kind of delay live method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
马金鑫等: "基于IOCP的高并发通信服务器的设计与实现", 《通信技术》 *

Similar Documents

Publication Publication Date Title
KR101943139B1 (en) Device linking
JP6325105B2 (en) Wireless media sharing from multiple sources to a single sink
US8683065B2 (en) Multicast content provider
WO2015165395A1 (en) Video playback method and apparatus
US9065666B2 (en) System and method of multi-media conferencing between universal plug and play (UPnP) enabled telephony devices and wireless area network (WAN) devices
KR20210047933A (en) Video screen projection method and apparatus, computer equipment, and storage media
EP3996355B1 (en) Method for transferring media stream and user equipment
TW201517572A (en) A method, device, and system thereof for data processing
US20170171585A1 (en) Method and Electronic Device for Recording Live Streaming Media
WO2015176648A1 (en) Method and device for transmitting data in intelligent terminal to television terminal
JP2012501133A (en) Method for transferring a video session between a fixed multimedia device and a mobile multimedia device
US9712865B2 (en) Method, device and system for switching back transferred-for-play digital media content
CN111064771A (en) Network request processing method and system
KR20070024183A (en) Method for controlling data transmission and network apparatus transmitting data by using the same
WO2022100199A1 (en) Data transmission method and apparatus, and medium, electronic device and network access device
WO2011130962A1 (en) Remote processing method, device and system
CN111786957A (en) Media stream distribution method, server and electronic equipment
CN115865884A (en) Network camera data access device and method, network camera and medium
EP1954001B1 (en) Method for Providing Data Securely Allowing Smooth Switching of Channels
CN112383801B (en) Media stream distribution method, device, distribution server and storage medium
CN109756755A (en) A kind of media playing method, device and system
WO2017071655A1 (en) Multi set top box bandwidth allocation method and device
JP2005303622A (en) Electronic equipment and control method
US20110276669A1 (en) Method and System for Peer-to-Peer Stream
KR100518085B1 (en) Device and method for parallel down-loading file

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201016