CN115955586A - Plug-in method, device and related equipment - Google Patents

Plug-in method, device and related equipment Download PDF

Info

Publication number
CN115955586A
CN115955586A CN202211674642.0A CN202211674642A CN115955586A CN 115955586 A CN115955586 A CN 115955586A CN 202211674642 A CN202211674642 A CN 202211674642A CN 115955586 A CN115955586 A CN 115955586A
Authority
CN
China
Prior art keywords
plug
authentication
host app
service
upgrading
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
CN202211674642.0A
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.)
Hunan Happly Sunshine Interactive Entertainment Media Co Ltd
Original Assignee
Hunan Happly Sunshine Interactive Entertainment Media 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 Hunan Happly Sunshine Interactive Entertainment Media Co Ltd filed Critical Hunan Happly Sunshine Interactive Entertainment Media Co Ltd
Priority to CN202211674642.0A priority Critical patent/CN115955586A/en
Publication of CN115955586A publication Critical patent/CN115955586A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention provides a plug-in method, a plug-in device and related equipment, wherein the method comprises the following steps: when the IPTV soft terminal detects that the host APP is in a login state, establishing communication between the IPTV soft terminal and the host APP; after a host APP is started in advance, starting a zero configuration APK of an IPTV service; starting up authentication is carried out on the IPTV service based on the zero configuration APK; if the authentication is passed, pulling up a flow plug-in of the IPTV service and a plug-in of an EPG display playing system; and if the authentication fails, feeding back authentication failure information to the host APP, so that the host APP performs authentication processing based on the authentication failure information. In the scheme, after the host APP is started in advance, the IPTV service is subjected to startup authentication, and after the authentication is passed, the flow plug-in of the IPTV service and the plug-in of the EPG display playing system are pulled up, so that the hardware cost is reduced, the APP loading speed is increased, and the interactive experience is improved.

Description

