CN110248216B - Television screen projection method and device, television screen projection system and computer equipment - Google Patents

Television screen projection method and device, television screen projection system and computer equipment Download PDF

Info

Publication number
CN110248216B
CN110248216B CN201910476642.1A CN201910476642A CN110248216B CN 110248216 B CN110248216 B CN 110248216B CN 201910476642 A CN201910476642 A CN 201910476642A CN 110248216 B CN110248216 B CN 110248216B
Authority
CN
China
Prior art keywords
top box
television set
television
address
set top
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910476642.1A
Other languages
Chinese (zh)
Other versions
CN110248216A (en
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.)
Guangdong Wired Radio And Television Network Co ltd
Original Assignee
Guangdong Wired Radio And Television Network 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 Guangdong Wired Radio And Television Network Co ltd filed Critical Guangdong Wired Radio And Television Network Co ltd
Priority to CN201910476642.1A priority Critical patent/CN110248216B/en
Publication of CN110248216A publication Critical patent/CN110248216A/en
Application granted granted Critical
Publication of CN110248216B publication Critical patent/CN110248216B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25808Management of client data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25866Management of end-user data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/43615Interfacing a Home Network, e.g. for connecting the client to a plurality of peripherals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management 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/4508Management of client data or end-user data

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Graphics (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The application relates to a method and a device for acquiring identification information of a television set top box, a television screen projection system, computer equipment and a storage medium. The method comprises the following steps: receiving an access request of an applet; determining the IP address of the wireless network according to the access request, and identifying the IP address of the wireless network as the IP address of the television set-top box; acquiring identification information of the television set top box corresponding to the IP address; acquiring user information of an application program corresponding to the small application program, taking the user information as a user identifier of an access user, and sending the user identifier and the identification information of the television set top box to the small application program; receiving a screen projection request sent by a small application program, and realizing screen projection operation from a mobile terminal to a target television according to the screen projection request; the target television is a television connected with the television set top box corresponding to the identification information of the target television set top box. By adopting the method, the acquisition flow of the identification information of the television set top box is simplified, and the flexibility of television screen projection is favorably improved.

Description

Television screen projection method and device, television screen projection system and computer equipment
Technical Field
The present application relates to the field of television screen projection technologies, and in particular, to a television screen projection method, an apparatus, a television screen projection system, a computer device, and a storage medium.
Background
With the rapid development of the internet technology, the screen projection technology is also widely developed, and after the television screen projection authorization, a user can project a video watched on the mobile terminal onto the digital television so as to watch the video triggered by the mobile terminal and projected on the digital television.
At present, television screen projection needs to obtain television set-top box identification information associated with a user, and the method for obtaining the television set-top box identification information generally includes that a user registers an account in a corresponding video playing APP in advance, then verification login is performed by inputting the account and a password corresponding to the account, a server corresponding to a client inquires the television set-top box information associated with the user according to a mobile phone number bound by the user who successfully logs in, and then confirms the television set-top box identification information associated with the user, so that relevant television screen projection operation is performed through the television set-top box identification information. However, the process of obtaining the identification information of the television set top box by verifying and logging in through the registered account is complicated, so that the processing time of television screen projection authorization is long, and the flexibility of television screen projection is low.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a television screen projection method, a television screen projection apparatus, a television screen projection system, a computer device, and a storage medium, which can improve flexibility of television screen projection.
A method of television screen projection, the method comprising:
receiving an access request of an applet; the small application program runs in a corresponding application program, and a mobile terminal where the application program is located is connected with a wireless network provided by a television set top box; the access request is sent out through the wireless network;
determining the IP address of the wireless network according to the access request, and identifying the IP address of the wireless network as the IP address of the television set top box;
acquiring identification information of the television set top box corresponding to the IP address;
acquiring user information of an application program corresponding to the applet program, taking the user information as a user identifier of an access user, and sending the user identifier and the identification information of the television set top box to the applet program; the applet is used for identifying the television set top box identification information as target television set top box identification information corresponding to the user identification;
receiving a screen projection request sent by the small application program, and realizing screen projection operation from the mobile terminal to a target television according to the screen projection request; and the target television is the television connected with the television set top box corresponding to the identification information of the target television set top box.
A method for acquiring identification information of a television set top box comprises the following steps:
receiving an access request of an applet; the small application program runs in a corresponding application program, and a mobile terminal where the application program is located is connected with a wireless network provided by a television set top box; the access request is sent out through the wireless network;
determining the IP address of the wireless network according to the access request, and identifying the IP address of the wireless network as the IP address of the television set top box;
acquiring identification information of the television set top box corresponding to the IP address;
and sending the identification information of the television set top box to the applet.
A television screen projection apparatus, the apparatus comprising:
the request receiving module is used for receiving an access request of the applet program; the small application program runs in a corresponding application program, and a mobile terminal where the application program is located is connected with a wireless network provided by a television set top box; the access request is sent out through the wireless network;
the IP address determining module is used for determining the IP address of the wireless network according to the access request and identifying the IP address of the wireless network as the IP address of the television set top box;
the identification information acquisition module is used for acquiring the identification information of the television set top box corresponding to the IP address;
the user identification acquisition module is used for acquiring user information of an application program corresponding to the applet program, taking the user information as a user identification of an access user, and sending the user identification and the identification information of the television set top box to the applet program; the applet is used for identifying the television set top box identification information as target television set top box identification information corresponding to the user identification;
the television screen projection module is used for receiving a screen projection request sent by the small application program and realizing the screen projection operation from the mobile terminal to a target television according to the screen projection request; and the target television is the television connected with the television set top box corresponding to the identification information of the target television set top box.
A television projection system comprising: the mobile terminal is provided with an application program, the server is in communication connection with the mobile terminal and the television set top box respectively, the television set top box is in communication connection with the television, and the mobile terminal is connected with a wireless network provided by the television set top box; the application program runs with an applet program;
the small application program is used for confirming that a video to be screen-projected meets screen-projecting conditions according to the screen-projecting authorization information of the target television, acquiring a playing address of the video to be screen-projected, generating a screen-projecting request according to the playing address of the video to be screen-projected and the identification information of the target television set top box, and sending the screen-projecting request to the server;
the server is used for executing the steps of the television screen projection method;
the television set top box is used for receiving the playing address of the video to be projected sent by the server and sending the playing address of the video to be projected to the television;
and the television is used for playing the corresponding video according to the playing address of the video to be projected.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
receiving an access request of an applet; the small application program runs in a corresponding application program, and a mobile terminal where the application program is located is connected with a wireless network provided by a television set top box; the access request is sent out through the wireless network;
determining the IP address of the wireless network according to the access request, and identifying the IP address of the wireless network as the IP address of the television set top box;
acquiring identification information of the television set top box corresponding to the IP address;
acquiring user information of an application program corresponding to the applet program, taking the user information as a user identifier of an access user, and sending the user identifier and the identification information of the television set top box to the applet program; the applet is used for identifying the television set top box identification information as target television set top box identification information corresponding to the user identification;
receiving a screen projection request sent by the small application program, and realizing screen projection operation from the mobile terminal to a target television according to the screen projection request; and the target television is the television connected with the television set top box corresponding to the identification information of the target television set top box.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
receiving an access request of an applet; the small application program runs in a corresponding application program, and a mobile terminal where the application program is located is connected with a wireless network provided by a television set top box; the access request is sent out through the wireless network;
determining the IP address of the wireless network according to the access request, and identifying the IP address of the wireless network as the IP address of the television set top box;
acquiring identification information of the television set top box corresponding to the IP address;
acquiring user information of an application program corresponding to the applet program, taking the user information as a user identifier of an access user, and sending the user identifier and the identification information of the television set top box to the applet program; the applet is used for identifying the television set top box identification information as target television set top box identification information corresponding to the user identification;
receiving a screen projection request sent by the small application program, and realizing screen projection operation from the mobile terminal to a target television according to the screen projection request; and the target television is the television connected with the television set top box corresponding to the identification information of the target television set top box.
According to the television screen projection method, the television screen projection device, the television screen projection system, the computer equipment and the storage medium, the IP address of the television set-top box is determined according to the access request sent by the small application program through the wireless network provided by the television set-top box; acquiring television set-top box identification information corresponding to the IP address, and sending the television set-top box identification information and a user identification of an access user to the applet so as to trigger the applet to identify the received television set-top box identification information as target television set-top box identification information corresponding to the user identification; the method and the device achieve the purpose of acquiring the corresponding television set top box identification information according to the access request of the applet, and do not need to verify the login process through a complicated registered account number, thereby simplifying the acquisition flow of the television set top box identification information, further shortening the processing time of television screen projection authorization, and being beneficial to improving the flexibility of television screen projection. Meanwhile, the screen projection operation from the mobile terminal to the target television can be realized by receiving the screen projection request sent by the small application program; the target television is the television connected with the television set top box corresponding to the identification information of the target television set top box, and does not need to log in a corresponding screen projection APP, so that the screen projection flexibility of the television is further improved.
Drawings
FIG. 1 is a diagram illustrating an exemplary embodiment of a television screen projection method;
FIG. 2 is a flow chart illustrating a television screen projection method according to an embodiment;
FIG. 3 is a flowchart illustrating a television screen projection method according to another embodiment;
fig. 4 is a schematic flowchart of a method for acquiring identification information of a television set-top box in one embodiment;
FIG. 5 is a block diagram of an embodiment of a television projection apparatus;
FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The television screen projection method provided by the application can be applied to the application environment shown in fig. 1. The application environment comprises a mobile terminal 110 provided with an application program, a server 120, a television set-top box 130 and a television 140, wherein the server 120 is respectively in communication connection with the mobile terminal 110 and the television set-top box 130, the television set-top box 130 is in communication connection with the television 140, and the mobile terminal 110 is connected with a wireless network provided by the television set-top box 130; the application runs with an applet. The applet confirms that the video to be screen-projected meets the screen-projecting condition according to the screen-projecting authorization information of the target television, acquires the playing address of the video to be screen-projected, generates a screen-projecting request according to the playing address of the video to be screen-projected and the identification information of the target television set-top box, and sends the screen-projecting request to the server 120. The server 120 is used for implementing the steps of the television screen projection method according to any embodiment of the present application. The television set-top box 130 receives the playing address of the video to be projected sent by the server 120, and sends the playing address of the video to be projected to the television 140; the television 140 plays the corresponding video according to the playing address of the video to be screened. The mobile terminal 110 may be various smart phones, the application program may be APP, and the applet is a wechat applet; the server 120 may be implemented as a stand-alone server or a server cluster composed of a plurality of servers; the television 140 may be a digital television, a multi-function television, or the like.
In one embodiment, as shown in fig. 2, a television screen projection method is provided, which is described by taking the application of the method to the server in fig. 1 as an example, and includes the following steps:
step S201, receiving an access request of an applet program; the small application program runs in the corresponding application program, and the mobile terminal where the application program is located is connected with a wireless network provided by the television set top box; the access request is issued over a wireless network.
In this step, the applet refers to an application that can be opened for use without installation, and may be run on a corresponding application, for example, a wechat applet that runs on a wechat application. The application program may be an APP, such as a WeChat application, and the mobile terminal may be a smartphone, or the like. The television set top box can provide a wireless network, such as Wifi, in a networking state.
For example, a television set-top box provides a wireless network in a networked state; and when the mobile terminal detects the access point of the wireless network, the mobile terminal accesses the access point of the wireless network according to the wireless network account and the password provided by the television set-top box so as to connect the wireless network. The mobile terminal is provided with a WeChat application, and a WeChat applet which can be used for video playing and remote screen projection, such as a WeChat recommended program applet, runs in the WeChat application; the wechat client opens the wechat applet and triggers to generate an access request; the WeChat applet sends the access request to a corresponding server through a wireless network provided by the television set top box; for example, the wechat applet sends the access request to the program scheduling server through a wireless network provided by the television set-top box, so as to trigger the program scheduling server to send the access request to a corresponding server, for example, a developer server corresponding to the wechat applet. The program scheduling server is a server for forwarding an access request sent by an applet. Therefore, the subsequent server can conveniently determine the IP address of the television set top box based on the access request; meanwhile, the process of verifying and logging in through a complicated registered account is not needed, the acquisition flow of the identification information of the television set top box is further simplified, the processing time of television screen projection authorization is further reduced, and the improvement of the flexibility of television screen projection is facilitated.
And step S202, determining the IP address of the wireless network according to the access request, and identifying the IP address of the wireless network as the IP address of the television set-top box.
In this step, the wireless network has a corresponding IP address; when the television set-top box is in a networking state, the DHCP server can allocate a random IP address to the television set-top box, and the IP address is an IP address of a wireless network provided by the television set-top box.
In the specific implementation, the server analyzes the received access request to obtain the IP address of the wireless network carried by the access request; the IP address of the wireless network is identified as the IP address of the television set-top box providing the wireless network. Therefore, the purpose of determining the IP address of the television set-top box according to the access request of the applet is achieved, and the follow-up server is facilitated to determine the identification information of the television set-top box based on the IP address of the television set-top box.
Step S203, obtaining the identification information of the television set-top box corresponding to the IP address.
In this step, the identification information of the television set-top box refers to information for identifying the identity of the television set-top box, such as a CA card number of the television set-top box; each television set-top box has a unique CA card number.
For example, the server queries the corresponding relationship between the IP address and the identification information of the television set-top box according to the IP address of the television set-top box to obtain the corresponding identification information of the television set-top box; therefore, the purpose of acquiring the corresponding television set top box identification information according to the IP address of the television set top box is achieved.
Step S204, acquiring user information of an application program corresponding to the applet program, taking the user information as a user identifier of an access user, and sending the user identifier and the identification information of the television set-top box to the applet program; and the applet is used for identifying the identification information of the television set top box as the identification information of the target television set top box corresponding to the user identification.
In this step, the user information of the application refers to information for identifying the identity of the user, and the user information of the applet running on the application is consistent with the user information of the application, for example, the user information of the WeChat applet is consistent with the user information of the WeChat application. The user identification of the access user can be the unionID of the wechat user, and the unionID of the wechat user refers to identification information which is distributed by the wechat server for the wechat user and is under the same wechat open platform account. For example, multiple public numbers, applets, subscription numbers, service numbers and other applications are bound to the same WeChat opening platform account, so that the unionids of the same WeChat user are the same for different applications under the same WeChat opening platform account, that is, the unionids are used for distinguishing the uniqueness of different applications of the WeChat user under the same WeChat opening platform account.
In specific implementation, the server acquires user information of an application program corresponding to a small application program, such as a unionID of a wechat user, based on a big data technology, and uses the user information as a user identifier of an access user; and sending the user identification of the access user and the identification information of the television set top box to the small application program so as to trigger the small application program to identify the identification information of the television set top box as the identification information of the target television set top box corresponding to the user identification, namely binding the user identification and the corresponding identification information of the television set top box through the small application program and storing the identification information of the target television set top box, thereby completing the television screen projection authorization of the access user.
Step S205, receiving a screen projection request sent by the small application program, and realizing the screen projection operation from the mobile terminal to the target television according to the screen projection request; the target television is a television connected with the television set top box corresponding to the identification information of the target television set top box.
In this step, the screen projection operation may be a television screen projection operation, a picture screen projection operation, or the like; the target television can be a digital television, a multifunctional television and the like, and is connected with the television set top box corresponding to the identification information of the target television set top box.
In specific implementation, the small application program generates a screen projection request according to the triggering operation of an access user, and sends the generated screen projection request to a corresponding server; the server realizes screen projection operation from the mobile terminal to the target television according to the screen projection request, realizes the screen projection request sent according to the applet, can realize screen projection operation from the mobile terminal to the target television, does not need to log in a corresponding screen projection APP, and further improves the flexibility of television screen projection.
In the television screen projection method, the IP address of the television set-top box is determined according to an access request sent by the small application program through a wireless network provided by the television set-top box; acquiring television set-top box identification information corresponding to the IP address, and sending the television set-top box identification information and a user identification of an access user to the applet so as to trigger the applet to identify the received television set-top box identification information as target television set-top box identification information corresponding to the user identification; the method and the device achieve the purpose of acquiring the corresponding television set top box identification information according to the access request of the applet, and do not need to verify the login process through a complicated registered account number, thereby simplifying the acquisition flow of the television set top box identification information, further shortening the processing time of television screen projection authorization, and being beneficial to improving the flexibility of television screen projection. Meanwhile, the screen projection operation from the mobile terminal to the target television can be realized by receiving the screen projection request sent by the small application program; the target television is the television connected with the television set top box corresponding to the identification information of the target television set top box, and does not need to log in a corresponding screen projection APP, so that the screen projection flexibility of the television is further improved.
In an embodiment, the step S202, determining an IP address of the wireless network according to the access request, includes: acquiring a preset function; and analyzing the access request according to a preset function to obtain an IP address carried by the access request, and identifying the IP address as the IP address of the wireless network.
In this embodiment, the preset function is a function that can parse the access request to obtain a real IP address carried by the access request, for example, request. The server collects preset functions in advance and stores the collected preset functions into a corresponding function library; when the function needs to be called, the corresponding preset function is directly called from the function library, the received access request is analyzed according to the preset function, the real IP address carried by the access request is obtained, and the real IP address is identified as the IP address of the wireless network provided by the television set top box. Through the embodiment, the purpose of determining the IP address of the wireless network according to the access request of the applet is achieved, and the method is beneficial for a subsequent server to determine the IP address of the television set-top box based on the IP address of the wireless network.
In an embodiment, the step S203 of acquiring the identification information of the television set-top box corresponding to the IP address includes: acquiring a television set top box MAC address corresponding to the IP address; and inquiring the corresponding relation between the preset television set-top box MAC address and the television set-top box identification information to obtain the television set-top box identification information corresponding to the television set-top box MAC address.
In this embodiment, the MAC address of the tv set-top box refers to a physical address of the tv set-top box, and is preset; each television set-top box has a fixed MAC address.
In the specific implementation, the server acquires a television set top box MAC address corresponding to the IP address of the television set top box in advance based on a big data technology, and constructs a preset corresponding relation between the IP address of the television set top box and the television set top box MAC address according to the television set top box MAC address corresponding to the IP address of the television set top box; the server also acquires television set-top box identification information and a television set-top box MAC address corresponding to the television set-top box of the user in advance based on a big data technology, and constructs a preset corresponding relation between the television set-top box MAC address and the television set-top box identification information according to the television set-top box identification information and the television set-top box MAC address corresponding to the television set-top box of the user. Based on the method, the server inquires the corresponding relation between the preset IP address of the television set top box and the MAC address of the television set top box according to the IP address of the television set top box to obtain the corresponding MAC address of the television set top box; and inquiring the preset corresponding relation between the television set-top box MAC address and the television set-top box identification information according to the television set-top box MAC address to obtain the corresponding television set-top box identification information. Therefore, the purpose of obtaining the identification information of the television set top box is achieved, verification login through a complicated registered account is not needed, the process of obtaining the identification information of the television set top box is achieved, the processing time of television screen projection authorization is further shortened, and the flexibility of television screen projection is improved.
Further, acquiring the corresponding television set-top box identification information based on the television set-top box MAC address can also be achieved by: acquiring television set-top box identification information corresponding to the MAC address of the television set-top box by inquiring a preset identification library; the preset identification database stores television set-top box identification information corresponding to the television set-top box MAC address.
For example, the server collects television set-top box identification information and a television set-top box MAC address corresponding to a television set-top box of a user in advance based on a big data technology, and stores the collected television set-top box identification information into a preset identification library in a classified manner according to the television set-top box MAC address corresponding to the television set-top box, so as to store the television set-top box identification information corresponding to the television set-top box MAC address through the preset identification library. The server extracts a plurality of known television set top box MAC addresses from a preset identification library, matches the acquired television set top box MAC addresses with the known television set top box MAC addresses, extracts television set top box identification information corresponding to the known television set top box MAC addresses from the preset identification library if the acquired television set top box MAC addresses are matched with the known television set top box MAC addresses, and identifies the television set top box identification information as television set top box identification information corresponding to the acquired television set top box MAC addresses; therefore, the purpose of obtaining the identification information of the television set top box is achieved, verification login through a complicated registered account is not needed, the process of obtaining the identification information of the television set top box is achieved, the processing time of television screen projection authorization is further shortened, and the flexibility of television screen projection is improved.
In one embodiment, obtaining the MAC address of the television set-top box corresponding to the IP address comprises: inquiring a preset database to obtain a television set top box MAC address corresponding to the IP address; the preset database stores the television set-top box MAC address corresponding to the IP address.
For example, the server queries a database storing television set-top box MAC addresses corresponding to a plurality of IP addresses according to the IP address of the television set-top box to obtain the corresponding television set-top box MAC address; and the corresponding television set top box identification information can be conveniently obtained based on the television set top box MAC address.
Furthermore, the server can also access a DHCP server, and the DHCP server log of the DHCP server records the corresponding relation between the IP address of the television set-top box and the MAC address of the television set-top box at each time in real time; and acquiring the corresponding relation between the IP address of the television set-top box and the MAC address of the television set-top box from the DHCP server log, and storing the corresponding relation between the IP address of the television set-top box and the MAC address of the television set-top box into a preset database. The server inquires a preset database according to the IP address of the television set-top box, determines the latest updating time of the IP address of the television set-top box from the preset database, and takes the television set-top box MAC address corresponding to the IP address of the television set-top box at the latest updating time as the obtained television set-top box MAC address. Therefore, the subsequent server can obtain the corresponding television set-top box identification information based on the television set-top box MAC address.
In another embodiment, obtaining the MAC address of the television set-top box corresponding to the IP address further comprises: sending the IP address to a DHCP server; the DHCP server is used for inquiring a preset DHCP server log according to the IP address to obtain a corresponding television set-top box MAC address; the preset DHCP server log stores the television set-top box MAC address corresponding to the IP address; and receiving the television set-top box MAC address returned by the DHCP server.
In this embodiment, the DHCP server refers to a server capable of recording a correspondence between an IP address and a MAC address of a television set-top box in real time.
In the specific implementation, the server generates a query request according to the IP address and sends the query request to the DHCP server; and the DHCP server inquires a DHCP server log according to the received inquiry request, acquires the television set-top box MAC address corresponding to the IP address and returns the television set-top box MAC address to the server. Therefore, the subsequent server can obtain the corresponding television set-top box identification information based on the television set-top box MAC address.
In an embodiment, in step S204, the obtaining user information of the application program corresponding to the applet, as a user identifier of the access user, includes: receiving an authorized login request sent by an applet; generating a calling request according to the authorized login request, and sending the calling request to a target server; the calling request is used for triggering the target server to acquire user information of an application program corresponding to the small application program according to the calling request, and the user information is used as a user identifier of the access user; and receiving the user identification of the access user returned by the target server.
In this embodiment, the target server is a wechat server, the applet is a wechat applet, and the user identifier is a unionID of the wechat user.
In the specific implementation, the mobile terminal is provided with a wechat application, and a wechat applet which can be used for video playing and remote screen projection, such as a wechat recommended program applet, runs in the wechat application. The wechat user opens the wechat applet, and the wechat applet automatically loads a wechat authorization interface to prompt the wechat user to perform wechat authorization operation; clicking a wechat authorization interface by a wechat user, carrying out wechat authorization operation, and triggering to generate an authorization login request; the wechat applet detects an authorized login request triggered by a wechat user, and sends the authorized login request to the server; the server generates a corresponding calling request according to the authorized login request and sends the generated calling request to the WeChat server; the WeChat server searches a library file of the WeChat according to the call request, acquires the unioniID of the WeChat user of the WeChat application corresponding to the WeChat applet from the library file of the WeChat, takes the unioniID as the user identifier of the access user (namely the WeChat user authorized to log in currently), and sends the user identifier of the access user to the server. Therefore, the purpose of obtaining the user identification of the access user according to the authorized login request triggered by the wechat user is achieved, the user identification is conveniently sent to the small application program subsequently, the small application program is triggered to associate the user identification with the corresponding television set top box identification information, the television screen-casting authorization of the user is completed, the defect that the television screen-casting authorization efficiency is low due to the fact that verification login is performed through a complicated registered account number is overcome, the television screen-casting authorization is completed, and the flexibility of television screen casting is further improved.
In an embodiment, before sending the user identifier and the identification information of the television set-top box to the applet, step S204 further includes: inquiring a preset information base to obtain television set-top box authority information corresponding to the television set-top box identification information; the preset information base stores television set-top box authority information corresponding to the television set-top box identification information; and identifying the identification information of the television set top box and the corresponding authority information of the television set top box as television screen projection authorization information.
In this embodiment, the identification information of the television set-top box corresponds to the authority information of the television set-top box one by one; the television set-top box permission information is used for identifying the permission information of the television set-top box corresponding to the television set-top box identification information, such as a playing channel permission, a playing definition permission and the like.
In the specific implementation, the server collects the television set top box authority information of the user in advance based on a big data technology, and stores the collected television set top box authority information into a preset information base in a classified manner according to the television set top box identification information corresponding to the television set top box, so that the television set top box authority information corresponding to the television set top box identification information is stored through the preset information base. The server extracts a plurality of known television set top box identification information from a preset database, matches the acquired television set top box identification information with the known television set top box identification information, if the acquired television set top box identification information is matched with the known television set top box identification information, extracts television set top box authority information corresponding to the known television set top box identification information from the preset information base, and identifies the television set top box authority information as the television set top box authority information corresponding to the acquired television set top box identification information; and identifying the identification information of the television set-top box and the corresponding authority information of the television set-top box as television screen projection authorization information. Therefore, the purpose of acquiring the authority information of the television set top box according to the identification information of the television set top box is achieved, the process of acquiring the authority information of the television set top box by verifying and logging through a complicated registered account is not needed, and the flexibility of television screen projection is further improved.
In an embodiment, the step S204 of sending the user identifier and the identification information of the television set-top box to the applet includes: sending the user identification and the television screen projection authorization information to the small application program; and the small application program is used for identifying the television screen projection authorization information as the target television screen projection authorization information corresponding to the user identification.
For example, the server sends the user identification and television screen projection authorization information to the small application program; the small application program identifies the television screen projection authorization information as target television screen projection authorization information corresponding to the user identification, namely the user identification and the corresponding target television screen projection authorization information are bound through the small application program, and the target television screen projection authorization information is stored, so that the television screen projection authorization of the access user is completed. Through the embodiment, the purpose of obtaining the television screen-casting authorization information is achieved, the television screen-casting authorization of an access user can be completed quickly, the process of verifying and logging in through a complicated registered account is not needed, the processing flow of the television screen-casting authorization is simplified, the processing time of the television screen-casting authorization is shortened, and the flexibility of the television screen-casting is improved.
In an embodiment, in step S205, receiving a screen-casting request sent by the applet, and implementing a screen-casting operation from the mobile terminal to the target television according to the screen-casting request includes: receiving a screen projection request sent by a small application program; the small application program is used for confirming that the video to be subjected to screen projection meets the screen projection condition according to the screen projection authorization information of the target television, acquiring the playing address of the video to be subjected to screen projection, and generating a screen projection request according to the playing address of the video to be subjected to screen projection and the identification information of the target television set top box; according to the screen projection request, obtaining a playing address of a video to be projected and identification information of a target television set top box; sending the playing address of the video to be projected to a television set top box corresponding to the identification information of the target television set top box; the television set top box is used for sending the playing address of the video to be projected to the target television so as to trigger the target television to play the corresponding video according to the playing address of the video to be projected.
In this embodiment, the target television refers to a television connected to a television set-top box corresponding to the identification information of the target television set-top box, and may be a digital television, a multifunctional television, or the like; of course, the target television may also be a display, such as a cathode ray tube display (CRT), a Liquid Crystal Display (LCD), a Plasma Display Panel (PDP), a digital light processing Display (DLP), a light emitting diode display (OLED), etc.; the screen projection condition is used for identifying that the playing permission information of the video to be projected meets the corresponding television screen projection authorization information, for example, if the playing permission information of the video to be projected is a high-definition channel and the television screen projection authorization information is also a high-definition channel, it indicates that the video to be projected meets the screen projection condition.
For example, a screen projection button is displayed on a current video playing interface of the WeChat applet, and a WeChat user clicks the screen projection button to trigger and generate a screen projection operation instruction for a video to be projected; the WeChat small program receives the screen projection operation instruction and analyzes the screen projection operation instruction to obtain a to-be-projected screen video triggered by a WeChat user; acquiring the screen projection authorization information of the target television of the WeChat user, and extracting the identification information of the target television set top box of the WeChat user and the authority information of the television set top box from the television screen projection authorization information; acquiring the play permission information of a video to be screen-projected, matching the play permission information of the video to be screen-projected with the permission information of the television set top box, and if the play permission information of the video to be screen-projected is matched with the permission information of the television set top box, confirming that the video to be screen-projected meets the screen-projection condition; the method comprises the steps of obtaining a playing address of a video to be screen-projected, generating a screen-projecting request according to the playing address of the video to be screen-projected and identification information of a target television set top box, and sending the screen-projecting request to a server. The server analyzes the screen projection request to obtain a playing address of a video to be projected and identification information of a target television set top box; and sending the playing address of the video to be projected to the television set top box corresponding to the identification information of the target television set top box. The television set top box is used for sending the playing address of the video to be projected to a target television; the target television accesses the cloud server storing the playing video corresponding to the playing address according to the playing address of the video to be projected on the screen, obtains the corresponding playing video, and plays the playing video.
In addition, if the playing permission information of the video to be screen-projected is not matched with the permission information of the television set-top box, the server confirms that the video to be screen-projected does not meet the screen-projection condition, and the WeChat applet displays screen-projection failure information to remind the WeChat user of screen-projection failure.
Further, after receiving the playing address of the video to be projected, the television set top box can also access the cloud server storing the playing video corresponding to the playing address according to the playing address of the video to be projected to obtain the corresponding playing video, and send the playing video to the target television so as to trigger the target television to play the playing video.
It should be noted that, when the screen projection operation is performed, the mobile terminal where the wechat applet is located and the television set-top box or the target television do not need to be connected to the same network. In addition, besides television screen projection, screen projection of pictures, document information and the like can be performed, the principle of the screen projection is the same as that of the television screen projection, and details are not repeated in the application.
Through this embodiment, the following effects can be achieved: (1) the mobile terminal and the target television do not need to be connected with the same network, and the flexibility of television screen projection is improved. (2) The remote screen-casting operation can be realized no matter at home or in a company, the favorite television programs can be cast for the old or children at home at any time and any place, and the flexibility of television screen casting is further improved.
In another embodiment, as shown in fig. 3, another television screen projection method is provided, comprising the steps of:
step S301, receiving an access request of an applet; the small application program runs in the corresponding application program, and the mobile terminal of the application program is connected with a wireless network provided by the television set-top box; an access request is issued over the wireless network.
Step S302, according to the access request, determining the IP address of the wireless network, and identifying the IP address of the wireless network as the IP address of the television set-top box.
And step S303, acquiring the television set-top box MAC address corresponding to the IP address.
Step S304, inquiring the corresponding relation between the preset television set-top box MAC address and the television set-top box identification information to obtain the television set-top box identification information corresponding to the television set-top box MAC address.
Step S305, obtains the user information of the application corresponding to the applet as the user identifier of the access user.
Step S306, inquiring a preset information base to obtain television set-top box authority information corresponding to the television set-top box identification information; the preset information base stores television set-top box authority information corresponding to the television set-top box identification information.
Step S307, identifying the identification information of the television set top box and the corresponding authority information of the television set top box as television screen projection authorization information; sending the user identification and the television screen projection authorization information to the small application program; and the small application program is used for identifying the television screen projection authorization information as the target television screen projection authorization information corresponding to the user identification.
Step S308, receiving a screen projection request sent by the small application program, and realizing screen projection operation from the mobile terminal to the target television according to the screen projection request; the target television is a television connected with the television set top box corresponding to the identification information of the target television set top box.
According to the television screen-casting method, the purpose that the corresponding television set top box identification information can be obtained according to the access request of the small application program is achieved, the process of verifying and logging in through a complicated registered account is not needed, the obtaining process of the television set top box identification information is simplified, the processing time of television screen-casting authorization is shortened, and the improvement of the flexibility of television screen casting is facilitated. Meanwhile, the screen projection operation from the mobile terminal to the target television can be realized by receiving the screen projection request sent by the small application program; the target television is the television connected with the television set top box corresponding to the identification information of the target television set top box, and does not need to log in a corresponding screen projection APP, so that the screen projection flexibility of the television is further improved.
In one embodiment, as shown in fig. 4, there is provided a method for acquiring identification information of a television set-top box, including the following steps:
step S401, receiving an access request of an applet program; the small application program runs in the corresponding application program, and the mobile terminal where the application program is located is connected with a wireless network provided by the television set top box; an access request is issued over the wireless network.
And step S402, determining the IP address of the wireless network according to the access request, and identifying the IP address of the wireless network as the IP address of the television set-top box.
And step S403, acquiring the identification information of the television set-top box corresponding to the IP address.
And step S404, sending the identification information of the television set-top box to the applet program.
According to the method for acquiring the identification information of the television set top box, the IP address of the television set top box is determined according to an access request sent by an applet through a wireless network provided by the television set top box; acquiring television set-top box identification information corresponding to the IP address, and sending the television set-top box identification information to the applet; the method and the device achieve the purpose of acquiring the corresponding television set top box identification information according to the access request of the applet, and do not need to verify the login process through a complicated registered account number, thereby simplifying the acquisition flow of the television set top box identification information, further shortening the processing time of television screen projection authorization, and being beneficial to improving the flexibility of television screen projection.
In one embodiment, the step S404 before sending the identification information of the television set-top box to the applet includes: inquiring a preset information base to obtain television set-top box authority information corresponding to the television set-top box identification information; the preset information base stores television set-top box authority information corresponding to the television set-top box identification information; and identifying the identification information of the television set top box and the corresponding authority information of the television set top box as television screen projection authorization information. Therefore, the purpose of acquiring the authority information of the television set top box according to the identification information of the television set top box is achieved, the process of acquiring the authority information of the television set top box by verifying and logging through a complicated registered account is not needed, and the flexibility of television screen projection is further improved.
In an embodiment, the step S404 of sending the identification information of the television set-top box to the applet includes: and sending the television screen projection authorization information to the small application program. Therefore, the purpose of obtaining the television screen-casting authorization information is achieved, the small application program is favorable for storing the received television screen-casting authorization information, the subsequent binding of the television screen-casting authorization information and the corresponding user identification is facilitated, the television screen-casting authorization is completed, and the flexibility of television screen casting is further improved.
In an embodiment, the step S404, after sending the television screen-projection authorization information to the applet, further includes: acquiring user information of an application program corresponding to the small application program as a user identifier of an access user; sending the user identification to the applet; and the small application program is used for identifying the television screen projection authorization information as the target television screen projection authorization information corresponding to the user identification. The user identification and the corresponding target television screen projection authorization information are bound through the small application program, and the target television screen projection authorization information is stored, so that television screen projection authorization of an access user is completed. Through the embodiment, the television screen-casting authorization of the access user can be completed quickly, the process of verifying and logging in through a complicated registered account is not needed, so that the processing flow of the television screen-casting authorization is simplified, the processing time of the television screen-casting authorization is shortened, and the flexibility of the television screen-casting is improved.
It should be understood that although the various steps in the flow charts of fig. 2-4 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-4 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 5, there is provided a television projection apparatus, including: a request receiving module 510, an IP address determining module 520, an identification information obtaining module 530, a user identification obtaining module 540, and a television screen-casting module 550, wherein:
a request receiving module 510, configured to receive an access request of an applet; the small application program runs in the corresponding application program, and the mobile terminal where the application program is located is connected with a wireless network provided by the television set top box; an access request is issued over the wireless network.
And an IP address determining module 520, configured to determine an IP address of the wireless network according to the access request, and identify the IP address of the wireless network as an IP address of the television set-top box.
And an identification information obtaining module 530, configured to obtain the identification information of the television set-top box corresponding to the IP address.
The user identifier obtaining module 540 is configured to obtain user information of an application program corresponding to the applet, serve as a user identifier of an access user, and send the user identifier and the identification information of the television set-top box to the applet; and the applet is used for identifying the identification information of the television set top box as the identification information of the target television set top box corresponding to the user identification.
The television screen-projecting module 550 is configured to receive a screen-projecting request sent by the applet, and implement screen-projecting operation from the mobile terminal to the target television according to the screen-projecting request; the target television is a television connected with the television set top box corresponding to the identification information of the target television set top box.
In one embodiment, the IP address determining module is further configured to obtain a preset function; and analyzing the access request according to a preset function to obtain an IP address carried by the access request, and identifying the IP address as the IP address of the wireless network.
In one embodiment, the identification information obtaining module is further configured to obtain a television set-top box MAC address corresponding to the IP address; and inquiring the corresponding relation between the preset television set-top box MAC address and the television set-top box identification information to obtain the television set-top box identification information corresponding to the television set-top box MAC address.
In one embodiment, the identification information obtaining module is further configured to query a preset database to obtain a television set-top box MAC address corresponding to the IP address; the preset database stores the television set-top box MAC address corresponding to the IP address.
In one embodiment, the identification information obtaining module is further configured to send the IP address to a DHCP server; the DHCP server is used for inquiring a preset DHCP server log according to the IP address to obtain a corresponding television set-top box MAC address; the preset DHCP server log stores the television set-top box MAC address corresponding to the IP address; and receiving the television set-top box MAC address returned by the DHCP server.
In one embodiment, the user identifier obtaining module is further configured to receive an authorized login request sent by the applet; generating a calling request according to the authorized login request, and sending the calling request to a target server; the calling request is used for triggering the target server to acquire user information of an application program corresponding to the small application program according to the calling request, and the user information is used as a user identifier of the access user; and receiving the user identification of the access user returned by the target server.
In one embodiment, the television screen projection device further comprises an authority information acquisition module, which is used for inquiring a preset information base before the user identification acquisition module sends the user identification and the identification information of the television set-top box to the applet program, and acquiring the authority information of the television set-top box corresponding to the identification information of the television set-top box; the preset information base stores television set-top box authority information corresponding to the television set-top box identification information; and identifying the identification information of the television set top box and the corresponding authority information of the television set top box as television screen projection authorization information.
In one embodiment, the user identifier obtaining module is further configured to send the user identifier and the television screen-casting authorization information to the applet; and the small application program is used for identifying the television screen projection authorization information as the target television screen projection authorization information corresponding to the user identification.
In one embodiment, the television screen projection module is further configured to receive a screen projection request sent by the applet; the small application program is used for confirming that the video to be subjected to screen projection meets the screen projection condition according to the screen projection authorization information of the target television, acquiring the playing address of the video to be subjected to screen projection, and generating a screen projection request according to the playing address of the video to be subjected to screen projection and the identification information of the target television set top box; according to the screen projection request, obtaining a playing address of a video to be projected and identification information of a target television set top box; sending the playing address of the video to be projected to a television set top box corresponding to the identification information of the target television set top box; the television set top box is used for sending the playing address of the video to be projected to the target television so as to trigger the target television to play the corresponding video according to the playing address of the video to be projected.
In the embodiments, the television screen projection device determines the IP address of the television set-top box according to the access request sent by the applet through the wireless network provided by the television set-top box; acquiring television set-top box identification information corresponding to the IP address, and sending the television set-top box identification information and a user identification of an access user to the applet so as to trigger the applet to identify the received television set-top box identification information as target television set-top box identification information corresponding to the user identification; the method and the device achieve the purpose of acquiring the corresponding television set top box identification information according to the access request of the applet, and do not need to verify the login process through a complicated registered account number, thereby simplifying the acquisition flow of the television set top box identification information, further shortening the processing time of television screen projection authorization, and being beneficial to improving the flexibility of television screen projection. Meanwhile, the screen projection operation from the mobile terminal to the target television can be realized by receiving the screen projection request sent by the small application program; the target television is the television connected with the television set top box corresponding to the identification information of the target television set top box, and does not need to log in a corresponding screen projection APP, so that the screen projection flexibility of the television is further improved.
For specific limitations of the television screen projection device, reference may be made to the above limitations of the television screen projection method, which are not described herein again. All or part of each module in the television screen projection device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, as shown in fig. 1, there is provided a television projection system comprising: the mobile terminal 110, the server 120, the television set-top box 130 and the television 140 are provided with application programs, the server 120 is respectively in communication connection with the mobile terminal 110 and the television set-top box 130, the television set-top box 130 is in communication connection with the television 140, and the mobile terminal 110 is connected with a wireless network provided by the television set-top box 130; the application program runs with an applet program;
the small application program is used for confirming that the video to be screen-projected meets the screen-projecting condition according to the screen-projecting authorization information of the target television, acquiring the playing address of the video to be screen-projected, generating a screen-projecting request according to the playing address of the video to be screen-projected and the identification information of the target television set-top box, and sending the screen-projecting request to the server 120;
a server 120, configured to perform the steps of the television screen projection method according to any embodiment of the present application;
the television set-top box 130 is configured to receive a play address of a video to be screened, which is sent by the server 120, and send the play address of the video to be screened to the television 140;
and the television 140 is used for playing the corresponding video according to the playing address of the video to be screened.
Wherein the applet may be a WeChat applet; the application program can be WeChat application, and the mobile terminal can be a smart phone; the television is a television connected with the television set-top box corresponding to the identification information of the target television set-top box and can be a digital television, a multifunctional television and the like; but may also be a cathode ray tube display (CRT), Liquid Crystal Display (LCD), Plasma Display (PDP), digital light processing Display (DLP), light emitting diode display (OLED), etc.
According to the television screen-casting system, the purpose that the corresponding television set top box identification information can be obtained according to the access request of the small application program is achieved, the process of verifying and logging in through a complicated registered account is not needed, the obtaining process of the television set top box identification information is simplified, the processing time of television screen-casting authorization is shortened, and the improvement of the flexibility of television screen casting is facilitated.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer equipment is used for storing data such as the IP address of the television set-top box, the identification information of the television set-top box and the like. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a television screen projection method.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, there is provided a computer device comprising a memory storing a computer program and a processor implementing the following steps when the processor executes the computer program:
receiving an access request of an applet; the small application program runs in the corresponding application program, and the mobile terminal where the application program is located is connected with a wireless network provided by the television set top box; the access request is sent out through a wireless network;
determining the IP address of the wireless network according to the access request, and identifying the IP address of the wireless network as the IP address of the television set-top box;
acquiring identification information of the television set top box corresponding to the IP address;
acquiring user information of an application program corresponding to the small application program, taking the user information as a user identifier of an access user, and sending the user identifier and the identification information of the television set top box to the small application program; the applet is used for identifying the identification information of the television set top box as the identification information of a target television set top box corresponding to the user identification;
receiving a screen projection request sent by a small application program, and realizing screen projection operation from a mobile terminal to a target television according to the screen projection request; the target television is a television connected with the television set top box corresponding to the identification information of the target television set top box.
In the embodiment, the computer device realizes the purpose of acquiring the corresponding identification information of the television set top box according to the access request of the applet through the computer program running on the processor, and does not need to verify the login process through a complicated registered account number, so that the acquisition flow of the identification information of the television set top box is simplified, the processing time of television screen projection authorization is shortened, and the improvement of the flexibility of television screen projection is facilitated.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
receiving an access request of an applet; the small application program runs in the corresponding application program, and the mobile terminal where the application program is located is connected with a wireless network provided by the television set top box; the access request is sent out through a wireless network;
determining the IP address of the wireless network according to the access request, and identifying the IP address of the wireless network as the IP address of the television set-top box;
acquiring identification information of the television set top box corresponding to the IP address;
acquiring user information of an application program corresponding to the small application program, taking the user information as a user identifier of an access user, and sending the user identifier and the identification information of the television set top box to the small application program; the applet is used for identifying the identification information of the television set top box as the identification information of a target television set top box corresponding to the user identification;
receiving a screen projection request sent by a small application program, and realizing screen projection operation from a mobile terminal to a target television according to the screen projection request; the target television is a television connected with the television set top box corresponding to the identification information of the target television set top box.
In the embodiment, the computer-readable storage medium realizes the purpose of acquiring the corresponding identification information of the television set top box according to the access request of the applet through the stored computer program, and does not need to verify and log in through a complicated registered account number, so that the acquisition flow of the identification information of the television set top box is simplified, the processing time of television screen projection authorization is shortened, and the flexibility of television screen projection is improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (14)

1. A television screen projection method is characterized by comprising the following steps:
receiving an access request of an applet; the small application program runs in a corresponding application program, and a mobile terminal where the application program is located is connected with a wireless network provided by a television set top box; the access request is sent out through the wireless network; the applet is a WeChat applet;
determining the IP address of the wireless network according to the access request, and identifying the IP address of the wireless network as the IP address of the television set top box;
acquiring identification information of the television set top box corresponding to the IP address;
acquiring user information of an application program corresponding to the applet program, taking the user information as a user identifier of an access user, and sending the user identifier and the identification information of the television set top box to the applet program; the applet is used for identifying the television set top box identification information as target television set top box identification information corresponding to the user identification;
receiving a screen projection request sent by the small application program, and realizing screen projection operation from the mobile terminal to a target television according to the screen projection request; and the target television is the television connected with the television set top box corresponding to the identification information of the target television set top box.
2. The method of claim 1, wherein determining the IP address of the wireless network based on the access request comprises:
acquiring a preset function;
and analyzing the access request according to the preset function to obtain an IP address carried by the access request, and identifying the IP address as the IP address of the wireless network.
3. The method of claim 1, wherein the obtaining television set-top box identification information corresponding to the IP address comprises:
acquiring a television set top box MAC address corresponding to the IP address;
and inquiring the corresponding relation between the preset television set-top box MAC address and the television set-top box identification information to obtain the television set-top box identification information corresponding to the television set-top box MAC address.
4. The method of claim 3, wherein the obtaining the television set-top box MAC address corresponding to the IP address comprises:
inquiring a preset database to obtain a television set top box MAC address corresponding to the IP address; the preset database stores the television set top box MAC address corresponding to the IP address;
and/or the presence of a gas in the gas,
sending the IP address to a DHCP server; the DHCP server is used for inquiring a preset DHCP server log according to the IP address to obtain a corresponding television set top box MAC address; the preset DHCP server log stores the television set top box MAC address corresponding to the IP address;
and receiving the television set-top box MAC address returned by the DHCP server.
5. The method according to claim 1, wherein the obtaining user information of the application corresponding to the applet as a user identifier of the access user comprises:
receiving an authorized login request sent by the applet;
generating a calling request according to the authorized login request, and sending the calling request to a target server; the calling request is used for triggering the target server to acquire user information of an application program corresponding to the applet program according to the calling request, and the user information is used as a user identifier of an access user;
and receiving the user identification of the access user returned by the target server.
6. The method of claim 1, further comprising, prior to sending the user identification and the television set-top box identification information to the applet:
inquiring a preset information base to obtain television set top box authority information corresponding to the television set top box identification information; the preset information base stores television set-top box authority information corresponding to the television set-top box identification information;
identifying the television set top box identification information and the corresponding television set top box authority information as television screen projection authorization information;
the sending the user identifier and the identification information of the television set-top box to the applet comprises:
sending the user identification and the television screen projection authorization information to the small application program; and the small application program is used for identifying the television screen projection authorization information as the target television screen projection authorization information corresponding to the user identification.
7. The method according to claim 6, wherein the receiving of the screen-casting request sent by the applet, and implementing the screen-casting operation from the mobile terminal to the target television according to the screen-casting request comprises:
receiving a screen projection request sent by the small application program; the small application program is used for confirming that a video to be subjected to screen projection meets screen projection conditions according to the target television screen projection authorization information, acquiring a playing address of the video to be subjected to screen projection, and generating the screen projection request according to the playing address of the video to be subjected to screen projection and the identification information of the target television set top box;
according to the screen projection request, obtaining a playing address of the video to be projected and the identification information of the target television set top box;
sending the playing address of the video to be projected to a television set top box corresponding to the identification information of the target television set top box; the television set top box is used for sending the playing address of the video to be projected to a target television so as to trigger the target television to play the corresponding video according to the playing address of the video to be projected.
8. A method for acquiring identification information of a television set-top box is characterized by comprising the following steps:
receiving an access request of an applet; the small application program runs in a corresponding application program, and a mobile terminal where the application program is located is connected with a wireless network provided by a television set top box; the access request is sent out through the wireless network; the applet is a WeChat applet;
determining the IP address of the wireless network according to the access request, and identifying the IP address of the wireless network as the IP address of the television set top box;
acquiring identification information of the television set top box corresponding to the IP address;
and sending the identification information of the television set top box to the applet.
9. The method of claim 8, prior to sending the television set-top box identification information to the applet, comprising:
inquiring a preset information base to obtain television set top box authority information corresponding to the television set top box identification information; the preset information base stores television set-top box authority information corresponding to the television set-top box identification information;
identifying the television set top box identification information and the corresponding television set top box authority information as television screen projection authorization information;
the sending the television set-top box identification information to the applet comprises:
and sending the television screen projection authorization information to the small application program.
10. The method of claim 9, further comprising, after sending the television screen-casting authorization information to the applet:
acquiring user information of an application program corresponding to the small application program as a user identifier of an access user;
sending the user identification to the applet; and the small application program is used for identifying the television screen projection authorization information as the target television screen projection authorization information corresponding to the user identification.
11. A television screen projection apparatus, the apparatus comprising:
the request receiving module is used for receiving an access request of the applet program; the small application program runs in a corresponding application program, and a mobile terminal where the application program is located is connected with a wireless network provided by a television set top box; the access request is sent out through the wireless network; the applet is a WeChat applet;
the IP address determining module is used for determining the IP address of the wireless network according to the access request and identifying the IP address of the wireless network as the IP address of the television set top box;
the identification information acquisition module is used for acquiring the identification information of the television set top box corresponding to the IP address;
the user identification acquisition module is used for acquiring user information of an application program corresponding to the applet program, taking the user information as a user identification of an access user, and sending the user identification and the identification information of the television set top box to the applet program; the applet is used for identifying the television set top box identification information as target television set top box identification information corresponding to the user identification;
the television screen projection module is used for receiving a screen projection request sent by the small application program and realizing the screen projection operation from the mobile terminal to a target television according to the screen projection request; and the target television is the television connected with the television set top box corresponding to the identification information of the target television set top box.
12. A television screen projection system, comprising: the mobile terminal is provided with an application program, the server is in communication connection with the mobile terminal and the television set top box respectively, the television set top box is in communication connection with the television, and the mobile terminal is connected with a wireless network provided by the television set top box; the application program runs with an applet program; the applet is a WeChat applet;
the small application program is used for confirming that the video to be screen-projected meets the screen-projecting condition according to the screen-projecting authorization information of the target television, acquiring the playing address of the video to be screen-projected, generating a screen-projecting request according to the playing address of the video to be screen-projected and the identification information of the target television set top box, and sending the screen-projecting request to the server;
the server for performing the steps of the method of any one of claims 1 to 10;
the television set top box is used for receiving the playing address of the video to be projected sent by the server and sending the playing address of the video to be projected to the television;
and the television is used for playing the corresponding video according to the playing address of the video to be projected.
13. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor realizes the steps of the method of any one of claims 1 to 10 when executing the computer program.
14. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 10.
CN201910476642.1A 2019-06-03 2019-06-03 Television screen projection method and device, television screen projection system and computer equipment Active CN110248216B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910476642.1A CN110248216B (en) 2019-06-03 2019-06-03 Television screen projection method and device, television screen projection system and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910476642.1A CN110248216B (en) 2019-06-03 2019-06-03 Television screen projection method and device, television screen projection system and computer equipment

Publications (2)

Publication Number Publication Date
CN110248216A CN110248216A (en) 2019-09-17
CN110248216B true CN110248216B (en) 2021-06-01

Family

ID=67885906

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910476642.1A Active CN110248216B (en) 2019-06-03 2019-06-03 Television screen projection method and device, television screen projection system and computer equipment

Country Status (1)

Country Link
CN (1) CN110248216B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111147950A (en) * 2019-12-30 2020-05-12 广东南方新媒体股份有限公司 Remote screen projection method and system for set top box
CN111221491A (en) * 2020-01-09 2020-06-02 Oppo(重庆)智能科技有限公司 Interaction control method and device, electronic equipment and storage medium
CN112040288B (en) * 2020-09-04 2022-07-12 华人运通(上海)云计算科技有限公司 Multimedia system
CN112135186B (en) * 2020-09-22 2022-07-29 深圳乐播科技有限公司 Screen projection method, device, equipment and storage medium based on small program
CN114679610B (en) * 2020-12-24 2023-06-06 花瓣云科技有限公司 Screen throwing method, device and system for continuously playing video
CN112788384A (en) * 2021-02-07 2021-05-11 深圳市大鑫浪电子科技有限公司 Wireless digital television screen projection method and device, computer equipment and storage medium
CN113268210A (en) * 2021-05-10 2021-08-17 深圳Tcl新技术有限公司 Screen projection method, equipment and storage medium
CN114827674B (en) * 2022-03-30 2023-09-05 北京奇艺世纪科技有限公司 Network resource display method, device and system
CN115022709B (en) * 2022-06-10 2023-08-29 江苏银河数字技术有限公司 Intelligent set top box wireless screen-throwing management and control system and method
CN115150649A (en) * 2022-06-14 2022-10-04 阿里云计算有限公司 Media stream playing method, equipment and storage medium
WO2024001257A1 (en) * 2022-06-28 2024-01-04 海信视像科技股份有限公司 Display device and processing method for display device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2359575B1 (en) * 2008-09-30 2015-06-10 Apple Inc. System and method for simplified resource sharing
CN108965995A (en) * 2018-07-17 2018-12-07 北京奇艺世纪科技有限公司 A kind of throwing screen method, apparatus throws screen end equipment and shields end equipment by throwing
CN108966195A (en) * 2018-07-31 2018-12-07 深圳市信恳智能电子股份有限公司 Wireless gyroscope software implementation method based on wechat small routine
CN109068088A (en) * 2018-09-20 2018-12-21 明基智能科技(上海)有限公司 Meeting exchange method, apparatus and system based on user's portable terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180014058A1 (en) * 2016-05-30 2018-01-11 Nanning Fugui Precision Industrial Co., Ltd. Communication method, mobile terminal and set top box using the same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2359575B1 (en) * 2008-09-30 2015-06-10 Apple Inc. System and method for simplified resource sharing
CN108965995A (en) * 2018-07-17 2018-12-07 北京奇艺世纪科技有限公司 A kind of throwing screen method, apparatus throws screen end equipment and shields end equipment by throwing
CN108966195A (en) * 2018-07-31 2018-12-07 深圳市信恳智能电子股份有限公司 Wireless gyroscope software implementation method based on wechat small routine
CN109068088A (en) * 2018-09-20 2018-12-21 明基智能科技(上海)有限公司 Meeting exchange method, apparatus and system based on user's portable terminal

Also Published As

Publication number Publication date
CN110248216A (en) 2019-09-17

Similar Documents

Publication Publication Date Title
CN110248216B (en) Television screen projection method and device, television screen projection system and computer equipment
CN110392287B (en) Processing method and device for television screen projection authorization and television screen projection system
US9596501B2 (en) Remote control processing method, device and system
US9479477B2 (en) Method and apparatus for registering terminal
CN107241336B (en) Identity verification method and device
US10516666B2 (en) Authentication method, apparatus, and system
US10218717B1 (en) System and method for detecting a malicious activity in a computing environment
CN109495467B (en) Method and device for updating interception rule and computer readable storage medium
CN111555920B (en) Intelligent operation and maintenance method, system, equipment and user side
CN106713315B (en) Login method and device of plug-in application program
US20220377556A1 (en) Internet-of-things device registration method and apparatus, device, and storage medium
CN107294910B (en) Login method and server
CN108449308A (en) Identify the method and device that malice resource accesses
US20110173277A1 (en) Method of authenticating a user of a service on a mobile terminal
CN113067859A (en) Communication method and device based on cloud mobile phone
CN109726545B (en) Information display method, equipment, computer readable storage medium and device
CN109510799B (en) Page display method, browser client, equipment and storage medium
US20160227406A1 (en) Broadcast apparatus and method of authenticating broadcast data
CN107948682B (en) Configuration method of service domain name, service server and terminal equipment
CN113553557A (en) Application secret-free login method and device, electronic equipment and storage medium
CN110752933A (en) Verification code input method and device, electronic equipment and storage medium
CN107135075B (en) Authorization method and device for user operation
KR102379069B1 (en) Broadcast apparatus and method for authenticating broadcast data
CN114238927A (en) Business system login method, system, device, computer equipment and storage medium
CN112732526A (en) Remote management method and system for terminal equipment

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