Real-time screen recording method and system for red-blue confrontation competition in network target range

By using webAPI technology to monitor the player interface in network security events, the problem of insufficient security and fairness of the game is solved, real-time monitoring and management of player behavior is achieved, and the fairness and transparency of the game is ensured. .

CN119052560APending Publication Date: 2024-11-29SAINING WANGAN
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411062511.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-05
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

The lack of security and fairness of competitions in existing network security events leads to players who may cheat and cheat, and it is difficult for existing technology to effectively monitor and ensure the fairness and transparency of competitions.

Method used

Using webAPI technology, real-time screen recording monitoring of the contestant's competition interface is realized through the RTCPeerConnection API and the MediaStream Recording API. WebRTC connection and MediaRecorder are used to upload and manage video data, ensuring that all contestants can enter the competition after turning on the screen before the competition, and The background monitors the contestant's screen stream in real time, providing administrators and referees with the function of viewing and managing screen recording data.

Benefits of technology

Through real-time screen recording monitoring and management, the fairness and security protection of network security competitions are significantly improved, the fairness and transparency of the competitions are guaranteed, and the players are prevented from illegal and irregular operations in the competitions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119052560A_ABST
    Figure CN119052560A_ABST
Patent Text Reader

Abstract

The invention discloses a real-time screen recording method and system for a red-blue confrontation competition in a network target range, and the method mainly comprises the steps: judging whether players start the screen recording or not, and entering a competition after all players start the screen recording; the method comprises the following steps: establishing a webRTC (Real Time Communication) connection between a local end and a remote peer end by calling an RTCPeerConnection interface of a webAPI (Application Program Interface); media easy recording is carried out through a MediaRecorder interface provided by a MediaStream Recording API, real-time recording of answering interfaces of players of both parties during a network target range red and blue confrontation competition is completed based on the two technologies, and the functions of real-time monitoring of an administrator and a referee on the competition player interface, a background screen recording data information management system and the like are added. And the screen recording data information of the competitors can be monitored and managed in real time, so that the fairness and safety protection of the network safety competition are enhanced to a great extent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a method and system for real-time screen recording of a red-blue confrontation competition in a network shooting range, which realizes real-time screen recording monitoring of the competition through technologies such as webAPI, and belongs to the technical field of computer software and network security. Background Art

[0002] In today's cybersecurity competitions, the technical level of security and fairness is not high, and most of them are still reflected in methods such as examiners' invigilation and shielding of examination room signals. However, with the development of informatization today, these methods are far from being enough for major events such as cybersecurity competitions, so players may cheat, cheat, and engage in other abnormal behaviors during the competition. Under the influence of this situation, it is necessary to use technical means to make up for the fairness and security issues in the cybersecurity red-blue confrontation competition, so that every player can shine in a fair, just, and open competition environment. Summary of the invention

[0003] Purpose of the invention: In view of the above-mentioned problems, the present invention provides a method and system for real-time screen recording of red-blue confrontation competition in a network shooting range, so as to realize real-time screen recording and monitoring of the contestant's competition interface during major network security competitions and maintain the fairness and transparency of the competition.

[0004] Technical solution: To achieve the above-mentioned invention object, the present invention adopts the following technical solution:

[0005] A method for real-time screen recording of a red-blue confrontation competition in a network shooting range comprises the following steps:

[0006] Determine whether the players have turned on screen recording, and enter the game after all players have turned on screen recording;

[0007] Use the RTCPeerConnection API interface in webAPI to implement the screen recording function. First, use the navigator.mediaDevices.getDisplayMedia method to obtain the user's screen stream, and create an RTCPeerConnection instance peerConnection for the WebRTC connection between the local end and the remote peer. After successfully obtaining the user's screen stream, initialize and verify it, and determine whether it is the entire screen that is recorded. If so, add the screen stream to peerConnection.

[0008] Use the MediaRecorder interface provided by the MediaStream Recording API to record the interface. After initializing the recorder instance mediaRecorder, add an event listener

[0009] mediaRecorder.ondataavailable, when the recorder has data available, calculate the duration and construct the data and time parameter objects to pass to the callback function, call the mediaRecorder.start method to record the interface, set the uploadTimeInterval time parameter, and call the method to upload the recorded media file to upload the recorded video data.

[0010] Preferably, a local description is created and set via the WebRTC SDP offer when the stream is ready and then sent to the peer.

[0011] Furthermore, when the user turns off screen recording, the recorder is closed, all tracks of the screen stream are stopped, and RTCPeerConnection is closed.

[0012] Furthermore, before the game starts, the administrator turns on the screen recording function and updates the enable_screen_monitor field status to true; after the player successfully logs in, he enters the competition list page and queries the enable_screen_monitor field status through the interface. If it is true, the screen recording start button is displayed.

[0013] Preferably, whether the entire screen is recorded is determined by judging whether the surface monitor set for the screen stream is monitor.

[0014] Preferably, the red-blue competition is conducted in a VPN environment, the players' devices are connected to the VPN, and the players are all in the same IP resource pool; the competition can only proceed after all players turn on screen recording, and the administrator checks in the background whether the IP addresses of all players' devices are in the IP resource pool.

[0015] Furthermore, during the recording process, administrators and referees can view the user's real-time screen recording, and support switching to one, four or six split-screen modes for page monitoring of multiple players.

[0016] Preferably, the player's screen recording information includes start time, end time, upload time, screen recording duration and file size.

[0017] A system for real-time screen recording of a red-blue confrontation competition in a network shooting range, comprising:

[0018] Screen recording control module, used to determine whether the players have turned on screen recording, and enter the game after all players have turned on screen recording;

[0019] The webAPI interface calling module is used to implement the screen recording function using the RTCPeerConnection API interface in the webAPI. First, the navigator.mediaDevices.getDisplayMedia method is used to obtain the user's screen stream, and an RTCPeerConnection instance peerConnection is created for the WebRTC connection between the local end and the remote peer end; after successfully obtaining the user's screen stream, it is initialized and verified, and it is determined whether it is the entire screen that is recorded. If so, the screen stream is added to peerConnection;

[0020] The MediaStream Recording API interface calling module is used to use the MediaRecorder interface provided by the MediaStream RecordingAPI to record the interface. After initializing the recorder instance mediaRecorder, it adds the event listener mediaRecorder.ondataavailable. When the recorder has data available, it calculates the duration and constructs the data and time parameter objects to pass to the callback function. It calls the mediaRecorder.start method to record the interface, sets the uploadTimeInterval time parameter, and calls the method to upload the recorded media file to upload the recorded video data.

[0021] A computer program product includes a computer program / instruction, and when the computer program / instruction is executed by a processor, the steps of a method for real-time screen recording of a red-blue confrontation competition in a network shooting range are implemented.

[0022] Beneficial effects: Compared with the prior art, the present invention has the following advantages: the present invention establishes a webRTC connection between the local end and the remote peer end by calling the RTCPeerConnection interface of the webAPI, and uses the MediaRecorder interface provided by the MediaStream Recording API to easily record media. The combination of the two completes the real-time recording of the answering interface of both players in the red-blue confrontation competition in the network range, and further adds the functions of real-time monitoring of the interface of the contestants by the administrator and the referee, and the background screen recording data information management system, which can monitor and manage the screen recording data information of the contestants in real time, and greatly enhance the fairness and security protection of the network security competition. The present invention greatly optimizes the drawbacks existing in traditional network security competitions and ensures the fairness and transparency of the competition. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1The present invention is a flowchart of the screen recording implementation.

[0024] Figure 2 This is a system operation diagram of an embodiment of the present invention.

[0025] Figure 3 This is a background operation flow chart of an embodiment of the present invention.

[0026] Figure 4 This is a flowchart of the foreground operation of an embodiment of the present invention.

[0027] Figure 5 This is a WebRTC connection relationship diagram of an embodiment of the present invention.

[0028] Figure 6 This is a screenshot of the screen recording opening interface of an embodiment of the present invention.

[0029] Figure 7 This is a screenshot of the foreground competition interface of an embodiment of the present invention.

[0030] Figure 8 This is a screenshot of the screen recording status in an embodiment of the present invention.

[0031] Fig. 9 This is a screenshot of the full-screen interface of an embodiment of the present invention.

[0032] Fig.10 This is a screenshot of the monitoring center according to an embodiment of the present invention.

[0033] Fig.11 This is a screenshot of screen recording management (during a game) according to an embodiment of the present invention.

