CN106507183B - Method and device for acquiring video name - Google Patents
Method and device for acquiring video name Download PDFInfo
- Publication number
- CN106507183B CN106507183B CN201610943551.0A CN201610943551A CN106507183B CN 106507183 B CN106507183 B CN 106507183B CN 201610943551 A CN201610943551 A CN 201610943551A CN 106507183 B CN106507183 B CN 106507183B
- Authority
- CN
- China
- Prior art keywords
- interface
- application
- video
- determining
- text
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 230000008569 process Effects 0.000 claims description 11
- 238000010586 diagram Methods 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000012549 training Methods 0.000 description 2
- 238000004590 computer program Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/435—Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
- H04N21/4312—Generation 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/81—Monomedia components thereof
- H04N21/8166—Monomedia components thereof involving executable data, e.g. software
- H04N21/8173—End-user applications, e.g. Web browser, game
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- User Interface Of Digital Computer (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The application provides a method and a device for acquiring a video name, wherein the method comprises the following steps: when a play starting message of a player is received, determining a currently focused application and determining a first interface currently displayed by the application; acquiring text attribute information corresponding to the first interface; and determining the video name which is played by the application according to the text attribute information corresponding to the first interface. For third-party video application, the name of the video being played is determined through the acquired text attribute information corresponding to the first interface, and the problem that the name of the video being played cannot be acquired can be solved.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for obtaining a video name.
Background
With the rapid development of television technology, televisions have become one of the most important of home appliances. In order to count the watching habits of users, the names of videos played by video terminals need to be collected for audience analysis.
In the prior art, for the situation of signal source playing, the currently played video name can be obtained by identifying the station caption through screenshot and querying an EPG (Electronic Program Guide), and for the situation of a third-party video application (for example, fox search, kuku video application, and the like), because the video terminal has no station caption display during the playing process, for the third-party video application, the video terminal cannot obtain the currently played video name, and thus cannot accurately collect and analyze the video name played by the video terminal.
Disclosure of Invention
In view of this, the present application provides a method and an apparatus for acquiring a video name, so as to solve the problem that, for a third-party video application, a video terminal cannot acquire a currently played video name.
According to a first aspect of embodiments of the present application, a method for obtaining a video name is provided, where the method may include:
when a play starting message of a player is received, determining a currently focused application and determining a first interface currently displayed by the application;
acquiring text attribute information corresponding to the first interface;
and determining the video name which is played by the application according to the text attribute information corresponding to the first interface.
According to a second aspect of embodiments of the present application, there is provided an apparatus for obtaining a video title, the apparatus may include:
the first determining unit is used for determining a currently focused application and determining a first interface currently displayed by the application when a play-starting message of the player is received;
the acquisition unit is used for acquiring text attribute information corresponding to the first interface;
and the second determining unit is used for determining the video name played by the application according to the text attribute information corresponding to the first interface.
By applying the embodiment of the application, when receiving the play start message of the player, the video terminal firstly determines the currently focused application and the currently displayed first interface of the application, then obtains the text attribute information corresponding to the first interface, and determines the name of the video being played by the application according to the text attribute information corresponding to the first interface. Based on the implementation manner, when the video terminal starts to play the program of the third-party video application, the first interface currently displayed by the application is determined, and the video name being played by the application is determined according to the text attribute information corresponding to the first interface, so that for the third-party video application, the problem that the name of the currently played video cannot be obtained can be solved.
Drawings
Fig. 1 is a flowchart illustrating an embodiment of a method for obtaining a video title according to an exemplary embodiment of the present application;
FIG. 2A is a flow diagram illustrating an embodiment of a method for obtaining a video name in accordance with one illustrative embodiment;
FIG. 2B is a schematic diagram illustrating a first interface in accordance with one illustrative embodiment;
FIG. 2C is a flowchart illustrating step 204, according to an example embodiment;
FIG. 3A is a flowchart illustrating an embodiment of a method for obtaining a video name according to an example embodiment II;
FIG. 3B is a schematic illustration of a second interface according to a second exemplary embodiment;
FIG. 4 is a block diagram of the hardware of a video terminal according to an exemplary embodiment of the present application;
fig. 5 is a block diagram illustrating an embodiment of a device for acquiring a video title according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
Fig. 1 is a flowchart of an embodiment of a method for acquiring a video name according to an exemplary embodiment of the present application, where the embodiment is applied to a video terminal, and may be implemented by installing a third-party video application on the video terminal, where the video terminal may be a television terminal or a mobile phone terminal, as shown in fig. 1, the method for acquiring a video name includes the following steps 101 and 103:
step 101: when a play-starting message of the player is received, the application which is focused currently is determined, and the first interface which is displayed currently by the application is determined.
The video terminal comprises a player, and when the video terminal receives a play-starting message from the player, the video terminal starts to play the video. In an embodiment, when receiving an initiating message of a player, the video terminal may determine, through the application management module, an application currently focused on and a first interface currently displayed by the application. The video terminal determines the first interface when receiving the play start message of the player, and the video playing is started at the moment, so that the first interface is a video playing page.
Step 102: and acquiring text attribute information corresponding to the first interface.
In an embodiment, in the process of drawing an interface to be displayed, a video terminal may acquire text attribute information included in a control in the interface, determine the text attribute information as text attribute information corresponding to the interface, and record the text attribute information corresponding to the interface. The text attribute information contained in the control may include text content, a position of the text content, a font size and a color of the text content, and the like, so that the video terminal may obtain the text attribute information corresponding to the first interface.
It should be noted that the video terminal may record corresponding text attribute information for each interface to be displayed, or may end recording after determining the name of the video being played, which is not limited herein.
Step 103: and determining the video name which is played by the application according to the text attribute information corresponding to the first interface.
In this embodiment, when receiving a play start message from a player, the video terminal determines a currently focused application and a first interface currently displayed by the application, acquires text attribute information corresponding to the first interface, and determines a video name being played by the currently focused application according to the text attribute information corresponding to the first interface. Therefore, for the third-party video application, the name of the video being played can be determined through the acquired text attribute information corresponding to the first interface, and the problem that the name of the video being played cannot be acquired is solved.
Please refer to the following embodiments, specifically, how to determine the name of the video being played by the currently focused application.
Therefore, the method provided by the embodiment of the application can determine the name of the video being played by the application according to the text attribute information corresponding to the first interface by determining the first interface currently displayed by the third-party video application, so as to achieve the purpose of obtaining the name of the video being played.
The technical solutions provided in the embodiments of the present application are described below with specific embodiments.
FIG. 2A is a flow diagram illustrating an embodiment of a method for obtaining a video name in accordance with one illustrative embodiment; FIG. 2B is a schematic diagram illustrating a first interface in accordance with one illustrative embodiment; fig. 2C is a flowchart of step 204 shown in an exemplary embodiment, and this embodiment uses the above-mentioned method provided in the first embodiment of the present application to exemplarily explain how to determine a name of a video being played by the application according to text attribute information corresponding to a first interface, where the text attribute information corresponding to the interface may include text content and a position of the text content, as shown in fig. 2A, including the following steps:
step 201: and judging whether a first preset position exists in the positions of the text content corresponding to the first interface, if so, executing the step 202, and if not, executing the step 203.
Step 202: the method comprises the steps of obtaining text content located at a first preset position, and determining the text content as a video name played by the application.
For the process from step 201 to step 202, the first preset position may be set according to practical experience, for example, a name of a video being played is usually provided at an upper left corner of a video playing page (a first interface in this application), and therefore, the first preset position may be set as the upper left corner. Generally, in the process of drawing an interface to be displayed by a video terminal, video names exist on a video playing page in a visible or invisible mode, and in a video pause or loading state, the control attribute where the video names are located is visible, namely the video names exist on the video playing page in a visible mode; in the video playing state, the control attribute where the video name is located is invisible, that is, the video name exists on the video playing page in an invisible form.
As an exemplary scenario, assuming that the first preset position is an upper left corner position, as shown in fig. 2B, the positions of the text content corresponding to the first interface include an upper left corner position, an upper right corner position, and an interface bottom position, where the text content at the upper left corner position is "dream partner", the text content at the upper right corner position is "set", "album/recommendation", and "09: 44", respectively, and the first interface is in a video pause state, so that the control attribute where the video name is located is visible, and at this time, the text content of "dream partner" at the upper left corner position of the first interface is visible. The video terminal can determine that the upper left corner position exists in the positions of the text contents corresponding to the first interface, and can acquire the text contents of the dream partner at the upper left corner position, so that the video terminal can determine the dream partner as the name of the currently played video.
It should be noted that the video name provided on the video playing page is generally provided in a "playing xxx" form, so that when the text content located at the first preset position is obtained, the text content including the "playing" may be removed first, and then the remaining text content is determined as the currently played video name.
Further, the video terminal may also determine the name of the video being played in a sample training manner, that is, the video terminal may collect text attribute information corresponding to video playing interfaces of various applications and inform which text content in the text attribute information is the video name, for example, in the text attribute information corresponding to the video playing interface of the fox search application, the text content at the position of the upper right corner is the video name, so that after multiple times of training, when the video terminal determines that the currently focused application is the fox search application, the video terminal may directly determine the text content at the position of the upper right corner in the text attribute information corresponding to the video playing interface as the video name.
Step 203: and determining a second interface displayed by the video terminal before the video terminal is switched to the first interface according to the interface switching record information.
In an embodiment, when the video terminal displays each interface, the display time of each interface may be recorded, then the interfaces are sorted according to the sequence of the display time, interface switching record information is generated, and each interface is correspondingly recorded. Therefore, the video terminal can acquire the display time of the first interface according to the interface switching record information, then determine the interface corresponding to the previous display time closest to the display time of the first interface, and finally determine the interface as the second interface displayed by the video terminal before the video terminal is switched to the first interface.
Step 204: and judging whether the second interface belongs to the application, if so, executing the step 205, and if not, executing the step 206.
The video terminal enters a video playing page, and the video terminal has two situations: firstly, directly entering a video playing page from the outside of an application, for example, a video terminal directly skips from a search page to enter the video playing page; second, a gradual jump into the video playback page from within the application occurs, for example, a jump from the first page of the application into the video classification page, then from the video classification page into the video detail page, and finally from the video detail page into the video playback page. Therefore, after determining that the second interface displayed before the first interface is switched to, the video terminal needs to determine whether the second interface belongs to the currently focused application, if so, the situation that the video terminal enters the video playing page is the second situation, the second interface that can be determined is the video detail page, and if not, the situation that the video terminal enters the video playing page is the first situation.
Step 205: and acquiring text attribute information corresponding to the second interface, and determining the video name being played by the application according to the text attribute information corresponding to the second interface.
As shown in step 204, if the condition of entering the video playing page is the second condition, the second interface is a video detail page, and the name of the video being played by the application can be determined according to the text attribute information corresponding to the second interface, and for how to determine the name of the video being played by the application, please refer to the following description.
Step 206: the current flow is ended.
As shown in step 204, if the condition of entering the video playing page is the first condition, the second interface has no association relationship with the video being played by the application, and the current process is ended.
As shown in fig. 2C, step 204 may further include the steps of:
step 210: acquiring an interface layer overlay table of the application; wherein, the interface overlay records the displayed interface of the application.
As shown in step 101, an interface stack table may be created in the application management module for the currently focused application, and after each interface is displayed by the application, the interface is recorded in the interface stack table, for example, the application management module may record the displayed interfaces in the interface stack table according to the display time sequence of the interfaces.
Step 211: and judging whether a second interface exists in the interface stack table, if so, executing the step 212, and if not, executing the step 213.
Step 212: determining that the second interface belongs to the application;
step 213: determining that the second interface does not belong to the application.
In this embodiment, the video terminal may first determine the name of the video being played by the currently focused application by acquiring the text content located at the first preset position from the first interface, and if the text content located at the first preset position is not located on the first interface, the name of the video being played by the application may also be determined by text attribute information corresponding to a second interface that belongs to the application and is displayed before the first interface is switched to, so that it is further ensured that the video terminal can accurately acquire the name of the video being played, and thus, the name of the video played by the video terminal can be accurately collected and analyzed.
FIG. 3A is a flowchart illustrating an embodiment of a method for obtaining a video name according to an example embodiment II; fig. 3B is a schematic diagram of a second interface shown according to an exemplary embodiment, which is an exemplary illustration of how to determine a name of a video being played by the application according to text attribute information corresponding to the second interface by using the above-mentioned method provided in the embodiment of the present application, where the text attribute information corresponding to the interface may further include a font size of the text content, as shown in fig. 3A, including the following steps:
step 301: and judging whether a second preset position exists in the positions of the text content corresponding to the second interface, if so, executing the step 302, and if not, executing the step 303.
Step 302: and acquiring the text content at the second preset position, selecting the text content with the preset font size from the text content, and determining the text content with the preset font size as the name of the video being played by the application.
Step 303: and judging whether a third preset position exists in the positions of the text contents corresponding to the second interface, if so, executing step 304, and if not, executing step 305.
Step 304: and acquiring the text content at the second preset position, selecting the text content with the preset font size from the text content, and determining the text content with the preset font size as the name of the video being played by the application.
For the process from step 301 to step 304, the second preset position and the third preset position are both set according to practical experience, as described in step 204 and step 205, if the second interface belongs to the application, the second interface is a video detail page, and generally, the video detail page may provide a video name at the upper left corner position and may also provide a video name at the upper middle position. Therefore, the video terminal can set the second preset position as the upper left corner position and the third preset position as the middle upper position, or can set the second preset position as the middle upper position and the third preset position as the upper left corner position. In addition, in the video detail page, other mark-up information is usually included in the text content of the video name, for example, the video has a long time, and the mark-up information is often displayed in a smaller font. Therefore, the largest font in the text content can be set to the preset font size, and after the video terminal acquires the text content located at the second preset position or the third preset position, the text content with the preset font size can be selected from the text content to serve as the name of the video currently being played by the focused application.
Step 305: the current flow is ended.
It should be noted that, if there is no third preset position in the positions of the text content corresponding to the second interface, the video terminal may further obtain staring information from the text content corresponding to the second interface, so as to analyze actors liked by the user, for example, actor information after the text of "actor" may be used as the staring information.
As an exemplary scenario, assuming that the second preset position is an upper left position and the third preset position is an upper middle position, as shown in fig. 3B, a text content of "dream partner 101 minutes long" is displayed at the upper middle position of the second interface, wherein the font of "dream partner" is larger than the font of "101 minutes long", and text contents of "year", "genre", "director", "actor" and the like are included at the middle position. Therefore, the video terminal may determine that there is no text content at the second preset position of the video detail page and there is text content at the third preset position, so that the text content "dream partner" with the largest font may be selected from the text contents at the third preset position and determined as the name of the video being played.
In this embodiment, the video terminal may obtain the text content located at the second preset position or the third preset position from the second interface, select the text content with the preset font size from the text content, and determine the text content with the preset font size as the name of the video currently being played by the currently focused application, so that the video terminal may accurately obtain the name of the video currently being played from the second interface according to the second preset position or the third preset position, and may further accurately collect and analyze the name of the video played by the video terminal.
Corresponding to the embodiment of the method for acquiring the video title, the application also provides an embodiment of a device for acquiring the video title.
The embodiment of the device for acquiring the video name can be applied to a video terminal. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. The software implementation is taken as an example, and is formed by reading corresponding computer program instructions in the nonvolatile memory into the memory for operation through the processor of the device where the software implementation is located as a logical means. In terms of hardware, as shown in fig. 4, a hardware structure diagram of a video terminal according to an exemplary embodiment is shown in this application, except for the processor, the memory, the network interface, and the nonvolatile memory shown in fig. 4, a device where the apparatus in the embodiment is located may also include other hardware according to an actual function of the device, which is not described again.
Fig. 5 is a block diagram of an embodiment of an apparatus for acquiring a video title according to an exemplary embodiment of the present application, where the embodiment is applied to a video terminal, and the apparatus includes: a first determining unit 51, an obtaining unit 52, a second determining unit 53.
A first determining unit 51, configured to determine, when a play-start message of the player is received, a currently focused application, and determine a first interface currently displayed by the application;
an obtaining unit 52, configured to obtain text attribute information corresponding to the first interface;
the second determining unit 53 is configured to determine, according to the text attribute information corresponding to the first interface, a video name that is being played by the application.
In an alternative implementation, the apparatus further comprises (not shown in fig. 5):
the acquisition and recording unit is used for acquiring text attribute information contained in a control in an interface to be displayed in the process of drawing the interface, and determining the text attribute information as text attribute information corresponding to the interface; and recording the text attribute information corresponding to the interface.
In another optional implementation manner, the text attribute information corresponding to the interface includes text content and a position of the text content, and the second determining unit 53 includes:
the first judging subunit is configured to judge whether a first preset position exists in positions of the text content corresponding to the first interface;
and the obtaining subunit is configured to, when the determination result indicates that a first preset position exists, obtain the text content located at the first preset position, and determine the text content as the name of the video being played by the application.
In another alternative implementation, the apparatus further comprises (not shown in fig. 5):
a third determining unit, configured to determine, after the determining subunit determines whether a first preset position exists in the positions of the text content corresponding to the first interface, a second interface displayed before the video terminal is switched to the first interface according to interface switching record information when the determining result indicates that the first preset position does not exist;
the judging unit is used for judging whether the second interface belongs to the application or not;
and the obtaining and determining unit is used for obtaining the text attribute information corresponding to the second interface and determining the video name played by the application according to the text attribute information corresponding to the second interface when the judgment result is yes.
In another optional implementation manner, the determining unit is specifically configured to obtain an interface overlay table of the application; wherein, the interface overlay records the displayed interface of the application; judging whether the second interface exists in the interface layer stack table or not; if the second interface exists, determining that the second interface belongs to the application; and if the second interface does not exist, determining that the second interface does not belong to the application.
In another optional implementation manner, the text attribute information corresponding to the interface further includes a font size of the text content, and the obtaining and determining unit includes:
the second judging subunit is configured to judge whether a second preset position exists in the position of the text content corresponding to the second interface;
the first determining subunit is configured to, when the determination result indicates that a second preset position exists, obtain text content located at the second preset position, select text content with a preset font size from the text content, and determine the text content with the preset font size as a name of a video being played by the application;
the third judging subunit is configured to, when the judgment result indicates that the second preset position does not exist, judge whether a third preset position exists in the positions of the text content corresponding to the second interface;
and the second determining subunit is configured to, when the determination result indicates that a third preset position exists, obtain text content located at the third preset position, select text content with a preset font size from the text content, and determine the text content with the preset font size as the name of the video being played by the application.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
In this embodiment, when receiving a start message from a player, a video terminal first determines a currently focused application and a first interface currently displayed by the application, then obtains text attribute information corresponding to the first interface, and determines a video name being played by the application according to the text attribute information corresponding to the first interface. Based on the implementation manner, when the video terminal starts to play the program of the third-party video application, the first interface currently displayed by the application is determined, and the video name being played by the application is determined according to the text attribute information corresponding to the first interface, so that for the third-party video application, the problem that the name of the currently played video cannot be obtained can be solved.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.
Claims (8)
1. A method for acquiring a video name is characterized by comprising the following steps:
when a play starting message of a player is received, determining a currently focused application and determining a first interface currently displayed by the application;
in the process of drawing the first interface, acquiring text attribute information contained in a control in the first interface, and determining the text attribute information as text attribute information corresponding to the first interface;
determining the video name played by the application according to the text attribute information corresponding to the first interface;
the text attribute information corresponding to the interface includes text content and a position of the text content, and determining the video name being played by the application according to the text attribute information corresponding to the first interface includes:
judging whether a first preset position exists in the positions of the text content corresponding to the first interface;
if the first preset position exists, acquiring text content located at the first preset position, and determining the text content as a video name being played by the application.
2. The method according to claim 1, wherein after determining whether a first preset position exists in the positions of the text content corresponding to the first interface, the method further comprises:
if the first preset position does not exist, determining a second interface displayed by the video terminal before the video terminal is switched to the first interface according to the interface switching record information;
judging whether the second interface belongs to the application;
if so, acquiring text attribute information corresponding to the second interface, and determining the video name played by the application according to the text attribute information corresponding to the second interface.
3. The method of claim 2, wherein determining whether the second interface belongs to the application comprises:
acquiring an interface layer overlay table of the application; wherein, the interface overlay records the displayed interface of the application;
judging whether the second interface exists in the interface layer stack table or not;
if the second interface exists, determining that the second interface belongs to the application;
and if the second interface does not exist, determining that the second interface does not belong to the application.
4. The method according to claim 2, wherein the text attribute information corresponding to the interface further includes a font size of the text content, and the determining the video name being played by the application according to the text attribute information corresponding to the second interface includes:
judging whether a second preset position exists in the positions of the text content corresponding to the second interface;
if the second preset position exists, acquiring text contents located at the second preset position, selecting text contents with preset font sizes from the text contents, and determining the text contents with the preset font sizes as the video name being played by the application;
if the second preset position does not exist, judging whether a third preset position exists in the positions of the text content corresponding to the second interface or not;
and if the third preset position exists, acquiring the text content positioned at the third preset position, selecting the text content with the preset font size from the text content, and determining the text content with the preset font size as the name of the video being played by the application.
5. An apparatus for obtaining a video name, the apparatus comprising:
the first determining unit is used for determining a currently focused application and determining a first interface currently displayed by the application when a play-starting message of the player is received;
the acquiring unit is used for acquiring text attribute information contained in a control in the first interface in the process of drawing the first interface and determining the text attribute information as text attribute information corresponding to the first interface;
the second determining unit is used for determining the video name played by the application according to the text attribute information corresponding to the first interface;
the text attribute information corresponding to the interface includes text content and a position of the text content, and the second determining unit includes:
the first judging subunit is configured to judge whether a first preset position exists in positions of the text content corresponding to the first interface;
and the obtaining subunit is configured to, when the determination result indicates that a first preset position exists, obtain the text content located at the first preset position, and determine the text content as the name of the video being played by the application.
6. The apparatus of claim 5, further comprising:
a third determining unit, configured to determine, after the first determining subunit determines whether a first preset position exists in the positions of the text content corresponding to the first interface, a second interface displayed before the video terminal is switched to the first interface according to the interface switching recording information when the first preset position does not exist in the determination result;
the judging unit is used for judging whether the second interface belongs to the application or not;
and the obtaining and determining unit is used for obtaining the text attribute information corresponding to the second interface and determining the video name played by the application according to the text attribute information corresponding to the second interface when the judgment result is yes.
7. The apparatus according to claim 6, wherein the determining unit is specifically configured to obtain an interface overlay table of the application; wherein, the interface overlay records the displayed interface of the application; judging whether the second interface exists in the interface layer stack table or not; if the second interface exists, determining that the second interface belongs to the application; and if the second interface does not exist, determining that the second interface does not belong to the application.
8. The apparatus according to claim 6, wherein the text attribute information corresponding to the interface further includes a font size of the text content, and the obtaining and determining unit includes:
the second judging subunit is configured to judge whether a second preset position exists in the position of the text content corresponding to the second interface;
the first determining subunit is configured to, when the determination result indicates that a second preset position exists, obtain text content located at the second preset position, select text content with a preset font size from the text content, and determine the text content with the preset font size as a name of a video being played by the application;
the third judging subunit is configured to, when the judgment result indicates that the second preset position does not exist, judge whether a third preset position exists in the positions of the text content corresponding to the second interface;
and the second determining subunit is configured to, when the determination result indicates that a third preset position exists, obtain text content located at the third preset position, select text content with a preset font size from the text content, and determine the text content with the preset font size as the name of the video being played by the application.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610943551.0A CN106507183B (en) | 2016-11-01 | 2016-11-01 | Method and device for acquiring video name |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610943551.0A CN106507183B (en) | 2016-11-01 | 2016-11-01 | Method and device for acquiring video name |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106507183A CN106507183A (en) | 2017-03-15 |
CN106507183B true CN106507183B (en) | 2020-04-07 |
Family
ID=58321051
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610943551.0A Active CN106507183B (en) | 2016-11-01 | 2016-11-01 | Method and device for acquiring video name |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106507183B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110168566B (en) * | 2017-11-28 | 2021-12-14 | 华为技术有限公司 | Method and terminal for recognizing screenshot characters |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1901558A1 (en) * | 2005-05-31 | 2008-03-19 | Sharp Kabushiki Kaisha | Multimedia content bidirectional service system |
CN102223581B (en) * | 2011-06-28 | 2013-06-12 | 宇龙计算机通信科技(深圳)有限公司 | Video program searching method and video playing terminal |
CN103647988A (en) * | 2013-11-15 | 2014-03-19 | 乐视致新电子科技(天津)有限公司 | Signal source program guiding method and apparatus for smart television |
CN104427362A (en) * | 2013-08-22 | 2015-03-18 | 乐金电子(中国)研究开发中心有限公司 | Digital television and searching method for external input channels thereof |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103647989A (en) * | 2013-11-15 | 2014-03-19 | 乐视致新电子科技(天津)有限公司 | Program recommending method and apparatus for smart television |
-
2016
- 2016-11-01 CN CN201610943551.0A patent/CN106507183B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1901558A1 (en) * | 2005-05-31 | 2008-03-19 | Sharp Kabushiki Kaisha | Multimedia content bidirectional service system |
CN102223581B (en) * | 2011-06-28 | 2013-06-12 | 宇龙计算机通信科技(深圳)有限公司 | Video program searching method and video playing terminal |
CN104427362A (en) * | 2013-08-22 | 2015-03-18 | 乐金电子(中国)研究开发中心有限公司 | Digital television and searching method for external input channels thereof |
CN103647988A (en) * | 2013-11-15 | 2014-03-19 | 乐视致新电子科技(天津)有限公司 | Signal source program guiding method and apparatus for smart television |
Also Published As
Publication number | Publication date |
---|---|
CN106507183A (en) | 2017-03-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102053821B1 (en) | Apparatus and method for receiving boradcast stream | |
US9378286B2 (en) | Implicit user interest marks in media content | |
US20130124551A1 (en) | Obtaining keywords for searching | |
JP5135024B2 (en) | Apparatus, method, and program for notifying content scene appearance | |
CN110663079A (en) | Method and system for correcting input generated using automatic speech recognition based on speech | |
US20130326350A1 (en) | Methods and Systems for Facilitating User Refinement of a Media Content Listing | |
KR101971088B1 (en) | Method of selecting versions of a document from among a plurality of versions received following a search, and associated receiver | |
CN103686352A (en) | Smart television media player and subtitle processing method thereof, and smart television | |
JP5079817B2 (en) | Method for creating a new summary for an audiovisual document that already contains a summary and report and receiver using the method | |
US20170171605A1 (en) | Method and Electronic Device for Switching Live Broadcast to On-Demand Unicast | |
US10341710B2 (en) | Program recording method and device, and set top box | |
CN106792172A (en) | A kind of method of internet television personalized recommendation video | |
CN104125488A (en) | Playing method and device of program | |
KR102505973B1 (en) | Image processing apparatus, control method thereof and computer readable medium having computer program recorded therefor | |
CN106331891B (en) | A kind of information interacting method and electronic equipment | |
CN104581224A (en) | Play content switching method and device and terminal | |
CN105791953B (en) | Control method for playing back and device | |
CN102256179A (en) | Method and system for displaying program information of television terminal and television terminal | |
CN106507183B (en) | Method and device for acquiring video name | |
EP3151549A1 (en) | A digital video recorder and a method for dynamic management of advertising content on a digital video recorder | |
US20150347579A1 (en) | Media file marking method and apparatus | |
EP4102845A1 (en) | Two way control of a set top box using optical character recognition | |
CN105704509A (en) | Processing method and system in played program | |
CN107534785B (en) | Method for setting the level of sharpness of an image of a multimedia program | |
CN108966007B (en) | Method and device for distinguishing video scenes under HDMI |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: 266555, No. 218, Bay Road, Qingdao economic and Technological Development Zone, Shandong Patentee after: Hisense Visual Technology Co., Ltd. Address before: 266555, No. 218, Bay Road, Qingdao economic and Technological Development Zone, Shandong Patentee before: QINGDAO HISENSE ELECTRONICS Co.,Ltd. |