Media recording method and device, electronic equipment, storage medium and program product
By responding to recording operations and sliding operations in the media display interface, controlling the update of media content and generating recording files containing media content and describing audio, solving the problem of incomplete information in dual recording technology and achieving a clearer and more complete Recording effect.
Patent Information
- Application Number
- CN202411294847.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-14
- Publication Date
- 2024-12-27
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In some scenarios, due to the influence of the network or other factors, the dual recording technology may not be able to clearly and completely record the information to be displayed, resulting in incomplete recording files.
By responding to the recording operation in the media display interface, the display is in the recording mode and the description audio is collected, the preset sliding adjustment coefficient is determined based on the sliding operation, the sliding update of the media content is controlled, and the recording file containing the media content and description audio is generated.
Ensure the completeness and clarity of the recording files, avoid the omission of important information, and improve the accuracy and completeness of the recording.
Smart Images

Figure CN119211595A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a media recording method, device, electronic device, computer-readable storage medium, and computer program product. Background Art
[0002] With the development of computer technology, dual recording technology has been widely used in various business scenarios, for example, in the promotion of offline business products. Dual recording technology is mainly used to record the complete explanation process, ensure that users fully understand the relevant information of the display, and ensure that all relevant content is fully recorded.
[0003] However, dual recording technology also faces some challenges in certain scenarios. For example, in some cases where information needs to be presented, it may not be possible to clearly and completely record the information content that needs to be presented due to network or other factors. This may cause some important information to be omitted, resulting in an incomplete recording file. Summary of the invention
[0004] The embodiments of the present application provide a media recording method, device, electronic device, computer-readable storage medium, and computer program product, which can clearly record the content to be displayed and improve the integrity of the recorded file.
[0005] A media recording method, comprising:
[0006] In response to the recording operation, displaying a media presentation interface in a recording mode;
[0007] Recording the media content displayed in the media display interface and collecting audio describing the media content;
[0008] In response to a sliding operation on the displayed media content, determining a preset sliding adjustment coefficient corresponding to the recording mode;
[0009] Based on the preset sliding adjustment coefficient, controlling the sliding of the media content in the media display interface to update the media content currently displayed in the media display interface;
[0010] In response to the recording completion operation, a media recording file is generated, wherein the media recording file includes the media content and a description audio for the media content.
[0011] A media recording device, comprising:
[0012] A display module, configured to display a media display interface in a recording mode in response to a recording operation;
[0013] A recording module, used to record the media content displayed in the media display interface and collect the audio description of the media content;
[0014] A determination module, configured to determine a preset sliding adjustment coefficient corresponding to the recording mode in response to a sliding operation on the displayed media content;
[0015] An updating module, configured to control the sliding of the media content in the media display interface based on the preset sliding adjustment coefficient, so as to update the media content currently displayed in the media display interface;
[0016] The generating module is used to generate a media recording file in response to a recording completion operation, wherein the media recording file includes the media content and a description audio for the media content.
[0017] The present application also provides a computer device, the computer device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program:
[0018] In response to the recording operation, displaying a media presentation interface in a recording mode;
[0019] Recording the media content displayed in the media display interface and collecting audio describing the media content;
[0020] In response to a sliding operation on the displayed media content, determining a preset sliding adjustment coefficient corresponding to the recording mode;
[0021] Based on the preset sliding adjustment coefficient, controlling the sliding of the media content in the media display interface to update the media content currently displayed in the media display interface;
[0022] In response to the recording completion operation, a media recording file is generated, wherein the media recording file includes the media content and a description audio for the media content.
[0023] The present application also provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the following steps are implemented:
[0024] In response to the recording operation, displaying a media presentation interface in a recording mode;
[0025] Recording the media content displayed in the media display interface and collecting audio describing the media content;
[0026] In response to a sliding operation on the displayed media content, determining a preset sliding adjustment coefficient corresponding to the recording mode;
[0027] Based on the preset sliding adjustment coefficient, controlling the sliding of the media content in the media display interface to update the media content currently displayed in the media display interface;
[0028] In response to the recording completion operation, a media recording file is generated, wherein the media recording file includes the media content and a description audio for the media content.
[0029] The present application also provides a computer program product, the computer program product comprising a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0030] In response to the recording operation, displaying a media presentation interface in a recording mode;
[0031] Recording the media content displayed in the media display interface and collecting audio describing the media content;
[0032] In response to a sliding operation on the displayed media content, determining a preset sliding adjustment coefficient corresponding to the recording mode;
[0033] Based on the preset sliding adjustment coefficient, controlling the sliding of the media content in the media display interface to update the media content currently displayed in the media display interface;
[0034] In response to the recording completion operation, a media recording file is generated, wherein the media recording file includes the media content and a description audio for the media content.
[0035] The above-mentioned media recording method, apparatus, computer equipment, storage medium and computer program product, in response to a recording operation, display a media display interface in recording mode, thereby recording the media information displayed in the media display interface in recording mode, and synchronously collecting the descriptive audio for the media information. In response to a sliding operation on the displayed media content, a preset sliding adjustment coefficient corresponding to the recording mode is determined, and the sliding of the media content in the media display interface is controlled based on the preset sliding adjustment coefficient in the recording mode to update the media content currently displayed in the media display interface, so that the sliding of the displayed media information can be controlled based on the preset sliding adjustment coefficient to control the update speed of the displayed media information, so that the updated media information can be clearly recorded. In response to the recording completion operation, a media recording file of the media information and the descriptive audio is generated, so that the recorded media information and the descriptive audio of the media information are consistent, thereby obtaining a clearer and more complete media recording file. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0037] Figure 1 A diagram of an application environment of a media recording method in one embodiment;
[0038] Figure 2 is a flow chart of a media recording method in one embodiment;
[0039] Figure 3 is a structural block diagram of a media recording device in one embodiment;
[0040] Figure 4 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0042] The media recording method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. In response to the recording operation, the terminal 102 displays the media display interface in the recording mode. The terminal 102 records the media content displayed in the media display interface and collects the descriptive audio for the media content. In response to the sliding operation on the displayed media content, the terminal 102 determines the preset sliding adjustment coefficient corresponding to the recording mode. Based on the preset sliding adjustment coefficient, the terminal 102 controls the sliding of the media content in the media display interface to update the media content currently displayed in the media display interface. In response to the recording completion operation, the terminal 102 generates a media recording file, and the media recording file includes the media content and the descriptive audio for the media content. The terminal 102 sends the media recording file to the server 104 to store it in the server 104.
[0043] The terminal 102 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices, and portable wearable devices. The IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. The portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.
[0044] In one embodiment, Figure 2 As shown, a media recording method is provided, which is applied to Figure 1 The terminal in is used as an example to illustrate, including the following steps:
[0045] Step S202: In response to the recording operation, display a media display interface in a recording mode.
[0046] Specifically, the user logs in to the media application of the terminal. The media application refers to an application with media playback and recording functions. The terminal displays a media display interface, and the user can trigger a recording operation on the media display interface. In response to the recording operation, the terminal displays a media display interface in recording mode.
[0047] In this embodiment, the terminal displays candidate media files, and the user can select a media file to be recorded from the candidate media files. In response to the user's selection operation, the terminal displays at least a portion of the media content in the media file selected by the selection operation on the media display interface.
[0048] It is understandable that the user can first select a media file, display the media content of the media file in the media display interface, and then trigger the recording operation in the media display interface. The user can also first trigger the recording operation in the media display interface, and then select the media file to be recorded, so that the media content of the media file is displayed in the media display interface in the recording mode.
[0049] Step S204: recording the media content displayed in the media display interface, and collecting audio describing the media content.
[0050] The description audio is an audio that describes the displayed media content. For example, the description audio is an audio in which a user introduces the displayed media content.
[0051] Specifically, the terminal displays media content on a media display interface in a recording mode, and the user can describe the displayed media content. The terminal records the displayed media content and collects audio of the user's description of the media content.
[0052] In this embodiment, the terminal displays the media content of the media file on the media presentation interface in the recording mode, and simultaneously collects the audio describing the media content.
[0053] Step S206 , in response to a sliding operation on the displayed media content, determining a preset sliding adjustment coefficient corresponding to the recording mode.
[0054] The preset sliding adjustment coefficient is used to control the sliding range of the sliding operation on the media content.
[0055] Specifically, the user can slide the displayed media content to slide the media content currently displayed in the media display interface in the recording mode. In response to the user's sliding operation on the displayed media content, the terminal determines a preset sliding adjustment coefficient corresponding to the recording mode.
[0056] In this embodiment, a preset sliding adjustment coefficient is set for the recording mode, so that the control of the displayed media content by the sliding operation in the recording mode is different from the control of the displayed media content in other modes. For example, in the non-recording mode, the sliding operation of the user causes the media content to slide faster, while in the recording mode, the sliding operation causes the media content to slide slower, so that the recording of the media content is clearer.
[0057] In one embodiment, in response to a sliding operation on displayed media content, determining a preset sliding adjustment coefficient corresponding to a recording mode includes:
[0058] In response to a sliding operation on displayed media content, a display size of a media display interface is determined, and a preset mapping relationship is obtained, wherein the preset mapping relationship represents a relationship between a preset display size of the media display interface and a preset sliding adjustment coefficient; based on the preset mapping relationship, a preset sliding adjustment coefficient mapped to the display size of the media display interface is determined.
[0059] In response to a user's sliding operation on the media content, the terminal determines the display size of the media display interface and obtains a preset mapping relationship, wherein the preset mapping relationship represents the correspondence between the preset display size of the media display interface and the preset sliding adjustment coefficient. The terminal can determine the preset sliding adjustment coefficient mapped to the display size of the media display interface based on the preset mapping relationship.
[0060] In one embodiment, in response to a sliding operation on displayed media content, determining a preset sliding adjustment coefficient corresponding to a recording mode includes:
[0061] In response to a sliding operation on the displayed media content, the display size of the terminal display screen is determined, and a preset mapping relationship is obtained, wherein the preset mapping relationship represents the relationship between the display size of the display screen and a preset sliding adjustment coefficient; based on the preset mapping relationship, the preset sliding adjustment coefficient mapped to the display size of the terminal display screen is determined.
[0062] Step S208: Based on the preset sliding adjustment coefficient, the sliding of the media content in the media display interface is controlled to update the media content currently displayed in the media display interface.
[0063] Specifically, the terminal controls the sliding distance of the media content in the media display interface based on the preset sliding adjustment coefficient to update the media content currently displayed in the media display interface.
[0064] In this embodiment, the terminal determines the target sliding distance of the sliding operation in the recording mode based on the preset sliding adjustment coefficient. According to the target sliding distance in the recording mode, the sliding of the media content in the media display interface is controlled to update the media content currently displayed in the media display interface.
[0065] Step S210: In response to the recording completion operation, a media recording file is generated, where the media recording file includes media content and audio description of the media content.
[0066] Specifically, in response to a recording completion operation triggered by a user in a media display interface, a media recording file is generated based on the recorded media content and the collected description audio. The media recording file includes the media content displayed in the media display interface in recording mode and the description audio for the media content.
[0067] In this embodiment, in response to the user's recording completion operation, the recording mode is exited and the media display interface in the default mode is displayed.
[0068] In this embodiment, in response to a recording operation, a media display interface in recording mode is displayed, so that the media information displayed in the media display interface is recorded in the recording mode, and the descriptive audio for the media information is simultaneously collected. In response to a sliding operation on the displayed media content, a preset sliding adjustment coefficient corresponding to the recording mode is determined, and the sliding of the media content in the media display interface is controlled based on the preset sliding adjustment coefficient in the recording mode to update the media content currently displayed in the media display interface, so that the sliding of the displayed media information can be controlled based on the preset sliding adjustment coefficient to control the update speed of the displayed media information, so that the updated media information can be clearly recorded. In response to the recording completion operation, a media recording file of the media information and the descriptive audio is generated, so that the recorded media information and the descriptive audio of the media information are consistent, thereby obtaining a clearer and more complete media recording file.
[0069] In one embodiment, based on a preset sliding adjustment coefficient, controlling the sliding of media content in the media display interface to update the media content currently displayed in the media display interface includes:
[0070] Based on a preset sliding adjustment coefficient, a target sliding distance of the sliding operation in the recording mode is determined; according to the target sliding distance in the recording mode, the sliding of the media content in the media display interface is controlled to update the media content currently displayed in the media display interface.
[0071] Specifically, the terminal may determine an initial sliding distance corresponding to the sliding operation, and adjust the initial sliding distance based on a preset sliding adjustment coefficient to obtain a target sliding distance of the sliding operation in the recording mode.
[0072] For example, the target sliding distance can be calculated by the following formula:
[0073] X2=X1*R1
[0074] Among them, X2 is the target sliding distance, X1 is the initial sliding distance, and R1 is the preset sliding adjustment coefficient.
[0075] The terminal controls the sliding of the media content in the media display interface according to the target sliding distance in the recording mode, so as to update the media content currently displayed in the media display interface.
[0076] In this embodiment, the target sliding distance includes a target inertial sliding distance, the preset sliding adjustment coefficient includes an inertial adjustment coefficient, and the inertial adjustment coefficient may also include at least one of an inertial sliding speed adjustment parameter or an inertial sliding time adjustment parameter. The terminal may determine the inertial sliding speed and the inertial sliding time corresponding to the sliding operation, and adjust the inertial sliding speed based on the inertial sliding speed adjustment parameter to reduce the inertial sliding speed and obtain an adjusted inertial sliding speed. The target inertial sliding distance is determined according to the adjusted inertial sliding speed and inertial sliding time.
[0077] In one embodiment, the inertial sliding time may be adjusted based on the inertial sliding time adjustment parameter to reduce the inertial sliding time, and the target inertial sliding distance may be determined based on the inertial sliding speed and the adjusted inertial sliding time.
[0078] Further, the inertial sliding speed can be adjusted based on the inertial sliding speed adjustment parameter to obtain an adjusted inertial sliding speed. The inertial sliding time can be adjusted based on the inertial sliding time adjustment parameter to obtain an adjusted inertial sliding time, and the target inertial sliding distance can be determined based on the adjusted inertial sliding speed and the adjusted inertial sliding time.
[0079] In this embodiment, the target sliding distance includes a target operation sliding distance, the preset sliding adjustment coefficient includes an operation adjustment coefficient, and the operation adjustment coefficient may also include at least one of an operation sliding speed adjustment parameter or an operation sliding time adjustment parameter. The terminal may determine the operation sliding speed and the operation sliding time corresponding to the sliding operation, and adjust the operation sliding speed based on the operation sliding speed adjustment parameter to reduce the operation sliding speed, and obtain an adjusted operation sliding speed. The target operation sliding distance is determined according to the adjusted operation sliding speed and operation sliding time.
[0080] In one embodiment, the operation sliding time may be adjusted based on the operation sliding time adjustment parameter to reduce the operation sliding time, and the target operation sliding distance may be determined based on the operation sliding speed and the adjusted operation sliding time.
[0081] Further, the operation sliding speed can be adjusted based on the operation sliding speed adjustment parameter to obtain an adjusted operation sliding speed. The operation sliding time can be adjusted based on the operation sliding time adjustment parameter to obtain an adjusted operation sliding time, and the target operation sliding distance can be determined based on the adjusted operation sliding speed and the adjusted operation sliding time.
[0082] In this embodiment, based on a preset sliding adjustment coefficient, a target sliding distance of the sliding operation in the recording mode is determined, and according to the target sliding distance in the recording mode, the sliding of the media content in the media display interface is controlled to update the media content currently displayed in the media display interface, thereby effectively adjusting the sliding of the displayed media content in the recording mode to slow down the sliding of the media content so that the displayed media content can be clearly recorded.
[0083] In one embodiment, determining a target sliding distance of a sliding operation in a recording mode based on a preset sliding adjustment coefficient includes:
[0084] Obtain sliding related information of the sliding operation, determine an initial sliding distance corresponding to the sliding operation according to the sliding related information; and determine a target sliding distance of the sliding operation in the recording mode based on a preset sliding adjustment coefficient and the initial sliding distance.
[0085] The sliding related information includes at least one of a sliding speed and a sliding time.
[0086] Specifically, the terminal obtains sliding related information of the sliding operation, determines an initial sliding distance corresponding to the sliding operation according to the sliding related information, and adjusts the initial sliding distance based on a preset sliding adjustment coefficient to obtain a target sliding distance of the sliding operation in the recording mode.
[0087] In this embodiment, the sliding related information includes sliding speed and sliding time. In response to the sliding operation on the displayed media information, the sliding time and sliding speed of the sliding operation are determined, and the terminal determines the initial sliding distance according to the sliding speed and sliding time.
[0088] In one of the embodiments, the sliding-related information includes inertial sliding-related information, the initial sliding distance includes the initial inertial sliding distance, the target sliding distance includes the target inertial sliding distance, and the preset sliding adjustment coefficient includes the inertial adjustment coefficient. The terminal obtains the inertial sliding-related information corresponding to the sliding operation, and determines the initial inertial sliding distance corresponding to the sliding operation according to the inertial sliding-related information. The initial inertial sliding distance is adjusted according to the inertial adjustment coefficient to obtain the target inertial sliding distance.
[0089] In one of the embodiments, the sliding-related information includes operation sliding-related information, the initial sliding distance includes the initial operation sliding distance, the target sliding distance includes the target operation sliding distance, and the preset sliding adjustment coefficient includes the operation adjustment coefficient. The terminal obtains the operation sliding-related information corresponding to the sliding operation, and determines the initial operation sliding distance corresponding to the sliding operation according to the operation sliding-related information. The initial operation sliding distance is adjusted according to the operation adjustment coefficient to obtain the target operation sliding distance.
[0090] In this embodiment, sliding-related information of the sliding operation is obtained, an initial sliding distance corresponding to the sliding operation is determined according to the sliding-related information, and a target sliding distance of the sliding operation in the recording mode is determined based on a preset sliding adjustment coefficient and the initial sliding distance. Thus, the movement range of the media content by the user's sliding operation in the recording mode can be controlled by the preset sliding adjustment coefficient, thereby preventing the user from sliding too fast and causing unclear recorded content.
[0091] In one embodiment, the initial sliding distance includes an initial operation sliding distance and an initial inertia sliding distance, and the preset sliding adjustment coefficient includes an operation adjustment coefficient and an inertia adjustment coefficient;
[0092] Based on the preset sliding adjustment coefficient and the initial sliding distance, a target sliding distance of the sliding operation in the recording mode is determined, including:
[0093] Based on the operation adjustment coefficient, the initial operation sliding distance is adjusted to obtain the target operation sliding distance; based on the inertia adjustment coefficient, the initial inertia sliding distance is adjusted to obtain the target inertia sliding distance; according to the target operation sliding distance and the target inertia sliding distance, the target sliding distance of the sliding operation in the recording mode is determined.
[0094] Specifically, the terminal determines the initial operation sliding distance and the initial inertia sliding distance corresponding to the sliding operation, and adjusts the initial operation sliding distance based on the operation adjustment coefficient to obtain the target operation sliding distance. Based on the inertia adjustment coefficient, the initial inertia sliding distance is adjusted to obtain the target inertia sliding distance. The terminal determines the target sliding distance of the sliding operation in the recording mode according to the target operation sliding distance and the target inertia sliding distance.
[0095] In this embodiment, the sliding speed includes the operation sliding speed and the inertial sliding speed, and the sliding time includes the operation sliding time and the inertial sliding time. The terminal determines the initial operation sliding distance corresponding to the sliding operation according to the operation sliding speed and the operation sliding time. The terminal determines the initial inertial sliding distance corresponding to the sliding operation according to the inertial sliding speed and the inertial sliding time.
[0096] In this embodiment, reducing the user's sliding speed mainly involves two parts, one is to reduce the user's sliding speed, and the other is to reduce the user's inertial speed. The adjustment of the sliding speed not only involves intuitive user interaction design, but also requires in-depth control at the code logic level. First, it is necessary to accurately obtain the distance of each user's sliding. This usually involves capturing and parsing touch events (such as touchesMoved events in iOS), and real-time tracking of the movement trajectory of fingers on the screen.
[0097] Next, this sliding distance data needs to be used to dynamically adjust the target moving distance in the business logic. This usually involves mapping the sliding distance in the physical world to the coordinate system in the virtual or digital world. This mapping process needs to take into account the screen size, resolution, and possible touch event scaling and offset. In addition, in order to achieve a smooth and expected sliding effect, a time factor needs to be introduced. In other words, the sliding speed depends not only on the distance of a single slide, but also on the time when the sliding action occurs. By introducing the time factor, more realistic physical effects such as acceleration, deceleration, or coasting can be simulated.
[0098] At the same time, adaptation and adjustment are also required for different devices or screens with different resolutions. For example, sliding on a large screen may require a faster speed to cover a larger physical distance, while on a small screen the speed may need to be reduced to prevent misoperation.
[0099] Inertial speed is the distance the pointer moves on the page due to inertia after the user's finger leaves the screen when sliding. When the ratio of distance to time is greater from the beginning to the end of sliding, the subjective inertial movement distance is longer, which will result in the inability to clearly record the content displayed on the page during the screen recording process. Therefore, the maximum inertial distance can be modified to control the maximum inertial distance.
[0100] From the perspective of user sliding, inertial speed refers to the speed at which the page continues to move after the user's finger leaves the screen. Specifically, this is the distance the page continues to move due to inertia after the user stops sliding. This distance is related to the total sliding distance and the time taken to slide.
[0101] The larger the ratio of inertial speed to distance and time, the greater the distance the page moves in the same amount of time. However, this inertial movement may cause problems in actual screen recording.
[0102] For example, if the inertial speed is too fast, the recording software may not be able to capture every detail of the page changes in time, resulting in unclear or jumping page content in the recorded video.
[0103] Therefore, in order to ensure the clarity of the recording, this maximum inertial distance can be adjusted or limited.
[0104] By setting the parameters of the maximum inertia distance, it can be ensured that the inertial movement of the page will not be too drastic after the user stops sliding, thereby ensuring the quality of the recorded video.
[0105] In this embodiment, the user interface and interaction design are optimized to reduce the sliding speed of users when browsing and reading files. This can reduce the content missing or page skipping phenomenon during the recording process and improve the accuracy and completeness of the recording. |
[0106] In one embodiment, the media recording method is applied to a terminal, and in response to a recording operation, a media display interface in a recording mode is displayed, including:
[0107] In response to a recording operation, a media file to be recorded is determined; when the media file exists locally on the terminal, a media display interface in recording mode is displayed, and the media content of the media file is displayed on the media display interface; when the media file does not exist locally on the terminal, the media file is downloaded from the server, and after the download is complete, a media display interface in recording mode is displayed, and the media content of the media file is displayed on the media display interface.
[0108] Specifically, in the recording scenario, ensuring a stable network connection is crucial. Before starting recording, you need to ensure the network status, so you can avoid recording when the network is not good by detecting the network speed. In addition, you can also use a preloading mechanism to load the required media file resource packages in advance to reduce recording interruptions caused by network delays.
[0109] The terminal determines the media file to be recorded in response to the user's recording operation, detects whether the media file exists locally, obtains the local media file if the media file exists locally, and displays a media display interface in recording mode, thereby displaying the media content of the media file on the media display interface.
[0110] When it is detected that the local media file does not exist, the media file is downloaded from the server to the local. After the download is completed, the media display interface in the recording mode is displayed, and the media content in the local media file is displayed on the media display interface.
[0111] In this embodiment, a media file to be recorded is determined. When the media file exists locally in the terminal, a media display interface in a recording mode is displayed, and the media content of the media file is displayed on the media display interface. When the media file does not exist locally in the terminal, the media file is downloaded from the server. After the download is complete, a media display interface in a recording mode is displayed, and the media content of the media file is displayed on the media display interface. Through the preloading mechanism, the media file resource package is loaded in advance before the recording starts, which can ensure that the required files are ready before the recording starts, reduce the dependence on the network, and thus reduce the loading delay problem caused by network fluctuations. In this way, even in the case of unstable network, the continuity and integrity of the recording can be guaranteed.
[0112] In one embodiment, the user can pre-set the duration of this recording. When the recording duration is longer than the preset duration, before the recording starts, it will determine whether the required resources exist locally. If not, the resources required for this dual recording will be automatically downloaded and saved locally. Once the resource download is completed, or after a certain period of time, the system will automatically jump to the dual recording page. This page is specially designed for recording to ensure that all relevant content is ready for recording. In order to ensure the smooth progress of recording, the system will also perform a series of tests and calibrations to ensure that the performance and parameters of the equipment are in the best state.
[0113] Secondly, before each session starts, the system will check whether the corresponding resources exist locally. This is to ensure that there will be no missing resources or slow loading during the recording process. If the required resources do not exist locally, the system will automatically download them. Each successfully downloaded resource will be saved in the device's storage space, and a notification will be sent to the central control system indicating that the resource has been downloaded.
[0114] Then, each end will send relevant information to the central control system. This information includes the progress and status of the recording. The central control system will make judgments at regular intervals to determine which data needs to be displayed. This judgment is based on the data loading situation of each end to ensure that each link can be accurately displayed. Once the data to be displayed is determined, the central control system will notify each end of the relevant information. After receiving the information, each end will render the data in the UI. This is to ensure that the recorded picture is clear, accurate and beautiful. Through UI rendering, the layout, color, font and other details of the picture can be further optimized to provide users with a better recording experience. Through such an optimized design, the entire recording process becomes smoother and more efficient. Whether it is resource downloading before recording, data calibration, or data display and UI rendering during recording, they have all been carefully designed and optimized. Such a design not only improves the efficiency and quality of recording, but also ensures that the relevant content is recorded completely and accurately. At the same time, this mechanism also has very high stability and reliability, which can cope with various complex environments and situations, and provide users with a better and more stable dual recording experience. In addition, multiple devices load real-time resources synchronously to ensure the integrity of the data stored in both devices. Some data may be generated during the recording process, and some data may be prepared in advance before recording.
[0115] In addition, before each link starts, in order to ensure the fast display of the UI, an effective strategy can be adopted, that is, to pre-load the relevant resources into the memory. In this way, once the central control notifies the UI rendering, the system can use these resources immediately without waiting. This approach can significantly improve the loading speed and bring users a smoother experience.
[0116] Secondly, in order to avoid users from repeatedly loading the same content, the resource package can be saved locally, so that the continuity and integrity of the recording can be guaranteed even in the case of unstable network. In addition, we can also use intelligent caching technology to automatically cache commonly used resource packages according to user usage habits and needs, improve recording efficiency and reduce redundant information. In addition, during the review process, ensure that the displayed content is presented in full so that the reviewers can conduct a comprehensive review of the content.
[0117] In one embodiment, the method further comprises:
[0118] Obtain network information of the current network and obtain preset network conditions corresponding to the recording mode; when the network information does not meet the preset network conditions, select a target network that meets the preset network conditions from multiple candidate networks; and switch the current network to the target network.
[0119] Specifically, the terminal pre-sets and stores the preset network conditions corresponding to the recording mode. The preset network conditions are constraints on the network used in the recording mode.
[0120] The terminal can determine the network information of the currently used network and obtain the preset network conditions corresponding to the recording mode. The terminal can determine whether the network information meets the preset network conditions, and continue to use the current network if it meets the conditions.
[0121] When the network information does not meet the preset network conditions, the terminal can determine multiple candidate networks corresponding to the recording mode and determine the network information of each candidate network. Based on the network information of each candidate network, a target network that meets the preset network conditions is screened out from the multiple candidate networks, and the current network is switched to the target network.
[0122] In this embodiment, the network information may include network speed, the number of devices using the network, etc., and the preset network conditions include network speed conditions, quantity conditions, etc., but are not limited thereto.
[0123] The network information includes the network speed, and the preset network conditions include the network speed conditions. When the network speed of the current network of the terminal meets the network speed conditions, the current network continues to be used. If it does not meet the network speed conditions, a target network with a network speed that meets the network speed conditions is selected from the candidate networks, and the current network is switched to the target network.
[0124] The network speed condition may specifically be a requirement to meet a preset network speed threshold. For example, if the network speed of the current network is less than the preset network speed threshold, the current network is switched to the target network, and if the network speed of the current network is greater than or equal to the preset network speed threshold, the current network continues to be used.
[0125] In other embodiments, the network information may be the number of devices using the network. The terminal may determine the number of devices using the current network. When the number of devices meets the quantity condition, the current network continues to be used. If not, a target network that meets the quantity condition is selected from the candidate networks and the current network is switched to the target network.
[0126] For example, when the number of devices in the current network is less than or equal to the preset number of devices, the current network continues to be used. When the number of devices in the current network is greater than the preset number of devices, a target network with a number of devices less than or equal to the preset number is selected from the candidate networks.
[0127] In this embodiment, multiple selectable networks are pre-configured for the recording mode, network information of the current network is obtained, and preset network conditions corresponding to the recording mode are obtained. When the network information of the current network does not meet the preset network conditions, a target network that meets the preset network conditions is screened out from multiple candidate networks to switch the current network to the target network, so that the network with the best network status can be selected from multiple networks for media recording, so as to avoid problems such as interruption or unclear recording due to poor network during the recording process.
[0128] In other embodiments, the method further includes: the terminal can determine multiple candidate networks corresponding to the recording mode, and determine the network information of each candidate network. Based on the network information of each candidate network, a target network is screened out from multiple candidate networks, and the current network is switched to the target network. In this embodiment, multiple networks that can be used in the recording mode are preset. When entering the recording mode, the network with the best network status can be selected from multiple networks for recording, so as to avoid problems such as interruption or unclear recording due to network instability during recording.
[0129] In one embodiment, a media recording method is provided, which is applied to a terminal and includes:
[0130] In response to the recording operation, the media file to be recorded is determined, and the network information of the current network is obtained. The preset network condition corresponding to the recording mode is obtained, and when the network information does not meet the preset network condition, a target network that meets the preset network condition is selected from multiple candidate networks, and the current network is switched to the target network.
[0131] When there is a media file locally on the terminal, a media display interface in recording mode is displayed, and the media content of the media file is displayed on the media display interface;
[0132] When the terminal does not have a local media file, the terminal downloads the media file from the server, and after the download is complete, displays a media display interface in recording mode, and displays the media content of the media file on the media display interface;
[0133] Recording the media content displayed in the media display interface and collecting audio describing the media content;
[0134] In response to a sliding operation on the displayed media content, determining an operation adjustment coefficient and an inertia adjustment coefficient corresponding to a recording mode;
[0135] The operation sliding related information and the inertia sliding related information of the sliding operation are obtained, an initial operation sliding distance corresponding to the sliding operation is determined according to the operation sliding related information, and an initial inertia sliding distance corresponding to the sliding operation is determined according to the inertia sliding related information.
[0136] Based on the operation adjustment coefficient, the initial operation sliding distance is adjusted to obtain the target operation sliding distance; based on the inertia adjustment coefficient, the initial inertia sliding distance is adjusted to obtain the target inertia sliding distance.
[0137] The target sliding distance of the sliding operation in the recording mode is determined according to the target operation sliding distance and the target inertia sliding distance.
[0138] According to the target sliding distance in the recording mode, the sliding of the media content in the media display interface is controlled to update the media content currently displayed in the media display interface.
[0139] In response to the recording completion operation, a media recording file is generated, where the media recording file includes media content and descriptive audio for the media content.
[0140] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0141] Based on the same inventive concept, the embodiment of the present application also provides a media recording device for implementing the media recording method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more media recording device embodiments provided below can refer to the limitations on the media recording method above, and will not be repeated here.
[0142] In one embodiment, Figure 3 As shown, a media recording device 300 is provided, comprising:
[0143] The display module 302 is used to display a media display interface in a recording mode in response to a recording operation.
[0144] The recording module 304 is used to record the media content displayed in the media display interface and collect the description audio of the media content.
[0145] The determination module 306 is configured to determine a preset sliding adjustment coefficient corresponding to the recording mode in response to a sliding operation on the displayed media content.
[0146] The updating module 308 is used to control the sliding of the media content in the media display interface based on the preset sliding adjustment coefficient to update the media content currently displayed in the media display interface.
[0147] The generating module 310 is used to generate a media recording file in response to a recording completion operation, where the media recording file includes media content and a description audio for the media content.
[0148] In this embodiment, in response to a recording operation, a media display interface in recording mode is displayed, so that the media information displayed in the media display interface is recorded in the recording mode, and the descriptive audio for the media information is simultaneously collected. In response to a sliding operation on the displayed media content, a preset sliding adjustment coefficient corresponding to the recording mode is determined, and the sliding of the media content in the media display interface is controlled based on the preset sliding adjustment coefficient in the recording mode to update the media content currently displayed in the media display interface, so that the sliding of the displayed media information can be controlled based on the preset sliding adjustment coefficient to control the update speed of the displayed media information, so that the updated media information can be clearly recorded. In response to the recording completion operation, a media recording file of the media information and the descriptive audio is generated, so that the recorded media information and the descriptive audio of the media information are consistent, thereby obtaining a clearer and more complete media recording file.
[0149] In one embodiment, the update module 306 is further used to determine the target sliding distance of the sliding operation in the recording mode based on a preset sliding adjustment coefficient; according to the target sliding distance in the recording mode, control the sliding of the media content in the media display interface to update the media content currently displayed in the media display interface.
[0150] In this embodiment, based on a preset sliding adjustment coefficient, a target sliding distance of the sliding operation in the recording mode is determined, and according to the target sliding distance in the recording mode, the sliding of the media content in the media display interface is controlled to update the media content currently displayed in the media display interface, thereby effectively adjusting the sliding of the displayed media content in the recording mode to slow down the sliding of the media content so that the displayed media content can be clearly recorded.
[0151] In one embodiment, the update module 306 is further used to obtain sliding related information of the sliding operation, determine the initial sliding distance corresponding to the sliding operation according to the sliding related information; and determine the target sliding distance of the sliding operation in the recording mode based on the preset sliding adjustment coefficient and the initial sliding distance.
[0152] In this embodiment, sliding-related information of the sliding operation is obtained, an initial sliding distance corresponding to the sliding operation is determined according to the sliding-related information, and a target sliding distance of the sliding operation in the recording mode is determined based on a preset sliding adjustment coefficient and the initial sliding distance. Thus, the movement range of the media content by the user's sliding operation in the recording mode can be controlled by the preset sliding adjustment coefficient, thereby preventing the user from sliding too fast and causing unclear recording.
[0153] In one embodiment, the initial sliding distance includes an initial operation sliding distance and an initial inertia sliding distance, and the preset sliding adjustment coefficient includes an operation adjustment coefficient and an inertia adjustment coefficient;
[0154] The update module 306 is also used to adjust the initial operation sliding distance based on the operation adjustment coefficient to obtain the target operation sliding distance; adjust the initial inertia sliding distance based on the inertia adjustment coefficient to obtain the target inertia sliding distance; and determine the target sliding distance of the sliding operation in the recording mode according to the target operation sliding distance and the target inertia sliding distance.
[0155] In one embodiment, the display module 302 is also used to determine the media file to be recorded in response to the recording operation; when the media file exists locally in the terminal, a media display interface in recording mode is displayed, and the media content of the media file is displayed on the media display interface; when the media file does not exist locally in the terminal, the media file is downloaded from the server, and after the download is completed, a media display interface in recording mode is displayed, and the media content of the media file is displayed on the media display interface.
[0156] In this embodiment, a media file to be recorded is determined. When the media file exists locally in the terminal, a media display interface in a recording mode is displayed, and the media content of the media file is displayed on the media display interface. When the media file does not exist locally in the terminal, the media file is downloaded from the server. After the download is complete, a media display interface in a recording mode is displayed, and the media content of the media file is displayed on the media display interface. Through the preloading mechanism, the media file resource package is loaded in advance before the recording starts, which can ensure that the required files are ready before the recording starts, reduce the dependence on the network, and thus reduce the loading delay problem caused by network fluctuations. In this way, even in the case of unstable network, the continuity and integrity of the recording can be guaranteed.
[0157] In one embodiment, the apparatus further comprises:
[0158] The network detection module is used to obtain the network information of the current network and the preset network conditions corresponding to the recording mode; when the network information does not meet the preset network conditions, a target network that meets the preset network conditions is selected from multiple candidate networks; and the current network is switched to the target network.
[0159] In this embodiment, multiple selectable networks are pre-configured for the recording mode, network information of the current network is obtained, and preset network conditions corresponding to the recording mode are obtained. When the network information of the current network does not meet the preset network conditions, a target network that meets the preset network conditions is screened out from multiple candidate networks to switch the current network to the target network, so that the network with the best network status can be selected from multiple networks for media recording, so as to avoid problems such as interruption or unclear recording due to poor network during the recording process.
[0160] Each module in the above-mentioned media recording device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.
[0161] In one embodiment, a computer device is provided, which may be a terminal or a server. Taking a terminal as an example, its internal structure diagram may be as follows: Figure 4 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface, the display unit and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a media recording method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0162] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0163] The embodiment of the present application further provides a computer-readable storage medium, one or more non-volatile computer-readable storage media containing computer-executable instructions, which, when executed by one or more processors, enable the processors to perform the steps of the media recording method.
[0164] An embodiment of the present application also provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute a media recording method.
[0165] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0166] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0167] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A media recording method, characterized in that: include: In response to the recording operation, displaying a media presentation interface in a recording mode; Recording the media content displayed in the media display interface and collecting audio describing the media content; In response to a sliding operation on the displayed media content, determining a preset sliding adjustment coefficient corresponding to the recording mode; Based on the preset sliding adjustment coefficient, controlling the sliding of the media content in the media display interface to update the media content currently displayed in the media display interface; In response to the recording completion operation, a media recording file is generated, wherein the media recording file includes the media content and a description audio for the media content.
2. The method according to claim 1, characterized in that: The controlling the sliding of the media content in the media display interface based on the preset sliding adjustment coefficient to update the media content currently displayed in the media display interface includes: Based on the preset sliding adjustment coefficient, determining a target sliding distance of the sliding operation in the recording mode; According to the target sliding distance in the recording mode, the sliding of the media content in the media display interface is controlled to update the media content currently displayed in the media display interface.
3. The method according to claim 1, characterized in that The determining, based on the preset sliding adjustment coefficient, a target sliding distance of the sliding operation in the recording mode includes: Acquire sliding related information of the sliding operation, and determine an initial sliding distance corresponding to the sliding operation according to the sliding related information; Based on the preset sliding adjustment coefficient and the initial sliding distance, a target sliding distance of the sliding operation in the recording mode is determined.
4. The method according to claim 3, characterized in that: The initial sliding distance includes an initial operation sliding distance and an initial inertia sliding distance, and the preset sliding adjustment coefficient includes an operation adjustment coefficient and an inertia adjustment coefficient; The determining, based on the preset sliding adjustment coefficient and the initial sliding distance, a target sliding distance of the sliding operation in the recording mode includes: Based on the operation adjustment coefficient, the initial operation sliding distance is adjusted to obtain a target operation sliding distance; Based on the inertia adjustment coefficient, the initial inertia sliding distance is adjusted to obtain a target inertia sliding distance; A target sliding distance of the sliding operation in the recording mode is determined according to the target operation sliding distance and the target inertia sliding distance.
5. The method according to claim 1, characterized in that The media recording method is applied to a terminal, and in response to a recording operation, displaying a media display interface in a recording mode includes: In response to a recording operation, determining a media file to be recorded; When the terminal locally stores the media file, a media display interface in recording mode is displayed, and media content of the media file is displayed on the media display interface; When the terminal does not have the media file locally, the terminal downloads the media file from the server, and after the download is complete, displays a media display interface in a recording mode, and displays the media content of the media file on the media display interface.
6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: Obtaining network information of the current network and obtaining preset network conditions corresponding to the recording mode; When the network information does not meet the preset network condition, screening out a target network that meets the preset network condition from a plurality of candidate networks; The current network is switched to a target network.
7. A media recording device, characterized in that: include: A display module, configured to display a media display interface in a recording mode in response to a recording operation; A recording module, used to record the media content displayed in the media display interface and collect the audio description of the media content; A determination module, configured to determine a preset sliding adjustment coefficient corresponding to the recording mode in response to a sliding operation on the displayed media content; An updating module, configured to control the sliding of the media content in the media display interface based on the preset sliding adjustment coefficient, so as to update the media content currently displayed in the media display interface; The generating module is used to generate a media recording file in response to a recording completion operation, wherein the media recording file includes the media content and a description audio for the media content.
8. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the computer program is executed by the processor, the processor is caused to perform the steps of the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.