CN111586462A - Method for acquiring and moving focus in IPTV - Google Patents

Method for acquiring and moving focus in IPTV Download PDF

Info

Publication number
CN111586462A
CN111586462A CN202010352899.9A CN202010352899A CN111586462A CN 111586462 A CN111586462 A CN 111586462A CN 202010352899 A CN202010352899 A CN 202010352899A CN 111586462 A CN111586462 A CN 111586462A
Authority
CN
China
Prior art keywords
focus
mainupview
moving
coordinate
iptv
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010352899.9A
Other languages
Chinese (zh)
Inventor
魏代邦
王方旭
徐民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Haikan Network Technology Shandong Co ltd
Original Assignee
Haikan Network Technology Shandong Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Haikan Network Technology Shandong Co ltd filed Critical Haikan Network Technology Shandong Co ltd
Priority to CN202010352899.9A priority Critical patent/CN111586462A/en
Publication of CN111586462A publication Critical patent/CN111586462A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention relates to a method for acquiring and moving a focus in an IPTV, which comprises the following steps: step 1, initializing a client; step 2, the remote control device sends out a focus moving request, the interface focus element changes, whether a new focus element and a focus frame element MainUpView are in the same coordinate system or not is judged, if not, the step 3 is carried out, and if yes, the step 4 is carried out; step 3, accumulating the coordinate values in a vector mode, and recursively calculating the coordinates of the parent element of the coordinate values until the parent element and the MainUpView are in the same coordinate system, and performing step 4; step 4, calculating a new focus element, a MainUpView and an accumulated value to obtain a moving offset; and 5, executing the animation effect function. The invention provides a universal focus processing method, which can realize a low-invasive code implementation scheme independent of a specific application interface form, realize animation display functions with various display effects, realized by different technologies and suitable for various service scenes.

Description

