Pop-up window processing method and device

By constructing and pushing pop-up card template parameters and delivery page parameters, the compatibility issues caused by the diversity of set-top box versions are solved, unified rendering and push of pop-up windows are realized, and H5 page processing is simplified.

CN113873331BActive Publication Date: 2024-09-13HUNAN HAPPLY SUNSHINE INTERACTIVE ENTERTAINMENT MEDIA CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111153588.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-29
Publication Date
2024-09-13
Estimated Expiration
2041-09-29

AI Technical Summary

Technical Problem

There are too many existing set-top box versions, which means that the Web (H5) card service is not compatible with all set-top box styles and cannot successfully push pop-up windows.

Method used

By receiving pop-up task instructions, we obtain pop-up information, construct pop-up card template parameters and delivery page parameters, send them to the preset server to generate card display information, and push notifications to the set-top box through long connections to control the display device to render on the specified page. Pop-up cards are processed in a unified style.

Benefits of technology

The H5 page of the card pop-up window is simplified, and the JS technology of H5 is used to unify the style, avoiding compatibility issues caused by too many set-top box versions, and achieving the successful push and rendering of the pop-up window.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113873331B
    Figure CN113873331B
Patent Text Reader

Abstract

The present invention provides a pop-up window processing method and device, the method comprising: obtaining pop-up window information corresponding to a received pop-up window task instruction; constructing a pop-up window card template parameter and a pop-up window delivery page parameter corresponding to the pop-up window task instruction according to the pop-up window information; sending the pop-up window card template parameter and the pop-up window information to a preset pop-up window server so that it generates a pop-up window card display information corresponding to the pop-up window task instruction according to the pop-up window card template parameter and the pop-up window information; pushing the pop-up window card display information and the pop-up window page delivery parameter to a preset card server, sending a pop-up window push notification corresponding to the pop-up window task instruction to a preset set-top box through a long connection, and controlling the set-top box to send the pop-up window card display information and the pop-up window page delivery parameter in the card server to a preset display device, so that the display device displays the pop-up window delivery page and renders the pop-up window card in the pop-up window delivery page. Applying this method can solve the compatibility problem of set-top box styles.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a pop-up window processing method and device. Background Art

[0002] With the development of information technology, more and more people watch TV programs through set-top boxes. A set-top box is a device that connects a display device to an external signal source. It can convert compressed digital signals into TV content and display it on the display device, so that viewers can watch a variety of TV programs through the set-top box display device and interact with the TV programs through pop-up windows generated by the set-top box.

[0003] However, there are many styles of set-top boxes on the market, some are based on the Android system, and some are based on the Linux system. Each style has many versions, and each version has a different version of the built-in Webviewkit (web view toolkit) that supports H5 technology. In the prior art, the Web (H5) card service pushes pop-up windows to the set-top box according to the version of the set-top box. However, due to too many versions of set-top boxes, the Web (H5) card service cannot be compatible with all set-top box styles, resulting in some set-top boxes failing to successfully push pop-up windows. Summary of the invention

[0004] In view of this, the present invention provides a pop-up window processing method, through which pop-up window processing can be performed on existing applications, thereby solving the compatibility problem of set-top box styles caused by too many set-top box versions.

[0005] The present invention also provides a pop-up window processing device to ensure the implementation and application of the above method in practice.

[0006] A pop-up window processing method, characterized by comprising:

[0007] When receiving a pop-up task instruction sent by the push end, obtaining pop-up window information corresponding to the pop-up task instruction;

[0008] Based on the pop-up window information, construct pop-up window card template parameters and pop-up window delivery page parameters corresponding to the pop-up window task instruction;

[0009] Sending the pop-up card template parameters and the pop-up window information to a preset pop-up window server, triggering the pop-up window server to generate pop-up card display information corresponding to the pop-up window task instruction based on the pop-up card template parameters and the pop-up window information;

[0010] The pop-up card display information and the pop-up page delivery parameters are pushed to a preset card server, and a pop-up push notification corresponding to the pop-up task instruction is sent to a preset set-top box through a long connection, and the set-top box is controlled to send the pop-up card display information and pop-up page delivery parameters in the card server to a preset display device based on the pop-up push notification, so that the display device displays the pop-up delivery page based on the pop-up delivery page parameters, and renders the pop-up card in the pop-up delivery page based on the pop-up card display information.

[0011] The above method may optionally further include:

[0012] Based on the pop-up window information, construct a delivery theme corresponding to the pop-up window task instruction;

[0013] When it is detected that the set-top box sends the pop-up card display information and the pop-up page delivery parameters to the display device, the set-top box is controlled to send the delivery theme to the display device, so that the display device displays the delivery theme in the pop-up delivery page.

[0014] In the above method, optionally, constructing the pop-up card template parameters and pop-up delivery page parameters corresponding to the pop-up task instruction based on the pop-up information includes:

[0015] Obtain the page size, pop-up window ID, pop-up window type, pop-up window display content, and pop-up window operation parameters contained in the pop-up window information;

[0016] Based on the page size, pop-up window ID, pop-up window type, pop-up window display content and at least one pop-up window operation parameter, construct a pop-up window card template parameter corresponding to the pop-up window task instruction, wherein the pop-up window template parameter at least includes a pop-up window card size and a pop-up window card position;

[0017] Based on the pop-up card size and pop-up card position in the pop-up template parameters, construct the pop-up delivery page parameters corresponding to the pop-up task instruction.

[0018] The above method may optionally further include:

[0019] Determine the pop-up window type in the pop-up window information;

[0020] When the pop-up type indicates that the pop-up card to be displayed corresponding to the pop-up task instruction is an activity voting pop-up, based on the pop-up display content in the pop-up information and at least one pop-up operation parameter, at least one voting result pop-up is generated corresponding to the activity voting pop-up, and the voting result pop-up corresponds to a pop-up operation parameter.

[0021] In the above method, optionally, sending a pop-up window push notification corresponding to the pop-up window task instruction to a preset set-top box through a persistent connection includes:

[0022] Determine the current playback progress of the target video played by the display device;

[0023] Determine whether the current playback progress reaches the preset pop-up window delivery time;

[0024] If the current playback progress reaches the preset pop-up window delivery time, a pop-up window push notification corresponding to the pop-up window task instruction is sent to the set-top box through the long connection;

[0025] If the current playback progress has not reached the preset pop-up delivery time, the waiting delivery time is determined based on the current playback progress and the pop-up delivery time; a preset timer is enabled to count the waiting time, and when the timing time of the timer reaches the waiting delivery time, a pop-up push notification corresponding to the pop-up task instruction is sent to the set-top box through the long connection.

[0026] A pop-up window processing device, comprising:

[0027] An acquisition unit, configured to acquire pop-up window information corresponding to the pop-up window task instruction when receiving the pop-up window task instruction sent by the push end;

[0028] A first construction unit is used to construct a pop-up card template parameter and a pop-up delivery page parameter corresponding to the pop-up task instruction based on the pop-up information;

[0029] A generating unit, configured to send the pop-up card template parameters and the pop-up window information to a preset pop-up window server, triggering the pop-up window server to generate the pop-up card display information corresponding to the pop-up window task instruction based on the pop-up card template parameters and the pop-up window information;

[0030] The first execution unit is used to push the pop-up card display information and the pop-up page delivery parameters to a preset card server, and send a pop-up push notification corresponding to the pop-up task instruction to a preset set-top box through a long connection, and control the set-top box to send the pop-up card display information and pop-up page delivery parameters in the card server to a preset display device based on the pop-up push notification, so that the display device displays the pop-up delivery page based on the pop-up delivery page parameters, and renders the pop-up card in the pop-up delivery page based on the pop-up card display information.

[0031] The above device may optionally further include:

[0032] A second construction unit is used to construct a delivery theme corresponding to the pop-up window task instruction based on the pop-up window information;

[0033] The second execution unit is used to control the set-top box to send the delivery theme to the display device when it is detected that the set-top box sends the pop-up card display information and the pop-up page delivery parameters to the display device, so that the display device displays the delivery theme in the pop-up delivery page.

[0034] In the above device, optionally, the first construction unit comprises:

[0035] An acquisition subunit is used to acquire the page size, pop-up window ID, pop-up window type, pop-up window display content and pop-up window operation parameters contained in the pop-up window information;

[0036] A first construction subunit is used to construct a pop-up card template parameter corresponding to the pop-up task instruction based on the page size, the pop-up ID, the pop-up type, the pop-up display content and at least one pop-up operation parameter, wherein the pop-up template parameter at least includes a pop-up card size and a pop-up card position;

[0037] The second construction subunit is used to construct the pop-up delivery page parameters corresponding to the pop-up task instruction based on the pop-up card size and pop-up card position in the pop-up template parameters.

[0038] The above device may optionally further include:

[0039] A first determining subunit, used to determine the pop-up window type in the pop-up window information;

[0040] A generating sub-unit is used for generating at least one voting result pop-up window corresponding to the activity voting pop-up window when the pop-up window type indicates that the pop-up window card to be displayed corresponding to the pop-up window task instruction is an activity voting pop-up window, based on the pop-up window display content in the pop-up window information and at least one pop-up window operation parameter, and the voting result pop-up window corresponds to a pop-up window operation parameter.

[0041] In the above device, optionally, the first execution unit includes:

[0042] A second determining subunit, configured to determine a current playback progress of a target video played by the display device;

[0043] A judging subunit, used to judge whether the current playback progress reaches a preset pop-up window delivery time;

[0044] A first execution subunit is configured to send a pop-up window push notification corresponding to the pop-up window task instruction to the set-top box through the long connection if the current playback progress reaches a preset pop-up window delivery time;

[0045] The second execution sub-unit is used to determine the waiting time based on the current playback progress and the pop-up delivery time if the current playback progress has not reached the preset pop-up delivery time; enable a preset timer to count the waiting time, and when the timing time of the timer reaches the waiting delivery time, send a pop-up push notification corresponding to the pop-up task instruction to the set-top box through the long connection.

[0046] A storage medium includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the above-mentioned pop-up window processing method.

[0047] An electronic device includes a memory and one or more instructions, wherein the one or more instructions are stored in the memory and are configured to be executed by one or more processors to perform the above-mentioned pop-up window processing method.

