IPTV-based live broadcast and playback switching method, device, equipment and medium
By introducing target switching buttons and cache preloading technology into the IPTV system, seamless switching between live broadcast and playback is achieved, solving the problem of low switching efficiency and providing a convenient user experience.
Patent Information
- Application Number
- CN202411688920.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-25
- Publication Date
- 2025-09-19
- Estimated Expiration
- 2044-11-25
AI Technical Summary
In IPTV systems, switching between live broadcast and playback is inefficient and user operations are cumbersome.
By introducing a target switching button in the IPTV system, detecting user operations, displaying historical dates in a pop-up window, determining the target timestamp based on the user-selected target date and the live program stop timestamp, obtaining the playback clip of the target channel, and playing it on the current interface, seamless switching is achieved by combining cache preloading technology.
It improves the efficiency of switching between live broadcast and playback, reduces user operation steps, provides a convenient and smooth viewing experience, avoids network fluctuations and delays, and users can freely switch between live broadcast and playback programs.
Smart Images

Figure CN119545103B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of IPTV technology and provides a method, device, equipment and medium for switching between live broadcast and playback based on IPTV. Background Art
[0002] As the terminal of Internet Protocol Television (IPTV) system, set-top box has developed rapidly in recent years, and the number of users and user requirements are also increasing.
[0003] When a user is watching a live channel using a set-top box, if he wants to watch the replay program of the channel at this time, he needs to press the menu button on the remote control to switch from the live interface to the menu interface, and then select the "Playback" option in the menu interface to switch to the replay selection interface. In the replay selection interface, select the channel, date and specific time period he wants to watch. The time period is generally displayed as 00:00-24:00. Finally, according to the channel, date and specific time period selected by the user, the corresponding replay program is played. The user can then fast forward to the specific part of the replay program he wants to watch according to actual needs. This process is troublesome for users to operate and the switching efficiency is also low. Summary of the Invention
[0004] The present application provides a method, apparatus, device and medium for switching between live broadcast and playback based on IPTV, which is used to solve the problem of low switching efficiency between live broadcast and playback.
[0005] In a first aspect, a method for switching between live broadcast and playback based on IPTV is provided, which is applied to an IPTV system, and the method includes:
[0006] Play the live broadcast of the target channel on the current interface;
[0007] Detecting a user pressing the target switch button, stopping the live broadcast on the current interface, and displaying a pop-up window showing the historical dates that can be replayed;
[0008] determining a target timestamp based on a target date selected by a user from the historical dates and a first timestamp of when the live program stopped playing; the first timestamp being composed of the first date and the first time point when the live program stopped playing; and the target timestamp being composed of the target date and the first time point;
[0009] Obtaining a target playback segment of the target channel according to the target timestamp;
[0010] Play the target playback segment on the current interface.
[0011] Optionally, before acquiring the target playback segment of the target channel according to the target timestamp, the method further includes:
[0012] Obtaining playback segments of the target channel within a preset time range from a memory, and preloading the playback segments within the preset time range into a cache;
[0013] The acquiring, according to the target timestamp, a target playback segment of the target channel includes:
[0014] According to the target timestamp, a target playback segment of the target channel is obtained from the cache.
[0015] Optionally, after playing the target playback segment on the current interface, the method further includes:
[0016] Detecting a user pressing operation on the target switching button, stopping the playback of the target playback segment on the current interface;
[0017] Acquire a target live segment of the target channel according to a second timestamp at which the target playback segment stops playing;
[0018] Play the target live segment on the current interface.
[0019] Optionally, before obtaining the target live segment of the target channel according to the second timestamp at which the target playback segment stops playing, the method further includes:
[0020] Obtaining the latest live segment of the target channel via the Internet, and preloading the latest live segment into a cache;
[0021] The acquiring the target live segment of the target channel according to the second timestamp at which the target playback segment stops playing includes:
[0022] The target live segment of the target channel is acquired from the cache according to the second timestamp at which the target playback segment stops playing.
[0023] Optionally, while playing the live program of the target channel on the current interface, the method further includes:
[0024] Recording the live program in real time to obtain recorded content;
[0025] The recording is stored in a memory.
[0026] Optionally, the target switching key is a pre-set switching shortcut key; the switching shortcut key includes at least one physical key.
[0027] Optionally, the first physical key among the at least one physical key is a * key or a # key.
[0028] In a second aspect, a switching device for live broadcast and playback based on IPTV is provided, which is applied to an IPTV system; the device comprises:
[0029] Play module, used to play the live program of the target channel on the current interface;
[0030] a detection module, configured to detect a user pressing a target switching button, stop playing the live program on the current interface, and display a pop-up window showing a historical date that can be replayed;
[0031] a determination module, configured to determine a target timestamp based on a target date selected by a user from the historical dates and a first timestamp at which the live program stops playing; the first timestamp being composed of a first date and a first time point at which the live program stops playing; and the target timestamp being composed of the target date and the first time point;
[0032] An acquisition module, configured to acquire a target playback segment of the target channel according to the target timestamp;
[0033] The playing module is further configured to play the target playback segment on the current interface.
[0034] In a third aspect, the present application provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the IPTV-based live broadcast and playback switching method described in the first aspect.
[0035] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, and a processor executes the computer program to implement the IPTV-based live broadcast and playback switching method described in the first aspect.
[0036] Compared with the prior art, the present invention has the following advantages:
[0037] The present application provides a method for switching between live broadcast and playback based on IPTV, which is applied to an IPTV system and includes: playing a live program of a target channel on a current interface; detecting a user pressing an operation of a target switching button, stopping the live program on the current interface, and displaying a pop-up window of a historical date that can be replayed; determining a target timestamp based on a target date selected by the user from the historical dates and a first timestamp when the live program stopped playing; the first timestamp being composed of the first date and the first time point when the live program stopped playing; the target timestamp being composed of the target date and the first time point; obtaining a target playback segment of the target channel based on the target timestamp; and playing the target playback segment on the current interface.
[0038] In this application, the target switch button can be used to switch from the live program of the target channel to the playback program of the target channel. The target timestamp is determined based on the target date selected by the user and the first time point when the live program stops playing. The target timestamp can be used to automatically identify the playback program of the target channel in the same time period and accurately locate it, without having to watch the entire playback program from the beginning. The user only needs to press the target switch button and select the target date, which reduces the user's operation steps, saves the time of manually searching for channels and programs, and saves the time of fast forward and rewinding, thereby improving the efficiency of switching between live and playback, and providing users with a more convenient and smooth viewing experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0040] Figure 1 A schematic diagram of an application scenario provided in an embodiment of the present application;
[0041] Figure 2 A flowchart of a method for switching between live broadcast and playback based on IPTV provided in an embodiment of the present application;
[0042] Figure 3 A schematic diagram of the architecture design of an IPTV-based live broadcast and playback switching system provided in an embodiment of the present application;
[0043] Figure 4 A schematic diagram of the structure of a switching device for IPTV-based live broadcast and playback provided in an embodiment of the present application. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application. In the absence of conflict, the embodiments in the present application and the features in the embodiments can be combined with each other in any way. In addition, although a logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in an order different from that here.
[0045] In the prior art, users have to perform complex operations to watch replayed programs, resulting in low efficiency in switching between live broadcast and replay. In view of this, the embodiments of the present application provide a method for switching between live broadcast and replay based on IPTV, which is applied to an IPTV system. The following briefly introduces application scenarios to which the technical solutions of the embodiments of the present application can be applied. It should be noted that the application scenarios described below are merely illustrative of the embodiments of the present application and are not intended to be limiting. During implementation, the technical solutions provided by the embodiments of the present application can be flexibly applied according to actual needs.
[0046] Please refer to Figure 1 , which is a schematic diagram of an application scenario provided in an embodiment of the present application, or can be understood as an architecture diagram of an IPTV system. The application scenario includes a set-top box, a remote control and a TV.
[0047] A set-top box receives signals from television sources (such as cable TV, satellite TV, and streaming services) and converts them into a format that the television can display. It also provides additional functionality, such as recording TV programs, watching on-demand content, and accessing applications. A remote control is used to operate the set-top box remotely. A remote control typically includes multiple buttons, such as directional keys, number keys, and function keys. By pressing these buttons, users can switch channels, adjust volume, navigate menus, and perform other functions without having to touch the set-top box directly.
[0048] The application scenarios of the embodiments of the present application are introduced above. Figure 1 Application scenarios, for Figure 2 The following describes a method for switching between live broadcast and playback based on IPTV.
[0049] The following combination Figure 1 The application scenario shown is Figure 2 The following describes a method for switching between live broadcast and playback based on IPTV.
[0050] S201: Play the live program of the target channel on the current interface.
[0051] In a specific implementation, after the set-top box is connected to the Internet, it can obtain the live stream of the target channel through the Internet. The set-top box decodes the received live stream and converts it into a video format that can be displayed on a TV. The decoded video signal is then transmitted to the TV through an appropriate interface (such as HDMI). The TV displays the received video signal on the current interface, allowing users to watch the live program of the target channel through the TV.
[0052] In a possible embodiment, while playing the live program of the target channel on the current interface, the method further includes: recording the live program in real time to obtain recorded content; and storing the recorded content in a memory.
[0053] In practice, the IPTV system can simultaneously record live broadcasts from a target channel on a television and store them in the set-top box's memory, such as a high-capacity hard drive or solid-state drive. This memory is used for long-term data storage, and data in the memory persists even after the set-top box is turned off or restarted. The cache can be regularly cleared to free up memory space and ensure stable system performance.
[0054] In an embodiment of the present application, when the user wants to watch the replay clips of the program in the future, they can directly obtain and play them from the memory of the set-top box without the need for the Internet, which can improve the playback efficiency of the replay program. In addition, local storage does not rely on network stability and can usually maintain a higher video quality.
[0055] S202: Detecting a user pressing the target switch button, stopping the live broadcast on the current interface, and displaying a pop-up window showing the historical dates that can be replayed.
[0056] In a specific implementation, when a user is watching a live program on a target channel through the current interface of the TV set, if the user wants to switch to a replay of the target channel, the user presses the target switch button on the remote control. The target switch button is used to switch between the live program and the replay of the same channel. At this time, the current interface of the TV set will stop playing the live program, and a window will pop up showing the historical dates that can be replayed. The historical dates are dates before the current date.
[0057] Considering that the actual time range for users to watch programs is relatively small, it is unnecessary to display too many items. In one possible embodiment, to optimize the user experience and avoid information overload, the display range of historical dates is set to dates within a preset number of days before the current date. For example, the preset number of days is only three, with the current date being September 14, 2024, and the historical dates being September 13, 2024, September 12, 2024, and September 11, 2024. This setting can improve the relevance and practicality of historical dates, helping users quickly find recent and relevant content while avoiding displaying too many historical dates, making it easier for users to find content they are interested in.
[0058] In a possible embodiment, the target switching button can be a newly added physical button on the remote control, or a switching shortcut key pre-set by the user, the switching shortcut key including at least one physical button. The following describes the process of the user setting the target switching button.
[0059] During the specific implementation process, the user presses the "Settings" button on the remote control to enter the TV's settings interface, clicks the "Shortcut Key" option in the settings interface to enter the shortcut key settings interface, selects at least one physical button set as the target switch button in the shortcut key settings interface, and selects the function performed by the target switch button, such as "switch from live program to playback program" or "switch from playback program to live program". After completing the settings, save the changes.
[0060] In order to avoid interference with the original function of the key, in a possible embodiment, the first physical key of the at least one physical key is a “*” key or a “#” key.
[0061] In specific implementations, the target switching key can be a single physical key, such as the "*" key or the "#" key, or a repeated combination of single physical keys, such as the "##" key or the "*" key, or a different combination of multiple physical keys, such as "#1" or "*2." This design can effectively reduce conflicts with other function keys, effectively isolate new functions from existing functions, and avoid operational confusion and accidental touches.
[0062] S203: Determine a target timestamp based on a target date selected by the user from historical dates and the first timestamp when the live program stops playing.
[0063] During implementation, when a user presses a target switch button, stopping playback of a live program on the current interface, the system's current local time can be recorded as the first timestamp of when the live program stopped. The first timestamp consists of the first date and the first time point when the live program stopped. The user selects a target date from the historical dates based on the date of the playback program they actually want to watch. The first timestamp is split into the first date and the first time point, and the user-selected target date is combined with the time point to obtain a target timestamp. In other words, the target timestamp consists of the target date and the first time point. Finally, the target playback segment of the target channel is retrieved based on the target timestamp.
[0064] For example, the target date selected by the user is 2024.09.13, the first timestamp is 2024.09.14 12:00, the first date is 2024.09.14, the first time point is 12:00, and the target timestamp is 2024.09.13 12:00.
[0065] S204: Obtain a target playback segment of a target channel according to the target timestamp.
[0066] In a possible embodiment, before obtaining the target playback segment of the target channel according to the target timestamp, the method further includes: obtaining the playback segment of the target channel within a preset time range from the memory, and preloading the playback segment within the preset time range into the cache.
[0067] The step of acquiring a target playback segment of a target channel according to the target timestamp includes acquiring the target playback segment of the target channel from a cache according to the target timestamp.
[0068] In practice, cache is used to temporarily store frequently accessed data. This data is typically cleared when the application or set-top box is closed, or replaced when the cache expires. While playing live programs, the IPTV system preloads playback clips within a preset time range into the cache. This preloading technology enables seamless switching from live to playback, avoiding wait times caused by network fluctuations or slow server responses, and significantly reducing delays when users switch to playback clips. When switching from live to playback content, users can immediately access the playback clip without having to wait for loading, eliminating waiting and buffering time and enhancing the overall viewing experience.
[0069] S205: Play the target playback segment on the current interface.
[0070] In a possible embodiment, after playing the target playback segment on the current interface, the method further includes:
[0071] When a user presses the target switch button, the target playback segment is stopped on the current interface; the target live segment of the target channel is obtained according to the second timestamp when the target playback segment stops playing; and the target live segment is played on the current interface.
[0072] In a specific implementation, when a user presses a target switching button and stops playing a target playback segment on the current interface, the system's current local time, i.e., a second timestamp when the target playback segment stops playing, can be recorded. Based on the second timestamp, the target live segment of the target channel can be retrieved and played on the current interface. The second timestamp consists of a first date and a second time point, with the second time point being later than the first time point.
[0073] For example, if a user wants to switch from a live program on a target channel to a replay of the target channel, they press the target switch button. The first timestamp of the live program stopping is 2024.09.14 12:00. If the user selects a target date of 2024.09.13, the target timestamp of the target replay segment is 2024.09.13 12:00. After watching for an hour, the user wants to switch from the replay of the target channel back to the live program on the target channel and presses the target switch button again. The second timestamp of the target replay segment stopping is 2024.09.14 13:00. The target live segment of 2024.09.14 13:00 is retrieved and played.
[0074] In an embodiment of the present application, by operating the target switch button, free switching between live programs and playback programs on the same channel is achieved. Users can switch back and forth between live broadcast status and playback status at any time according to their needs and interests, and watch programs at their own pace, no longer restricted to the traditional linear playback mode.
[0075] In a possible embodiment, before obtaining the target live segment of the target channel according to the second timestamp at which the target playback segment stops playing, the method further includes: obtaining the latest live segment of the target channel via the Internet and preloading the latest live segment into the cache.
[0076] The step of acquiring the target live segment of the target channel according to the live timestamp includes acquiring the target live segment of the target channel from the cache according to the second timestamp at which the target playback segment stops playing.
[0077] During the specific implementation process, the IPTV system pre-loads the latest live clips into the cache while playing the playback program. The pre-loading technology can achieve seamless switching between playback and live broadcast, which can significantly reduce the delay when users switch from playback programs to live programs. When switching to live content, users can immediately see the latest content, avoiding viewing interruptions due to slow loading of live data, ensuring that users can continue to enjoy live programs, and improving their viewing experience.
[0078] In one possible implementation, a dedicated live broadcast thread is created to handle the acquisition, decoding, and playback of live program content. This ensures the real-time and smooth performance of live content, preventing other tasks from impacting live broadcast quality. Another dedicated playback thread is created to handle the decoding, caching, and playback of replayed program content. The playback thread can run independently of the live broadcast thread, ensuring that playback processing does not interfere with live broadcast processing.
[0079] In the embodiments of this application, multithreading technology is used to simultaneously process live broadcast and playback tasks, improving system response speed. Independent threads are allocated for live broadcast and playback, respectively. When users switch between playback and live broadcast, the switching process is smoother and faster because the tasks are processed independently. Because live broadcast and playback are processed in independent threads, a failure in one thread will not directly affect the operation of the other thread, improving system robustness.
[0080] Please refer to Figure 3 This embodiment of the present application provides a schematic diagram of the architecture design of a switching system for live and playback IPTV broadcasts. The switching system for live and playback IPTV broadcasts includes a data storage layer, a control logic layer, and a user interface layer. The functions of each layer are described below.
[0081] At the data storage layer, establish an efficient storage system to store live program data and recorded playback clips. Use high-capacity hard drives or solid-state drives to ensure fast data access and storage. Categorize and index the stored data to quickly locate specific live programs or playback clips.
[0082] At the control logic layer, a dedicated control module is designed to handle user commands, such as switching live channels and selecting playback time points. A fast switching algorithm is implemented to quickly locate the target segment based on user commands and perform seamless switching. It also interacts with the data storage layer to read and write relevant data.
[0083] At the user interface level, an intuitive and concise user interface is provided, allowing users to easily switch between live broadcast and playback. Clear operation prompts are provided on the user interface to let users know how to switch between live broadcast and playback.
[0084] In summary, the present application provides a method for switching between live broadcast and playback based on IPTV. Through reasonable system architecture design, efficient switching mechanism and fast switching technology, the live broadcast interface can be directly used to switch to the playback program, and the channel content of this time period can be automatically identified. It only needs to select the target date, providing users with a more convenient and smooth viewing experience. Users can freely switch between live broadcast mode and playback mode at any time through the target switching button according to their needs, and watch programs at their own pace, no longer restricted by the traditional linear playback mode. Accurate timestamps can help the system manage and retrieve playback clips more efficiently, reduce the waste of system resources, and retrieve playback clips by target timestamps to quickly switch to the playback program and perform precise positioning, saving the time of manual search and fast forward and rewind, and improving the switching efficiency between live broadcast and playback.
[0085] Based on the same invention concept, please refer to Figure 4 The present application also provides a switching device for live broadcast and playback based on IPTV, which is applied to an IPTV system; the device includes:
[0086] Play module, used to play the live program of the target channel on the current interface;
[0087] The detection module is used to detect the user's pressing operation on the target switch button, stop playing the live program on the current interface, and pop up a window to display the historical date that can be replayed;
[0088] A determination module, configured to determine a target timestamp based on a target date selected by a user from historical dates and a first timestamp at which the live program stops playing; the first timestamp being composed of the first date and the first time point at which the live program stops playing; and the target timestamp being composed of the target date and the first time point;
[0089] An acquisition module is used to acquire a target playback segment of a target channel according to a target timestamp;
[0090] The playback module is also used to play the target playback segment on the current interface.
[0091] Optionally, the device further includes a preloading module, which is used to:
[0092] Before obtaining the target playback segment of the target channel according to the target timestamp, the playback segments of the target channel within a preset time range are obtained from the memory, and the playback segments within the preset time range are preloaded into the cache;
[0093] The acquisition module is specifically used for:
[0094] Get the target playback segment of the target channel from the cache based on the target timestamp.
[0095] Optionally, the detection module is further configured to detect a user pressing a target switch button after the target playback segment is played on the current interface, and stop playing the target playback segment on the current interface;
[0096] The acquisition module is further configured to acquire a target live segment of a target channel according to a second timestamp at which the target playback segment stops playing;
[0097] The playback module is also used to play the target live segment on the current interface.
[0098] Optionally, the preloading module is further configured to obtain the latest live segment of the target channel through the Internet before obtaining the target live segment of the target channel according to the second timestamp at which the target playback segment stops playing, and preload the latest live segment into the cache;
[0099] The acquisition module is specifically configured to acquire the target live segment of the target channel from the cache according to the second timestamp at which the target playback segment stops playing.
[0100] Optionally, the device further includes a storage module, which is used to:
[0101] While playing the live program of the target channel on the current interface, the live program can be recorded in real time to obtain the recorded content;
[0102] Store recordings in memory.
[0103] Optionally, the target switching key is a pre-set switching shortcut key; the switching shortcut key includes at least one physical key.
[0104] Optionally, the first physical key among the at least one physical key is a * key or a # key.
[0105] It should be noted that the modules in the IPTV-based live broadcast and playback switching device in this embodiment correspond one-to-one to the steps in the IPTV-based live broadcast and playback switching method in the aforementioned embodiment. Therefore, the specific implementation of this embodiment can refer to the implementation of the aforementioned IPTV-based live broadcast and playback switching method, which will not be repeated here.
[0106] Based on the same inventive concept, the present application also provides a computer device, which is equivalent to the IPTV device discussed above. The computer device includes a processor, a memory, and a computer program stored in the memory. When the computer program is executed by the processor, it implements the aforementioned IPTV-based live broadcast and playback switching method.
[0107] Based on the same inventive concept, the present application also provides a computer storage medium on which a computer program is stored. When the computer program is executed by a processor, the aforementioned IPTV-based live broadcast and playback switching method is implemented.
[0108] In some embodiments, the computer-readable storage medium may be a memory device such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface mount memory, optical disk, or CD-ROM; or various devices including any one or any combination of the above memories. The computer may be various computing devices including smart terminals and servers.
[0109] In some embodiments, executable instructions may be in the form of a program, software, software module, script, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
[0110] As an example, executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinating files (e.g., files storing one or more modules, subroutines, or code portions).
[0111] By way of example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communication network.
[0112] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or system comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or system. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or system comprising the element.
[0113] The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0114] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as read-only memory / random access memory, magnetic disk, optical disk), and includes a number of instructions for enabling a multimedia terminal device (which can be a mobile phone, computer, television receiver, or network device, etc.) to execute the methods of each embodiment of the present application.
[0115] The above are only preferred embodiments of the present application and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the description and accompanying drawings of this application, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for switching between live broadcast and playback based on IPTV, characterized in that: In an IPTV system, the method includes: Play the live broadcast of the target channel on the current interface; Detecting a user pressing the target switch button, stopping the live broadcast on the current interface, and displaying a pop-up window showing the historical dates that can be replayed; determining a target timestamp based on a target date selected by a user from the historical dates and a first timestamp of when the live program stopped playing; the first timestamp being composed of the first date and the first time point when the live program stopped playing; and the target timestamp being composed of the target date and the first time point; According to the target timestamp, a target playback segment of the target channel is obtained; the target playback segment is a program that is in the same time period as the live program on a different date; Play the target playback segment on the current interface.
2. The method for switching between live broadcast and playback based on IPTV according to claim 1, wherein: Before acquiring the target playback segment of the target channel according to the target timestamp, the method further includes: Obtaining playback segments of the target channel within a preset time range from a memory, and preloading the playback segments within the preset time range into a cache; The acquiring, according to the target timestamp, a target playback segment of the target channel includes: According to the target timestamp, a target playback segment of the target channel is obtained from the cache.
3. The method for switching between live broadcast and playback based on IPTV according to claim 1, wherein: After playing the target playback segment on the current interface, the method further includes: Detecting a user pressing operation on the target switching button, stopping the playback of the target playback segment on the current interface; Acquire a target live segment of the target channel according to a second timestamp at which the target playback segment stops playing; Play the target live segment on the current interface.
4. The method for switching between live broadcast and playback based on IPTV as claimed in claim 3, wherein: Before acquiring the target live segment of the target channel according to the second timestamp at which the target playback segment stops playing, the method further includes: Obtaining the latest live segment of the target channel via the Internet, and preloading the latest live segment into a cache; The acquiring the target live segment of the target channel according to the second timestamp at which the target playback segment stops playing includes: The target live segment of the target channel is acquired from the cache according to the second timestamp at which the target playback segment stops playing.
5. The method for switching between live broadcast and playback based on IPTV according to claim 1, wherein: While playing the live program of the target channel on the current interface, the method further includes: Recording the live program in real time to obtain recorded content; The recording is stored in a memory.
6. The method for switching between live broadcast and playback based on IPTV according to claim 1, wherein: The target switching key is a preset switching shortcut key; the switching shortcut key includes at least one physical key.
7. The method for switching between live broadcast and playback based on IPTV according to claim 6, wherein: The first physical key in the at least one physical key is key or the # key.
8. A switching device for live broadcast and playback based on IPTV, characterized in that: Applicable to IPTV system; the device comprises: Play module, used to play the live program of the target channel on the current interface; a detection module, configured to detect a user pressing a target switching button, stop playing the live program on the current interface, and display a pop-up window showing a historical date that can be replayed; a determination module, configured to determine a target timestamp based on a target date selected by a user from the historical dates and a first timestamp at which the live program stops playing; the first timestamp being composed of a first date and a first time point at which the live program stops playing; and the target timestamp being composed of the target date and the first time point; An acquisition module is configured to acquire a target playback segment of the target channel according to the target timestamp; the target playback segment is a program that is in the same time period as the live program on a different date; The playing module is further configured to play the target playback segment on the current interface.
9. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores a computer program, and the processor executes the computer program to implement the IPTV-based live broadcast and playback switching method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and the processor executes the computer program to implement the IPTV-based live broadcast and playback switching method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Play control method and device
CN103905913A