Method for acquiring and moving focus in IPTV
Technical Field
The invention relates to the technical field of network televisions, in particular to a method for acquiring and moving a focus in an IPTV.
Background
The interactive network television integrates functions of household television, internet, multimedia, communication, online shopping and the like, and realizes organic combination of traditional broadcast television and emerging internet media technology. At present, the IPTV service is in a vigorous development stage, and is increasingly and deeply integrated into the daily life of people, so as to bring more convenience to the user in the aspects of home life, audiovisual entertainment, work and study, and the like.
Compared with touch screen devices such as mobile phones and tablet computers, the television end system (non-touch screen device) has obvious difference in interaction experience, users mainly interact through touch and click when operating the touch screen device, and interact with the non-touch screen device mainly through a control remote controller. Therefore, the active focus of the current interface is acquired and displayed, and obvious position identification is provided for the user, so that the method becomes an important function in the IPTV system.
The acquisition and display of the focus are closely related to the technology used by the system, and the current IPTV system mainly has two technical ideas, one is that the original Android technology is adopted to operate in a customer service end environment in an APK mode, and the technical scheme needs to be designed by combining the technical principle of the Android. The other method is realized by adopting a response type WEB technology or a C + B (namely an Android WebView nested webpage), and the technical scheme is designed by combining a WEB technical principle.
The chinese patent document discloses a method and a device for moving a focus in a program entry display interface, and a terminal device, and the application numbers are: 201810638978.9, filing date: 2018-06-20, the publication number is: 108668156A, it provides a scheme of focus movement in the program item display interface, its main inventive point lies in that when trying to move the focus, the coordinate value after the movement is obtained by comparing the playing time interval or index of the corresponding program before and after the focus movement. The coordinate algorithm is only applicable to the display structure, namely, the coordinate algorithm in the horizontal direction or the vertical direction among the horizontal elements under the same coordinate system. Meanwhile, the invention does not provide an explicit scheme for the focused presentation style and how to realize the expected presentation style.
The Chinese patent document discloses a method for presenting and processing an IPTV page focus in an android system, with the application number of 201510124703.X, the application date of 2015-03-20, and the authorization notice number of: CN 104811784B, which provides a way to correctly handle focus when presenting an IPTV page on an Android system device. The technical background of the invention is non-Android native development, namely, the mode of embedding the WEB page into the Android application achieves the display effect. Therefore, the technical key points and the scenes thereof of the invention are carried out by relying on the WEB technology. Therefore, the method cannot be suitable for the application of Android native development, and cannot solve various technical problems.
Disclosure of Invention
In order to overcome the defects, the invention aims to provide a method for acquiring and moving a focus in an IPTV, which mainly designs a set of easy-to-use and high-applicability focus acquisition and display software scheme around IPTV application in an Android native environment.
The technical scheme adopted by the invention for solving the technical problems is as follows: a method for acquiring and moving a focus in IPTV comprises the following steps:
step 1, initializing a client, wherein a display base class BaseActivity of a client program initializes a MainUpView assembly, the MainUpView assembly is responsible for the display form of a focus frame, the MainUpView assembly and an Effect bridge assembly form a bridging structure, the MainUpView assembly transmits the MainUpView assembly to the Effect bridge assembly, and the Effect bridge assembly displays the MainUpView after calculation and logic processing, wherein the MainUpView assembly comprises a customized focus pattern, a shadow pattern and an animation effect;
the MainUpView component inherits an Android system component FrameLayout, and is directly attached to the uppermost layer of a root view content area in a floating layer mode as a container, namely, the container is separated from specific layout content, and the implementation mode can not only ensure that a focus frame element is not covered by the content of other page elements, but also ensure that the layout of an application interface does not need to additionally add focus content; meanwhile, the MainUpView is also responsible for configuring a focus pattern, and the focus pattern comprises a pattern attribute, a picture and a dot nine pattern, wherein a frame of the dot nine pattern can adapt to any shape; the user can also configure a shadow effect for the MainUpView, and the same shadow effect supports style attributes and common pictures; the MainUpView is also responsible for the layout details of the focus frame, such as the inner edge distance parameters of the focus frame and the content bit; in a word, the MainUpView encapsulates various parameters displayed by the focus, and a user can configure according to an actual scene;
step 2, the remote control device sends out a focus moving request, the interface focus element changes, whether a new focus element and a focus frame element MainUpView are in the same coordinate system or not is judged, if not, the step 3 is carried out, and if yes, the step 4 is carried out;
the method comprises the steps that when a focus starts to move every time, the coordinate position of the MainUpView always coincides with the coordinate of an old focus element, and the coordinate position of the MainUpView coincides with the coordinate of a new focus element after the movement is finished, so that the offset before and after the movement of the focus is obtained, only two conditions need to be guaranteed, firstly, the reference system coordinate of the focus element is converted into the reference system coordinate of the MainUpView, namely, the coordinate of the focus element in the MainUpView coordinate system is obtained through calculation, secondly, the offset between the two coordinates is calculated, under the common condition, the MainUpView can be arranged at the uppermost layer of a view content area, the focus element is also arranged in the content area, the movement amount before and after the movement can be calculated by taking the content layout as the coordinate system, and the complexity of a corresponding;
step 3, if the focus element is a child element of the same-level layout element of the MainUpView, calculating the coordinate of the focus element in the parent element of the focus element, accumulating the coordinate values in a vector mode, and calculating the coordinate of the parent element in a recursion mode until the parent element and the MainUpView are in the same level (have the same coordinate system), and performing step 4;
step 4, calculating a new focus element, a MainUpView and an accumulated value to obtain a moving offset;
and 5, executing an animation effect function, wherein the focus moving process is realized by means of an android animation mechanism, the animation effect function packages the animation effects of zooming, translation, flashing, transformation and the like, wherein zooming is only performed on MainUpView, a user can flexibly configure the scaling parameters of zooming to achieve the expected effect, and the animations of translation and the like are performed on MainUpView and a new focus element, the process uses an animation set mode, the displacement, flashing and transformation effects are combined in one event, the user does not need to pay attention to the execution process and the life cycle of the animation, and the simplicity of use and good experience are ensured.
The invention has the following beneficial effects: the invention provides a universal focus processing method, which can be independent of a specific application interface form, does not need to be bound with a layout code, and realizes a low-invasive code implementation scheme; when the focal point coordinate is obtained, the scheme can deal with a complex layout structure, namely when the page element where the focal point is located before moving and the page element where the focal point is located after moving are located at different interface levels, have different layout parameters, have different coordinate systems and coordinate values, the scheme can provide correct data for use during moving. Meanwhile, the scheme also expects to provide a focus display effect rich in content. Allowing a user to select a proper focus display style according to the interface style of the user, wherein the user can define the display style by himself; meanwhile, an animation display effect library with rich contents can be provided, when the focus moves, a user can customize different animation display strategies, and the animation display function which has multiple display effects, is realized by depending on different technologies and is suitable for multiple service scenes is realized.
Drawings
FIG. 1 is a schematic view of a display interface for focus movement according to the present invention.
FIG. 2 is another illustration of the focus shift of the present invention.
Fig. 3 is a model of the product structure of the present invention.
FIG. 4 is a timing diagram for initializing the product according to the present invention.
FIG. 5 is a flowchart of the focal coordinates calculation according to the present invention.
FIG. 6 is a timing diagram of a product default animation strategy according to the present invention.
Detailed Description
The present invention will now be described in further detail with reference to the accompanying drawings.
A method for obtaining and moving focus in IPTV, such as a focus moving display interface shown in FIG. 1, the layout style of a page may be any form, when a user clicks a remote control key, a focus moving request is sent, the interface focus element changes, a focus frame 1 moves from an old focus element to a new focus element, and the old focus element and the new focus element are accompanied by a zooming effect, the old focus element and the new focus element may be located at the same level, such as moving from element 2 to element 3 in schematic diagram 1, or at different levels, such as moving from element 2 to sub-element 1 in schematic diagram 1 or moving from element 6 to sub-element m.
The acquiring and moving method comprises the steps of initializing, for example, in a product initialization timing sequence diagram of fig. 3, a client program can initialize a MainUpView component in a display base class BaseActivity, a user can configure a uniform focus display style and also can configure a certain style attribute, when the MainUpView is initialized, an effectnodladbridge class is set as an implementation class of the EffectBridge by default, the class comprises a realization coordinate algorithm and an animation strategy, a coordinate algorithm and an animation strategy, and the user can select other coordinate algorithms and animation strategies through the form of transfer parameters, wherein each algorithm and strategy is suitable for different application environments;
in the focus coordinate calculation flowchart of fig. 4, a user clicks to trigger a focus change, (a client program obtains an old focus element and a new focus element from onglobefocuschchange in the display base class base activity, calls a setFocusView method), and transfers the old focus element and the new focus element to effectnodlowbridge; the Effect NoDrawBridge compares the hierarchical relationship between the MainUpView and the new focus element, checks whether the two elements belong to the same father element, if the two elements are not in the same level, obtains the coordinate of the new focus element in the father element, takes the father element as the new focus element, compares the new focus element with the MainUpView, repeats the steps until the two elements are in the same level, and can obtain the coordinate value of the new focus by accumulating the offset of the new focus, thereby executing the subsequent animation effect;
as shown in fig. 5, in a timing chart of a default animation policy of a product, after a client program calls a setFocusView method to trigger an operation in an onglobfocuschange in a display base class BaseActivity, an animation effect is executed. Including scaling of the new and old focus maps and a presentation animation of MainUpView. The latter assembles a plurality of groups of animations in the form of animation sets, thereby improving user experience and resource utilization. In the animation execution process, a callback function of a client program can be called to realize self service. In the endStrey method for displaying the base class BaseActivity, the destruction method of MainUpView is executed, and animation resources can be released.
The present invention is not limited to the above embodiments, and any structural changes made under the teaching of the present invention shall fall within the protection scope of the present invention, which is similar or similar to the technical solutions of the present invention.
The techniques, shapes, and configurations not described in detail in the present invention are all known techniques.

