WO2023193560A1 - 一种显示设备及用于显示设备的处理方法 - Google Patents

一种显示设备及用于显示设备的处理方法 Download PDF

Info

Publication number
WO2023193560A1
WO2023193560A1 PCT/CN2023/079850 CN2023079850W WO2023193560A1 WO 2023193560 A1 WO2023193560 A1 WO 2023193560A1 CN 2023079850 W CN2023079850 W CN 2023079850W WO 2023193560 A1 WO2023193560 A1 WO 2023193560A1
Authority
WO
WIPO (PCT)
Prior art keywords
program
timestamp
recording
information
file
Prior art date
Application number
PCT/CN2023/079850
Other languages
English (en)
French (fr)
Inventor
李永钰
孙琦玮
朱小普
高雯雯
Original Assignee
海信视像科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN202210380729.0A external-priority patent/CN116939279A/zh
Priority claimed from CN202210371409.9A external-priority patent/CN116939264A/zh
Priority claimed from CN202210767184.9A external-priority patent/CN115278341A/zh
Application filed by 海信视像科技股份有限公司 filed Critical 海信视像科技股份有限公司
Publication of WO2023193560A1 publication Critical patent/WO2023193560A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware

Definitions

  • the present application relates to the technical field of intelligent display devices, and in particular, to a display device and a processing method for the display device.
  • Android TV scheduled tasks such as delayed shutdown, scheduled startup, scheduled recording, etc., are generally executed by setting a specified timestamp through the native alarm management service (AlarmManager).
  • AlarmManager native alarm management service
  • the alarm clock management service is still executed according to the original execution timestamp, which will cause the problem of task execution being advanced or delayed, or even scheduled tasks due to the timestamp being advanced too much. Failure to perform.
  • An embodiment of the present application provides a display device, including: a display; a processor, configured to: obtain the current timestamp and power-on timestamp when the user adds a scheduled task, as well as the planned execution timestamp of the scheduled task; if scheduled If the task is not executed and the system time change value per unit time exceeds the preset value, obtain the current timestamp and power-on timestamp after the first system time change; according to the current timestamp and power-on timestamp when adding the scheduled task, as described
  • the planned execution timestamp of the scheduled task, as well as the current timestamp and power-on timestamp after the first system time change calculate the scheduled task execution timestamp after the first system time change; according to the timing after the first system time change
  • the task execution timestamp updates the scheduled execution timestamp of the scheduled task.
  • Embodiments of the present application provide a processing method for a display device, including: obtaining the current timestamp and power-on timestamp when the user adds a scheduled task, and the planned execution timestamp of the scheduled task; if the scheduled task is not executed and If the system time change value per unit time exceeds the preset value, obtain the current timestamp and power-on timestamp after the first system time change; according to the current timestamp and power-on timestamp when adding the scheduled task, the plan of the scheduled task Execution timestamp, as well as the current timestamp and power-on timestamp after the first system time change, calculate the scheduled task execution timestamp after the first system time change; according to the scheduled task execution timestamp after the first system time change Update the scheduled execution timestamp of the scheduled task.
  • Embodiments of the present application provide a method for saving video files, which includes: responding to a stop recording instruction, stopping the execution of a video recording task, and generating a video file; the video recording task is used to record the video currently played by the display device in a time-based recording mode.
  • Program video query the program playback information of the display device during the recording period; determine the target storage mode of the video recording file according to the program playback information; store the video recording file in a preset memory according to the target storage mode .
  • Embodiments of the present application provide a video processing method, including: receiving a playback instruction for a first person's video recording file, responding to the playback instruction, playing the first person's video recording file, and obtaining the first person's video recording file.
  • Program recording information of a person's video recording file according to the program recording information, obtain the information related to the program recording from a pre-established database
  • a second personal video recording file related to program recording information the database includes a plurality of personal video recording files and program recording information corresponding to the plurality of personal video recording files; based on the playback of the first personal video recording file status, displaying playback prompt information, the playback prompt information is used to prompt whether to continue playing the second person's video recording file; receiving a continue playback instruction or an exit instruction; in response to the continue playback instruction, continuing to play the second person's video recording file; video recording file; or, in response to the exit instruction, exit playback.
  • Figure 1 is a schematic diagram of an operation scenario between a display device and a control device according to some embodiments of the present application
  • FIG. 2 is a hardware configuration block diagram of the control device 100 in some embodiments of the present application.
  • FIG. 3 is a hardware configuration block diagram of the display device 200 according to some embodiments of the present application.
  • Figure 4A is a software configuration diagram of the display device 200 according to some embodiments of the present application.
  • Figure 4B is a schematic diagram of the icon control interface display of an application in the display device 200 according to some embodiments of the present application;
  • Figure 5 is a flow chart of interaction between the user and the processor in some embodiments of the present application.
  • Figure 6 is a schematic diagram of a time setting page in some embodiments of the present application.
  • Figure 7 is a schematic diagram of an automatic date and time determination page according to some embodiments of the present application.
  • Figure 8 is a schematic diagram of a time setting page in some embodiments of the present application.
  • Figure 9 is a schematic diagram of the system time updated prompt page in some embodiments of the present application.
  • Figure 10 is a schematic diagram of a timing page in some embodiments of the present application.
  • Figure 11 is a schematic diagram of the automatic power-on time setting page of some embodiments of the present application.
  • Figure 12 is a schematic diagram of the automatic boot time reminder page of some embodiments of the present application.
  • Figure 13 is a schematic diagram of a scheduled shutdown time setting page in some embodiments of the present application.
  • Figure 14 is a schematic diagram of the automatic shutdown time reminder page of some embodiments of the present application.
  • Figure 15 is a schematic diagram of a signal source selection page according to some embodiments of the present application.
  • Figure 16 is a schematic diagram of the menu bar under the channel play page in some embodiments of the present application.
  • Figure 17 is a schematic diagram of the reservation recording setting page in some embodiments of the present application.
  • Figure 18 is a schematic diagram of the scheduled recording time reminder page in some embodiments of the present application.
  • Figure 19 is a schematic diagram of the program playback interface according to the embodiment of the present application.
  • Figure 20 is a schematic diagram of voice interaction between a user and a display device according to an embodiment of the present application.
  • Figure 21 is a schematic diagram 1 of the recording task setting page according to the embodiment of the present application.
  • Figure 22 is a schematic diagram 2 of the recording task setting page according to the embodiment of the present application.
  • Figure 23 is a schematic diagram of a video recording interface according to an embodiment of the present application.
  • Figure 24 is an interface display rendering at the end of recording according to the embodiment of the present application.
  • Figure 25 is a playback timeline in the time-based recording mode according to the embodiment of the present application.
  • Figure 26 is a schematic diagram of a disk saving file when the time-based recording mode ends in the embodiment of the present application.
  • Figure 27 is a schematic diagram of the disk saving file when the program recording mode ends according to the embodiment of the present application.
  • Figure 28 is a schematic diagram of the first save mode inquiry pop-up window when the time-based recording mode ends in the embodiment of the present application;
  • Figure 29 shows the saving mechanism according to the program saving mode according to the embodiment of the present application.
  • Figure 30 is a program playback/recording timeline of a display device according to an embodiment of the present application.
  • Figure 31 is a schematic diagram of the second save mode inquiry pop-up window when the time-based recording mode ends in the embodiment of the present application;
  • Figure 32 is a schematic diagram of the third save mode inquiry pop-up window when the time-based recording mode ends in the embodiment of the present application;
  • Figure 33 is a schematic diagram of the UI displaying the program saving page after the user selects the program saving mode according to the embodiment of the present application;
  • Figure 34 is a schematic diagram of disk saving files when using the save mode by program according to the embodiment of the present application.
  • Figure 35 is a flow chart of a method for saving video files according to an embodiment of the present application.
  • Figure 36 is a flow chart of another method of saving video files according to the embodiment of the present application.
  • Figure 37 is a schematic diagram three of the recording task setting page according to the embodiment of the present application.
  • Figure 38 is a schematic diagram 4 of the recording task setting page according to the embodiment of the present application.
  • Figure 39 is a schematic diagram 5 of the recording task setting page according to the embodiment of the present application.
  • Figure 40 is a schematic diagram 5 of the recording task setting page according to the embodiment of the present application.
  • Figure 41 is a schematic diagram of displaying playback prompt information in an embodiment of the present application.
  • Figure 42 is a flow chart for obtaining a second person's video recording file in an embodiment of the present application.
  • Figure 43 is another schematic diagram of displaying playback prompt information in an embodiment of the present application.
  • Figure 44 is a flow chart of the video processing method in the embodiment of the present application.
  • Figure 45 is a flow chart for updating the database in the embodiment of the present application.
  • the display device provided by the embodiment of the present application can be a terminal device with a display function.
  • the terminal device has a variety of implementation forms. For example, it can be a TV, a smart TV, a laser projection device, a monitor, or an electronic bulletin board. , electronic table, computer, learning machine, etc.
  • Figures 1 and 2 illustrate a specific implementation of the display device of the present application.
  • Figure 1 is a schematic diagram of an operation scenario between a display device and a control device according to some embodiments of the present application. As shown in FIG. 1 , the user can operate the display device 200 through the smart device 300 or the control device 100 .
  • control device 100 may be a remote controller.
  • the communication between the remote controller and the display device includes infrared protocol communication or Bluetooth protocol communication, and other short-distance communication methods to control the display device 200 through wireless or wired methods.
  • the user can control the display device 200 by inputting user instructions through buttons on the remote control, voice input, control panel input, etc.
  • a smart device 300 (such as a mobile terminal, a tablet, a computer, a laptop, etc.) can also be used to control the display device 200 .
  • the display device 200 is controlled using an application running on the smart device.
  • the display device may not use the above-mentioned smart device or control device to receive instructions, but may receive user control through touch or gestures.
  • the display device 200 can also be controlled in a manner other than the control device 100 and the smart device 300 .
  • the display device 200 can directly receive the user's voice command control through a module configured inside the display device 200 to obtain voice commands.
  • the user's voice command control can also be received through a voice control device provided outside the display device 200 .
  • the display device 200 can also perform data communication with the server 400.
  • the display device 200 may be allowed to communicate via a local area network (LAN), a wireless local area network (WLAN), and other networks.
  • the server 400 can provide various content and interactions to the display device 200.
  • the server 400 may be a cluster or multiple clusters, and may include one or more types of servers.
  • the display device 200 may also additionally provide a smart network television function that provides computer support functions.
  • FIG. 2 is a hardware configuration block diagram of the control device 100 in some embodiments of the present application.
  • the control device 100 includes a processor 110, a communication interface 130, a user input/output interface 140, a memory, and a power supply.
  • the control device 100 can receive input operation instructions from the user, and convert the operation instructions into instructions that the display device 200 can recognize and respond to, thereby mediating the interaction between the user and the display device 200 .
  • the communication interface 130 is used to communicate with the outside and includes at least one of a WIFI chip, a Bluetooth module, NFC or a replaceable module.
  • the user input/output interface 140 includes at least one of a microphone, a touch pad, a sensor, a button, or a replaceable module.
  • FIG. 3 is a hardware configuration block diagram of the display device 200 according to some embodiments of the present application.
  • the display device 200 includes at least one of a tuner and demodulator 210, a communicator 220, a detector 230, an external device interface 240, a processor 250, a display 260, an audio output interface 270, a memory, a power supply, and a user interface. kind.
  • the processor 250 includes a processor, a video processor, an audio processor, a graphics processor, RAM, ROM, first to nth interfaces for input/output.
  • the display 260 includes a display screen component for presenting images, a driving component for driving image display, a component for receiving image signals output from the processor, displaying video content, image content, menu control interface components, and a user control UI interface. .
  • the display 260 can be a liquid crystal display, an OLED display, a projection display, or a projection device and a projection screen.
  • the communicator 220 is a component for communicating with external devices or servers according to various communication protocol types.
  • the communicator may include at least one of a Wifi 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 transmission and reception of control signals and data signals with the external control device 100 or the server 400 through the communicator 220 .
  • the user interface can be used to receive control signals from the control device 100 (such as an infrared remote control, etc.).
  • the detector 230 is used to collect signals from the external environment or interactions with the outside.
  • the detector 230 includes a light receiver, a sensor used to collect ambient light intensity; or the detector 230 includes an image collector, such as a camera, which can be used to collect external environment scenes, user attributes or user interaction gestures, or , the detector 230 includes a sound collector, such as a microphone, etc., for receiving external sounds.
  • the external device interface 240 may include, but is not limited to, any one of the following: high-definition multimedia interface (HDMI), analog or data high-definition component input interface (component), composite video input interface (CVBS), USB input interface (USB), RGB port, etc., or Multiple interfaces.
  • HDMI high-definition multimedia interface
  • component analog or data high-definition component input interface
  • CVBS composite video input interface
  • USB USB input interface
  • RGB port etc., or Multiple interfaces.
  • the tuner-demodulator 210 receives signals from the broadcast system through wired or wireless reception, and demodulates audio and video signals, such as EPG data signals, from multiple wireless or wired broadcast television signals.
  • the processor 250 and the tuner-demodulator 210 may be located in different separate devices, that is, the tuner-demodulator 210 may also be located in an external device of the main device where the processor 250 is located, such as an external set-top box. wait.
  • the processor 250 controls the operation of the display device and responds to user operations through various software control programs stored in the memory.
  • the processor 250 controls the overall operation of the display device 200. For example, in response to receiving a user command for selecting a UI object to be displayed on display 260, processor 250 may perform a process corresponding to the selection by the user command. Image-related operations.
  • the processor includes a central processing unit (Central Processing Unit, CPU), a video processor, an audio processor, a graphics processor (Graphics Processing Unit, GPU), RAM Random Access Memory, RAM), ROM (Read- Only Memory, ROM), at least one of the first to nth interfaces for input/output, communication bus (Bus), etc.
  • CPU Central Processing Unit
  • video processor video processor
  • audio processor audio processor
  • graphics processor Graphics Processing Unit, GPU
  • RAM Random Access Memory
  • ROM Read- Only Memory
  • the user may input a user command into a graphical user interface (GUI) displayed on the display 260, and the user input interface receives the user input command through the graphical user interface (GUI).
  • GUI graphical user interface
  • the user can input a user command by inputting a specific sound or gesture, and the user input interface recognizes the sound or gesture through the sensor to receive the user input command.
  • Figure 4A is a schematic diagram of software configuration in the display device 200 according to some embodiments of the present application.
  • the system is divided into four layers, from top to bottom respectively the Applications layer (referred to as "Applications”).
  • Layer Application Framework layer
  • frame layer Application Framework layer
  • Android runtime and system library layer referred to as “system runtime library layer”
  • kernel layer kernel layer
  • the kernel layer is the layer between hardware and software. As shown in Figure 4A, the kernel layer contains at least one of the following drivers: audio driver, display driver, Bluetooth driver, camera driver, WIFI driver, USB driver, HDMI driver, sensor driver (such as fingerprint sensor, temperature sensor, pressure sensor) sensors, etc.), and power drives, etc.
  • the kernel layer contains at least one of the following drivers: audio driver, display driver, Bluetooth driver, camera driver, WIFI driver, USB driver, HDMI driver, sensor driver (such as fingerprint sensor, temperature sensor, pressure sensor) sensors, etc.), and power drives, etc.
  • Figure 4B is a schematic diagram of the icon control interface display of an application in the display device 200 according to some embodiments of the present application.
  • the application layer contains at least one application that can display the corresponding icon control on the display, such as: live broadcast TV application icon control, video on demand application icon control, media center application icon control, application center icon control, game application icon control, etc.
  • Live TV app that provides live TV from different sources.
  • Video on demand application that can provide videos from different storage sources. Unlike live TV applications, video on demand offers the display of video from certain storage sources.
  • Media center application can provide various multimedia content playback applications. The application center can provide storage for various applications.
  • Android TV scheduled tasks such as delayed shutdown, scheduled startup, scheduled recording, etc., are generally executed by setting a specified timestamp through the native alarm management service (AlarmManager).
  • AlarmManager When the time is synchronized, that is, after the timestamp is updated, the alarm clock management service is still executed according to the original execution timestamp, which will cause the problem of task execution being advanced or delayed, or even scheduled tasks due to the timestamp being advanced too much. Failure to perform. For example: at 16:00:00 on January 1, 2022, Beijing time (timestamp is 1641024000), the user sets a scheduled task to shut down after 30 minutes (timestamp is 1641025800). At this time, the TV time is synchronized from the network and advanced. 29 minutes. At this time, the TV time changes to 16:29:00 on January 1, 2022, and the timestamp also changes accordingly to 1641025740. The TV will shut down after 1 minute, and the scheduled task is executed in advance, which is inconsistent with user expectations. .
  • FIG. 5 is a flow chart of interaction between a user and a display device according to some embodiments of the present application.
  • the user sets scheduled tasks as needed during use of the display device.
  • the method includes: step S501: input a confirmation instruction for adding a scheduled task.
  • the scheduled task In response to the confirmation instruction input by the user to add a scheduled task, the scheduled task is added, and the current timestamp and power-on timestamp when the user adds the scheduled task are obtained, as well as the planned execution timestamp of the scheduled task (step S502).
  • scheduled tasks are added through the alarm clock management service (AlarmManager).
  • Alarm clock management service It is a reminder service that comes with the Android system and is used to execute scheduled tasks. When the timestamp reaches the execution time of the scheduled task, the alarm clock management service will execute the task.
  • Timestamp usually a sequence of characters, uniquely identifies a certain moment in time, which refers to 00:00:00 on January 1, 1970 Greenwich Time (08:00 on January 1, 1970, Beijing time) The total number of seconds since minutes (00 seconds) to now.
  • the timestamp of the display device will also change accordingly.
  • the user when formulating a scheduled task, the user obtains the current timestamp when adding the scheduled task through System.currentTimeMillis() (current timestamp acquisition interface), and calculates the timestamp of the scheduled execution of the scheduled task, and uses SystemClock.elapsedRealtime ()(Power-on timestamp acquisition interface) Get the power-on timestamp when adding a scheduled task.
  • System.currentTimeMillis() current timestamp acquisition interface
  • the current timestamp when adding a scheduled task specifically refers to the timestamp displayed by the system time when the user enters the confirmation instruction to add a scheduled task
  • the power-on timestamp when adding a scheduled task specifically refers to the timestamp displayed on the display device.
  • the planned execution timestamp of a scheduled task is calculated based on the currently displayed system time. It should be noted that powering on the display device means that the display device is connected to the power supply.
  • the current state of the display device includes normal working state, sleep state and standby state.
  • the time when the user enters the confirmation command to add a scheduled task is 9:00:00 on January 1, 2022; the time when the device is powered on is displayed as 8:00:00 on January 1, 2022; the scheduled task set by the user The execution time is 10:00:00 on January 1, 2022, then the current timestamp when adding the scheduled task is 1640998800, the power-on timestamp when adding the scheduled task is 3600, and the planned execution timestamp of the scheduled task is 1641002400.
  • Step S503 Monitor whether the scheduled task is executed.
  • the user sets the shutdown time after 30 minutes, and continuously or regularly monitors whether the display device is shut down; if the display device has been shut down, it means that the scheduled task has been executed, and no operation is performed; if it is displayed If the device is not shut down, it means that the scheduled task has not been executed. Monitor whether the system time change value per unit time exceeds the preset value (S504). If yes, step S505 is executed. If not, step S503 is executed.
  • the system time on the display device keeps changing over time, but if the system time change value per unit time exceeds the preset value, it means that the system time has been manually modified by the user or synchronized with the network time. Revise.
  • Intent.ACTION_TIME_CHANGED time change
  • the system time synchronization or modification of the display device can be set through the time setting page.
  • Figure 6 is a schematic diagram of a time setting page in some embodiments of the present application.
  • the time setting page includes an automatic date and time control 61, a date setting control 62, a time setting control 63, a time zone setting control 64 and a 24-hour clock control 65.
  • the page also includes instructions for any control to be used.
  • Selector 66 selected.
  • the current selector 66 indicates that the automatic date and time determination control 61 is selected, the user can press the confirmation key of the control device, and in response to the instruction input by the user, a page as shown in Figure 7 is displayed.
  • Figure 7 is a schematic diagram of an automatic date and time determination page according to some embodiments of the present application.
  • the page shown in Figure 7 includes a time control 71 provided using the network, a close control 72, and a selector 73 indicating that any control is selected. If the user selects to use the time control 71 provided by the network, as shown in Figure 8, the time can be automatically synchronized from the network and the user cannot modify the system time by himself. In Figure 6, the user selects the set time control 63, and the user can manually modify the system time.
  • the selector is used to indicate that any control has been selected, such as the focus object.
  • the control can be selected or controlled by controlling the movement of the display focus object in the display device based on user input through the control device. For example, the user can select and control controls by controlling the movement of the focus object between controls through the arrow keys on the control device.
  • the movement of each control displayed in the display device can be controlled to cause the focus object to select or control the control.
  • the user can use the direction keys on the control device to control each control to move left and right at the same time, so that the focus object can be selected and the control can be controlled while keeping the position of the focus object unchanged.
  • the position of the focus object can be realized or identified by enlarging the control
  • the position of the focus object can be realized or identified by setting the background color of the control, or the border line, size, color, transparency and outline of the text or image of the focus control can be changed. and/or font, etc. identify the location of the focused object.
  • the system time change value per unit time exceeds the preset value, including: when the user manually sets the system time, the system time change value per unit time exceeds the preset value.
  • the system time of the current display device is 8:00:00 am.
  • the user manually changes the system time to 8:30:00, the unit time is 1S, and the default value is 1S. That is to say, after 1S, the system time should be 8:00:01, but the system time is 8:30:00, and the change value exceeds 1S.
  • the system time change value per unit time exceeds the preset value, including: after the system time is synchronized through the network, the system time change value per unit time exceeds the preset value.
  • the system time of the currently displayed device is 8:00:00 am. After network synchronization, the time is modified to 8:00:30.
  • the unit time is 1S and the default value is 1S. That is to say, after 1S, the system time should be 8:00:01, but the system time is 8:00:30, and the change value exceeds 1S.
  • the processor may also perform the step of: monitoring whether the user manually modifies the system time or whether the network time is synchronized, instead of step S504.
  • step S505 is executed; if the user is not monitored to input an instruction to manually modify the system time and the network time is synchronized, the processor executes step S503.
  • Step S505 Obtain the current timestamp and power-on timestamp after the first system time changes.
  • the current timestamp after the first system time change is obtained through System.currentTimeMillis() (current timestamp acquisition interface), and the first system time is obtained through SystemClock.elapsedRealtime() (power-on timestamp acquisition interface). The changed power-on timestamp.
  • the current timestamp after the first system time change specifically refers to the system timestamp after the first user modification or network synchronization
  • the power-on timestamp after the first system time change specifically refers to the system timestamp after the first system time change.
  • Step S506 Calculate the first system time change based on the current timestamp and power-on timestamp when the scheduled task is added, the planned execution timestamp of the scheduled task, and the current timestamp and power-on timestamp after the first system time changes. The subsequent scheduled task execution timestamp.
  • the current timestamp and power-on timestamp when the scheduled task is added, the planned execution timestamp of the scheduled task, and the current timestamp and power-on timestamp after the first system time change are calculated to calculate the A step of stamping the scheduled task execution time after the system time changes, specifically including: based on the current timestamp and power-on time stamp when adding the scheduled task, and the current timestamp and power-on time after the first system time changes.
  • Stamp calculate the first system time variation; calculate the scheduled task execution timestamp after the first system time changes according to the planned execution timestamp of the scheduled task and the first system time variation.
  • the current timestamp A1 when adding a scheduled task is 1640998800 (9:00:00 on January 1, 2022), the power-on timestamp B1 when adding a scheduled task is 3600, and the planned execution timestamp P1 of the scheduled task is 1641002400 (January 1, 2022 10:00:00);
  • the current timestamp A2 after the first system time change is 1641000600 (January 1, 2022 9:30:00) and the power-on timestamp B2 is 5000;
  • Step S507 Update the planned execution timestamp of the scheduled task according to the scheduled task execution timestamp after the first system time change.
  • step S507 is executed to notify the alarm management service (AlarmManager) to obtain the scheduled task execution timestamp after the first system time change. Update to the scheduled execution timestamp of the scheduled task.
  • AlarmManager alarm management service
  • Step S508 Detect whether the current display device is in working state.
  • step S508 when performing step S508, it specifically includes: detecting whether the display screen of the current display device is turned on. If the display screen is turned on, it means that the current display device is in working state and the user is using the display device, then step S509 is executed; if the display screen of the display device is not turned on, it means that the current display device is in sleep state or standby state, and no operation is performed.
  • Step S509 Control the display to display an information prompt box.
  • the information prompt box is used to prompt the user that the system time has been updated, and the information prompt box is also used to prompt the execution time of the scheduled task after the system time is updated.
  • the scheduled task execution timestamp is accurate to seconds, but the user does not need to know too specific time, and the execution time of the scheduled task can only be displayed to minutes after the display is updated. For example: the exact execution time of the scheduled task is 8:12:34, and the execution time of the scheduled task in the information prompt box is 8:12.
  • Figure 9 is a schematic diagram of a system time updated prompt page in some embodiments of the present application.
  • the page shown in Figure 9 includes an information prompt box 91.
  • the information prompt box 91 includes prompt information.
  • the prompt information may be that the system time has been updated and the scheduled task will be executed at XX:XX.
  • the width and height of the information prompt box are smaller than the width and height of the display screen; the information prompt box can be set anywhere on the user interface; the non-information prompt box part of the system time updated prompt page is set to a transparent or semi-transparent state to avoid blocking the original user interface.
  • the system time has been updated prompt page is displayed for a preset period of time, cancel the display of the system time has been updated prompt page.
  • the processor executes the corresponding scheduled task.
  • the scheduled task execution timestamp update method may also include the following steps after step S507 or step S509. :
  • the planned execution timestamp of the scheduled task is updated according to the scheduled execution timestamp of the scheduled task after the change of the second system time.
  • the current timestamp A2 after the first system time change, the power-on timestamp B2 and the scheduled execution timestamp P2 of the scheduled task the current timestamp A3 after the second system time change and the power-on timestamp B3 .
  • the current timestamp A2 after the first system time change is 1641000600 (9:30:00 on January 1, 2022) and the power-on timestamp B2 is 5000, and the execution timestamp P2 of the scheduled task is 1641002800 (January 2022).
  • the current timestamp and power-on timestamp after the second system time change are recorded, so that when the system time changes again, the execution time of the scheduled task can be calculated.
  • step S507 or step S509 the processor performs the following steps:
  • the planned execution timestamp of the scheduled task is updated according to the scheduled execution timestamp of the scheduled task after the change of the second system time.
  • the current timestamp A1 when the scheduled task is added the power-on timestamp B1 and the planned execution timestamp P1 of the scheduled task when the scheduled task is added; the current timestamp A3 and the power-on time after the second system time change Click B3.
  • the above scheduled tasks include scheduled power on, scheduled power off, and scheduled recording.
  • scheduled task types include scheduled power on, scheduled power off, and scheduled recording.
  • Embodiment 1 Scheduled power on
  • FIG 10 is a schematic diagram of a timing page according to some embodiments of the present application.
  • the page shown in Figure 10 includes a timer power-off control 101, an automatic timer power-on mode control 102, an automatic power-on time control 103, and an automatic timer power-off mode control 104.
  • the page shown also includes a selector 105 indicating that any control is selected, Figure 10
  • the page shown also includes a selector 106 indicating that any control is selected.
  • Figure 11 shows some embodiments of the present application. Schematic diagram of the automatic power-on time setting page. Users can set the automatic power-on time in Figure 11. If the system time changes before the user shuts down (the display device is in standby) (such as the user manually modifying the system time or synchronizing the network time), calculate and update the automatic power-on time after the system time changes, and prompt the user that the system time has been updated, and inform the user that the system time has been updated. The latest execution time of the scheduled startup task is shown in Figure 12.
  • Figure 12 is a schematic diagram of an automatic boot time reminder page according to some embodiments of the present application. If the system time changes (network time synchronization) after the user shuts down the device (display device is on standby), calculate and update the automatic power-on time after the system time changes.
  • Embodiment 2 Scheduled shutdown
  • FIG. 10 is a schematic diagram of a timing page according to an embodiment.
  • the page shown in Figure 10 includes a timer power-off control 101, an automatic timer power-on mode control 102, an automatic power-on time control 103, and an automatic timer power-off mode control 104.
  • the page shown also includes a selector 105 indicating that any control is selected.
  • Figure 13 is a schematic diagram of the scheduled shutdown time setting page in some embodiments of the present application. Users can set the delayed shutdown time in Figure 13.
  • the system time changes such as the user manually modifying the system time or network time synchronization
  • calculate and update the delayed shutdown time after the system time changes prompt the user that the system time has been updated, and inform the latest execution time of the scheduled shutdown task.
  • Figure 14 is a schematic diagram of the automatic shutdown time reminder page in some embodiments of the present application.
  • Embodiment 3 Schedule recording
  • Figure 15 is a schematic diagram of a signal source selection page according to some embodiments of the present application.
  • the user selects the TV control 151 in Figure 15 to enter the Live TV application and watch the TV cable signal.
  • Figure 17 is a schematic diagram of a reservation recording setting page according to some embodiments of the present application.
  • the page shown in Figure 17 includes a recording mode control 171, a start time control 172, an end time control 173, a frequency control 174, a save control 175 and a cancel control 176.
  • the page shown also includes a selector 177 indicating that any control is selected. .
  • scheduled recording includes two execution times. Therefore, two execution timestamps need to be calculated when the system time changes. If the system time changes before the user shuts down (the display device is in standby) (for example, the user manually changes the system time or synchronizes the network time), calculate and update the start time and end time of the scheduled recording after the system time changes, and prompt the user for the system time. The latest execution time of the scheduled recording task has been updated and notified, as shown in Figure 18.
  • Figure 18 is a schematic diagram of a scheduled recording time reminder page according to some embodiments of the present application. If the system time changes (network time synchronization) after the user shuts down (the display device is in standby), calculate and update the start time and end time of the scheduled recording after the system time changes.
  • the embodiment of the present application automatically adjusts the execution timestamp of the scheduled task by calculating the change in the timestamp after the system time changes, avoiding the situation of early or delayed execution of the task; when automatically adjusting the task timestamp, the user is also prompted for the task time.
  • the point has been updated, and the latest time point of the task is informed, which provides a better user experience; at the same time, there will be no situation where the originally scheduled delayed task is not executed because the time change is too large in advance.
  • the target duration can be set.
  • the display device detects that the recording start time has been reached, starts the video recording task, and when the recording duration reaches the target duration, Or when the user actively ends the recording, the video recording task will be stopped.
  • the recorded video files may contain multiple serialized programs on the same channel, and the user has different interests and preferences for each program. This will cause the user to skip the uninterested program first when watching back the video file.
  • Program clips can be gradually located from a long video file to the location of the program of interest, thus causing inconvenience to users.
  • a terminal that is the same as or similar to the aforementioned display device can be configured with a video recording function to record the program video played by the display device, and save the video file in a specified disk path, such as the local disk of the display device or an external disk.
  • the external disk can be connected to a display device to realize reading and writing functions.
  • the external disk is not limited to U disk, mobile hard disk, card reader, etc. Users can review the recorded video files at any time, and can perform fast forward, seek (i.e. search, etc.) Used to quickly search and locate a certain playback position of a video file) and perform operations such as repeated playback.
  • the video file can also be deleted from the disk to free up occupied storage space.
  • Display devices are generally equipped with interfaces for connecting external disks, and are not limited to USB interfaces for connecting U disks and mobile hard disks.
  • the display device after the display device receives the TV code stream, it processes the TV code stream and displays it on the display, thereby presenting TV program images to the user.
  • the user can switch channels and watch program content on different channels.
  • the display device caches the code stream data received during the recording period. Until the end of the recording, the buffered code stream data is formatted, that is, converted into a video format (such as mp4, avi, etc.), thereby Generate and save video files to the specified disk.
  • a video format such as mp4, avi, etc.
  • a video recording control 51 can be set on the program playback interface, and the user can The video recording function can be started by triggering the video recording control 51 through remote control or screen touch.
  • a video recording button can be set on the control device 100 (such as a remote control). This button is equivalent to a shortcut key for activating the video recording function on the remote control.
  • the control device 100 When the display device plays a TV program, the user can click on the control device 100 at any time.
  • the control device 100 responds to the recording button being triggered and sends a control instruction to the display device; the display device parses the control instruction and reads the key value to know that the user intends to start the recording function.
  • the display device supports the voice function, as in the voice interaction scenario illustrated in Figure 20, when the display device plays a TV program, the user says "I want to record” to the display device, and after the display device collects the voice information, By analyzing and processing the voice information, such as keyword extraction, semantic processing, etc., it can be known that the user's voice intention is to start the recording function.
  • a recording task setting page as shown in Figure 21 is displayed, which has a recording mode setting control 211, a first confirmation control 212, a first cancellation control 213 and a disk.
  • the control 214 the user selects the desired recording mode through the recording mode setting control 211.
  • the recording modes include, but are not limited to, a time-based recording mode and a by-program recording mode.
  • the time setting control 2111 is displayed on the recording task setting page.
  • the user uses the time setting control 2111 to set the start time T0 and stop time TS, and the difference between the start time T0 and the stop time TS. That is, it is the preset recording duration.
  • the processor creates a video recording task corresponding to the time-based recording mode according to the start time T0 and the stop time TS.
  • a disk list is generated and displayed according to the connection status of the disk port.
  • the disk list includes relevant information about the currently available disks, including but not limited to disk name, disk remaining available memory/ Memory capacity and other information, for example, "U disk, 30G/64G" indicates that the memory capacity of the U disk is 64G, 34G has been used, and the remaining available memory is 30G.
  • the user selects a disk from the disk list as the default memory to store video file.
  • the processor queries the current program information according to the EPG (Electrical Program Guide), and the program information includes the program The name and start and end points of program playback, where the program name is used to indicate which program on which channel, and the start and end points of program playback are used to indicate the start time and end time of the program.
  • the processor creates a program corresponding to the program recording mode based on the current program information. Video recording tasks.
  • the processor detects that the system time reaches the start time T0 of the video recording task, it will start executing the video recording task, and the display device will display the video recording interface, as shown in the example of Figure 23.
  • the video recording interface is not limited to displaying recording status prompt information 221, recorded time 222, disk recordable time 223, pause control 224, stop recording control 225 and progress bar 226, etc., to achieve "recording while broadcasting".
  • the recording status prompt information 221 is presented as status prompts such as "recording”, “recording in progress”, “recording completed”, “recording ended”, etc.;
  • the recorded time 222 is used to represent the length of time the video has been recorded, It starts timing from zero;
  • the disk recordable time 223 is used to characterize the length of time that the disk can support video recording, which is generally related to the remaining available memory of the disk, recording speed, code stream resolution and other factors;
  • the user triggers the pause control 224 once to pause the recording process, the recorded time and disk recordable time remain unchanged temporarily.
  • the pause control 224 a second time, the pause mode can be released and subsequent recording can be continued from the current progress;
  • the progress bar 226 is used to represent the recording process, and It is convenient for users to identify whether the disk is full.
  • the recording mode selects recording by time
  • the execution of the video recording task will be stopped immediately; or, regardless of whether the recording mode selects recording by time or recording by program, If the user actively triggers the stop recording control 225, the video recording task must be stopped immediately.
  • the processor stops executing the video recording task, that is, stops continuing to cache the code stream data, and the status of the display device switches from "playing while recording” to "only playing but not recording”.
  • the recording status prompt information 221 is changed from “recording” to "recording ended", and the first inquiry pop-up window 227 is displayed.
  • the first inquiry pop-up window 227 includes the first inquiry information 2271 and the first save control 2272. and the first cancel control 2273.
  • the first query information 2271 is used to ask whether to save the video file.
  • the cached code stream data will be deleted and the video file recorded this time will not be saved; if the user triggers the Once the save control 2272 is used, the video file will be saved to the specified disk to facilitate the user to review the video file after accessing the disk.
  • the video recording task will be started immediately, and the display device will display the video recording interface as shown in Figure 23 until it is detected that the system time reaches the playback deadline of the current program, or until the user Actively trigger the stop recording control 225 to stop executing the video recording task, and ask whether to save the video file according to the example in Figure 24 .
  • the time-based recording mode and the program-based recording mode are independent and incompatible with each other, and the user must select a recording mode when creating a video recording task.
  • the time-based recording mode although users can arbitrarily and flexibly set the start time T0 and stop time TS, if the recording time is long, the data volume of the video file will be large, and the display device may play multiple programs during the recording period.
  • the start time T0 is 19:00 and the stop time TS is 20:00.
  • the processor detects that the system time reaches 19:00, it starts executing the video recording task and starts Buffer the code stream data until it detects that the system time reaches 20:00 and stops recording.
  • the programs recorded while broadcasting include serial broadcasts of Program A, Program B and Program C.
  • the playing time of program A is 30 minutes
  • the playing time of program B is 5 minutes
  • the playing time of program C is 25 minutes. That is, the starting and ending points of program A are 19:00 and 19:30, and the starting and ending points of program B are 19:31 and 19:35, and the start and end points of program C are 19:36 and 20:00.
  • the processor detects that the system time reaches the stop time TS of 20:00, it stops executing the video recording task and asks whether to save the video file as shown in Figure 24. If the user input of save is received, command, the processor will save the entire 1-hour video file.
  • the video file contains three program videos played during the period from 19:00 to 20:00, and the user has different interests and preferences for each program. It is often necessary to proceed through the natural progression of the playback process, or through cumbersome operations such as fast forwarding and seek, in order to locate your favorite program segments from a long video file.
  • the user can watch program A first until the playback process naturally advances to the 31st minute, and then continue to watch program B that he is interested in.
  • the user can quickly jump to the playback progress through fast forward or seek operations. At the 31st minute, speed up and skip program A that you are not interested in.
  • the processor responds to the save command input by the user, Query the channel information played by the display device during recording.
  • the video file is named by the channel name by default, and the video file containing at least one program video is stored in the default memory.
  • the default memory is the disk where the video file is saved. For example, local disk, U disk, mobile hard disk, etc.
  • video file 1 and video file 2 are both named after channel 1. It is difficult for users to distinguish whether they want to play back video file 1 or video file 2.
  • the processor when the program recording mode ends, responds to the save instruction input by the user and queries the program information played by the display device during the recording.
  • the recording In the program recording mode, the recording is named after the program name by default. file, and stores the video file containing only one program video into the default memory. In this scenario, the video file is highly identifiable, making it easy for users to quickly find the program video they want to watch back.
  • the program recording mode only one program video can be recorded at a time. If you want to record multiple program videos, you must reserve multiple video recording tasks in advance, which is inconvenient for users.
  • the present application provides a solution that integrates the time-based recording and the based-program saving modes.
  • the processor detects that the system time reaches the stop time TS, or the user actively triggers the stop recording control 225, it responds to the stop recording instruction and stops executing the video recording task.
  • the processor is limited based on the start time T0 and the stop time TS.
  • the program playback information includes N program information, N is greater than or equal to 1.
  • the program information includes the program name and the start and end points of the program playback, and then according to the program Play the information, determine the target saving mode of the video file, and store the video file in the preset memory according to the target saving mode.
  • the user triggers the first save control 2272 in Figure 24, and the processor responds to the save instruction. If N is found to be equal to 1, that is, only one program video is recorded during the recording time, the processor automatically Save the video file in the default memory in the whole segment saving mode.
  • the entire recording mode is configured to not divide the video file, name the video file with the channel name according to the channel played by the display device during the queried recording period, and store the entire video file in the default memory.
  • the user triggers the first save control 2272 in Figure 24, and the processor responds to the save instruction. If it is found that the program playback information contains multiple program information, that is, N is greater than 1, as shown in Figure An example of 28 is to display a first save mode inquiry pop-up window 241 on the user interface.
  • the first save mode inquiry pop-up window 241 includes first prompt information 242, a first mode control 243 and a second mode control 244.
  • the first prompt information 242 is used to prompt the user to select a saving mode of the video file; when the first mode control 243 is triggered, the processor stores the video file in the default memory in the entire save mode, that is, without pressing The program divides the video file, and the entire video file contains N program videos.
  • the processor when the second mode control 244 is triggered, stores the video file in the preset memory in the program-based saving mode.
  • the program-based saving mode is configured to save the program according to the program information indicated by each program.
  • the starting point of playback is Ti_1 and the end point of program playback is Ti_2, where i represents the program number after sorting the programs in the recording period according to the playback time sequence, 1 ⁇ i ⁇ N, the video file is divided into N program recording sub-files, and according to The program names are used to name the N program recording sub-files respectively, and then the N program recording sub-files are stored in the default memory.
  • the starting and ending points of program A are T1_1 and T1_2 respectively.
  • the starting and ending points of program B are T2_1 and T2_2 respectively.
  • Program C The playback start and end points are T3_1 and T3_2 respectively.
  • T0 is equal to T1_1
  • T1_2 is equal to T2_1
  • T2_2 is equal to T3_1.
  • T3_2 is equal to TS
  • sub-file one corresponding to program A is divided from the entire video file according to T1_1 and T1_2
  • sub-file two corresponding to program B is divided from the entire video file according to T2_1 and T2_2.
  • T3_1 and T3_2 Split the third sub-file corresponding to program C from the entire video file.
  • sub-file one, sub-file two and sub-file three are respectively saved in the default memory.
  • sub-file one is named as the name of program A
  • sub-file two is named as the name of program B
  • sub-file three is named as the name of program C.
  • the program name may include the channel name, for example, the program name is channel 1- Program A, or can be presented as just Program A, without the channel name.
  • the processor starts executing the video recording task and starts caching code stream data.
  • the recording of program 1 ends and continues. Record the next program, and so on, start recording program i at the Ti_1 time node, and end the recording of program i at the Ti_2 time node.
  • the system time reaches the TS time node, stop executing the video recording task, from T0 to TS During the recording period, the recording process traverses N programs.
  • the N program information is sorted according to the playback time sequence.
  • the initial program information sorted first corresponds to the program playback starting point T1_1 and program playback The end point is T1_2, and the ending program information (i.e. program N) sorted at the end corresponds to the program playback start point is TN_1 and the program playback end point is TN_2.
  • T0 is greater than T1_1, it means that when the video recording task is started, the program 1. Part of the video clip has been played, then T0 is used as the starting point for recording program 1, and sub-file 1 of program 1 is divided according to T0 and T1_2. In this scenario, the recording of program 1 is incomplete; if TS is less than TN_2, the video recording task is over.
  • program N has not finished playing, then TS is used as the recording end point of program N, and the sub-file N of program N is divided according to TN_1 and TS. In this scenario, the recording of program N is incomplete. Other programs 2 to program N-1 can be fully recorded.
  • Recording by time mode + saving by program mode is compatible with the advantages of recording by time mode and recording by program. Users can flexibly set the start and stop time of video recording tasks, and support continuous recording of multiple program videos during the recording period.
  • This solution Video files are divided and stored in units of individual programs. After accessing the preset memory, users can quickly search for program videos they are interested in and delete program videos they are not interested in, thereby avoiding waste of disk storage space.
  • the user triggers the first save control 2272 in Figure 24, and the processor responds to the save instruction. If it is found that the program playback information contains multiple program information, that is, N is greater than 1, as shown in Figure Another example of 31 is to display a second save mode inquiry pop-up window 170 on the user interface.
  • the second save mode inquiry pop-up window 170 includes a second prompt information 171, an consent control 172 and a rejection control 173.
  • the second prompt information 171 is To ask whether you agree to use the save mode by program, the second prompt message 171 in Figure 17 is "Do you agree to save the video file by program?".
  • the processor responds to the consent instruction to save the video file by program. to save the video file; if the user triggers the rejection control 173, the processor responds to the rejection instruction and saves the video file in the entire segment saving mode.
  • the processor in response to the stop recording instruction, displays the third save mode inquiry pop-up window 180 as shown in Figure 32 on the user interface if it is found that the program playback information contains multiple program information, that is, N is greater than 1.
  • the third save mode inquiry pop-up window 180 includes a first save mode control 181, a second save mode control 182 and a non-save control 183.
  • the first save mode control 181 corresponds to the entire segment save mode
  • the second save mode control 182 corresponds to Press program save mode.
  • the code stream data cached during the recording period will be deleted and the video file will not be saved; if the user triggers any one of the first save mode control 181 and the second save mode control 182, it is necessary to follow the mode control Corresponding save mode, save this video file.
  • the mode control Corresponding save mode save this video file.
  • this embodiment when stopping the video recording task, there is no need to first ask whether to save the video file and then select the target saving mode. Instead, both are presented in the same pop-up page, simplifying the UI and user operations.
  • the processor controls the display to close the save mode inquiry pop-up window, and displays it on the user interface as shown in the example of Figure 33 program save page
  • the program information of the recorded N programs is presented to the user in the program saving page 190.
  • the program information described here should at least include the program names to facilitate user identification and filtering.
  • the M piece of target program information constitutes the first program set, 0 ⁇ M ⁇ N, and the remaining MN unselected program information consists of Second program collection.
  • the first program set is used to indicate the programs that the user is interested in and wants to save
  • the second program set is used to indicate the programs that the user is not interested in and does not want to save.
  • each program information in the program saving page 190 corresponds to a selection control 191.
  • the program saving page 190 also includes a second confirmation control 192 and a second cancellation control 193 .
  • the processor deletes the code stream data that has been cached during the recording period, that is, the program recording is completely deleted.
  • both the first program set and the second program set are non-empty true subsets.
  • the processor first converts the entire program according to the start and end points of the program playback indicated by the N pieces of program information. Divide the video recording file into N program recording sub-files, delete the sub-file corresponding to each program information in the second program collection (for ease of differentiation, this application names it the second program recording sub-file), and according to the program name, Name the sub-file corresponding to each program information in the first program collection (for ease of differentiation, this application names it as the first program recording sub-file), and store the M first program recording sub-files in the default memory , that is, some program recordings are saved and other program recordings are deleted.
  • the program saving page 190 can also be set with a select all control 194. If the user clicks all the selection controls 191, or the user triggers the select all control 194, and then triggers the second confirmation control 192, then M is equal to N, the first program set submitted by the user is the complete set, and the second program set is an empty set, then the processor divides the recording file into N program recording sub-files and names them respectively, and then stores all N program recording sub-files into Default memory without deleting any sub-files, that is, all program recordings are stored.
  • the control display prompts "Video file" in the user interface. The program has been saved successfully.”
  • the control display prompts "The video file has been saved successfully" in the user interface. After the user sees the prompt message that the video is saved successfully, he can access the preset memory at any time and watch the video file.
  • Figure 35 is a flow chart of a method for saving video files according to an embodiment of the present application. The method is executed by a processor of a display device and includes the following program steps:
  • Step S211 In response to the stop recording instruction, stop executing the video recording task and generate a video file.
  • the video recording task is used to record the program video currently played by the display device in a time-based recording mode.
  • Step S212 Query the program playback information of the display device during the recording period.
  • Step S213 Determine the target storage mode of the video file according to the program playback information.
  • Step S214 Store the video file in the default memory according to the target saving mode.
  • Figure 36 is a flow chart of another method for saving video files according to an embodiment of the present application. The method is executed by a processor of a display device and includes the following program steps:
  • Step S221 When the current time reaches the startup time, start the video recording task to record the currently played program video in the time-based recording mode.
  • Step S222 In response to the stop recording instruction, stop executing the video recording task and generate a video file.
  • Step S223 Whether the save instruction is received. If a save instruction is received, step S224 is executed; if a non-save instruction is received, step S2212 is executed.
  • Step S224 Query the program playback information of the display device during the recording period.
  • the program playback information contains N pieces of program information.
  • Step S226 Ask whether you agree to use the save mode by program. If the user agrees to use the save mode by program, step S227 is executed; if the user refuses to save by program mode, step S2211 is executed.
  • Step S227 Divide the video recording file into N program recording sub-files according to the program playback start and end points indicated by the N pieces of program information, and name the program recording sub-files according to the program name.
  • Step S228 Display a program saving page, and display the N program information on the program saving page.
  • Step S229 Receive a selection operation for M target program information in the program saving page.
  • M is less than or equal to N.
  • Step S2210 Store the first program recording sub-files corresponding to the M target program information in the default memory, and delete the second program recording sub-files corresponding to the N-M unselected program information.
  • Step S2211 Without dividing the video file, name the video file according to the current channel name, and store the video file in the default memory.
  • Step S2212 Delete the video file.
  • the user selects the time-based recording mode and sets the start time T0 and stop time TS.
  • the processor queries the EPG for the current channel in [T0, TS].
  • the first switch control 231 is displayed.
  • the first switch control 231 is used to control the opening and closing of the "automatically save by program” function.
  • the "automatically save by program” function includes two capabilities. One is that when stopping recording, there is no need to ask whether to save the video file, but the video file is automatically saved. The other is that the user does not need to select the save mode, but starts pressing the program automatically. Program saving mode.
  • the program information contained in the current channel within the [T0, TS] period is displayed on the recording task setting page, and the user can select Select the programs you are interested in and want to record, and you can choose to save all or part of the programs.
  • the program information displayed on the recording task setting page in Figure 38 is program 1, program 2, and program 3 respectively.
  • the user selects program 1 and program 3, and then triggers the third confirmation control 234.
  • the processor determines the start time T0 and the stop time. Create a video recording task using the program information of TS, program 1 and program 3.
  • the program information includes the program name and the start and end points of program playback.
  • the processor detects that the system time reaches the start time T0, starts the video recording task, and continuously records program 1, program 2, and program 3 in time sequence until it detects that the system time reaches the stop time TS, and stops executing the video recording.
  • Task Split sub-file 1 of program 1 based on T0 and T1_2, split sub-file 3 of program 3 based on T3_1 and TS, then name and save sub-file 1 and sub-file 3 respectively, and separate the sub-file of program 2 2 Delete.
  • the processor detects that the system time reaches the startup time T0, starts executing the video recording task, and starts recording program 1 until it detects that the system time reaches T1_2, and the recording of program 1 ends.
  • the video recording task can be paused immediately, that is, the processor pauses caching the video stream.
  • the display device is in the "play only but not recorded” state.
  • the processor first performs format conversion on the cached data of program 1, generates sub-file 1, and then File 1 is named and automatically saved to the default memory.
  • the processor detects that the system time reaches T3_1, immediately unpauses the task, and resumes recording program 3.
  • subfile 3 When the recording stops, subfile 3 is generated, subfile 3 is named and automatically saved to the default memory. This embodiment pauses the recording process and skips the recording link of the unselected program 2, thereby realizing dynamic adaptive segmentation of video files and automatic filtering of uninteresting programs.
  • the start time T0 of the video recording task can be moved to the starting point of program 2.
  • T2_1 the stop time TS remains the time set by the user, so that within the recording time [T0, TS], only program 2 and program 3 are recorded.
  • the stop time TS of the video recording task can be moved forward to the end of the playback of program 2.
  • the start time T0 remains unchanged at the time set by the user, so that within the recording time [T0, TS], only program 1 and program 2 are recorded.
  • the start time T0 of the video recording task can be moved later to the playback of program 2. From the starting point T2_1, move the stop time TS of the video recording task forward to the playback end point T2_2 of program 2, that is, automatically adjust the start time T0 and stop time TS to adapt to the user's program preferences, so that the recording time is [T0, TS]. Only program 2 is recorded, which is equivalent to adjusting from the time-based recording mode to the program-based recording mode.
  • the user if the user is not interested in Program 1, Program 2 and Program 3, he can reset the start time T0 and stop time TS, or trigger the third cancellation control 235 to cancel the creation of the video recording task.
  • the recording task setting page cancels the display of the program information contained in the current channel within the [T0, TS] period, and then the user triggers the third confirmation control 234, then the subsequent When recording is stopped, the processor controls the display to display the save mode inquiry pop-up window shown in Figure 28, Figure 31 or Figure 32, and controls the saving of the video file in response to the user's input of whether to save and related operating instructions of the save mode.
  • the recording task setting page cancels the display of the program information contained in the current channel within the [T0, TS] period, and displays the second switch Control 232, the second switch control 232 is used to control the opening and closing of the "automatic entire section saving" function. If the user switches the second switch control 232 to the off state, when the recording is stopped, the processor controls the display to display the save mode inquiry pop-up window shown in Figure 28, Figure 31 or Figure 32, and responds to the user's input of whether to save and whether to save.
  • the relevant operating instructions of the mode control the storage of video files; if the user switches the second switch control 232 to the on state, when stopping recording, the processor automatically stores the video files in the default memory in the entire segment saving mode, without The control display displays a save mode inquiry pop-up.
  • the processor queries the EPG for the program playback information of the current channel in the [T0, TS] period. If the query finds that only one program is played in this period, as shown in Figure 40, the recording task setting page is not displayed. Any program information displays the third switch control 233.
  • the third switch control 233 is used to control the opening and closing of the function of automatically saving video files. closure.
  • the processor controls the display to display the first inquiry pop-up window 227 as shown in Figure 24, asking the user whether to save the video file; if the user switches the third switch control 233 When it is switched to the on state, when stopping recording, there is no need to pop up a window asking whether to save the video file, but the video file will be automatically stored in the default memory.
  • the recording file can be automatically saved to the default memory in the target save mode when recording is stopped, simplifying the UI and user operations.
  • this application also provides a local memory with read and write capabilities, which is built into the display device and connected to the processor.
  • the memory is used to be controlled by the processor, based on the aforementioned saving. mechanism to save video files and support the processor to read and play video files from the memory.
  • this application also provides a removable memory with read and write capabilities.
  • the memory can be connected to a display device through an external interface (such as USB).
  • the memory is used to control the display device after being connected to the display device.
  • the processor based on the aforementioned saving mechanism, the video file is saved, and the processor is supported to read and play the video file from the memory.
  • the user can specify the storage path for saving the video file in the settings page related to the video recording function or the recording task settings page, that is, setting the default memory.
  • the user can set the default memory to be the built-in disk of the machine. , can also be set as an external removable disk (such as U disk, mobile hard disk, card reader, etc.). If the default memory is an external removable disk, the external removable disk must be effectively connected to the display device during video recording and video saving. If the processor detects that the external removable disk is disconnected, it will interrupt the video recording task and prompt User detects disk connections.
  • the default memory can sort video files according to rules such as storage time, file size, recording duration, file name, etc. For example, the files are arranged in the order of decreasing storage time, that is, the newer the files stored, the higher they are sorted. .
  • the default memory can report its own available memory to the processor in real time.
  • the processor detects that the disk has no available memory or the default memory is full, it will immediately stop video recording. task, and prompts the user that the disk is full; when the processor detects that the system time reaches the startup time T0, if the query finds that the default memory has no available memory, that is, the default memory cannot continue to save video files, the video recording will not be started. task, and prompts the user that the disk has no available memory and the recording failed.
  • the user can re-create the video recording task after clearing the disk memory or switching the storage path of the recording file.
  • the processor also calculates and updates the disk recordable time 223 displayed in the video recording interface as shown in Figure 23 based on the available memory reported by the preset memory and the resolution of the TV stream and other parameters.
  • the user may create multiple video recording tasks, and the processor may maintain a task queue.
  • video recording task A (to be executed) is added to the task queue, and each time it is executed Complete a video recording task B, remove video recording task B (executed) from the task queue, and, if video recording task C times out and is not executed, remove video recording task C (expired) from the task queue.
  • the display device may only play one channel program, that is, the video file can be saved in the entire segment saving mode; or, if multiple programs played continuously on the same channel are recorded, the video file may be saved in the per-program saving mode.
  • the entire recording file is divided into multiple sub-files corresponding to independent programs and then stored, so that users can quickly review recorded videos of programs they are interested in; this application also supports discarding recorded videos of programs that users are not interested in to reduce disk memory consumption.
  • this application can adapt to the program playback scene during the recording period, match the target saving mode of the video file, and improve the video recording function, allowing users to enjoy a more convenient and efficient video recording experience.
  • the display device 200 can also be integrated with a personal video recorder, such as a PVR (Personal video recorder, personal video recording), which is used to record programs played in the display device 200 and generate corresponding personal video recording files. Since personal video recording files recorded by users usually occupy a large storage space, the display device 200 Personal video recording files cannot be stored in the display device 200. Therefore, the display device 200 can also be connected to an external hard disk device for storing personal video recording files recorded by the user.
  • a personal video recorder such as a PVR (Personal video recorder, personal video recording)
  • PVR Personal video recorder, personal video recording
  • video files recorded by users usually contain TV programs with related content. After the user clicks to play one of the TV programs, the playback will exit. When the user wants to watch other related TV programs, he needs to manually view and click to play the other TV programs. Related TV programs are less efficient.
  • the processor 250 in the embodiment of the present application is also configured to: receive a play instruction for the first person's video recording file, and in response to the play instruction, play the first person's video video file, and obtain the program recording information corresponding to the first person's video recording file.
  • the first personal video recording file can be any personal video recording file recorded by the user, and can be stored in a hard disk device external to the display device 200 .
  • the user can send various control instructions to the display device 200 through the control device 100 to control the display device 200 .
  • the user wants to play the first personal video recording file, he or she can send a playback instruction for the first personal video recording file to the display device 200 , and the processor 250 can receive the playback instruction.
  • a database may be established in advance, and the database includes multiple personal video recording files and program recording information corresponding to the multiple personal video recording files. That is, every time the user records a personal video recording file, the personal video recording file and the program recording information corresponding to the personal video recording file can be stored in the database. It can be seen that the data stored in the database can be continuously updated.
  • the program recording information is information related to the program recorded by the user, and may include program information (such as program name, program chapter, etc.) and recording time.
  • program information such as program name, program chapter, etc.
  • recording time For TV programs, it may also include TV channel information; for online programs, it may also include network address information or application information.
  • the hard disk device can be periodically automatically cleared of files that the user has not accessed for a long time. , and earlier personal video recording files. Alternatively, you can also manually delete personal video recording files that you don't need based on your own needs.
  • the programs recorded by users usually have a certain continuity.
  • the user records the first section of a program and then records the second section of the program.
  • the user records different time periods of the same program that he or she likes.
  • the user records 0-30 minutes of the first section of a program, and then records 45-60 minutes of the first section of the program. Therefore, personal video recording files recorded by users usually have certain correlations.
  • different personal video recording files may correspond to the same program name and different program chapters, or they may correspond to the same program name and the same program chapters but different recording time, etc.
  • the processor 250 is also configured to: obtain the second personal video recording file related to the program recording information from the database based on the program recording information. . For example, the program recording information corresponding to other personal video recording files in the database is matched to obtain the second personal video recording file.
  • the processor 250 is also configured to: display playback prompt information based on the playback status of the first person's video recording file.
  • playback prompt information is displayed.
  • the playback prompt information is displayed in a preset time period before the first person's video recording file is played, that is, the playback prompt information is displayed in advance.
  • the playback prompt information is displayed 1 minute, 30 seconds, etc. before the first person's video recording file is played.
  • the playback prompt information is used to prompt whether to continue playing the second person's video recording file.
  • Figure 41 is a schematic diagram of displaying playback prompt information in an embodiment of the present application. It can be seen that in the program In the playback interface, a new interface can pop up.
  • the playback prompt information is specifically "Whether to continue playing the relevant program" and includes two buttons: “Yes” and “No".
  • a continue play instruction is issued, indicating that the user agrees to continue playing.
  • an exit instruction is issued, indicating that the user does not agree to continue playing, and the user exits. Play.
  • the processor 250 is also configured to: receive a continue playing instruction or an exit instruction; respond to the continue playing instruction, play the second personal video recording file; or respond to the exit instruction, exit playing.
  • the display device of the embodiment of the present application stores the recorded personal video recording files and the corresponding program recording information in the database by pre-establishing a database.
  • the first personal video recording file can be obtained.
  • program recording information of the personal video recording file and obtains the second personal video recording file related to the program recording information from the database according to the program recording information.
  • playback prompt information may be displayed, and the playback prompt information is used to prompt whether to continue playing the second person's video recording file. If the continue playback instruction is received, continue to play the second person's video recording file; otherwise, exit the playback.
  • a program For personal video recording files recorded by users, when a program is played, it can automatically detect the associated program for the user, prompt the user whether to play the associated program, and automatically play it if the user agrees. In this way, the user can be prevented from actively searching for and playing the programs that the user is interested in, and the efficiency of playing the programs that the user is interested in can be improved.
  • the processor 250 is configured to: when the hard disk device is detected, if the hard disk device is mounted normally, it means that the hard disk device can be used; the transmission rate of the hard disk device can be further detected; if the hard disk device If the transmission rate of the device is greater than the preset transmission rate (such as 60M/s, etc.), it means that the transmission rate of the hard disk device meets the data transmission requirements. Data can be read and written to the hard disk device, and a database is created in the hard disk device. For example, you can create the database program.db in the data partition with the following path: /data/databases/program.db. If the transmission rate of the hard disk device is less than or equal to the preset transmission rate, the user can be prompted to replace the hard disk device.
  • the preset transmission rate such as 60M/s, etc.
  • the database update process may be:
  • a recording instruction for the target program may be sent to the display device 200 through the control device 100, and the processor 250 is configured to: receive the recording instruction for the target program, In response to the recording instruction, a personal video recording file and program recording information corresponding to the target program can be generated.
  • the recording instruction may include a start instruction and a termination instruction. The start instruction is used to start recording the target program, and the termination instruction is used to end the recording of the target program.
  • the personal video recording file and program recording information corresponding to the target program can be generated. Establish a mapping relationship between the personal video recording file corresponding to the target program and the program recording information corresponding to the target program, and update the personal video recording file corresponding to the target program, the program recording information corresponding to the target program, and the mapping relationship to the database.
  • the program recording information may include path information, program name, program chapter, recording time, etc. Assume that the path information is file:///mnt/media_rw/42AA-8E24/pvr, the program name is Friends, the program chapter is chapter1, and the recording time is 04251622.
  • the program recording information can be expressed as follows:
  • the personal video recording file recorded by the user is a TV program played on a TV channel.
  • the program recording information may include TV channel information and program information, and may also include the above-mentioned path information, program chapters, and recording time. wait.
  • program recording information can be expressed as follows:
  • the processor 250 is configured to: obtain a second personal video recording file related to the program information from a pre-established database, where the second personal video recording file may not be related to the television channel information. That is to say, when obtaining the second personal video recording file, the program information can be distinguished instead of the channel information. In this way, cross-channel search can be realized, that is, more interested personal video recording files can be searched for the user. In addition, program information and channel information can also be distinguished at the same time to search for personal video recording files that users on the same channel are interested in. Afterwards, the searched personal video recording files are played according to the user's playback needs, or the playback is exited.
  • the number of program information may be multiple and arranged in sequence.
  • the sorting result can be program name and program chapter. The higher the sorting is, the larger the range corresponding to the program information is. The lower the sorting is, the wider the range corresponding to the program information is. Small.
  • the processor 250 is configured to: filter layer by layer from a pre-established database according to a single program information in the order of multiple program information, obtain a personal video recording file related to at least one program information, and obtain the personal video recording file.
  • the personal video recording file is determined to be the second personal video recording file.
  • Figure 42 is a flow chart for obtaining a second person's video recording file in an embodiment of the present application. It is assumed here that the program recording information of the first person's video recording file includes two program information, which may include the following steps :
  • Step S702 Play the first person's video recording file, and obtain the program recording information of the first person's video recording file.
  • Step S704 Obtain the first program information in the program recording information, and obtain the program recording information of other personal video recording files except the first personal video recording file from the database.
  • Step S706 Determine whether the obtained program recording information of the single personal video recording file contains the first program information. If the first program information is included, it means that the personal video recording file related to the first program information is matched, and step S708 can be performed; if the first program information is not included, it means that the personal video recording file related to the first program information is not matched. For personal video recording files, since the first program information corresponds to the largest range, if the personal video recording file related to the first program information is not matched, step S710 can be performed.
  • Step S708 Use the single personal video recording file as a candidate personal video recording file.
  • Step S710 There is no second personal video recording file related to the program information of the first personal video recording file.
  • Step S712 Determine whether the program recording information of the candidate personal video recording file contains the second program information. If the second program information is included, step S714 is executed; if the second program information is not included, step S714 may also be executed.
  • Step S714 Determine the candidate personal video recording file as the second personal video recording file.
  • the second personal video recording file determined in the above step S714 can match the first program information and the second program information at the same time. At this time, the second personal video recording file is highly related to the first personal video recording file. Or, the second person's video recording file matches the first program information but does not match the second program information. In this case, the second person's video recording file has a low degree of correlation with the first person's video recording file.
  • the directory information is as follows:
  • each of the above program recording information includes program information Friends. Further, step S712 is executed. If chapter is included, the candidate personal video recording file is determined as the second personal video recording file. Since each of the above program recording information includes program information chapter, it is finally determined that the four candidate personal video recording files are all second personal video recording files.
  • the number of the second person's video recording files is multiple, and the processor 250 is configured to: determine the second person's video recording file based on the program information of the second person's video recording file and the program information of the first person's video recording file. The degree of correlation between the video recording files of the two people and the video recording files of the first person; sort the video recording files of the second person in order from high to low to obtain the sorting result. If two or more second person video recording files have the same degree of correlation, the two or more second person video recording files can be sorted arbitrarily.
  • step S714 is executed; if the second program information is not included, step S714 is also executed. Then, the second personal video recording file determined in step S714 when the second program information is included has a higher degree of correlation than the second personal video recording file determined in step S714 when the second program information is not included. .
  • the sequence number information of the program information of the second person's video recording file may also be considered, and the second person's video recording file may be modified based on the correlation degree corresponding to the second person's video recording file.
  • Video files are sorted.
  • the four second person video recording files can be combined with the serial number information in the program information. Sort personal video recording files. Since there is no serial number information for Friends and there is serial number information for chapters, the four second person video recording files can be sorted according to chapters. The smaller the serial number information of the chapter, the earlier the corresponding video recording file of the second person can be. For the second person's video recording files with the same chapter number information, the second person's video recording files can be further sorted based on the recording time. The earlier the recording time, the earlier the corresponding second person's video recording file can be.
  • the processor 250 is configured to: when displaying the play prompt information, display the program recording information of multiple second person video recording files according to the sorting results.
  • the program information in the program recording information of multiple second person video recording files can be displayed.
  • Figure 43 is another schematic diagram of displaying playback prompt information in an embodiment of the present application. It can be seen that when the playback prompt information is displayed, the program information of the three second person video recording files is displayed. According to the program information, the user can determine whether to continue playing the corresponding second person video recording file according to his or her own preferences. When the user clicks the "Yes" button through the control device 100, a continue playing instruction is sent to the display device 200.
  • the processor 250 is configured to: respond to the continue playing instruction and sequentially play multiple second person video recording files according to the sorting results. That is, when continuing to play multiple second-person video recording files, the user does not need to select the next second-person video recording file to continue playing. At this time, the user can directly play according to the sorting result.
  • the processor 250 is configured to: receive a continue playing instruction for a single second personal video recording file among the plurality of second personal video recording files, that is, the user can also send a request to the display device 200 through the control device 100 Send a command to continue playing the video recording file of a certain second person.
  • the processor 250 may play a single second personal video recording file in response to the continue playing instruction.
  • the user wants to play program 2 in Figure 44, he can first select program 2 through the control device 100, and then send a continue play instruction through the control device 100. In this way, after the first person's video recording file is played, the second person's video recording file corresponding to program 2 can be continued to be played.
  • the display device of the embodiment of the present application can simultaneously generate the program recording information corresponding to the personal video recording file when recording and generating the personal video recording file, and combine the personal video recording file, the program recording information corresponding to the personal video recording file, and the program recording information corresponding to the personal video recording file.
  • the mapping relationship is stored in the database.
  • the relevant second person's video recording file can be automatically matched for the user based on the program recording information when the first person's video recording file is played, and based on the playback of the first person's video recording file status (such as when playback is completed, or when playback is about to be completed), playback prompt information can be displayed to prompt the user whether to play the second person's video recording file.
  • the second personal video recording file can be unrelated to the TV channel information to achieve cross-channel recording program search and automatic continuous playback, thereby improving the efficiency of playing videos that are of interest to the user, thereby improving the user experience.
  • Figure 44 is a flow chart of a video processing method in an embodiment of the present application, which may include the following steps:
  • Step S902 Receive a play instruction for the first person's video recording file, respond to the play instruction, play the first person's video recording file, and obtain the program recording information of the first person's video recording file.
  • Step S904 According to the program recording information, obtain a second personal video recording file related to the program recording information from a pre-established database; the database includes multiple personal video recording files and program recording information corresponding to the multiple personal video recording files.
  • Step S906 Display playback prompt information based on the playback status of the first person's video recording file.
  • the playback prompt information is used to prompt whether to continue playing the second person's video recording file.
  • Step S908 Receive a continue playing instruction or an exit instruction; respond to the continue playing instruction, continue playing the second personal video recording file; or respond to the exit instruction, exit playing.
  • the program recording information includes TV channel information and program information; then, when performing step S904, it specifically includes: obtaining a second personal video recording file related to the program information from a pre-established database, and the second personal video recording file is related to the program information.
  • TV channel information is not relevant.
  • the number of program information is multiple and arranged in sequence; then, when performing step S904, it specifically includes: in the order of multiple program information, according to a single program information in sequence, from the pre-established database Perform layer-by-layer screening to obtain personal video recording files related to at least one program information, and determine the obtained personal video recording file as the second personal video recording file.
  • the above video processing method further includes: based on the program information of the second person's video recording file and the first person's video
  • the program information of the recording file determines the degree of correlation between the second person's video recording file and the first person's video recording file; sorts multiple second person's video recording files in order from high to low degree of correlation, and obtains the sorting result.
  • the playback prompt information is displayed, the program recording information of multiple second person video recording files is displayed according to the sorting results.
  • step S908 when continuing to play the second personal video recording file in response to receiving the continue playing instruction in step S908, it specifically includes: responding to the continuing playing instruction, and sequentially playing multiple second personal video recording files according to the sorting result.
  • step S908 when continuing to play the second person's video recording file in response to receiving the continue playing instruction in step S908, it specifically includes: receiving a single second person's video recording among the multiple second person's video recording files. Continue playback instruction of the file; in response to the continue playback instruction, play a single second person video recording file.
  • the above video processing method after the user inserts the hard disk device into the display device, the above video processing method also includes: when the hard disk device is detected, if the hard disk device is mounted normally, detecting the transmission rate of the hard disk device; if the transmission rate of the hard disk device is greater than Preset transfer rate and create database in hard disk device.
  • Figure 45 is a flow chart for updating the database in this embodiment of the present application, which may include the following steps:
  • Step S1002 Receive a recording instruction for the target program, and generate a personal video recording file and program recording information corresponding to the target program in response to the recording instruction.
  • Step S1004 Establish a mapping relationship between the personal video recording file corresponding to the target program and the program recording information corresponding to the target program.
  • Step S1006 Update the personal video recording file corresponding to the target program, the program recording information corresponding to the target program, and the mapping relationship into the database.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请公开了一种显示设备及用于显示设备的处理方法,该显示设备包括显示器和处理器,处理器被配置为:获取用户添加定时任务时的当前时间戳和上电时间戳,以及定时任务的计划执行时间戳;如果定时任务未执行且单位时间内系统时间变化值超过预设值,获取第一系统时间变化后的当前时间戳和上电时间戳;根据添加定时任务时的当前时间戳和上电时间戳,定时任务的计划执行时间戳,以及第一系统时间变化后的当前时间戳和上电时间戳,计算第一系统时间变化后的定时任务执行时间戳;根据第一系统时间变化后的定时任务执行时间戳更新该定时任务的计划执行时间戳,从而确保定时任务在时间同步后仍可以以准确的执行。