[0034] Fig.12 This is a screenshot of the screen recording management according to an embodiment of the present invention (end of the game). DETAILED DESCRIPTION

[0035] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and specific embodiments.

[0036] like Figure 1As shown, a method for real-time screen recording of a red-blue confrontation competition in a network shooting range disclosed in an embodiment of the present invention mainly includes: first determining whether a player has turned on screen recording, and entering the competition after all players have turned on screen recording; after turning on screen recording, using the RTCPeerConnection API interface in the webAPI to implement the screen recording function, first using the navigator.mediaDevices.getDisplayMedia method to obtain the user's screen stream, and creating an RTCPeerConnection instance peerConnection for the WebRTC connection between the local end and the remote peer end; after successfully obtaining the user's screen stream, initialization and verification are performed, and it is determined whether it is the entire screen that is recorded, and if so, the screen stream is added to the peerConnection; using the MediaRecorder interface provided by the MediaStream Recording API to record the interface, after initializing the recorder instance mediaRecorder, adding an event listener mediaRecorder.ondataavailable, when the recorder has data available, calculating the duration and constructing data and time parameter objects to pass to the callback function, calling the mediaRecorder.start method to record the interface, setting the uploadTimeInterval time parameter, and calling the method for uploading the recorded media file to upload the recorded video data.

[0037] Specifically, the red-blue competition in the cyber range needs to be conducted in a specific VPN environment. The players' devices need to be connected to the VPN to ensure that all the players are in the same IP resource pool. If a player quits recording, the device VPN will be disconnected and the competition cannot be started synchronously. Figure 2 As shown, the administrator publishes a red team management competition based on the background, and adds red team players, blue team players and referees; configures the switch to turn on screen recording in the competition operation and maintenance management. When the front-end user (red team, blue team) logs in to the competition interface, they need to turn on screen recording before entering the competition. Referees and administrators have advanced permissions and can directly enter the competition and monitor the players in real time to detect whether any users perform illegal operations during the competition. After the competition, the players' screen recording data can be managed and downloaded to facilitate the sealing and preservation of the players' competition data. See the detailed process of the front-end and back-end for details. Figure 3 and Figure 4 .

[0038] The technical implementation of the embodiment of the present invention is mainly divided into the following points:

[0039] 1. As Figure 5As shown in the figure, by using the RTCPeerConnection API interface in webAPI, it provides methods for creating remote peer connections, maintaining and monitoring connections, and closing connections when they are no longer needed. Initialize the WebRTC connection through its object's init method to implement the screen recording function. The specific steps are to first call the InitRtc(config) initialization function and use

[0040] navigator.mediaDevices.getDisplayMedia() gets the screen stream and creates

[0041] RTCPeerConnection. After successfully acquiring the screen stream, start initializing the stream and performing error checking. When the stream is ready, create and set the local description, and then send it to the peer. To close the screen recording, call the closeRtc() function to stop all tracks of the screen stream and close the RTCPeerConnection.

[0042] 2. Use the MediaRecorder interface provided by the MediaStream Recording API to record the interface. First, you need to instantiate it by calling the MediaRecorder() constructor. After initialization, add an event listener mediaRecorder.ondataavailable when the recorder has data available, get the current time as endTime and calculate the duration since the last start time, and finally pass the prepared parameter object to the callback function, and call the mediaRecorder.start() method to start recording the interface. Then set the uploadTimeInterval time parameter to 10 minutes, and call the method to upload the recorded media file to upload the recorded video data. First, build the file name to ensure the uniqueness and identification of the uploaded file name, and then call the interface to upload the monitoring video file.

[0043] The following is a systematic explanation of the specific implementation process of the screen recording function of the embodiment of the present invention in combination with code implementation and corresponding interface screenshots.

[0044] 1. Initialize screen recording configuration

[0045] 1.1 The administrator creates a competition and manually turns on the screen recording function, such as Figure 6 shown.

[0046] 1.2 Add a screen recording button on the front desk. After the player clicks it, the screen recording interface will be displayed. Figure 7 .

[0047] 1.3 Click the Start Screen Recording button to call the screen recording status change interface, and the returned status code is normal. The screen recording status changes to recording, such as Figure 8 , Fig. 9 .

