CN111010437A - Intelligent media playing system and control method - Google Patents

Intelligent media playing system and control method Download PDF

Info

Publication number
CN111010437A
CN111010437A CN201911275548.6A CN201911275548A CN111010437A CN 111010437 A CN111010437 A CN 111010437A CN 201911275548 A CN201911275548 A CN 201911275548A CN 111010437 A CN111010437 A CN 111010437A
Authority
CN
China
Prior art keywords
control center
terminal
plug
request
application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911275548.6A
Other languages
Chinese (zh)
Other versions
CN111010437B (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.)
Zidoo Technology Co ltd
Original Assignee
Zidoo Technology 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 Zidoo Technology Co ltd filed Critical Zidoo Technology Co ltd
Priority to CN201911275548.6A priority Critical patent/CN111010437B/en
Publication of CN111010437A publication Critical patent/CN111010437A/en
Application granted granted Critical
Publication of CN111010437B publication Critical patent/CN111010437B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • 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/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4113PC
    • 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/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4126The peripheral being portable, e.g. PDAs or mobile phones
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The invention discloses an intelligent media playing system.A local area network terminal can perform data access and remote operation on an intelligent media player. The core of the system is a control center around which a device discovery system, a plug-in system, a remote control system and a Web service system are derived. The local area network discovery system is mainly used for device discovery; the remote control system is used for performing data access and remote operation on the intelligent media player; the plug-in system is used for associating other applications of the media player with the control center and responding to the request sent by the terminal together; through the IP central control system, all the applications of the intelligent media player can provide data and receive control for the terminal in the local area network. By the control method, the user can use the terminal equipment such as a mobile phone, a computer and the like to carry out remote operation and content display on the intelligent media player in the local area network, and the user has no additional cost, so that the docking of developers is very easy, and the realization is very simple.

Description