Description

一种显示设备及用于显示设备的处理方法
相关申请的交叉引用
本申请要求在2022年04月08日提交、申请号为202210371409.9;在2022年04月08日提交、申请号为202210380729.0;在2022年06月30日提交、申请号为202210767184.9的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及智能显示设备技术领域,尤其涉及一种显示设备及用于显示设备的处理方法。
背景技术
Android电视定时任务像延迟关机、定时开机、预约录制等,一般都是通过原生闹钟管理服务(AlarmManager)设定指定时间戳来执行。当时间进行同步时,即时间戳更新后,闹钟管理服务仍按照原来的执行时间戳来执行,会造成任务提前或延后执行的问题,甚至会出现因时间戳提前量过多,导致计划任务不执行的情况。
发明内容
本申请实施例提供一种显示设备,包括:显示器;处理器,被配置为:获取用户添加定时任务时的当前时间戳和上电时间戳,以及所述定时任务的计划执行时间戳;如果定时任务未执行且单位时间内系统时间变化值超过预设值,获取第一系统时间变化后的当前时间戳和上电时间戳;根据添加定时任务时的当前时间戳和上电时间戳,所述定时任务的计划执行时间戳,以及第一系统时间变化后的当前时间戳和上电时间戳,计算第一系统时间变化后的定时任务执行时间戳;根据所述第一系统时间变化后的定时任务执行时间戳更新所述定时任务的计划执行时间戳。
本申请实施例提供一种用于显示设备的处理方法,包括:获取用户添加定时任务时的当前时间戳和上电时间戳,以及所述定时任务的计划执行时间戳;如果定时任务未执行且单位时间内系统时间变化值超过预设值,获取第一系统时间变化后的当前时间戳和上电时间戳;根据添加定时任务时的当前时间戳和上电时间戳,所述定时任务的计划执行时间戳,以及第一系统时间变化后的当前时间戳和上电时间戳,计算第一系统时间变化后的定时任务执行时间戳;根据所述第一系统时间变化后的定时任务执行时间戳更新所述定时任务的计划执行时间戳。
本申请实施例提供一种录像文件的保存方法,包括:响应于停止录制指令,停止执行视频录制任务,生成录像文件;所述视频录制任务用于以按时间录制模式,录制显示设备当前播放的节目视频;查询在录制时段内显示设备的节目播放信息;根据所述节目播放信息,确定所述录像文件的目标保存模式;按照所述目标保存模式,将所述录像文件存入预设存储器内。
本申请实施例提供了一种视频处理方法,包括:接收针对第一个人视频录像文件的播放指令,响应于所述播放指令,播放所述第一个人视频录像文件,并获取所述第一个人视频录像文件的节目录制信息;根据所述节目录制信息,从预先建立的数据库中获取与所述 节目录制信息相关的第二个人视频录像文件;所述数据库包括多个个人视频录像文件和所述多个个人视频录像文件分别对应的节目录制信息;基于所述第一个人视频录像文件的播放状态,显示播放提示信息,所述播放提示信息用于提示是否继续播放所述第二个人视频录像文件;接收继续播放指令或退出指令;响应于所述继续播放指令,继续播放所述第二个人视频录像文件;或者,响应于所述退出指令,退出播放。
附图说明
图1为本申请一些实施例的显示设备与控制装置之间操作场景的示意图;
图2为本申请一些实施例的控制设备100的硬件配置框图;
图3为本申请一些实施例的显示设备200的硬件配置框图;
图4A为本申请一些实施例的显示设备200中软件配置图;
图4B为本申请一些实施例的显示设备200中应用程序的图标控件界面显示示意图;
图5为本申请一些实施例的用户与处理器的交互流程图;
图6为本申请一些实施例的时间设置页面的示意图;
图7为本申请一些实施例的自动确定日期和时间页面的示意图;
图8为本申请一些实施例的时间设置页面的示意图;
图9为本申请一些实施例的系统时间已更新提示页面的示意图;
图10为本申请一些实施例的计时页面的示意图;
图11为本申请一些实施例的自动开机时间设置页面的示意图;
图12为本申请一些实施例的自动开机时间提醒页面的示意图;
图13为本申请一些实施例的定时关机时间设置页面的示意图;
图14为本申请一些实施例的自动关机时间提醒页面的示意图;
图15为本申请一些实施例的信号源选择页面的示意图;
图16为本申请一些实施例的频道播放页面下菜单栏的示意图;
图17为本申请一些实施例的预约录制设置页面的示意图;
图18为本申请一些实施例的预约录制时间提醒页面的示意图;
图19为本申请实施例的节目播放界面的示意图;
图20为本申请实施例的用户与显示设备进行语音交互的示意图;
图21为本申请实施例的录制任务设置页面的示意图一;
图22为本申请实施例的录制任务设置页面的示意图二;
图23为本申请实施例的一种视频录制界面的示意图;
图24为本申请实施例的录制结束时的界面显示效果图;
图25为本申请实施例的按时间录制模式下的播放时间轴;
图26为本申请实施例的按时间录制模式结束时,磁盘保存文件的示意图;
图27为本申请实施例的按节目录制模式结束时,磁盘保存文件的示意图;
图28为本申请实施例的按时间录制模式结束时,第一保存模式询问弹窗的示意图;
图29为本申请实施例的按节目保存模式的保存机制;
图30为本申请实施例的一种显示设备的节目播放/录制时间轴;
图31为本申请实施例的按时间录制模式结束时,第二保存模式询问弹窗的示意图;
图32为本申请实施例的按时间录制模式结束时,第三保存模式询问弹窗的示意图;
图33为本申请实施例的用户选择按节目保存模式后,UI显示节目保存页面的示意图;
图34为本申请实施例的采用按节目保存模式时,磁盘保存文件的示意图;
图35为本申请实施例的一种录像文件的保存方法的流程图;
图36为本申请实施例的另一种录像文件的保存方法的流程图;
图37为本申请实施例的录制任务设置页面的示意图三;
图38为本申请实施例的录制任务设置页面的示意图四;
图39为本申请实施例的录制任务设置页面的示意图五;
图40为本申请实施例的录制任务设置页面的示意图五;
图41为本申请实施例中显示播放提示信息的一种示意图;
图42为本申请实施例中获取第二个人视频录像文件的一种流程图;
图43为本申请实施例中显示播放提示信息的又一种示意图;
图44为本申请实施例中视频处理方法的一种流程图;
图45为本申请实施例中更新数据库的一种流程图。
具体实施方式
为使本申请的目的和实施方式更加清楚,下面将结合本申请示例性实施例中的附图,对本申请示例性实施方式进行清楚、完整地描述,显然,描述的示例性实施例仅是本申请一部分实施例,而不是全部的实施例。
需要说明的是,本申请中对于术语的简要说明,仅是为了方便理解接下来描述的实施方式,而不是意图限定本申请的实施方式。除非另有说明,这些术语应当按照其普通和通常的含义理解。
本申请实施方式提供的显示设备可以具有显示功能的终端设备,该终端设备具有多种实施形式,例如,可以是电视、智能电视、激光投影设备、显示器(monitor)、电子白板(electronic bulletin board)、电子桌面(electronic table)、电脑、学习机等。图1和图2为本申请的显示设备的一种具体实施方式。
图1为本申请一些实施例的显示设备与控制装置之间操作场景的示意图。如图1所示,用户可通过智能设备300或控制装置100操作显示设备200。
在一些实施例中,控制装置100可以是遥控器,遥控器和显示设备的通信包括红外协议通信或蓝牙协议通信,及其他短距离通信方式,通过无线或有线方式来控制显示设备200。用户可以通过遥控器上按键、语音输入、控制面板输入等输入用户指令,来控制显示设备200。
在一些实施例中,也可以使用智能设备300(如移动终端、平板电脑、计算机、笔记本电脑等)以控制显示设备200。例如,使用在智能设备上运行的应用程序控制显示设备200。
在一些实施例中,显示设备可以不使用上述的智能设备或控制设备接收指令,而是通过触摸或者手势等接收用户的控制。
在一些实施例中,显示设备200还可以采用除了控制装置100和智能设备300之外的方式进行控制,例如,可以通过显示设备200设备内部配置的获取语音指令的模块直接接收用户的语音指令控制,也可以通过显示设备200设备外部设置的语音控制设备来接收用户的语音指令控制。
在一些实施例中,显示设备200还可以与服务器400进行数据通信。可允许显示设备200通过局域网(LAN)、无线局域网(WLAN)和其他网络进行通信连接。服务器400可以向显示设备200提供各种内容和互动。服务器400可以是一个集群,也可以是多个集群,可以包括一类或多类服务器。显示设备200除了提供广播接收电视功能之外,还可以附加提供计算机支持功能的智能网络电视功能。
图2为本申请一些实施例的控制装置100的硬件配置框图。如图2所示,控制装置100包括处理器110、通信接口130、用户输入/输出接口140、存储器、供电电源。控制装置100可接收用户的输入操作指令,且将操作指令转换为显示设备200可识别和响应的指令,起用用户与显示设备200之间交互中介作用。通信接口130用于和外部通信,包含WIFI芯片,蓝牙模块,NFC或可替代模块中的至少一种。用户输入/输出接口140包含麦克风,触摸板,传感器,按键或可替代模块中的至少一种。
图3为本申请一些实施例的显示设备200的硬件配置框图。如图3,显示设备200包括调谐解调器210、通信器220、检测器230、外部装置接口240、处理器250、显示器260、音频输出接口270、存储器、供电电源、用户接口中的至少一种。
在一些实施例中,处理器250包括处理器,视频处理器,音频处理器,图形处理器,RAM,ROM,用于输入/输出的第一接口至第n接口。
显示器260包括用于呈现画面的显示屏组件,以及驱动图像显示的驱动组件,用于接收源自处理器输出的图像信号,进行显示视频内容、图像内容以及菜单操控界面的组件以及用户操控UI界面。
显示器260可为液晶显示器、OLED显示器、以及投影显示器,还可以为一种投影装置和投影屏幕。
通信器220是用于根据各种通信协议类型与外部设备或服务器进行通信的组件。例如:通信器可以包括Wifi模块,蓝牙模块,有线以太网模块等其他网络通信协议芯片或近场通信协议芯片,以及红外接收器中的至少一种。显示设备200可以通过通信器220与外部控制设备100或服务器400建立控制信号和数据信号的发送和接收。
用户接口,可用于接收控制装置100(如:红外遥控器等)的控制信号。
检测器230用于采集外部环境或与外部交互的信号。例如,检测器230包括光接收器,用于采集环境光线强度的传感器;或者,检测器230包括图像采集器,如摄像头,可以用于采集外部环境场景、用户的属性或用户交互手势,再或者,检测器230包括声音采集器,如麦克风等,用于接收外部声音。
外部装置接口240可以包括但不限于如下:高清多媒体接口(HDMI)、模拟或数据高清分量输入接口(分量)、复合视频输入接口(CVBS)、USB输入接口(USB)、RGB端口等任一个或多个接口。
调谐解调器210通过有线或无线接收方式接收广播系统的信号,以及从多个无线或有线广播电视信号中解调出音视频信号,如以及EPG数据信号。
在一些实施例中,处理器250和调谐解调器210可以位于不同的分体设备中,即调谐解调器210也可在处理器250所在的主体设备的外置设备中,如外置机顶盒等。
处理器250,通过存储在存储器上中各种软件控制程序,来控制显示设备的工作和响应用户的操作。处理器250控制显示设备200的整体操作。例如:响应于接收到用于选择在显示器260上显示UI对象的用户命令,处理器250便可以执行与由用户命令选择的对 象有关的操作。
在一些实施例中处理器包括中央处理器(Central Processing Unit,CPU),视频处理器,音频处理器,图形处理器(Graphics Processing Unit,GPU),RAM Random Access Memory,RAM),ROM(Read-Only Memory,ROM),用于输入/输出的第一接口至第n接口,通信总线(Bus)等中的至少一种。
用户可在显示器260上显示的图形用户界面(GUI)输入用户命令,则用户输入接口通过图形用户界面(GUI)接收用户输入命令。或者,用户可通过输入特定的声音或手势进行输入用户命令,则用户输入接口通过传感器识别出声音或手势,来接收用户输入命令。
图4A为本申请一些实施例的显示设备200中软件配置示意图,参见图4A,在一些实施例中,将系统分为四层,从上至下分别为应用程序(Applications)层(简称“应用层”),应用程序框架(Application Framework)层(简称“框架层”),安卓运行时(Android runtime)和系统库层(简称“系统运行库层”),以及内核层。
在一些实施例中,内核层是硬件和软件之间的层。如图4A所示,内核层至少包含以下驱动中的至少一种:音频驱动、显示驱动、蓝牙驱动、摄像头驱动、WIFI驱动、USB驱动、HDMI驱动、传感器驱动(如指纹传感器,温度传感器,压力传感器等)、以及电源驱动等。
图4B为本申请一些实施例的显示设备200中应用程序的图标控件界面显示示意图,如图4B中所示,应用程序层包含至少一个应用程序可以在显示器中显示对应的图标控件,如:直播电视应用程序图标控件、视频点播应用程序图标控件、媒体中心应用程序图标控件、应用程序中心图标控件、游戏应用图标控件等。直播电视应用程序,可以通过不同的信号源提供直播电视。视频点播应用程序,可以提供来自不同存储源的视频。不同于直播电视应用程序,视频点播提供来自某些存储源的视频显示。媒体中心应用程序,可以提供各种多媒体内容播放的应用程序。应用程序中心,可以提供储存各种应用程序。
Android电视定时任务像延迟关机、定时开机、预约录制等,一般都是通过原生闹钟管理服务(AlarmManager)设定指定时间戳来执行。当时间进行同步时,即时间戳更新后,闹钟管理服务仍按照原来的执行时间戳来执行,会造成任务提前或延后执行的问题,甚至会出现因时间戳提前量过多,导致计划任务不执行的情况。例如:用户在北京时间2022年1月1号16点0分0秒(时间戳为1641024000)时,制定30分钟后(时间戳为1641025800)关机的定时任务,此时电视时间从网络同步提前了29分钟,此时电视时间变为2022年1月1号16点29分0秒,时间戳也相应变化为1641025740,则电视将会在1分钟后关机,定时任务被提前执行,与用户预期不符。
为了解决以上技术问题,本申请实施例提供一种显示设备,显示设备的结构及各部分的功能可以参阅上述实施例。此外,在上述实施例示出的显示设备的基础上,本实施例对显示设备的一些功能做了进一步的完善。如图5所示,图5为本申请一些实施例的用户与显示设备的交互流程图。
在一些实施例中,用户在使用显示设备的过程中会根据需要设置定时任务。所述方法包括:步骤S501:输入添加定时任务的确认指令。
响应于用户输入的添加定时任务的确认指令,添加定时任务,并获取用户添加定时任务时的当前时间戳和上电时间戳,以及定时任务的计划执行时间戳(步骤S502)。
在一些实施例中,通过闹钟管理服务(AlarmManager)添加定时任务。闹钟管理服务 是android中系统自带的一个提醒服务,用来执行定时任务,当时间戳到达定时任务的执行时间时,闹钟管理服务便会执行该任务。
时间戳(timestamp),通常是一个字符序列,唯一地标识某一刻的时间,是指格林威治时间1970年01月01日00时00分00秒(北京时间1970年01月01日08时00分00秒)起至现在的总秒数。当Android显示设备的系统时间发生变化时,显示设备的时间戳也会相应发生变化。
在一些实施例中,用户在制定定时任务时,通过System.currentTimeMillis()(当前时间戳获取接口)获取添加定时任务时的当前时间戳,并计算定时任务计划执行的时间戳,通过SystemClock.elapsedRealtime()(上电时间戳获取接口)获取添加定时任务时的上电时间戳。
在一些实施例中,添加定时任务时的当前时间戳具体是指用户在输入添加定时任务的确认指令时系统时间显示的时间戳,添加定时任务时的上电时间戳具体是指从显示设备上电开始至用户在输入添加定时任务确认指令时的时间戳。定时任务的计划执行时间戳是以当前显示的系统时间为准计算得到定时任务的计划执行时间戳。需要说明的是,显示设备上电是指显示设备接入电源,当前显示设备的状态包括正常工作状态、睡眠状态和待机状态。
例如:用户在输入添加定时任务的确认指令的时间为2022年1月1日9:00:00;显示设备上电的时间为2022年1月1日8:00:00;用户设置的定时任务执行时间为2022年1月1日10:00:00,那么添加定时任务时的当前时间戳为1640998800,添加定时任务时的上电时间戳3600,定时任务的计划执行时间戳为1641002400。
步骤S503:监听定时任务是否执行。
在一些实施例中,以定时关机为例,用户设置在30分钟后关机,可持续或定时监听显示设备是否关机;如果显示设备已关机,说明定时任务已执行,则不执行任何操作;如果显示设备未关机,说明定时任务未执行,监听单位时间内系统时间变化值是否超过预设值(S504),若是,则执行步骤S505,若否,则执行步骤S503。
在一些实施例中,显示设备上的系统时间随着时间推移一直在变化,但是如果单位时间内系统时间变化值超过预设值,说明系统时间被用户手动修改或同网络时间同步对其进行了修改。
在一些实施例中,通过注册Intent.ACTION_TIME_CHANGED(时间变化)广播接收器实现监听显示设备的系统时间是否变化或是单位时间内系统时间变化值超过预设值。
在一些实施例中,显示设备的系统时间同步或修改可通过时间设置页面进行设置。图6为本申请一些实施例的时间设置页面的示意图。参阅图6所示,时间设置页面包括自动确定日期和时间控件61、设置日期控件62、设置时间控件63、设置时区控件64和使用24小时制控件65,所述页面还包括指示任一控件被选择的选择器66。当前选择器66指示自动确定日期和时间控件61被选择,用户可按压控制装置的确认键,响应于用户输入的指令,显示如图7所示的页面。图7为本申请一些实施例的自动确定日期和时间页面的示意图。图7所示的页面包括使用网络提供的时间控件71、关闭控件72和指示任一控件被选择的选择器73。用户如果选中使用网络提供的时间控件71,如图8所示,可自动从网络同步时间且用户不能自行修改系统时间。在图6中,用户选中设置时间控件63,用户可手动修改系统时间。
需要说明的是,选择器用于指示其中任一控件已被选择,如焦点对象。一方面,可根据用户通过控制装置的输入,控制显示设备中显示焦点对象的移动来选择或控制控件。如:用户可通过控制装置上方向键控制焦点对象在控件之间的移动来选择和控制控件。另一方面,可根据用户通过控制装置的输入,控制显示设备中显示的各控件的移动来使得焦点对象选择或控制控件。如:用户可通过控制装置上方向键控制各控件一并进行左右移动,以在保持焦点对象的位置不变时使得焦点对象选择和控制控件。
选择器的标识形式通常多样化。示例的,通过放大控件来实现或标识焦点对象的位置,通过设置控件背景色来实现或标识焦点对象的位置,也可以通过改变聚焦控件的文本或图像的边框线、尺寸、颜色、透明度和轮廓和/或字体等标识焦点对象的位置。
在一些实施例中,所述单位时间内系统时间变化值超过预设值,包括:用户手动设置系统时间时,单位时间内系统时间变化值超过预设值。例如:当前显示设备的系统时间上午8:00:00,用户将系统时间手动修改为8:30:00,单位时间为1S,预设值为1S。也就是说,在1S后,系统时间应该为8:00:01,但是系统时间却为8:30:00,变化值超过1S。
在一些实施例中,所述单位时间内系统时间变化值超过预设值,包括:通过网络同步系统时间后,单位时间内系统时间变化值超过预设值。例如:当前显示设备的系统时间上午8:00:00,网络同步时间后修改为8:00:30,单位时间为1S,预设值为1S。也就是说,在1S后,系统时间应该为8:00:01,但是系统时间却为8:00:30,变化值超过1S。
在一些实施例中,如果在执行步骤S503,监听定时任务是否执行时,确定定时任务未执行,处理器还可以执行步骤:监听用户是否手动修改系统时间或网络时间是否同步,以代替步骤S504。具体实施中,如果监听用户输入手动修改系统时间的指令或网络时间进行同步,执行步骤S505;如果未监听用户输入手动修改系统时间的指令和网络时间进行同步,处理器执行步骤S503。
步骤S505:获取第一系统时间变化后的当前时间戳和上电时间戳。
在一些实施例中,通过System.currentTimeMillis()(当前时间戳获取接口)获取第一系统时间变化后的当前时间戳,通过SystemClock.elapsedRealtime()(上电时间戳获取接口)获取第一系统时间变化后的上电时间戳。
在一些实施例中,第一系统时间变化后的当前时间戳具体是指第一次用户修改后或网络同步后的系统时间戳,第一系统时间变化后的上电时间戳具体是指从显示设备上电开始至第一次用户修改时间或网络同步时间的时间戳。
步骤S506:根据添加定时任务时的当前时间戳和上电时间戳,以及定时任务的计划执行时间戳,以及第一系统时间变化后的当前时间戳和上电时间戳,计算第一系统时间变化后的定时任务执行时间戳。
在一些实施例中,添加定时任务时的当前时间戳和上电时间戳,以及所述定时任务的计划执行时间戳,以及第一系统时间变化后的当前时间戳和上电时间戳,计算第一系统时间变化后的定时任务执行时间戳的步骤,具体包括:根据添加定时任务时的当前时间戳和上电时间戳,以及,所述第一系统时间变化后的当前时间戳和上电时间戳,计算第一系统时间变化量;根据所述定时任务的计划执行时间戳和所述第一系统时间变化量,计算第一系统时间变化后的定时任务执行时间戳。
本申请实施例中,第一系统时间变化后的定时任务执行时间戳的计算方法,具体包括:添加定时任务时的当前时间戳A1和上电时间戳B1,以及,第一系统时间变化后的当前时 间戳A2和上电时间戳B2,计算第一系统时间变化量C1:C1=(A2-A1)-(B2-B1)。
在一些实施例中,第一系统时间变化量C1=(第一时间变化后的当前时间戳A2与上电时间戳B2的差值)-(添加定时任务时的当前时间戳A1与上电时间戳B1的差值);即C1=(A2-B2)-(A1-B1)。
然后,根据定时任务的计划执行时间戳P1和第一系统时间变化量C1,计算第一系统时间变化后的定时任务执行时间戳P2:P2=P1+C1。
例如:添加定时任务时的当前时间戳A1为1640998800(2022年1月1日9:00:00),添加定时任务时的上电时间戳B1为3600,定时任务的计划执行时间戳P1为1641002400(2022年1月1日10:00:00);第一系统时间变化后的当前时间戳A2为1641000600(2022年1月1日9:30:00)和上电时间戳B2为5000;第一系统时间变化量C1=(A2-A1)-(B2-B1)=(1641000600-1640998800)-(5000-3600)=400;第一系统时间变化后的定时任务执行时间戳P2=P1+C1=1641002400+400=1641002800(2022年1月1日10:06:40)。
步骤S507:根据第一系统时间变化后的定时任务执行时间戳更新定时任务的计划执行时间戳。
在一些实施例中,在执行步骤S506计算得到第一系统时间变化后的定时任务执行时间戳后,执行步骤S507,通知闹钟管理服务(AlarmManager)将第一系统时间变化后的定时任务执行时间戳更新到定时任务的计划执行时间戳。
步骤S508:检测当前显示设备是否是工作状态。
在一些实施例中,在执行步骤S508时,具体包括:检测当前显示设备的显示屏幕是否开启。如果显示屏幕开启,说明当前显示设备处于工作状态,用户正在使用显示设备,则执行步骤S509;如果显示设备的显示屏幕未开启,说明当前显示设备处于睡眠状态或待机状态,则不执行任何操作。
步骤S509:控制显示器显示信息提示框。其中,信息提示框用于提示用户系统时间已更新,信息提示框还用于提示所述系统时间更新后定时任务的执行时间。
在一些实施例中,定时任务执行时间戳精确到秒,但是用户不需要知道太具体的时间,在显示更新后定时任务的执行时间可只显示到分钟即可。例如:定时任务精确执行时间为8:12:34,信息提示框定时任务的执行时间为8:12。
图9为本申请一些实施例的系统时间已更新提示页面的示意图。图9所示的页面包括信息提示框91,信息提示框91包括提示信息,提示信息可以是系统时间已更新,定时任务将在XX:XX执行。信息提示框宽高小于显示屏幕的宽高;信息提示框可设置在用户界面的任意位置;系统时间已更新提示页面中非信息提示框得部分设置成透明或半透明状态,以避免遮挡住原来的用户界面。在系统时间已更新提示页面显示预设时长后,取消显示系统时间已更新提示页面。
在一些实施例中,当系统显示时间到达定时任务的计划执行时间戳后,处理器执行对应的定时任务。
在一些实施例中,用户在添加定时任务至执行定时任务的过程中,可能涉及不止一次的系统时间变化,定时任务计划执行时间戳更新方法,在步骤S507或步骤S509后,还可包括以下步骤:
记录第一系统时间变化后的当前时间戳和上电时间戳;
判断定时任务是否执行;
如果定时任务未执行,判断单位时间内系统时间变化值是否超过预设值;
如果单位时间内系统时间变化值超过预设值,获取第二系统时间变化后的当前时间戳和上电时间戳;
根据第一系统时间变化后的当前时间戳和上电时间戳,所述定时任务的计划执行时间戳,以及第二系统时间变化后的当前时间戳和上电时间戳,计算第二系统时间变化后的定时任务执行时间戳;
根据所述第二系统时间变化后的定时任务执行时间戳更新所述定时任务的计划执行时间戳。
判断当前显示设备是否是工作状态;
如果当前显示设备是工作状态,控制显示器显示信息提示框。
在一些实施例中,第一系统时间变化后的当前时间戳A2、上电时间戳B2和定时任务的计划执行时间戳P2;第二系统时间变化后的当前时间戳A3和上电时间戳B3。
根据第一系统时间变化后的当前时间戳A2和上电时间戳B2,以及第二系统时间变化后的当前时间戳A3和上电时间戳B3,计算第二系统时间变化量C2;即C2=(A3-A2)-(B3-B2)。
根据第一系统时间变化后的定时任务执行时间戳和第二系统时间变化量,计算第二系统时间变化后的定时任务执行时间戳P3;即P3=P2+C2。
例如:第一系统时间变化后的当前时间戳A2为1641000600(2022年1月1日9:30:00)和上电时间戳B2为5000,定时任务的执行时间戳P2为1641002800(2022年1月1日10:06:40);第二系统时间变化后的当前时间戳A3为1641001200(2022年1月1日9:40:00)和上电时间戳B3为5200;第二系统时间变化量(A3-A2)-(B3-B2)=(1641001200-1641000600)-(5200-5000)=400;第二系统时间变化后的定时任务执行时间戳P3=P2+C2=1641002800+400=1641003200(2022年1月1日10:13:20)。
在一些实施例中,记录第二系统时间变化后的当前时间戳和上电时间戳,以便当再次发生系统时间改变时计算定时任务的执行时间。
在一些实施例中,用户在添加定时任务至执行定时任务的过程中,可能涉及不止一次的系统时间变化,定时任务执行时间戳更新方法,在步骤S507或步骤S509后,处理器执行以下步骤:
记录添加定时任务时定时任务的计划执行时间戳;
判断定时任务是否执行;
如果定时任务未执行,判断单位时间内系统时间变化值是否超过预设值;
如果单位时间内系统时间变化值超过预设值,获取第二系统时间变化后的当前时间戳和上电时间戳;
根据添加定时任务时的当前时间戳和上电时间戳,添加定时任务时定时任务的计划执行时间戳,以及第二系统时间变化后的当前时间戳和上电时间戳,计算第二系统时间变化后的定时任务执行时间戳;
根据所述第二系统时间变化后的定时任务执行时间戳更新所述定时任务的计划执行时间戳。
判断当前显示设备是否是工作状态;
如果当前显示设备是工作状态,控制显示器显示信息提示框。
在一些实施例中,添加定时任务时的当前时间戳A1、上电时间戳B1和添加定时任务时定时任务的计划执行时间戳P1;第二系统时间变化后的当前时间戳A3和上电时间戳B3。
根据添加定时任务时的当前时间戳A1和上电时间戳B1,以及第二系统时间变化后的当前时间戳A3和上电时间戳B3,计算第二系统时间变化量C2;即C2=(A3-A1)-(B3-B1)。
根据添加定时任务时的定时任务计划执行时间戳和第二系统时间变化量,计算第二系统时间变化后的定时任务执行时间戳P3;即P3=P1+C2。
例如:添加定时任务时的当前时间戳A1为1640998800(2022年1月1日9:00:00),添加定时任务时的上电时间戳B1为3600,添加定时任务时定时任务的计划执行时间戳P1为1641002400(2022年1月1日10:00:00);第二系统时间变化后的当前时间戳A3为1641001200(2022年1月1日9:40:00)和上电时间戳B3为5200;第二系统时间变化量C2=(A3-A1)-(B3-B1)=(1641001200-1640998800)-(5200-3600)=800;第二系统时间变化后的定时任务执行时间戳P3=P1+C2=1641002400+800=1641003200(2022年1月1日10:13:20)。
在一些实施例中,上述定时任务包括定时开机、定时关机和预约录制。下面对不同定时任务类型进行举例说明。
实施例一:定时开机
用户可以通过打开设置页面,在设置页面中选择高级设置,打开高级设置页面后选择计时后,打开计时页面。图10为本申请一些实施例的计时页面的示意图。图10所示的页面包括定时关机控件101、自动定时开机模式控件102、自动开机时间控件103、自动定时关机模式控件104,所示页面还包括指示任一控件被选择的选择器105,图10所示的页面还包括指示任一控件被选择的选择器106。
当用户选中自动定时开机模式控件102并开启定时开机模式(仅一次),同时选中自动开机时间控件后,响应于用户的指令,显示如图11所示页面,图11为本申请一些实施例的自动开机时间设置页面的示意图。用户可在图11中设置自动开机时间。如果在用户关机(显示设备待机)前系统时间发生变化(如用户手动修改系统时间或网络时间同步),计算并更新系统时间发生变化后的自动开机时间,并提示用户系统时间已更新,以及告知定时开机任务的最新执行时间,如图12所示。图12为本申请一些实施例的自动开机时间提醒页面的示意图。如果在用户关机(显示设备待机)后系统时间发生变化(网络时间同步),计算并更新系统时间发生变化后的自动开机时间。
实施例二:定时关机
用户可以通过打开设置页面,在设置页面中选择高级设置,打开高级设置页面后选择计时后,打开计时页面。图10是一实施例的计时页面的示意图。图10所示的页面包括定时关机控件101、自动定时开机模式控件102、自动开机时间控件103、自动定时关机模式控件104,所示页面还包括指示任一控件被选择的选择器105。
当用户选中定时关机控件101后,响应于用户的指令,显示如图13所示页面,图13为本申请一些实施例的定时关机时间设置页面的示意图。用户可在图13中设置延时关机的时间。当系统时间发生变化(如用户手动修改系统时间或网络时间同步),计算并更新系统时间发生变化后的延时关机时间,并提示用户系统时间已更新,以及告知定时关机任务的最新执行时间,如图14所示。图14为本申请一些实施例的自动关机时间提醒页面的示意图。
实施例三:预约录制
用户可以在显示设备显示的首页中打开信号源页面。图15为本申请一些实施例的信号源选择页面的示意图。用户在图15中选择TV控件151进入Live TV应用程序,观看电视有线信号。
用户可通过按压控制装置的录制键或在频道播放页面下通过控制装置调出如图16所示的菜单栏,在菜单栏中选中录制控件161,进入预约录制设置页面。图17为本申请一些实施例的预约录制设置页面的示意图。图17所示的页面包括录制模式控件171、开始时间控件172、结束时间控件173、频率控件174、保存控件175和取消控件176,所示的页面还包括指示任一控件被选择的选择器177。
用户在设置完预约录制的开始时间和结束时间后,选中保存控件即可完成预约录制的设置。需要说明的是,预约录制包含两个执行时间。所以在系统时间变化时需要对两个执行时间戳进行计算。如果在用户关机(显示设备待机)前系统时间发生变化(如用户手动修改系统时间或网络时间同步),计算并更新系统时间发生变化后的预约录制的开始时间和结束时间,并提示用户系统时间已更新并告知预约录制任务的最新执行时间,如图18所示。图18为本申请一些实施例的预约录制时间提醒页面的示意图。如果在用户关机(显示设备待机)后系统时间发生变化(网络时间同步),计算并更新系统时间发生变化后的预约录制的开始时间和结束时间。
这样,本申请实施例通过计算系统时间变化后时间戳变化量来自动调节定时任务的执行时间戳,避免任务提前执行或延后执行的情况;自动调节任务时间戳时,还提示用户该任务时间点已更新,并告知任务最新时间点,具有更好的用户体验;同时,也不会出现因时间变化量提前过大,原定延迟任务已不满足条件未执行的情况。
由于前述显示设备具有预约录制功能,因此,在用户使用预约录制功能创建视频录制任务时,可设置目标时长,显示设备检测达到录制起始时间,启动视频录制任务,并在录制时长达到目标时长,或者用户主动结束录制时,停止执行视频录制任务。然而,在此时段内,录制的视频文件可能包含同一频道内的多个连播节目,用户对每个节目的兴趣偏好不同,这样,就导致用户在回看录像文件时,需要先跳过不感兴趣的节目片段,才能从一个长视频文件中逐渐定位到感兴趣的节目的位置,从而给用户带来不便。
相关技术下,与前述显示设备相同或相似的终端可配置录像功能,录制显示设备播放的节目视频,并将录像文件保存在指定的磁盘路径,例如保存于显示设备的本地磁盘或者外部磁盘内,所述外部磁盘可连接显示设备,实现读写功能,外部磁盘不限于U盘、移动硬盘、读卡器等,用户可以随时回看已录制的视频文件,可进行快进、seek(即搜寻,用于快速搜寻及定位至视频文件的某一播放位置处)和反复多次播放等操作,也可将录像文件从磁盘中删除,以释放被占用的存储空间。显示设备一般配置有连接外部磁盘的接口,不限于连接U盘、移动硬盘的USB接口等。
在一些实施例中,显示设备接收TV码流后,对TV码流进行处理后显示于显示器,从而向用户呈现电视节目画面,用户可以切换频道,观看不同频道下的节目内容。在启动执行视频录制任务后,显示设备缓存录制时段内接收的码流数据,直至录制结束时,对已缓存的码流数据进行格式转换,即转换为视频格式(例如mp4、avi等),从而生成并保存录像文件至指定磁盘内。
在一些实施例中,参照图19的示例,在节目播放界面上可设置录像控件51,用户通 过遥控器或屏幕触控等方式触发录像控件51,即可启动录像功能。
在一些实施例中,控制装置100(例如遥控器)上可设置录像按键,该按键相当于遥控端启动录像功能的快捷键,在显示设备播放电视节目过程中,用户可随时点击控制装置100上的录像按键,控制装置100响应于录像按键被触发,向显示设备端发送控制指令;显示设备解析该控制指令,读取键值后,即可获知用户意图为启动录像功能。
在一些实施例中,若显示设备支持语音功能,如图20示例的语音交互场景,在显示设备播放电视节目时,用户对显示设备说出“我要录像”,显示设备采集该语音信息后,对语音信息进行解析处理,例如进行关键词提取、语义处理等,即可获知用户的语音意图是启动录像功能。
在一些实施例中,响应于用户启动录像功能的意图指令,显示如图21示例的录制任务设置页面,该页面中具有录制模式设置控件211、第一确认控件212、第一取消控件213和磁盘选择控件214,用户通过录制模式设置控件211来选择期望的录制模式。
在一些实施例中,录制模式包括但不限于按时间录制模式和按节目录制模式。参照图21,用户选择按时间录制模式后,录制任务设置页面中显示时间设置控件2111,用户通过时间设置控件2111来设定启动时间T0和停止时间TS,启动时间T0和停止时间TS的差值即为预设录制时长,之后用户触发第一确认控件212,则处理器根据启动时间T0和停止时间TS,创建对应于按时间录制模式的视频录制任务。
在一些实施例中,用户触发磁盘选择控件214后,根据磁盘端口的连接状态,生成并显示磁盘列表,磁盘列表中包括当前可用磁盘的相关信息,包括但不限于磁盘名称、磁盘剩余可用内存/内存容量等信息,例如对于“U盘,30G/64G”,表明U盘的内存容量为64G,已使用34G,剩余可用内存为30G,用户从磁盘列表中择一磁盘作为预设存储器,来存储录像文件。
在一些实施例中,参照图22,用户选择按节目录制模式后,触发第一确认控件212,则处理器根据EPG(Electrical Program Guide,电子节目指南),查询当前的节目信息,节目信息包括节目名称和节目播放起止点,其中节目名称用于指示哪一频道的哪个节目,节目播放起止点用于指示节目的开播时间和播放截止时间,处理器根据当前节目信息创建对应于按节目录制模式的视频录制任务。
在一些实施例中,如图21和图22所示,无论用户是否选择录制模式,若用户触发第一取消控件213,均不创建视频录制任务,返回图19示例的节目播放界面。
在一些实施例中,若采用按时间录制模式,处理器若检测到系统时间达到视频录制任务的启动时间T0,则启动执行视频录制任务,显示设备会显示视频录制界面,如图23的示例,视频录制界面中不限于显示录制状态提示信息221、已录制时间222、磁盘可录制时间223、暂停控件224、停止录制控件225和进度条226等,实现“边播边录”。
在一些实施例中,录制状态提示信息221例如呈现为“录制中”、“正在录制”、“录制完成”、“录制结束”等状态提示;已录制时间222用于表征视频已录制的时长,是从零开始计时;磁盘可录制时间223用于表征磁盘能够支持视频录制的时长,一般与磁盘剩余可用内存、录制速度、码流分辨率等因素有关;用户一次触发暂停控件224,可以暂停录制进程,此时已录制时间和磁盘可录制时间暂时保持不变,用户二次触发暂停控件224时,即可解除暂停模式,从当前进度处继续后续录制;进度条226用于表征录制进程,以及方便用户识别磁盘是否录满。
在一些实施例中,若录制模式选择按时间录制,则在检测到系统时间达到视频录制任务的停止时间TS,立即停止执行视频录制任务;或者,无论录制模式选择按时间录制还是按节目录制,若用户主动触发停止录制控件225,都要立即停止执行视频录制任务。
在一些实施例中,处理器响应于停止录制指令,停止执行视频录制任务,即停止继续缓存码流数据,显示设备的状态由“边播边录”切换为“仅播不录”,参照图24的示例,将录制状态提示信息221由“录制中”变更为“录制结束”,并显示第一询问弹窗227,第一询问弹窗227中包括第一询问信息2271、第一保存控件2272和第一取消控件2273,第一询问信息2271用于询问是否保存录像文件,若用户触发第一取消控件2273,则删除缓存的码流数据,不保存本次录制的视频文件;若用户触发第一保存控件2272,则将录像文件保存至指定的磁盘中,方便用户访问磁盘后回看录像文件。
在一些实施例中,若采用按节目录制模式,则立即启动执行视频录制任务,显示设备会显示如图23示例的视频录制界面,直至检测到系统时间达到当前节目的播放截止时间,或者直至用户主动触发停止录制控件225,停止执行视频录制任务,并按照图24的示例询问是否保存录像文件。
在一些实施例中,按时间录制模式和按节目录制模式是相互独立且不兼容的,用户在创建视频录制任务时必须选定一种录制模式。对于按时间录制模式,虽然支持用户任意、灵活地设置启动时间T0和停止时间TS,但如果录制时间较长,会导致录像文件的数据量较大,录制时段内显示设备可能播放多个节目,参照图25的示例,假设用户创建的视频录制任务中,启动时间T0为19:00,停止时间TS为20:00,处理器检测到系统时间达到19:00时,启动执行视频录制任务,开始缓存码流数据,直至检测到系统时间达到20:00时停止录制,在19:00~20:00的录制时段内,边播边录的节目包括连播的节目A、节目B和节目C,其中节目A的播放时长为30分钟,节目B的播放时长为5分钟,节目C的播放时长为25分钟,即节目A的播放起止点为19:00和19:30,节目B的播放起止点为19:31和19:35,节目C的播放起止点为19:36和20:00。
在图25示例的录制场景中,处理器在检测到系统时间达到停止时间TS为20:00时,停止执行视频录制任务,并按照图24方式询问是否保存录像文件,若接收到用户输入的保存指令,处理器会保存时长为1小时的整段录像文件,该录像文件包含从19:00~20:00这一时段内播放的三个节目视频,而用户对每个节目的兴趣偏好不同,往往需通过播放进程的自然推进、或者通过快进、seek等繁琐操作,才能从一段长录像文件中定位自己喜爱的节目片段。例如用户对节目A不感兴趣,可以先观看节目A,直至播放进程自然推进至第31分钟,从而继续观看感兴趣的节目B,或者,用户通过快进或seek等操作将播放进度快速跳转至第31分钟,从而加快跳过不感兴趣的节目A。
因此,一方面用户想要从包含多节目的长录像文件中定位感兴趣的节目位置,尤其对于数据量和时长较大的录像文件,这一目的在实现时可能耗时长、操作繁琐;另一方面,长录像文件里可能包含一个或多个用户不感兴趣的节目视频,会浪费磁盘存储空间;此外,如图26的示例,按时间录制模式结束时,处理器响应于用户输入的保存指令,查询录制期间显示设备播放的频道信息,按时间录制模式下默认以频道名称命名录像文件,并将包含至少一个节目视频的录像文件存入预设存储器内,预设存储器为保存录像文件的磁盘,例如本机磁盘、U盘、移动硬盘等,例如图26中录像文件1和录像文件2均是以频道1命名,用户难以分辨自己想要回看的是录像文件1还是录像文件2。
在一些实施例中,如图27的示例,按节目录制模式结束时,处理器响应于用户输入的保存指令,查询录制期间显示设备播放的节目信息,按节目录制模式下默认以节目名称命名录像文件,并将仅包含一个节目视频的录像文件存入预设存储器内,此场景下录像文件的辨识度高,便于用户快速查找想要回看的节目视频。但按节目录制模式每次仅能够录制一个节目视频,若要录制多个节目视频,必须提前预约多个视频录制任务,不便于用户使用。
在一些实施例中,为克服按时间录制模式和按节目录制模式存在的弊端,本申请提供一种按时间录制与按节目保存模式相融合的方案,按照前述流程创建并执行按时间录制模式下的视频录制任务,处理器在检测到系统时间达到停止时间TS,或者用户主动触发停止录制控件225时,响应于停止录制指令,停止执行视频录制任务,处理器基于启动时间T0和停止时间TS限定的录制时段,从EPG功能中查询录制时段内显示设备的节目播放信息,节目播放信息包括N个节目信息,N大于或等于1,所述节目信息包括节目名称和节目播放起止点,然后根据节目播放信息,确定录像文件的目标保存模式,并按照目标保存模式,将录像文件存入预设存储器内。
在一些实施例中,按照前述流程,用户触发图24中的第一保存控件2272,则处理器响应于该保存指令,若查询到N等于1,即在录制时间内仅录制一个节目视频,自动以整段保存模式,将录像文件存入预设存储器内。整段保存模式被配置为,不分割录像文件,根据查询到的录制时段内显示设备播放的频道,以频道名称对录像文件进行命名,将整段录像文件存入预设存储器内。
在一些实施例中,按照前述流程,用户触发图24中的第一保存控件2272,则处理器响应于该保存指令,若查询到节目播放信息包含多个节目信息,即N大于1,如图28的一种示例,在用户界面上显示第一保存模式询问弹窗241,第一保存模式询问弹窗241包括第一提示信息242、第一模式控件243和第二模式控件244。其中,第一提示信息242用于提示用户选择一种录像文件的保存模式;第一模式控件243被触发时,处理器以整段保存模式,将录像文件存入预设存储器内,即不按节目对录像文件进行分割,整段录像文件中包含N个节目视频。
在一些实施例中,第二模式控件244被触发时,处理器以按节目保存模式,将录像文件存入预设存储器内,所述按节目保存模式配置为,根据每个节目信息指示的节目播放起点为Ti_1和节目播放止点为Ti_2,其中i表示按播放时序对录制时段内的节目排序后的节目序号,1≤i≤N,将录像文件分割为N个节目录制子文件,并按照节目名称分别对N个节目录制子文件进行命名,然后将N个节目录制子文件存入预设存储器内。
在一些实施例中,处理器响应于对第二模式控件244的触发指令,参照图29的子图(a),根据EPG功能查询到[启动时间T0,停止时间TS]这一录制时段内,按时序连播3个节目(即N=3),依次为节目A、节目B和节目C,节目A的播放起止点分别为T1_1和T1_2,节目B的播放起止点分别为T2_1和T2_2,节目C的播放起止点分别为T3_1和T3_2,基于同一频道内多个节目在时间上的播放连续性,相邻两个节目的止点和起点重合,即满足T0等于T1_1,T1_2等于T2_1,T2_2等于T3_1,T3_2等于TS,因此根据T1_1和T1_2从整段录像文件中分割出节目A对应的子文件一,根据T2_1和T2_2从整段录像文件中分割出节目B对应的子文件二,根据T3_1和T3_2从整段录像文件中分割出节目C对应的子文件三。如图29的子图(b),在预设存储器中分别保存子文件一、子文件二和子文件三, 其中,子文件一被命名为节目A的名称,子文件二被命名为节目B的名称,子文件三被命名为节目C的名称,其中节目名称可包含频道名称,例如节目名称为频道1-节目A,或者也可仅呈现为节目A,不包含频道名称。
在一些实施例中,如图30所示的节目播放/录制时间轴,在T0时间节点处,处理器启动执行视频录制任务,开始缓存码流数据,在T1_2时间节点处节目1录制截止,继续录制下一节目,以此类推,在Ti_1时间节点处开始录制节目i,在Ti_2时间节点处节目i录制截止,当系统时间达到TS时间节点时,停止执行视频录制任务,从T0到TS之间的录制时段,录制进程遍历N个节目,在时间轴上N个节目信息是按照按播放时序进行排序,其中排序在首位的初始节目信息(即节目1)对应的节目播放起点为T1_1和节目播放止点为T1_2,排序在末位的截止节目信息(即节目N)对应的节目播放起点为TN_1和节目播放止点为TN_2,参照图30,若T0大于T1_1,说明视频录制任务启动时,节目1已播过一部分视频片段,则将T0作为节目1的录制起点,根据T0和T1_2分割出节目1的子文件1,此场景下节目1录制不完整;若TS小于TN_2,说明视频录制任务结束时,节目N尚未播放结束,则将TS作为节目N的录制止点,根据TN_1和TS分割出节目N的子文件N,该场景下节目N录制不完整。其他的节目2~节目N-1均能保证完整录制。
按时间录制模式+按节目保存模式,能兼容按时间录制模式和按节目录制模式的优点,用户可以灵活设置视频录制任务的启停时间,并且支持录制时段内连续录制多个节目视频,该方案以单独节目为单位进行录像文件的分割和存储,用户在访问预设存储器后,能够快速查找感兴趣的节目视频,以及删除不感兴趣的节目视频,从而避免磁盘存储空间的浪费。
在一些实施例中,按照前述流程,用户触发图24中的第一保存控件2272,则处理器响应于该保存指令,若查询到节目播放信息包含多个节目信息,即N大于1,如图31的另一种示例,在用户界面上显示第二保存模式询问弹窗170,第二保存模式询问弹窗170包括第二提示信息171、同意控件172和拒绝控件173,第二提示信息171用于询问是否同意采用按节目保存模式,图17中第二提示信息171示例为“是否同意按节目保存录像文件?”,若用户触发同意控件172,处理器响应于同意指令,以按节目保存模式来保存录像文件;若用户触发拒绝控件173,处理器响应于拒绝指令,以整段保存模式来保存录像文件。
在一些实施例中,处理器响应于停止录制指令,若查询到节目播放信息包含多个节目信息,即N大于1,则在用户界面上显示如图32示例的第三保存模式询问弹窗180,第三保存模式询问弹窗180包括第一保存模式控件181、第二保存模式控件182和不保存控件183,第一保存模式控件181对应于整段保存模式,第二保存模式控件182对应于按节目保存模式。若用户触发不保存控件183,则删除录制时段内缓存的码流数据,不保存录像文件;若用户触发第一保存模式控件181和第二保存模式控件182中的任意一个,就需要按照模式控件对应的保存模式,保存本次的录像文件。该实施例中在停止执行视频录制任务时,无需先询问是否保存录像文件、而后再选择目标保存模式,而是将两者集中呈现于同一弹窗页面中,简化UI及用户操作。
在一些实施例中,若录像文件内包含多个连播的节目视频,由于用户对每个节目的兴趣偏好不同,用户更期望保留自己感兴趣的节目视频,滤掉或删除自己不偏好的节目视频,对此,用户在图28、图31和图32示例的保存模式询问弹窗中选择按节目保存模式后,处理器控制显示器关闭保存模式询问弹窗,并在用户界面上显示如图33示例的节目保存页 面190,在节目保存页面190中向用户呈现已录制的N个节目的节目信息,这里所述的节目信息至少应包括节目名称,以便用户辨别和筛选。用户可根据自身的兴趣偏好,从N个节目信息中选定M个目标节目信息,M个目标节目信息组成第一节目集合,0≤M≤N,其余M-N个未被选定的节目信息组成第二节目集合。第一节目集合用于指示用户感兴趣的、期望留存的节目,第二节目集合用于指示用户不感兴趣的、不想保存的节目。
在一些实施例中,参照图33,节目保存页面190中每个节目信息对应于一个选择控件191,选择控件191处于选择状态时,其对应的节目信息被选定。节目保存页面190中还包括第二确认控件192和第二取消控件193。
在一些实施例中,若用户未选定任何节目信息,即空选后触发第二确认控件192,或者用户触发第二取消控件193,即M=0,则用户提交的第一节目集合为空集,第二节目集合为全集,相当于不保存录像文件,处理器删除录制时段已缓存的码流数据,即呈现节目录像全删形态。
在一些实施例中,若M大于0,并且M小于N,则第一节目集合和第二节目集合都为非空真子集,处理器先根据N个节目信息指示的节目播放起止点,将整段录像文件分割为N个节目录制子文件,删除第二节目集合中每个节目信息对应的子文件(为便于区分,本申请将其命名为第二节目录制子文件),以及按照节目名称,对第一节目集合中每个节目信息对应的子文件(为便于区分,本申请将其命名为第一节目录制子文件)进行命名,将M个第一节目录制子文件存入预设存储器内,即呈现部分节目录像保存、另一部分节目录像删除的形态。
在一些实施例中,参照图34的示例,节目保存页面190显示四个节目信息,即N=4,分别为节目A、节目B、节目C和节目D,用户点击节目A和节目D对应的选择控件191,然后再触发第二确认控件192,则第一节目集合为{节目A,节目D},第二节目集合为{节目B,节目C},则在将录像文件分割为四份,即依次分割出子文件A、子文件B、子文件C和子文件D后,仅将子文件A和子文件D存入预设存储器,子文件A命名为节目A的名称,子文件D命名为节目D的名称,删除子文件B和子文件C。
在一些实施例中,参照图34,节目保存页面190还可设置全选控件194,若用户点击全部的选择控件191,或者用户触发全选控件194,然后再触发第二确认控件192,则M等于N,用户提交的第一节目集合为全集,第二节目集合为空集,则处理器将录制文件分割为N个节目录制子文件并分别命名后,将N个节目录制子文件全部存入预设存储器,而未删除任何子文件,即呈现节目录像全存形态。
在一些实施例中,若以按节目保存模式来保存录像文件,处理器检测到被选定的M个节目录制子文件均已存入预设存储器,则控制显示器在用户界面中提示“录像文件已按节目保存成功”。
在一些实施例中,若以整段保存模式来保存录像文件,处理器检测到整体的录像文件已存入预设存储器,则控制显示器在用户界面中提示“录像文件已保存成功”。用户查看到录像保存成功的提示信息后,可以随时访问预设存储器,观看录像文件。
在一些实施例中,图35为本申请实施例的一种录像文件的保存方法的流程图,所述方法由显示设备的处理器执行,包括如下程序步骤:
步骤S211:响应于停止录制指令,停止执行视频录制任务,生成录像文件。所述视频录制任务用于以按时间录制模式,录制显示设备当前播放的节目视频。
步骤S212:查询在录制时段内显示设备的节目播放信息。
步骤S213:根据所述节目播放信息,确定所述录像文件的目标保存模式。
步骤S214:按照所述目标保存模式,将所述录像文件存入预设存储器内。
在一些实施例中,图36为本申请实施例的另一种录像文件的保存方法的流程图,所述方法由显示设备的处理器执行,包括如下程序步骤:
步骤S221:在当前时间达到启动时间时,启动执行视频录制任务,以按时间录制模式,录制当前播放的节目视频。
步骤S222:响应于停止录制指令,停止执行视频录制任务,生成录像文件。
步骤S223:是否接收到保存指令。若接收到保存指令,则执行步骤S224;若接收到不保存指令,则执行步骤S2212。
步骤S224:查询在录制时段内显示设备的节目播放信息,节目播放信息中包含N个节目信息。
步骤S225:判断N是否大于1。若N大于,执行步骤S226;若N=1,执行步骤S2211。
步骤S226:询问是否同意采用按节目保存模式。若用户同意采用按节目保存模式,则执行步骤S227;若用户拒绝采用按节目保存模式,执行步骤S2211。
步骤S227:根据N个节目信息指示的节目播放起止点,将所述录像文件分割为N个节目录制子文件,并按照节目名称对所述节目录制子文件进行命名。
步骤S228:显示节目保存页面,所述节目保存页面中显示所述N个节目信息。
步骤S229:接收对所述节目保存页面中M个目标节目信息的选定操作。M小于或等于N。
步骤S2210:将M个目标节目信息对应的第一节目录制子文件存入预设存储器内,删除未被选定的N-M个节目信息对应的第二节目录制子文件。
步骤S2211:不分割所述录像文件,按当前频道名称对所述录像文件进行命名,将所述录像文件存入预设存储器内。
步骤S2212:删除所述录像文件。
在其他可能的实现方式中,如图37示例的录制任务设置页面,用户选择按时间录制模式,设定启动时间T0和停止时间TS后,处理器从EPG中查询当前频道在[T0,TS]时段内的节目播放信息,若该时段内连播多个节目,则显示第一开关控件231,第一开关控件231用于控制“自动按节目保存”功能的开启和关闭。所述“自动按节目保存”功能包含两个能力,一种是在停止录制时无需询问是否保存录像文件,而是自动保存录像文件,另一种是无需用户选择保存模式,而是自行启动按节目保存模式。
在一些实施例中,若用户将第一开关控件231切换为开启状态,则如图38所示,在录制任务设置页面中显示[T0,TS]时段内当前频道包含的节目信息,用户从中选定感兴趣的、期望录制的节目,可选择全部节目保存或部分节目保存。例如图38中录制任务设置页面展示的节目信息分别为节目1、节目2和节目3,用户选定节目1和节目3,之后触发第三确认控件234,则处理器根据启动时间T0、停止时间TS、节目1和节目3的节目信息,创建视频录制任务,所述节目信息包括节目名称和节目播放起止点,设节目1的播放起点为T1_1和播放止点为T1_2,节目3的播放起点为T3_1和播放止点为T3_2。在一些实施例中,处理器检测到系统时间达到启动时间T0,启动执行视频录制任务,按时序连续录制节目1、节目2和节目3,直至检测到系统时间达到停止时间TS,停止执行视频录制任务, 根据T0和T1_2分割出节目1的子文件1,根据T3_1和TS分割出节目3的子文件3,然后分别对子文件1和子文件3进行命名及保存,将被分离出的节目2的子文件2删除。
在一些实施例中,若用户选定节目1和节目3,处理器检测到系统时间达到启动时间T0,启动执行视频录制任务,开启录制节目1,直至检测到系统时间达到T1_2,节目1录制截止,可以立即暂停视频录制任务,即处理器暂停缓存视频码流,此时显示设备处于“只播不录”状态,处理器先对节目1的缓存数据进行格式转换,生成子文件1,对子文件1进行命名并自动保存至预设存储器。处理器检测到系统时间达到T3_1,立即解除任务的暂停状态,恢复对节目3的录制,直至录制停止时,生成子文件3,对子文件3进行命名并自动保存至预设存储器。该实施例通过暂停录制进程,跳过对未被选定的节目2的录制环节,实现录像文件的动态自适应分割以及不感兴趣节目的自动滤除。
在一些实施例中,参照图38,若用户选定节目2和节目3,为跳过用户不感兴趣的节目1的录制环节,可将视频录制任务的启动时间T0后移至节目2的播放起点T2_1,停止时间TS保持为用户设定的时间不变,从而在[T0,TS]这一录制时间内,仅录制节目2和节目3。
在一些实施例中,参照图38,若用户选定节目1和节目2,为跳过用户不感兴趣的节目3的录制环节,可将视频录制任务的停止时间TS前移至节目2的播放止点T2_2,启动时间T0保持为用户设定的时间不变,从而在[T0,TS]这一录制时间内,仅录制节目1和节目2。
在一些实施例中,参照图38,若用户仅选定节目2,为跳过用户不感兴趣的节目1和节目3的录制环节,可将视频录制任务的启动时间T0后移至节目2的播放起点T2_1,将视频录制任务的停止时间TS前移至节目2的播放止点T2_2,即自动调整启动时间T0和停止时间TS以适应用户的节目偏好,从而在[T0,TS]这一录制时间内仅录制节目2,相当于从按时间录制模式调整为按节目录制模式。
在一些实施例中,用户若对节目1、节目2和节目3都不感兴趣,则可重新设定启动时间T0和停止时间TS,或者触发第三取消控件235,取消创建视频录制任务。
在一些实施例中,若用户将第一开关控件231切换为关闭状态,录制任务设置页面取消显示[T0,TS]时段内当前频道包含的节目信息,之后用户触发第三确认控件234,则后续在停止录制时,处理器控制显示器显示图28、图31或图32示例的保存模式询问弹窗,并响应于用户输入的是否保存以及保存模式的相关操作指令,控制录像文件的保存。
在一些实施例中,如图39所示,若用户将第一开关控件231切换为关闭状态,录制任务设置页面取消显示[T0,TS]时段内当前频道包含的节目信息,并显示第二开关控件232,第二开关控件232用于控制“自动整段保存”功能的开启和关闭。若用户将第二开关控件232切换为关闭状态,则在停止录制时,处理器控制显示器显示图28、图31或图32示例的保存模式询问弹窗,并响应于用户输入的是否保存以及保存模式的相关操作指令,控制录像文件的保存;若用户将第二开关控件232切换为开启状态,则在停止录制时,处理器自动以整段保存模式,将录像文件存入预设存储器,无需控制显示器显示保存模式询问弹窗。
在一些实施例中,处理器从EPG中查询当前频道在[T0,TS]时段内的节目播放信息,若查询到该时段内仅播放一个节目,如图40所示,录制任务设置页面不显示任何节目信息,显示第三开关控件233,第三开关控件233用于控制自动保存录像文件功能的开启和 关闭。若用户将第三开关控件233切换为关闭状态,则在停止录制时,处理器控制显示器显示图24示例的第一询问弹窗227,询问用户是否保存录像文件;若用户将第三开关控件233切换为开启状态,则停止录制时,无需弹窗询问是否保存录像文件,而是自动将录像文件存入预设存储器内。通过在录制任务设置页面提供与保存功能相关的开关控件,可以实现停止录制时自动以目标保存模式,将录像文件保存至预设存储器,简化UI及用户操作。
在一些实施例中,本申请中还提供一种具有读写能力的、本地的存储器,该存储器内置于显示设备,并与处理器连接,所述存储器用于受控于处理器,基于前述保存机制,保存录像文件,以及支持处理器从存储器中读取并播放录像文件。
在一些实施例中,本申请中还提供一种具有读写能力、可移动的存储器,该存储器可通过外部接口(例如USB)接入显示设备,所述存储器用于连接显示设备后,受控于处理器,基于前述保存机制,保存录像文件,以及支持处理器从存储器中读取并播放录像文件。
在一些实施例中,用户可在与录像功能相关的设置页面或录制任务设置页面中,指定用于保存录像文件的存储路径,即设置预设存储器,用户可设置预设存储器为本机内置磁盘,也可设置为外部可移动磁盘(例如U盘、移动硬盘、读卡器等)。若预设存储器为外部可移动磁盘,在视频录制及录像保存期间必须保证外部可移动磁盘与显示设备处于有效连接,处理器若检测到外部可移动磁盘断开,则中断视频录制任务,并提示用户检测磁盘连接。预设存储器可按照存入时间、文件大小、录制时长、文件名等规则,对录像文件进行排序,例如按照存入时间递减的顺序排列各项文件,即越新存入的文件排序越靠前。
在一些实施例中,预设存储器可向处理器实时上报自身的可用内存,在视频录制过程中,处理器若检测到磁盘无可用内存,或预设存储器已录满,则立即停止执行视频录制任务,并向用户提示磁盘已录满;处理器检测到系统时间达到启动时间T0时,若查询到预设存储器无可用内存,即预设存储器已无法继续保存录像文件,则不启动执行视频录制任务,并向用户提示磁盘无可用内存、录制失败的信息,用户在清理磁盘内存,或者切换录像文件的存储路径后,可重新创建视频录制任务。此外,处理器还根据预设存储器上报的可用内存,结合TV码流的分辨率等参数,计算并更新如图23示例的视频录制界面中显示的磁盘可录制时间223。
在一些实施例中,用户可能创建多个视频录制任务,处理器可维护一个任务队列,每新建一个视频录制任务A,将视频录制任务A(待执行)加入到任务队列中,以及,每执行完成一个视频录制任务B,将视频录制任务B(已执行)从任务队列中移除,以及,若视频录制任务C超时未执行,将视频录制任务C(已过期)从任务队列中移除。
通过以上技术方案,在录制期间,显示设备可能仅播放一个频道节目,即可以整段保存模式保存录像文件;或者,同一个频道连续播放的多个节目被录制,则以按节目保存模式,将整段录像文件分割为多个对应于独立节目的子文件后,再行存储,方便用户快速回看感兴趣的节目录制视频;本申请还支持丢弃用户不感兴趣的节目录制视频,以降低磁盘内存的消耗。同时,本申请能够适应录制期间内的节目播放场景,匹配录像文件的目标保存模式,改进录像功能,使用户享受更加便捷、高效的录像体验。
在一些实施例中,显示设备200中还可以集成有个人视频录像机,如PVR(Personal video recorder,个人视频录像),用于录制显示设备200中播放的节目,生成对应的个人视频录像文件。由于用户录制的个人视频录像文件通常占用较大的存储空间,而显示设备200 内无法存储个人视频录像文件,因此,显示设备200还可以外接硬盘设备,用于存储用户录制的个人视频录像文件。
相关技术下,用户录制的视频文件通常包含内容相关联的电视节目,用户点击播放其中一个电视节目后会退出播放,用户想要回看其他相关联的电视节目时,需要手动查看并点击播放其他相关联的电视节目,效率较低。
为了提高对用户感兴趣的视频播放的效率,本申请实施例的处理器250,还被配置为:接收针对第一个人视频录像文件的播放指令,响应于播放指令,播放第一个人视频录像文件,并获取第一个人视频录像文件对应的节目录制信息。
其中,第一个人视频录像文件可以是用户录制的任意一个个人视频录像文件,可以存储在显示设备200外接的硬盘设备中。用户可以通过控制装置100向显示设备200发送各种控制指令,以对显示设备200进行控制。例如,用户要播放第一个人视频录像文件,可以向显示设备200发送针对第一个人视频录像文件的播放指令,处理器250可以接收该播放指令。本申请实施例中,可以预先建立数据库,数据库包括多个个人视频录像文件和多个个人视频录像文件分别对应的节目录制信息。也就是,用户每录制一个个人视频录像文件,即可将该个人视频录像文件和该个人视频录像文件对应的节目录制信息存储在数据库中。可见,数据库中存储的数据可以是不断更新的。
其中,节目录制信息是与用户录制的节目相关的信息,可以包括节目信息(例如节目名称、节目章节等)和录制时刻等。针对电视节目,还可以包括电视频道信息;针对网络节目,还可以包括网络地址信息或应用程序信息等。
由于硬盘设备中的存储空间也是有限的,因此,为了避免剩余存储空间过小而无法存储新的个人视频录像文件和对应的节目录制信息,可以周期性自动清理硬盘设备中用户长时间没有访问的、且时间较早的个人视频录像文件。或者,也可以根据用户自身的需求,手动删除用户不需要的个人视频录像文件。
需要说明的是,用户录制的节目通常具有一定的连续性,例如,用户录制了一个节目的第一节,之后又录制了该节目的第二节。或者,用户录制了同一节目中个人喜欢的不同时间段,例如,用户录制了一个节目第一节的0-30分钟,之后又录制了该节目第一节的45-60分钟。因此,用户录制的个人视频录像文件通常具有一定的相关性,例如,不同个人视频录像文件可能对应相同的节目名称、不同的节目章节,或者对应相同的节目名称、相同的节目章节,但对应不同的录制时刻等。
因此,在获取第一个人视频录像文件对应的节目录制信息后,处理器250,还被配置为:根据该节目录制信息,从数据库中获取与该节目录制信息相关的第二个人视频录像文件。例如,通过数据库中其他个人视频录像文件对应的节目录制信息,对该节目录制信息进行匹配,得到第二个人视频录像文件。
处理器250,还被配置为:基于第一个人视频录像文件的播放状态,显示播放提示信息。
在一些实施例中,当第一个人视频录像文件播放完成时,显示播放提示信息。或者,在第一个人视频录像文件播放完成前预设时间段,显示播放提示信息,即提前显示播放提示信息。例如,第一个人视频录像文件播放完成前1分钟、30秒等,显示播放提示信息。其中,播放提示信息用于提示是否继续播放第二个人视频录像文件。
参见图41,图41为本申请实施例中显示播放提示信息的一种示意图。可见,在节目 播放界面,可以弹出一个新的界面,播放提示信息具体为“是否继续播放相关节目”,并包含“是”、“否”两个按钮。当用户通过控制装置100点击“是”按钮,则发出继续播放指令,表示用户同意继续播放,当用户通过控制装置100点击“否”按钮,则发出退出指令,表示用户不同意继续播放,则退出播放。
处理器250,还被配置为:接收继续播放指令或退出指令;响应于继续播放指令,播放第二个人视频录像文件;或响应于退出指令,退出播放。
本申请实施例的显示设备,通过预先建立数据库,将录制的个人视频录像文件和对应的节目录制信息存储在数据库中,这样,当用户播放第一个人视频录像文件时,可以获取第一个人视频录像文件的节目录制信息,并根据节目录制信息从数据库中获取与该节目录制信息相关的第二个人视频录像文件。基于第一个人视频录像文件的播放状态(例如播放完成时,或者将要播放完成时),可以显示播放提示信息,播放提示信息用于提示是否继续播放第二个人视频录像文件。如果接收到继续播放指令,则继续播放第二个人视频录像文件;否则,退出播放。针对用户录制的个人视频录像文件,当一个节目播放完成之后可以自动为用户检测相关联的节目,提示用户是否播放相关联的节目,若用户同意则自动播放。这样,可以避免用户主动搜索并播放用户感兴趣的节目,提高对用户感兴趣的节目进行播放的效率。
用户将硬盘设备插入显示设备200后,处理器250,被配置为:当检测到硬盘设备时,若硬盘设备挂载正常,表示该硬盘设备可以使用;可以进一步检测硬盘设备的传输速率;如果硬盘设备的传输速率大于预设传输速率(例如60M/s等),表示硬盘设备的传输速率满足数据传输的要求,可以向硬盘设备中读写数据,那么在硬盘设备中创建数据库。例如,可以在data分区创建数据库program.db,路径如下:/data/databases/program.db。如果硬盘设备的传输速率小于或等于预设传输速率,可以提示用户更换硬盘设备。
在一些实施例中,数据库的更新过程具体可以为:
当用户观看目标节目(例如可以是用户感兴趣的节目)时,可以通过控制装置100向显示设备200发送针对目标节目的录制指令,处理器250,被配置为:接收针对目标节目的录制指令,响应于录制指令,可以生成目标节目对应的个人视频录像文件以及节目录制信息。其中,录制指令可以包括起始指令和终止指令,起始指令用于开始录制目标节目,终止指令用于结束录制目标节目。在录制结束后,可以生成目标节目对应的个人视频录像文件以及节目录制信息。建立目标节目对应的个人视频录像文件和目标节目对应的节目录制信息的映射关系,将目标节目对应的个人视频录像文件、目标节目对应的节目录制信息和映射关系更新至数据库中。
其中,节目录制信息可以包括路径信息、节目名称、节目章节、录制时刻等。假设路径信息为file:///mnt/media_rw/42AA-8E24/pvr,节目名称为Friends,节目章节为chapter1,录制时刻为04251622,节目录制信息可以表示如下:
file:///mnt/media_rw/42AA-8E24/pvr/Friends_chapter1_04251622.pvr。
在一些实施例中,用户录制的个人视频录像文件为电视频道中播放的电视节目,此时,节目录制信息可以包括电视频道信息和节目信息,还可以包括上述的路径信息、节目章节和录制时刻等。
相应地,节目录制信息可以表示如下:
file:///mnt/media_rw/42AA-8E24/pvr/TV8/Friends_chapter1_04251622.pvr。可以看出,与 上述节目录制信息相比,增加了电视频道信息。
处理器250,被配置为:从预先建立的数据库中获取与节目信息相关的第二个人视频录像文件,其中,第二个人视频录像文件可以与电视频道信息不相关。也就是说,在获取第二个人视频录像文件时,可以针对节目信息,而不针对频道信息进行区分,这样,可以实现跨频道搜索,即为用户搜索到更多感兴趣的个人视频录像文件。除此之外,也可以同时针对节目信息和频道信息进行区分,为用户搜索同一频道用户感兴趣的个人视频录像文件。之后,根据用户的播放需求播放搜索到的个人视频录像文件,或退出播放。
在一些实施例中,节目信息的数量可以为多个,且按顺序排列。例如,如果节目信息包括节目名称和节目章节,排序结果可以为节目名称、节目章节,排序越靠前,表示该节目信息对应的范围越大,排序越靠后,表示该节目信息对应的范围越小。
处理器250,被配置为:按照多个节目信息的顺序,依次根据单个节目信息,从预先建立的数据库中进行逐层筛选,得到与至少一个节目信息相关的个人视频录像文件,并将得到的个人视频录像文件确定为第二个人视频录像文件。
参见图42,图42为本申请实施例中获取第二个人视频录像文件的一种流程图,在此假设第一个人视频录像文件的节目录制信息中包括两个节目信息,可以包括以下步骤:
步骤S702:播放第一个人视频录像文件,并获取第一个人视频录像文件的节目录制信息。
步骤S704:获取该节目录制信息中的第一个节目信息,并从数据库中获取除第一个人视频录像文件之外的其他个人视频录像文件的节目录制信息。
步骤S706:判断获取到的单个个人视频录像文件的节目录制信息中是否包含第一个节目信息。如果包含第一个节目信息,表示匹配到与第一个节目信息相关的个人视频录像文件,可以执行步骤S708;如果不包含第一个节目信息,表示未匹配到与第一个节目信息相关的个人视频录像文件,由于第一个节目信息对应最大的范围,在未匹配到与第一个节目信息相关的个人视频录像文件的情况下,可以执行步骤S710。
步骤S708:将该单个个人视频录像文件作为候选个人视频录像文件。
步骤S710:不存在与第一个人视频录像文件的节目信息相关的第二个人视频录像文件。
步骤S712:判断候选个人视频录像文件的节目录制信息中是否包含第二个节目信息。如果包含第二个节目信息,执行步骤S714;如果不包含第二个节目信息,也可以执行步骤S714。
步骤S714:将该候选个人视频录像文件确定为第二个人视频录像文件。
在上述步骤S714中确定的第二个人视频录像文件可以同时与第一个节目信息和第二个节目信息匹配,此时第二个人视频录像文件与第一个人视频录像文件相关程度较高。或者,第二个人视频录像文件与第一个节目信息匹配,与第二个节目信息不匹配,此时第二个人视频录像文件与第一个人视频录像文件相关程度较低。
可以理解的是,在第一个人视频录像文件的节目录制信息中包含三个或更多个节目信息的情况下,可以按照类似的方式进行逐层筛选。当数据库中的单个个人视频录像文件与第一个人视频录像文件的节目录制信息中的节目信息匹配的数量越多,表示该单个个人视频录像文件与第一个人视频录像文件的相关程度越高。
举例而言,如果第一个人视频录像文件的节目录制信息中的第一个节目信息为Friends,第二个节目信息为chapter,在执行步骤S708之后,得到4个候选个人视频录像文件的节 目录制信息如下:
file:///mnt/media_rw/42AA-8E24/pvr/TV8/Friends_chapter1_04251622.pvr;
file:///mnt/media_rw/42AA-8E24/pvr/TV8/Friends_chapter1_04251222.pvr;
file:///mnt/media_rw/42AA-8E24/pvr/TV6/Friends_chapter3.pvr;
file:///mnt/media_rw/42AA-8E24/pvr/TV2/Friends_chapter16.pvr。
可以看出,上述每个节目录制信息中均包括节目信息Friends。进一步地,执行步骤S712,如果包含chapter,将候选个人视频录像文件确定为第二个人视频录像文件。由于上述每个节目录制信息中均包括节目信息chapter,因此,最终确定4个候选个人视频录像文件均为第二个人视频录像文件。
在一些实施例中,第二个人视频录像文件的数量为多个,处理器250,被配置为:根据第二个人视频录像文件的节目信息和第一个人视频录像文件的节目信息,确定第二个人视频录像文件和第一个人视频录像文件的相关程度;按照相关程度从高至低的顺序,对多个第二个人视频录像文件进行排序,得到排序结果。如果两个或更多个第二个人视频录像文件对应的相关程度相同,可以对两个或更多个第二个人视频录像文件任意排序。
例如,在图43步骤S712之后,如果包含第二个节目信息,执行步骤S714;如果不包含第二个节目信息,也执行步骤S714。那么,包含第二个节目信息时执行步骤S714所确定的第二个人视频录像文件,与不包含第二个节目信息时执行步骤S714所确定的第二个人视频录像文件相比,相关程度较高。
在一些实施例中,如果节目信息中包括序号信息,也可以在考虑第二个人视频录像文件对应的相关程度的同时,考虑第二个人视频录像文件的节目信息的序号信息,对第二个人视频录像文件进行排序。
例如,如果上述4个候选个人视频录像文件均为第二个人视频录像文件,4个第二个人视频录像文件对应的相关程度相同,此时可以结合节目信息中的序号信息,对4个第二个人视频录像文件进行排序。由于Friends不存在序号信息,chapter存在序号信息,因此,可以根据chapter对4个第二个人视频录像文件进行排序。chapter的序号信息越小,对应的第二个人视频录像文件可以越靠前。针对chapter的序号信息相同的第二个人视频录像文件,还可以进一步结合录制时刻对第二个人视频录像文件进行排序,录制时刻越早,对应的第二个人视频录像文件可以越靠前。
处理器250,被配置为:当显示播放提示信息时,可以按照排序结果显示多个第二个人视频录像文件的节目录制信息。可选的,可以显示多个第二个人视频录像文件的节目录制信息中的节目信息。
参见图43,图43为本申请实施例中显示播放提示信息的又一种示意图。可以看出,当显示播放提示信息时,显示了3个第二个人视频录像文件的节目信息。用户根据节目信息,可以根据自己的喜好确定是否继续播放对应的第二个人视频录像文件。当用户通过控制装置100点击按钮“是”时,向显示设备200发送继续播放指令。
处理器250,被配置为:响应于继续播放指令,按照排序结果,依次播放多个第二个人视频录像文件。也就是,在继续播放多个第二个人视频录像文件时,用户可以不选择下一个继续播放的第二个人视频录像文件,此时直接按照排序结果进行播放。
在一些实施例中,处理器250,被配置为:接收针对多个第二个人视频录像文件中单个第二个人视频录像文件的继续播放指令,即用户也可以通过控制装置100向显示设备200 发送针对某一个第二个人视频录像文件的继续播放指令。处理器250可以响应于继续播放指令,播放单个第二个人视频录像文件。
例如,如果用户想要播放图44中的节目2,可以先通过控制装置100选取节目2,然后通过控制装置100发送继续播放指令。这样,在播放完成第一个人视频录像文件后,可以继续播放节目2对应的第二个人视频录像文件。
本申请实施例的显示设备,在录制生成个人视频录像文件,可以同时生成个人视频录像文件对应的节目录制信息,并将个人视频录像文件、个人视频录像文件对应的节目录制信息和两者之间的映射关系存储在数据库中。在用户播放第一个人视频录像文件时,可以自动根据第一个人视频录像文件时的节目录制信息为用户匹配相关的第二个人视频录像文件,并基于第一个人视频录像文件的播放状态(例如播放完成时,或者将要播放完成时),可以显示播放提示信息,以提示用户是否播放第二个人视频录像文件。如果接收到继续播放指令,则继续播放第二个人视频录像文件;否则,退出播放。其中,第二个人视频录像文件可以与电视频道信息不相关,以实现跨频道的录制节目搜索和自动连续播放,从而提高对用户感兴趣的视频播放的效率,进而提升用户体验。
参见图44,图44为本申请实施例中视频处理方法的一种流程图,可以包括以下步骤:
步骤S902:接收针对第一个人视频录像文件的播放指令,响应于播放指令,播放第一个人视频录像文件,并获取第一个人视频录像文件的节目录制信息。
步骤S904:根据节目录制信息,从预先建立的数据库中获取与节目录制信息相关的第二个人视频录像文件;数据库包括多个个人视频录像文件和多个个人视频录像文件分别对应的节目录制信息。
步骤S906:基于第一个人视频录像文件的播放状态,显示播放提示信息,播放提示信息用于提示是否继续播放第二个人视频录像文件。
步骤S908:接收继续播放指令或退出指令;响应于继续播放指令,继续播放第二个人视频录像文件;或者,响应于退出指令,退出播放。
其中,节目录制信息包括电视频道信息和节目信息;那么,在执行步骤S904时,具体包括:从预先建立的数据库中获取与节目信息相关的第二个人视频录像文件,第二个人视频录像文件与电视频道信息不相关。
在一些实施例中,节目信息的数量为多个,且按顺序排列;那么,在执行步骤S904时,具体包括:按照多个节目信息的顺序,依次根据单个节目信息,从预先建立的数据库中进行逐层筛选,得到与至少一个节目信息相关的个人视频录像文件,并将得到的个人视频录像文件确定为第二个人视频录像文件。
在一些实施例中,如果通过执行步骤S904得到的第二个人视频录像文件的数量为多个;那么,上述视频处理方法还包括:根据第二个人视频录像文件的节目信息和第一个人视频录像文件的节目信息,确定第二个人视频录像文件和第一个人视频录像文件的相关程度;按照相关程度从高至低的顺序,对多个第二个人视频录像文件进行排序,得到排序结果;当显示播放提示信息时,按照排序结果显示多个第二个人视频录像文件的节目录制信息。
然后,在执行步骤S908中的响应于接收到继续播放指令,继续播放第二个人视频录像文件时,具体包括:响应于继续播放指令,按照排序结果,依次播放多个第二个人视频录像文件。
在一些实施例中,在执行步骤S908中的响应于接收到继续播放指令,继续播放第二个人视频录像文件时,具体包括:接收针对多个第二个人视频录像文件中单个第二个人视频录像文件的继续播放指令;响应于继续播放指令,播放单个第二个人视频录像文件。
在一些实施例中,用户将硬盘设备插入显示设备后,上述视频处理方法还包括:当检测到硬盘设备时,若硬盘设备挂载正常,检测硬盘设备的传输速率;如果硬盘设备的传输速率大于预设传输速率,在硬盘设备中创建数据库。
参见图45,图45为本申请实施例中更新数据库的一种流程图,可以包括以下步骤:
步骤S1002:接收针对目标节目的录制指令,响应于录制指令,生成目标节目对应的个人视频录像文件以及节目录制信息。
步骤S1004:建立目标节目对应的个人视频录像文件和目标节目对应的节目录制信息的映射关系。
步骤S1006:将目标节目对应的个人视频录像文件、目标节目对应的节目录制信息和映射关系更新至数据库中。
为了方便解释,已经结合具体的实施方式进行了上述说明。但是,上述示例性的讨论不是意图穷尽或者将实施方式限定到上述公开的具体形式。根据上述的教导,可以得到多种修改和变形。上述实施方式的选择和描述是为了更好的解释原理及实际的应用,从而使得本领域技术人员更好的使用所述实施方式以及适于具体使用考虑的各种不同的变形的实施方式。

Claims (24)

  1. 一种显示设备,包括:
    显示器;
    处理器,被配置为:获取用户添加定时任务时的当前时间戳和上电时间戳,以及所述定时任务的计划执行时间戳;如果定时任务未执行且单位时间内系统时间变化值超过预设值,获取第一系统时间变化后的当前时间戳和上电时间戳;根据添加定时任务时的当前时间戳和上电时间戳,所述定时任务的计划执行时间戳,以及第一系统时间变化后的当前时间戳和上电时间戳,计算第一系统时间变化后的定时任务执行时间戳;根据所述第一系统时间变化后的定时任务执行时间戳更新所述定时任务的计划执行时间戳。
  2. 根据权利要求1所述的显示设备,所述处理器,被配置为:
    如果显示设备处于工作状态,控制显示器显示信息提示框,所述信息提示框用于提示用户系统时间已更新,所述信息提示框还用于提示所述系统时间更新后定时任务的执行时间。
  3. 根据权利要求1所述的显示设备,所述处理器,被配置为采用以下方式执行所述根据添加定时任务时的当前时间戳和上电时间戳,所述定时任务的计划执行时间戳,以及第一系统时间变化后的当前时间戳和上电时间戳,计算第一系统时间变化后的定时任务执行时间戳:
    根据添加定时任务时的当前时间戳和上电时间戳,以及,所述第一系统时间变化后的当前时间戳和上电时间戳,计算第一系统时间变化量;
    根据所述定时任务的计划执行时间戳和所述第一系统时间变化量,计算第一系统时间变化后的定时任务执行时间戳。
  4. 根据权利要求1所述的显示设备,所述定时任务包括定时开机、定时关机和预约录制。
  5. 根据权利要求1所述的显示设备,所述处理器,被配置为:
    记录第一系统时间变化后的当前时间戳和上电时间戳;
    如果定时任务未执行且单位时间内系统时间变化值超过预设值,获取第二系统时间变化后的当前时间戳和上电时间戳;
    根据第一系统时间变化后的当前时间戳和上电时间戳,所述定时任务的计划执行时间戳,以及第二系统时间变化后的当前时间戳和上电时间戳,计算第二系统时间变化后的定时任务执行时间戳;
    根据所述第二系统时间变化后的定时任务执行时间戳更新所述定时任务的计划执行时间戳。
  6. 根据权利要求1所述的显示设备,所述处理器,被配置为:
    记录添加定时任务时所述定时任务的计划执行时间戳;
    如果定时任务未执行且单位时间内系统时间变化值超过预设值,获取第二系统时间变化后的当前时间戳和上电时间戳;
    根据添加定时任务时的当前时间戳和上电时间戳、添加定时任务时定时任务的计划执行时间戳,以及第二系统时间变化后的当前时间戳和上电时间戳,计算第二系统时间变化后的定时任务执行时间戳;
    根据所述第二时间变化后的定时任务执行时间戳更新所述定时任务的计划执行时间 戳。
  7. 根据权利要求1所述的显示设备,所述单位时间内系统时间变化值超过预设值包括:
    用户手动设置系统时间时,单位时间内系统时间变化值超过预设值;或者,
    通过网络同步系统时间时,单位时间内系统时间变化值超过预设值。
  8. 根据权利要求1所述的显示设备,所述处理器还被配置为:
    响应于停止录制指令,停止执行视频录制任务,生成录像文件;所述视频录制任务用于以按时间录制模式,录制显示设备当前播放的节目视频;
    查询在录制时段内显示设备的节目播放信息;
    根据所述节目播放信息,确定所述录像文件的目标保存模式;
    按照所述目标保存模式,将所述录像文件存入预设存储器内。
  9. 根据权利要求8所述的显示设备,所述处理器配置为按照如下方式确定录像文件的目标保存模式:
    若所述节目播放信息包含多个节目信息,控制显示器显示保存模式询问弹窗;其中,所述节目信息包括节目名称和节目播放起止点;所述保存模式询问弹窗用于询问是否同意采用按节目保存模式;
    响应于同意指令,确定所述目标保存模式为按节目保存模式;
    或者,响应于拒绝指令,确定所述目标保存模式为整段保存模式。
  10. 根据权利要求8所述的显示设备,所述处理器配置为按照如下方式确定录像文件的目标保存模式:
    若所述节目播放信息仅包含一个节目信息,确定所述目标保存模式为整段保存模式。
  11. 根据权利要求9所述的显示设备,所述处理器被配置为按照如下方式执行所述按节目保存模式:
    根据每个节目信息指示的节目播放起止点,将所述录像文件分割为N个节目录制子文件,并按照节目名称对所述节目录制子文件进行命名;其中,N表示所述节目播放信息包含的节目信息的总数;
    将N个节目录制子文件存入所述预设存储器内。
  12. 根据权利要求11所述的显示设备,所述处理器还配置为执行:
    按照播放时序对N个节目信息进行排序,获取排序在首位的初始节目信息对应的节目播放起点为T1_1和节目播放止点为T1_2,以及获取排序在末位的截止节目信息对应的节目播放起点为TN_1和节目播放止点为TN_2,
    若所述视频录制任务的启动时间T0大于T1_1,根据T0和T1_2对所述初始节目信息对应的节目录制子文件进行分割;和/或,
    若所述视频录制任务的停止时间TS小于TN_2,根据TN_1和TS对所述截止节目信息对应的节目录制子文件进行分割。
  13. 根据权利要求9所述的显示设备,所述处理器被配置为按照如下方式执行所述按节目保存模式:
    在确定所述目标保存模式为按节目保存模式之后,根据N个节目信息指示的节目播放起止点,将所述录像文件分割为N个节目录制子文件,并按照节目名称对所述节目录制子文件进行命名,以及,控制显示器显示节目保存页面;所述节目保存页面中显示N个节目 信息;其中N表示所述节目播放信息包含的节目信息的总数;
    接收对所述节目保存页面中M个目标节目信息的选定操作,其中,M小于或等于N;
    将M个目标节目信息对应的第一节目录制子文件存入所述预设存储器内;
    删除未被选定的N-M个节目信息对应的第二节目录制子文件。
  14. 根据权利要求9或10所述的显示设备,所述处理器被配置为按照如下方式执行所述整段保存模式:
    按当前频道名称对所述录像文件进行命名;
    将所述录像文件存入所述预设存储器内。
  15. 根据权利要求8所述的显示设备,所述处理器还配置为执行:
    响应于所述停止录制指令,控制显示器显示用于询问用户是否保存所述录像文件的提示页面;
    响应于不保存指令,删除所述录像文件;或者,
    响应于保存指令,查询在录制时段内显示设备的节目播放信息。
  16. 根据权利要求8所述的显示设备,所述处理器还被配置执行:
    响应于录像设置指令,控制显示器显示录制任务设置页面;所述录制任务设置页面包括录制模式设置控件,所述录制模式包括按时间录制模式和按节目录制模式;
    响应于对所述按时间录制模式的设置指令,显示时间设置控件和确认控件;
    获取用户通过所述时间设置控件输入的启动时间T0和停止时间TS;
    响应于对所述确认控件的触发操作,根据启动时间T0和停止时间TS创建所述视频录制任务。
  17. 根据权利要求1所述的显示设备,所述处理器,还被配置为:接收针对第一个人视频录像文件的播放指令,响应于所述播放指令,播放所述第一个人视频录像文件,并获取所述第一个人视频录像文件对应的节目录制信息;根据所述节目录制信息,从预先建立的数据库中获取与所述节目录制信息相关的第二个人视频录像文件;所述数据库包括多个个人视频录像文件和所述多个个人视频录像文件分别对应的节目录制信息;
    基于所述第一个人视频录像文件的播放状态,显示播放提示信息,所述播放提示信息用于提示是否继续播放所述第二个人视频录像文件;
    接收继续播放指令或退出指令;
    响应于所述继续播放指令,播放所述第二个人视频录像文件;或响应于所述退出指令,退出播放。
  18. 根据权利要求17所述的显示设备,所述处理器,被配置为:接收针对目标节目的录制指令,响应于所述录制指令,生成所述目标节目对应的个人视频录像文件以及节目录制信息;建立所述目标节目对应的个人视频录像文件和所述目标节目对应的节目录制信息的映射关系;将所述目标节目对应的个人视频录像文件、所述目标节目对应的节目录制信息和所述映射关系更新至数据库中。
  19. 根据权利要求17或18所述的显示设备,所述节目录制信息包括电视频道信息和节目信息;
    所述处理器,被配置为:从预先建立的数据库中获取与所述节目信息相关的第二个人视频录像文件,所述第二个人视频录像文件与所述电视频道信息不相关。
  20. 根据权利要求19所述的显示设备,所述节目信息的数量为多个,且按顺序排列;
    所述处理器,被配置为:按照多个节目信息的顺序,依次根据单个节目信息,从预先建立的数据库中进行逐层筛选,得到与至少一个所述节目信息相关的个人视频录像文件,并将得到的个人视频录像文件确定为第二个人视频录像文件。
  21. 根据权利要求17或18所述的显示设备,所述第二个人视频录像文件的数量为多个;
    所述处理器,被配置为:根据所述第二个人视频录像文件的节目信息和所述第一个人视频录像文件的节目信息,确定所述第二个人视频录像文件和所述第一个人视频录像文件的相关程度;按照所述相关程度从高至低的顺序,对多个第二个人视频录像文件进行排序,得到排序结果;
    当显示播放提示信息时,按照所述排序结果显示所述多个第二个人视频录像文件的节目录制信息;
    响应于所述继续播放指令,按照所述排序结果,依次播放所述多个第二个人视频录像文件。
  22. 根据权利要求21所述的显示设备,所述处理器,被配置为:接收针对所述多个第二个人视频录像文件中单个第二个人视频录像文件的继续播放指令,响应于所述继续播放指令,播放所述单个第二个人视频录像文件。
  23. 根据权利要求17或18所述的显示设备,所述处理器,被配置为:
    当检测到硬盘设备时,若所述硬盘设备挂载正常,检测所述硬盘设备的传输速率;
    如果所述硬盘设备的传输速率大于预设传输速率,在所述硬盘设备中创建所述数据库。
  24. 一种用于显示设备的处理方法,包括:
    获取用户添加定时任务时的当前时间戳和上电时间戳,以及所述定时任务的计划执行时间戳;
    如果定时任务未执行且单位时间内系统时间变化值超过预设值,获取第一系统时间变化后的当前时间戳和上电时间戳;
    根据添加定时任务时的当前时间戳和上电时间戳,所述定时任务的计划执行时间戳,以及第一系统时间变化后的当前时间戳和上电时间戳,计算第一系统时间变化后的定时任务执行时间戳;
    根据所述第一系统时间变化后的定时任务执行时间戳更新所述定时任务的计划执行时间戳。