[0048] In the embodiment provided by the present invention, when a pop-up task instruction sent by a push end is received, pop-up information corresponding to the pop-up task instruction is obtained, and according to the pop-up information, pop-up card template parameters and pop-up delivery page parameters corresponding to the pop-up task instruction are constructed, and the pop-up card template parameters and pop-up information are sent to a preset pop-up server, triggering the pop-up server to generate a pop-up card display information corresponding to the pop-up task instruction based on the pop-up card template parameters and the pop-up information; the pop-up card display information and the pop-up page delivery parameters are pushed to the preset card server, and a pop-up push notification corresponding to the pop-up task instruction is sent to a preset set-top box through a long connection, and the set-top box is controlled to send the pop-up card display information and the pop-up page delivery parameters in the card server to the preset display device based on the pop-up push notification, so that the display device displays the pop-up delivery page based on the pop-up delivery page parameters, and renders the pop-up card in the pop-up delivery page based on the pop-up card display information.

[0049] By applying the embodiment provided by the present invention, a pop-up card display information corresponding to a pop-up task instruction is generated by a pop-up server according to pop-up card template parameters and pop-up information, and a display device displays a pop-up delivery page according to the pop-up delivery page parameters, and renders a pop-up card in the pop-up delivery page based on the pop-up card display information to obtain a fixed-size image (card), thereby simplifying the card pop-up H5 page, and then using H5's JS technology to render the effect and unify the style, thereby avoiding the problem that the Web (H5) card service is incompatible with all set-top box styles due to too many set-top box versions. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0051] Figure 1 A method flow chart of a pop-up window processing method provided by an embodiment of the present invention;

[0052] Figure 2 A flowchart of another method for processing a pop-up window provided by an embodiment of the present invention;

[0053] Figure 3 A flowchart of another method for processing a pop-up window provided by an embodiment of the present invention;

[0054] Figure 4 Another method flow chart of a pop-up window processing method provided by an embodiment of the present invention;

[0055] Figure 5 A structural schematic diagram of a pop-up window processing method provided by an embodiment of the present invention;

[0056] Figure 6 A voting card pop-up window effect diagram of a pop-up window processing method provided in an embodiment of the present invention;

[0057] Figure 7 A device structure diagram of a pop-up window processing device provided by an embodiment of the present invention;

[0058] Figure 8 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0059] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0060] In this application, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. The terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of more restrictions, the elements defined by the sentence "comprise one..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0061] The present invention can be used in many general or special computing device environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet devices, multi-processor devices, distributed computing environments including any of the above devices or devices, etc.

[0062] The embodiment of the present invention provides a pop-up window processing method, which can be applied to various system platforms, and its execution subject can be a processor of a computer terminal or various mobile devices. The method flow chart of the method is as follows: Figure 1 As shown, specifically including:

[0063] S101: When a pop-up window task instruction sent by a push end is received, pop-up window information corresponding to the pop-up window task instruction is obtained.

[0064] In the embodiment provided by the present invention, in order to enable the audience to interact with the TV through a pop-up window during the playback of the set-top box TV, a pop-up window task needs to be pre-set, and the push end sends a pop-up window task instruction. When the pop-up window task instruction sent by the push end is received, the corresponding pop-up window information is obtained, wherein the pop-up window information includes the pop-up window time, the specific content displayed in the pop-up window, etc.

[0065] S102: Based on the pop-up window information, construct pop-up window card template parameters and pop-up window delivery page parameters corresponding to the pop-up window task instruction.

[0066] In the embodiment provided by the present invention, based on the obtained pop-up information, pop-up card template parameters and pop-up delivery page parameters corresponding to the pop-up task instruction can be produced.

[0067] The pop-up card template and pop-up delivery page include the pop-up theme page and the pop-up result page.

[0068] S103: Sending the pop-up card template parameters and the pop-up window information to a preset pop-up window server, triggering the pop-up window server to generate a pop-up card display information corresponding to the pop-up window task instruction based on the pop-up card template parameters and the pop-up window information.

[0069] In the embodiment provided by the present invention, the pop-up card can be a picture, and the pop-up server generates a picture corresponding to the pop-up task instruction using PhantomJS technology based on the acquired pop-up information and pop-up card template parameters.

[0070] It should be noted that PhantomJS technology generates images by executing the command: phantomjssnapshot.jsurldir. Among them, phantomjs is a Linux command and needs to be installed. Snapshot.js generates a screenshot script, which is used to specify the size of the image, etc.; url is the template page provided by the Web (H5) card service; dir is the storage directory for the generated image.

[0071] S104: Push the pop-up card display information and the pop-up page delivery parameters to a preset card server, and send a pop-up push notification corresponding to the pop-up task instruction to a preset set-top box through a long connection, control the set-top box to send the pop-up card display information and pop-up page delivery parameters in the card server to a preset display device based on the pop-up push notification, so that the display device displays the pop-up delivery page based on the pop-up delivery page parameters, and renders the pop-up card in the pop-up delivery page based on the pop-up card display information.

[0072] In the embodiment provided by the present invention, after the pop-up card display information is generated, the pop-up card display information can be stored in the server or pushed to the CDN service, and the pop-up card display information is in a pushable state. Set the scheduled push status to push the pop-up card display information corresponding to the pop-up push notification to the preset card server. The card server communicates with the set-top box through a long link, and sends a pop-up push notification corresponding to the pop-up task instruction to the preset set-top box through the long connection. The set-top box parses and sends the pop-up card display information and the pop-up page delivery parameters to the preset display device according to the pop-up task instruction. The display device displays the pop-up delivery page according to the delivery page parameters, and then renders the rendered pop-up card in the pop-up delivery page according to the pop-up card display information. Among them, the pop-up delivery page is the display page of the set-top box App application.

[0073] It should be noted that the pop-up server is a Web (H5) card service.

[0074] In the pop-up processing method provided in this real-time example, when a pop-up task instruction sent by the push end is received, the pop-up information corresponding to the pop-up task instruction is obtained, and according to the pop-up information, the pop-up card template parameters and pop-up delivery page parameters corresponding to the pop-up task instruction are constructed, and the pop-up card template parameters and the pop-up information are sent to the preset pop-up server, triggering the pop-up server to generate the pop-up card display information corresponding to the pop-up task instruction based on the pop-up card template parameters and the pop-up information; the pop-up card display information and the pop-up page delivery parameters are pushed to the preset card server, and the pop-up push notification corresponding to the pop-up task instruction is sent to the preset set-top box through a long connection, and the set-top box is controlled to send the pop-up card display information and the pop-up page delivery parameters in the card server to the preset display device based on the pop-up push notification, so that the display device displays the pop-up delivery page based on the pop-up delivery page parameters, and renders the pop-up card in the pop-up delivery page based on the pop-up card display information.

[0075] By applying the embodiment provided by the present invention, a pop-up card display information corresponding to a pop-up task instruction is generated by a pop-up server according to pop-up card template parameters and pop-up information, and a display device displays a pop-up delivery page according to the pop-up delivery page parameters, and renders a pop-up card in the pop-up delivery page based on the pop-up card display information to obtain a fixed-size image (card), thereby simplifying the card pop-up H5 page, and then using H5's JS technology to render the effect and unify the style, thereby avoiding the problem that the Web (H5) card service is incompatible with all set-top box styles due to too many set-top box versions.

[0076] In the embodiments provided by the present invention, Figure 2 As shown, it also includes:

[0077] S201: Based on the pop-up window information, construct a delivery theme corresponding to the pop-up window task instruction.

[0078] In the embodiment provided by the present invention, a delivery topic corresponding to the pop-up task instruction is created according to the pop-up information. For example, if the pop-up information indicates that the pop-up interactive task is voting, a voting topic is created, voting options are added, and a card ID of the voting card is generated, and the card ID uniquely identifies the voting card.

[0079] S202: When it is detected that the set-top box sends the pop-up card display information and the pop-up page delivery parameters to the display device, control the set-top box to send the delivery theme to the display device, so that the display device displays the delivery theme in the pop-up delivery page.

[0080] In the embodiment provided by the present invention, when it is detected that the set-top box sends pop-up card display information and pop-up page delivery parameters to a display device, such as a television, the delivery theme is displayed on the corresponding pop-up delivery page of the display device according to the pop-up page delivery parameters.

[0081] By applying the embodiment provided by the present invention, a delivery theme corresponding to a pop-up task instruction is constructed according to pop-up information, and the delivery theme is displayed in a pop-up delivery page of a display device, so that a user can respond to the delivery theme in the pop-up delivery page of the display device and participate in the interaction, thereby improving the user experience.

[0082] In the embodiments provided by the present invention, Figure 3 As shown, optionally, the pop-up card template parameters and pop-up delivery page parameters corresponding to the pop-up task instruction are constructed based on the pop-up information, including:

[0083] S301: Obtain the page size, pop-up window ID, pop-up window type, pop-up window display content and pop-up window operation parameters contained in the pop-up window information.

[0084] It should be noted that the page size is the current maximum page size of the display, the pop-up ID is the card ID, the pop-up type can be voting, annotation, etc., the pop-up display content can be voting options or annotation content, and the pop-up operation parameters include voting operation options, pop-up confirmation or close buttons and other parameters.

[0085] S302: Constructing a pop-up card template parameter corresponding to the pop-up task instruction based on the page size, pop-up ID, pop-up type, pop-up display content and at least one pop-up operation parameter.

[0086] The pop-up template parameters at least include the pop-up card size and the pop-up card position.

[0087] S303: Based on the pop-up card size and pop-up card position in the pop-up template parameters, construct the pop-up delivery page parameters corresponding to the pop-up task instruction.

[0088] In the embodiment provided by the present invention, the size of the pop-up window and the position of the pop-up window in the display page need to be set, and the pop-up window delivery page parameters corresponding to the pop-up window task instruction are constructed accordingly, so that the display device can display the pop-up window delivery page based on the pop-up window delivery page parameters to perform the next pop-up window processing operation.

[0089] In the embodiment provided by the present invention, optionally, it also includes:

[0090] Determine the pop-up window type in the pop-up window information;

[0091] When the pop-up type indicates that the pop-up card to be displayed corresponding to the pop-up task instruction is an activity voting pop-up, based on the pop-up display content in the pop-up information and at least one pop-up operation parameter, at least one voting result pop-up is generated corresponding to the activity voting pop-up, and the voting result pop-up corresponds to a pop-up operation parameter.

