Method for transparent transmission of RTMP and RTSP WS-FLV based on streaming media large model
Through the streaming media large model + single-port transparent transmission RTMP RTSP WS-FLV method, the system complexity and security issues caused by multi-port opening are solved, achieving more efficient and secure streaming media data transmission and resource management, and improving the overall System stability and performance.
Patent Information
- Application Number
- CN202410542243.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-30
- Publication Date
- 2024-08-23
AI Technical Summary
In the field of security, the complexity of multi-port open system architecture increases, resulting in system configuration errors and reduced performance. It also increases the network attack surface and affects the security of streaming media transmission.
Using the streaming media large model + single port transparent transmission RTMP RTSP WS-FLV method, by building the streaming media large model technical framework, importing the trained protocol characteristic values, configuring the listening port, intelligently caching and identifying the request data, and realizing the transparency of the protocol data. pass.
Simplify the system structure, reduce maintenance complexity, improve system stability and security, effectively manage and allocate system resources, improve overall efficiency, and reduce resource waste.
Smart Images

Figure CN118540309A
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of security streaming media, and in particular to a method for transparently transmitting RTMPRTSP WS-FLV based on a large streaming media model. Background Art
[0002] In the field of security, port restriction, as a key practice to improve network security, plays an important role in preventing potential threats and strengthening overall system security. However, when implementing port restrictions, some problems and challenges may also arise and need to be effectively addressed and managed. When we discuss the technology trends in the field of streaming media security, we will find that many peer companies generally adopt system architectures that use multiple open ports and simple forwarding proxies. However, this choice may bring a series of issues that we need to seriously consider. First of all, it is well known that the opening of multiple ports greatly increases the complexity of the entire system. Each port needs to be configured and managed separately, which not only increases the workload of system administrators, but also easily leads to system configuration errors and reduces overall performance. At the same time, the use of multiple ports also increases the network attack surface of the system. In the field of streaming media security, data security is the primary concern. Too many open ports may make the system more vulnerable to network attacks, which may have a negative impact on the security of streaming media transmission.
[0003] In this case, it may be wiser to use a large streaming model + single-port transparent transmission of multiple services and streaming protocols as a better alternative. By using a large streaming model + single-port transparent transmission, we can simplify the structure of the entire system and reduce the complexity of maintenance. This centralized communication method helps to improve the overall stability of the system and reduce the risk of system attacks. In addition, the large streaming model + single-port transparent transmission of streaming media can also make more efficient use of system resources. By concentrating communication on a large streaming model + single port, we can better manage and allocate system resources and improve overall efficiency. This is a significant advantage of the large streaming model + single-port transparent transmission when the opening of multiple ports may cause resource waste. In general, we need to be aware of the problems that may arise from the use of multiple ports and carefully consider the choice of technical architecture. The large streaming model + single-port transparent transmission of streaming media provides a more intelligent, secure and efficient solution. Through careful planning and deployment, we can better balance the complexity and performance of the system and improve the availability and stability of the entire streaming security system. Summary of the invention
[0004] In view of the above shortcomings of the prior art, the first object of the present invention is to provide a method for transparently transmitting RTMP RTSP WS-FLV based on a large streaming media model to solve the problems in the above background technology.
[0005] To achieve the above object, the present invention provides the following technical solutions:
[0006] A method for transparently transmitting RTMP RTSP WS-FLV based on a large streaming media model comprises the following steps:
[0007] S1. Build a streaming media large model technology framework service on the streaming media service platform and start the model technology framework;
[0008] S2, import the trained RTMP RTSP WS-FLV protocol feature values into the large streaming media model;
[0009] S3, the streaming media large model server is configured with the IP and port of the RTMP RTSP WS-FLV server that listens to the transparent transmission port;
[0010] S4, streaming media large model server intelligently caches RTMP RTSP WS-FLV request data;
[0011] S5. Use the streaming media large model service to intelligently identify the type of Client request, RTMP RTSP WS-FLV request;
[0012] S6. The request is transparently transmitted to the corresponding RTMP RTSP WS-FLV server through the streaming media large model service. After success, the client tcp channel is marked with the corresponding ai tcp channel to perform the transparent transmission function of the protocol data.
[0013] The present invention is further configured as follows: in step S1,
[0014] S1.1. Determine the requirements and goals of the streaming media service platform. Determine the streaming media protocols that need to be supported, such as RTMP, RTSP, WS-FLV, etc., and select the large model technology frameworks that are planned to be used, such as TensorFlow, PyTorch, etc.;
[0015] S1.2. Choose the infrastructure that suits your needs, including cloud service providers such as AWS, Azure, Google Cloud, etc. or self-built servers;
[0016] S1.3. Integrate the corresponding libraries and tools into the streaming media server according to the selected large model technology framework. Make sure the server environment has the required libraries and dependencies installed;
[0017] S1.4. Write custom code: According to the requirements of the streaming media big model, write custom code to process the streaming media data and call the big model technology framework for processing. This may involve writing plug-ins, scripts or custom applications;
[0018] S1.4. Write custom code: According to the requirements of the streaming media big model, write custom code to process the streaming media data and call the big model technology framework for processing. This may involve writing plug-ins, scripts or custom applications;
[0019] S1.5. After the above steps are completed correctly, start the model technology framework.
[0020] The present invention is further configured as follows: in step S2,
[0021] S2.1, RTMP, RTSP, and WS-FLV protocols each have specific feature values, and the streaming media model needs to "understand" these feature values and their corresponding meanings. These feature values can include the header information of the data packet, the length of the data packet, and the transmission rate. Label the collected feature values and mark each request as RTMP, RTSP, or WS-FLV type. Make sure your data set has sufficient sample size and representativeness to improve the accuracy of the model;
[0022] S2.2. Before importing the feature values into the model, the data needs to be preprocessed to ensure that it meets the input requirements of the model. This may involve converting the feature values into the format required by the model, performing normalization or standardization, etc.
[0023] S2.3. Depending on the selected model and framework, write code to import the feature values of RTMP, RTSP, and WS-FLV protocols into the model for prediction. You need to write a custom data loader or data processing function to process the streaming data and pass it to the model for inference or import feature values after training.
[0024] The present invention is further configured as follows: in step S3,
[0025] S3.1. Set port monitoring and forwarding rules in the configuration file of the streaming media server. You need to specify the port number to be monitored and set forwarding rules to forward received requests to the IP and port of the downstream server;
[0026] S3.2. After completing the configuration, restart the large model streaming media server and test whether the configuration is correct. You can use the streaming media client to send requests to the streaming media large model server;
[0027] S3.3. Regularly monitor the operating status of the streaming media server, including port monitoring status, effectiveness of forwarding rules, etc. Adjust and optimize as needed to ensure the stability and reliability of the service.
[0028] The present invention is further configured as follows: in step S4:
[0029] S4.1. Choose a suitable cache system or technology, such as Redis, Memcached, or a custom-developed cache system;
[0030] S4.2. Determine whether the RTMP RTSP WS-FLV request data needs to be cached, as well as the cache validity period and size limit rules. Formulate cache rules based on the characteristics of the RTMP RTSP WS-FLV request data and the requirements of the model;
[0031] S4.3. In the streaming media large model server, write code to implement the cache function. According to the cache system and rules you choose, call the corresponding API to implement the cache and read operations of the requested data;
[0032] S4.4. Regularly clean up expired cache data to free up resources and ensure the performance and stability of the cache system. According to the rules and usage of the cache, formulate appropriate cleanup strategies and implement corresponding regular cleanup functions on the server.
[0033] The present invention is further configured as follows: in step S5:
[0034] S5.1. Extract the required data from the S4 streaming media large model server intelligent cache RTMP RTSP WS-FLV request client request, and extract key information such as RTMP RTSP WS-FLV protocol header or request path;
[0035] S5.2, passing the extracted request data to the streaming media model for identification. The streaming media model will make inferences based on the received request data and output the corresponding request type probability distribution;
[0036] S5.3. Determine the type of request based on the probability distribution output by the model. Usually, the request type with the highest probability is selected as the final prediction result. If the request type is unclear or cannot be identified, the corresponding error handling or default handling is performed according to the business logic;
[0037] S5.4. Return a corresponding response to the client based on the processing result. This may include the result of forwarding the request to the downstream server, information about error handling, or other customized response content.
[0038] The present invention is further configured as follows: in step S6:
[0039] S6.1. According to the method mentioned in the previous step, the streaming media large model service is used to identify the request and determine its type RTMP, RTSP, WS-FLV. According to the identification result, the request data is transparently transmitted to the corresponding RTMP, RTSP or WS-FLV server. This can be achieved by establishing a TCP connection with these servers and forwarding the request data to these servers;
[0040] S6.2, after successfully transmitting the request, mark the correspondence between the client TCP channel, i.e., the connection between the client and the streaming media large model service, and the AI TCP channel, i.e., the connection between the streaming media large model service and the RTMP, RTSP or WS-FLV server. This can be achieved by maintaining a mapping table to associate the identifier of the client channel with the identifier of the AI channel;
[0041] S6.3. Once the correspondence between the client channel and the AI channel is established, the subsequent data transparent transmission function can be realized by reading the received data from the client channel and writing it to the RTMP, RTSP or WS-FLV server through the corresponding AI channel;
[0042] S6.4. Through the above steps, you can receive, identify and transparently transmit different types of requests in the streaming media large model service, and successfully mark the correspondence between the client channel and the AI channel, thereby realizing the transparent transmission function of the protocol data.
[0043] Beneficial Effects
[0044] Compared with the known public technology, the technical solution provided by the present invention has the following beneficial effects:
[0045] By using the system to carry the streaming media large model transparent transmission, the present invention can simplify the structure of the entire system, be more adaptable to the complex network environment, and reduce the complexity of maintenance. This media large model transparent communication method helps to improve the overall stability of the system and reduce the risk of the system being attacked. In addition, the streaming media large model can also more effectively utilize system resources, and more efficiently transparently transmit RTMP RTSP WS-FLV protocol through the streaming media large model recognition for protocol transparent transmission. We can better manage and allocate system resources and improve overall efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 A schematic diagram of a module of a method for transparently transmitting RTMP RTSP WS-FLV based on a large streaming media model of the present invention;
[0047] Figure 2 The present invention is a flow chart of a method for transparently transmitting RTMP RTSP WS-FLV based on a large streaming media model. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0049] The present invention will be further described below in conjunction with the embodiments.
[0050] Example 1
[0051] A method for transparently transmitting RTMP RTSP WS-FLV based on a large streaming media model comprises the following steps:
[0052] S1. Build a streaming media large model technology framework service on the streaming media service platform and start the model technology framework;
[0053] S2, import the trained RTMP RTSP WS-FLV protocol feature values into the large streaming media model;
[0054] S3, the streaming media large model server is configured with the IP and port of the RTMP RTSP WS-FLV server that listens to the transparent transmission port;
[0055] S4, streaming media large model server intelligently caches RTMP RTSP WS-FLV request data;
[0056] S5. Use the streaming media large model service to intelligently identify the type of Client request, RTMP RTSP WS-FLV request;
[0057] S6. The request is transparently transmitted to the corresponding RTMP RTSP WS-FLV server through the streaming media large model service. After success, the client tcp channel is marked with the corresponding ai tcp channel to perform the transparent transmission function of the protocol data.
[0058] In step S1,
[0059] S1.1. Determine the requirements and goals of the streaming media service platform. Determine the streaming media protocols that need to be supported, such as RTMP, RTSP, WS-FLV, etc., and select the large model technology frameworks that are planned to be used, such as TensorFlow, PyTorch, etc.;
[0060] S1.2. Choose the infrastructure that suits your needs, including cloud service providers such as AWS, Azure, Google Cloud, etc. or self-built servers;
[0061] S1.3. Integrate the corresponding libraries and tools into the streaming media server according to the selected large model technology framework. Make sure the server environment has the required libraries and dependencies installed;
[0062] S1.4. Write custom code: According to the requirements of the streaming media big model, write custom code to process the streaming media data and call the big model technology framework for processing. This may involve writing plug-ins, scripts or custom applications;
[0063] S1.4. Write custom code: According to the requirements of the streaming media big model, write custom code to process the streaming media data and call the big model technology framework for processing. This may involve writing plug-ins, scripts or custom applications;
[0064] S1.5. After the above steps are completed correctly, start the model technology framework;
[0065] In step S2,
[0066] S2.1, RTMP, RTSP, and WS-FLV protocols each have specific feature values, and the streaming media model needs to "understand" these feature values and their corresponding meanings. These feature values can include the header information of the data packet, the length of the data packet, and the transmission rate. Label the collected feature values and mark each request as RTMP, RTSP, or WS-FLV type. Make sure your data set has sufficient sample size and representativeness to improve the accuracy of the model;
[0067] S2.2. Before importing the feature values into the model, the data needs to be preprocessed to ensure that it meets the input requirements of the model. This may involve converting the feature values into the format required by the model, performing normalization or standardization, etc.
[0068] S2.3. Based on the selected model and framework, write code to import the feature values of RTMP, RTSP, and WS-FLV protocols into the model for prediction. You need to write a custom data loader or data processing function to process the streaming data and pass it to the model for inference or import feature values after training;
[0069] In step S3,
[0070] S3.1. Set port monitoring and forwarding rules in the configuration file of the streaming media server. You need to specify the port number to be monitored and set forwarding rules to forward received requests to the IP and port of the downstream server;
[0071] S3.2. After completing the configuration, restart the large model streaming media server and test whether the configuration is correct. You can use the streaming media client to send requests to the streaming media large model server;
[0072] S3.3. Regularly monitor the running status of the streaming media server, including port monitoring status, effectiveness of forwarding rules, etc. Adjust and optimize as needed to ensure the stability and reliability of the service;
[0073] In step S4:
[0074] S4.1. Choose a suitable cache system or technology, such as Redis, Memcached, or a custom-developed cache system;
[0075] S4.2. Determine whether the RTMP RTSP WS-FLV request data needs to be cached, as well as the cache validity period and size limit rules. Formulate cache rules based on the characteristics of the RTMP RTSP WS-FLV request data and the requirements of the model;
[0076] S4.3. In the streaming media large model server, write code to implement the cache function. According to the cache system and rules you choose, call the corresponding API to implement the cache and read operations of the requested data;
[0077] S4.4. Regularly clean up expired cache data to free up resources and ensure the performance and stability of the cache system. According to the cache rules and usage, formulate appropriate cleanup strategies and implement corresponding regular cleanup functions on the server;
[0078] In step S5:
[0079] S5.1. Extract the required data from the S4 streaming media large model server intelligent cache RTMP RTSP WS-FLV request client request, and extract key information such as RTMP RTSP WS-FLV protocol header or request path;
[0080] S5.2, passing the extracted request data to the streaming media model for identification. The streaming media model will make inferences based on the received request data and output the corresponding request type probability distribution;
[0081] S5.3. Determine the type of request based on the probability distribution output by the model. Usually, the request type with the highest probability is selected as the final prediction result. If the request type is unclear or cannot be identified, the corresponding error handling or default handling is performed according to the business logic;
[0082] S5.4. Return a corresponding response to the client based on the processing result. This may include the result of forwarding the request to the downstream server, information about error handling, or other customized response content;
[0083] In step S6:
[0084] S6.1. According to the method mentioned in the previous step, the streaming media large model service is used to identify the request and determine its type RTMP, RTSP, WS-FLV. According to the identification result, the request data is transparently transmitted to the corresponding RTMP, RTSP or WS-FLV server. This can be achieved by establishing a TCP connection with these servers and forwarding the request data to these servers;
[0085] S6.2, after successfully transmitting the request, mark the correspondence between the client TCP channel, i.e., the connection between the client and the streaming media large model service, and the AI TCP channel, i.e., the connection between the streaming media large model service and the RTMP, RTSP or WS-FLV server. This can be achieved by maintaining a mapping table to associate the identifier of the client channel with the identifier of the AI channel;
[0086] S6.3. Once the correspondence between the client channel and the AI channel is established, the subsequent data transparent transmission function can be realized by reading the received data from the client channel and writing it to the RTMP, RTSP or WS-FLV server through the corresponding AI channel;
[0087] S6.4. Through the above steps, you can receive, identify and transparently transmit different types of requests in the streaming media large model service, and successfully mark the correspondence between the client channel and the AI channel, thereby realizing the transparent transmission function of the protocol data.
[0088] In this embodiment, by building a large model technology framework based on streaming media, efficient transparent transmission of protocols such as RTMP, RTSP and WS-FLV is achieved on the streaming media service platform. First, a large model technology framework that adapts to streaming media needs is started and deployed on the platform, including selecting appropriate models such as TensorFlow or PyTorch, and integrating the required libraries and tools. Then, the system imports the feature values trained for different streaming protocols into the large model. These feature values cover the header information, length and transmission rate of the data packet, etc., to ensure that the model can accurately identify and process various types of protocol data.
[0089] The present invention, the method of transparently transmitting RTMP, RTSP, WS-FLV based on the streaming media big model, aims to realize the efficient processing and transmission of streaming media data through advanced big model technology. The whole process is divided into multiple key steps, each of which is to ensure the seamless transmission of data between different protocols and services, while improving the intelligence and automation of the system.
[0090] First, the system builds a large model technology framework service on the streaming service platform and starts the framework S1. This includes determining service requirements, selecting an appropriate large model framework such as TensorFlow or PyTorch, and integrating necessary libraries and tools. In addition, it also involves writing custom code to process streaming data to adapt to the needs of different streaming protocols.
[0091] Next, the system imports the characteristic values S2 for RTMP, RTSP, and WS-FLV protocols for the large model. These characteristic values reflect the structure and behavior characteristics of different protocol data packets, such as header information, data length, and transmission rate. By preprocessing and formatting these data, the large model can more accurately identify and process the data of these protocols.
[0092] The large model server configures the listening port and transparently transmits data to the corresponding RTMP, RTSP, and WS-FLV servers S3. This requires precise setting of port listening and forwarding rules to ensure that all data streams can be correctly routed to the target server.
[0093] The server will also intelligently cache RTMP, RTSP, and WS-FLV request data S4, selecting appropriate caching technology to optimize performance and resource utilization. Caching not only improves data processing speed, but also reduces server load.
[0094] The big model service uses its intelligent recognition function to accurately determine the protocol type S5 requested by the client. This step is to analyze the request data in the cache and use the big model to infer the data to determine its protocol type.
[0095] Finally, the system transparently transmits the identified request data to the corresponding RTMP, RTSP, WS-FLV server S6 through the large model service, and marks the correspondence between the client TCP channel and the AI TCP channel during the transmission process to support the subsequent data transparent transmission function. This process not only ensures the efficiency of data transmission, but also ensures the security and reliability of the transmission process.
[0096] Through this series of steps, the method can effectively manage and transmit streaming media data in a complex network environment, while using the powerful computing power of the large model to improve the performance and intelligence level of the entire system.
[0097] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements will not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for transparently transmitting RTMP RTSP WS-FLV based on a large streaming media model, characterized in that: The following steps are involved: S1. Build a streaming media large model technology framework service on the streaming media service platform and start the model technology framework; S2, import the trained RTMP RTSP WS-FLV protocol feature values into the large streaming media model; S3, the streaming media large model server is configured with the IP and port of the RTMP RTSP WS-FLV server that listens to the transparent transmission port; S4, streaming media large model server intelligently caches RTMP RTSP WS-FLV request data; S5. Use the streaming media large model service to intelligently identify the type of Client request, RTMP RTSP WS-FLV request; S6. The request is transparently transmitted to the corresponding RTMP RTSP WS-FLV server through the streaming media large model service. After success, the client tcp channel is marked with the corresponding ai tcp channel to perform the transparent transmission function of the protocol data.
2. The method according to claim 1, characterized in that: In step S1, S1.
1. Determine the requirements and goals of the streaming media service platform. Determine the streaming media protocols that need to be supported, such as RTMP, RTSP, WS-FLV, etc., and select the large model technology frameworks that are planned to be used, such as TensorFlow, PyTorch, etc.; S1.
2. Choose the infrastructure that suits your needs, including cloud service providers such as AWS, Azure, Google Cloud, etc. or self-built servers; S1.
3. Integrate the corresponding libraries and tools into the streaming media server according to the selected large model technology framework. Make sure the server environment has the required libraries and dependencies installed; S1.
4. Write custom code: According to the requirements of the streaming media big model, write custom code to process the streaming media data and call the big model technology framework for processing. This may involve writing plug-ins, scripts or custom applications; S1.
4. Write custom code: According to the requirements of the streaming media big model, write custom code to process the streaming media data and call the big model technology framework for processing. This may involve writing plug-ins, scripts or custom applications; S1.
5. After the above steps are completed correctly, start the model technology framework.
3. The method of transparently transmitting RTMP RTSP WS-FLV based on a large streaming media model according to claim 1, characterized in that: In step S2, S2.1, RTMP, RTSP, and WS-FLV protocols each have specific feature values, and the streaming media model needs to "understand" these feature values and their corresponding meanings. These feature values can include the header information of the data packet, the length of the data packet, and the transmission rate. Label the collected feature values and mark each request as RTMP, RTSP, or WS-FLV type. Make sure your data set has sufficient sample size and representativeness to improve the accuracy of the model; S2.
2. Before importing the feature values into the model, the data needs to be preprocessed to ensure that it meets the input requirements of the model. This may involve converting the feature values into the format required by the model, performing normalization or standardization, etc. S2.
3. Depending on the selected model and framework, write code to import the feature values of RTMP, RTSP, and WS-FLV protocols into the model for prediction. You need to write a custom data loader or data processing function to process the streaming data and pass it to the model for inference or import feature values after training.
4. The method of transparently transmitting RTMP RTSP WS-FLV based on a large streaming media model according to claim 1, characterized in that: In step S3, S3.
1. Set port monitoring and forwarding rules in the configuration file of the streaming media server. You need to specify the port number to be monitored and set forwarding rules to forward received requests to the IP and port of the downstream server; S3.
2. After completing the configuration, restart the large model streaming media server and test whether the configuration is correct. You can use the streaming media client to send requests to the streaming media large model server; S3.
3. Regularly monitor the running status of the streaming media server, including the port monitoring status, the effectiveness of the forwarding rules, etc. Make adjustments and optimizations as needed to ensure service stability and reliability.
5. The method of transparently transmitting RTMP RTSP WS-FLV based on a large streaming media model according to claim 1, characterized in that: In step S4: S4.
1. Choose a suitable cache system or technology, such as Redis, Memcached, or a custom-developed cache system; S4.
2. Determine whether the RTMP RTSP WS-FLV request data needs to be cached, as well as the cache validity period and size limit rules. Formulate cache rules based on the characteristics of the RTMP RTSP WS-FLV request data and the requirements of the model; S4.
3. In the streaming media large model server, write code to implement the caching function. Based on the cache system and rules you choose, call the corresponding API to implement the cache and read operations of the requested data; S4.
4. Regularly clean up expired cache data to free up resources and ensure the performance and stability of the cache system. According to the rules and usage of the cache, formulate an appropriate cleanup strategy and implement the corresponding regular cleanup function on the server.
6. The method of transparently transmitting RTMP RTSP WS-FLV based on a large streaming media model according to claim 5, characterized in that: In step S5: S5.
1. Extract the required data from the S4 streaming media large model server intelligent cache RTMP RTSP WS-FLV request client request, and extract key information such as RTMP RTSP WS-FLV protocol header or request path; S5.2, passing the extracted request data to the streaming media model for identification. The streaming media model will make inferences based on the received request data and output the corresponding request type probability distribution; S5.
3. Determine the type of request based on the probability distribution output by the model. Usually, the request type with the highest probability is selected as the final prediction result. If the request type is unclear or cannot be identified, the corresponding error handling or default handling is performed according to the business logic; S5.
4. Return a corresponding response to the client based on the processing result. This may include the result of forwarding the request to the downstream server, information about error handling, or other customized response content.
7. The method of transparently transmitting RTMP RTSP WS-FLV based on a large streaming media model according to claim 6, characterized in that: In step S6: S6.
1. According to the method mentioned in the previous step, the streaming media large model service is used to identify the request and determine its type RTMP, RTSP, or WS-FLV. Based on the recognition results, the request data is transparently transmitted to the corresponding RTMP, RTSP or WS-FLV server. This can be achieved by establishing a TCP connection with these servers and forwarding the request data to these servers; S6.2, after successfully transmitting the request, mark the correspondence between the client TCP channel, i.e., the connection between the client and the streaming media large model service, and the AI TCP channel, i.e., the connection between the streaming media large model service and the RTMP, RTSP or WS-FLV server. This can be achieved by maintaining a mapping table to associate the identifier of the client channel with the identifier of the AI channel; S6.
3. Once the correspondence between the client channel and the AI channel is established, the subsequent data transparent transmission function can be realized by reading the received data from the client channel and writing it to the RTMP, RTSP or WS-FLV server through the corresponding AI channel; S6.
4. Through the above steps, you can receive, identify and transparently transmit different types of requests in the streaming media large model service, and successfully mark the correspondence between the client channel and the AI channel, thereby realizing the transparent transmission function of the protocol data.