Plug-in method, device and related equipment
Technical Field
The invention relates to the technical field of computers, in particular to a plug-in method, a plug-in device and related equipment.
Background
In the prior art, an existing IPTV (interactive network television) service product depends on a set top box device, but due to aging of the set top box device and backward low end of the set top box device, the User experience of the IPTV service product is poor, the product failure rate is high, the hardware cost of the set top box device is high, the User configuration is troublesome, the APP (application program) experience resolution is low, the image quality is poor, the video playing is stuck, and the UI (User interface design) interaction is stuck.
Disclosure of Invention
In view of this, embodiments of the present invention provide a plug-in method, apparatus, and related device, so as to achieve the purposes of reducing hardware cost, increasing APP loading speed, and achieving interactive experience.
In order to achieve the above purpose, the embodiments of the present invention provide the following technical solutions:
the first aspect of the embodiment of the invention discloses a plug-in method, which comprises the following steps:
when an IPTV soft terminal of an interactive network television detects that a host APP is in a login state, establishing communication between the IPTV soft terminal and the host APP;
after the host APP is started in advance, starting a zero configuration android installation package (APK) of the IPTV service;
based on the zero configuration APK, carrying out startup authentication on the IPTV service;
if the authentication is passed, pulling up the flow plug-in of the IPTV service and the plug-in of the EPG display playing system;
and if the authentication fails, feeding authentication failure information back to the host APP, so that the host APP carries out authentication processing based on the authentication failure information.
Optionally, after the IPTV soft terminal detects that the host APP is in the login state and before establishing communication between the IPTV soft terminal and the host APP, the method further includes:
detecting an upgrade interface of the host APP;
judging whether the host APP needs self-upgrading or not according to the data field returned by the upgrading interface;
if yes, self-upgrading the host APP;
and if not, upgrading the host APP according to the installed upgrading plug-in.
Optionally, the performing, on the basis of the zero-configuration APK, the power-on authentication on the IPTV service includes:
acquiring the participation condition of the IPTV service based on the zero configuration APK, wherein the participation condition comprises a device number, a version number and network information;
judging whether the installed authentication plug-in is required to be started or not based on the participation condition;
if yes, starting the installed authentication plug-in;
acquiring a service account and a password input by a user through the host APP;
matching the service account and the password with a starting-up authentication account and a password corresponding to the IPTV service in the installed authentication plugin;
if the service account and the password are consistent with the starting authentication account and the password corresponding to the IPTV service in the installed authentication plugin, determining that the authentication is passed;
and if the service account and the password are inconsistent with the starting-up authentication account and the password corresponding to the IPTV service in the installed authentication plugin, determining that the authentication fails.
Optionally, if the authentication passes, pulling up the process plug-in of the IPTV service and the plug-in of the EPG display playing system includes:
if the authentication is passed, pulling up the mango plugin, wherein the mango plugin is a plugin for bearing all EPG service playing;
judging whether other service plug-ins need to be pulled up or not according to the product requirements and the service forms of the IPTV soft terminal;
if yes, determining the service plug-in needing to be pulled up, and feeding back a request needing to start the service plug-in to the host APP, so that the host APP processes the service plug-in based on the request.
Optionally, the determining, according to the data field returned by the upgrade interface, whether the host APP needs to be self-upgraded includes:
if the state value of the character string field returned by the upgrading interface is 1, determining that the host APP does not need self-upgrading;
if the state value of the character string field returned by the upgrading interface is 0, determining that the host APP needs to be upgraded;
and if the value of the content field returned by the upgrading interface is null, determining that the host APP does not need self-upgrading.
Optionally, if not, upgrading the host APP according to the installed upgrade plug-in, including:
if not, determining the installed upgrade plug-in, and starting the installed upgrade plug-in;
pulling up the business service of the installed upgrading plug-in based on the installed upgrading plug-in;
judging whether to upgrade a pre-constructed mango plug-in or the installed upgrade plug-in according to the business service;
if yes, upgrading the host APP or downloading a service plug-in needing to be upgraded in advance;
and if not, establishing communication between the IPTV soft terminal and the host APP.
The second aspect of the embodiment of the present invention discloses a plug-in device, which includes:
the system comprises an establishing module, a judging module and a sending module, wherein the establishing module is used for establishing communication between an IPTV soft terminal and a host APP after the IPTV soft terminal detects that the host APP is in a login state;
the starting module is used for starting the zero configuration android installation package APK of the IPTV service after the host APP is started in advance;
the authentication module is used for carrying out starting authentication on the IPTV service based on the zero configuration APK;
the plug-in module is used for pulling up the flow plug-in of the IPTV service and the plug-in of the EPG display playing system if the authentication is passed;
and the feedback module is used for feeding back authentication failure information to the host APP if the authentication fails, so that the host APP performs authentication processing based on the authentication failure information.
Optionally, the method further includes:
the detection module is used for detecting the upgrading interface of the host APP;
the judging module is used for judging whether the host APP needs self-upgrading according to the data field returned by the upgrading interface, if so, the self-upgrading module is executed, and if not, the upgrading module is executed;
a self-upgrade module for self-upgrading the host APP;
and the upgrading module is used for upgrading the host APP according to the installed upgrading plug-in.
A third aspect of the embodiments of the present invention discloses an electronic device, including a processor;
the memory for storing a computer program;
the processor is configured to implement the plug-in method according to any one of the first aspect of the embodiments of the present invention when the processor calls and executes the computer program stored in the memory.
A fourth aspect of the present invention discloses a computer storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are loaded and executed by a processor, the method implements the plug-in method according to any one of the first aspect of the present invention.
Based on the method, the device and the related equipment for plug-in, provided by the embodiment of the invention, the method comprises the following steps: when an IPTV soft terminal of an interactive network television detects that a host APP is in a login state, establishing communication between the IPTV soft terminal and the host APP; after the host APP is started in advance, starting a zero configuration android installation package (APK) of the IPTV service; based on the zero configuration APK, carrying out starting authentication on the IPTV service; if the authentication is passed, pulling up the flow plug-in of the IPTV service and the plug-in of the EPG display playing system; and if the authentication fails, feeding back authentication failure information to the host APP, so that the host APP performs authentication processing based on the authentication failure information. In the scheme, after the host APP is started in advance, the IPTV service is subjected to startup authentication, and after the authentication is passed, the flow plug-in of the IPTV service and the plug-in of the EPG display playing system are pulled up, so that the hardware cost is reduced, the APP loading speed is increased, and the interactive experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic flowchart of a plug-in method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a process of performing power-on authentication on an IPTV service according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a flow plug-in for pulling up an IPTV service according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of another plug-in method according to an embodiment of the present invention;
fig. 5 is a schematic flow chart illustrating a process of determining whether a host APP needs to be self-upgraded according to an embodiment of the present invention;
fig. 6 is a schematic flowchart of upgrading a host APP according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a plug-in device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In this application, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein.
As known from the background art, the user experience of the existing IPTV service product is poor, the product failure rate is high, the hardware cost of the set-top box equipment is high, the user configuration is troublesome, the APP experience resolution is low, the image quality is poor, the video playing is blocked, and the UI interaction is blocked.
Therefore, the embodiment of the invention provides a plug-in method, a device and related equipment, in the scheme, after a host APP is started in advance, starting authentication is carried out on an IPTV service, and after the authentication is passed, a process plug-in of the IPTV service and a plug-in of an EPG display playing system are pulled up, so that the hardware cost is reduced, the APP loading speed is increased, and the interactive experience is improved.
First, as shown in fig. 1, a flow diagram of a plug-in method according to an embodiment of the present invention is shown.
It should be noted that the plug-in method is applied to an EPG display playing system, and the EPG display playing system is a plug-in EPG display playing system based on an IPTV soft terminal.
The plug-in method mainly comprises the following steps:
step S101: and when the IPTV soft terminal of the interactive network television detects that the host APP is in a login state, establishing communication between the IPTV soft terminal and the host APP.
In step S101, the host APP is an application APP developed by the mango based on the plug-in framework, and has host-related interface service capability and plug-in management capability.
In the process of implementing step S101 specifically, first, a soft terminal environment is established based on a computer network networking technology, that is, it is ensured that the internet and an ITV (interactive television) intranet are in the same networking environment, that is, based on a VLAN networking technology, it is ensured that an optical modem route places an ITV private network and an external network under the same network segment, specifically, a user visiting different networks in a home needs to forward different networks through an external switch or a router, the soft terminal can configure an interface and a network segment of the optical modem through the VLAN technology, so that dual-network fusion is implemented, that is, a WIFI signal or a wired network signal finally transmitted by the optical modem can both visit a public network and a intranet.
In practical application, after entering the IPTV soft terminal, at this time, the host APP is in the login home page, the IPTV soft terminal detects whether the host APP is currently in the login state, and after the IPTV soft terminal detects that the host APP is in the login state, communication between the IPTV soft terminal and the host APP is established.
It should be noted that, based on the plug-in framework, the host integrates a boot authentication (authentication, etc.) plug-in of the IPTV, an upgrade plug-in, an EPG (electronic program guide) display playing system plug-in, and the like.
The plug-in EPG display playing system is established based on an Android plug-in technology framework (Repulgin), an Android application technology, a streaming media technology, a video coding and decoding technology and the like.
It should be noted that, after the plug-in EPG display playing system is on line, the corresponding plug-in can be updated in real time, and in the normal use process of the EPG display playing system, the dynamic downloading and updating of the plug-in can be realized.
The EPG display playing system can be an independent plug-in or an independent APK, and is convenient to integrate and operate independently.
It should be noted that the soft terminal does not need to rely on external devices such as a set top box, and can be directly installed in an android smart television, and relevant service functions of the set top box are integrated into a host APP.
It should be noted that, communication and data transmission are realized between the host and each plug-in through messenger service (message implementation class), and different service scenarios are specifically processed according to differences of data.
Step S102: after the host APP is started in advance, a zero configuration APK (android Package) of the IPTV service is started.
In step S102, the zero configuration belongs to the service APK, and mainly processes related services of the ITV service startup, and the APK in the soft terminal is changed into a plug-in, and needs to be modified into a plug-in for normal use.
In the process of implementing step S102 specifically, after the host APP is started in advance, that is, after the host APP is started up and self-started or clicked by the user, the relevant authentication of the IPTV service is performed, and first, the zero-configuration APK of the IPTV service needs to be started, which is convenient for subsequent processing of the relevant service of the ITV service start-up.
Step S103: and performing starting authentication on the IPTV service based on the zero configuration APK.
In step S103, the IPTV service has a dual authentication mechanism, which specifically includes: and jointly creating the boot authentication and the payment 3A boot authentication of the mango.
Before the co-creation startup authentication, the IPTV service needs to acquire some entry conditions, and the co-creation authentication can be performed only when the entry conditions are satisfied, which is described in detail below.
Optionally, step S103 is executed to perform a process of performing power-on authentication on the IPTV service based on the zero configuration APK, as shown in fig. 2, which is a schematic flow diagram for performing power-on authentication on the IPTV service provided in the embodiment of the present invention, and mainly includes the following steps:
step S201: and acquiring the participation condition of the IPTV service based on the zero configuration APK.
In step S201, the entry condition includes, but is not limited to, a device number, a version number, and network information.
In the process of implementing step S201 specifically, based on the zero-configuration APK, before performing the power-on authentication on the IPTV service, some access conditions of the IPTV service need to be acquired, and access data such as a related device number, a version number, and network information are specifically acquired.
Step S202: and judging whether the installed authentication plug-in is required to be started or not based on the entry condition, if so, executing the step S203, and if not, ending the operation.
It should be noted that if the acquired entry parameters satisfy the entry conditions, and it is determined that the installed authentication plugin needs to be started, step S203 is executed.
And if the acquired entry parameters do not meet the entry conditions, determining that the installed authentication plug-in is not required to be started, and directly ending the operation.
Step S203: the installed authentication plug-in is started.
In the process of implementing step S203 specifically, in the case where it is determined that the entry condition is satisfied, that is, in the case where it is determined that the installed authentication plug-in needs to be started based on the entry condition, the installed authentication plug-in is started.
Step S204: and acquiring a service account and a password input by a user through the host APP.
In the process of the specific implementation step S204, the user inputs the service account and the password of the IPTV service through the host APP, when the service account input by the user is wrong, the host APP prompts that the service account does not exist, when the password input by the user is wrong, the host APP prompts that the password is wrong and please re-input, and after the user correctly inputs the service account and the password through the host APP, the service account and the password input by the user through the host APP are obtained.
Step S205: and matching the service account and the password with the startup authentication account and the password corresponding to the IPTV service in the installed authentication plugin.
Step S206: and judging whether the service account number and the password are consistent with the startup authentication account number and the password corresponding to the IPTV service in the installed authentication plugin, if so, executing step S207, and if not, executing step S208.
Step S207: and determining that the authentication is passed.
In the process of implementing step S207 specifically, it is determined that the power-on authentication is passed under the condition that it is determined that the service account and the password are consistent with the power-on authentication account and the password corresponding to the IPTV service in the installed authentication plugin.
Step S208: it is determined that the authentication failed.
In the process of implementing step S208 specifically, it is determined that the power-on authentication fails when it is determined that the service account and the password are not consistent with the power-on authentication account and the password corresponding to the IPTV service in the installed authentication plugin.
Step S104: and judging whether the authentication is passed, if so, executing step S105, and if not, executing step S106.
Step S105: and pulling up a process plug-in of the IPTV service and a plug-in of an EPG display playing system.
In step S105, the flow plug-in of the IPTV service includes, but is not limited to, an upgrade plug-in.
The upgrading plug-in is used for checking the version of the host APP and judging whether the host APP is upgraded or not.
In the process of implementing step S105 specifically, in the case that it is determined that the power-on authentication passes, the process plug-in of the IPTV service and the plug-in of the EPG display playing system are pulled up, specifically, the related process plug-in of the IPTV service is pulled up according to the product requirement and the service form, for example, the upgrade plug-in is pulled up, and then the plug-in of the EPG display playing system is pulled up.
It should be noted that the boot authentication only indicates that the telecommunication boot authentication is satisfied, the final EPG display playing system is a mango plugin, and the payment 3A boot authentication of mango is performed, and the corresponding authentication also needs to be implemented in the mango plugin.
Optionally, the process of pulling up the process plug-in of the IPTV service and the plug-in of the EPG display playing system in step S105 is executed, as shown in fig. 3, which is a schematic flow diagram of the process plug-in of the IPTV service, and the method mainly includes the following steps:
step S301: and pulling up the mango inserting piece.
In step S301, the mango plug-in is a plug-in that carries all the broadcast EPG services.
In the process of implementing step S301 specifically, if it is determined that the boot authentication passes, the mango plugin is pulled up.
It should be noted that after the mango plugin is pulled up, the soft terminal implements plugin, that is, other service modules can be implemented by plugin according to product requirements and service forms, and different plugins implement different functions, such as aggregating plugin apps (capable of playing Tencent and Aiqi art media), and third-party sp plugins implement sp-related services.
Step S302: and judging whether other service plug-ins need to be pulled up or not according to the product requirements and the service forms of the IPTV soft terminal, if so, executing the step S303, and if not, ending the operation.
In the embodiment of the present invention, the other service plug-in may be plug-in B.
In the process of implementing the step S302 specifically, it is determined whether other service plug-ins need to be pulled up according to the product requirements and service forms of the IPTV soft terminal, if so, step S303 is executed, and if not, it is indicated that the current mango plug-in meets the service requirements and the other service plug-ins do not need to be pulled up, the operation is directly ended.
Step S303: and determining the service plug-in which needs to be pulled up, and feeding back a request for starting the service plug-in to the host APP, so that the host APP processes the service plug-in based on the request.
In the process of specifically implementing step S303, in the case that it is determined that other service plug-ins need to be pulled up, the service plug-in that needs to be pulled up is determined, and a request for starting the service plug-in is fed back to the host APP, and when the host APP receives the request for starting the service plug-in, the host APP processes the service plug-in that needs to be started based on the request for starting the service plug-in.
In other words, under the condition that it is determined that other service plug-ins need to be pulled up, it is determined that the service plug-in B needs to be pulled up, and a request for starting the service plug-in B needs to be fed back to the host APP, and when the host APP receives the request for starting the service plug-in B, the service plug-in B is processed based on the request for starting the service plug-in B.
In practical application, a message msg is sent to a host through a pre-bound host service, and then the host messenger service implementation class processes different services according to the content of the sent message and a preset convention.
Step S106: and feeding back authentication failure information to the host APP, so that the host APP performs authentication processing based on the authentication failure information.
In the process of specifically implementing step S106, under the condition that it is determined that the boot authentication fails, the obtained authentication failure information is fed back to the host APP, and the host APP receives the fed back authentication failure information and performs corresponding authentication processing based on the authentication failure information.
Based on the method for realizing plug-in, provided by the embodiment of the invention, when the IPTV soft terminal of the interactive network television detects that the host APP is in the login state, the communication between the IPTV soft terminal and the host APP is established; after a host APP is started in advance, starting a zero configuration android installation package (APK) of an IPTV service; performing starting authentication on the IPTV service based on the zero configuration APK; if the authentication is passed, pulling up a flow plug-in of the IPTV service and a plug-in of an EPG display playing system; and if the authentication fails, feeding back authentication failure information to the host APP, so that the host APP performs authentication processing based on the authentication failure information. In the scheme, after the host APP is started in advance, the IPTV service is subjected to startup authentication, and after the authentication is passed, the flow plug-in of the IPTV service and the plug-in of the EPG display playing system are pulled up, so that the hardware cost is reduced, the APP loading speed is increased, and the interactive experience is improved.
Based on the plug-in method provided by the embodiment of the present invention, as shown in fig. 4, a flow diagram of another plug-in method provided by the embodiment of the present invention is provided, and the plug-in method mainly includes the following steps:
step S401: and when the IPTV soft terminal of the interactive network television detects that the host APP is in the login state, detecting an upgrade interface of the host APP.
In the process of the specific implementation step S401, after entering the IPTV soft terminal, at this time, the host APP is in the login home page, the IPTV soft terminal detects whether the host APP is currently in the login state, and when the IPTV soft terminal detects that the host APP is in the login state, the IPTV soft terminal detects the upgrade interface of the host APP, that is, by sending a network interface request to the host APP, a service interface is requested, the service interface returns a relevant data field, that is, an upgrade interface is requested, and the upgrade interface returns a relevant data field.
It should be noted that the relevant data fields returned by the upgrade interface include, but are not limited to, a character string field and a content field.
Wherein, the character String field is represented as String field, and the content field is represented as data field.
Step S402: and judging whether the host APP needs self-upgrading according to the data field returned by the upgrading interface, if so, executing a step S403, and if not, executing a step S404.
Optionally, step S402 is executed to determine whether the host APP needs to be self-upgraded according to the data field returned by the upgrade interface, as shown in fig. 5, which is a schematic flow diagram for determining whether the host APP needs to be self-upgraded according to an embodiment of the present invention, and the step mainly includes the following steps:
step S501: and judging whether the state value of the character string field returned by the upgrade interface is 1, if so, executing step S502, otherwise, executing step S503.
In the process of implementing step S501 specifically, it is determined whether the status value of the String field returned by the upgrade interface is 1, that is, it is determined whether the state value of the String field is 1, if yes, step S502 is executed, and if no, step S503 is executed.
Step S502: determining that the host APP does not need to be self-upgraded.
In the process of implementing step S502 specifically, under the condition that it is determined that the state value of the String field returned by the upgrade interface is 1, that is, it is determined that the state value of the String field is 1, it is determined that the host APP does not need self-upgrade.
Step S503: and judging whether the state value of the character string field returned by the upgrading interface is 0, if so, executing step S504, and if not, executing step S505.
In the process of implementing step S503 specifically, it is determined whether the status value of the String field returned by the upgrade interface is 0, that is, it is determined whether the state value of the String field is 0, if so, step S504 is executed, and if not, step S505 is executed.
Step S504: and determining that the host APP needs self-upgrading.
In the process of the specific implementation step S504, it is determined that the host APP needs to be self-upgraded when it is determined that the state value of the String field returned by the upgrade interface is 0, that is, the state value of the String field is determined to be 0.
Step S505: and judging whether the numerical value of the content field returned by the upgrade interface is empty, if so, executing the step S502, otherwise, returning to execute the step S501.
In the process of implementing step S505 specifically, it is determined whether the value of the content field returned by the upgrade interface is empty, that is, it is determined whether the data in the data field is empty, if yes, step S502 is executed, and if not, step S501 is executed again.
Step S403: self-boosting host APP.
In the process of implementing step S403 specifically, under the condition that it is determined that the host APP needs to be self-upgraded, the latest host APP is downloaded from the self-upgraded host APP, and the host APP is updated to the latest host APP.
Step S404: and upgrading the host APP according to the installed upgrading plug-in.
In the process of implementing step S404 specifically, under the condition that it is determined that the host APP does not need to be self-upgraded, the host APP is upgraded according to the installed upgrade plug-in.
Optionally, step S404 is executed to update the host APP according to the installed upgrade plug-in, as shown in fig. 6, which is a schematic flow diagram for updating the host APP provided in the embodiment of the present invention, and mainly includes the following steps:
step S601: and determining the installed upgrading plug-in and starting the installed upgrading plug-in.
In the process of the specific implementation step S601, under the condition that it is determined that the host APP does not need self-upgrade, the installed upgrade plug-in is determined, and the installed upgrade plug-in is started.
Step S602: and pulling up the business service of the installed upgrading plug-in based on the installed upgrading plug-in.
It should be noted that, the upgrade plug-in needs to be compatible with the existing ITV service capability, the host APP can directly pull up the service of the built-in plug-in through a method provided by the replugin framework (the telecommunications upgrade plug-in is already built in the host APP), and the related service is pulled up by using the plug service client.
Step S603: and judging whether to upgrade a pre-constructed mango plug-in or an installed upgrade plug-in according to the service, if so, executing step S604, and if not, executing step S405.
In the embodiment of the invention, the mango plug-in is a mango large television plug-in APP.
It should be noted that, upgrading the plug-in requests the server to upgrade the interface, if the upgrade host is configured, it is determined whether to download the plug-in or not according to the interface return result and the plug-in version number versionCode, and the host is updated.
Step S604: and upgrading the host APP or downloading the service plug-ins needing to be upgraded in advance.
In the process of implementing step S604 specifically, under the condition that it is determined to upgrade a pre-constructed mango plug-in or an installed upgrade plug-in, after upgrading the plug-in request server to upgrade the interface, if the interface return result is that the upgrade host APP is configured, the host APP is upgraded, whether the plug-in is downloaded is determined according to the interface return result and the plug-in version versionCode, if so, the service plug-in to be upgraded is downloaded in advance, and the host APP is updated.
Step S405: and establishing communication between the IPTV soft terminal and the host APP.
In the process of implementing step S405 specifically, in the case that it is determined that the pre-constructed mango plugin or the installed upgrade plugin is not upgraded, the communication between the IPTV soft terminal and the host APP is established through messenger service.
Step S406: after a host APP is started in advance, starting a zero configuration android installation package APK of the IPTV service.
Step S407: and performing starting authentication on the IPTV service based on the zero configuration APK.
Step S408: and judging whether the authentication is passed, if so, executing step S409, and if not, executing step S410.
Step S409: and pulling up a process plug-in of the IPTV service and a plug-in of an EPG display playing system.
Step S410: and feeding back authentication failure information to the host APP, so that the host APP performs authentication processing based on the authentication failure information.
It should be noted that the execution principle and procedure of the above steps S406 to S410 are the same as the execution principle and procedure of the steps S102 to S106 disclosed in fig. 1, and it can be referred to that, which is not described herein again.
Based on the plug-in method provided by the embodiment of the invention, the version of the plug-in is checked, so that whether the host APP needs to be updated or not is determined, the hardware cost is reduced, the APP loading speed is increased, and the interaction experience is improved.
Corresponding to the plug-in method shown in fig. 1 in the embodiment of the present invention, an embodiment of the present invention further provides a plug-in apparatus, as shown in fig. 7, where the plug-in apparatus includes: a setup module 701, an initiation module 702, an authentication module 703, a plug-in module 704, and a feedback module 705.
The establishing module 701 is configured to establish communication between the IPTV soft terminal and the host APP when the IPTV soft terminal detects that the host APP is in a login state.
The starting module 702 is configured to start the zero-configuration android installation package APK of the IPTV service after the host APP is started in advance.
The authentication module 703 is configured to perform power-on authentication on the IPTV service based on the zero configuration APK, execute the plug-in module 704 if the authentication passes, and execute the feedback module 705 if the authentication does not pass.
And a plug-in module 704, configured to pull up a process plug-in of the IPTV service and a plug-in of the EPG display playing system.
A feedback module 705, configured to feed back authentication failure information to the host APP, so that the host APP performs authentication processing based on the authentication failure information.
Optionally, based on the authentication module 703 shown in fig. 7, the authentication module 703 includes:
and the first acquisition unit is used for acquiring the participation condition of the IPTV service based on the zero configuration APK.
The entry condition includes a device number, a version number, and network information.
And the judging unit is used for judging whether the installed authentication plug-in is required to be started or not based on the participation condition, and if so, executing the starting unit.
And the starting unit is used for starting the installed authentication plug-in.
And the second acquisition unit is used for acquiring the service account and the password input by the user through the host APP.
And the matching unit is used for matching the service account and the password with the startup authentication account and the password corresponding to the IPTV service in the installed authentication plugin.
And the first determining unit is used for determining that the authentication is passed if the service account and the password are consistent with the starting authentication account and the password corresponding to the IPTV service in the installed authentication plugin.
And the second determining unit is used for determining that the authentication fails if the service account and the password are inconsistent with the startup authentication account and the password corresponding to the IPTV service in the installed authentication plugin.
Optionally, based on the plug-in module 704 shown in fig. 7, the plug-in module 704 is specifically configured to:
pulling up a mango plug-in which is a plug-in for bearing all EPG service playing; judging whether other service plug-ins need to be pulled up or not according to the product requirements and the service forms of the IPTV soft terminal; if yes, determining the service plug-in needing to be pulled up, and feeding back a request needing to start the service plug-in to the host APP, so that the host APP processes the service plug-in based on the request.
It should be noted that, the specific principle and the execution process of each module in the plugin device disclosed in the above embodiment of the present invention are the same as the implementation of the plugin method of the present invention, and reference may be made to the corresponding parts in the plugin method disclosed in the above embodiment of the present invention, which are not described herein again.
Based on the plug-in device provided by the embodiment of the invention, when the IPTV soft terminal of the interactive network television detects that the host APP is in a login state, the communication between the IPTV soft terminal and the host APP is established; after a host APP is started in advance, starting a zero configuration android installation package (APK) of an IPTV service; starting up authentication is carried out on the IPTV service based on the zero configuration APK; if the authentication is passed, pulling up a flow plug-in of the IPTV service and a plug-in of an EPG display playing system; and if the authentication fails, feeding back authentication failure information to the host APP, so that the host APP performs authentication processing based on the authentication failure information. In the scheme, after the host APP is started in advance, the IPTV service is subjected to startup authentication, and after the authentication is passed, the flow plug-in of the IPTV service and the plug-in of the EPG display playing system are pulled up, so that the hardware cost is reduced, the APP loading speed is increased, and the interactive experience is improved.
Optionally, based on the plug-in device shown in fig. 7, in combination with fig. 7, the plug-in device is further provided with a detection module, a judgment module, a self-upgrade module, and an upgrade module.
And the detection module is used for detecting the upgrading interface of the host APP.
And the judging module is used for judging whether the host APP needs self-upgrading according to the data field returned by the upgrading interface, if so, executing the self-upgrading module, and otherwise, executing the upgrading module.
And the self-upgrading module is used for self-upgrading the host APP.
And the upgrading module is used for upgrading the host APP according to the installed upgrading plug-in.
Optionally, based on the determination module shown in fig. 7, the determination module is specifically configured to:
if the state value of the character string field returned by the upgrading interface is 1, determining that the host APP does not need self-upgrading; if the state value of the character string field returned by the upgrading interface is 0, determining that the host APP needs to be upgraded; and if the numerical value of the content field returned by the upgrading interface is null, determining that the host APP does not need self-upgrading.
Optionally, based on the upgrade module shown in fig. 7, the upgrade module is specifically configured to:
determining an installed upgrading plug-in and starting the installed upgrading plug-in; pulling up the business service of the installed upgrading plug-in based on the installed upgrading plug-in; judging whether to upgrade a pre-constructed mango plug-in or an installed upgrade plug-in according to the service; if yes, upgrading the host APP or downloading the service plug-in needing to be upgraded in advance; if not, establishing communication between the IPTV soft terminal and the host APP.
Based on the plug-in device provided by the embodiment of the invention, the version of the plug-in is checked, so that whether the host APP needs to be updated or not is determined, the hardware cost is reduced, the APP loading speed is increased, and the interaction experience is improved.
Based on the plug-in device disclosed in the embodiment of the present invention, the modules may be implemented by a hardware device including a processor and a memory. Specifically, the respective modules are stored in a memory as program units, and the processor executes the program units stored in the memory to realize the plug-in.
The processor comprises a kernel, and the kernel calls a corresponding program unit from the memory. One or more than one kernel can be set, and the plug-in is realized by adjusting kernel parameters.
An embodiment of the present invention provides a computer storage medium, where the storage medium includes a storage plug-in program, and the program, when executed by a processor, implements the plug-in method according to any one of the above method embodiments.
The embodiment of the invention provides a processor, which is used for running a program, wherein the program executes the plug-in method disclosed by the method embodiment when running.
An embodiment of the present invention provides an electronic device, and as shown in fig. 8, is a schematic structural diagram of an electronic device 80 provided in an embodiment of the present invention.
The electronic device in the embodiment of the invention can be a server, a PC, a PAD, a mobile phone and the like.
The electronic device comprises at least one processor 801, and at least one memory 802 coupled to the processor, and a bus 803.
The processor 801 and the memory 802 communicate with each other via a bus 803. A processor 901 for executing programs stored in the memory 802.
A memory 802 for storing a program for at least: when the IPTV soft terminal of the interactive network television detects that a host APP is in a login state, establishing communication between the IPTV soft terminal and the host APP; after a host APP is started in advance, starting a zero configuration android installation package (APK) of an IPTV service; performing starting authentication on the IPTV service based on the zero configuration APK; if the IPTV service passes the authentication, pulling up a flow plug-in of the IPTV service and a plug-in of an EPG display playing system; and if the authentication fails, feeding back authentication failure information to the host APP, so that the host APP performs authentication processing based on the authentication failure information.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on an electronic device:
when the IPTV soft terminal of the interactive network television detects that the host APP is in a login state, establishing communication between the IPTV soft terminal and the host APP; after a host APP is started in advance, starting a zero configuration android installation package (APK) of an IPTV service; starting up authentication is carried out on the IPTV service based on the zero configuration APK; if the authentication is passed, pulling up a flow plug-in of the IPTV service and a plug-in of an EPG display playing system; and if the authentication fails, feeding back authentication failure information to the host APP, so that the host APP performs authentication processing based on the authentication failure information.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a device includes one or more processors (CPUs), memory, and a bus. The device may also include input/output interfaces, network interfaces, and the like.
The memory may include volatile memory in a computer readable medium, random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.
Computer-readable media, including both permanent and non-permanent, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are only illustrative, wherein the units described as separate parts may or may not be physically separate, and the 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 may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement without inventive effort.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the technical solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method of pluggability, the method comprising:
when the IPTV soft terminal of the interactive network television detects that a host APP is in a login state, establishing communication between the IPTV soft terminal and the host APP;
after the host APP is started in advance, starting a zero configuration android installation package (APK) of the IPTV service;
based on the zero configuration APK, carrying out startup authentication on the IPTV service;
if the authentication is passed, pulling up the flow plug-in of the IPTV service and the plug-in of the EPG display playing system;
and if the authentication fails, feeding back authentication failure information to the host APP, so that the host APP performs authentication processing based on the authentication failure information.
2. The method of claim 1, wherein after the IPTV soft terminal detects that a host APP is in a login state, before establishing communication between the IPTV soft terminal and the host APP, the method further comprises:
detecting an upgrade interface of the host APP;
judging whether the host APP needs self-upgrading or not according to the data field returned by the upgrading interface;
if yes, self-upgrading the host APP;
and if not, upgrading the host APP according to the installed upgrading plug-in.
3. The method according to claim 1, wherein the performing power-on authentication on the IPTV service based on the zero-configuration APK comprises:
acquiring the participation condition of the IPTV service based on the zero configuration APK, wherein the participation condition comprises a device number, a version number and network information;
judging whether the installed authentication plug-in is required to be started or not based on the participation condition;
if yes, starting the installed authentication plug-in;
acquiring a service account and a password input by a user through the host APP;
matching the service account and the password with a startup authentication account and a password corresponding to the IPTV service in the installed authentication plugin;
if the service account and the password are consistent with the starting authentication account and the password corresponding to the IPTV service in the installed authentication plugin, determining that the authentication is passed;
and if the service account number and the password are inconsistent with the startup authentication account number and the password corresponding to the IPTV service in the installed authentication plugin, determining that the authentication fails.
4. The method according to claim 1, wherein if the authentication is passed, pulling up a process plug-in of the IPTV service and a plug-in of an EPG display playing system comprises:
if the authentication is passed, pulling up the mango plugin, wherein the mango plugin is a plugin for bearing all EPG service playing;
judging whether other service plug-ins need to be pulled up or not according to the product requirements and the service forms of the IPTV soft terminal;
if yes, determining the service plug-in needing to be pulled up, and feeding back a request needing to start the service plug-in to the host APP, so that the host APP processes the service plug-in based on the request.
5. The method according to claim 2, wherein the determining whether the host APP needs self-upgrade according to the data field returned by the upgrade interface includes:
if the state value of the character string field returned by the upgrading interface is 1, determining that the host APP does not need self-upgrading;
if the state value of the character string field returned by the upgrading interface is 0, determining that the host APP needs self-upgrading;
and if the numerical value of the content field returned by the upgrading interface is null, determining that the host APP does not need self-upgrading.
6. The method of claim 2, wherein if not, upgrading the host APP according to an installed upgrade plug-in, comprises:
if not, determining the installed upgrade plug-in and starting the installed upgrade plug-in;
pulling up the business service of the installed upgrading plug-in based on the installed upgrading plug-in;
judging whether to upgrade a pre-constructed mango plug-in or the installed upgrade plug-in according to the business service;
if yes, upgrading the host APP or downloading a service plug-in needing to be upgraded in advance;
if not, establishing communication between the IPTV soft terminal and the host APP.
7. An pluggable device, comprising:
the system comprises an establishing module, a judging module and a sending module, wherein the establishing module is used for establishing communication between an IPTV soft terminal and a host APP after the IPTV soft terminal detects that the host APP is in a login state;
the starting module is used for starting the zero configuration android installation package APK of the IPTV service after the host APP is started in advance;
the authentication module is used for carrying out starting authentication on the IPTV service based on the zero configuration APK;
the plug-in module is used for pulling up the flow plug-in of the IPTV service and the plug-in of the EPG display playing system if the authentication is passed;
and the feedback module is used for feeding back authentication failure information to the host APP if the authentication fails, so that the host APP carries out authentication processing based on the authentication failure information.
8. The apparatus of claim 7, further comprising:
the detection module is used for detecting an upgrading interface of the host APP;
the judging module is used for judging whether the host APP needs self-upgrading according to the data field returned by the upgrading interface, if so, the self-upgrading module is executed, and if not, the upgrading module is executed;
a self-upgrade module for self-upgrading said host APP;
and the upgrading module is used for upgrading the host APP according to the installed upgrading plug-in.
9. An electronic device, wherein the electronic device comprises a processor;
the memory for storing a computer program;
the processor, when calling and executing the computer program stored in the memory, implementing the plug-in method according to any one of claims 1 to 6.
10. A computer storage medium having stored thereon computer-executable instructions that, when loaded and executed by a processor, implement a plug-in method according to any one of claims 1 to 6.
CN202211674642.0A 2022-12-26 2022-12-26 Plug-in method, device and related equipment Pending CN115955586A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211674642.0A CN115955586A (en) 2022-12-26 2022-12-26 Plug-in method, device and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211674642.0A CN115955586A (en) 2022-12-26 2022-12-26 Plug-in method, device and related equipment