Intelligent media playing system and control method
Technical Field
The present invention relates to the technical field of local area network interaction, such as a technology for controlling an intelligent media playing system in an HTTP manner, and in particular, to an intelligent media playing system and a method for controlling the intelligent media playing system in a local area network.
Background
The intelligent media player is an Android device, has basically the same functions as an Android mobile phone, and is mainly used for playing multimedia such as videos and audios. As a player, it usually inputs pictures to a display through an HDMI interface. Therefore, although the Android system is the same as the mobile phone, the most common operation mode is the remote controller. However, the operation with the remote controller is far less convenient than the touch operation with a hand, and a simple example is that when the application is used for editing, a large number of characters are input, the characters input by the remote controller cannot move a cursor, the cursor is enabled to fall on the letters to be input, and then the determined keys are pressed for input. A chinese character or word usually has several letters to be input, and the letters are generally distributed at various positions of the keyboard, so that the cursor is frequently moved and the speed is conceivable when inputting a word.
If the content of the media player can be displayed on the mobile phone and the operation on the mobile phone can make the same response on the media player, the problem of the troublesome operation of the remote control is easily solved. Therefore, the IP central control system is started according to the scene, and the core of the IP central control system is remote control. The remote control is an Android-based application program, and the main function is to provide an HTTP server and interact with other applications of the intelligent media player, so that other terminals can access data of the other applications and remotely control the other applications in the same network.
There are also remote Control systems on the market, such as the well-known Control4, which function to display multimedia data in a specific way. However, the limitation is very large, a set of Control4 devices costs much money, and it is very troublesome to interface with Control4, and the content can be displayed normally according to a specific rule, and the content display mode is fixed, that is, you cannot display on the client in a self-contained manner. In addition, Control4 only supports a specific application to display specific content, and cannot realize a very fine Control function.
There are also some screen projection technologies, such as Micacast, which display the content of the android device in other devices, and this technology cannot implement a remote control function, only projects the content, and cannot solve the problem of difficult operation of the media player.
In addition, patent application 201380000318.3 mentions touch technology, which enables the display screen to realize touch function, so that the smart media player can also realize touch. This is very practical in some application scenarios, such as the field of intelligent teaching, but for ordinary life scenarios, touch control is performed before the display screen, which undoubtedly hurts eyes and inconveniently walks away.
Disclosure of Invention
Aiming at the defects in the technology, the invention provides a method for operating and displaying the content of the intelligent media player in the local area network by using equipment such as a mobile phone, a computer and the like. And the user does not have any additional cost, the developer is very easy to dock, and the realization is very simple.
To achieve the above object, the present invention is achieved as described above.
A smart media player system comprising a device discovery system, a plug-in system, and a remote control system, and which are operated in coordination by a control center, wherein:
the control center is an Android service running in the intelligent media player, and the equipment discovery system, the plug-in system, the remote control system and the Web service system all run based on the Android service;
the equipment discovery system starts UPD multicast in a control center, receives a terminal instruction, then sends the local information to the terminal through TCP, and the terminal is displayed by a list;
the plug-in system is other applications of the intelligent media player and is registered in the control center through the ContentProvider so that the control center can interact with the registered applications;
the remote control system is characterized in that an HTTP server is started in a control center, a terminal sends a request to the control center according to an HTTP protocol, and the control center distributes the request to a plug-in for processing and then returns data to the terminal.
Preferably, the smart media playing system further comprises a Web service system, wherein,
the Web service system is characterized in that a NanoHTTPD server is started in a control center, terminal equipment can access the control center through a Web browser to acquire a Web page, and then data access and control can be performed on an intelligent media player in the Web page.
The invention also provides a control method of the intelligent media playing system in the local area network, which is applied to one side of the intelligent media playing system, and the control method comprises the following steps:
s31, pairing the terminal and the intelligent media playing system through the equipment discovery system;
and S32, through the remote control system, the terminal realizes the remote control of the intelligent media playing system through the HTTP mode.
Preferably, the control method further includes the steps of:
and S34, through the Web service system, the terminal realizes the remote control of the intelligent media playing system through the Web mode.
Preferably, the specific implementation steps of step S31 are as follows:
s311, the control center joins in the multicast and sends an instruction to inform the terminal;
s312, the terminal starts a TCP server, then joins in multicast, and sends an instruction to notify a central control end;
s313, the control center sends the information of the local equipment to the TCP server of the terminal after receiving the instruction;
and S314, the terminal displays the equipment information in the list after receiving the equipment information.
Preferably, in the step S311, the control center creates a MulticastSocket based on UDP, joins group, and then sends an instruction, where the instruction is encapsulated in a datagrampack form, and at this time, if the terminal has joined in multicast, after receiving the instruction sent by the control center, the control center parses the device information therein, and then displays the device in the list.
Preferably, in step S312, the terminal creates a Socket based on TCP, blocks the information of the devices waiting to be received, then joins in multicast, and sends an instruction to request the control center to send the information of the devices.
Preferably, in the step S313, after receiving the instruction, the control center creates a Socket to establish a connection with a serverssocket, and then sends the information to the terminal, and the terminal displays the device information in the list after receiving the information.
Preferably, after the step of S32, the method further includes:
s33, processing the task request distributed by the remote control system by using the plug-in system, and returning the data to the terminal after the processing of the plug-in system is finished; the plug-in the plug-in system is an application program of the control center, and all the plug-ins can interact with the control center by the identity of the plug-in, so that the indirect interaction with the terminal is realized, and the specific implementation steps of the step S33 are as follows:
s331, the control center creates a data sharing ContentProvider;
s332, other applications register the information of the applications through the ContentProvider;
s333, the control center acquires the corresponding registration application from the registration list according to the terminal request;
s334, binding the plug-in service of the application according to the registration information, and establishing connection with the application;
s335, the control center forwards the request to the application, and the application processes the request;
and S336, the application returns the result to the control center.
Preferably, in the step S332, the information for registering the application includes a plug-in name, an application package name, and a service name.
Preferably, in the step S333, the request of the terminal is url in IP + port + plug-in name + uri format, and the control center parses the plug-in name in the url, queries the database, and finds the corresponding registered application information.
Preferably, in the step S335, the control center interacts with the application based on the aid id, the control center first forwards the request to the application, and the application determines, if the request is processed, if the request is to upload or obtain data with a large content, read/write operations are performed with the control center through a predetermined interface by using remoteccallbaclcst, and if the request only needs to return data with a small content or is an instruction that can be directly completed in the application, the request can be directly closed into a Json character string and returned to the control center.
Preferably, the specific implementation steps of the step S32 are as follows:
s321, starting an Http server by the control center;
s322, the terminal initiates an http request according to the IP and the port number in the equipment information;
s323, after receiving the request, the server of the control center forwards the request to the corresponding plug-in;
s324, the plug-in returns a result to the control center after responding;
and S325, the control center processes the result and sends the result to the terminal.
Preferably, in the step S321, the control center first creates HTTP service, then sets a request handler HTTP registry, then opens Socket, establishes HTTP connection, opens a protection thread, and waits for a request from the client.
Preferably, in step 305, the control center converts the result into corresponding HTTP entry according to the type stated in the result, and then sets the HTTP entry into HTTP response. This is mainly due to the fact that the returned results are of different types, such as pictures, files, Json, and the like.
Preferably, the specific implementation steps of the step S34 are as follows:
s341, exporting the webpage as a file in advance, compressing the webpage and putting the webpage into a project;
s342, starting the Web server;
s343, generating a two-dimensional code website of the server;
and S344, the terminal scans the two-dimensional code or inputs a website in a browser to access.
Preferably, in the step S342, after the webpage file is decompressed, the control center sets a path, an IP, and a port by using the third-party open source item NanoHTTPD, and creates the Web server.
Preferably, in the step S343, the ZXingCode third party library is downloaded in advance, the ZXingCode third party library is put into a project, when the two-dimensional code is generated, the IP and the port are spliced into a website, and then the ZXingCode is used to generate the two-dimensional code.
The invention has the beneficial effects that: the invention discloses a solution for controlling an intelligent media player by multiple terminals through a local area network, which comprises the following steps: IP center control system. The intelligent media player can be accessed and remotely operated by intelligent electronic equipment such as an IP central control system, a mobile phone, a computer and the like. The core of the IP central control system is a control center around which an equipment discovery system, a plug-in system, a remote control system and a Web service system are derived. The local area network discovery system is mainly used for device discovery, the control center broadcasts the information of the local device out through the device discovery system, and the terminal device obtains a central control device list in the current local area network through the system so as to carry out the next connection access; the remote control system is used for performing data access and remote operation on the intelligent media player after the terminal is connected with the equipment; the plug-in system is used for associating other applications of the media player with the control center and responding to the request sent by the terminal together; the Web service system is mainly composed of a Web server, and the terminal can access and control the intelligent media player through a Web browser. Through the IP central control system, all the applications of the intelligent media player can provide data and receive control for the terminal in the local area network. By the control method, the user can use the terminal equipment such as a mobile phone, a computer and the like to carry out remote operation and content display on the intelligent media player in the local area network, and the user has no additional cost, so that the docking of developers is very easy, and the realization is very simple.
Drawings
FIG. 1 is a general schematic of the system of the present invention;
FIG. 2 is a remote control flow diagram;
fig. 3 is a schematic diagram of passive discovery by a device discovery system;
fig. 4 is a schematic diagram of device discovery system active discovery;
FIG. 5 is a Web system flow diagram;
FIG. 6 is a general schematic of the control method of the present invention;
FIG. 7 is a detailed schematic view of FIG. 6, FIG. 1;
FIG. 8 is a detailed schematic 2 of FIG. 6;
FIG. 9 is a detailed schematic 3 of FIG. 6;
fig. 10 is a detailed schematic view 4 of fig. 6.
FIG. 11 is a schematic diagram of a method according to an embodiment of the invention;
fig. 12 is a schematic diagram of a method according to another embodiment of the invention.
Detailed Description
In order to more clearly describe the present invention, the present invention will be further described with reference to the accompanying drawings.
Example 1:
the invention provides an intelligent media playing system which comprises a device discovery system, a plug-in system, a remote control system and a Web service system, wherein the device discovery system, the plug-in system, the remote control system and the Web service system are operated by a control center in a coordinated mode. Wherein:
the control center is an Android service running in the intelligent media player, and the equipment discovery system, the plug-in system, the remote control system and the Web service system all run based on the Android service.
The equipment discovery system is that UPD multicast is started in a control center, a terminal instruction is received, then local information is sent to the terminal through TCP, and the terminal is displayed by a list.
The plug-in system is other applications of the intelligent media player and is registered in the control center through the ContentProvider so that the control center can interact with the registered applications.
The remote control system is characterized in that an HTTP server is started in a control center, a terminal sends a request to the control center according to an HTTP protocol, and the control center distributes the request to a plug-in for processing and then returns data to the terminal.
The Web service system is characterized in that a NanoHTTPD server is started in a control center, terminal equipment can access the control center through a Web browser to acquire a Web page, and then data direction and control can be performed on an intelligent media player in the Web page.
Please refer to fig. 6 to 10. The invention also provides a control method of the intelligent media playing system in the local area network, which is applied to one side of the intelligent media playing system, and the control method comprises the following steps:
s31, pairing the terminal and the intelligent media playing system through the equipment discovery system;
and S32, through the remote control system, the terminal realizes the remote control of the intelligent media playing system through the HTTP mode.
Preferably, the control method further includes the steps of:
and S34, through the Web service system, the terminal realizes the remote control of the intelligent media playing system through the Web mode.
Further, the specific implementation steps of the device discovery system are as follows:
s311, the control center joins in the multicast and sends an instruction to inform the terminal;
the control center creates multicast and then sends an instruction, at this time, if the terminal has joined the multicast, after receiving the instruction sent by the control center, the equipment information in the multicast is analyzed, and then the equipment is displayed in a list.
Further, the terminal refers to any intelligent electronic device, such as an android mobile phone, a computer and the like.
Further, the multicast refers to a MulticastSocket based on UDP, which is a network transport protocol.
Further, the instruction refers to a character string with a specific format, and the behavior of the first behavior instruction, such as JOIN, LEAVE, etc.; the second line is followed by information lines, each in the form of a "title: content".
Further, the list refers to an interface applied in a terminal for displaying all controllable intelligent media player devices.
S312, the terminal starts a TCP server, then joins in multicast, and sends an instruction to notify a central control end;
further, the TCP server refers to a Socket based on TCP, which is a network transmission protocol.
S313, the control center sends the information of the local equipment to the TCP server of the terminal after receiving the instruction;
and S314, the terminal displays the equipment information in the list after receiving the equipment information.
Further, the specific implementation steps of the plug-in system are as follows:
s331, the control center establishes data sharing;
the control center creates a database which comprises fields such as plug-in names, package names and service names, and then the database is subjected to data sharing.
Further, data sharing refers to ContentProvider of Android, and is a mode for performing data access across processes.
S332, other applications register the information of the applications through data sharing;
other applications share and store own plug-in names, package names and plug-in service names through a data base of the control center so that the control center can search for the plug-ins by using the plug-in names, and then bind services by using the package names and the service names to establish communication among processes.
Furthermore, the Service refers to Android Service, and cross-process communication can be performed through the Service.
S333, the control center acquires the corresponding registration application from the registration list according to the terminal request;
the control center divides the request improved by the terminal to obtain the plug-in name of the request target, and then uses the plug-in name to query the database to obtain the plug-in stored in the database.
Further, the request refers to a general network request, based on the HTTP protocol, and the url in the request must be in the form of "HTTP:// IP: Port/plug-in name/.", in order to resolve the plug-in name and then communicate with the corresponding plug-in.
S334, binding the plug-in service of the application according to the registration information, and establishing connection with the application;
s335, the control center forwards the request to the application, and the application processes the request;
after the control center binds the service of the application, the cross-process communication is established based on AIDL, the control center firstly forwards the request to the application, the application determines if the processing is carried out according to the request, if the request is data with large content such as uploading or acquiring pictures, the read-write operation is carried out with the control center by using a predetermined interface through RemoteCallbackList, if the request only needs to return data with small content, or instructions which can be directly finished in the application, such as an installed application list, application data clearing and the like, can be directly closed into a Json character string and returned to the control center
Furthermore, the AIDL is intended to be an android interface definition language, so that other application programs can access the service provided by the application program.
And S336, the application returns the result to the control center.
Further, the result is a packaged java class, and includes fields such as type, path, json, and the like, and the control center can determine the type of the returned result according to the fields and perform corresponding processing.
Further, the remote control system comprises the following specific implementation steps:
s321, starting an HTTP server by the control center;
further, the Http server is a lightweight Http server composed of the Http server of Android and Socket, and has a multithreading characteristic.
S322, the terminal initiates an HTTP request according to the IP and the port number in the equipment information;
further, at this time, the HTTP request and the generic HTTP request do not have any difference, but the address of the request is the address of the device where the control center is located, and the address is determined by the IP and the port number.
S323, after receiving the request, the server of the control center forwards the request to the corresponding plug-in;
s324, the plug-in returns a result to the control center after responding;
and S325, the control center processes the result and sends the result to the terminal.
And the control center analyzes the result returned by the plug-in application after receiving the result, converts the real content into corresponding HTTP entry according to the declared type in the result, and then sets the HTTP entry into HTTP response to complete the HTTP response.
Further, the specific implementation steps of the Web service system are as follows:
s341, exporting the webpage as a file in advance, compressing the webpage and putting the webpage into a project;
after the web pages are developed, all the web pages are exported to be files, compressed and placed under an alert directory of a project.
S342, starting the Web server;
before the service is started, the control center reads the webpage files under the alert directory, decompresses the webpage files to the private directory of the application, and then starts the Web server by using the NanoHTTPD of the third party.
S343, generating a two-dimensional code website of the server;
after the Web server is started, in order to facilitate quick connection of a user, a third-party open source library ZXingcode is used for generating a two-dimensional code in a visual interface of the control center, and the two-dimensional code is displayed on the interface. And simultaneously, displaying the access address of the Web server on the interface.
And S344, the terminal scans the two-dimensional code or inputs a website in a browser to access.
When a user wants to access the Web, the user can scan the two-dimensional code by using an android mobile phone, an apple mobile phone or other intelligent electronic equipment, and then the user can jump to a browser to display a webpage after scanning. Or directly inputting the access address of the Web server in the browser for access.
Example 2:
the invention provides an intelligent media playing system which comprises a device discovery system, a plug-in system, a remote control system and a Web service system, wherein the device discovery system, the plug-in system, the remote control system and the Web service system are coordinated by a control center. Wherein:
the control center is an Android service running in the intelligent media player, and the equipment discovery system, the plug-in system, the remote control system and the Web service system all run based on the Android service.
The equipment discovery system is that UPD multicast is started in a control center, a terminal instruction is received, then local information is sent to the terminal through TCP, and the terminal is displayed by a list.
The plug-in system is other applications of the intelligent media player and is registered in the control center through the ContentProvider so that the control center can interact with the registered applications.
The remote control system is characterized in that an HTTP server is started in a control center, a terminal sends a request to the control center according to an HTTP protocol, and the control center distributes the request to a plug-in for processing and then returns data to the terminal.
The Web service system is characterized in that a NanoHTTPD server is started in a control center, terminal equipment can access the control center through a Web browser to acquire a Web page, and then data direction and control can be performed on an intelligent media player in the Web page.
It should be noted that: the intelligent media playing system comprises a terminal and an intelligent media player (as shown in fig. 1), wherein the terminal is used for remotely controlling or remotely accessing the intelligent media player through a local area network, and the terminal and the intelligent media player form the intelligent media playing system. The intelligent media player can be subjected to data access and remote operation through the local area network terminal.
With reference to fig. 2, the passive discovery implementation steps of the device discovery system are as follows:
firstly, a mobile phone, a tablet and other terminals create a MulticastSocket based on a network protocol UDP. And calls the joinGroup to join the predetermined broadcast address.
And secondly, adding multicast by the control center of the central control end in the same way, immediately sending an adding instruction after adding the multicast, wherein the adding instruction is a character string with a specific format, the first line is JOIN, and other lines are information such as IP (Internet protocol), port number, equipment name and the like of the equipment, are packaged in a datagramPocket form, and are sent to the added broadcast by a multicastSocket.
And thirdly, the terminal receives the instruction in the broadcast, analyzes the equipment information in the instruction and displays the equipment information in the list.
As shown in fig. 3, the active discovery implementation steps of the device discovery system are as follows:
firstly, a control center firstly joins in multicast;
and secondly, the terminal firstly creates a Socket based on a network protocol TCP and blocks and waits for receiving data. Then adding multicast and sending an instruction;
and thirdly, after receiving the datagrampocket command, the MulticastSocket of the control center analyzes and acquires the IP and the port number of the TCP server of the terminal, then establishes a Socket to establish connection with the Socket of the terminal, and sends the information of the local equipment to the past.
Fourthly, the terminal displays the equipment in the list after receiving the equipment information
As shown in fig. 4, the device remote control system and the plug-in system cooperate to implement remote control, and the specific process implementation steps are as follows:
firstly, a control center of the intelligent media player creates a database, the database comprises fields such as plug-in names, package names and service names, and then the database is subjected to data sharing. And other applications complete the registration operation by using the own plug-in name, package name and plug-in service name through a database of the control center stored in a data sharing way.
And secondly, starting an HTTP server by the control center, wherein the HTTP server is a lightweight HTTP server consisting of an Android HTTP server and a Socket and has the characteristic of multithreading.
Third, the client or browser, etc. sends a generic network request to the control center, the request is based on the HTTP protocol, and the url in the request must be in the form "HTTP:// IP: Port/plug-in name/.".
And fourthly, after receiving the request, the control center analyzes the url in the request, acquires the plug-in name contained in the request, and then queries the database by using the plug-in name to find the corresponding plug-in information. And initiating binding to the plug-in service by using the package name and the service name in the plug-in information.
And fifthly, the plug-in service receives the binding and returns an interface based on AIDL for the control center to call.
And seventhly, smoothly finishing binding after the interface is obtained, and transmitting the request to the plug-in by using a preset interface.
And eighthly, analyzing the request by the plug-in after receiving the request, if the request is to upload or acquire data with large content such as pictures, performing read-write operation with the control center through an interface, and if the request only needs to return data with small content or an instruction which can be directly completed in an application, such as an installed application list, application data clearing and the like, directly sealing the request into a Json character string and returning the Json character string to the control center
And step nine, the control center receives the result returned by the plug-in application and then analyzes the result, converts the real content into corresponding HTTP entry according to the type declared in the result, and then sets the HTTP entry into HTTP response to complete the HTTP response.
And step ten, the control center returns the final result to the terminal in the form of HTTP, and the terminal receives the result and displays the result to the client or the browser.
As shown in fig. 5, the Web service system includes the following specific implementation steps:
firstly, a webpage is developed in advance and exported to be a file, the compressed webpage is placed under an alert directory of a project, and when the control center application is started, the compressed file is decompressed and stored in a private directory so as to be used by a Web server conveniently.
And secondly, the control center reads the webpage file data, starts a NanoHTTPD server, generates a two-dimensional code and displays the two-dimensional code and the address on a visual interface all the time.
And thirdly, the mobile phone, the tablet or the computer and other terminals scan the two-dimensional code or input the website in a mode, and the browser jumps to the website, so that the webpage can be displayed on the browser.
The invention will be further explained below with reference to fig. 11 and 12.
The intelligent media playing system is a media player (such as a makita magic box) based on an android system, and is hereinafter referred to as a box for short. And the purpose of entire system is for intelligent terminal (such as terminal such as android equipment, apple equipment, desktop), the android application of control box end. For example, the box end is provided with a video application, the application is provided with a plurality of video files, and the android mobile phone can browse the videos of the application in the mobile phone through the system, can control the videos to be played, and can also perform editing, setting and the like. That is, all functions of the application can be presented on the handset through this system. This is done because the box is operated by a remote control, and the operations of searching, editing, etc. are inconvenient, especially the typing is laborious, and the operation by a mobile phone is much more convenient.
The whole process comprises the following steps: the box end starts the service of the control center (one application), and then the application under control is registered in the control center (only once registration is needed); the mobile phone terminal searches equipment of the local area network firstly, initiates connection after finding the equipment, and acquires necessary information of the equipment; the mobile phone initiates an application control request to the control center, the control center forwards the request to the application after receiving the request, the application processes the request and then sends a result to the control center, and the control center replies the result to the mobile phone.
Therefore, the important protection points of the patent are: the intelligent terminal controls other application steps through the control center, namely: the control center receives the request and then forwards the request to the application, the application processes the request and then sends the result to the control center, and the control center replies the result to the mobile phone.
In order to avoid the difficulty in understanding caused by too high coupling degree, the system of the invention consists of a service end and a control end (client). The server side consists of a control center and registered applications, and the control center consists of a device discovery server, a webserver, a plug-in service and an http server. The control end can be an intelligent device (an android mobile phone, an apple mobile phone and the like) or a web browser (a 360 browser, a UC browser and the like, and a browser at a mobile phone or a computer end can be used). If the device is an intelligent device, a specific application (client application) is installed, and control is performed in an http mode. If the browser is a web browser, the client does not need to be installed, and the browser can be directly operated.
Please refer to fig. 11. FIG. 11 illustrates the flow of web access. The specific description is as follows:
and the control center receives the startup broadcast of the android system and starts up automatically.
After the control center is started, the control center service (service), the device discovery server (joining device discovery multicast), the WEB and other related services are started.
The control center sends android BroadCast (BroadCast) to other applications, and the other applications register in the control center through data sharing after receiving the BroadCast.
The browser initiates access to the control center through the web server address.
And after receiving the web access request of the browser, the control center returns the static webpage to the browser.
After receiving the static webpage information, the browser sends a request to the control center.
After receiving the request, the control center analyzes the request, acquires the corresponding plug-in name registered by the application, then inquires and acquires the relevant information of the application from the database, and binds the control service provided by the plug-in application according to the registration information of the plug-in application. After binding, the request is forwarded to the plug-in application.
And the plug-in application processes the request after receiving the request and sends a processing result to the control center.
The control center packages the processing result and then returns the processing result to the browser in the form of web.
And the browser receives the returned result and displays the result on the interface.
It is to be noted that: other plug-ins are understood to mean a plug-in system, which may contain at least one plug-in.
In summary, after the control center is started, the related services are also started. And then, the control center sends an android broadcast to the plug-in system, and the plug-in system registers in the control center after receiving the broadcast. The user opens the web browser, inputs the address of the server, and the control center returns the webpage information after receiving the access request of the browser. The user can operate the returned webpage information, and the browser sends the operation request to the control center; and after receiving the request, the control center forwards the request to the plug-in system, the plug-in system processes the request and then returns a processed result to the control center, and the control center returns the result to the browser end.
It is also noted that: when the user accesses the control center by using the browser, the user can manually input the address of the server, such as an IP address, and also can input the domain name of the server. And, if the browser has the address information of the server already stored, the user can also avoid the process of manual input.
Please refer to fig. 12. Fig. 12 illustrates the flow of http access. The specific description is as follows:
and the control center receives the startup broadcast of the android system and starts up automatically.
After the control center is started, a control center service (service) is started, an http server is started, a device discovery server is started (a device discovery multicast is added), and a WEB service is started.
Then, the BroadCast (BroadCast) is sent to other applications, and after receiving the BroadCast, the other applications register in the control center through data sharing.
The terminal joining device finds the multicast, sends the UDP broadcast, and informs the server in the multicast. And the server returns the information to the terminal after receiving the information.
And after receiving the information, the terminal sends a control application to the control center, and after receiving the request, the box user stores the authorization record and returns a result.
And after the terminal acquires the authority, sending an http request to the control center.
After receiving the request, the control center analyzes the request, acquires the corresponding plug-in name registered by the application, then inquires and acquires the relevant information of the application from the database, and binds the control service provided by the plug-in application according to the registration information of the plug-in application. After binding, the request is forwarded to the plug-in application.
And the plug-in application processes the request after receiving the request and sends a processing result to the control center.
And the control center packages the processing result and then returns the processing result to the client in an http mode.
And the terminal receives the returned result and then displays the result on the interface.
It is also noted that: the terminal referred to in the present invention can be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a digital TV, a desktop computer, and the like.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A smart media player system comprising a device discovery system, a plug-in system, and a remote control system, and coordinated by a control center, wherein:
the control center is an Android service running in the intelligent media player, and the equipment discovery system, the plug-in system, the remote control system and the Web service system all run based on the Android service;
the equipment discovery system starts UPD multicast in a control center, receives a terminal instruction, then sends the local information to the terminal through TCP, and the terminal is displayed by a list;
the plug-in system is other applications of the intelligent media player and is registered in the control center through the ContentProvider so that the control center can interact with the registered applications;
the remote control system is characterized in that an HTTP server is started in a control center, a terminal sends a request to the control center according to an HTTP protocol, and the control center distributes the request to a plug-in for processing and then returns data to the terminal.
2. The smart media playback system of claim 1, further comprising a Web service system, wherein,
the Web service system is characterized in that a NanoHTTPD server is started in a control center, terminal equipment can access the control center through a Web browser to acquire a Web page, and then data access and control can be performed on an intelligent media player in the Web page.
3. A control method of an intelligent media playing system in a local area network, which is applied to the side of the intelligent media playing system according to any one of claims 1 to 2, characterized by comprising the following steps:
s31, pairing the terminal and the intelligent media playing system through the equipment discovery system;
and S32, through the remote control system, the terminal realizes the remote control of the intelligent media playing system through the HTTP mode.
4. The method for controlling an intelligent media playing system in a local area network according to claim 3, further comprising the steps of:
and S34, through the Web service system, the terminal realizes the remote control of the intelligent media playing system through the Web mode.
5. The method for controlling an intelligent media playing system in a local area network according to claim 4, wherein the step S31 is implemented as follows:
s311, the control center joins in the multicast and sends an instruction to inform the terminal;
s312, the terminal starts a TCP server, then joins in multicast, and sends an instruction to notify a central control end;
s313, the control center sends the information of the local equipment to the TCP server of the terminal after receiving the instruction;
and S314, the terminal displays the equipment information in the list after receiving the equipment information.
6. The method for controlling a smart media playing system in a local area network as recited in claim 5,
in the step S311, the control center creates a MulticastSocket based on UDP, joins group, and then sends an instruction, where the instruction is encapsulated in the form of datagrampack, and at this time, if the terminal has joined in multicast, after receiving the instruction sent by the control center, analyzes device information therein, and then displays the devices in a list;
in the step S312, the terminal creates a Socket based on TCP, blocks the information of the devices waiting to be received, then joins in multicast, and sends an instruction to request the control center to send the information of the devices;
in the step S313, after receiving the instruction, the control center creates a Socket to establish a connection with a ServerSocket, and then sends the information to the terminal, and the terminal displays the device information in a list after receiving the information.
7. The method for controlling a smart media playing system in a local area network according to claim 3, wherein after the step of S32, the method further comprises:
s33, processing the task request distributed by the remote control system by using the plug-in system, and returning the data to the terminal after the processing of the plug-in system is finished; the plug-in the plug-in system is an application program of the control center, and all the plug-ins can interact with the control center by the identity of the plug-in, so that the indirect interaction with the terminal is realized, and the specific implementation steps of the step S33 are as follows:
s331, the control center creates a data sharing ContentProvider;
s332, other applications register the information of the applications through the ContentProvider;
s333, the control center acquires the corresponding registration application from the registration list according to the terminal request;
s334, binding the plug-in service of the application according to the registration information, and establishing connection with the application;
s335, the control center forwards the request to the application, and the application processes the request;
and S336, the application returns the result to the control center.
8. The method for controlling a smart media playing system in a local area network as recited in claim 7,
in the step S332, the information of the application registration includes a plug-in name, an application package name, and a service name;
in the step S333, the request of the terminal is url in IP + port + plug-in name + uri format, the control center parses the plug-in name in url, queries the database, and finds out the corresponding registration application information;
in the step S335, the control center interacts with the application based on the aid id, the control center first forwards the request to the application, and the application determines, if the request is processed, if the request is to upload or obtain data with a large content, a read/write operation is performed with the control center through a predetermined interface via remotecallbaclcst, and if the request only needs to return data with a small content or is an instruction that can be directly completed in the application, the request can be directly closed into a Json string and returned to the control center.
9. The method for controlling an intelligent media playing system in a local area network according to claim 3, wherein the step S32 is implemented as follows:
s321, starting an Http server by the control center;
s322, the terminal initiates an http request according to the IP and the port number in the equipment information;
s323, after receiving the request, the server of the control center forwards the request to the corresponding plug-in;
s324, the plug-in returns a result to the control center after responding;
and S325, the control center processes the result and sends the result to the terminal.
10. The method for controlling an intelligent media playing system in a local area network according to claim 4, wherein the step S34 is implemented as follows:
s341, exporting the webpage as a file in advance, compressing the webpage and putting the webpage into a project;
s342, starting the Web server;
s343, generating a two-dimensional code website of the server;
and S344, the terminal scans the two-dimensional code or inputs a website in a browser to access.
CN201911275548.6A 2019-12-12 2019-12-12 Intelligent media playing system and control method Active CN111010437B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911275548.6A CN111010437B (en) 2019-12-12 2019-12-12 Intelligent media playing system and control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911275548.6A CN111010437B (en) 2019-12-12 2019-12-12 Intelligent media playing system and control method