[0048] 1.4 The page is polled regularly, once every 20 seconds, to detect the status of the screen recording page in real time. If the interface field returns false, it means that the current page is not recording. On the contrary, if the interface field returns true, it means that the recording is in progress. For example, the following interface can be used to obtain the current screen recording status of the player:

[0049] / web / truman / race / ${race_id} / screen_recording /

[0050] 2.RTC initialization

[0051] 2.1 Configure the specific parameters of RTC (real-time communication), set the display surface monitor displaySurface to monitor; set the maximum value of the video width width to 1600 pixels; set the maximum value of the video height height to 900 pixels; set the maximum value of the video frame rate frameRate to 20 frames per second. The configuration example is as follows:

[0052]

[0053]

[0054] 2.2 Get and process the user screen sharing stream, use

[0055] navigator.mediaDevices.getDisplayMedia(config) obtains the user's screen sharing stream. config is the configuration parameter passed to the getDisplayMedia method, which is used to specify the media type and constraints you want to obtain. The code example for processing the screen stream step is as follows:

[0056]

[0057] 3. Create a P2P connection

[0058] 3.1 Create a new RTCPeerConnection instance peerConnection for subsequent WebRTC connections. The code example is as follows:

[0059]

[0060] 4. Initialize the screen sharing flow

[0061] 4.1 Use stream.getVideoTracks()[0]?.getSettings() to get the setting object settingObj of the first video track. If settingObj does not exist, an error message is displayed and false is returned. The first track is the video track, which can be used to ensure that the obtained stream is a screen sharing stream. Note: The symbol "?" is an optional chain operator. Its function is to safely access deep-level properties or methods in object chain calls without worrying about TypeError errors caused by the non-existence of a certain property or method in the middle.

[0062] 4.2 Determine whether the user has selected the entire screen mirroring. If settingObj.displaySurface! == 'monitor', it means that the user did not choose to record the entire screen, but selected a partial area or application window. In this case, stop recording of all tracks and display an error message to inform the user that the entire screen needs to be selected. Then, if a retry callback function is provided, call it to retry screen sharing.

[0063] 4.3 If the screen stream acquisition and setting are successful, and the entire screen mirroring is selected, add each track (usually the video track) to the peerConnection.

[0064] 4.4 Use stream.getVideoTracks()[0].onended to listen for the end event of the first video track. Add a judgment condition: when recording stops, stop recording of all tracks, close the RTC connection, and notify the application that the screen recording has ended.

[0065] The specific code example is as follows:

[0066]

[0067]

[0068] 5Show Screen Stream

[0069] Define the rtcConnection.streamReady function, which is mainly used to handle the callback problem when the screen stream is ready in the WebRTC connection; mainly through

[0070] The callback of navigator.mediaDevices.getDisplayMedia(config) obtains the user's screen sharing stream, displays it in the screen-video element on the page, and starts a local video recording function. The relevant code examples are as follows:

[0071]

[0072]

[0073] The above code gets the video element with the id screen-video in HTML, which is usually used to display the video stream of screen sharing. Assign the stream to screenVideo.srcObject, so that the source of the video element is set to the screen stream obtained from WebRTC, which can display the screen sharing content in real time.

[0074] 6. Initialize the recorder and start recording the video locally.

[0075] 6.1 Call the initRecorder function to initialize the recorder, accepting three parameters:

[0076] 1) stream: screen stream, used to record video content.

[0077] 2){interval:this.uploadTimeInterval}: An object containing the recorder configuration, where

[0078] this.uploadTimeInterval is the defined recording interval.