[0092] It is understandable that when the pop-up types in the pop-up information include voting pop-ups, answering pop-ups, etc., their basic patterns all include questions and several options, and the topic page and result page are enumerable.

[0093] When the pop-up window type indicates that the pop-up window card to be displayed corresponding to the pop-up window task instruction is an activity voting pop-up window, a voting result pop-up window can be generated according to the pop-up window display content and the pop-up window operation, and one voting result pop-up window corresponds to one pop-up window operation parameter.

[0094] When the pop-up type indicates that the pop-up card to be displayed corresponding to the pop-up task instruction is a question pop-up, assuming that the question has two answer options, a correct answer and an incorrect answer, a voting result pop-up for an incorrect answer and a voting result pop-up for a correct answer can be generated according to the pop-up display content and the pop-up operation.

[0095] According to the embodiment provided by the application invention, if the pop-up window type is an activity voting pop-up window, at least one voting result pop-up window corresponding to the activity voting pop-up window is generated based on the pop-up window display content and at least one pop-up window operation parameter, so that the audience can obtain the operation result from the voting result pop-up window after participating in the voting, thereby further improving the user experience.

[0096] In the embodiments provided by the present invention, optionally, Figure 4 As shown, the sending of a pop-up window push notification corresponding to the pop-up window task instruction to a preset set-top box through a long connection includes:

[0097] S401: Determine the current playing progress of the target video played by the display device.

[0098] In the embodiment provided by the present invention, a pop-up push notification is pushed to a designated location of a target video according to a push time, so as to realize interaction between a program played by a preset set-top box display device and an audience, wherein the push time can be pre-set according to a video node played by the set-top box display device.

[0099] S402: Determine whether the current playback progress reaches a preset pop-up window delivery time.

[0100] In the embodiment provided by the present invention, if the current playback progress of the target video reaches the preset pop-up window delivery time, S403 is executed, otherwise S404 is executed.

[0101] S403: Sending a pop-up window push notification corresponding to the pop-up window task instruction to the set-top box through the long connection.

[0102] In the embodiment provided by the present invention, if the current playback progress of the target video reaches the preset pop-up delivery time, a pop-up push notification corresponding to the pop-up task instruction is sent to the set-top box through a long connection, so as to further realize the display of a pop-up card for the audience on the display device of the current target video.

[0103] S404: Based on the current playback progress and the pop-up delivery time, determine the waiting delivery time; enable a preset timer to count the waiting time, and when the timing time of the timer reaches the waiting delivery time, send a pop-up push notification corresponding to the pop-up task instruction to the set-top box through the long connection.

[0104] In the embodiment provided by the present invention, if the current playback progress of the target video has not reached the preset pop-up delivery time, the waiting delivery time is calculated based on the current playback progress and the pop-up delivery time, and a timer is started to count. When the timing time of the timer is equal to the waiting delivery time, a pop-up push notification corresponding to the pop-up task instruction is sent to the set-top box through a long connection.

[0105] By applying the embodiment provided by the present invention, the current playback progress of the target video is monitored, and when the current playback progress reaches the pop-up delivery time, a pop-up push notification corresponding to the pop-up task instruction is sent to the set-top box through a long connection, and the pop-up card is displayed to the audience through the set-top box display device in time, thereby realizing the interaction between the audience and the set-top box display device in playing the program, and improving the user interactivity and participation.

[0106] A specific embodiment provided by the present invention is as follows Figure 5 As shown, the set-top box is located in the display layer and is used to integrate App applications. App applications receive push content from the persistent connection service and connect to the Web (H5) card service to obtain relevant card data. App applications are connected to TVs or other display devices through the set-top box to display card pop-up content.

[0107] Specifically, the Web (H5) card service in the gateway layer receives a pop-up task instruction sent by the push end. The pop-up task instruction is to display a voting pop-up window during the live broadcast of the final of "I Am a Singer" at 8 pm on Friday. The voting theme is "Who do you support to advance?" The voting options are: A-Geng Ziqi, B-Zhang Jie. The Web (H5) card service constructs the corresponding voting card template page and voting card pop-up page according to the pop-up information corresponding to the instruction.

[0108] After the voting card template page and voting card pop-up page are created, the management backend in the business layer creates a voting topic: "Who do you support to advance?" and adds voting options: A-G.E.M., B-Zhang Jie. The card ID generated by the voting card is 1, and each voting option ID is generated. After the voting card is created, a screenshot instruction task will be submitted to the screenshot service, which belongs to the pop-up server.

[0109] The screenshot service, which is also located in the business layer, receives the screenshot command from the management background, passes the voting card ID and voting option ID to the Web (H5) card service, and uses PhantomJS technology to generate a picture of the specified size from the card pop-up template page provided by the Web (H5) card service, and stores it on the server or pushes it to the CDN service. The screenshot is generated by executing the command: phantomjssnapshot.jsurldir.

[0110] For example, the command to generate a screenshot of the voting page is phantomjssnapshot.jshttp: / / host / webcard / card-webkit / voteSelect.html?card_id=1 / snapshot / vote / card_1.png; the command to generate a screenshot of the voting result page is phantomjssnapshot.jshttp: / / host / webcard / card-webkit / voteSelect.html?card_id=1 / snapshot / vote / result_1.png. After the screenshots are generated, the generation status of each page and the screenshot directory are saved in the database of the storage layer. At this time, the voting card status is pushable.

[0111] The push service polls regularly and pulls the pop-up tasks of the cards to be pushed from the database (DB). And pushes them to the set-top box App through the long connection service. The operation background sets the pushable card tasks. For example, the operation background sets the push time of the voting card to 8:00 pm, and the push service will push the voting card to the set-top box App at 8:00 pm.

[0112] The set-top box App receives a voting pop-up push notification, parses the card ID based on the voting pop-up push notification, accesses the Web (H5) card service with the card ID parameter to obtain the card pop-up page, and renders it. As follows:

[0113] http: / / host / card / voteSelect.html? card_id=1;

[0114] This page will use the card_1.png generated in the above screenshot steps as the background image, and then use JS technology to calculate the width and height of the image, combined with the number of voting options, to calculate the position of each option. Then it will render the remote control selection effect. It should be noted that the position of each voting option can be obtained from the voting card template page, and the voting card pop-up page only uses the previously preset position for calculation.

[0115] Final voting card pop-up effect reference Figure 6 The built-in SDK of the set-top box controls the lower right corner of the TV main screen to generate a banner image of the voting card pop-up window. The first option is selected by default. The audience can select options using the up and down arrow keys on the remote control, and then press the OK button to submit the voting results.

[0116] After a period of time, the management background will trigger the push of voting results to the set-top box TV users who have submitted votes.

[0117] The specific implementation processes and derivative methods of the above-mentioned embodiments are all within the protection scope of the present invention.

[0118] and Figure 1 Corresponding to the method described above, the embodiment of the present invention further provides a pop-up window processing device for Figure 1 In the specific implementation of the method, the pop-up window processing device provided in the embodiment of the present invention can be applied to a computer terminal or various mobile devices, and its structural diagram is as follows Figure 7 As shown, specifically including:

[0119] The acquisition unit 701 is used to acquire the pop-up window information corresponding to the pop-up window task instruction when receiving the pop-up window task instruction sent by the push end;

[0120] A first construction unit 702 is used to construct a pop-up card template parameter and a pop-up delivery page parameter corresponding to the pop-up task instruction based on the pop-up information;

[0121] A generating unit 703 is used to send the pop-up card template parameters and the pop-up window information to a preset pop-up window server, triggering the pop-up window server to generate the pop-up card display information corresponding to the pop-up window task instruction based on the pop-up card template parameters and the pop-up window information;

[0122] The first execution unit 704 is used to push the pop-up card display information and the pop-up page delivery parameters to a preset card server, and send a pop-up push notification corresponding to the pop-up task instruction to a preset set-top box through a long connection, and control the set-top box to send the pop-up card display information and pop-up page delivery parameters in the card server to a preset display device based on the pop-up push notification, so that the display device displays the pop-up delivery page based on the pop-up delivery page parameters, and renders the pop-up card in the pop-up delivery page based on the pop-up card display information.

[0123] In the pop-up processing device provided in this real-time example, when a pop-up task instruction sent by the push end is received, the acquisition unit acquires the pop-up information corresponding to the pop-up task instruction, and the first construction unit constructs the pop-up card template parameters and pop-up delivery page parameters corresponding to the pop-up task instruction according to the pop-up information, and the generation unit sends the pop-up card template parameters and the pop-up information to the preset pop-up server, triggering the pop-up server to generate the pop-up card display information corresponding to the pop-up task instruction based on the pop-up card template parameters and the pop-up information; finally, the first execution unit pushes the pop-up card display information and the pop-up page delivery parameters to the preset card server, and sends the pop-up push notification corresponding to the pop-up task instruction to the preset set-top box through a long connection, and controls the set-top box to send the pop-up card display information and the pop-up page delivery parameters in the card server to the preset display device based on the pop-up push notification, so that the display device displays the pop-up delivery page based on the pop-up delivery page parameters, and renders the pop-up card in the pop-up delivery page based on the pop-up card display information.

[0124] By applying the pop-up processing device provided by the present invention, a pop-up card display information corresponding to a pop-up task instruction is generated by a pop-up server according to pop-up card template parameters and pop-up information, and a display device displays a pop-up delivery page according to the pop-up delivery page parameters, and renders a pop-up card in the pop-up delivery page based on the pop-up card display information to obtain a fixed-size image (card), thereby simplifying the card pop-up H5 page, and then using the JS technology of H5 to render the effect and unify the style, thereby avoiding the problem that the Web (H5) card service is incompatible with all set-top box styles due to too many set-top box versions.

[0125] The device provided in the embodiment of the present invention further includes:

[0126] A second construction unit is used to construct a delivery theme corresponding to the pop-up window task instruction based on the pop-up window information;

[0127] The second execution unit is used to control the set-top box to send the delivery theme to the display device when it is detected that the set-top box sends the pop-up card display information and the pop-up page delivery parameters to the display device, so that the display device displays the delivery theme in the pop-up delivery page.

[0128] In the device provided by the embodiment of the present invention, the first construction unit includes:

[0129] An acquisition subunit is used to acquire the page size, pop-up window ID, pop-up window type, pop-up window display content and pop-up window operation parameters contained in the pop-up window information;

[0130] A first construction subunit is used to construct a pop-up card template parameter corresponding to the pop-up task instruction based on the page size, the pop-up ID, the pop-up type, the pop-up display content and at least one pop-up operation parameter, wherein the pop-up template parameter at least includes a pop-up card size and a pop-up card position;

[0131] The second construction subunit is used to construct the pop-up delivery page parameters corresponding to the pop-up task instruction based on the pop-up card size and pop-up card position in the pop-up template parameters.

[0132] The device provided in the embodiment of the present invention further includes:

[0133] A first determining subunit, used to determine the pop-up window type in the pop-up window information;

[0134] A generating sub-unit is used for generating at least one voting result pop-up window corresponding to the activity voting pop-up window when the pop-up window type indicates that the pop-up window card to be displayed corresponding to the pop-up window task instruction is an activity voting pop-up window, based on the pop-up window display content in the pop-up window information and at least one pop-up window operation parameter, and the voting result pop-up window corresponds to a pop-up window operation parameter.

[0135] In the device provided by the embodiment of the present invention, the first execution unit includes:

[0136] A second determining subunit, configured to determine a current playback progress of a target video played by the display device;

[0137] A judging subunit, used to judge whether the current playback progress reaches a preset pop-up window delivery time;

[0138] A first execution subunit is configured to send a pop-up window push notification corresponding to the pop-up window task instruction to the set-top box through the long connection if the current playback progress reaches a preset pop-up window delivery time;

[0139] The second execution sub-unit is used to determine the waiting time based on the current playback progress and the pop-up delivery time if the current playback progress has not reached the preset pop-up delivery time; enable a preset timer to count the waiting time, and when the timing time of the timer reaches the waiting delivery time, send a pop-up push notification corresponding to the pop-up task instruction to the set-top box through the long connection.

[0140] For the specific working process of each unit and sub-unit in the pop-up window processing device disclosed in the above embodiment of the present invention, reference can be made to the corresponding content in the pop-up window processing method disclosed in the above embodiment of the present invention, and will not be repeated here.

[0141] An embodiment of the present invention further provides a storage medium, which includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the above-mentioned pop-up window processing method.

[0142] The embodiment of the present invention further provides an electronic device, the structural diagram of which is shown in FIG. Figure 8 As shown, it specifically includes a memory 801 and one or more instructions 802, wherein the one or more instructions 802 are stored in the memory 801 and are configured to be executed by one or more processors 803 to perform the following operations:

[0143] When receiving a pop-up task instruction sent by the push end, obtaining pop-up window information corresponding to the pop-up task instruction;

[0144] Based on the pop-up window information, construct pop-up window card template parameters and pop-up window delivery page parameters corresponding to the pop-up window task instruction;

[0145] Sending the pop-up card template parameters and the pop-up window information to a preset pop-up window server, triggering the pop-up window server to generate pop-up card display information corresponding to the pop-up window task instruction based on the pop-up card template parameters and the pop-up window information;

[0146] The pop-up card display information and the pop-up page delivery parameters are pushed to a preset card server, and a pop-up push notification corresponding to the pop-up task instruction is sent to a preset set-top box through a long connection, and the set-top box is controlled to send the pop-up card display information and pop-up page delivery parameters in the card server to a preset display device based on the pop-up push notification, so that the display device displays the pop-up delivery page based on the pop-up delivery page parameters, and renders the pop-up card in the pop-up delivery page based on the pop-up card display information.

[0147] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.

[0148] Those skilled in the art may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein may be implemented by electronic hardware, computer software, or a combination of both.

[0149] In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present invention.

[0150] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A pop-up window processing method, characterized in that: include: When receiving a pop-up task instruction sent by the push end, obtaining pop-up window information corresponding to the pop-up task instruction; The pop-up window information includes the pop-up window time and the content displayed in the pop-up window; Based on the pop-up window information, construct pop-up window card template parameters and pop-up window delivery page parameters corresponding to the pop-up window task instruction; Sending the pop-up card template parameters and the pop-up window information to a preset pop-up window server, triggering the pop-up window server to generate pop-up card display information corresponding to the pop-up window task instruction based on the pop-up card template parameters and the pop-up window information; The pop-up card display information and the pop-up delivery page parameters are pushed to a preset card server, and a pop-up push notification corresponding to the pop-up task instruction is sent to a preset set-top box through a long connection, and the set-top box is controlled to send the pop-up card display information and the pop-up delivery page parameters in the card server to a preset display device based on the pop-up push notification, so that the display device displays the pop-up delivery page based on the pop-up delivery page parameters, and renders the pop-up card in the pop-up delivery page based on the pop-up card display information.

2. The method according to claim 1, characterized in that Also includes: Based on the pop-up window information, construct a delivery theme corresponding to the pop-up window task instruction; When it is detected that the set-top box sends the pop-up card display information and the pop-up delivery page parameters to the display device, the set-top box is controlled to send the delivery theme to the display device, so that the display device displays the delivery theme in the pop-up delivery page.