Publications (2)

Publication Number Publication Date
CN111010437A true CN111010437A (en) 2020-04-14
CN111010437B CN111010437B (en) 2023-08-22

Family

ID=70115543

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911275548.6A Active CN111010437B (en) 2019-12-12 2019-12-12 Intelligent media playing system and control method

Country Status (1)

Country Link
CN (1) CN111010437B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112532744A (en) * 2020-12-20 2021-03-19 南京南方电讯有限公司 Android system-based video terminal and desktop remote control method
CN113423109A (en) * 2021-08-24 2021-09-21 深圳兆瑞优品科技有限公司 Designated data sharing method facing personal computer user
CN113542320A (en) * 2020-04-15 2021-10-22 珠海格力电器股份有限公司 Control optimization method, device and equipment for task processing and computer readable medium
CN114501093A (en) * 2021-12-24 2022-05-13 天翼视讯传媒有限公司 JS plugin-based large and small screen remote interaction method
CN117271270A (en) * 2023-11-21 2023-12-22 麒麟软件有限公司 Method for monitoring Android music playing on Web operating system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080209034A1 (en) * 2005-07-04 2008-08-28 Sk Telecom Co., Ltd. Home Network System, Method of Controlling the Same, Method of Setting Residential Gateway For the Same, and Method of Processing Event Protocol For the Same
CN102404637A (en) * 2011-11-09 2012-04-04 Ut斯达康通讯有限公司 System and method for controlling television remotely through intelligent mobile phone
CN102790764A (en) * 2012-06-25 2012-11-21 林征 Media projection playing method and system
US20140178052A1 (en) * 2012-12-26 2014-06-26 Sling Media Inc. Systems and methods for remotely recording media content
WO2015109872A1 (en) * 2014-01-26 2015-07-30 广东欧珀移动通信有限公司 Method for quickly accessing and controlling the playing of shared media file based on samba
US20170163753A1 (en) * 2015-12-04 2017-06-08 Le Holdings (Beijing) Co., Ltd. Method and apparatus for controlling play device to play video
CN108650540A (en) * 2018-05-30 2018-10-12 山东浪潮商用系统有限公司 A kind of webpage remote control control system and method based on android set top box
CN108989367A (en) * 2017-05-31 2018-12-11 深圳市中兴微电子技术有限公司 A kind of Internet of Things communication means, equipment and system
CN109819292A (en) * 2019-01-28 2019-05-28 北京牡丹电子集团有限责任公司数字电视技术中心 A kind of control method and remote media machine of remote media machine

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080209034A1 (en) * 2005-07-04 2008-08-28 Sk Telecom Co., Ltd. Home Network System, Method of Controlling the Same, Method of Setting Residential Gateway For the Same, and Method of Processing Event Protocol For the Same
CN102404637A (en) * 2011-11-09 2012-04-04 Ut斯达康通讯有限公司 System and method for controlling television remotely through intelligent mobile phone
CN102790764A (en) * 2012-06-25 2012-11-21 林征 Media projection playing method and system
US20140178052A1 (en) * 2012-12-26 2014-06-26 Sling Media Inc. Systems and methods for remotely recording media content
WO2015109872A1 (en) * 2014-01-26 2015-07-30 广东欧珀移动通信有限公司 Method for quickly accessing and controlling the playing of shared media file based on samba
US20170163753A1 (en) * 2015-12-04 2017-06-08 Le Holdings (Beijing) Co., Ltd. Method and apparatus for controlling play device to play video
CN108989367A (en) * 2017-05-31 2018-12-11 深圳市中兴微电子技术有限公司 A kind of Internet of Things communication means, equipment and system
CN108650540A (en) * 2018-05-30 2018-10-12 山东浪潮商用系统有限公司 A kind of webpage remote control control system and method based on android set top box
CN109819292A (en) * 2019-01-28 2019-05-28 北京牡丹电子集团有限责任公司数字电视技术中心 A kind of control method and remote media machine of remote media machine

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113542320A (en) * 2020-04-15 2021-10-22 珠海格力电器股份有限公司 Control optimization method, device and equipment for task processing and computer readable medium
CN112532744A (en) * 2020-12-20 2021-03-19 南京南方电讯有限公司 Android system-based video terminal and desktop remote control method
CN113423109A (en) * 2021-08-24 2021-09-21 深圳兆瑞优品科技有限公司 Designated data sharing method facing personal computer user
CN113423109B (en) * 2021-08-24 2021-10-29 深圳兆瑞优品科技有限公司 Designated data sharing method facing personal computer user
CN114501093A (en) * 2021-12-24 2022-05-13 天翼视讯传媒有限公司 JS plugin-based large and small screen remote interaction method
CN117271270A (en) * 2023-11-21 2023-12-22 麒麟软件有限公司 Method for monitoring Android music playing on Web operating system
CN117271270B (en) * 2023-11-21 2024-04-05 麒麟软件有限公司 Method for monitoring Android music playing on Web operating system

