CN114401428A - Method for realizing remote multi-screen interaction under public network based on short link signaling channel - Google Patents
Method for realizing remote multi-screen interaction under public network based on short link signaling channel Download PDFInfo
- Publication number
- CN114401428A CN114401428A CN202111563808.7A CN202111563808A CN114401428A CN 114401428 A CN114401428 A CN 114401428A CN 202111563808 A CN202111563808 A CN 202111563808A CN 114401428 A CN114401428 A CN 114401428A
- Authority
- CN
- China
- Prior art keywords
- middleware
- mobile phone
- interactive
- service
- address
- 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.)
- Granted
Links
- 230000011664 signaling Effects 0.000 title claims abstract description 119
- 230000003993 interaction Effects 0.000 title claims abstract description 47
- 238000000034 method Methods 0.000 title claims abstract description 39
- 230000002452 interceptive effect Effects 0.000 claims abstract description 127
- 238000012795 verification Methods 0.000 claims description 17
- 238000012544 monitoring process Methods 0.000 claims description 14
- 238000012545 processing Methods 0.000 claims description 6
- 230000009191 jumping Effects 0.000 claims description 3
- 230000007246 mechanism Effects 0.000 claims description 3
- 230000004044 response Effects 0.000 claims description 2
- 230000008569 process Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 1
- 230000003139 buffering effect Effects 0.000 description 1
- 238000005266 casting Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/4104—Peripherals receiving signals from specially adapted client devices
- H04N21/4126—The peripheral being portable, e.g. PDAs or mobile phones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/436—Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
- H04N21/4363—Adapting the video stream to a specific local network, e.g. a Bluetooth® network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/462—Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
- H04N21/4627—Rights management associated to the content
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/858—Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
- H04N21/8586—Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot by using a URL
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention provides a method for realizing remote multi-screen interaction under a public network based on a short-link signaling channel, which is characterized in that the interactive access of a mobile phone to a set top box is realized based on a mobile phone APP, a signaling platform and the set top box. The invention is used for realizing a multi-screen interaction scheme from a mobile phone to a television large screen, and a signaling channel is established in a server of a public network or an IPTV network to transmit a mobile phone instruction to the large screen, thereby solving the problem that the mobile phone and the television can only be in the same local area network, realizing remote control and interaction at different places, such as a mobile phone remote controller, large screen pushing playing, remote management and the like, and supporting an intelligent television, an OTT set box, an IPTV set top box and the like. Meanwhile, the HTTP short link interface is adopted, the terminal does not need to keep connection, and compared with a socket long link, the method and the system can realize high user concurrency by using fewer server resources.
Description
Technical Field
The invention relates to a method for realizing remote multi-screen interaction, and belongs to the field of remote mobile phone remote control and screen-casting playing of an OTT (over the top) and an IPTV (Internet protocol television).
Background
The screen projection function mainly comprises mobile phone remote control, video push large screen and the like, and the environment for realizing the screen projection function comprises a wireless local area network, a Bluetooth connection, a public network and the like. The local area network and the bluetooth connection are required to enable the mobile phone and the set top box or the smart television to be in the same place (the mobile phone and the set top box or the smart television can be directly connected through WIFI or bluetooth), and remote interaction at different places needs to be realized through a public network and by utilizing a signaling channel. For example: a chinese invention patent No. ZL201110337264.2, applied on 31/10/2011, discloses a method, a system and a mobile phone for remotely controlling a television by sharing a television screen with the mobile phone, wherein the method comprises the following steps: the mobile phone with the screen sharing program is connected with the television through a wireless network, and the current screen picture of the television is transmitted to the mobile phone end through the wireless network and displayed on the mobile phone screen in a scaling manner. In the technical scheme, the mobile phone and the television are positioned in the same local area network, and remote interaction at different places cannot be realized.
At present, remote interaction is based on socket long connection, so that a channel is established among a mobile phone, a signaling platform and a box, and connection resources are occupied all the time even if no interactive operation is performed as long as the connection is not closed. The number of concurrent long connections that can be established by one server is limited, and as the number of users increases, the cost of the server also increases linearly. For example: the invention discloses a system and a method for remotely controlling a television through a smart phone, wherein the system comprises the television, a set top box and the smart phone, the system also comprises a central server, the central server is connected with the set top box through the internet, the smart phone is connected with the central server through the internet, and the smart phone is connected with the set top box through a socket long link.
Disclosure of Invention
The technical problems to be solved by the invention are as follows: the existing remote interaction is based on socket long connection and occupies connection resources of a server.
In order to solve the technical problems, the technical scheme of the invention is to provide a method for realizing remote multi-screen interaction under a public network based on a short-link signaling channel, which is characterized in that the method is used for realizing the interactive access of a mobile phone to a set top box based on a mobile phone APP, a signaling platform and the set top box, wherein each set top box is provided with a unique account number and comprises interactive services and middleware, the interactive services are integrated into a ROM of the set top box and are started together with an operating system of the set top box, and after the interactive services are started, the interactive services monitor a fixed monitoring port by an HTTP protocol; the signaling platform and the interactive service play a role of a signaling channel, do not contain business logic, the business logic is realized by a mobile phone APP and a middleware together, and the remote multi-screen interaction realization method comprises the following steps:
after the signaling platform establishes a binding relationship, the mobile phone APP acquires information of the bound set top box from the signaling platform through a mobile phone APP acquisition box end information interface located in the signaling platform by using the account obtained in the step 1, wherein the information includes an IP address IP, a playing port number port, a version number ver of the middleware and an interactive function instruction set funclist supported by the middleware; the method comprises the steps that a mobile phone APP determines an available function range through an interactive function instruction set funclist and a version number ver of a middleware;
step 6, calling a mobile phone sending instruction positioned on the signaling platform by the mobile phone APP to a signaling platform interface to send a pushing request to the signaling platform, wherein the pushing request comprises an interaction instruction and an account number bound by the mobile phone APP;
the interactive instruction comprises a function to be executed and on-demand address information, the on-demand address information is a jump URL or an on-demand content ID or a combination of a live channel number and on-demand playing time, and when the on-demand content ID is the live channel number, the on-demand playing time can be 0;
when the playing address has a determined spelling mode, the mobile phone APP can organize a fixed jump URL, and the fixed jump URL is used as the jump URL to be uploaded to a signaling platform after the playing address is spelled; the jump URL is a relative address of the beginning or an absolute address of the http:// beginning, the relative address is suitable for the condition that the played IP address and the playing port are not fixed, and the mobile phone APP cannot know the determined IP address and the playing port.
If the playing address does not have the determined spelling specification or the corresponding middleware of the set top box has a playing mode of a non-tuning page control address, the mobile phone APP cannot organize and skip the URL, the on-demand content ID and the on-demand playing time are provided to the signaling platform as a standby mode, and the corresponding middleware automatically spells according to the parameters after receiving the on-demand content ID and the on-demand playing time;
step 7, the signaling platform inquires the bound IP address IP, the playing port number port, the version number ver of the middleware and the interactive function instruction set funclist supported by the middleware according to the account, and determines whether the functions in the interactive instruction are supported according to the interactive function instruction set funclist and the version number ver of the middleware: if not, sending an instruction to a signaling platform interface through the mobile phone to return a failure to the mobile phone APP; if yes, sending an instruction to the signaling platform interface through the mobile phone to return success to the mobile phone APP, and entering step 8;
and 8, splicing the IP address IP, the playing port number port and the interaction instruction into an absolute path URL by the signaling platform, calling an interaction interface of the signaling platform and a box-end interaction service at the set top box end by the signaling platform, accessing the interaction service based on the spliced absolute path URL, and forwarding a push request to the specified set top box.
Step 9, the interactive service starts a monitoring service APK, and an HTTP Server is started in the monitoring service APK to monitor a push request forwarded by a signaling platform on a monitoring port, wherein the monitoring service APK has the system authority of a set top box operating system;
step 10, the interactive service analyzes the function to be executed and the on-demand address information contained in the push request forwarded by the signaling platform;
step 11, the interactive service calls a URL push interface provided by the middleware, and sends the on-demand address information to the middleware in a broadcast manner, so that the processing logic of the middleware for the on-demand address information is as follows:
if the jump URL exists, only the jump URL is processed, the middleware directly jumps according to a direct address corresponding to the jump URL or completes the played IP address IP and the played port number port into an absolute path for jumping;
if the jump URL does not exist, the middleware plays the content according to respective playing specifications through the on-demand content ID or the value of the live channel number plus the on-demand playing time;
the interactive service calls a general message interactive interface provided by the middleware, interacts with the middleware in a broadcast mode, sends the functional message to be executed to the middleware, and receives the message returned by the middleware.
Preferably, the middleware realizes interaction with the interactive service through an acquisition middleware information interface, a screen pushing interface, a receiving interface and a response general message interface.
Preferably, the interface for acquiring the information of the box end in the step 2 is an aid dl interface; and the JSON string format data returned by the box end information interface is obtained.
Preferably, in step 6, the mobile phone APP packages the http request through its own SDK, and sends the interaction instruction to the signaling platform.
Preferably, in step 8, the interface protocol of the interactive interface between the signaling platform and the box-side interactive service is HTTP, the calling method is GET, and the data exchange format is JSON;
the absolute path URL is represented as follows:
http://[IP]:[PORT]/ott/sx2ottcmd=[]
wherein, the IP is an IP address IP bound to the current itvId; the PORT is a playing PORT number bound to the current itvId; and the cmd is valid data and a JSON data structure, is transmitted to the set top box by using an HTTP GET parameter and is subjected to URLENCE coding.
Preferably, when any one of the mobile phone APP, the signaling platform or the set top box requests another party for service, the service request data sent by the service requesting party to the service requested party includes a current timestamp time and a signature verification parameter sign; and the service requesting party adopts the service provided by the service requested party to be called only after the service requested party completes the signature verification on the service request based on the signature verification parameter sign.
Preferably, the signature verification parameter sign is an encrypted string, and the generation format is as follows: the key, the current server time, the parameter names and their values contained in the service requests arranged according to the alphabetical order are merged, with the different fields being separated by separators. And after merging, carrying out md5 encryption to obtain an encrypted string, wherein the encrypted string is the signature verification parameter sign.
Preferably, the method for keeping the set-top box online through heartbeat comprises the following steps:
calling a heartbeat interface of the signaling platform after the interactive service is started, and regularly sending the IP, the port and the account of the interactive service to the signaling platform by the interactive service in a heartbeat mode; and after receiving the message, the signaling platform stores the IP and the port of the interactive service by taking the account number as the KEY, and issues the heartbeat cycle of the next round of interactive service.
Preferably, the interface protocol adopted by the heartbeat interface is HTTP, the calling method is GET, and the data exchange format for realizing exchange between the interactive service and the signaling platform through the heartbeat interface is JSON.
Preferably, the default heartbeat cycle of the interactive service is 3600s, the heartbeat cycle is obtained from the returned result, and the heartbeat cycle of the interactive service is updated; and meanwhile, a time-out mechanism is set, the interactive service is regarded as time-out after not receiving the return result of the signaling platform for more than 10 seconds, and the last heartbeat cycle is kept.
The invention is used for realizing a multi-screen interaction scheme from a mobile phone to a television large screen, and a signaling channel is established in a server of a public network or an IPTV network to transmit a mobile phone instruction to the large screen, thereby solving the problem that the mobile phone and the television can only be in the same local area network, realizing remote control and interaction at different places, such as a mobile phone remote controller, large screen pushing playing, remote management and the like, and supporting an intelligent television, an OTT set box, an IPTV set top box and the like. Meanwhile, the HTTP short link interface is adopted, the terminal does not need to keep connection, and compared with a socket long link, the method and the system can realize high user concurrency by using fewer server resources.
In summary, compared with the prior art, the invention has the following advantages:
1) the current situation that mobile phone remote control, screen push playing and two terminal link can only be realized in a local area network by using DLNA and AIRPLAY protocols is solved. The user can realize the purposes of mobile phone remote control and video push large screen between the mobile phone and the television through the HTTP under the public network environment.
2) And more user accesses are carried by using a short link mode with less resource investment.
Drawings
FIG. 1 illustrates the general architecture of the present invention;
FIG. 2 illustrates the timing of the present invention;
fig. 3 illustrates the deployment of the signaling platform in a dual-span AB plane network environment.
Detailed Description
The invention will be further illustrated with reference to the following specific examples. It should be understood that these examples are for illustrative purposes only and are not intended to limit the scope of the present invention. Further, it should be understood that various changes or modifications of the present invention may be made by those skilled in the art after reading the teaching of the present invention, and such equivalents may fall within the scope of the present invention as defined in the appended claims.
As shown in fig. 1, the present invention realizes the interactive access of the mobile phone to the set-top box based on the mobile phone APP, the signaling platform and the set-top box. The set-top box comprises interactive services and middleware, wherein the interactive services are integrated into a ROM of the set-top box and are started together with an operating system of the set-top box. In this embodiment, the middleware needs to implement 4 interactive interfaces to implement interaction with the interactive service, including an interface for acquiring middleware information, a screen pushing interface, a receiving interface, and a general message answering interface. After starting, the interactive service uses the HTTP protocol to monitor a fixed monitor port, which in this embodiment is an 8087 port (which may be modified). The signaling platform and the interactive service play a role of a signaling channel and do not contain service logic (function), the service logic is realized by the mobile phone APP and the middleware together, namely the mobile phone APP sends an instruction, and the middleware executes corresponding operation. The interactive access is realized through signaling, the mobile phone APP pushes the interactive instruction to the signaling platform, the signaling platform forwards the interactive instruction to the interactive service of the set top box, and the interactive service sends the instruction to the middleware to control the set top box, so that video screen pushing, remote control operation and the like are realized.
Each set-top box has a unique account, which in this embodiment is an ITV account, denoted as itvlid. The association among the mobile phone APP, the signaling platform and the set-top box is performed through itvlid, as shown in fig. 2, including the following steps:
And 2, after the set top box is started, the interactive service acquires the itvId, the IP address IP, the port of the playing port number, the version number ver of the middleware and the interactive function instruction set funclist supported by the middleware from the middleware. In this embodiment, the interactive service obtains itvdi, an IP address IP, a version number ver of the middleware, and an interactive function instruction set funclist supported by the middleware through a predefined information interface of the child side of the obtaining box, where the information interface of the child side of the obtaining box is an aid id interface, and is defined as follows: string getTVinfo (int cmd, string params), wherein the content of the corresponding return message is obtained by setting cmd to different Value values, and the definition of cmd is shown in the following table 1; params is an input parameter and is used for expansion. And the data in the json string format returned by the box end information interface is acquired.
TABLE 1
And step 3, the interactive service reports the itvId, the IP address IP, the port number of the playing port, the version number ver of the middleware and the interactive function instruction set funclist supported by the middleware to the signaling platform.
And 4, the signaling platform establishes a binding relationship among the itvId, the IP address IP, the port of the playing port, the version number ver of the middleware and the interactive function instruction set funclist supported by the middleware.
And step 5, the mobile phone APP determines the function range supported by the set top box according to the version number ver of the middleware or the interactive function instruction set funclist.
In this embodiment, after the signaling platform establishes the binding relationship, the mobile APP acquires information of the bound set top box from the signaling platform through the mobile APP acquisition box end information interface located on the signaling platform by using the itvlid obtained in step 1, where the information includes the IP address IP, the play port number, the version number ver of the middleware, and the interactive function instruction set funclist supported by the middleware. The mobile phone APP determines the available function range through the interactive function instruction set funclist and the version number ver of the middleware, in the embodiment, the judgment is preferentially carried out through the interactive function instruction set funclist, and when the interactive function instruction set funclist is empty, the judgment is carried out through the version number ver of the middleware.
The data received by the mobile phone APP acquisition box side information interface is shown in the following table 2:
TABLE 2
The data returned by the mobile phone APP for acquiring the box side information interface is shown in the following table 3:
TABLE 3
The info parameters in table 3 are specifically shown in table 4 below:
TABLE 4
After the association among the mobile phone APP, the signaling platform and the set top box is completed, the method of the invention continuously comprises the following steps:
and 6, calling the mobile phone positioned on the signaling platform by the mobile phone APP to send a command to the signaling platform interface to send a push request to the signaling platform, wherein the push request comprises an interaction command and the itvId bound by the mobile phone APP. In this embodiment, the mobile phone APP packages the http request (including the signature) through its own SDK, and sends the interaction instruction to the signaling platform.
In this embodiment, the data received by the mobile phone sending the instruction to the signaling platform interface is as shown in the following table 5:
TABLE 5
The interactive instruction comprises the function to be executed and the on-demand address information. In this embodiment, the on-demand address information may be a jump URL, or may be a combination of an on-demand content ID and an on-demand play time. The on-demand content ID can also be a live channel number, and when the on-demand content ID is the live channel number, the on-demand playing time can not be transmitted.
The on-demand address information is created by a corresponding mobile phone APP (or a platform corresponding to the mobile phone APP) in a conventional mode through a jump URL, and the jump URL can be a relative address or an absolute address. When the playing address has a determined spelling mode, the mobile phone APP can organize a fixed jump URL, and the spelling of the playing address is used as the jump URL to be uploaded to the signaling platform.
The jump URL (the actual URL of each service EPG page) is a URL composed of the address of the play page plus the necessary parameters. The address of the playing page is divided into an absolute address and a relative address: absolute Address-Address starting with http:/; relative address-at/beginning, is applicable to the condition that the IP address and the playing port of playing are not fixed, and the mobile phone APP can not know the determined IP address and the playing port.
If the playing address does not have a definite spelling specification or a corresponding middleware of the set top box has a special playing mode (for example, a control page address is not simply called, but a method is called, and the like), the mobile phone APP cannot organize a jump URL, the on-demand content ID and the on-demand playing time are provided to a signaling platform as the standby mode, and the corresponding middleware automatically spells according to the parameters after receiving the on-demand content ID and the on-demand playing time.
Step 7, the signaling platform inquires the bound IP address IP, the playing port number port, the version number ver of the middleware and the interactive function instruction set funclist supported by the middleware according to the itvId, and determines whether the functions in the interactive instruction support according to the interactive function instruction set funclist and the version number ver of the middleware: if not, sending an instruction to a signaling platform interface through the mobile phone to return a failure to the mobile phone APP; if yes, sending an instruction to the signaling platform interface through the mobile phone to return success to the mobile phone APP, and entering step 8.
In this embodiment, the data returned to the mobile phone APP by the signaling platform sending the instruction to the signaling platform interface through the mobile phone is as shown in table 6 below:
TABLE 6
And 8, splicing the IP address IP, the playing port number port and the interaction instruction into an absolute path URL by the signaling platform, calling an interaction interface of the signaling platform and a box-end interaction service at the set top box end by the signaling platform, accessing the interaction service based on the spliced absolute path URL, and forwarding a push request to the specified set top box.
The interface protocol of the interactive interface between the signaling platform and the box-end interactive service is HTTP, the calling method is GET, and the data exchange format is JSON.
The absolute path URL is represented as follows:
http://[IP]:[PORT]/ott/sx2ottcmd=[]
wherein, the IP is an IP address IP bound to the current itvId; the PORT is a playing PORT number bound to the current itvId; the cmd is valid data and a JSON data structure, is transmitted to the set top box by an HTTP GET parameter and is subjected to URLENCE coding, and specifically shown in the following table 7:
TABLE 7
The Param parameter fields contained in table 7 are shown in table 8 below:
TABLE 8
The Param parameter fields included in table 8 are shown in table 9 below:
TABLE 9
Step 9, the interactive service starts a monitoring service APK, and starts an HTTP Server in the monitoring service APK to monitor the push request forwarded by the signaling platform on the monitoring port (in this embodiment, the 8087 port). The monitoring service APK has the system authority of the set-top box operating system.
Step 10, the interactive service analyzes the effective data in the push request forwarded by the signaling platform, and obtains the function to be executed and the on-demand address information contained in the effective data.
Step 11, the interactive service calls a URL push interface provided by the middleware, and sends the on-demand address information to the middleware in a broadcast mode, where the data format is shown in table 10 below:
watch 10
The processing logic of the middleware for the on-demand address information is as follows:
1. if the jumpURL is not empty, namely a jump URL exists, only the jump URL corresponding to the jumpURL is processed, the middleware directly jumps according to a direct address corresponding to the jump URL or completes the played IP address IP and the played port number into an absolute path for jumping.
2. If jumpURL is empty, that is, there is no jump URL, the middleware plays according to the respective playing specifications through the values of action field and content field.
The on-demand address information is in a broadcasting form, a return value is not needed, the middleware receives the on-demand address information for processing, and a processing result can be displayed from a screen. Meanwhile, based on the consideration of user experience, the middleware can also regularly return a playing state (such as buffering/playing/encountering errors and the like) to the interactive service through the universal message interaction interface, and the interactive service can uniformly process the returned message.
The interactive service calls a general message interactive interface provided by the middleware, interacts with the middleware in a broadcast mode, sends the functional message to be executed to the middleware, and receives the message returned by the middleware. Specifically, the middleware receives a broadcast event transmitted by the interactive service, and analyzes data processing. After the middleware process is completed, a broadcast of the process result is sent to the interactive service.
In the above process, when any one of the mobile phone APP, the signaling platform, or the set top box requests another party for service, the service request data sent by the service requesting party to the service requested party includes the current timestamp time and the signature verification parameter sign. And the service requesting party adopts the service provided by the service requested party to be called only after the service requested party completes the signature verification on the service request based on the signature verification parameter sign.
The signature verification parameter sign is an encryption string and is generated in the following format: the key, the current server time, the parameter names and their values contained in the service request arranged according to the alphabetical order are combined, and the different fields are spaced by a separator (in this embodiment &). And after merging, carrying out md5 encryption to obtain an encrypted string, wherein the encrypted string is the signature verification parameter sign.
Such as: the current server time is 20111020135535, if the parameters of the original request are: if itvlid is 123 and cmd is abc, the encryption string is generated in the following manner:
assuming that the key is "be 36dd6f5733fa09d1349c53cf 28281337330217840", the separator is "&", the last part of the encryption string is "time &" + server time + "&" + key:
“time=20111020135535&be36dd6f5733fa09d1349c53cf2828811337330217840”
then, the request parameters are arranged according to the alphabetical order and are cmd and tvid, and the final encryption string is as follows:
the method includes the steps that "cmd & itvid & 123& time & 20111020135535& be36dd6f5733fa09d1349c53cf 2828811337330217840" (Chinese does not need urelens), then, a character string is converted into a byte array, md5 encryption is performed on the byte array, and an encrypted string is obtained after encryption, namely, a signature verification parameter sign is obtained. The final generated service request needs time-on-tape and sign parameters, e.g. the last URL is:
http://xxx.tv189.cn/service/xxxxxitvid=123&cmd=abc&time=20111020201110&sign=xxxx。
in signature verification, all parameters are encoded as utf-8.
The invention keeps the set-top box online through heartbeat, specifically:
and calling a heartbeat interface of the signaling platform after the interactive service is started, and regularly sending the IP and the port of the interactive service and the itvId to the signaling platform by the interactive service in a heartbeat mode. And after receiving the signaling, the signaling platform stores the IP and the port of the interactive service by taking the itvId as KEY, and issues the heartbeat cycle of the next round of interactive service. The heartbeat interface adopts an interface protocol of HTTP, the calling method is GET, and the data exchange format for realizing the exchange between the interactive service and the signaling platform through the heartbeat interface is JSON.
The data accepted by the signaling platform is shown in table 11 below:
TABLE 11
In Table 11, the Info parameters are shown in Table 12 below:
TABLE 12
The data returned by the signaling platform to the interactive service is shown in table 13 below:
watch 13
The default heartbeat cycle of the interactive service is 3600s, the heartbeat cycle is obtained from the returned result, and the heartbeat cycle of the interactive service is updated (the returned heartbeat cycle is not updated when being 0, and the previous cycle is still used). And meanwhile, a time-out mechanism is set, the interactive service is regarded as time-out after not receiving the return result of the signaling platform for more than 10 seconds, and the last heartbeat cycle is kept.
In this embodiment, when the heartbeat interface is called by the interactive service, the relevant parameter indexes are as follows:
1. heartbeat period default 3600s
2. Timeout Default 10s
3. If the returned cycle is no or 0, the interactive service does not update the heartbeat cycle.
In order to support the IPTV environment, in this embodiment, as shown in fig. 3, a signaling platform is deployed in a network environment with dual-span AB planes.
Claims (10)
1. A method for realizing remote multi-screen interaction under a public network based on a short-link signaling channel is characterized in that interactive access of a mobile phone to a set top box is realized based on a mobile phone APP, a signaling platform and the set top boxes, wherein each set top box is provided with a unique account number and comprises interactive services and middleware, the interactive services are integrated into a ROM of the set top box and are started together with an operating system of the set top box, and after the interactive services are started, the interactive services monitor a fixed monitoring port by an HTTP protocol; the signaling platform and the interactive service play a role of a signaling channel, do not contain business logic, the business logic is realized by a mobile phone APP and a middleware together, and the remote multi-screen interaction realization method comprises the following steps:
step 1, scanning a two-dimensional code of a set top box by a mobile phone APP, acquiring a version number ver of an account and a middleware, and establishing a binding relationship between the account and the version number ver.
Step 2, after the set top box is started, the interactive service acquires an account number, an IP address IP, a playing port number port, a version number ver of the middleware and an interactive function instruction set funclist supported by the middleware from the middleware, wherein the interactive service acquires the account number, the IP address IP, the version number ver of the middleware and the interactive function instruction set funclist supported by the middleware through a predefined acquisition box terminal information interface;
step 3, the interactive service reports the account number, the IP address IP, the port number of the playing port, the version number ver of the middleware and the interactive function instruction set funclist supported by the middleware to the signaling platform;
step 4, the signaling platform establishes a binding relationship among the account number, the IP address IP, the port number of the playing port, the version number ver of the middleware and the interactive function instruction set funclist supported by the middleware;
step 5, the mobile phone APP determines a function range supported by the set top box according to the version number ver of the middleware or the interactive function instruction set funclist;
after the signaling platform establishes a binding relationship, the mobile phone APP acquires information of the bound set top box from the signaling platform through a mobile phone APP acquisition box end information interface located in the signaling platform by using the account obtained in the step 1, wherein the information includes an IP address IP, a playing port number port, a version number ver of the middleware and an interactive function instruction set funclist supported by the middleware; the method comprises the steps that a mobile phone APP determines an available function range through an interactive function instruction set funclist and a version number ver of a middleware;
step 6, calling a mobile phone sending instruction positioned on the signaling platform by the mobile phone APP to a signaling platform interface to send a pushing request to the signaling platform, wherein the pushing request comprises an interaction instruction and an account number bound by the mobile phone APP;
the interactive instruction comprises a function to be executed and on-demand address information, the on-demand address information is a jump URL or an on-demand content ID or a combination of a live channel number and on-demand playing time, and when the on-demand content ID is the live channel number, the on-demand playing time can be 0;
when the playing address has a determined spelling mode, the mobile phone APP can organize a fixed jump URL, and the fixed jump URL is used as the jump URL to be uploaded to a signaling platform after the playing address is spelled; the jump URL is a relative address of the beginning or an absolute address of the http:// beginning, the relative address is suitable for the condition that the played IP address and the playing port are not fixed, and the mobile phone APP cannot know the determined IP address and the playing port.
If the playing address does not have the determined spelling specification or the corresponding middleware of the set top box has a playing mode of a non-tuning page control address, the mobile phone APP cannot organize and skip the URL, the on-demand content ID and the on-demand playing time are provided to the signaling platform as a standby mode, and the corresponding middleware automatically spells according to the parameters after receiving the on-demand content ID and the on-demand playing time;
step 7, the signaling platform inquires the bound IP address IP, the playing port number port, the version number ver of the middleware and the interactive function instruction set funclist supported by the middleware according to the account, and determines whether the functions in the interactive instruction are supported according to the interactive function instruction set funclist and the version number ver of the middleware: if not, sending an instruction to a signaling platform interface through the mobile phone to return a failure to the mobile phone APP; if yes, sending an instruction to the signaling platform interface through the mobile phone to return success to the mobile phone APP, and entering step 8;
and 8, splicing the IP address IP, the playing port number port and the interaction instruction into an absolute path URL by the signaling platform, calling an interaction interface of the signaling platform and a box-end interaction service at the set top box end by the signaling platform, accessing the interaction service based on the spliced absolute path URL, and forwarding a push request to the specified set top box.
Step 9, the interactive service starts a monitoring service APK, and an HTTP Server is started in the monitoring service APK to monitor a push request forwarded by a signaling platform on a monitoring port, wherein the monitoring service APK has the system authority of a set top box operating system;
step 10, the interactive service analyzes the function to be executed and the on-demand address information contained in the push request forwarded by the signaling platform;
step 11, the interactive service calls a URL push interface provided by the middleware, and sends the on-demand address information to the middleware in a broadcast manner, so that the processing logic of the middleware for the on-demand address information is as follows:
if the jump URL exists, only the jump URL is processed, the middleware directly jumps according to a direct address corresponding to the jump URL or completes the played IP address IP and the played port number port into an absolute path for jumping;
if the jump URL does not exist, the middleware plays the content according to respective playing specifications through the on-demand content ID or the value of the live channel number plus the on-demand playing time;
the interactive service calls a general message interactive interface provided by the middleware, interacts with the middleware in a broadcast mode, sends the functional message to be executed to the middleware, and receives the message returned by the middleware.
2. A method for implementing remote multi-screen interaction under a public network based on a short link signaling channel as claimed in claim 1, wherein the middleware implements interaction with the interactive service by acquiring a middleware information interface, a screen pushing interface, a receiving interface and a response general message interface.
3. The method for realizing remote multi-screen interaction under the public network based on the short link signaling channel according to claim 1, wherein the interface for acquiring the box-side information in the step 2 is an AIDL interface; and the JSON string format data returned by the box end information interface is obtained.
4. The method for implementing remote multi-screen interaction under the public network based on the short link signaling channel as claimed in claim 1, wherein in step 6, the mobile phone APP sends the interaction instruction to the signaling platform by encapsulating an http request through its own SDK.
5. The method for implementing remote multi-screen interaction under the public network based on the short-link signaling channel according to claim 1, wherein in step 8, an interface protocol of an interactive interface between the signaling platform and the box-side interactive service is HTTP, a calling method is GET, and a data exchange format is JSON;
the absolute path URL is represented as follows:
http://[IP]:[PORT]/ott/sx2ottcmd=[]
wherein, the IP is an IP address IP bound to the current itvId; the PORT is a playing PORT number bound to the current itvId; and the cmd is valid data and a JSON data structure, is transmitted to the set top box by using an HTTP GET parameter and is subjected to URLENCE coding.
6. The method for implementing remote multi-screen interaction under the public network based on the short-link signaling channel of claim 1, wherein when any one of a mobile phone APP, a signaling platform or a set-top box requests service from another party, service request data sent by a service request party to a service requested party includes a current timestamp time and a signature verification parameter sign; and the service requesting party adopts the service provided by the service requested party to be called only after the service requested party completes the signature verification on the service request based on the signature verification parameter sign.
7. The method for realizing remote multi-screen interaction under the public network based on the short link signaling channel as claimed in claim 6, wherein the signature verification parameter sign is an encryption string, and the generation format is as follows: the key, the current server time, the parameter names and their values contained in the service requests arranged according to the alphabetical order are merged, with the different fields being separated by separators. And after merging, carrying out md5 encryption to obtain an encrypted string, wherein the encrypted string is the signature verification parameter sign.
8. The method for realizing remote multi-screen interaction under the public network based on the short-link signaling channel as claimed in claim 1, wherein the set top box is kept online through heartbeat, comprising the following steps:
calling a heartbeat interface of the signaling platform after the interactive service is started, and regularly sending the IP, the port and the account of the interactive service to the signaling platform by the interactive service in a heartbeat mode; and after receiving the message, the signaling platform stores the IP and the port of the interactive service by taking the account number as the KEY, and issues the heartbeat cycle of the next round of interactive service.
9. The method for implementing remote multi-screen interaction under the public network based on the short-link signaling channel as claimed in claim 8, wherein the interface protocol adopted by the heartbeat interface is HTTP, the calling method is GET, and the data exchange format for implementing exchange between the interactive service and the signaling platform through the heartbeat interface is JSON.
10. A method for realizing remote multi-screen interaction under a public network based on a short link signaling channel as claimed in claim 8, wherein the default heartbeat cycle of the interactive service is 3600s, the heartbeat cycle is obtained from the returned result, and the heartbeat cycle of the interactive service is updated; and meanwhile, a time-out mechanism is set, the interactive service is regarded as time-out after not receiving the return result of the signaling platform for more than 10 seconds, and the last heartbeat cycle is kept.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111563808.7A CN114401428B (en) | 2021-12-20 | 2021-12-20 | Method for implementing remote multi-screen interaction under public network based on short link signaling channel |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111563808.7A CN114401428B (en) | 2021-12-20 | 2021-12-20 | Method for implementing remote multi-screen interaction under public network based on short link signaling channel |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114401428A true CN114401428A (en) | 2022-04-26 |
CN114401428B CN114401428B (en) | 2024-03-19 |
Family
ID=81227110
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111563808.7A Active CN114401428B (en) | 2021-12-20 | 2021-12-20 | Method for implementing remote multi-screen interaction under public network based on short link signaling channel |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114401428B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115426433A (en) * | 2022-09-05 | 2022-12-02 | 亦非云科技(上海)有限公司 | Cloud remote controller control method and system for private network video service |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105049888A (en) * | 2015-06-11 | 2015-11-11 | 烽火通信科技股份有限公司 | Method for remotely pushing program source to set top box through WeChat based on heartbeat module |
CN105376591A (en) * | 2015-12-17 | 2016-03-02 | Tcl集团股份有限公司 | Method and system for remotely controlling synchronous execution of shared file |
CN106572382A (en) * | 2015-10-12 | 2017-04-19 | 中兴通讯股份有限公司 | Multi-screen interaction method and system and extensible messaging and presence protocol (XMPP) system |
WO2017092315A1 (en) * | 2015-12-01 | 2017-06-08 | 乐视控股(北京)有限公司 | Method and device for controlling television |
CN108156488A (en) * | 2017-12-22 | 2018-06-12 | 北京数码视讯软件技术发展有限公司 | Interactive approach and electronic equipment based on gateway server |
-
2021
- 2021-12-20 CN CN202111563808.7A patent/CN114401428B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105049888A (en) * | 2015-06-11 | 2015-11-11 | 烽火通信科技股份有限公司 | Method for remotely pushing program source to set top box through WeChat based on heartbeat module |
CN106572382A (en) * | 2015-10-12 | 2017-04-19 | 中兴通讯股份有限公司 | Multi-screen interaction method and system and extensible messaging and presence protocol (XMPP) system |
WO2017092315A1 (en) * | 2015-12-01 | 2017-06-08 | 乐视控股(北京)有限公司 | Method and device for controlling television |
CN105376591A (en) * | 2015-12-17 | 2016-03-02 | Tcl集团股份有限公司 | Method and system for remotely controlling synchronous execution of shared file |
CN108156488A (en) * | 2017-12-22 | 2018-06-12 | 北京数码视讯软件技术发展有限公司 | Interactive approach and electronic equipment based on gateway server |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115426433A (en) * | 2022-09-05 | 2022-12-02 | 亦非云科技(上海)有限公司 | Cloud remote controller control method and system for private network video service |
Also Published As
Publication number | Publication date |
---|---|
CN114401428B (en) | 2024-03-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5978000B2 (en) | Receiving machine | |
KR102083944B1 (en) | Receiving device, receiving method, program, and information-processing system | |
KR101346531B1 (en) | Information processing device, information communication system, information processing method, and computer readable recording medium storing computer program therein | |
JP5586770B2 (en) | Receiving machine | |
KR102233783B1 (en) | Information processing device, information processing method, and program | |
US9860603B2 (en) | Method and apparatus for managing applications based on application information included in a broadcasting signal | |
WO2013031556A1 (en) | Receiver and reception method | |
CN101505253B (en) | Method and apparatus for providing data to network appliance in auxiliary appliance of network appliance | |
KR20150090049A (en) | Apparatus and method for processing an interactive service | |
KR20150073987A (en) | Apparatus and method for processing an interactive service | |
CN106464933B (en) | Apparatus and method for remotely controlling rendering of multimedia content | |
JP2013066159A (en) | Receiver | |
WO2018103644A1 (en) | Live stream sharing method and device, home media apparatus, and data storage medium | |
CN103533460A (en) | Method, device, terminal and system for sharing television service | |
KR20130038192A (en) | Content output system and codec information sharing method thereof | |
WO2013044696A1 (en) | Media playing method and system | |
KR101282413B1 (en) | Apparatus for controlling internet protocol television service and method for providing internet protocol television service using the same | |
CN114040232B (en) | Screen projection system, screen projection method, electronic equipment and storage medium | |
CN107547517B (en) | Audio and video program recording method, network equipment and computer device | |
JP6097443B1 (en) | Receiving machine | |
US9854276B2 (en) | Information processing device, information processing method, and program | |
CN114401428B (en) | Method for implementing remote multi-screen interaction under public network based on short link signaling channel | |
CN101175095A (en) | Family network multimedia access apparatus and method | |
CN110602558A (en) | High-performance DVB program sharing method for terminal | |
US20190098351A1 (en) | Method for managing the access right to an item of digital content |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |