Disclosure of Invention
In view of this, embodiments of the present application provide a method and an apparatus for controlling an HbbTV application, and an HbbTV terminal, so as to control the HbbTV application to self-start operation.
In a first aspect, an embodiment of the present application provides a HbbTV application control method, where the method includes:
after determining that a mixed broadcast broadband television HbbTV application exists in a current channel, detecting application starting related parameters of the channel;
determining the switching action indication information of the HbbTV application of the current channel according to the preset corresponding relation between the application starting related parameter and the switching action indication information of the HbbTV application;
and when the determined switch action indication information indicates that the HbbTV application is started, loading the HbbTV application of the current channel.
According to the method, after the HbbTV application exists in the current channel, the application starting related parameter of the channel is detected, the switching action indication information of the HbbTV application of the current channel is determined according to the preset corresponding relation between the application starting related parameter and the switching action indication information of the HbbTV application, and the HbbTV application of the current channel is loaded only when the determined switching action indication information indicates that the HbbTV application is started, so that the HbbTV application can be controlled to be started and operated automatically.
In a possible implementation manner, the detecting the application start-related parameter of the channel includes:
detecting a channel switch variable of the channel for controlling whether an HbbTV application of a single channel is activated; or
A local channel restriction list for controlling whether an HbbTV application of at least one channel is started is detected.
In the method, the HbbTV application in the channel is limited to be self-started by setting a channel switch variable or a local channel limit list.
In a possible implementation manner, the determining the switching operation indication information of the HbbTV application of the current channel according to a preset correspondence between the application start related parameter and the switching operation indication information of the HbbTV application includes:
if the value of the channel switching variable is the first value, determining that the switching action indication information of the HbbTV application of the current channel is to indicate to start the HbbTV application; if the value of the channel switching variable is the second value, determining that the switching action indication information of the HbbTV application of the current channel indicates to close the HbbTV application; or
If the local channel restriction list does not include the channel control identification CCID of the current channel, determining that the switching action indication information of the HbbTV application of the current channel indicates to start the HbbTV application; and if the local channel restriction list comprises the CCID of the current channel, determining the switch action indication information of the HbbTV application of the current channel as indicating to close the HbbTV application.
In one possible implementation, before detecting the channel switch variable of the channel or before detecting the local channel restriction list, the method further comprises:
a global switch variable for the channel to control whether the HbbTV application of all channels is activated is detected.
In the method, the HbbTV applications in all channels are limited from self-starting by setting a global switch variable, and in the process, the HbbTV applications in all channels can be limited from self-starting without operating each channel, so that the operation of a user can be facilitated.
In a possible implementation manner, before determining the switching operation indication information of the HbbTV application of the current channel according to a preset correspondence between the application start related parameter and the switching operation indication information of the HbbTV application, the method further includes:
if the value of the global switch variable is a third value, determining that the switch action indication information of the HbbTV application of the current channel indicates to close the HbbTV application; and if the value of the global on-off variable is a fourth value, performing the step of determining the on-off operation instruction information of the HbbTV application of the current channel according to the channel on-off variable, or performing the step of determining the on-off operation instruction information of the HbbTV application of the current channel according to the local channel restriction list.
In a possible implementation, before detecting the local channel restriction list of the channel, the method further includes:
judging whether the channel restriction list downloaded from the cloud end comprises the CCID of the current channel;
if not, deleting the CCID of the current channel in the local channel restriction list; if yes, the CCID of the current channel is saved in the local channel restriction list.
According to the method, the channel restriction list is set in the cloud, and the local channel restriction list and the cloud channel restriction list are synchronized, so that the HbbTV application in the channel is restricted from self-starting.
In one possible implementation, before determining that the HbbTV application exists in the current channel, the method further comprises:
analyzing the code stream of the current channel;
and judging whether the HbbTV application exists in the current channel according to the information carried in the code stream of the current channel.
In one possible implementation, after determining that the HbbTV application of the hybrid broadcast broadband television exists for the current channel and before loading the HbbTV application of the current channel, the method further comprises:
obtaining an application list of a current channel, wherein the application list comprises a download address of at least one HbbTV application.
In a second aspect, an embodiment of the present application further provides an HbbTV application control apparatus, which includes means for executing the HbbTV application control method in the first aspect or any possible implementation manner of the first aspect.
In a third aspect, an embodiment of the present application further provides an HbbTV terminal including the HbbTV application control apparatus provided in any 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.
In the prior art, in the HbbTV application self-starting process of the HbbTV terminal, as long as the HbbTV application exists in the current channel, the corresponding HbbTV application is loaded, and after the HbbTV application is started, the HbbTV application is displayed in one corner of a HbbTV terminal screen or in a full screen, which may cause a part of users to feel a sense of opposition.
Based on the method, the device and the terminal for HbbTV application control are provided.
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
Referring to fig. 1, a HbbTV application control method provided in an embodiment of the present application, which may be applied to a HbbTV terminal, may include the following steps:
s101, detecting application starting related parameters of a current channel after determining that the HbbTV application of the mixed broadcast broadband television exists in the channel;
the application start related parameter may be a global on-off variable, a channel restriction list, and the like, where the global on-off variable is used to control whether the HbbTV application of all channels is started, the channel on-off variable is used to control whether the HbbTV application of a single channel is started, the channel restriction list is used to control whether the HbbTV application of at least one channel is started, and the application start related parameter may be one or multiple, for example, only the channel on-off variable or the channel restriction list may be set, or the global on-off variable may be set while the channel on-off variable or the channel restriction list is set.
The global toggle variable and the channel toggle variable may be set by providing a corresponding global toggle button and a channel toggle button at the HbbTV terminal, and then setting the variables, for example, a toggle button off, a variable value of 0, a toggle button on, a variable value of 1, the global toggle button may be located, for example, in a setting/advanced setting directory of the HbbTV terminal, and the channel toggle button may be located, for example, in a quick setting directory of the HbbTV terminal.
When the Channel restriction list is not empty, it indicates that the Channel restriction list includes a Channel Control ID (CCID) of at least one Channel, where the CCID is used to uniquely identify a Channel, in other words, a Channel corresponds to a unique CCID, and when the Channel restriction list is empty, it indicates that the Channel restriction list does not include any CCID.
S102, determining the switching action indication information of the HbbTV application of the current channel according to the preset corresponding relation between the application starting related parameter and the switching action indication information of the HbbTV application;
the preset corresponding relation between the application starting related parameter and the switching action indication information of the HbbTV application is preset when the HbbTV terminal leaves a factory, and the switching action indication information of the HbbTV application comprises: indicating to turn on the HbbTV application and indicating to turn off the HbbTV application. The correspondence may include: a value of the channel switch variable is a first value (e.g., 1) indicating that the HbbTV application is turned on; a second value (e.g., 0) of the channel switch variable indicates that the HbbTV application is turned off; when the channel restriction list does not include the CCID of the current channel, indicating to start the HbbTV application; when the channel restriction list comprises the CCID of the current channel, indicating to close the HbbTV application; a third value (e.g., 0) of the global switch variable indicates that the HbbTV application is turned off; when the value of the global switch variable is a fourth value (e.g., 1), it indicates that the subsequent steps are performed.
S103, when the determined switch action indication information indicates that the HbbTV application is started, loading the HbbTV application of the current channel.
In a preferred embodiment, before determining that the HbbTV application exists for the current channel, the method further comprises:
analyzing the code stream of the current channel;
and judging whether the HbbTV application exists in the current channel according to the information carried in the code stream of the current channel.
In a preferred embodiment, after determining that the HbbTV application of the hybrid broadcast broadband television exists for the current channel, and before loading the HbbTV application of the current channel, the method further comprises:
obtaining an application list of a current channel, wherein the application list comprises a download address of at least one HbbTV application.
The download address of the HbbTV application may be a download address in a network channel format or a download address in a broadcast channel format.
For the convenience of understanding, the code stream of the channel Das Drste HD, which is commonly used in germany, is analyzed, and the analysis process of the HbbTV application is described with reference to the accompanying drawings.
(1) Analyzing the code stream of the channel Das Drste HD, and as a result of the analysis, as shown in fig. 2, inquiring all component items, if the stream type under any component item is 0x5 and the descriptor _ tag is 0x6F (i.e. information carried in the code stream), it indicates that the HbbTV application exists in the channel;
(2) query elementary _ PID is 0x492(1170), which indicates that Application-related Information exists in a Packet Identifier (PID) labeled 0x492(1170), and then a list (Table) with PID being 1170 is queried from an Application Information Table (AIT), thereby parsing out the HbbTV Application, as shown in the block in fig. 3.
The step of acquiring the application list of the current channel may be performed before the switching operation instruction information of the HbbTV application of the current channel is determined, or may be performed after the switching operation instruction information of the HbbTV application of the current channel is determined, which is not limited in the embodiment of the present application.
In addition, the channel restriction list in the embodiment of the present application may be set locally by a user, for example, a channel restriction list setting interface is provided at the HbbTV terminal, so that the user sets the channel restriction list locally, and the channel restriction list may also be set at a cloud terminal by a manufacturer, for example, a channel restriction list setting interface is provided at an operator terminal, so that the manufacturer sets the channel restriction list at the cloud terminal.
If the channel restriction list is set by the manufacturer in the cloud, before detecting the local channel restriction list of the channel, the method further includes:
judging whether the channel restriction list downloaded from the cloud end comprises the CCID of the current channel;
if not, deleting the CCID of the current channel in the local channel restriction list; if yes, the CCID of the current channel is saved in the local channel restriction list.
The HbbTV application control flow provided in the embodiment of the present application is slightly different due to different set application start-up related parameters, and the following description will be given by way of example.
The first embodiment is as follows:
referring to fig. 4, the application start-up related parameter includes a channel switch variable, and the HbbTV application control flow provided in an embodiment of the present application includes the following steps:
s201, analyzing a code stream of a current channel;
s202, judging whether HbbTV application exists in the current channel according to information carried in the code stream of the current channel; when it is determined that the HbbTV application exists in the current channel, step S203 is performed; otherwise, go to step S207;
s203, detecting a channel switch variable of the channel;
s204, if the value of the channel switch variable is the first value, determining that the switch operation indication information of the HbbTV application of the current channel indicates to turn on the HbbTV application (i.e., the channel switch is turned on), and executing step S205; if the value of the channel switch variable is the second value, the determined switch operation instruction information of the HbbTV application of the current channel is an instruction to close the HbbTV application (i.e., the channel switch is closed), and step S207 is executed;
s205, acquiring an application list of the current channel;
wherein the application list comprises a download address of the at least one HbbTV application.
S206, loading the HbbTV application of the current channel according to the acquired application list of the current channel;
and S207, not loading the HbbTV application of the current channel.
Example two:
the HbbTV application control flow provided in embodiment two of the present application is similar to the HbbTV application control flow provided in embodiment one of the present application, and the same parts are not described herein again, and only different parts are described below.
Referring to fig. 5, the application start-up related parameter includes a global switch variable and a channel switch variable, and in the HbbTV application control flow provided in the second embodiment of the present application, when it is determined that an HbbTV application exists in a current channel, step S208 is executed instead of step S203, and then step S209 is also executed.
S208, detecting a global on-off variable and a channel on-off variable of the channel;
s209, if the value of the global switch variable is the third value, determining that the switch operation instruction information of the HbbTV application of the current channel indicates to turn off the HbbTV application (i.e., the global switch is turned off), and executing step S207; if the value of the global switch variable is the fourth value (i.e., the global switch is turned on), step S204 is performed.
Example three:
the HbbTV application control flow provided by the third embodiment of the present application is similar to the HbbTV application control flow provided by the first embodiment of the present application, and the same parts are not described herein again, and only different parts are described below.
Referring to fig. 6, the application start-up related parameters include a channel restriction list, and in the HbbTV application control flow provided in the third embodiment of the present application, when it is determined that the HbbTV application exists in the current channel, step S210 is performed instead of step S203, and then step S211 is also performed.
S210, detecting a local channel restriction list;
s211, if the local channel restriction list does not include the channel control identification CCID of the current channel, determining that the switching action indication information of the HbbTV application of the current channel indicates to start the HbbTV application, and executing the step S205; if the local channel restriction list includes the CCID of the current channel, the switch operation instruction information of the HbbTV application of the determined current channel indicates to close the HbbTV application, and step S207 is executed.
Example four:
the HbbTV application control flow provided in the fourth embodiment of the present application is similar to the HbbTV application control flow provided in the third embodiment of the present application, and the same parts are not described herein again, and only different parts are described below.
Referring to fig. 7, the application start-up related parameters include a channel restriction list, and in the HbbTV application control flow provided in the fourth embodiment of the present application, when it is determined that the HbbTV application exists in the current channel, step S212 is performed instead of step S210, and then step S213 is also performed.
S212, detecting a global switch variable of the channel, and detecting a local channel restriction list;
s213, if the value of the global switch variable is the third value, determining that the switch operation instruction information of the HbbTV application of the current channel indicates to turn off the HbbTV application (i.e., the global switch is turned off), and executing step S207; if the value of the global switch variable is the fourth value (i.e., the global switch is turned on), step S211 is executed.
Referring to fig. 8, based on the same inventive concept, an HbbTV application control apparatus provided in an embodiment of the present application may include: the device comprises a detection module 11, an indication information determination module 12 and a loading module 13.
The detection module 11 is configured to detect an application start related parameter of a current channel after determining that an HbbTV application of a hybrid broadcast broadband television exists in the channel;
an indication information determining module 12, configured to determine, according to a preset correspondence between the application start related parameter and the switching action indication information of the HbbTV application, switching action indication information of the HbbTV application of the current channel;
and a loading module 13, configured to load the HbbTV application of the current channel when the determined switch action indication information indicates to turn on the HbbTV application.
In a preferred embodiment, as shown in fig. 9, the detection module 11 may include: a first detection unit 111.
A first detecting unit 111 for detecting a channel switch variable of the channel for controlling whether the HbbTV application of the single channel is activated.
The indication information determination module 12 may include: the first indication information determination unit 121.
A first indication information determining unit 121, configured to determine that the switching operation indication information of the HbbTV application of the current channel indicates to start the HbbTV application if the value of the channel switching variable is the first value; and if the value of the channel switch variable is the second value, the switch action instruction information of the HbbTV application of the current channel is determined as an instruction for closing the HbbTV application.
In a preferred embodiment, as shown in fig. 9, the apparatus further comprises: and a code stream analysis module 14.
A code stream analysis module 14, configured to analyze a code stream of the current channel; and judging whether the HbbTV application exists in the current channel according to the information carried in the code stream of the current channel.
In a preferred embodiment, after determining that the HbbTV application of the hybrid broadcast broadband television exists in the current channel and before loading the HbbTV application of the current channel, the codestream analysis module 14 may be further configured to:
obtaining an application list of a current channel, wherein the application list comprises a download address of at least one HbbTV application.
In a preferred embodiment, as shown in fig. 10, the detection module 11 may include: a first detection unit 111 and a third detection unit 113.
A third detecting unit 113 for detecting a global switching variable of the channel for controlling whether the HbbTV application of all channels is activated before the first detecting subunit 111 detects the channel switching variable of the channel.
The indication information determination module 12 may include: a first indication information determination unit 121 and a third indication information determination unit 123.
A third instruction information determination unit 123, configured to determine that the switching operation instruction information of the HbbTV application of the current channel is an instruction to turn off the HbbTV application if the value of the global switching variable detected by the third detection unit 113 is a third value; if the value of the global switch variable detected by the third detecting unit 113 is the fourth value, the first instruction information determining unit 121 performs an operation of determining the switch operation instruction information of the HbbTV application of the current channel according to the channel switch variable.
In a preferred embodiment, as shown in fig. 11, the detection module 11 may include: a second detection unit 112.
A second detecting unit 112 for detecting a local channel restriction list for controlling whether the HbbTV application of at least one channel is started.
The indication information determination module 12 may include: the second indication information determination unit 122.
A second indication information determining unit 122, configured to determine that the HbbTV application of the current channel is instructed to start the HbbTV application if the local channel restriction list does not include the channel control identity CCID of the current channel; and if the local channel restriction list comprises the CCID of the current channel, determining the switch action indication information of the HbbTV application of the current channel as indicating to close the HbbTV application.
In a preferred embodiment, as shown in fig. 12, the apparatus may further include:
the judging module 15 is configured to judge whether the channel restriction list downloaded from the cloud includes the CCID of the current channel;
a channel restriction list modification module 16, configured to delete the CCID of the current channel in the local channel restriction list if the determination result of the determination module 15 is negative; and if the judgment result of the judging module 15 is yes, storing the CCID of the current channel in the local channel restriction list.
In a preferred embodiment, as shown in fig. 13, the detection module 11 may include: a second detection unit 112 and a third detection unit 113.
A third detecting unit 113 for detecting a global switching variable of the channel for controlling whether the HbbTV application of all channels is activated before the second detecting unit 112 detects the channel switching variable of the channel.
The indication information determination module 12 may include: a second indication information determination unit 122 and a third indication information determination unit 123.
A third instruction information determination unit 123, configured to determine that the switching operation instruction information of the HbbTV application of the current channel is an instruction to turn off the HbbTV application if the value of the global switching variable detected by the third detection unit 113 is a third value; if the value of the global switch variable detected by the third detecting unit 113 is the fourth value, the second indication information determining unit 122 performs an operation of determining the switch operation indication information of the HbbTV application of the current channel according to the channel switch variable.
Based on the same inventive concept, the HbbTV terminal provided in the embodiments of the present application includes the HbbTV application control apparatus provided in any embodiment of the present application.
It should be noted that the embodiments of the HbbTV application control apparatus of the present application can be applied to an HbbTV 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 as a device in a logical sense, a processor of the intelligent terminal where the device is located reads corresponding computer program instructions in the nonvolatile memory into the memory for operation. In terms of hardware, as shown in fig. 14, a hardware structure diagram of the HbbTV terminal where the HbbTV application control device of the present application is located is shown, except for the processor 71, the memory 72, the network interface 73, the nonvolatile memory 74, and the internal bus 75 shown in fig. 14, the HbbTV terminal where the device is located in the embodiment may also include other hardware according to the actual function of the HbbTV terminal, which is not described again.
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.
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.