Also Published As

Publication number Publication date
CN111010437B (en) 2023-08-22

Similar Documents

Publication Publication Date Title
CN111010437A (en) Intelligent media playing system and control method
US20190303088A1 (en) Transferring an application interface from one device to another device
KR101664754B1 (en) Method, device, program and recording medium for information acquisition
CN107943547B (en) Multi-service integration method and device, intelligent terminal, server and operating system
WO2017092313A1 (en) Method and apparatus for controlling video playing of playing device
CN109074277A (en) Stateful dynamic link is enabled in mobile application
US20140040767A1 (en) Shared digital whiteboard
RU2609752C2 (en) Method and mobile terminal device for independent video image playback
US20090327272A1 (en) Method and System for Searching Multiple Data Types
CN104113785A (en) Information acquisition method and device
US9411839B2 (en) Index configuration for searchable data in network
CN109032606A (en) The process of compilation method, apparatus and terminal of native applications program
CN105095427A (en) Search recommendation method and device
CN113253880B (en) Method and device for processing pages of interaction scene and storage medium
US11237854B2 (en) Providing a virtual desktop within a computing environment
US20170171266A1 (en) Method and electronic device based on android platform for multimedia resource play
CN114025244A (en) Audio and video pushing method, device, equipment and computer readable storage medium
US20220215482A1 (en) User information processing method, apparatus, electronic device, and computer storage medium
CN110618811B (en) Information presentation method and device
CN112764846B (en) Interface display method and device, electronic equipment and storage medium
CN112860155B (en) Search guidance processing method and device
CN114416248A (en) Conversation method and device thereof
CN113835594A (en) Interaction method and device, electronic equipment and readable storage medium
US20170161237A1 (en) Method for creating a hyperlink in a video-playing page and electronic device
CN107209782B (en) Method for interactive operation, and transmitting machine, receiving machine and interactive operation system using the method

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