IPTV quick start method, device and storage medium
By sending standby context information to the proxy server in the IPTV system and disconnecting the heartbeat connection, and re-establishing the connection after receiving the recovery context information, the problem of IPTV set-top box startup time being too long is solved and the user experience is improved.
Patent Information
- Application Number
- CN202410876423.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-07-02
AI Technical Summary
Existing IPTV set-top boxes take too long to display on the homepage of the electronic program list, which affects user experience.
By responding to the standby operation command, determine the current playback status, obtain the pre-standby operating parameters and configure the standby mode, generate standby context information, send the standby context information to the proxy server and start the standby mode, disconnect the heartbeat connection, and re-establish it after receiving the recovery context information. Heartbeat connection, restore to the playback screen before standby.
It reduces standby recovery time and terminal device login time, and improves user experience.
Smart Images

Figure CN118433473B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of interactive network television, and in particular to an IPTV quick start method, device and storage medium. Background Art
[0002] With the widespread commercial use of IPTV (Internet Protocol Television) set-top boxes, functions such as live broadcast, on-demand, fast forward / rewind, pause / play, and position-based playback are provided, greatly improving user freedom and user experience.
[0003] However, in the prior art, it takes too long to start the set-top box and display the home page of the electronic program guide, which seriously affects the user experience. Summary of the invention
[0004] The main purpose of the present invention is to provide an IPTV quick startup method, device and storage medium, aiming to solve the technical problem that it takes too long from the startup of a set-top box to the display of the home page of an electronic program guide.
[0005] To achieve the above-mentioned purpose, the present invention provides an IPTV quick startup method, which is applied to a terminal device, and the method comprises: determining a current playback state in response to an acquired standby operation instruction; acquiring pre-standby operation parameters and configuring a standby mode based on the current playback state; generating standby context information based on the pre-standby operation parameters and the configured standby mode; sending the standby context information to a proxy server and starting the standby mode; in the standby mode, the terminal device disconnects a heartbeat connection with the service server; in response to an acquired standby recovery instruction, exiting the standby mode, and sending an acquisition request to the proxy server, wherein the acquisition request is used to acquire recovery context information corresponding to the standby context information; based on the recovery context information, re-establishing a heartbeat connection with the service server and recovering to the playback screen before the standby.
[0006] Optionally, the current playback state includes a non-playing state and a playing state, and determining the current playback state in response to the acquired standby operation instruction includes: in response to the standby operation instruction, querying whether the playback address of the play list of the terminal device is empty; if the playback address of the play list is empty, determining that the current playback state is the non-playing state; if the playback address of the play list is not empty, determining that the current playback state is the playing state.
[0007] Optionally, the playback status includes a live broadcast status and a video-on-demand status, and the obtaining of the pre-standby operation parameters and configuring the standby mode based on the current playback status includes: if the current playback status is a non-playback status, obtaining the pre-standby operation parameters and configuring the standby mode to F1; if the current playback status is a live broadcast status, obtaining the pre-standby operation parameters and configuring the standby mode to F2; if the current playback status is a video-on-demand status, obtaining the pre-standby operation parameters and configuring the standby mode to F3.
[0008] Optionally, based on the recovery context information, re-establishing a heartbeat connection with the business server and restoring to the playback screen before standby, includes: parsing the recovery context information to obtain post-standby operation parameters and the standby mode; the post-standby operation parameters at least include a post-standby heartbeat address and a post-standby heartbeat cycle; based on the post-standby heartbeat address and the post-standby heartbeat cycle, re-establishing a heartbeat connection with the business server; based on the standby mode, switching the playback screen after standby to the playback screen before standby.
[0009] Optionally, based on the standby mode, switching the playback screen after standby to the playback screen before standby includes: if the standby mode is F1, extracting the service entry address in the parsed recovery context information, and reloading the page based on the service entry address; if the standby mode is F2, obtaining the live broadcast address in the parsed recovery context information, obtaining the latest video screen based on the live broadcast address, and switching the playback screen after standby to the latest video screen; if the standby mode is F3, obtaining the on-demand address and the elapsed playback time in the parsed recovery context information, re-establishing the on-demand playback request based on the on-demand address, and switching the playback screen after standby to the playback screen before standby based on the elapsed playback time.
[0010] Optionally, before determining the current playback state in response to the acquired standby operation instruction, the method further includes: in response to a user operation, calling a preset function to determine the current playback state; and modifying the playback address and playback state in the playlist based on the current playback state.
[0011] Optionally, in response to the user operation, calling a preset function to determine the current playback state includes: in response to the user operation, calling a first preset function to determine that the current playback state is a live broadcast state; based on the current playback state, modifying the playback address and the playback state in the playlist includes: adding the current playback address to the playlist, and marking the playback state of the playlist as the live broadcast state; or, in response to the user operation, calling a preset function to determine the current playback state includes: in response to the user operation, calling a second preset function to determine that the current playback state is a video-on-demand state; based on the current playback state, modifying the playback address and the playback state in the playlist includes: adding the current video-on-demand address to the playlist, and marking the playback state of the playlist as the video-on-demand state; or, in response to the user operation, calling a preset function to determine the current playback state includes: in response to the user operation, calling a third preset function to determine that the current playback state is a non-playback state; based on the current playback state, modifying the playback address and the playback state in the playlist includes: clearing the playback address and the playback state mark in the playlist.
[0012] In addition, to achieve the above-mentioned purpose, the present invention also provides an IPTV quick startup method, which is applied to a proxy server, and the method comprises: when the standby context information sent by the terminal device is obtained, the standby context information is parsed to obtain the first ID information, the pre-standby heartbeat address and the pre-standby heartbeat period; based on the first ID information, a storage directory is established and the standby context information corresponding to the first ID information is stored in the storage directory; based on the pre-standby heartbeat address and the pre-standby heartbeat period, a heartbeat connection is established with the service server; when the acquisition request sent by the terminal device is obtained, the acquisition request is processed Parse to obtain second ID information; based on the second ID information, retrieve the standby context information corresponding to the second ID information, and obtain the post-standby heartbeat address and the post-standby heartbeat period sent by the business server; based on the post-standby heartbeat address and the post-standby heartbeat period, update the standby context information corresponding to the second ID information to generate recovery context information; send the recovery context information to the terminal device corresponding to the second ID information, and disconnect the heartbeat connection with the business server; the recovery context information is used to enable the terminal device to re-establish the heartbeat connection with the business server and restore to the playback screen before standby.
[0013] In addition, to achieve the above-mentioned purpose, the present invention also provides an IPTV quick start device, which is applied to a terminal device, and the device includes: a determination module, which is used to determine the current playback state in response to the acquired standby operation instruction; an acquisition module, which is used to acquire the pre-standby operation parameters and configure the standby mode based on the current playback state; a generation module, which is used to generate standby context information based on the pre-standby operation parameters and the configured standby mode; a first sending module, which is used to send the standby context information to a proxy server and start the standby mode; the proxy server is used to store the standby context information and establish a heartbeat connection with a service server based on the standby context information; the standby mode is that the terminal device disconnects the heartbeat connection with the service server; a second sending module, which is used to exit the standby mode in response to the acquired standby recovery instruction and send an acquisition request to the proxy server; a recovery module, which is used to re-establish a heartbeat connection with the service server and restore to the playback screen before standby based on the acquired recovery context information sent by the proxy server.
[0014] In addition, the present invention also provides a terminal device, which includes: at least one processor, a memory and an input and output unit; wherein the memory is used to store a computer program, and the processor is used to call the computer program stored in the memory to execute any of the methods described above.
[0015] In addition, the present invention also provides a computer-readable storage medium, which includes instructions, and when the instructions are executed on a computer, the computer executes any one of the above methods.
[0016] The present invention proposes an IPTV quick start method, device and storage medium. By sending standby context information to a proxy server and starting a standby mode, on the one hand, the proxy server can store the standby context information, which can reduce information loss to a certain extent and improve the success rate of subsequent video image recovery; on the other hand, the proxy server can replace the terminal device to maintain a heartbeat connection with the service server, saving the subsequent service authentication time of the terminal device; by receiving the recovery context information sent by the proxy server and exiting the standby mode, on the one hand, the video image can be restored according to the recovery context information, reducing the standby recovery time; on the other hand, the terminal device can replace the proxy server to re-establish a heartbeat connection with the service server, saving the service authentication time of the terminal device, thereby reducing the login time of the terminal device; by reducing the standby recovery time and the login time of the terminal device, the purpose of reducing the startup time of the terminal device can be achieved, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1A schematic diagram of a flow chart of an IPTV quick startup method provided by an embodiment of the present invention;
[0018] Figure 2 A schematic diagram of a flow chart of an IPTV quick start method provided by another embodiment of the present invention;
[0019] Figure 3 A schematic diagram of functional modules of an IPTV quick start device provided by an embodiment of the present invention;
[0020] Figure 4 A schematic diagram of the structure of a medium provided by an embodiment of the present invention;
[0021] Figure 5 A schematic diagram of the structure of a computing device provided by an embodiment of the present invention.
[0022] Among them: 300, IPTV quick start device; 310, determination module; 320, acquisition module; 330, generation module; 340, first sending module; 350, second sending module; 360, recovery module; 40, optical disk; 50, computing device; 501, processing unit; 502, system memory; 5021, RAM; 5022, cache memory; 5023, ROM; 5024, utility tool; 5025, program module; 503, bus; 504, external device; 505, I / O interface; 506, network adapter.
[0023] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0024] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.
[0025] Those skilled in the art know that the embodiments of the present invention can be implemented as a system, device, apparatus, method or computer program product. Therefore, the present invention can be specifically implemented in the following forms, namely: complete hardware, complete software (including firmware, resident software, microcode, etc.), or a combination of hardware and software.
[0026] With the widespread commercial use of IPTV (Internet Protocol Television) set-top boxes, functions such as live broadcast, on-demand, fast forward / rewind, pause / play, and position-based playback are provided, greatly improving user freedom and user experience.
[0027] Currently, from starting up a terminal device represented by a set-top box to entering the EPG (Electronic Program Guide) homepage, the following process needs to be followed:
[0028] 1. System startup, including normal system driver, system basic services, network connection and other initialization work;
[0029] 2. After the system is started, the terminal device makes a user identity authentication request, and the business management platform generates a random EncryToken field, which is used to authenticate the encrypted challenge word; the terminal device uses the EncryToken and the business account password to generate an encrypted string and upload it to the business management platform; the business management platform verifies the encrypted string, and if the verification is successful, returns the authentication result and sets the resource server list and other information;
[0030] 3. The terminal device uses the resource server list address to obtain the live channel list address and saves it in the terminal device local cache;
[0031] 4. The terminal device obtains the service entry list and accesses the EPG homepage. The user can then use the remote control to browse the EPG page and play videos normally.
[0032] Therefore, when a terminal device such as a set-top box starts from power failure to the EPG homepage, it takes a long time. The long startup time seriously affects the user experience.
[0033] The main solution of the embodiment of the present invention is: in response to the obtained standby operation instruction, determine the current playback state; based on the current playback state, obtain the pre-standby operation parameters and configure the standby mode; based on the pre-standby operation parameters and the configured standby mode, generate standby context information; send the standby context information to the proxy server and start the standby mode; the standby mode is that the terminal device disconnects the heartbeat connection with the business server; in response to the obtained standby recovery instruction, exit the standby mode and send a get request to the proxy server; based on the obtained recovery context information sent by the proxy server, re-establish the heartbeat connection with the business server and restore to the playback screen before standby.
[0034] The present invention provides a solution, which sends standby context information to a proxy server and starts the standby mode. On the one hand, the proxy server can store the standby context information, which can reduce information loss to a certain extent and improve the success rate of subsequent video image recovery; on the other hand, the proxy server can replace the terminal device to maintain a heartbeat connection with the service server, saving the service authentication time of the subsequent terminal device.
[0035] By receiving the recovery context information sent by the proxy server and exiting the standby mode, on the one hand, the video screen can be restored according to the recovery context information, thereby reducing the standby recovery time; on the other hand, the terminal device can re-establish a heartbeat connection with the business server instead of the proxy server, saving the business authentication time of the terminal device, thereby reducing the login time of the terminal device; by reducing the standby recovery time and the login time of the terminal device, the purpose of reducing the startup time of the terminal device can be achieved, thereby improving the user experience.
[0036] It should be noted that any number of elements in the drawings is for illustration rather than limitation, and any naming is only for distinction and does not have any limiting meaning.
[0037] The principle and spirit of the present invention are explained in detail below with reference to several representative embodiments of the present invention.
[0038] Reference Figure 1 An embodiment of the present invention provides an IPTV quick start method, the method comprising:
[0039] Step S110, determining the current playing state in response to the acquired standby operation instruction.
[0040] In an example embodiment, the standby operation instruction is a control instruction sent by a user to a terminal device through other control devices such as a remote controller, and is used to control the opening, closing and standby of the terminal device. The current playback state includes a non-playing state, a live broadcast state and a video-on-demand state.
[0041] In a specific embodiment, the above step S110 may include:
[0042] Step S1101, in response to the standby operation instruction, query whether the play address of the play list of the terminal device is empty;
[0043] Step S1102, if the play address of the play list is empty, the current play state is a non-play state;
[0044] Step S1103, if the play address of the play list is not empty, query the play status corresponding to the play address in the play list;
[0045] Step S1104, if the playback state is T1, the current playback state is the live broadcast state;
[0046] Step S1105: If the play state is T2, the current play state is the on-demand state.
[0047] After receiving the standby operation instruction, the terminal device queries whether the playback address of the playlist is empty. If it is empty, the current playback state is non-playback state; if it is not empty, it determines whether the playback state is T1 or T2. If it is T1, the current playback state is live broadcast state; if it is T2, the current playback state is on-demand state.
[0048] By determining the current playback state, it is convenient to subsequently obtain the pre-standby operation parameters according to the current playback state.
[0049] In a specific implementation, before the above step S110, the above method further includes: in response to a user operation, calling a preset function to determine a current play state; and modifying a play address and a play state in the playlist based on the current play state.
[0050] Understandably, in one embodiment, the terminal device calls the first preset function in response to the user operation, determines that the current playback state is a live broadcast state, adds the current playback address to the playlist, and marks the playback state of the playlist as T1.
[0051] For example, because IPTV live broadcast uses a live broadcast address for playback, the joinchannel function can be called through a JavaScript extension method to determine whether the current playback state is a live broadcast state.
[0052] In another embodiment, the terminal device calls the second preset function in response to the user operation, determines that the current playback state is the on-demand state; adds the current on-demand address to the play list, and marks the playback state of the play list as T2.
[0053] For example, when a user performs on-demand playback, the playformstart function can be called through a JavaScript extension method to determine that the current playback state is a on-demand playback scene.
[0054] In yet another embodiment, the terminal device calls a third preset function in response to a user operation, determines that the current play state is a non-play state, and clears the play address and the play state mark in the play list.
[0055] For example, when the user exits the playback from the playback page, the stop function can be called through the JavaScript extension method to determine that the current playback state is a non-playing scene.
[0056] The above embodiment modifies the play address and play status in the play list through user operation, so that the terminal device can directly query the play list and play status after receiving the standby operation instruction, thereby facilitating the terminal device to quickly determine the current play status after receiving the standby operation instruction, thereby reducing the time spent on standby or shutdown.
[0057] It should be noted that the user operations in the above embodiments are all operation instructions except the standby operation instruction and the standby recovery instruction, such as channel switching instructions, sound control instructions, on-demand search instructions, etc.
[0058] Step S120, based on the current playing state, obtaining the pre-standby operation parameters and configuring the standby mode.
[0059] In an exemplary embodiment, the pre-standby operation parameters include at least a pre-standby heartbeat address, a pre-standby heartbeat period, and a service entry address between the terminal device and the service server before the terminal device goes into standby.
[0060] In a specific implementation, the above step S120 may include: if the current playback state is a non-playback state, obtaining the pre-standby operation parameters and configuring the standby mode to F1; if the current playback state is a live broadcast state, obtaining the pre-standby operation parameters and configuring the standby mode to F2; if the current playback state is a on-demand state, obtaining the pre-standby operation parameters and configuring the standby mode to F3.
[0061] By determining the current playback status of the terminal device, the terminal device can obtain the pre-standby heartbeat address, pre-standby heartbeat cycle and business entry address from the business server, which facilitates the subsequent generation of standby context information; by configuring the standby mode, it is easy to simplify data and reduce data redundancy, which can improve data processing speed to a certain extent.
[0062] Step S130: generating standby context information based on the pre-standby operation parameters and the configured standby mode.
[0063] In an example embodiment, the standby mode is F1, F2 or F3, and the pre-standby operating parameters include the pre-standby heartbeat address, the pre-standby heartbeat cycle and the service entry address; the standby context information includes at least the pre-standby heartbeat address, the pre-standby heartbeat cycle, the service entry address, video playback information (live broadcast address, on-demand address and on-demand playback time), the current playback screen environment, the standby mode and the device ID.
[0064] It should be noted that the standby context information in the embodiment of the present invention is in JSON format, the fill information in the standby context information is unique, switching to a different screen will update different tag information in JSON, and the latest JSON information of the current screen is saved.
[0065] Step S140: Send the standby context information to the proxy server and start the standby mode.
[0066] In an exemplary embodiment, the standby mode is when the terminal device disconnects the heartbeat connection with the service server. After the terminal device sends the standby context information to the proxy server, the terminal device turns on the standby mode to disconnect the heartbeat connection with the service server.
[0067] Afterwards, the proxy server receives and stores the standby context information, and establishes a heartbeat connection between the terminal device and the service server based on the pre-standby heartbeat address, pre-standby heartbeat cycle, and service entry address in the standby context information. Afterwards, the proxy server receives the post-standby heartbeat address and post-standby heartbeat cycle sent by the service server.
[0068] Step S150: exiting the standby mode in response to the acquired standby recovery instruction, and sending an acquisition request to the proxy server.
[0069] In an example embodiment, the acquisition request includes an ID of the terminal device.
[0070] After receiving the standby recovery command sent by the user through a control device such as a remote control, the terminal device exits the standby mode and sends a request to the proxy server. After receiving the request, the proxy server generates recovery context information based on the post-standby heartbeat address, post-standby heartbeat period, and service entry address sent by the service server; the proxy server sends the recovery context information to the terminal device and disconnects the heartbeat connection with the service server.
[0071] Step S160: based on the obtained recovery context information sent by the proxy server, re-establish a heartbeat connection with the service server and restore to the playback screen before standby.
[0072] In an exemplary embodiment, the recovery context information includes at least the post-standby heartbeat address, the post-standby heartbeat period, the service entry address, the video playback information (live address, on-demand address plus on-demand playback time), and the pre-standby playback screen environment.
[0073] It should be noted that the recovery context information in the embodiment of the present invention is in JOSN format. Compared with the standby context information sent by the terminal device, the recovery context information only differs in the post-standby heartbeat address, post-standby heartbeat period, and service entry address.
[0074] In a specific implementation, the above step S160 may include:
[0075] Step S1601, parsing the recovery context information to obtain post-standby operation parameters and standby mode; the post-standby operation parameters at least include a post-standby heartbeat address and a post-standby heartbeat period;
[0076] Step S1602, re-establishing a heartbeat connection with the service server based on the post-standby heartbeat address and the post-standby heartbeat period;
[0077] Step S1603: based on the standby mode, the playing picture after the standby state is switched to the playing picture before the standby state.
[0078] Specifically, in one embodiment, step S1603 may include: if the standby mode is F1, extracting the service entry address in the parsed recovery context information to reload the page.
[0079] As can be understood from the above embodiments, if the terminal device analyzes the standby mode as F1 (non-playing state), the EPG service entry address in the recovery context information is extracted to load the video screen.
[0080] In another embodiment, if the standby mode is F2, it is determined that the current playback state before the standby is a live broadcast state; the live broadcast address in the parsed recovery context information is obtained; and the latest video screen is obtained based on the live broadcast address.
[0081] It can be understood from the above embodiments that if the terminal device parses the standby mode as F2, the current playback state before standby is the live broadcast state, the pre-standby playback screen environment in the recovery context information is obtained, and the HTTP GET request is re-established to restore the playback screen environment. At the same time, the live broadcast address before joining the standby is obtained, the live broadcast address is re-joined, the latest video screen is obtained and playback continues.
[0082] In other embodiments, if the standby mode is F3, the current playback state before standby is determined to be the on-demand state; the on-demand address and the elapsed playback time in the parsed recovery context information are obtained; the on-demand playback request is re-established based on the on-demand address, and the playback screen before standby is jumped to based on the elapsed playback time.
[0083] As can be understood from the above embodiments, if the terminal device parses the standby mode as F3, it determines that the current playback state before standby is the on-demand state, obtains the playback screen environment before standby, and re-establishes the HTTP GET request to restore the playback screen environment. At the same time, the playback address is extracted, the system re-establishes the on-demand playback request, and uses the direct TIME time to jump to the video screen before the unicast player to continue playback.
[0084] By implementing the above steps S110 to S160, by sending the standby context information to the proxy server and starting the standby mode, on the one hand, the proxy server can store the standby context information, which can reduce the loss of information to a certain extent and improve the success rate of subsequent video image recovery; on the other hand, the proxy server can replace the terminal device to maintain a heartbeat connection with the service server, saving the subsequent service authentication time of the terminal device;
[0085] By receiving the recovery context information sent by the proxy server and exiting the standby mode, on the one hand, the video screen can be restored according to the recovery context information, thereby reducing the standby recovery time; on the other hand, the terminal device can re-establish a heartbeat connection with the business server instead of the proxy server, saving the business authentication time of the terminal device, thereby reducing the login time of the terminal device; by reducing the standby recovery time and the login time of the terminal device, the purpose of reducing the startup time of the terminal device can be achieved, thereby improving the user experience.
[0086] In another embodiment of the present invention, in order to illustrate the above-mentioned IPTV quick start method from the proxy server side, as shown in FIG. Figure 2 As shown, the method may include:
[0087] Step S210, when the standby context information sent by the terminal device is obtained, the standby context information is parsed to obtain the first ID information, the pre-standby heartbeat address and the pre-standby heartbeat period;
[0088] Step S220, based on the first ID information, establish a storage directory and store the standby context information corresponding to the first ID information in the storage directory;
[0089] Step S230, establishing a heartbeat connection with the business service based on the pre-standby heartbeat address and the pre-standby heartbeat period;
[0090] Step S240, when obtaining the acquisition request sent by the terminal device, parsing the acquisition request to obtain the second ID information;
[0091] Step S250, based on the second ID information, retrieve the standby context information corresponding to the second ID information, and obtain the post-standby heartbeat address and post-standby heartbeat period sent by the service server;
[0092] Step S260, based on the post-standby heartbeat address and the post-standby heartbeat period, updating the standby context information corresponding to the second ID information to generate recovery context information;
[0093] Step S270, sending recovery context information to the terminal device corresponding to the second ID information, and disconnecting the heartbeat connection with the service server; the recovery context information is used for the terminal device to re-establish the heartbeat connection with the service server and restore to the playback screen before standby.
[0094] As can be understood from the above embodiments, after the terminal device sends the standby context information to the proxy server, the terminal device turns on the standby mode to disconnect the heartbeat connection with the service server. The proxy server receives and stores the standby context information, and establishes a heartbeat connection with the service server on behalf of the terminal device according to the pre-standby heartbeat address, pre-standby heartbeat period, and service entry address in the standby context information. The proxy server receives the post-standby heartbeat address and post-standby heartbeat period sent by the service server.
[0095] After the terminal device sends an acquisition request to the proxy server, after the proxy server receives the acquisition request, it updates the pre-standby heartbeat address, pre-standby heartbeat cycle and business entry address in the standby context information based on the post-standby heartbeat address, post-standby heartbeat cycle and business entry address sent by the business server to generate recovery context information; the proxy server sends the recovery context information to the terminal device and disconnects the heartbeat connection with the business server.
[0096] After the terminal device receives the recovery context information, it re-establishes a heartbeat connection with the service server according to the post-standby heartbeat address, post-standby heartbeat period, and service entry address in the recovery context information, and recovers to the playback screen before standby.
[0097] It should be noted that the method in this embodiment is consistent with the concept of the above method, and is a supplementary explanation of the above embodiment from the side of the proxy server. The beneficial effects produced are consistent with the above embodiment and will not be repeated in this embodiment.
[0098] After introducing the method of the exemplary embodiment of the present invention, next, refer to Figure 3 An IPTV quick start device according to an exemplary embodiment of the present invention is described. The IPTV quick start device 300 is applied to a terminal device. The IPTV quick start device 300 includes: a determination module 310, an acquisition module 320, a generation module 330, a first sending module 340, a second sending module 350 and a recovery module 360, wherein:
[0099] The determination module 310 may be used to determine the current playing state in response to the acquired standby operation instruction;
[0100] The acquisition module 320 may be used to acquire pre-standby operation parameters and configure the standby mode based on the current playback state;
[0101] The generating module 330 may be used to generate standby context information based on the pre-standby operating parameters and the configured standby mode;
[0102] The first sending module 340 can be used to send standby context information to the proxy server and start the standby mode; the proxy server is used to store the standby context information and establish a heartbeat connection with the service server based on the standby context information; the standby mode is that the terminal device disconnects the heartbeat connection with the service server;
[0103] The second sending module 350 may be used to exit the standby mode in response to the acquired standby recovery instruction and send an acquisition request to the proxy server;
[0104] The recovery module 360 can be used to re-establish a heartbeat connection with the service server and restore to the playback screen before standby based on the obtained recovery context information sent by the proxy server.
[0105] As an optional implementation, the above-mentioned determination module 310 is also used to: in response to a standby operation instruction, query whether the playback address of the play list of the terminal device is empty; if the playback address of the play list is empty, the current playback state is a non-playback state; if the playback address of the play list is not empty, query the playback state corresponding to the playback address in the play list; if the playback state is T1, the current playback state is a live broadcast state; if the playback state is T2, the current playback state is a on-demand state.
[0106] As an optional implementation, the above-mentioned acquisition module 320 is also used for: if the current playback state is a non-playback state, obtaining the pre-standby running parameters and configuring the standby mode as F1; if the current playback state is a live broadcast state, obtaining the pre-standby running parameters and configuring the standby mode as F2; if the current playback state is a on-demand state, obtaining the pre-standby running parameters and configuring the standby mode as F3.
[0107] As an optional implementation, the above-mentioned recovery module 360 is also used to: parse the recovery context information to obtain the post-standby operation parameters and the standby mode; the post-standby operation parameters at least include the post-standby heartbeat address and the post-standby heartbeat cycle; based on the post-standby heartbeat address and the post-standby heartbeat cycle, re-establish a heartbeat connection with the business server; based on the standby mode, switch the playback screen after standby to the playback screen before standby.
[0108] As an optional implementation, the above-mentioned recovery module 360 is also used for: if the standby mode is F1, extracting the service entry address in the parsed recovery context information to reload the page; if the standby mode is F2, determining that the current playback state before standby is the live broadcast state; obtaining the live broadcast address in the parsed recovery context information; obtaining the latest video screen based on the live broadcast address; if the standby mode is F3, determining that the current playback state before standby is the on-demand state; obtaining the on-demand address and the elapsed playback time in the parsed recovery context information; re-establishing the on-demand playback request based on the on-demand address, and jumping to the playback screen before standby based on the elapsed playback time.
[0109] As an optional implementation, the IPTV quick start device 300 is further used to: in response to a user operation, call a preset function to determine the current play state; and modify the play address and play state in the play list based on the current play state.
[0110] As an optional implementation, the IPTV quick start device 300 is also used to: in response to user operation, call the first preset function to determine that the current playback state is a live broadcast state; add the current playback address to the playlist, and set the playback state of the playlist to T1; or, in response to user operation, call the second preset function to determine that the current playback state is a video-on-demand state; add the current video-on-demand address to the playlist, and set the playback state of the playlist to T2; or, in response to user operation, call the third preset function to determine that the current playback state is a non-playback state; clear the playback address and playback state in the playlist.
[0111] In addition, the above-mentioned IPTV quick start device 300 can also be applied to a proxy server. The IPTV quick start device 300 is also used to, when the standby context information sent by the terminal device is obtained, parse the standby context information to obtain the first ID information, the pre-standby heartbeat address and the pre-standby heartbeat period; based on the first ID information, establish a storage directory and store the standby context information corresponding to the first ID information in the storage directory; based on the pre-standby heartbeat address and the pre-standby heartbeat period, establish a heartbeat connection with the service server; when the acquisition request sent by the terminal device is obtained, The acquisition request is parsed to obtain the second ID information; based on the second ID information, the standby context information corresponding to the second ID information is retrieved, and the post-standby heartbeat address and the post-standby heartbeat period sent by the business server are obtained; based on the post-standby heartbeat address and the post-standby heartbeat period, the standby context information corresponding to the second ID information is updated to generate recovery context information; the recovery context information is sent to the terminal device corresponding to the second ID information, and the heartbeat connection with the business server is disconnected; the recovery context information is used for the terminal device to re-establish the heartbeat connection with the business server and restore to the playback screen before standby.
[0112] It should be noted that the IPTV quick start device provided in the above embodiment only uses the division of the above functional modules as an example when executing the IPTV quick start method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0113] In addition, the IPTV quick start device and the IPTV quick start method provided in the above embodiments belong to the same concept, so for details not disclosed in the device embodiment of the present invention, please refer to the above-mentioned IPTV quick start method embodiment of the present invention, which will not be repeated here.
[0114] After introducing the method and apparatus of the exemplary embodiment of the present invention, next, reference is made to Figure 4 For a description of a computer-readable storage medium according to an exemplary embodiment of the present invention, please refer to Figure 4 , the computer-readable storage medium shown is a CD 40, on which a computer program (i.e., a program product) is stored. When the computer program is executed by the processor, it will implement the steps recorded in the above method implementation, for example, in response to the obtained standby operation instruction, determine the current playback state; based on the current playback state, obtain the pre-standby operation parameters and configure the standby mode; based on the pre-standby operation parameters and the configured standby mode, generate standby context information; send the standby context information to the proxy server and start the standby mode; the standby mode is that the terminal device disconnects the heartbeat connection with the business server; in response to the obtained standby recovery instruction, exit the standby mode and send a request to the proxy server; based on the obtained recovery context information sent by the proxy server, re-establish the heartbeat connection with the business server and restore to the playback screen before standby; the specific implementation method of each step will not be repeated here.
[0115] It should be noted that examples of the computer-readable storage medium may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical or magnetic storage media, which are not listed here one by one.
[0116] After introducing the method, apparatus and medium of the exemplary embodiments of the present invention, next, reference is made to Figure 5 A computing device for model processing according to an exemplary embodiment of the present invention.
[0117] Figure 5A block diagram of an exemplary computing device 50 suitable for implementing embodiments of the present invention is shown, and the computing device 50 may be a computer system or a server. Figure 5 The computing device 50 shown is only an example and should not bring any limitation to the functionality and scope of use of the embodiments of the present invention.
[0118] like Figure 5 As shown, the components of the computing device 50 may include, but are not limited to: one or more processors or processing units 501 , a system memory 502 , and a bus 503 connecting different system components (including the system memory 502 and the processing unit 501 ).
[0119] The computing device 50 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computing device 50, including volatile and non-volatile media, removable and non-removable media.
[0120] The system memory 502 may include computer system readable media in the form of volatile memory, such as RAM 5021 and / or cache memory 5022, where RAM is a random access memory. The computing device 50 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, ROM 5023 may be used to read and write non-removable, non-volatile magnetic media ( Figure 5 is not shown in the Figure 5 As shown in FIG. 5 , a disk drive for reading and writing a removable non-volatile disk (e.g., a “floppy disk”) and an optical disk drive for reading and writing a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 503 via one or more data medium interfaces. The system memory 502 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.
[0121] A program / utility 5024 having a set (at least one) of program modules 5025 may be stored, for example, in system memory 502, and such program modules 5025 include, but are not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 5025 generally perform the functions and / or methods of the embodiments described herein.
[0122] The computing device 50 may also communicate with one or more external devices 504 (e.g., a keyboard, a pointing device, a display, etc.). Such communication may be performed via an I / O interface 505, which is an input / output interface. Furthermore, the computing device 50 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 506. Figure 5 As shown, the network adapter 506 communicates with other modules (such as the processing unit 501, etc.) of the computing device 50 via the bus 503. It should be understood that although Figure 5 Not shown, other hardware and / or software modules may be used in conjunction with computing device 50 .
[0123] The processing unit 501 executes various functional applications and data processing by running the program stored in the system memory 502, for example, in response to the acquired standby operation instruction, determine the current playback state; based on the current playback state, obtain the pre-standby operation parameters and configure the standby mode; based on the pre-standby operation parameters and the configured standby mode, generate standby context information; send the standby context information to the proxy server and start the standby mode; the standby mode is that the terminal device disconnects the heartbeat connection with the service server; in response to the acquired standby recovery instruction, exit the standby mode and send an acquisition request to the proxy server; based on the acquired recovery context information sent by the proxy server, re-establish a heartbeat connection with the service server and restore to the playback screen before standby. The specific implementation of each step is not repeated here. It should be noted that although several units / modules or sub-units / sub-modules of the IPTV quick start device are mentioned in the above detailed description, this division is only exemplary and not mandatory. In fact, according to an embodiment of the present invention, the features and functions of two or more units / modules described above can be concretized in one unit / module. On the contrary, the features and functions of one unit / module described above may be further divided into multiple units / modules to be embodied.
[0124] In the description of the present invention, it should be noted that the terms “first”, “second” and “third” are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.
[0125] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0126] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0127] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0128] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0129] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that can be executed by a processor. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., various media that can store program codes.
[0130] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
[0131] In addition, although the operations of the method of the present invention are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.
Claims
1. An IPTV quick start method, characterized in that: Applied to a terminal device, the method comprises: In response to the acquired standby operation instruction, determining a current playback state; Based on the current playback state, obtaining pre-standby operation parameters and configuring a standby mode; Generate standby context information based on the pre-standby operation parameters and the configured standby mode; Sending the standby context information to the proxy server and starting the standby mode; in the standby mode, the terminal device disconnects the heartbeat connection with the service server, and the proxy server establishes a heartbeat connection with the service server based on the standby context information, wherein the standby context information includes at least a pre-standby heartbeat address, a pre-standby heartbeat period, and a service entry address; In response to the acquired standby recovery instruction, exit the standby mode, and send an acquisition request to the proxy server, wherein the acquisition request is used to acquire recovery context information corresponding to the standby context information; in the case of exiting the standby mode, the proxy server disconnects the heartbeat connection with the service server, and the recovery context information includes at least a post-standby heartbeat address, a post-standby heartbeat period, and a service entry address; Based on the recovery context information, a heartbeat connection is re-established with the service server and the playback screen before standby is restored.
2. The method according to claim 1, characterized in that The current playing state includes a non-playing state and a playing state, and the determining the current playing state in response to the acquired standby operation instruction includes: In response to the standby operation instruction, query whether the play address of the play list of the terminal device is empty; If the play address of the play list is empty, determining that the current play state is the non-play state; If the play address of the play list is not empty, the current play state is determined to be the play state.
3. The method according to claim 2, characterized in that The playing state includes a live broadcast state and a video-on-demand state, and the obtaining of pre-standby operation parameters and configuring the standby mode based on the current playing state includes: If the current playing state is the non-playing state, obtaining the pre-standby operation parameters and configuring the standby mode to be F1; If the current playback state is the live broadcast state, the pre-standby operation parameters are obtained and the standby mode is configured as F2; If the current playing state is the on-demand state, the pre-standby operation parameters are obtained and the standby mode is configured as F3.
4. The method according to claim 3, characterized in that The re-establishing a heartbeat connection with the service server based on the recovery context information and restoring the playback screen before the standby state includes: Parsing the recovery context information to obtain post-standby operation parameters and the standby mode; the post-standby operation parameters at least include a post-standby heartbeat address and a post-standby heartbeat period; Re-establishing a heartbeat connection with the service server based on the post-standby heartbeat address and the post-standby heartbeat period; Based on the standby mode, the playing picture after standby is switched to the playing picture before standby.
5. The method according to claim 4, characterized in that The step of switching the playback picture after the standby state to the playback picture before the standby state based on the standby mode includes: If the standby mode is F1, extracting the service entry address in the parsed recovery context information, and reloading the page based on the service entry address; If the standby mode is F2, the live broadcast address in the parsed recovery context information is obtained, and the latest video picture is obtained based on the live broadcast address, and the playback picture after the standby is switched to the latest video picture; If the standby mode is F3, the on-demand address and the elapsed playback time in the parsed recovery context information are obtained, and the on-demand playback request is re-established based on the on-demand address, and the playback screen after standby is switched to the playback screen before standby based on the elapsed playback time.
6. The method according to claim 3, characterized in that Before determining the current playing state in response to the acquired standby operation instruction, the method further includes: In response to a user operation, calling a preset function to determine the current playback state; Based on the current playing state, the playing address and the playing state in the playlist are modified.
7. The method according to claim 6, characterized in that The step of calling a preset function to determine the current playback state in response to a user operation includes: In response to a user operation, calling a first preset function to determine that the current playback state is the live broadcast state; The modifying the play address and the play status in the play list based on the current play status includes: Add the current play address to the play list, and mark the play status of the play list as the live broadcast status; or, The step of calling a preset function to determine the current playback state in response to a user operation includes: In response to a user operation, calling a second preset function to determine that the current playback state is the on-demand state; The modifying the play address and the play status in the play list based on the current play status includes: Add the current on-demand address to the playlist, and mark the play status of the playlist as the on-demand status; or, The step of calling a preset function to determine the current playback state in response to a user operation includes: In response to a user operation, calling a third preset function to determine that the current playing state is the non-playing state; The modifying the play address and the play status in the play list based on the current play status includes: The marks of the play address and the play status in the play list are cleared.
8. An IPTV quick start method, characterized in that: Applied to a proxy server, the method comprises: When the standby context information sent by the terminal device is obtained, the standby context information is parsed to obtain the first ID information, the pre-standby heartbeat address, and the pre-standby heartbeat period; Based on the first ID information, establish a storage directory and store the standby context information corresponding to the first ID information in the storage directory; Establishing a heartbeat connection with the service server based on the pre-standby heartbeat address and the pre-standby heartbeat period; When obtaining the acquisition request sent by the terminal device, parsing the acquisition request to obtain the second ID information; Based on the second ID information, retrieve the standby context information corresponding to the second ID information, and obtain the post-standby heartbeat address and post-standby heartbeat period sent by the business server; Based on the post-standby heartbeat address and the post-standby heartbeat period, updating the standby context information corresponding to the second ID information to generate recovery context information; The recovery context information is sent to the terminal device corresponding to the second ID information, and the heartbeat connection with the business server is disconnected; the recovery context information is used to enable the terminal device to re-establish the heartbeat connection with the business server and restore to the playback screen before standby.
9. An IPTV quick start device, characterized in that: Applied to a terminal device, the device comprises: A determination module, used to respond to the acquired standby operation instruction and determine the current playback state; An acquisition module, used for acquiring pre-standby operation parameters and configuring a standby mode based on the current playback state; A generating module, configured to generate standby context information based on the pre-standby operation parameters and the configured standby mode; A first sending module, configured to send the standby context information to a proxy server and start a standby mode; the proxy server is configured to store the standby context information and establish a heartbeat connection with a service server based on the standby context information; in the standby mode, the terminal device disconnects the heartbeat connection with the service server; the standby context information includes at least a pre-standby heartbeat address, a pre-standby heartbeat period, and a service entry address; a second sending module, configured to exit the standby mode in response to the acquired standby recovery instruction, and send an acquisition request to the proxy server, wherein the acquisition request is used to obtain recovery context information corresponding to the standby context information; in the case of exiting the standby mode, the proxy server disconnects the heartbeat connection with the service server, and the recovery context information includes at least a post-standby heartbeat address, a post-standby heartbeat period, and a service entry address; The recovery module is used to re-establish a heartbeat connection with the service server based on the recovery context information and restore the playback screen before standby.
10. A computer-readable storage medium, characterized in that: The method comprises instructions which, when executed on a computer, cause the computer to execute the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Disaster-tolerant method, device and machine-readable medium of cluster system
CN109240840A
Information management method, terminal and server
CN110401619A
