Method, device, equipment, storage medium and computer program for controlling playback of multimedia files
The method optimizes multimedia playback control by determining switching request types to select renderers and employing pre-rendering techniques, ensuring smooth transitions and reducing system load.
Patent Information
- Application Number
- JP2025520701
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2022-11-14
- Filing Date
- 2023-11-10
- Publication Date
- 2026-02-20
- Estimated Expiration
- 2043-11-10
AI Technical Summary
Existing technologies face challenges in efficiently controlling the playback of multimedia files, particularly in handling seamless transitions and avoiding abnormal displays during renderer switching.
A method and device for controlling multimedia playback that determines the type of switching request to select the appropriate renderers, allowing for different numbers of renderers to be used based on the request type, and includes pre-rendering and transitioning techniques to ensure smooth playback.
Enables seamless multimedia file switching with improved display effects and reduced system performance consumption by optimizing renderer usage and pre-loading strategies.
Smart Images

Figure 0007818740000001 
Figure 0007818740000002 
Figure 0007818740000003
Abstract
Description
[Technical Field]
[0001] [CROSS-REFERENCE TO RELATED APPLICATIONS] This application claims priority to Chinese Patent No. 202211419797.X, filed on November 14, 2022, the entire teachings of which are incorporated herein by reference.
[0002] The present disclosure relates to the field of data processing, and in particular to a method, apparatus, and device for controlling the playback of multimedia files. 、 storage medium, and computer programs Regarding. [Background technology]
[0003] With the rapid development of multimedia information technology, there is an increasing demand for interactive processing of multimedia files, such as controlling the playback of multimedia files while the multimedia files are being played continuously.
[0004] Therefore, how to realize playback control of multimedia files has become an issue that must be resolved as soon as possible. Summary of the Invention
[0005] To solve the above problems, an embodiment of the present disclosure provides a method for controlling playback of a multimedia file.
[0006] According to a first aspect, the present disclosure provides a method for manufacturing a semiconductor device comprising: 1. A method for controlling the playback of a multimedia file, the method comprising: when receiving a switch request to switch from a first multimedia file to a target playback multimedia file, determining a type of the switch request to characterize a manner of triggering the switch request; determining target renderers, including a renderer to be used when switching from the first multimedia file to the target playback multimedia file, based on the type of the switching request, wherein different types of the switching requests correspond to different numbers of the corresponding target renderers; rendering, by the target renderer, the target playback multimedia file; The present invention provides a method for controlling the playback of a multimedia file, including:
[0007] In a preferred embodiment, the first multimedia file is rendered with a first renderer, and determining a target renderer based on the type of the switch request comprises: determining the first renderer as a target renderer when it is determined that the type of the switching request belongs to a first switching type including an automatic continuous playback switching type and a control switching type; Accordingly, the step of rendering the target playback multimedia file by the target renderer comprises: Scheduling a playback engine module to render the target playback multimedia file with the first renderer is included.
[0008] In a preferred embodiment, the first multimedia file is rendered with a first renderer, and determining a target renderer based on the type of the switch request comprises: determining, when it is determined that the type of the switching request belongs to a second switching type including a slide switching type, both the first renderer and a second renderer to which a first frame of the target playback multimedia file is being rendered as target renderers; Accordingly, the step of rendering the target playback multimedia file by the target renderer comprises: Scheduling a playback engine module to render the target playback multimedia file with the second renderer is included.
[0009] In a preferred embodiment, before rendering the target playback multimedia file by the target renderer: determining whether a preload condition for the second multimedia file is currently satisfied based on preload determination information corresponding to the second multimedia file, which is the next multimedia file adjacent to the first multimedia file, including at least one of current network status information, current device performance information, file information of the second multimedia file, and playback progress information of the first multimedia file; The method further includes scheduling a load module to preload the second multimedia file if it is determined that a preload condition for the second multimedia file is currently satisfied.
[0010] In a preferred embodiment, before scheduling the playback engine module to render the target playback multimedia file with the second renderer, The method further includes scheduling the playback engine module to render a first frame of the target playback multimedia file that has a preset adjacent playback order relationship with the first multimedia file, using the second renderer in a display standby state to identify that the corresponding renderer is not displayed on a device screen; responsively scheduling a playback engine module to render the target playback multimedia file with the second renderer, The method includes updating the second renderer from the display standby state to a display active state to identify that the corresponding renderer is displayed on the device screen, and scheduling the playback engine module to render the target playback multimedia file on the second renderer based on a first frame rendered on the second renderer.
[0011] In a preferred embodiment, after scheduling the playback engine module to render the target playback multimedia file with the second renderer, The method further includes updating the display state of the first renderer to a display standby state and scheduling the playback engine module to render the first frame of a third multimedia file that has an adjacent playback order relationship with the target playback multimedia file in the first renderer.
[0012] In a preferred embodiment, before rendering the target playback multimedia file by the target renderer: scheduling the playback engine module to render a first frame of a fourth multimedia file having the preset adjacent playback order relationship with the first multimedia file using a third renderer in the display standby state; Accordingly, before scheduling the playback engine module to render the target playback multimedia file with the second renderer, The method further includes scheduling the playback engine module to render a first frame of a fifth multimedia file that has an adjacent playback order relationship with the target playback multimedia file in the third renderer.
[0013] In a preferred embodiment, the step of updating the second renderer from the display standby state to the display active state comprises: controlling a display window corresponding to the second renderer to transition to a device screen in a first predetermined direction; In response to the request, updating the display state of the first renderer to a display standby state includes: The method includes controlling the display window corresponding to the first renderer to transition from the device screen in a second predetermined direction.
[0014] According to a second aspect, the present disclosure provides a method for manufacturing a semiconductor device comprising: 1. A device for controlling the playback of multimedia files, the device comprising: a first determination module for determining a type of a switching request when receiving a switching request from a first multimedia file to a target playback multimedia file, the type of the switching request being used to characterize a manner of triggering the switching request; a second determination module for determining target renderers, including a renderer to be used when switching from the first multimedia file to the target playback multimedia file, based on the type of the switching request, wherein different types of the switching request correspond to different numbers of the corresponding target renderers; a first rendering module for rendering the target playback multimedia file by the target renderer; and
[0015] According to a third aspect, the present disclosure provides a computer-readable storage medium having instructions stored thereon, the instructions, when executed by a terminal device, causing the terminal device to implement the above method.
[0016] According to a fourth aspect, the present disclosure provides an apparatus for controlling playback of multimedia files, comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, the computer program implementing the above method when the processor executes the computer program.
[0017] According to a fifth aspect, the present disclosure provides a computer program product comprising computer programs / instructions that, when executed by a processor, implement the above method. [Brief explanation of the drawings]
[0018] The drawings herein, which are incorporated in and constitute a part of the specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure.
[0019] In order to more clearly describe the technical solutions in the embodiments or prior art of the present disclosure, the following briefly introduces the drawings that need to be used in the description of the embodiments or prior art, and it is obvious that those skilled in the art can obtain other drawings based on these drawings without any creative efforts.
[0020] [Figure 1] 1 is a flowchart of a method for controlling playback of a multimedia file according to an embodiment of the present disclosure. [Figure 2] 10 is a flowchart of another multimedia file playback control method according to an embodiment of the present disclosure. [Figure 3] 10 is a flowchart of yet another method for controlling playback of multimedia files according to an embodiment of the present disclosure. [Figure 4] FIG. 1 is a schematic diagram illustrating the layout of a renderer according to an embodiment of the present disclosure. [Figure 5] FIG. 10 is a schematic diagram illustrating the layout of another renderer according to an embodiment of the present disclosure. [Figure 6] FIG. 10 is a schematic diagram illustrating the layout of yet another renderer according to an embodiment of the present disclosure. [Figure 7] 1 is a structural schematic diagram of a multimedia file playback control system according to an embodiment of the present disclosure; [Figure 8] 1 is a structural schematic diagram of a playback control device for multimedia files according to an embodiment of the present disclosure; [Figure 9] 1 is a structural schematic diagram of a multimedia file playback control device according to an embodiment of the present disclosure; DETAILED DESCRIPTION OF THE INVENTION
[0021] In order to more clearly understand the above objects, features and advantages of the present disclosure, the aspects of the present disclosure will be further described below. Note that, unless there is a conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.
[0022] In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure. However, the present disclosure may be embodied in other forms different from those described herein. It is apparent that the embodiments in the specification are merely some of the embodiments of the present disclosure, and not all of the embodiments.
[0023] To realize the playback control of multimedia files, an embodiment of the present disclosure provides a playback control method for multimedia files.
[0024] Specifically, when a switching request for switching from a first multimedia file to a target multimedia file to be played is received, the type of the switching request is first determined to characterize the manner of triggering the switching request, a target renderer is then determined based on the type of the switching request, and the target multimedia file to be played is rendered by the target renderer. In this way, in the embodiment of the present disclosure, multimedia file switching can be realized using different numbers of renderers in response to different types of switching requests, thereby realizing the playback control function of multimedia files.
[0025] Based on this, an embodiment of the present disclosure provides a method for controlling the playback of multimedia files. Referring to Figure 1, Figure 1 is a flowchart of a method for controlling the playback of multimedia files according to an embodiment of the present disclosure. The method includes the following steps:
[0026] S101: When receiving a switch request to switch from a first multimedia file to a target playback multimedia file, determine a type of switch request to characterize a manner of triggering the switch request.
[0027] In a preferred embodiment, the first multimedia file and the target playback multimedia file may belong to the same multimedia content stream, such as two videos belonging to the same video stream.
[0028] A method for controlling playback of multimedia files according to an embodiment of the present disclosure can be applied to a client having a function for playing multimedia files that can be placed on a terminal such as a smartphone, a tablet personal computer (Tablet PC), or a notebook computer.
[0029] In the embodiment of the present disclosure, the first multimedia file may be any type of multimedia file, specifically, the first multimedia file may be a multimedia file containing at least one of an image (including a moving image), an audio, and a video, for example, an episode of a TV drama series or a song.
[0030] The target playback multimedia file and the first multimedia file may belong to the same multimedia content stream. The multimedia content stream may consist of multiple predetermined multimedia files having a predetermined playback order relationship. For example, the multimedia content stream may be a content stream containing a mixture of images, videos, audio, etc., and the video stream may be, for example, an N-episode drama series. The target playback multimedia file and the first multimedia file may each correspond to one episode of the N-episode drama series.
[0031] Specifically, the switching request to switch from the first multimedia file to the target playback multimedia file may be an automatic continuous playback request triggered when the first multimedia file is played to the end of the last frame, or may be a manual switching request to switch to the target playback multimedia file while the first multimedia file is being played.
[0032] In a preferred embodiment, the type of switch request corresponding to the automatic continue playing request triggered when the first multimedia file has played to the end of the last frame is an automatic continue playing switch type.
[0033] In the embodiment of the present disclosure, which can be applied to the automatic continuous playback of multimedia files, when a switching request triggered when the playback of the last frame of a first multimedia file is completed is received, that is, when the automatic playback of the first multimedia file is completed and the next multimedia file is to be played, the type of the switching request is specifically determined as an automatic continuous playback switching type.
[0034] In addition, the method for triggering a manual switching request for switching to a target playback multimedia file during playback of a first multimedia file can include a method for triggering a switching request by a control and a method for triggering a switching request by a slide operation.
[0035] The method for triggering a switching request by a slide operation can be realized by a preset slide switching operation acting on the playback page of the first multimedia file. The preset slide switching operation can include at least one of a preset downward slide switching operation and a preset upward slide switching operation, and can be realized by acting on any position on the playback page of the first multimedia file to trigger the preset slide switching operation. Specifically, the preset slide switching operation on the playback page of the multimedia file can trigger a slide switching request for switching from the first multimedia file to the target playback multimedia file, and the corresponding switching request type is a slide switching type.
[0036] The method of triggering a switching request by a control can be realized by triggering a preset switching control on the playback page of the first multimedia file. The preset switching control can include at least one of a preset down switching control, a preset up switching control, and a preset target multimedia file switching control. Specifically, a trigger click operation of the preset switching control on the playback page of the multimedia file can trigger a switching request for switching from the first multimedia file to the target playback multimedia file, and the corresponding switching request type is a control switching type.
[0037] Specifically, if the preset switching control is a preset down switching control, clicking the preset down switching control can trigger switching from the first multimedia file to the next multimedia file adjacent to the first multimedia file. If the preset switching control is a preset up switching control, clicking the preset up switching control can trigger switching from the first multimedia file to the previous multimedia file adjacent to the first multimedia file. If the preset switching control is a preset multimedia file switching control, clicking the preset multimedia file switching control can trigger switching from the first multimedia file to the target multimedia file. For example, while the first episode of a drama series is playing, clicking the episode 50 switching control can trigger switching from the first episode of the drama series to the 50th episode of the drama series.
[0038] S102: Determine the target renderer based on the type of switch request.
[0039] The target renderers include the renderers used in switching from the first multimedia file to the target playback multimedia file, and different types of switching requests correspond to different numbers of target renderers.
[0040] Specifically, the type of the switching request includes at least one of an automatic continuous playback switching type, a control switching type, and a slide switching type.
[0041] For the trigger methods of the automatic continuous play switching type, the control switching type, and the slide switching type, please refer to the description of step S101.
[0042] In the embodiment of the present disclosure, when the switching request type is an automatic continuous playback switching type or a control switching type, the number of target renderers is set to 1 to avoid abnormal display of the playback screen due to the switch of the renderer, that is, the target renderers only include the renderer used when rendering the first multimedia file, and there is no need to switch the renderer during the switch from the first multimedia file to the target playback multimedia file.
[0043] If the type of switching request is a slide switching type, in order to ensure the screen switching effect during switching of the continuously played multimedia files, the number of target renderers can be two, that is, the target renderers include a renderer used when rendering the first multimedia file (hereinafter referred to as the first renderer) and a renderer for rendering the target playback multimedia file (hereinafter referred to as the second renderer).
[0044] Specifically, a detailed description of determining the target renderer based on the type of switching request can be found in the following embodiment, and therefore will not be described in detail here.
[0045] S103: Render the target playback multimedia file by the target renderer.
[0046] In an embodiment of the present disclosure, a broadcast control module may be located in a client having a playback function for multimedia files, and the broadcast control module can schedule a playback engine module to render a target playback multimedia file by a target renderer.
[0047] The playback engine module is for receiving a schedule command and playing a target playback multimedia file indicated by the schedule command with a renderer indicated by the schedule command.
[0048] Specifically, the broadcast control module in an embodiment of the present disclosure can correspond to one or more renderers, schedule the playback engine module, and control the playback engine module to play the multimedia file on any of the one or more renderers.
[0049] In an embodiment of the present disclosure, when the type of switching request is an automatic continuous playback switching type and a control switching type, the target renderer includes only the first renderer used when rendering the first multimedia file, so the broadcast control module only needs to render the target playback multimedia file with the first renderer by scheduling the playback engine module.
[0050] Take the switching request type as an example: when receiving an automatic continuous playback switching request for a first multimedia file played by a first renderer, schedule the playback engine module to control the next multimedia file to be rendered by the first renderer, without needing to switch the renderer;
[0051] In addition, if the loading of the target playback multimedia file is not completed, the broadcast control module can control the playback of the first multimedia file to be paused, and schedule the playback engine module to start rendering the target playback multimedia file in the first renderer after the loading of the target playback multimedia file is completed.
[0052] In another embodiment of the present disclosure, when the type of switching request is a slide switching type, the target renderer includes a first renderer used in rendering the first multimedia file and a second renderer for rendering the target playback multimedia file, so that upon receiving a slide switching request for the first multimedia file played by the first renderer, the playback engine module is scheduled and controlled so that the next multimedia file is rendered by the second renderer, thereby realizing the switching of the renderers and ensuring the screen switching effect during the slide switching.
[0053] In a multimedia file playback control method according to an embodiment of the present disclosure, upon receiving a switch request for switching from a first multimedia file to a target multimedia file for playback, the method first determines a type of the switch request to characterize a manner of triggering the switch request, then determines a target renderer based on the type of the switch request, and renders the target multimedia file for playback using the target renderer. In this way, the embodiment of the present disclosure can realize multimedia file switching using different numbers of renderers according to different types of switch requests, thereby realizing a multimedia file playback control function.
[0054] Based on the above embodiment, an embodiment of the present disclosure further provides a method for controlling the playback of multimedia files. Referring to Figure 2, Figure 2 is a flowchart of another method for controlling the playback of multimedia files according to an embodiment of the present disclosure. The method includes the following steps:
[0055] S201: When receiving a switch request to switch from a first multimedia file to a target playback multimedia file, determine a type of switch request to characterize a manner of triggering the switch request.
[0056] The first multimedia file is rendered in a first renderer.
[0057] Specifically, the first renderer may be any renderer corresponding to the broadcast control module, and the first multimedia file is being played on the first renderer.
[0058] Note that step S201 is the same as step S101 in the above embodiment, and therefore the description of step S101 in the above embodiment can be referred to.
[0059] S202: If it is determined that the type of the switching request belongs to a first switching type including an automatic continuous playback switching type and a control switching type, the first renderer is determined as the target renderer.
[0060] Specifically, for the triggering methods of the automatic continuous playback switching type and the control switching type, please refer to the description of step S101.
[0061] In an embodiment of the present disclosure, if the type of switching request is determined to be an automatic continuous playback switching type, i.e., corresponding to a scene of continuous automatic playback of multimedia files, the number of target renderers can be set to 1, in order to avoid abnormal display of the playback screen due to renderer switching during continuous automatic playback of multimedia files, that is, the target renderers only include the first renderer used when rendering the first multimedia file.
[0062] In an embodiment of the present disclosure, if the type of switching request is determined to be a control switching type, i.e., corresponding to a situation where a user manually switches a multimedia file up or down using a control, the number of target renderers can be set to 1 to avoid abnormal display of the playback screen due to renderer switching during the process of the user manually switching a multimedia file up or down using a control, i.e., the target renderers only include the first renderer used when rendering the first multimedia file.
[0063] S203: Schedule the playback engine module to render the target playback multimedia file with the first renderer.
[0064] In an embodiment of the present disclosure, after determining the first renderer as the target renderer, the playback engine module is scheduled to render the target playback multimedia file using the first renderer, thereby avoiding abnormal display of the playback screen due to switching of renderers.
[0065] In addition, in addition to the first renderer, other renderers may be disposed on the client. In order to ensure the slide transition video effect after a user triggers a slide transition operation during the playback of each multimedia file, in the embodiment of the present disclosure, during the playback of each multimedia file, the other renderers may be used to pre-render the first frames of the multimedia files before and after the currently played multimedia file.
[0066] Taking the first renderer as an example, the first renderer can be used to render a target playback multimedia file. The broadcast control module can schedule the playback engine module to render the first frame of the next multimedia file adjacent to the target playback multimedia file in the second renderer, and the first frame of the previous multimedia file adjacent to the target playback multimedia file in the third renderer. This ensures a screen switching effect when switching from the target playback multimedia file to the previous or next adjacent multimedia file when triggering a slide switching operation on the target playback multimedia file, thereby ensuring a good display effect.
[0067] In the multimedia file playback control method according to an embodiment of the present disclosure, in situations where multimedia files are automatically played continuously and where playback switching is triggered by clicking a switching control, the playback engine module is scheduled and controlled so that different multimedia files are rendered using the same renderer, thereby eliminating the need to switch renderers for continuously played multimedia files and avoiding abnormal display of the playback screen due to renderer switching.
[0068] Based on the above embodiment, in order to realize the screen transition effect during the slide transition of continuously played multimedia files and reduce the impact of abnormal display of the playback screen caused by switching of multimedia files on the display effect, the embodiment of the present disclosure further provides a method for controlling the playback of multimedia files. Referring to Figure 3, Figure 3 is a flowchart of another method for controlling the playback of multimedia files according to an embodiment of the present disclosure. The method includes the following steps:
[0069] S301: When receiving a switch request to switch from a first multimedia file to a target playback multimedia file, determine a type of switch request to characterize a manner of triggering the switch request.
[0070] The first multimedia file is rendered in a first renderer.
[0071] Specifically, the first renderer may be any renderer corresponding to the broadcast control module, and the first multimedia file is being played on the first renderer.
[0072] Note that step S301 is the same as step S101 in the above embodiment, and therefore the description of step S101 in the above embodiment can be referred to.
[0073] S302: When it is determined that the type of the switching request belongs to a second switching type including a slide switching type, both the first renderer and the second renderer in which the first frame of the target playback multimedia file is rendered are determined as target renderers.
[0074] In an embodiment of the present disclosure, a trigger method for a slide-switching type switching request may be triggered by a downward slide switching operation (also referred to as switching to the next content) acting on the playback page of the first multimedia file, or by an upward slide switching operation (also referred to as switching to the previous content) acting on the playback page of the first multimedia file. The downward slide switching operation may include a left slide operation or a down slide operation, and the upward slide switching operation may include a right slide operation or an up slide operation.
[0075] In the embodiment of the present disclosure, if the type of switching request is determined to be a slide switching type, i.e., corresponds to a scene where a user slide switches a multimedia file, the number of target renderers can be two, i.e., the target renderers include a first renderer and a second renderer, to realize a screen switching effect during the slide switching of the continuously played multimedia file.
[0076] S303: Schedule the playback engine module to render the target playback multimedia file with the second renderer.
[0077] In an embodiment of the present disclosure, the broadcast control module supports at least two renderers, including a first renderer and a second renderer, and can schedule the playback engine module and control the playback engine module to play the multimedia file on either renderer.
[0078] To avoid problems such as a black screen during slide switching of continuously played multimedia files, before the broadcast control module schedules the playback engine module to render the target playback multimedia file in the second renderer, i.e., during playback of the first multimedia file, the broadcast control module can schedule the playback engine module to pre-render the first frame of the target playback multimedia file in the second renderer, thereby realizing a video transition effect of slide switching from the first multimedia file to the target playback multimedia file based on the first frame of the target playback multimedia file pre-rendered in the second renderer upon receiving a slide switching type switching request.
[0079] In addition, the embodiment of the present disclosure can be applied to a situation where a user slides a multimedia file. Specifically, the triggering method for a slide-type switching request can include at least one of a triggering method for sliding a multimedia file upward and a triggering method for sliding a multimedia file downward.
[0080] In a preferred embodiment, before scheduling the playback engine module to render the target playback multimedia file on the second renderer, i.e., during playback of the first multimedia file, the broadcast control module schedules the playback engine module to render the first frame of the target playback multimedia file on the second renderer, where the second renderer is in a display standby state, i.e., is not displayed on the device screen.
[0081] After the playback engine module schedules the second renderer to render the target playback multimedia file, the second renderer is updated from a display standby state to a display active state, i.e., a display window corresponding to the second renderer is displayed on the device screen. In addition, the broadcast control module can specifically schedule the playback engine module to render the target playback multimedia file on the second renderer based on the first frame rendered by the second renderer.
[0082] Specifically, the fact that there is a predetermined adjacent playback order relationship between the target playback multimedia file and the first multimedia file means that the target playback multimedia file may be the next or previous multimedia file adjacent to the first multimedia file in the playback order.
[0083] For easier understanding, take the example of a user manually triggering a left slide operation to switch to the next multimedia file. After receiving the left slide operation affecting the playback page of the first multimedia file, the broadcast control module schedules the playback engine module to display the first frame of the target multimedia file rendered by the second renderer on the device screen, and controls the target multimedia file to be played by the second renderer after determining that the target multimedia file has been loaded. The playback engine module schedules the rendering of two adjacent multimedia files in the playback order by different renderers, ensuring the screen switching effect between the two multimedia files based on the first frame of the pre-rendered next multimedia file. This avoids display issues such as a black screen caused by switching the target multimedia file before it is ready, and improves the display effect when the user slides to switch to the next multimedia file.
[0084] In addition, to further enhance the display effect, when a user slides through the playback of a multimedia file, a video transition effect can be realized based on the first frame of the target playback multimedia file that has been pre-rendered. In a preferred embodiment, when a slide-transition type switching request for a first multimedia file is received, a display window corresponding to a second renderer is cut into the device screen in a first predetermined direction, and a display window corresponding to the first renderer is transitioned out of the device screen in a second predetermined direction. The first frame of the target playback multimedia file has been rendered in the second renderer.
[0085] The first and second predetermined directions may be any direction on the device screen. In a preferred embodiment, when a left slide is performed to switch to the next multimedia file, the first predetermined direction may be the right side of the device screen, and the second predetermined direction may be the left side of the device screen accordingly.
[0086] In an embodiment of the present disclosure, when a slide-switching type switching request for a first multimedia file is received, the display window corresponding to the second renderer (corresponding to the first frame of the target playback multimedia file) is cut into the device screen in a first predetermined direction, and the display window corresponding to the first renderer (corresponding to the screen of the final frame of the first multimedia file) is controlled to transition from the device screen in a second predetermined direction, thereby realizing a video switching effect of smoothly transitioning from the first multimedia file to the playback page of the next multimedia file, and improving the display effect.
[0087] Furthermore, to avoid wasting system performance due to the creation of renderers, embodiments of the present disclosure also allow for the re-use of renderers by relocating the renderers.
[0088] In a preferred embodiment, after the playback engine module schedules the second renderer to render the target playback multimedia file, it updates the display state of the first renderer to a display standby state and schedules the playback engine module to render the first frame of the third multimedia file on the first renderer.
[0089] The third multimedia file and the target playback multimedia file have an adjacent playback order relationship, for example, the third multimedia file is the next multimedia file adjacent to the target playback multimedia file.
[0090] Continuing with the example, consider a scenario in which a user manually triggers a left slide operation to switch to the next multimedia file. Upon receiving a slide-switching-type switching request for the first multimedia file, the playback engine module schedules the second renderer to render the target multimedia file, then updates the display state of the first renderer to a standby state, i.e., relocates the first renderer to the position of the next renderer adjacent to the second renderer, and schedules the playback engine module to render the first frame of the next multimedia file (hereinafter referred to as the third multimedia file) adjacent to the target multimedia file in the first renderer. Thus, when a slide-switching request for the target multimedia file is subsequently received, a video switching effect of switching from the target multimedia file to the third multimedia file can be achieved based on the first frame of the third multimedia file rendered by the first renderer. Furthermore, scheduling the playback engine module to play the third multimedia file in the first renderer realizes renderer reuse and reduces system performance consumption.
[0091] It should be noted that the situation where the user manually triggers the right slide operation to switch to the previous multimedia file can be referred to the above description, and therefore will not be described in detail here.
[0092] Based on the above embodiment, for an application scenario in which a user manually triggers a slide operation to switch to a target playback multimedia file, the embodiment of the present disclosure further provides a method for controlling playback of a multimedia file. Specifically, the broadcast control module corresponds to three renderers, namely, a first renderer, a second renderer, and a third renderer, and the broadcast control module can schedule the playback engine module and control the playback engine module to play the multimedia file on any of the renderers.
[0093] The second renderer and the third renderer are located on both sides of the first renderer, and render the previous and next multimedia files adjacent to the first multimedia file in the playback order in response to a slide-type switching request.
[0094] For easier understanding, hereinafter, the third renderer is located on the left side of the first renderer, and the second renderer is located on the right side of the first renderer as an example. Accordingly, the third renderer renders the previous multimedia file (i.e., the fourth multimedia file) adjacent to the first multimedia file in the playback order in response to a slide-switching type switching request, and the second renderer renders the next multimedia file (i.e., the target playback multimedia file) adjacent to the first multimedia file in the playback order in response to a slide-switching type switching request.
[0095] 4, which is a schematic diagram illustrating the layout of renderers according to an embodiment of the present disclosure. As shown in FIG. 4, the second renderer is located to the right of the first renderer and renders the next multimedia file (i.e., the target multimedia file) adjacent to the first multimedia file in the playback order in response to a slide-switching type switching request, and the third renderer is located to the left of the first renderer and renders the previous multimedia file (i.e., the target multimedia file) adjacent to the first multimedia file in the playback order in response to a slide-switching type switching request.
[0096] When the first multimedia file is played by the first renderer, both the second renderer and the third renderer are in a standby state. In addition, in order to avoid problems such as the screen corresponding to the target playback multimedia file or the fourth multimedia file becoming black during the process of sliding from the first multimedia file to the target playback multimedia file or the fourth multimedia file, the playback engine module can be scheduled to render the first frame of the target playback multimedia file by the second renderer and the first frame of the fourth multimedia file by the third renderer.
[0097] Specifically, during playback of the first multimedia file, the broadcast control module schedules the playback engine module to render the first frame of the target playback multimedia file in the second renderer and the first frame of the fourth multimedia file in the third renderer, where both the second renderer and the third renderer are in a display standby state, and there is a preset adjacent playback order relationship between the fourth multimedia file and the first multimedia file.
[0098] For easier understanding, the embodiment of the present disclosure continues to take as an example a scenario in which the user manually triggers a left sliding operation to switch to the next multimedia file.
[0099] In an embodiment of the present disclosure, upon receiving a slide-switching type switching request for a first multimedia file, the playback engine module is scheduled to display the first frame of the target playback multimedia file rendered by the second renderer on the device screen, and after the target playback multimedia file is loaded, the playback engine module is scheduled to continue playing the target playback multimedia file in the second renderer. By scheduling the playback engine module to render two adjacent multimedia files in the playback order with different renderers, the function of switching to the playback of the previous or next multimedia file by a slide-switching operation is realized, and the screen switching effect is ensured.
[0100] In addition, in order to avoid problems such as the playback screen corresponding to the first multimedia file becoming a black screen when switching from the target playback multimedia file to the first multimedia file, it is necessary to update the state of the first renderer to a display standby state and schedule the playback engine module to render the first frame of the first multimedia file in the first renderer.
[0101] In addition, to improve the display effect, when triggering a slide switch to play the next or previous adjacent multimedia file relative to the first multimedia file, a corresponding video switching effect can be further set. In a preferred embodiment, upon receiving a switch request triggered by a slide operation on the first multimedia file, a display window corresponding to the second renderer is controlled to cut in on the device screen in a first predetermined direction, and a display window corresponding to the first renderer is controlled to transition out of the device screen in a second predetermined direction.
[0102] The first and second predetermined directions may be any direction on the device screen. In a preferred embodiment, when a left slide is performed to switch to the next multimedia file, the first predetermined direction may be the right side of the device screen, and the second predetermined direction may be the left side of the device screen accordingly.
[0103] In an embodiment of the present disclosure, when a slide-switching type switching request for the first multimedia file is received, i.e., when the user manually triggers a slide operation to switch to the next multimedia file, the display window corresponding to the second renderer (i.e., the screen of the first frame of the target playback multimedia file) is cut into the device screen in a first predetermined direction, and the display window corresponding to the first renderer (i.e., the screen of a frame of the first multimedia file) is controlled to transition from the device screen in a second predetermined direction, thereby realizing a video switching effect of smoothly transitioning from the first multimedia file to the playback page of the next multimedia file, and improving the display effect.
[0104] As shown in Figure 5, when the user manually triggers a left slide operation to switch from the first multimedia file to the target playback multimedia file, the screen of the first frame of the target playback multimedia file (i.e., the display window corresponding to the second renderer) is cut in from the right side of the device screen 501, and the screen of a frame of the first multimedia file (i.e., the display window corresponding to the first renderer) is cut out from the left side of the device screen 501, and the device screen displays a video switching effect that smoothly transitions from the screen of the first multimedia file to the screen of the first frame of the next multimedia file, improving the display effect.
[0105] In addition, in order to avoid consuming system performance due to the creation of a renderer, in an embodiment of the present disclosure, the playback engine module can schedule the second renderer to render the target playback multimedia file, and then relocate the third renderer to realize the reuse of the renderer.
[0106] In a preferred embodiment, after the playback engine module schedules the second renderer to render the target playback multimedia file, the playback engine module schedules the third renderer to render the first frame of the fifth multimedia file.
[0107] There is a preset adjacent playback order relationship between the fifth multimedia file and the target playback multimedia file, as shown in Figure 5, the fifth multimedia file is the next multimedia file adjacent to the target playback multimedia file.
[0108] In an embodiment of the present disclosure, after the target playback multimedia file is played by the second renderer, both the third renderer and the first renderer are located to the left of the second renderer. To realize the reuse of renderers, the third renderer can be relocated to the right of the second renderer so that the left and right sides of the second renderer correspond to the renderers for rendering the previous and next multimedia files adjacent to the target playback multimedia file.
[0109] As shown in Fig. 6, to realize the reuse of renderers, based on Fig. 5, when the target playback multimedia file is played on the second renderer, the third renderer is relocated to the right of the second renderer so that both the first renderer and the third renderer are in a display standby state. Illustratively, when a user manually triggers a left slide operation on the target playback multimedia file, the third renderer is updated from a display standby state to a display active state, and the playback engine module is scheduled to play the fifth multimedia file on the third renderer based on the first frame rendered by the third renderer, thereby realizing the reuse of renderers and reducing the system performance consumption caused by the creation of renderers.
[0110] It should be noted that the situation where the user manually triggers the right slide operation to switch to the previous multimedia file can be referred to the above description, and therefore will not be described in detail here.
[0111] In the multimedia file playback control method according to an embodiment of the present disclosure, during a slide switching scene, the playback engine module is scheduled to play two adjacent multimedia files in the playback order using different renderers, thereby realizing the function of switching to the previous or next multimedia file through a slide switching operation. In addition, the screen switching effect between the two multimedia files is ensured based on the first frame of the next multimedia file that has been pre-rendered, thereby improving the display effect when the user slides between the previous or next multimedia file.
[0112] In practical applications, when multimedia files are played continuously, in order to avoid problems such as waiting or delays caused by the next multimedia file being loaded too slowly when playing multimedia files continuously, the embodiments of the present disclosure can also preload each multimedia file.
[0113] In a preferred embodiment, the broadcast control module can schedule the load module to preload a second multimedia file, which may be the next multimedia file adjacent to the first multimedia file being played.
[0114] The trigger timing for preloading the second multimedia file may include multiple timings. In a preferred embodiment, the load module is scheduled to preload the second multimedia file before playing the first multimedia file. In another alternative embodiment, the load module is scheduled to preload the second multimedia file when playing the first multimedia file.
[0115] In a preferred embodiment, when the target playback multimedia file belongs to the second multimedia file, when a switching request to switch from the first multimedia file to the target playback multimedia file is received, the target playback multimedia file can be directly played after the loading of the target playback multimedia file is completed, thereby avoiding problems such as waiting and delay caused by the target playback multimedia file loading too slowly and improving the display effect.
[0116] When receiving a switching request to switch from a first multimedia file to a target playback multimedia file, if the loading of the target playback multimedia file is not completed, the playback of the first multimedia file can be controlled to be paused, and after the loading of the target playback multimedia file is completed, the playback engine module can be scheduled again to play the target playback multimedia file loaded in the first renderer.
[0117] In order to avoid wasting resources due to excessive preloading, an embodiment of the present disclosure can also determine whether the target playback multimedia file needs to be preloaded based on preload determination information corresponding to the second multimedia file.
[0118] In a preferred embodiment, it is determined whether the preload condition of the second multimedia file is currently satisfied based on the preload determination information corresponding to the second multimedia file, and if it is determined that the preload condition of the second multimedia file is currently satisfied, the load module is scheduled to preload the second multimedia file.
[0119] The preload determination information includes at least one of current network status information, current device performance information, file information of the second multimedia file, and playback progress information of the first multimedia file.
[0120] The current network status information may include whether the current network uses WIFI, the speed information of the current network, delay information, etc. Specifically, the worse the current network status is, such as the slow speed of the current network, the greater the need for preloading.
[0121] The current device performance information may include CPU information, GPU information, memory information, etc. Specifically, the lower the current device performance, such as a slower CPU speed, the greater the need for preloading.
[0122] The file information of the second multimedia file may include resolution information, bit rate information, etc. Specifically, the more complex the second multimedia file is, such as the higher the resolution of the target playback multimedia file, the greater the need for preloading.
[0123] The playback progress information of the first multimedia file may be a ratio of the current playback time to the total playback time of the first multimedia file. Specifically, the closer the playback progress of the first multimedia file is to the end of playback, the greater the need for preloading.
[0124] In an embodiment of the present disclosure, a comprehensive determination of whether the preloading conditions of the second multimedia file are currently met can be periodically triggered based on current network status information, current device performance information, file information of the second multimedia file, and playback progress information of the first multimedia file, and if it is determined that the preloading conditions of the second multimedia file are currently met, the second multimedia file begins to be preloaded.
[0125] In another embodiment of the present disclosure, the current network status information, current device performance information, file information of the second multimedia file, and playback progress information of the first multimedia file are input into the preload model, and after being processed by the preload model, a preload judgment result is output to reflect whether the preload condition of the second multimedia file is currently met.
[0126] The preload model is a model obtained by training based on a large number of historical samples, but the embodiment of the present disclosure does not describe the model training process in detail.
[0127] In addition, in the embodiment of the present disclosure, it can also be determined whether the preload condition of the second multimedia file is currently satisfied based on at least one of the current network status information, the current device performance information, the file information of the second multimedia file, and the playback progress information of the first multimedia file. Specifically, the above description can be referred to, and therefore, detailed description will not be provided here.
[0128] In an embodiment of the present disclosure, if it is determined that the preload condition for the second multimedia file is currently met, the load module is scheduled to preload the second multimedia file, thereby avoiding wasting resources due to excessive preloading.
[0129] Based on the above embodiment, to further understand the multimedia file playback control method according to the present disclosure, the embodiment of the present disclosure further provides a multimedia file playback control method applied to a multimedia file playback control system. Referring to Figure 7, Figure 7 is a structural schematic diagram of a multimedia file playback control system according to an embodiment of the present disclosure. The multimedia file playback control system 700 includes a broadcast control module, a playback engine module, a load module, and at least one rendering window.
[0130] Specifically, the broadcast control module schedules the load module and instructs the load module to load any multimedia file, and further schedules the playback engine module and controls the playback engine module to play the multimedia file loaded by the load module with any renderer.
[0131] Take the example of a multimedia file playback control system 700 including three renderers. As shown in Figure 7, the broadcast control module schedules the playback engine module to play the first multimedia file with the first renderer, schedules the load module to load and acquire the target playback multimedia file and the fourth multimedia file, and schedules the playback engine module to render the first frames of the loaded target playback multimedia file and the fourth multimedia file with the second renderer and the third renderer, respectively.
[0132] If the slide switching type switching request is triggered by a left slide operation, upon receiving a left slide operation on the first multimedia file played in the first rendering window, the broadcast control module updates the second renderer from a standby state to a display active state, i.e., displays a display window corresponding to the second renderer on the device screen, and schedules the playback engine module to play the target playback multimedia file loaded in the second renderer based on the first frame rendered by the second renderer.
[0133] In addition, to avoid problems such as the playback screen corresponding to the first multimedia file becoming black when switching from the target playback multimedia file to the first multimedia file, the playback engine module can be scheduled to reuse the first renderer, update the status of the first renderer to a display standby state, and render the first frame of the first multimedia file using the first renderer.
[0134] In addition, to avoid a loss of system performance due to the creation of renderers, the broadcast control module can be used to relocate the third renderer to the right of the second renderer and schedule the playback engine module to render the first frame of the fifth multimedia file using the third renderer. In this way, when the target multimedia file is played using the second renderer, both the first renderer and the third renderer are in a standby state. Therefore, upon receiving a switching request triggered by a left slide operation on the target multimedia file, the third renderer is updated from a standby state to an active state, and the playback engine module schedules the third renderer to play the fifth multimedia file based on the first frame rendered by the third renderer, thereby realizing the reuse of renderers and reducing a loss of system performance due to the creation of renderers.
[0135] According to the state of the multimedia file playback control system 700 of Fig. 7, the broadcast control module can preload subsequent multimedia files based on the preload determination information corresponding to the first multimedia file. If the switching request type is an automatic continuous playback switching type or a controlled switching type, the broadcast control module can schedule the playback engine module to control the playback of the preloaded multimedia files in the first rendering window. That is, continuous playback of multimedia files can be achieved without switching the rendering window.
[0136] Based on the above method embodiment, the present disclosure further provides a multimedia file playback control device. Referring to Figure 8, Figure 8 is a structural schematic diagram of a multimedia file playback control device according to an embodiment of the present disclosure. The device includes: a first determination module 801 for determining a type of a switching request when receiving a switching request from a first multimedia file to a target playback multimedia file, for characterizing a manner of triggering the switching request; a second determination module 802 for determining a target renderer, including a renderer to be used when switching from the first multimedia file to the target playback multimedia file, based on the type of the switching request, wherein different types of the switching request correspond to different numbers of the corresponding target renderers; a first rendering module 803 for rendering the target playback multimedia file by the target renderer.
[0137] In a preferred embodiment, the first multimedia file is rendered with a first renderer, and the second determination module specifically: When it is determined that the type of the switching request belongs to a first switching type including an automatic continuous playback switching type and a control switching type, the first renderer is determined as a target renderer; In response, the first rendering module specifically: The playback engine module is used to schedule the first renderer to render the target playback multimedia file.
[0138] In a preferred embodiment, the first multimedia file is rendered with a first renderer, and the second determination module specifically: when it is determined that the type of the switching request belongs to a second switching type including a slide switching type, determining both the first renderer and the second renderer, which is rendering the first frame of the target playback multimedia file, as target renderers; In response, the first rendering module specifically: The second renderer is used to schedule a playback engine module to render the target playback multimedia file.
[0139] In a preferred embodiment, the device comprises: a third determination module for determining whether a condition for preloading the second multimedia file is currently met based on preload determination information, the preload determination information including at least one of current network status information, current device performance information, file information of the second multimedia file, and playback progress information of the first multimedia file, the second multimedia file being the next multimedia file adjacent to the first multimedia file; and a fourth determination module for scheduling a load module to preload the second multimedia file when it is determined that a preload condition for the second multimedia file is currently satisfied.
[0140] In a preferred embodiment, the device comprises: Further comprising: a second rendering module for scheduling the playback engine module to render a first frame of the target playback multimedia file having a preset adjacent playback order relationship with the first multimedia file, with the second renderer in a display standby state for identifying that the corresponding renderer is not displayed on a device screen; In response, the first rendering module specifically: It is used to update the second renderer from the display standby state to a display active state to identify that the corresponding renderer is displayed on the device screen, and to schedule the playback engine module to render the target playback multimedia file on the second renderer based on the first frame rendered on the second renderer.
[0141] In a preferred embodiment, the device comprises: The apparatus further includes an update module for updating the display state of the first renderer to a display standby state and scheduling the playback engine module to render the first frame of a third multimedia file that has an adjacent playback order relationship with the target playback multimedia file in the first renderer.
[0142] In a preferred embodiment, the device comprises: a third rendering module for scheduling the playback engine module to render a first frame of a fourth multimedia file having the preset adjacent playback order relationship with the first multimedia file in the third renderer in the display standby state; Accordingly, the device The playback engine module further includes a fourth rendering module for scheduling the playback engine module to render a first frame of a fifth multimedia file that has an adjacent playback order relationship with the target playback multimedia file in the third renderer.
[0143] In a preferred embodiment, the first rendering module specifically: The display window corresponding to the second renderer is used to control the transition to the device screen in a first predetermined direction; Accordingly, the update module specifically: The display window corresponding to the first renderer is controlled to transition from the device screen in a second predetermined direction.
[0144] In an embodiment of the present disclosure, a multimedia file playback control device receives a switch request to switch from a first multimedia file to a target multimedia file for playback, first determines a type of the switch request to characterize a manner of triggering the switch request, then determines a target renderer based on the type of the switch request, and renders the target multimedia file for playback using the target renderer. In this way, in an embodiment of the present disclosure, multimedia file switching can be achieved using different numbers of renderers in response to different types of switch requests, thereby realizing a multimedia file playback control function.
[0145] In addition to the above method and apparatus, an embodiment of the present disclosure further provides a computer-readable storage medium having instructions stored thereon, which, when executed by a terminal device, causes the terminal device to implement the method for controlling playback of a multimedia file described in an embodiment of the present disclosure.
[0146] An embodiment of the present disclosure further provides a computer program product including a computer program / instruction, which, when executed by a processor, implements the method for controlling playback of a multimedia file described in the embodiment of the present disclosure.
[0147] In addition, the embodiment of the present disclosure further provides a multimedia file playback control device. As shown in Figure 9, the multimedia file playback control device includes: The device may include a processor 901, a memory 902, an input device 903, and an output device 904. The number of processors 901 in the multimedia file playback control device may be one or more. One processor is illustrated in Figure 9. In some embodiments of the present disclosure, the processor 901, the memory 902, the input device 903, and the output device 904 may be connected by a bus or in other ways. In Figure 9, they are connected via a bus.
[0148] The memory 902 can be used to store software programs and modules. The processor 901 executes the software programs and modules stored in the memory 902 to perform various functional applications and data processing of the multimedia file playback control device. The memory 902 can mainly include a program storage area and a data storage area. The program storage area can store an operating system, applications required for at least one function, etc. The memory 902 can also include high-speed random access memory or non-volatile memory such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. The input device 903 can be used to receive input digital or character information and generate signal inputs related to user settings and function control of the multimedia file playback control device.
[0149] Specifically, in this embodiment, in order to realize various functions of the above-mentioned multimedia file playback control device, the processor 901 loads executable files corresponding to the processes of one or more applications into the memory 902 based on the following instructions, and executes the applications stored in the memory 902 by the processor 901.
[0150] An embodiment of the present disclosure provides a method for controlling the playback of multimedia files. Upon receiving a switch request for switching from a first multimedia file to a target multimedia file for playback, the method first determines a type of the switch request to characterize a manner of triggering the switch request. Next, the method determines a target renderer based on the type of the switch request, and renders the target multimedia file for playback using the target renderer. In this way, the embodiment of the present disclosure can realize the switching of multimedia files using different numbers of renderers according to different types of switch requests, thereby realizing the function of controlling the playback of multimedia files.
[0151] It should be noted that, in this specification, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another and do not necessarily require or imply the existence of any actual relationship or order between those entities or operations. Furthermore, the terms "comprise," "include," "includes," or any other variant thereof are intended to cover a non-exclusive "comprise," whereby a process, method, article, or device that includes a set of elements not only includes those elements, but also other elements not expressly listed, or further elements inherent in such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprises ..." does not exclude the presence of other identical elements in the process, method, article, or device that includes said element.
[0152] The foregoing are merely specific embodiments of the present disclosure that will enable those skilled in the art to understand or implement the present disclosure. Various modifications of these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the embodiments set forth herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. 1. A method for controlling the playback of a multimedia file, the method comprising: when receiving a switch request to switch from a first multimedia file to a target playback multimedia file, determining a type of the switch request to characterize a manner of triggering the switch request; determining target renderers, including a renderer to be used when switching from the first multimedia file to the target playback multimedia file, based on the type of the switching request, wherein different types of the switching requests correspond to different numbers of the corresponding target renderers; rendering, by the target renderer, the target playback multimedia file; method.
2. The first multimedia file is rendered with a first renderer, and determining a target renderer based on the type of the switch request comprises: determining the first renderer as a target renderer when it is determined that the type of the switching request belongs to a first switching type including an automatic continuous playback switching type and a control switching type; Rendering the target playback multimedia file by the target renderer includes: scheduling a playback engine module to render the target playback multimedia file with the first renderer; The method of claim 1.
3. The first multimedia file is rendered with a first renderer, and determining a target renderer based on the type of the switch request comprises: determining, when it is determined that the type of the switching request belongs to a second switching type including a slide switching type, both the first renderer and a second renderer to which a first frame of the target playback multimedia file is being rendered as target renderers; Rendering the target playback multimedia file by the target renderer includes: scheduling a playback engine module to render the target playback multimedia file with the second renderer; The method of claim 1.
4. prior to rendering the target playback multimedia file by the target renderer; determining whether a preload condition for the second multimedia file is currently satisfied based on preload determination information corresponding to the second multimedia file, which is the next multimedia file adjacent to the first multimedia file, including at least one of current network status information, current device performance information, file information of the second multimedia file, and playback progress information of the first multimedia file; and scheduling a load module to preload the second multimedia file if it is determined that a preload condition for the second multimedia file is currently satisfied. The method according to any one of claims 1 to 3.
5. before scheduling a playback engine module to render the target playback multimedia file with the second renderer; The method further includes scheduling the playback engine module to render a first frame of the target playback multimedia file that has a preset adjacent playback order relationship with the first multimedia file, using the second renderer in a display standby state to identify that the corresponding renderer is not displayed on a device screen; scheduling a playback engine module to render the target playback multimedia file with the second renderer, updating the second renderer from the display standby state to a display active state to identify the corresponding renderer as being displayed on a device screen, and scheduling the playback engine module to render the target playback multimedia file with the second renderer based on a first frame rendered with the second renderer. The method of claim 3.
6. after scheduling a playback engine module to render the target playback multimedia file with the second renderer; updating a display state of the first renderer to a display standby state, and scheduling the playback engine module to render a first frame of a third multimedia file, which has an adjacent playback order relationship with the target playback multimedia file, on the first renderer; The method of claim 5.
7. prior to rendering the target playback multimedia file by the target renderer; scheduling the playback engine module to render a first frame of a fourth multimedia file having the preset adjacent playback order relationship with the first multimedia file using a third renderer in the display standby state; before scheduling a playback engine module to render the target playback multimedia file with the second renderer; scheduling the playback engine module to render a first frame of a fifth multimedia file that has an adjacent playback order relationship with the target playback multimedia file in the third renderer; The method according to claim 5 or 6.
8. The step of updating the second renderer from the display standby state to the display active state includes: controlling a display window corresponding to the second renderer to transition to a device screen in a first predetermined direction; The step of updating the display state of the first renderer to a display standby state includes: controlling a display window corresponding to the first renderer to transition from the device screen in a second predetermined direction; The method of claim 6.
9. 1. A device for controlling the playback of multimedia files, the device comprising: a first determination module for determining a type of a switching request when receiving a switching request from a first multimedia file to a target playback multimedia file, the type of the switching request being used to characterize a manner of triggering the switching request; a second determination module for determining target renderers, including a renderer to be used when switching from the first multimedia file to the target playback multimedia file, based on the type of the switching request, wherein different types of the switching request correspond to different numbers of the corresponding target renderers; a first rendering module for rendering the target playback multimedia file by the target renderer; Device.
10. Stored on the terminal device are instructions that, when executed on the terminal device, cause the terminal device to implement the method according to any one of claims 1 to 3. A computer-readable storage medium.
11. A method according to any one of claims 1 to 3, comprising: a memory; a processor; and a computer program stored in the memory and executable by the processor, the computer program implementing the method according to any one of claims 1 to 3 when executed by the processor. Device for controlling the playback of multimedia files.
12. A method which, when executed by a processor, implements the method of any one of claims 1 to 3. Computer program.
Citation Information
Patent Citations
Media component switching method and device, storage medium and electronic equipment
CN113377455A
Page switching method and device for single-page application, storage medium and electronic equipment
CN114741149A
Information storage medium, information recorder and information reproducing device
JP2006294152A
System and method for switching of media presentation
US20040268262A1
Render, controller and managing methods thereof
US20130318206A1