PCT/CN2023/079850 2022-04-08 2023-03-06 一种显示设备及用于显示设备的处理方法 WO2023193560A1 (zh)

Applications Claiming Priority (6)

Application Number Priority Date Filing Date Title
CN202210371409.9 2022-04-08
CN202210380729.0A CN116939279A (zh) 2022-04-08 2022-04-08 录像文件的保存方法及显示设备
CN202210371409.9A CN116939264A (zh) 2022-04-08 2022-04-08 一种显示设备及定时任务执行时间更新的方法
CN202210380729.0 2022-04-08
CN202210767184.9 2022-06-30
CN202210767184.9A CN115278341A (zh) 2022-06-30 2022-06-30 显示设备及视频处理方法

Publications (1)

Publication Number Publication Date
WO2023193560A1 true WO2023193560A1 (zh) 2023-10-12

Family

ID=88243947

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/079850 WO2023193560A1 (zh) 2022-04-08 2023-03-06 一种显示设备及用于显示设备的处理方法

Country Status (1)

Country Link
WO (1) WO2023193560A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101040517A (zh) * 2004-10-11 2007-09-19 皇家飞利浦电子股份有限公司 一种推荐数字节目的方法和装置
CN101754056A (zh) * 2008-12-17 2010-06-23 中国科学院自动化研究所 支持海量数据自动处理的数字内容编目管理系统及方法
CN107678779A (zh) * 2017-09-27 2018-02-09 网宿科技股份有限公司 一种定时任务执行方法和电子设备
CN109766349A (zh) * 2018-12-13 2019-05-17 平安普惠企业管理有限公司 任务防重方法、装置、计算机设备及存储介质
CN115278341A (zh) * 2022-06-30 2022-11-01 海信视像科技股份有限公司 显示设备及视频处理方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101040517A (zh) * 2004-10-11 2007-09-19 皇家飞利浦电子股份有限公司 一种推荐数字节目的方法和装置
CN101754056A (zh) * 2008-12-17 2010-06-23 中国科学院自动化研究所 支持海量数据自动处理的数字内容编目管理系统及方法
CN107678779A (zh) * 2017-09-27 2018-02-09 网宿科技股份有限公司 一种定时任务执行方法和电子设备
CN109766349A (zh) * 2018-12-13 2019-05-17 平安普惠企业管理有限公司 任务防重方法、装置、计算机设备及存储介质
CN115278341A (zh) * 2022-06-30 2022-11-01 海信视像科技股份有限公司 显示设备及视频处理方法