Publications (1)

Publication Number Publication Date
CN115955586A true CN115955586A (en) 2023-04-11

Family

ID=87290792

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211674642.0A Pending CN115955586A (en) 2022-12-26 2022-12-26 Plug-in method, device and related equipment

Country Status (1)

Country Link
CN (1) CN115955586A (en)

Similar Documents

Publication Publication Date Title
CN108536461B (en) Resource updating method, device, terminal and storage medium
US20160323647A1 (en) Video sharing method and system in smart tv
CN106911502B (en) A kind of upgrade method and system of intelligent home gateway equipment
US20060085824A1 (en) Method and appartus for management of video on demand client device
CN108811515B (en) Delivering automatically playing media content elements from cross-source resources
US20120227032A1 (en) Method, apparatus, and system for invoking widget
US10037215B2 (en) Method and apparatus for interworking application and web browser
BR112012008440B1 (en) SMART SET-TOP BOX AND OPERATION METHOD FOR DELIVERY OF SMART SERVICE AND DIGITAL TELEVISION SERVICE USING A CONVENTIONAL MEDIA PLAYER INCLUDED IN A SINGLE OPERATING SYSTEM
US10404568B2 (en) Agent manager for distributed transaction monitoring system
CN106605231B (en) Account's control
US10291718B2 (en) Method and apparatus for implementing communication from web page to client
EP3125541A1 (en) Data acquisition and interaction method, set top box, server and multimedia system
CN109358894B (en) Android equipment upgrading method and system supporting DVB
US10929884B2 (en) System and method for preventing a delivery of advertising contents
CN112565877B (en) Screen projection method and system, electronic equipment and storage medium
US9681169B1 (en) System for highly predictable performance of set-top boxes using downloadable conditional access
CN115955586A (en) Plug-in method, device and related equipment
CN103491420A (en) Bidirectional video-on-demand method and digital television all-in-one machine
CN112714341A (en) Information acquisition method, cloud set top box system, entity set top box and storage medium
CN103442256A (en) Electronic program menu implementation method and system based on HTML5
JP6351000B2 (en) Broadcast reception system and broadcast communication cooperation system
CN112394952B (en) Method and system for dynamically generating Launcher based on Hybrid App and storage medium
JP6044850B2 (en) Information terminal, information processing method, and control program
US20210011702A1 (en) Systems and methods for updating television receiving devices
KR101316076B1 (en) System and method for running widget at iptv

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