Claims (5)

1. A method for acquiring and moving a focus in an IPTV is characterized in that: the method comprises the following steps:
step 1, initializing a client, wherein a display base class BaseActivity of a client program initializes a MainUpView component;
step 2, the remote control device sends out a focus moving request, the interface focus element changes, whether a new focus element and a focus frame element MainUpView are in the same coordinate system or not is judged, if not, the step 3 is carried out, and if yes, the step 4 is carried out;
step 3, if the focus element is a child element of the same-level layout element of the MainUpView, calculating the coordinate of the focus element in a parent element of the focus element, accumulating the coordinate values in a vector mode, and calculating the coordinate of the parent element in a recursion mode until the parent element and the MainUpView are in the same coordinate system, and performing step 4;
step 4, calculating a new focus element, a MainUpView and an accumulated value to obtain a moving offset;
and 5, executing the animation effect function.
2. The method of claim 1, wherein the method for obtaining and moving the focus in the IPTV comprises: the MainUpView class component is responsible for displaying the form of the focus frame, the MainUpView class component and the Effect bridge component form a bridging structure, the MainUpView class component transmits the MainUpView class component to the Effect bridge component, and the Effect bridge component displays the MainUpView after calculation and logic processing.
3. The method of claim 1, wherein the method for obtaining and moving the focus in the IPTV comprises: the MainUpView comprises a customized focus pattern, a shadow pattern and an animation effect.
4. The method of claim 1, wherein the method for obtaining and moving the focus in the IPTV comprises: the method for judging whether the new focus element and the focus frame element MainUpView are in the same coordinate system or not comprises the steps of converting the reference system coordinate of the focus element into the reference system coordinate of the MainUpView, calculating the offset between the two coordinates, appointing the MainUpView to be positioned on the uppermost layer of a view content area, positioning the focus element in the content area, and calculating the moving amount before and after moving by taking the content layout as the coordinate system.
5. The method of claim 1, wherein the method for obtaining and moving the focus in the IPTV comprises: the animation effect function packages zooming, translating, flashing and animation changing effects, wherein zooming is only performed on MainUpView, and translating, flashing and animation changing are performed on MainUpView and new focus elements.
CN202010352899.9A 2020-04-29 2020-04-29 Method for acquiring and moving focus in IPTV Pending CN111586462A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010352899.9A CN111586462A (en) 2020-04-29 2020-04-29 Method for acquiring and moving focus in IPTV

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010352899.9A CN111586462A (en) 2020-04-29 2020-04-29 Method for acquiring and moving focus in IPTV