Similar Documents

Publication Publication Date Title
US10121514B2 (en) Video preview based browsing user interface
US7346264B2 (en) Non-linear reproduction control method of multimedia stream and apparatus thereof
JP4218185B2 (ja) 番組録画・再生システム及び番組録画・再生方法、並びに番組録画・再生装置
US7882523B2 (en) Video search assisting method, video search assisting device, and broadcast receiving apparatus
JP3284543B2 (ja) 情報処理装置、情報処理方法、およびプログラム格納媒体
US20120137234A1 (en) Electronic apparatus, display control method for the electronic apparatus, graphical user interface, and display control program
JP2000138886A (ja) 番組録画再生装置および番組録画再生方法
KR20010010916A (ko) 텔레비전 방송을 재생/녹화하기 위한 수신기 및 그 제어방법
WO2023193560A1 (zh) 一种显示设备及用于显示设备的处理方法
JP2008193585A (ja) 放送番組記録再生装置および放送番組記録再生方法
JP2004348955A (ja) ビデオコンテンツ再生方法及び装置
KR100961296B1 (ko) Pvr 시스템에서 녹화 목록 관리 방법
JP5005835B2 (ja) 再生装置、再生方法、プログラムおよび記録媒体
KR100662401B1 (ko) 피브이알 및 그 영상 저장 방법
JP2000307994A (ja) 情報処理装置および方法、並びに媒体
JP7420642B2 (ja) 動画再生装置および動画再生方法
CN116939279A (zh) 录像文件的保存方法及显示设备
WO2023093108A1 (zh) 一种显示设备及文件展示方法
JP2000311416A (ja) 情報処理装置および方法、並びに媒体
JPH1196049A (ja) 記録再生装置、記録再生方法、及び記録媒体
WO2024046606A1 (en) Display apparatus and method for processing recorded data
US20060222316A1 (en) Time shift actuation and control method used for personal video recorder
JP2000308003A (ja) 情報処理装置および方法、並びに媒体
CN117812300A (zh) 一种显示设备及内置硬盘模式参数调节方法
JP3246601B2 (ja) 情報処理装置、情報処理方法、およびプログラム格納媒体

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23784124

Country of ref document: EP

Kind code of ref document: A1