3. The method according to claim 1, characterized in that The constructing of pop-up card template parameters and pop-up delivery page parameters corresponding to the pop-up task instruction based on the pop-up information includes: Obtain the page size, pop-up window ID, pop-up window type, pop-up window display content, and pop-up window operation parameters contained in the pop-up window information; Based on the page size, pop-up window ID, pop-up window type, pop-up window display content and at least one pop-up window operation parameter, construct a pop-up window card template parameter corresponding to the pop-up window task instruction, wherein the pop-up window card template parameter at least includes a pop-up window card size and a pop-up window card position; Based on the pop-up card size and pop-up card position in the pop-up card template parameters, the pop-up delivery page parameters corresponding to the pop-up task instruction are constructed.

4. The method according to claim 3, characterized in that: Also includes: Determine the pop-up window type in the pop-up window information; When the pop-up type indicates that the pop-up card to be displayed corresponding to the pop-up task instruction is an activity voting pop-up, based on the pop-up display content in the pop-up information and at least one pop-up operation parameter, at least one voting result pop-up is generated corresponding to the activity voting pop-up, and the voting result pop-up corresponds to a pop-up operation parameter.

5. The method according to claim 1, characterized in that The sending a pop-up window push notification corresponding to the pop-up window task instruction to a preset set-top box through a long connection includes: Determine the current playback progress of the target video played by the display device; Determine whether the current playback progress reaches the preset pop-up window delivery time; If the current playback progress reaches the preset pop-up window delivery time, a pop-up window push notification corresponding to the pop-up window task instruction is sent to the set-top box through the long connection; If the current playback progress has not reached the preset pop-up delivery time, the waiting delivery time is determined based on the current playback progress and the pop-up delivery time; a preset timer is enabled to count the waiting delivery time, and when the timing time of the timer reaches the waiting delivery time, a pop-up push notification corresponding to the pop-up task instruction is sent to the set-top box through the long connection.

6. A pop-up window processing device, characterized in that: include: An acquisition unit, configured to acquire pop-up window information corresponding to the pop-up window task instruction when receiving the pop-up window task instruction sent by the push end; The pop-up window information includes the pop-up window time and the content displayed in the pop-up window; A first construction unit is used to construct a pop-up card template parameter and a pop-up delivery page parameter corresponding to the pop-up task instruction based on the pop-up information; A generating unit, configured to send the pop-up card template parameters and the pop-up window information to a preset pop-up window server, triggering the pop-up window server to generate the pop-up card display information corresponding to the pop-up window task instruction based on the pop-up card template parameters and the pop-up window information; The first execution unit is used to push the pop-up card display information and the pop-up delivery page parameters to a preset card server, and send a pop-up push notification corresponding to the pop-up task instruction to a preset set-top box through a long connection, and control the set-top box to send the pop-up card display information and pop-up delivery page parameters in the card server to a preset display device based on the pop-up push notification, so that the display device displays the pop-up delivery page based on the pop-up delivery page parameters, and renders the pop-up card in the pop-up delivery page based on the pop-up card display information.

7. The device according to claim 6, characterized in that Also includes: A second construction unit is used to construct a delivery theme corresponding to the pop-up window task instruction based on the pop-up window information; The second execution unit is used to control the set-top box to send the delivery theme to the display device when it is detected that the set-top box sends the pop-up card display information and the pop-up delivery page parameters to the display device, so that the display device displays the delivery theme in the pop-up delivery page.

8. The device according to claim 6, characterized in that The first building block comprises: An acquisition subunit is used to acquire the page size, pop-up window ID, pop-up window type, pop-up window display content and pop-up window operation parameters contained in the pop-up window information; A first construction subunit is used to construct a pop-up card template parameter corresponding to the pop-up task instruction based on the page size, the pop-up ID, the pop-up type, the pop-up display content and at least one pop-up operation parameter, wherein the pop-up card template parameter at least includes a pop-up card size and a pop-up card position; The second construction subunit is used to construct the pop-up delivery page parameters corresponding to the pop-up task instruction based on the pop-up card size and the pop-up card position in the pop-up card template parameters.

9. The device according to claim 8, characterized in that Also includes: A first determining subunit, used to determine the pop-up window type in the pop-up window information; A generating sub-unit is used for generating at least one voting result pop-up window corresponding to the activity voting pop-up window when the pop-up window type indicates that the pop-up window card to be displayed corresponding to the pop-up window task instruction is an activity voting pop-up window, based on the pop-up window display content in the pop-up window information and at least one pop-up window operation parameter, and the voting result pop-up window corresponds to a pop-up window operation parameter.

10. The device according to claim 6, characterized in that The first execution unit includes: A second determining subunit, configured to determine a current playback progress of a target video played by the display device; A judging subunit, used to judge whether the current playback progress reaches a preset pop-up window delivery time; A first execution subunit is configured to send a pop-up window push notification corresponding to the pop-up window task instruction to the set-top box through the long connection if the current playback progress reaches a preset pop-up window delivery time; The second execution sub-unit is used to determine the waiting delivery time based on the current playback progress and the pop-up delivery time if the current playback progress has not reached the preset pop-up delivery time; enable a preset timer to count the waiting delivery time, and when the timing time of the timer reaches the waiting delivery time, send a pop-up push notification corresponding to the pop-up task instruction to the set-top box through the long connection.