Display device and method of determining events of a recorded file
By setting an appropriate number of preset events in the display device and splitting and merging the event queue of the recorded file, the user experience problem caused by an inappropriate number of events was solved, and the function of quickly locating content of interest was realized.
Patent Information
- Application Number
- CN202211160074.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-22
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2042-09-22
AI Technical Summary
When existing display devices record too many or too few events in a file, users find it difficult to quickly locate the points of interest, resulting in a degraded user experience.
By setting an appropriate preset number of events, the event queue of the recorded file is processed, including splitting and merging operations, to generate a target event queue with a number close to or equal to the preset number, so that users can quickly find the location of content of interest.
It improves users' ability to quickly locate content of interest on display devices, enhancing the user experience.
Smart Images

Figure CN117793445B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of display devices, and more particularly to a display device and a method for determining events related to recording files. Background Technology
[0002] With the rapid development of display devices, the functions they can provide to users are becoming increasingly diverse. Currently, display devices include televisions, set-top boxes, and other products with display screens. Taking televisions as an example, televisions are expanding their applications beyond simply watching television programs in the home; they can also be used for gaming, displaying electronic photo albums, and showcasing information.
[0003] In the field of display device technology, PVR (Personal Video Recorder) technology has always been a major area of development. PVR technology can save recorded files of programs played on a display device and also play back these recorded files. When playing back recorded files, a location point can be displayed for the user to select. After selecting a location point, the recorded file will start playing from the position indicated by that location point. Currently, location points are determined by events provided by the operator, with each event representing a segment. However, there are often too many or too few events provided by the operator, which makes it difficult for users to quickly find the location point corresponding to the content of interest, thus reducing the user experience. Summary of the Invention
[0004] This application provides a method for determining events in a display device and a recorded file. In this method, an appropriate preset number of events is set, and the events in the first event queue corresponding to the recorded file are processed so that the total number of events in the target event queue is close to or equal to the preset number of events. The location point is determined based on the events in the target event queue, which makes it easier for users to quickly find the location point corresponding to the content of interest and improves the user experience.
[0005] In a first aspect, some embodiments of this application provide a display device, including:
[0006] A monitor is used to display the user interface.
[0007] User interface, used to receive input signals;
[0008] The controllers, which are connected to the display and the user interface respectively, are configured as follows:
[0009] Obtain a first event queue corresponding to the recorded file. The first event queue includes at least one event. The event is used to determine a positioning point. The positioning point is used to locate the starting playback position of the recorded file.
[0010] Determine a first total number of events in the first event queue; and determine a first number of events based on a preset number of events, wherein the first number of events is less than or equal to the preset number of events;
[0011] If the first total number is less than the first event number, the events in the first event queue are split to obtain a first target event queue, so that the first target total number in the first target event queue is greater than the first total number and less than or equal to the preset event number.
[0012] In some embodiments, the controller's step of splitting events in the first event queue to obtain a first target event queue is further configured to:
[0013] From the first event queue, events with a playback duration greater than a preset playback duration are selected as special events; wherein, the preset playback duration is determined based on the first playback duration, and the first playback duration is determined based on the playback duration of the recorded file and the preset number of events;
[0014] The special event is divided according to the first playback duration to obtain an event set, wherein the event set includes at least two virtual events arranged in order of playback time;
[0015] Using virtual events from the event set, replace special events in the first event queue to generate a second event queue;
[0016] If the second total number of events in the second event queue is greater than the preset number of events, then the virtual events in the second event queue are obtained and sorted according to the playback duration to obtain the sorted virtual events;
[0017] From the sorted virtual events, virtual events within a preset order range are obtained, wherein the number of virtual events within the preset order range is equal to the second total number minus the preset number of events, and the playback duration of virtual events within the preset order range is less than the playback duration of virtual events outside the preset order range.
[0018] The virtual events within the preset order range are merged with the virtual event preceding the virtual event within the preset order range in the second event queue to update the second event queue; the updated second event queue is stored as the first target event queue.
[0019] In some embodiments, the controller is further configured to:
[0020] If the second total number of events in the second event queue is less than or equal to the preset number of events, then the second event queue is directly stored as the first target event queue.
[0021] In some embodiments, the controller's step of splitting the special event according to a first playback duration to obtain an event set is further configured to:
[0022] Divide the playback duration of the special event by the first playback duration to obtain the duration multiplier;
[0023] If the duration multiple is an integer, then the event set includes a first virtual event, the number of the first virtual events is equal to the duration multiple, and the playback duration of the first virtual event is the first playback duration;
[0024] If the duration multiple is not an integer, the event set includes a second virtual event and a third virtual event. The number of the second virtual events is equal to the integer value of the duration multiple, and the playback duration of the second virtual event is equal to the first playback duration. The number of the third virtual events is one, and the playback duration of the third virtual event is less than the first playback duration.
[0025] In some embodiments, the controller is further configured to:
[0026] The number of second events is determined based on the preset number of events, wherein the number of second events is greater than or equal to the preset number of events;
[0027] If the first total number is greater than the second number of events, the events in the first event queue are merged to obtain a second target event queue, so that the total number of second targets in the second target event queue is less than or equal to the preset number of events.
[0028] In some embodiments, the controller's step of merging events in the first event queue to obtain a second target event queue is further configured to:
[0029] The events in the first event queue are retrieved and sorted according to the playback duration to obtain the sorted events. The number of the second events is determined according to the preset number of events.
[0030] From the sorted events, select the event with the shortest playback duration as the specific event;
[0031] Based on the position of the specific event in the first event queue, determine the merged events and the total number of merges, where the total number of merges is the number of times the events are merged;
[0032] Based on the merged event, update the first event queue, and repeatedly execute the steps of determining the merged event and the total number of merges based on the position of the specific event in the first event queue, until the total number of merges is greater than or equal to the first total number minus the preset number of events; store the updated first event queue as the second target event queue.
[0033] In some embodiments, the controller, which performs the step of determining the merged events and the total number of merges based on the position of the specific event in the first event queue, is further configured to:
[0034] If the specific event is neither the first nor the last event, then the specific event is merged with the events in the first event queue that precede the specific event to obtain a first merged event and a first total number of merges; and the specific event is merged with the events in the first event queue that follow the specific event to obtain a second merged event and a second total number of merges.
[0035] From the first merge event and the second merge event, the target merge event with the shortest playback duration is selected as the merge event, and the total number of merges is the number of merges corresponding to the target merge event; the target merge event is either the first merge event or the second merge event.
[0036] If the specific event is at the very beginning, then the specific event is merged with the event in the first event queue that is after the specific event to obtain the merged event and the total number of merges;
[0037] If the output position is the last position, then the specific event is merged with the events in the first event queue that precede the specific event to obtain the merged events and the total number of merges.
[0038] In some embodiments, the controller is further configured to:
[0039] If the first total number is greater than or equal to the first number of events, or less than or equal to the second number of events, the first event queue is stored.
[0040] In some embodiments, the controller is further configured to:
[0041] When an instruction to play back a recorded file is received, the recorded file is played back. Based on the events in the target event queue corresponding to the recorded file, a positioning point is determined, wherein the target event queue includes a first target event queue and a second target event queue. The positioning point is then displayed at the position corresponding to the playback progress bar of the recorded file.
[0042] Secondly, some embodiments of this application provide a method for determining events related to recording files, including:
[0043] Obtain a first event queue corresponding to the recorded file. The first event queue includes at least one event. The event is used to determine a positioning point. The positioning point is used to locate the starting playback position of the recorded file.
[0044] Determine a first total number of events in the first event queue; and determine a first number of events based on a preset number of events, wherein the first number of events is less than or equal to the preset number of events;
[0045] If the first total number is less than the first event number, the events in the first event queue are split to obtain a first target event queue, so that the first target total number in the first target event queue is greater than the first total number and less than or equal to the preset event number.
[0046] The above embodiments provide a method for determining events in a display device and a recorded file. This method sets an appropriate preset number of events, processes events in a first event queue corresponding to the recorded file, and ensures that the total number of events in a target event queue is close to or equal to the preset number of events. A location point is determined based on the events in the target event queue, allowing users to quickly find the location point corresponding to content of interest and improving the user experience. The method includes: obtaining a first event queue corresponding to the recorded file, the first event queue including at least one event, the event used to determine a location point, the location point used to locate the starting playback position of the recorded file; determining a first total number of events in the first event queue; and determining a first event number based on the preset number of events, wherein the first event number is less than or equal to the preset number of events; if the first total number is less than the first event number, then splitting the events in the first event queue to obtain a first target event queue, such that the first target total number in the first target event queue is greater than the first total number and less than or equal to the preset number of events. Attached Figure Description
[0047] Figure 1 An operational scenario between a display device and a control device according to some embodiments is illustrated;
[0048] Figure 2 A hardware configuration block diagram of a control device 100 according to some embodiments is shown;
[0049] Figure 3 A hardware configuration block diagram of a display device 200 according to some embodiments is shown;
[0050] Figure 4 A software configuration diagram of a display device 200 according to some embodiments is shown;
[0051] Figure 5A flowchart of a method for determining events of a recorded file according to some embodiments is illustrated;
[0052] Figure 6 An exemplary schematic diagram of a user interface provided according to some embodiments is shown;
[0053] Figure 7 A schematic diagram of yet another user interface provided according to some embodiments is shown as an example;
[0054] Figure 8 A schematic diagram of yet another user interface provided according to some embodiments is shown as an example;
[0055] Figure 9 A schematic diagram of yet another user interface provided according to some embodiments is shown as an example;
[0056] Figure 10 An exemplary schematic diagram of yet another user interface provided according to some embodiments is shown. Detailed Implementation
[0057] To make the objectives and implementation methods of this application clearer, the exemplary implementation methods of this application will be clearly and completely described below with reference to the accompanying drawings of the exemplary embodiments of this application. Obviously, the exemplary embodiments described are only some embodiments of this application, and not all embodiments.
[0058] It should be noted that the brief descriptions of terms in this application are only for the convenience of understanding the embodiments described below, and are not intended to limit the embodiments of this application. Unless otherwise stated, these terms should be understood in their ordinary and common meaning.
[0059] The terms "first," "second," "third," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar or related objects or entities, and do not necessarily imply a specific order or sequence, unless otherwise specified. It should be understood that such terms are interchangeable where appropriate.
[0060] The terms “comprising” and “having”, and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device that includes a range of components is not necessarily limited to all of the components that are clearly listed, but may include other components that are not clearly listed or that are inherent to such product or device.
[0061] The display device provided in this application can have various implementation forms, such as a television, a smart television, a laser projection device, a monitor, an electronic bulletin board, an electronic table, etc. Figure 1 and Figure 2 This is one specific embodiment of the display device of this application.
[0062] Figure 1 This is a schematic diagram illustrating the operational scenario between the display device and the control unit according to the embodiment. Figure 1 As shown, the user can operate the display device 200 through the smart device 300 or the control device 100.
[0063] In some embodiments, the control device 100 may be a remote control. Communication between the remote control and the display device includes infrared protocol communication, Bluetooth protocol communication, and other short-range communication methods, controlling the display device 200 wirelessly or via wired means. Users can control the display device 200 by inputting user commands through buttons on the remote control, voice input, control panel input, etc.
[0064] In some embodiments, a smart device 300 (such as a mobile terminal, tablet computer, computer, laptop computer, etc.) may also be used to control the display device 200. For example, an application running on the smart device may be used to control the display device 200.
[0065] In some embodiments, the display device may receive instructions not through the aforementioned smart devices or control devices, but through touch or gestures.
[0066] In some embodiments, the display device 200 can also be controlled in ways other than the control device 100 and the smart device 300. For example, it can be controlled by directly receiving the user's voice commands through a module configured inside the display device 200 for acquiring voice commands, or it can be controlled by receiving the user's voice commands through a voice control device set outside the display device 200.
[0067] In some embodiments, the display device 200 also communicates with the server 400. The display device 200 may communicate via a local area network (LAN), wireless local area network (WLAN), and other networks. The server 400 may provide various content and interactive features to the display device 200. The server 400 may be a cluster or multiple clusters, and may include one or more types of servers.
[0068] Figure 2 An exemplary block diagram of the configuration of the control device 100 according to an exemplary embodiment is shown. Figure 2 As shown, the control device 100 includes a controller 110, a communication interface 130, a user input / output interface 140, a memory, and a power supply. The control device 100 can receive user input operation commands and convert the operation commands into commands that the display device 200 can recognize and respond to, thus acting as an intermediary for interaction between the user and the display device 200.
[0069] like Figure 3 The display device 200 includes at least one of the following: a tuner 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, and a user interface.
[0070] In some embodiments, the controller includes a processor, a video processor, an audio processor, a graphics processing unit (GPU), RAM, ROM, and a first interface to an nth interface for input / output.
[0071] The display 260 includes a display screen assembly for presenting images, a driving assembly for driving image display, a component for receiving image signals from the controller output, and a user control UI interface for displaying video content, image content, menu control interface, and user control UI interface.
[0072] The display 260 can be an LCD display, an OLED display, or a projection display, and can also be a projection device and a projection screen.
[0073] The communicator 220 is a component used to communicate with external devices or servers according to various communication protocol types. For example, the communicator may include at least one of the following: a Wi-Fi module, a Bluetooth module, a wired Ethernet module, other network communication protocol chips or near-field communication protocol chips, and an infrared receiver. The display device 200 can establish the transmission and reception of control signals and data signals with the external control device 100 or the server 400 through the communicator 220.
[0074] The user interface can be used to receive control signals from the control device 100 (such as an infrared remote control).
[0075] Detector 230 is used to collect signals from the external environment or to interact with the external environment. For example, detector 230 includes a light receiver, a sensor for collecting ambient light intensity; or, detector 230 includes an image acquisition device, such as a camera, which can be used to collect external environmental scenes, user attributes, or user interaction gestures; or, detector 230 includes a sound acquisition device, such as a microphone, for receiving external sounds.
[0076] The external device interface 240 may include, but is not limited to, one or more of the following: High Definition Multimedia Interface (HDMI), analog or high-definition component input interface (component), composite video input interface (CVBS), USB input interface (USB), RGB port, etc. It may also be a composite input / output interface formed by multiple interfaces mentioned above.
[0077] The tuner / demodulator 210 receives broadcast television signals via wired or wireless means, and demodulates audio and video signals, such as EPG data signals, from multiple wireless or wired broadcast television signals.
[0078] In some embodiments, the controller 250 and the tuner 210 may be located in different separate devices, that is, the tuner 210 may also be located in an external device of the main device where the controller 250 is located, such as an external set-top box.
[0079] The controller 250 controls the operation of the display device and responds to user operations through various software control programs stored in the memory. The controller 250 controls the overall operation of the display device 200. For example, in response to receiving a user command to select a UI object to display on the monitor 260, the controller 250 can execute operations related to the object selected by the user command.
[0080] In some embodiments, the controller includes at least one of a central processing unit (CPU), a video processor, an audio processor, a graphics processing unit (GPU), RAM (random access memory), ROM (read-only memory), a first to an nth interface for input / output, a communication bus, etc.
[0081] Users can input commands through a graphical user interface (GUI) displayed on the monitor 260, and the user input interface receives the user input commands through the GUI. Alternatively, users can input commands by entering specific sounds or gestures, and the user input interface receives the user input commands by recognizing the sounds or gestures through sensors.
[0082] A "user interface" is the medium through which an application or operating system interacts and exchanges information with the user. It converts information from its internal form to a form that the user can accept. A common form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed graphically. It can be an icon, window, control, or other interface element displayed on the screen of an electronic device. Controls can include visual interface elements such as icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets.
[0083] like Figure 4 As shown, the display device system is divided into three layers, from top to bottom: the application layer, the middleware layer, and the hardware layer.
[0084] The application layer mainly includes commonly used applications on TVs, as well as the application framework. The commonly used applications are mainly browser-based applications, such as HTML5 apps, and native apps.
[0085] An application framework is a complete program model that has all the basic functions required by standard application software, such as file access, data exchange, etc., as well as the user interface for these functions (toolbar, status bar, menu, dialog box).
[0086] Native apps can support online or offline access, push notifications, or access to local resources.
[0087] The middleware layer includes various television protocols, multimedia protocols, and system components. Middleware can use the basic services (functions) provided by system software to connect different parts of application systems or different applications on the network, achieving resource sharing and function sharing.
[0088] The hardware layer mainly includes the HAL interface, hardware, and drivers. The HAL interface is a unified interface for all TV chips, with the specific logic implemented by each chip. The drivers mainly include: audio drivers, display drivers, Bluetooth drivers, camera drivers, Wi-Fi drivers, USB drivers, HDMI drivers, sensor drivers (such as fingerprint sensors, temperature sensors, pressure sensors, etc.), and power drivers.
[0089] In the field of display device technology, PVR technology has always been a major area of development. Its key feature is the use of a disk as the storage medium, establishing a local buffer and program repository for saving and playing back programs. PVR technology can save recorded files of programs played on a display device. When playing back a recorded file, a selectable point can be displayed for the user to choose from. After selecting a point, the recorded file will play from the starting playback position indicated by that point.
[0090] The stream produced by the operator contains EPG (Electronic Program Guide) data, which is then distributed to display devices. Users can view recent programming from multiple channels on their display devices using the EPG data. The EPG data includes an EIT (Event Information Table), which records a set of events. Each event defines a segment, including start time and duration, describing the program stream information over a period of time.
[0091] Users can determine the starting playback position of a recorded file by selecting any location point determined by the event, allowing the recorded file to begin playback from the content of interest to the user. However, if the recorded file contains many events, the user will need to move the location point multiple times to select the starting playback position of the content of interest; if the recorded file contains few events, there are not many location points available for the user to choose from, and the user cannot accurately find the starting playback position of the content of interest in the recorded file.
[0092] It is evident that having too many or too few location points makes it less convenient for users to quickly find the location points corresponding to content of interest, thus reducing the user experience.
[0093] To address the aforementioned technical problems, this application provides a method for determining events in a recorded file. This method sets an appropriate preset number of events, processes the events in a first event queue corresponding to the recorded file, and ensures that the total number of events in the target event queue is close to or equal to the preset number of events. A location point is then determined based on the events in the target event queue. This facilitates users in quickly finding the location point corresponding to content of interest, improving the user experience.
[0094] Figure 5 A flowchart of a method for determining events in a recorded file according to some embodiments is illustrated. The method includes steps S100-S600.
[0095] S100. Obtain a first event queue corresponding to the recorded file. The first event queue includes at least one event. The event is used to determine a positioning point. The positioning point is used to locate the starting playback position of the recorded file.
[0096] In this application embodiment, the methods in this application embodiment are executed in some scenarios.
[0097] In some embodiments, when an instruction to save a recording file is received, the method described in this application is executed.
[0098] In some embodiments, the instruction to save the recorded file can be entered by the user via a control device.
[0099] For example, Figure 6 An exemplary schematic diagram of a user interface provided according to some embodiments is shown. Figure 6 The program playback screen is displayed. Figure 6 Based on this, users can use the control device to display recording controls on the overlay of the program playback screen. Figure 7 An exemplary schematic diagram of yet another user interface provided according to some embodiments is shown. Figure 7 The display shows a recording control. The user moves the focus to the recording control using the control device and presses the confirmation button on the control device, at which point the display device begins recording the program. In some embodiments, the recording ends when the program finishes playing, at which point a prompt message appears on the display asking the user whether to save the recorded file. The prompt message includes save and cancel controls. Figure 8 An exemplary schematic diagram of yet another user interface provided according to some embodiments is shown. Figure 8 A prompt message is displayed. When the user moves the focus to the save control and presses the confirmation button on the control device, the user enters an instruction to save the recording file. In some embodiments, the prompt message also displays a control to change the storage path of the recording file, allowing the user to select the location to save the recording file. When the user moves the focus to the cancel control and presses the confirmation button on the control device, the prompt message is canceled.
[0100] In some embodiments, the way the focus is identified is often varied. For example, the focus object's location can be identified by zooming in on the item, by setting the item's background color, or by changing the border lines, size, color, transparency, outline, and / or font of the focused item's text or image.
[0101] In some embodiments, the instruction to save the recorded file can be automatically entered by the display device after recording is complete.
[0102] For example, when the program finishes playing, the display device stops recording. After recording ends, it automatically inputs a command to save the recording file, without prompting the user again.
[0103] In some embodiments, when an instruction to play a recorded file is received, the method described in this application is executed.
[0104] For example, a user can locate the file control corresponding to a saved recording on the display device. The user can then move the focus to the file control using the control device and press the confirmation button to input instructions to play the recording. For example, Figure 9 An exemplary schematic diagram of yet another user interface provided according to some embodiments is shown. Figure 9 A file control is displayed.
[0105] In this application embodiment, in addition to the scenarios mentioned above, the methods in this application embodiment can also be executed in other suitable scenarios. This application does not limit the specific scenarios.
[0106] It should be noted that the program content in the recorded file is not necessarily the complete program content; it may also be a portion of the program. For example, if the complete program has a playback duration of 2 hours, the recorded file may only include the last 0.5 hours of content, that is, include only a portion of the program content.
[0107] In this embodiment of the application, the recorded file includes one or more events, and the events in the recorded file are arranged in the order of their playback time to form a first event queue. For example, the playback time of event A is from 8:00 to 8:10, the playback time of event B is from 8:10 to 8:20, and the playback time of event C is from 8:20 to 8:25. Events A, B, and C are arranged in the order of their playback time to form a first event list.
[0108] S200. Determine the first total number of events in the first event queue.
[0109] In this embodiment, it is first determined whether there are too many or too few events in the recording file. Based on the first total number, the subsequent processing method for events in the first event queue is determined.
[0110] S300. Determine the first event number and the second event number based on the preset event number, wherein the first event number is less than or equal to the preset event number, and the second event number is greater than or equal to the preset event number.
[0111] For example, the first number of events is a preset number of events that is a first preset multiple, where the first preset multiple is less than 1. For example, the first preset multiple can be 0.5 times.
[0112] For example, the second number of events is a preset number of events that is a second preset multiple, and the second preset multiple is greater than 1. For example, the second preset multiple can be 1.5 times.
[0113] In this embodiment, the display device has a preset number of events. In some embodiments, the user can set the preset number of events on the user interface of the display device through a control device.
[0114] For example, Figure 10 An exemplary schematic diagram of yet another user interface provided according to some embodiments is shown. Figure 10 The system displays a setting control for the preset number of events. Users can enter a number in the text box corresponding to the setting control; this number is the preset number of events. The preset number of events can be set to 5 or 6. Of course, users can also set the preset number of events to other values according to their own needs. In some embodiments, a "+" control can be set on one side of the text box to increase the preset number of events, and a "-" control can be set on the other side to decrease the preset number of events.
[0115] When the display device detects that the preset number of events has been changed, it re-executes the method of this application embodiment to obtain the target event queue according to the changed preset number of events, which can provide users with a better user experience.
[0116] In this embodiment of the application, the order in which steps S200 and S300 are executed is not limited. Step S200 can be executed first, or step S300 can be executed first.
[0117] S400, Detect the relationship between the first total quantity, the first event quantity, and the second event quantity.
[0118] In this embodiment of the application, it is determined whether there is a situation where there are too many or too few events in the first event queue based on the first total number, the first number of events, and the second number of events.
[0119] S500. If the first total number is less than the first event number, the events in the first event queue are split to obtain a first target event queue, so that the first target total number in the first target event queue is greater than the first total number and less than or equal to the preset event number.
[0120] In some embodiments, the step of splitting events in the first event queue to obtain a first target event queue includes:
[0121] From the first event queue, events whose playback duration is longer than the preset playback duration are selected as special events.
[0122] The preset playback duration is determined based on the first playback duration. The first playback duration is determined based on the playback duration of the recorded file and the preset number of events. In some embodiments, the playback duration of the recorded file is divided by the preset number of events to obtain the first playback duration. For example, the playback duration of the recorded file is 2 hours, and the preset number of events is 5. In this case, the first playback duration is 2 hours / 5 = 24 minutes.
[0123] In some embodiments, the preset playback duration is a first playback duration that is a second preset multiple, wherein the second preset multiple is greater than or equal to 1. For example, the second preset multiple can be 1.5 times. If the first playback duration is 24 minutes, the preset playback duration is 24 * 1.5 = 36 minutes.
[0124] In this embodiment, when the playback duration of an event exceeds the preset playback duration, it indicates that the playback duration of the event is too long, making it difficult for users to easily find the content of interest within the event. Therefore, this event is treated as a special event and processed separately.
[0125] The special event is divided according to the first playback duration to obtain an event set, and the event set includes at least two virtual events arranged in order of playback time.
[0126] In some embodiments, the step of splitting the special event according to the first playback duration to obtain an event set includes:
[0127] Divide the playback duration of the special event by the first playback duration to obtain the duration multiplier. In one example, the playback duration of the special event is 60 minutes, and the first playback duration is 24 minutes; in this case, the duration multiplier is 60 / 24 = 2.5. In another example, the playback duration of the special event is 48 minutes, and the first playback duration is 24 minutes; in this case, the duration multiplier is 48 / 24 = 2.
[0128] In some embodiments, if the duration multiple is an integer, the event set includes a first virtual event, the number of the first virtual events is equal to the duration multiple, and the playback duration of the first virtual event is a first playback duration.
[0129] For example, the playback duration of a special event is 48 minutes, and the first playback duration is 24 minutes, with a duration multiplier of 2. In this case, splitting the special event results in an event set that includes two first virtual events, each with a playback duration of 24 minutes.
[0130] For example, if a special event starts playing at 8:00 and ends playing at 8:48, the event set can be split into two parts: a first virtual event A that starts playing at 8:00 and ends playing at 8:24, and a second virtual event B that starts playing at 8:24 and ends playing at 8:48.
[0131] In some embodiments, if the duration multiple is not an integer, the event set includes a second virtual event and a third virtual event, the number of the second virtual events is equal to the integer value of the duration multiple, and the playback duration of the second virtual event is equal to the first playback duration; the number of the third virtual event is one, and the playback duration of the third virtual event is less than the first playback duration.
[0132] For example, the playback duration of a special event is 60 minutes, the first playback duration is 24 minutes, and the duration multiplier is 2.5. In this case, splitting the special event results in an event set including two second virtual events with a playback duration of 24 minutes and a third virtual event with a playback duration of 12 minutes.
[0133] For example, if a special event starts playing at 8:00 and ends playing at 9:00, the event set can be split into three parts: a second virtual event A that starts playing at 8:00 and ends playing at 8:24; a second virtual event B that starts playing at 8:24 and ends playing at 8:48; and a third virtual event that starts playing at 8:48 and ends playing at 9:00.
[0134] By using virtual events from the event set, special events in the first event queue are replaced to generate a second event queue.
[0135] In this embodiment, the events in the first event queue are arranged in order of playback time. Virtual events from the event set replace the special events in the first event queue. For example, the events in the first event queue include event A, event B, and event C. Event A starts playback at 7:50 and ends playback at 8:00; event B starts playback at 8:00 and ends playback at 8:48; event C starts playback from 8:48 to 9:00. After identification and judgment, event B is determined to be a special event. This special event is then split into an event set, which includes virtual event A and virtual event B. The virtual events from the event set replace event B in the first event queue, ultimately resulting in a second event queue. The second event queue includes event A, virtual event A, virtual event B, and event C arranged in order of playback time.
[0136] In this embodiment, all special events in the first event queue are split, and the special events in the first event queue are replaced with the event set obtained after splitting to obtain the second event queue. This may result in a situation where the total number of events in the second event queue exceeds the preset number of events, in which case the events in the second event queue need to be merged.
[0137] If the second total number of events in the second event queue is greater than the preset number of events, then the virtual events in the second event queue are obtained and sorted according to the playback duration to obtain the sorted virtual events.
[0138] For example, the virtual events in the second event queue include virtual event AC, which is derived from special event A, and virtual event DG, which is derived from special event B. The playback duration of virtual event AB is 24 minutes, virtual event C is 12 minutes, virtual event DF is 24 minutes, and virtual event G is 15 minutes. The virtual events in the second event queue are arranged in the order of virtual event AB, virtual event DF, virtual event G, and virtual event C.
[0139] From the sorted virtual events, virtual events within a preset order range are obtained, wherein the number of virtual events within the preset order range is equal to the second total number minus the preset number of events, and the playback duration of virtual events within the preset order range is less than the playback duration of virtual events outside the preset order range.
[0140] For example, the virtual events in the second event queue can be sorted by playback duration from shortest to longest, or from longest to shortest. If sorted from shortest to longest, when there are two virtual events within the preset order range, the first and second virtual events are considered as virtual events within the preset order range. If sorted from longest to shortest, when there are two virtual events within the preset order range, the last two virtual events are considered as virtual events within the preset order range.
[0141] The second event queue contains a total of 7 events, including event A, event B, virtual events AC, event C, and virtual event DG. The default number of events is 5, so the number of virtual events within the first order is 2. The virtual events in the second event queue are sorted by playback duration from longest to shortest, resulting in the order of virtual events AB, DF, G, and C. At this point, the virtual events within the default order are virtual events C and G, while the virtual events outside the default order are virtual events AB and DF.
[0142] The virtual events within the preset order range are merged with the virtual event preceding the virtual event within the preset order range in the second event queue to update the second event queue; the updated second event queue is stored as the first target event queue.
[0143] In this embodiment of the application, since the second total number of events in the second event queue is greater than the preset number of events, the virtual events within the preset order range are merged with the virtual event in the second event queue that precedes the virtual event within the preset order range to update the second event queue; the updated second event queue is stored as the first target event queue.
[0144] For example, the second event queue has a total of 10 events. The preset number of events is 8. The second event queue includes event A, event B, virtual events AC, event C, and virtual event DG. The number of virtual events within the preset order range is 2, including virtual event G and virtual event C. Virtual event C is merged with virtual event B, which is preceding virtual event C in the second event queue, resulting in virtual event B'. Virtual event G is merged with virtual event F, which is preceding virtual event G in the second event queue, resulting in virtual event F'. The second event queue is updated using virtual events B' and F'. The updated second event queue consists of event A, event B, virtual event A, virtual event B', event C, virtual event DE, and virtual event F'. The updated second event queue is stored as the first target event queue, and the number of events in the first target event queue is the preset number of events.
[0145] If the second total number of events in the second event queue is less than or equal to the preset number of events, then the second event queue is directly stored as the first target event queue.
[0146] In this embodiment of the application, when the first total number is less than the first number of events, that is, when the number of events in the recording file is small, in order to make it easier for users to find the content of interest in the recording file, it is necessary to split the special events in the recording file to obtain the first target event queue, so that the target total number of events in the target event queue is greater than the first number of events.
[0147] S600. If the first total number is greater than the second event number, the events in the first event queue are merged to obtain a second target event queue, so that the total number of second targets in the second target event queue is less than or equal to the preset event number.
[0148] In some embodiments, the controller performs the step of merging events in the first event queue to obtain a second target event queue, including:
[0149] The events in the first event queue are retrieved and sorted according to the playback duration to obtain the sorted events. The number of the second events is determined according to the preset number of events.
[0150] For example, the events in the first event queue include event A, event B, and event C. Event A starts playing at 7:50 and ends at 8:00; event B starts playing at 8:00 and ends at 8:48; and event C starts playing from 8:48 to 9:00. The playback duration of event A is 10 minutes, event B is 48 minutes, and event C is 12 minutes. After sorting, events A, C, and B are arranged in order of playback duration.
[0151] From the sorted events, select the event with the shortest playback duration as the specific event.
[0152] For example, the playback duration of event A is 10 minutes, the playback duration of event B is 48 minutes, and the playback duration of event C is 12 minutes. The event with the shortest playback duration is event A.
[0153] The merged events and the total number of merges are determined based on the position of the specific event in the first event queue.
[0154] In this embodiment, the merged events and the total number of merges are determined based on the different positions of specific events in the first event queue. For example, event A starts playing at 7:50 and ends at 8:00; event B starts playing at 8:00 and ends at 8:48. After merging events A and B, the merged event starts playing at 7:50 and ends at 8:48. The total number of merges is 1.
[0155] In some embodiments, the steps of determining the merged events and the total number of merges based on the position of the specific event in the first event queue include:
[0156] If the specific event is neither the first nor the last event, then the specific event is merged with the events in the first event queue that precede the specific event to obtain a first merged event and a first total number of merges; and the specific event is merged with the events in the first event queue that follow the specific event to obtain a second merged event and a second total number of merges.
[0157] In this embodiment, after sorting by playback duration from shortest to longest, events A, C, and B are arranged in sequence. At this time, event A is at the very beginning, event C is at the very end, and event B is neither at the very beginning nor the very end.
[0158] In some embodiments, the step of merging a specific event with an event that precedes the specific event in a first event queue to obtain a first merged event and a first total number of merges includes:
[0159] The specific event is merged with an event that precedes the specific event in the first event queue to obtain the merged event; it is then determined whether the playback duration of the merged event is greater than or equal to the playback duration of the first event.
[0160] If the playback duration of the merged event is greater than or equal to the playback duration of the first event, then the merged event is determined to be the first merged event.
[0161] If the playback duration of the merged event is less than the first playback duration, then continue to merge the merged event with the previous event, update the merged event, and repeat the process of checking whether the playback duration of the merged event is greater than or equal to the first playback duration until the merged event is merged with the first event in the first event queue, and the merged event is determined to be the first merged event; count the total number of first merges corresponding to the first merged event.
[0162] In one example, the first event queue includes event AM, with playback durations of 8, 8, 2, 2, 2, 4, 2, 2, 2, 2, 64, and 2 minutes respectively. The first playback duration is 20 minutes. Since the events in the first event queue are arranged in ascending order of playback duration, and the original playback order of the events in the first event queue is maintained to the greatest extent, event C is identified as the specific event. Event C is merged with event B in the first event queue to obtain a merged event with a playback duration of 2 + 8 = 10 minutes. It is then determined whether the playback duration of the merged event is greater than or equal to 20 minutes. Since the playback duration of the merged event is less than 20 minutes, the merged event is further merged with the previous event in the first event queue to update the merged event. That is, the merged event is further merged with event A, and the playback duration of the merged event is now 8 + 10 = 18 minutes. Since this merge is with the first event in the first event queue, i.e., event A, the merged event obtained in this instance is directly identified as the first merged event. The above process includes merging events C and B, and then merging with event A again, so the total number of the first merge is 2.
[0163] In some embodiments, the step of merging the specific event with events in the first event queue that are after the specific event to obtain a second merged event and a second total number of merges is roughly the same as the step of merging the specific event with events in the first event queue that are before the specific event to obtain a first merged event and a first total number of merges, except that all forward merges are replaced with backward merges.
[0164] Specifically, the step of merging the specific event with the events that follow the specific event in the first event queue to obtain the second merged event and the second total number of merges includes:
[0165] A specific event is merged with an event that follows the specific event in the first event queue to obtain a merged event. The playback duration of the merged event is then determined to be greater than or equal to the playback duration of the first event. If the playback duration of the merged event is greater than or equal to the playback duration of the first event, the merged event is identified as the second merged event.
[0166] If the playback duration of the merged event is less than the first playback duration, continue merging the merged event with the next event, update the merged event, and repeat the process of checking whether the playback duration of the merged event is greater than or equal to the first playback duration, until the merged event is merged with the last event in the first event queue, and the merged event is determined to be the second merged event. Count the total number of second merges corresponding to the second merged event.
[0167] For example, the first event queue includes event AM, with playback durations of 8, 8, 2, 2, 2, 4, 2, 2, 2, 2, 64, and 2 minutes respectively. The first playback duration is 20 minutes. Since the events in the first event queue are arranged in ascending order of playback duration, and the original playback order of the events in the first event queue is maintained to the greatest extent, event C is determined to be a specific event. Event C is merged with event D in the first event queue to obtain a merged event with a playback duration of 2 + 2 = 4 minutes. It is then determined whether the playback duration of the merged event is greater than or equal to 20 minutes. Since the playback duration of the merged event is less than 20 minutes, the merged event is updated using the next event in the first event queue, i.e., it is merged with event E again. At this time, the playback duration of the merged event is 4 + 2 = 6 minutes. Since the playback duration of the merged event is less than 20 minutes, and it is not merged with the last event in the first event queue, it continues to be merged with event F, updating the merged event, until it is merged with event L. At this point, the playback duration is 82 minutes, which is greater than 20 minutes. Merging then stops, and the merged event obtained through merging with event CL is determined as the second merged event. The above process includes the merging of event CL, so the total number of second merges is 8.
[0168] In this embodiment of the application, the target merged event with the shortest playback duration is selected from the first merged event and the second merged event as the merged event, and the total number of merges is the number of merges corresponding to the target merged event; the target merged event is the first merged event or the second merged event.
[0169] For example, when the first merge event is 18 minutes and the second merge event is 82 minutes, the first merge event is determined as the merge event, and the first total number of merges corresponding to the first merge event is taken as the total number of merges.
[0170] In some embodiments, if the specific event is at the very beginning, it is merged with the events in the first event queue that follow the specific event to obtain merged events and the total number of merges.
[0171] In some embodiments, the process of merging the specific event with the event following the specific event in the first event queue to obtain a merged event is the same as the process disclosed above of merging the specific event with the event following the specific event in the first event queue to obtain a second merged event and a second total number of merges, and will not be repeated here.
[0172] In some embodiments, if the output position is the last position, the specific event is merged with the events in the first event queue that precede the specific event to obtain the merged events and the total number of merges.
[0173] In some embodiments, if the output position is the last position, the specific event is merged with the events in the first event queue that precede the specific event to obtain the merged event and the total number of merges. This is the same as the process disclosed above of merging the specific event with the events in the first event queue that precede the specific event to obtain the first merged event and the first total number of merges, and will not be repeated here.
[0174] In this embodiment of the application, the first event queue is updated according to the merged event, and the event with the shortest playback duration in the updated first event queue is obtained as a specific event. The steps of determining the merged event and the total number of merges based on the position of the specific event in the first event queue are repeated until the total number of merges is greater than or equal to the first total number minus the preset number of events. The updated first event queue is stored as the second target event queue.
[0175] For example, the first event queue includes event AH, with a total of 8 events and a preset event count of 5. The first playback duration is 20 minutes. The playback durations of event AH are 15, 10, 8, 18, 25, 4, 10, and 10 minutes respectively. The event with the shortest playback duration in the first event queue is event F. Event F is neither the first nor the last event. Event F is merged with event E. The playback duration of the merged event is 29 minutes, which is greater than 20 minutes. At this point, merging stops, resulting in the first merged event. The total number of merges for the first time is 1. Event F is then merged with event G. The playback duration of the merged event is 14 minutes, which is less than 20 minutes. Merging continues with event G, resulting in the second merged event. The playback duration of this merged event is 24 minutes. Therefore, the total number of merges for the second time is 2. Since the playback duration of the second merged event is less than that of the first merged event, it is determined to be the second merged event, and the total number of merges is the second merge count. The first event queue is updated using the merged event. The updated first event queue includes event AE and the merged event obtained by merging event FG. Since the total number of merges is 2, which is less than 8-5=3, the shortest playback duration event C in the first event queue is retrieved. Therefore, event C is neither the first nor the last event, so it is merged with event B. The playback duration of the merged event is 18 minutes, which is less than 20 minutes, so it is merged with event A. The playback duration of the merged event is 33 minutes, which is greater than 20 minutes, so merging is stopped, resulting in the first merged event. Events C and D are merged. The playback duration of the merged event is 26 minutes. Since 26 minutes is greater than 20 minutes, merging is stopped, resulting in a second merged event. This second merged event is determined to be the merged event, and it is used to update the first event queue. The total number of merges for the second merge is the original total number of merges plus the number of merges during this process. At this point, the total number of merges is 2 + 1 = 3. Since the total number of merges equals the first total number minus the preset number of events (3 times), the first event queue after the last update is finally determined as the second target event queue. In this example, the final second target event queue includes events AB, the merged event obtained by merging events C and D, event E, and the merged event obtained by merging events FH.
[0176] S700. If the first total number is greater than or equal to the first event number, or less than or equal to the second event number, the first event queue is stored.
[0177] In this embodiment of the application, if there are neither too many nor too few events in the first event queue, the first event queue is directly stored.
[0178] In this embodiment of the application, when an instruction to play back a recorded file is received, the recorded file is played back, and a positioning point is determined based on the events in the target event queue, wherein the target event queue includes a first target event queue and a second target event queue; the positioning point is displayed at the position corresponding to the playback progress bar of the recorded file.
[0179] For example, see again Figure 9 , Figure 9 The screen displays file controls corresponding to multiple recorded files. Users can move the focus to the file control using the control device, press the confirmation button on the control device, and enter instructions to play back the recorded file.
[0180] In some embodiments, when an instruction to play back a recorded file is received, the display shows the screen corresponding to the recorded file, and a progress bar is displayed on the screen. In other embodiments, when an instruction to play back a recorded file is received, the display only shows the screen corresponding to the recorded file, and the user can use a control device to display a progress bar on the screen. The progress bar can display the current playback progress of the recorded file. Additionally, a positioning point can be marked on the progress bar, and an image representing an event can be displayed at the position corresponding to this positioning point; the image can be the starting screen of the event.
[0181] In some embodiments, users can switch the focus between positioning points using the left and right buttons on the control device. When a positioning point is selected, the recorded file is played from the starting playback position corresponding to that positioning point.
[0182] In this embodiment, events are distributed more reasonably throughout the playback file, improving the user's playback viewing experience.
[0183] In some embodiments, the methods of this application are executed at a middleware layer. The hardware layer includes an event memory and a recording file memory. The event memory stores a first target event queue and a second target event queue. The recording file memory stores recording files.
[0184] This application embodiment also provides a display device, characterized in that it includes: a display for displaying a user interface; a user interface for receiving input signals; and a controller connected to the display and the user interface respectively, configured to: acquire a first event queue corresponding to a recorded file, the first event queue including at least one event, the event being used to determine a positioning point, the positioning point being used to locate the starting playback position of the recorded file; determine a first total number of events in the first event queue; and determine a first event number based on a preset event number, wherein the first event number is less than or equal to the preset event number; if the first total number is less than the first event number, then split the events in the first event queue to obtain a first target event queue, such that the first target total number in the first target event queue is greater than the first total number and less than or equal to the preset event number.
[0185] The above embodiments provide a method for determining events in a display device and a recorded file. This method sets an appropriate preset number of events, processes events in a first event queue corresponding to the recorded file, and ensures that the total number of events in a target event queue is close to or equal to the preset number of events. A location point is determined based on the events in the target event queue, allowing users to quickly find the location point corresponding to content of interest and improving the user experience. The method includes: obtaining a first event queue corresponding to the recorded file, the first event queue including at least one event, the event used to determine a location point, the location point used to locate the starting playback position of the recorded file; determining a first total number of events in the first event queue; and determining a first event number based on the preset number of events, wherein the first event number is less than or equal to the preset number of events; if the first total number is less than the first event number, then splitting the events in the first event queue to obtain a first target event queue, such that the first target total number in the first target event queue is greater than the first total number and less than or equal to the preset number of events.
[0186] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
[0187] For ease of explanation, the above description has been provided in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or to limit the embodiments to the specific forms disclosed above. Various modifications and variations can be obtained based on the above teachings. The selection and description of the above embodiments are for the purpose of better explaining the principles and practical applications, thereby enabling those skilled in the art to better utilize the described embodiments and various different variations of embodiments suitable for specific use considerations.
Claims
1. A display device, characterized in that, include: A monitor is used to display the user interface. User interface, used to receive input signals; The controllers, which are connected to the display and the user interface respectively, are configured as follows: Obtain a first event queue corresponding to the recorded file. The first event queue includes at least one event. The event is used to determine a positioning point. The positioning point is used to locate the starting playback position of the recorded file. Determine the first total number of events in the first event queue; In addition, based on the preset number of events, the number of first events and the number of second events are determined, wherein the number of first events is less than or equal to the preset number of events, and the number of second events is greater than the preset number of events; The source of the event is Electronic Program Guide event data; The first playback duration is determined based on the playback duration of the recorded file and the number of preset events; If the first total number is less than the first event number, then special events with a playback duration greater than a preset playback duration are selected from the first event queue, the preset playback duration being determined based on the first playback duration; the special events are split according to the first playback duration to obtain an event set, the event set including at least two virtual events arranged in playback time order; the virtual events in the event set are used to replace the special events in the first event queue to generate a second event queue; if the second total number of events in the second event queue is greater than the preset event number, then virtual events in the second event queue are obtained, and the virtual events are sorted according to playback duration to obtain sorted virtual events; from the sorted virtual events, virtual events within a preset order range are obtained, wherein the number of virtual events within the preset order range is equal to the second total number minus the preset event number, and the playback duration of the virtual events within the preset order range is less than the playback duration of virtual events outside the preset order range; The virtual events within the preset order range are merged with the virtual event preceding the virtual event within the preset order range in the second event queue, thereby updating the second event queue; The updated second event queue is stored as the first target event queue; If the second total number of events in the second event queue is less than or equal to the preset number of events, then the second event queue will be stored as the first target event queue. If the first total number is greater than the second number of events, then the events in the first event queue are retrieved, and the events are sorted according to the playback duration to obtain the sorted events; From the sorted events, select the event with the shortest playback duration as the specific event; Based on the position of the specific event in the first event queue, determine the merged event and the total number of merges; based on the merged event, update the first event queue, and repeat the step of determining the merged event and the total number of merges based on the position of the specific event in the first event queue until the total number of merges is greater than or equal to the first total number minus the preset number of events; The updated first event queue is stored as the second target event queue.
2. The display device according to claim 1, characterized in that, The controller, which performs the step of splitting the special event according to the first playback duration to obtain an event set, is further configured as follows: Calculate the ratio of the playback duration of the special event to the first playback duration to obtain the duration multiple; If the duration multiple is an integer, then the event set includes a first virtual event, the number of the first virtual events is equal to the duration multiple, and the playback duration of the first virtual event is the first playback duration; If the duration multiple is not an integer, the event set includes a second virtual event and a third virtual event, the number of the second virtual events is equal to the integer value of the duration multiple, and the playback duration of the second virtual event is equal to the first playback duration; The number of the third virtual events is one, and the playback duration of the third virtual event is less than the playback duration of the first virtual event.
3. The display device according to claim 1, characterized in that, The controller, which performs the step of determining the merged events and the total number of merges based on the position of the specific event in the first event queue, is further configured to: If the position is neither the first nor the last, then the specific event is merged with the event in the first event queue that precedes the specific event to obtain the first merged event and the first total number of merges. And merge the specific event with the event that follows the specific event in the first event queue to obtain the second merged event and the second total number of merges; From the first merge event and the second merge event, the target merge event with the shortest playback duration is selected as the merge event, and the total number of merges is the number of merges corresponding to the target merge event; The target merge event is either the first merge event or the second merge event; If the specific event is at the very beginning, then the specific event is merged with the event in the first event queue that is after the specific event to obtain the merged event and the total number of merges; If the position is the last one, then the specific event is merged with the events in the first event queue that precede the specific event to obtain the merged events and the total number of merges.
4. The display device according to claim 1, characterized in that, The controller is also configured to: If the first total number is greater than or equal to the first number of events, or less than or equal to the second number of events, the first event queue is stored.
5. The display device according to claim 1, characterized in that, The controller is also configured to: When an instruction to play back a recorded file is received, the recorded file is played back, and a location point is determined based on the events in the target event queue corresponding to the recorded file, wherein the target event queue includes a first target event queue and a second target event queue. The positioning point is displayed at the position corresponding to the playback progress bar of the recorded file.
6. A method for determining events related to recording a file, characterized in that, include: Obtain a first event queue corresponding to the recorded file. The first event queue includes at least one event. The event is used to determine a positioning point. The positioning point is used to locate the starting playback position of the recorded file. Determine the first total number of events in the first event queue; In addition, based on the preset number of events, the number of first events and the number of second events are determined, wherein the number of first events is less than or equal to the preset number of events, and the number of second events is greater than the preset number of events; The source of the event is Electronic Program Guide event data; The first playback duration is determined based on the playback duration of the recorded file and the number of preset events; If the first total number is less than the first event number, then special events with a playback duration greater than a preset playback duration are selected from the first event queue, the preset playback duration being determined based on the first playback duration; the special events are split according to the first playback duration to obtain an event set, the event set including at least two virtual events arranged in playback time order; the virtual events in the event set are used to replace the special events in the first event queue to generate a second event queue; if the second total number of events in the second event queue is greater than the preset event number, then virtual events in the second event queue are obtained, and the virtual events are sorted according to playback duration to obtain sorted virtual events; from the sorted virtual events, virtual events within a preset order range are obtained, wherein the number of virtual events within the preset order range is equal to the second total number minus the preset event number, and the playback duration of the virtual events within the preset order range is less than the playback duration of virtual events outside the preset order range; The virtual events within the preset order range are merged with the virtual event preceding the virtual event within the preset order range in the second event queue, thereby updating the second event queue; The updated second event queue is stored as the first target event queue; If the second total number of events in the second event queue is less than or equal to the preset number of events, then the second event queue will be stored as the first target event queue. If the first total number is greater than the second number of events, then the events in the first event queue are retrieved, and the events are sorted according to the playback duration to obtain the sorted events; From the sorted events, select the event with the shortest playback duration as the specific event; Based on the position of the specific event in the first event queue, determine the merged event and the total number of merges; based on the merged event, update the first event queue, and repeat the step of determining the merged event and the total number of merges based on the position of the specific event in the first event queue until the total number of merges is greater than or equal to the first total number minus the preset number of events; The updated first event queue is stored as the second target event queue.