Publications (1)

Publication Number Publication Date
CN111586462A true CN111586462A (en) 2020-08-25

Family

ID=72113155

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010352899.9A Pending CN111586462A (en) 2020-04-29 2020-04-29 Method for acquiring and moving focus in IPTV

Country Status (1)

Country Link
CN (1) CN111586462A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113852847A (en) * 2021-06-29 2021-12-28 天翼智慧家庭科技有限公司 Method for realizing EPG focus configuration and display
CN114461171A (en) * 2022-01-27 2022-05-10 山东省城市商业银行合作联盟有限公司 Method and system for reading web bank pages
CN114501092A (en) * 2022-02-21 2022-05-13 海看网络科技(山东)股份有限公司 Method for automatically acquiring focus under EPG gridding layout
CN115022700A (en) * 2022-05-18 2022-09-06 海看网络科技(山东)股份有限公司 Method for realizing focus screen flashing in television

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100235769A1 (en) * 2009-03-16 2010-09-16 Microsoft Corporation Smooth layout animation of continuous and non-continuous properties
CN102857823A (en) * 2012-08-24 2013-01-02 乐视网信息技术(北京)股份有限公司 Web page focus control method based on television
CN111010601A (en) * 2019-12-17 2020-04-14 深圳康佳电子科技有限公司 Smart television focus control method, smart television and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100235769A1 (en) * 2009-03-16 2010-09-16 Microsoft Corporation Smooth layout animation of continuous and non-continuous properties
CN102857823A (en) * 2012-08-24 2013-01-02 乐视网信息技术(北京)股份有限公司 Web page focus control method based on television
CN111010601A (en) * 2019-12-17 2020-04-14 深圳康佳电子科技有限公司 Smart television focus control method, smart television and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
简书: "AndroidTVWidget框架之运动焦点框(五)", 《HTTPS://WWW.JIANSHU.COM/P/87F9EEE7A994》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113852847A (en) * 2021-06-29 2021-12-28 天翼智慧家庭科技有限公司 Method for realizing EPG focus configuration and display
CN114461171A (en) * 2022-01-27 2022-05-10 山东省城市商业银行合作联盟有限公司 Method and system for reading web bank pages
CN114461171B (en) * 2022-01-27 2023-11-28 山东省城市商业银行合作联盟有限公司 Method and system for reading online banking page
CN114501092A (en) * 2022-02-21 2022-05-13 海看网络科技(山东)股份有限公司 Method for automatically acquiring focus under EPG gridding layout
CN115022700A (en) * 2022-05-18 2022-09-06 海看网络科技(山东)股份有限公司 Method for realizing focus screen flashing in television
CN115022700B (en) * 2022-05-18 2024-03-08 海看网络科技(山东)股份有限公司 Method for realizing focus screen flash in television

Similar Documents

Publication Publication Date Title
CN111586462A (en) Method for acquiring and moving focus in IPTV
CN103309555B (en) The method and device of focus based on multiwindow switching
CN107577415B (en) Touch operation response method and device
CN102830964A (en) Method and device for displaying multitask interface
CN113810746B (en) Display equipment and picture sharing method
CN107608551B (en) Touch operation response method and device
WO2023005197A1 (en) Content display method and terminal
CN111949782A (en) Information recommendation method and service equipment
CN115129214A (en) Display device and color filling method
CN104598467B (en) Webpage picture display method and device
CN114115637A (en) Display device and electronic drawing board optimization method
CN112073787B (en) Display device and home page display method
CN112565851B (en) Method and device for personalized configuration of television homepage through mobile phone terminal
CN113900620B (en) Interaction method, device, electronic equipment and storage medium
WO2022083554A1 (en) User interface layout and interaction method, and three-dimensional display device
CN102272719A (en) System including a server and a terminal provided with graphical interfaces communicating via an image-sharing protocol
CN113485613A (en) Display equipment and method for realizing free-drawing screen edge painting
CN115695844A (en) Display device, server and media asset content recommendation method
CN114095766A (en) Display device and rotation control method
CN114296542B (en) Display apparatus and control method thereof
CN114442849B (en) Display equipment and display method
WO2022001635A1 (en) Display device and display method
CN114640891B (en) Method for circularly displaying thematic content up, down, left and right in IPTV
CN114138150B (en) Method for native integration of third-party APP (application) under Windows platform
CN115550716A (en) Display device and color mixing display method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200825

RJ01 Rejection of invention patent application after publication