A low-latency audio and video transmission method, device, and computer-readable storage medium
A transmission method, audio and video technology, which is applied in the field of data communication transmission, can solve problems such as low delay and delay, and achieve the effect of reducing delay time and increasing the number of concurrent connections
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0042] Such as figure 1As shown, the embodiment of the present invention provides a low-latency audio and video transmission method, the method includes the following steps:
[0043] S101. Create a completion port through the main thread, and save the handle of the completion port;
[0044] S102. Establish multiple worker threads through the main thread, for processing audio and video communication requests, and realizing communication with the client;
[0045] S103. When the monitoring client communicates with the server, bind the Socket of the monitoring client to the completion port;
[0046] S104. Submit an audio and video communication request to the server through the Socket, and the worker thread scans the message queue of the completion port, retrieves and processes the audio and video communication request from the message queue.
[0047] Wherein, the specific steps of establishing multiple worker threads through the main thread include:
[0048] Query and obtain t...
Embodiment 2
[0064] Such as image 3 As shown, the hardware structure of a low-latency audio-video transmission device provided by the embodiment of the present invention, specifically, the low-latency audio-video transmission device 30 includes at least a processor 31 , a memory 32 and a data bus 33 . The data bus 33 is used to realize the connection and communication between the processor 31 and the memory 32. The memory 32, as a computer-readable storage medium, can store at least one computer program, and these computer programs can be read, compiled and executed by the processor 31 , so as to realize the corresponding processing flow. In this embodiment, the memory 32 is used as a computer-readable storage medium, in which a low-latency audio and video transmission program is stored, and the program can be executed by the processor 31, thereby realizing the steps of the following low-latency audio and video transmission method :
[0065] Create a completion port through the main thr...
Embodiment 3
[0071] Based on the same inventive concept, another aspect of the present invention provides a computer-readable storage medium, the computer-readable storage medium stores a low-latency audio-video transmission program, and the low-latency audio-video transmission program is When the processor executes, the above-mentioned low-latency audio and video transmission method is realized.
[0072] Such as Figure 4 , 5 As shown, they are the schematic diagram of the process using the accept method and the schematic diagram of the process using the AcceptEx method. The specific program steps include:
[0073] Call the CreateIoCompletionPort() function to create a completion port, and in general, we only need to create this completion port and save its handle.
[0074] According to how many CPU processors there are in the system, how many worker (Worker) threads are established, these threads are specially used to communicate with the monitoring client; an independent monitoring th...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com