[0079] 3)(params=>{this.uploadRecord(params);}: callback function, defines the method for uploading recorded video files.

[0080] The code example is as follows:

[0081]

[0082]

[0083] 6.2 Set the screen recording slice time uploadTimeInterval, the default is 10 minutes, and call the uploadRecord method after ten minutes to automatically save and upload the screen recording file. The upload screen recording file interface uploadRecordFile: / web / truman / race / ${race_id} / upload /

[0084] The code example is as follows:

[0085]

[0086]

[0087] 7. Processing SDP offer

[0088] 7.1 Define an offerReady method that receives two parameters: offer and callback.

[0089] 7.2 Call the start recording interface and pass in an object containing sdp, type, and race_id as parameters. sdp and type come from the offer parameters respectively, and race_id comes from the resourceId attribute of the current object.

[0090] 7.3 When the recording interface is called successfully, get the remote description remoteDescription from the returned res.

[0091] 7.4 Call the callback function passed in, passing the remoteDescription.

[0092] 7.5 When the callback Promise is completed, call this.queryRecordingStatus() method to query the recording status.

[0093] 7.6 If the recording interface call fails, it is captured through catch, and then the this.forceStop() method is called to force stop recording or handle the logic of connection interruption.

[0094] Recording interface startRecording: / web / service / screen_monitor / user_screen_monitor /

[0095] The code example is as follows:

[0096] Code Block 1:

[0097]

[0098]

[0099] Code Block 2:

[0100]

[0101]

[0102] 8. Real-time query of recording status and exception capture

[0103] 8.1 When the callback Promise is completed, call this.queryRecordingStatus() method to query the recording status.

[0104] 8.2 If the recording interface call fails, it is captured through catch, and then the this.forceStop() method is called to force stop recording or handle the logic of connection interruption.

[0105] Stop recording interface: / web / service / screen_monitor / user_screen_monitor /

[0106] 9. Screen recording turned off

[0107] 9.1 Call the closeRecorder function to close the recorder.

[0108] 9.2rtcConnection.close() closes the real-time communication connection of rtcConnection.

[0109] 9.3 Screen recording is finished and the status is set to Not Started.

[0110] Based on the above technical implementation, the specific functional processes for administrators and players in the embodiment of the present invention include:

[0111] 1. The administrator enters the background game operation and maintenance and adds a new button to start screen recording. Click to start the call interface to update the enable_screen_monitor field status to true.

[0112] 2. After the contestant successfully logs in, he / she enters the competition list page. The interface queries the status of the enable_screen_monitor field. If it is true, the screen recording button is displayed. Click it to enter the screen recording page. You must ensure that all contestants have turned on screen recording before the competition can proceed. Specifically, the operation and maintenance needs to check in the background whether all the contestants' device IPs are in the IP resource pool. If a contestant does not turn on screen recording, you can communicate directly with the contestant on site after checking in the background.

[0113] 3. After ensuring that all information is synchronized with the contestants, have the contestants click the Start Screen Recording button, select the corresponding recording screen, click Share to enter the screen recording interface, and the recording status is updated to Recording. Fig. 9 shown.

[0114] 4. During the recording process, the administrator and referee can view the user's real-time screen recording in the front-end monitoring center module, and can switch to one, four, or six split-screen modes to monitor multiple players' pages. Fig.10 shown.

[0115] 5. After the game is finished, click to close screen recording. The screen recording data will be uploaded through the interface and the recording status will be updated to Not Started.

[0116] 6. The administrator can enter the backend and view the specific information of the player's screen recording, including (start time, end time, upload time, screen recording duration and file size), and can also operate the data including playback and download of the screen recording, such as Fig.11 , Fig.12 shown.

[0117] Based on the same inventive concept, a system for real-time screen recording of a red-blue confrontation competition in a network shooting range disclosed in an embodiment of the present invention includes: a screen recording control module, which is used to determine whether a player has turned on screen recording, and enter the competition after all players have turned on screen recording; a webAPI interface calling module, which is used to use the RTCPeerConnection API interface in the webAPI to implement the screen recording function, first using

[0118] The navigator.mediaDevices.getDisplayMedia method obtains the user's screen stream and creates an RTCPeerConnection instance peerConnection for the WebRTC connection between the local end and the remote peer end; after successfully obtaining the user's screen stream, it is initialized and verified, and it is determined whether the entire screen is recorded. If so, the screen stream is added to peerConnection; and the MediaStream Recording API interface call module is used to use the MediaRecorder interface provided by the MediaStream Recording API to record the interface. After initializing the recorder instance mediaRecorder, an event listener mediaRecorder.ondataavailable is added. When the recorder has data available, the duration is calculated and the data and time parameter objects are constructed and passed to the callback function. The mediaRecorder.start method is called to record the interface, the uploadTimeInterval time parameter is set, and the method of uploading the recorded media file is called to upload the recorded video data.

[0119] Based on the same inventive concept, a computer program product disclosed in an embodiment of the present invention includes a computer program / instruction, which, when executed by a processor, implements the steps of a method for real-time screen recording of a red-blue confrontation competition in a network shooting range.

Claims

1. A method for real-time screen recording of a red-blue confrontation competition in a network shooting range, characterized in that: The steps include: Determine whether the players have turned on screen recording, and enter the game after all players have turned on screen recording; Use the RTCPeerConnection API interface in webAPI to implement the screen recording function. First, use the navigator.mediaDevices.getDisplayMedia method to obtain the user's screen stream, and create an RTCPeerConnection instance peerConnection for the WebRTC connection between the local end and the remote peer. After successfully obtaining the user's screen stream, initialize and verify it, and determine whether it is the entire screen that is recorded. If so, add the screen stream to peerConnection. Use the MediaRecorder interface provided by the MediaStream Recording API to record the interface. After initializing the recorder instance mediaRecorder, add the event listener mediaRecorder.ondataavailable. When the recorder has data available, calculate the duration and construct the data and time parameter objects to pass to the callback function. Call the mediaRecorder.start method to record the interface, set the uploadTimeInterval time parameter, and call the method to upload the recorded media file to upload the recorded video data.

2. A method for real-time screen recording of a red-blue confrontation competition in a network shooting range according to claim 1, characterized in that: When the stream is ready, a local description is created and set via WebRTC's SDP offer, which is then sent to the peer.

3. A method for real-time screen recording of a red-blue confrontation competition in a network shooting range according to claim 1, characterized in that: When the user turns off screen recording, close the recorder, stop all tracks of the screen stream, and close the RTCPeerConnection.

4. A method for real-time screen recording of a red-blue competition in a network shooting range according to claim 1, characterized in that: Before the game starts, the administrator turns on the screen recording function and updates the enable_screen_monitor field status to true. After the contestant successfully logs in, he enters the competition list page and queries the enable_screen_monitor field status through the interface. If it is true, the screen recording button is displayed.

5. The method for real-time screen recording of a red-blue confrontation competition in a network shooting range according to claim 1, characterized in that: By judging whether the surface monitor set by the screen stream is monitor, it is determined whether the entire screen is recorded.

6. A method for real-time screen recording of a red-blue competition in a network shooting range according to claim 1, characterized in that: The red-blue competition is conducted in a VPN environment, with the players' devices connected to the VPN, and all the players are in the same IP resource pool; the competition can only proceed after all the players have turned on screen recording, and the administrator will check in the background whether all the players' device IPs are in the IP resource pool.

7. A method for real-time screen recording of a red-blue competition in a network shooting range according to claim 1, characterized in that: During the recording process, administrators and referees can view the user's real-time screen recording, and support switching to one, four or six split-screen modes to monitor the pages of multiple players.

8. The method for real-time screen recording of a red-blue competition in a network shooting range according to claim 1, characterized in that: The contestant's screen recording information includes start time, end time, upload time, recording duration and file size.

9. A system for real-time screen recording of red-blue competition in a network shooting range, characterized in that: include: Screen recording control module, used to determine whether the players have turned on screen recording, and enter the game after all players have turned on screen recording; The webAPI interface calling module is used to implement the screen recording function using the RTCPeerConnection API interface in the webAPI. First, the navigator.mediaDevices.getDisplayMedia method is used to obtain the user's screen stream, and an RTCPeerConnection instance peerConnection is created for the WebRTC connection between the local end and the remote peer end; after successfully obtaining the user's screen stream, it is initialized and verified, and it is determined whether it is the entire screen that is recorded. If so, the screen stream is added to peerConnection; The MediaStream Recording API interface calling module is used to use the MediaRecorder interface provided by the MediaStream Recording API to record the interface. After initializing the recorder instance mediaRecorder, it adds the event listener mediaRecorder.ondataavailable. When the recorder has data available, it calculates the duration and constructs the data and time parameter objects to pass to the callback function. It calls the mediaRecorder.start method to record the interface, sets the uploadTimeInterval time parameter, and calls the method to upload the recorded media file to upload the recorded video data.

10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by the processor, the steps of a method for real-time screen recording of a red-blue confrontation competition in a network shooting range according to any one of claims 1-8 are implemented.