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

Intelligent media playing system and control method Download PDF

Info

Publication number
CN111010437B
CN111010437B CN201911275548.6A CN201911275548A CN111010437B CN 111010437 B CN111010437 B CN 111010437B CN 201911275548 A CN201911275548 A CN 201911275548A CN 111010437 B CN111010437 B CN 111010437B
Authority
CN
China
Prior art keywords
control center
terminal
request
application
plug
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
CN201911275548.6A
Other languages
Chinese (zh)
Other versions
CN111010437A (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

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 application discloses an intelligent media playing system, wherein 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; all applications of the intelligent media player can provide data and accept control for the terminal in the local area network through the IP central control system. By the control method, a user can remotely operate and display the content of the intelligent media player in the local area network by using terminal equipment such as a mobile phone, a computer and the like, and the user has no additional cost, so that the developer is very easy to dock and the implementation is very simple.

Description

Intelligent media playing system and control method
Technical Field
The application relates to the technical field of local area network interaction, such as a technology for controlling an intelligent media playing system in an HTTP mode, in particular to an intelligent media playing system and a control method of the intelligent media playing system in the local area network.
Background
The intelligent media player is Android equipment, has basically the same functions as an Android mobile phone, and is mainly used for playing multimedia such as video, audio and the like. As a player, it will typically input pictures to the display through an HDMI interface. Therefore, although the Android system is the same as a mobile phone, the most common operation mode is using a remote controller. However, the remote controller is far less convenient to operate than the hand touch operation, and when the application is used for editing, a large number of characters are input, the remote controller cannot move the cursor when the characters are input, the cursor falls on the letters to be input, and then the user presses the decision key for input. A chinese character or word is usually input with several letters, and the letters are generally distributed at various positions of the keyboard, so that the cursor is frequently moved to input a word, and the speed is conceivable.
The problem of cumbersome operation of the remote control is solved if the content of the media player can be displayed on the handset and the operation on the handset can make the same response on the media player. Therefore, the IP central control system has a prospect and is characterized by 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 and remotely control other applications in the same network.
There are also remote Control systems on the market, such as the well-known Control4, whose function is to display multimedia data in a specific way. However, it is very limited, a Control4 device is expensive, it is very cumbersome to dock with Control4, it can be displayed normally according to a specific rule, and its content display mode is fixed, that is, you cannot display on the client in their own mode. In addition, control4 only supports specific applications to display specific contents, and cannot realize very fine manipulation functions.
There are other screen projection technologies, such as Micacast, which display the content of an android device in other devices, and this technology cannot realize a remote control function, but only projects the content, so that the problem that the media player is difficult to operate cannot be solved.
In addition, the patent application 201380000318.3 mentions a touch technology, which can enable the display screen to realize a touch function, so that the intelligent media player can also realize touch. This is very practical in some application scenarios, such as intelligent teaching, but for ordinary life scenarios, touching in front of the display screen undoubtedly hurts the eyes and is cumbersome to walk around.
Disclosure of Invention
Aiming at the defects in the technology, the application provides a method for operating and displaying the content of the intelligent media player in a local area network by using equipment such as a mobile phone, a computer and the like. And the user has no additional cost, the developer is very easy to dock, and the implementation is very simple.
The present application has been made in order to achieve the above object.
An intelligent media playback 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 on 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 service;
the equipment discovery system starts UDP multicast in a control center, receives an instruction of a terminal, then sends 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 registers in the control center through the ContentProvider so that the control center interacts 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 unit 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, a terminal device can access the control center through a Web browser to acquire a Web page, and then data access and control can be carried out on an intelligent media player in the Web page.
The application 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 comprises the following steps:
s31, pairing the terminal and the intelligent media playing system is achieved through the equipment discovery system;
s32, the terminal remotely controls the intelligent media playing system in an HTTP mode through the remote control system.
Preferably, the control method further comprises the steps of:
s34, the terminal remotely controls the intelligent media playing system in a Web mode through the Web service system.
Preferably, the specific implementation steps of the step S31 are as follows:
s311, the control center joins the multicast and sends an instruction notification terminal;
s312, the terminal starts a TCP server, then joins multicast, and sends instruction notification to the central control terminal;
s313, after receiving the instruction, the control center sends information of the local equipment to a TCP server of the terminal;
s314, the terminal receives the equipment information and displays the equipment information on the list.
Preferably, in the step S311, the control center creates a MulticastSocket based on UDP, joins the group, then sends an instruction, encapsulates the instruction in the form of datagrampa socket, and then parses out the device information in the command sent by the control center after receiving the instruction sent by the control center if the terminal has joined the multicast, and then displays the device on the list.
Preferably, in step S312, the terminal creates a Socket based on TCP, blocks waiting for receiving the device information, and then joins the multicast, and the sending command requests the control center to send the device information.
Preferably, in step S313, after receiving the instruction, the control center creates a Socket and establishes a connection with a ServerSocket, then sends information to the terminal, and after receiving the instruction, the terminal displays the device information on the list.
Preferably, after the step S32, the method further includes:
s33, processing a task request distributed by the remote control system by adopting a plug-in system, and returning data to the terminal after the plug-in system finishes processing; the plugins in the plugin system are application programs of the control center, and can interact with the control center by the identity of the plugins, so that the interaction with the terminal is realized indirectly, and the specific implementation steps of the step S33 are as follows:
s331, a control center creates a data sharing ContentProvider;
s332, other applications register information of the application through the ContentProvider;
s333, the control center acquires a 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;
s336, the application returns the result to the control center.
Preferably, in the step S332, the information of application registration 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 the format of ip+port+plug-in name+uri, and the control center analyzes the plug-in name in url, queries the database, and finds the corresponding registration application information.
Preferably, in the step S335, the control center interacts with the application based on AIDL, the control center forwards the request to the application, the application determines that if the request is processed, if the request is to upload or acquire data with large content, the request is to perform read-write operation with the control center through a RemoteCallbackList by using a predetermined interface, if the request is to return only data with small content, or an instruction which can be directly completed in the application, the request can be directly closed into a Json string to be returned to the control center.
Preferably, the specific implementation steps of the step S32 are as follows:
s321, starting an Http server by a 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, after the plug-in makes a response, returning a result to the control center;
s325, the control center processes the result and sends the result to the terminal.
Preferably, in the step S321, the control center creates httpservicer, sets up the request processor httprequest handler, opens Socket, establishes HTTP connection, opens a protection thread, and waits for a request of the client.
Preferably, in the step 305, the control center converts the type declared in the result into corresponding httpenty, and then sets the httpenty into HttpResponse to complete the HTTP response. This is mainly due to the different types of pictures, files, json, etc. of the results returned.
Preferably, the specific implementation steps of the step S34 are as follows:
s341, exporting the webpage into a file in advance, compressing the file, and putting the file into engineering;
s342, starting a Web server;
s343, generating a two-dimension code website of the server;
and S344, the terminal accesses by scanning the two-dimensional code or inputting a website in the browser.
Preferably, in the step S342, after the control center decompresses the Web page file, the control center uses the third party open source item NanoHTTPD to set a path, an IP and a port, and creates the Web server.
Preferably, in step S343, the ZXingCode third party library is downloaded in advance, and put into the 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 application has the beneficial effects that: the application discloses a solution for controlling an intelligent media player by a multi-terminal through a local area network, which comprises the following steps: an IP central control system. Through the IP central control system, intelligent electronic equipment such as mobile phones, computers and the like can perform data access and remote operation on the intelligent media player. The core of the IP central control system is a control center, and a device discovery system, a plug-in system, a remote control system and a Web service system are derived around the control center. The local area network discovery system is mainly used for device discovery, the control center broadcasts information of the local equipment through the device discovery system, and the terminal equipment acquires a central control equipment list in the current local area network through the system so as to carry out connection access of the next step; 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; the Web service system is mainly composed of a Web server, and the terminal can control the access of the intelligent media player through a Web browser through the Web server. All applications of the intelligent media player can provide data and accept control for the terminal in the local area network through the IP central control system. By the control method, a user can remotely operate and display the content of the intelligent media player in the local area network by using terminal equipment such as a mobile phone, a computer and the like, and the user has no additional cost, so that the developer is very easy to dock and the implementation is very simple.
Drawings
FIG. 1 is a general schematic of the system of the present application;
FIG. 2 is a remote control flow diagram;
FIG. 3 is a schematic diagram of a device discovery system passive discovery;
FIG. 4 is a schematic diagram of active discovery of a device discovery system;
FIG. 5 is a Web system flow diagram;
FIG. 6 is a general schematic of the control method of the present application;
FIG. 7 is a detailed schematic of FIG. 6;
FIG. 8 is a detailed schematic of FIG. 6;
FIG. 9 is a detailed schematic of FIG. 6;
fig. 10 is a detailed schematic diagram of fig. 6.
FIG. 11 is a method schematic of an embodiment of the application;
fig. 12 is a method schematic of another embodiment of the application.
Detailed Description
In order to more clearly illustrate the application, the application is further described below with reference to the accompanying drawings.
Example 1:
the application 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 in a coordinated manner by a control center. Wherein:
the control center is an Android service running on the intelligent media player, and the device discovery system, the plug-in system, the remote control system and the Web service system all run based on the service.
The device discovery system starts UDP multicast in a control center, receives an instruction of a terminal, 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 registers in the control center through the ContentProvider so that the control center interacts 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 unit 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 the data direction and control can be carried out on an intelligent media player in the Web page.
Please refer to fig. 6 to 10. The application 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 comprises the following steps:
s31, pairing the terminal and the intelligent media playing system is achieved through the equipment discovery system;
s32, the terminal remotely controls the intelligent media playing system in an HTTP mode through the remote control system.
Preferably, the control method further comprises the steps of:
s34, the terminal remotely controls the intelligent media playing system in a Web mode through the Web service system.
Further, the specific implementation steps of the device discovery system are as follows:
s311, the control center joins the multicast and sends an instruction notification terminal;
the control center creates multicast and then sends an instruction, and at the moment, if the terminal has joined the multicast, after receiving the instruction sent by the control center, the control center analyzes the equipment information in the instruction, and then displays the equipment on a list.
Further, the terminal refers to any intelligent electronic device, such as an android mobile phone, a computer and the like.
Further, the multicasting means that the UDP based MulficastSocket, UDP is a network transmission protocol.
Further, the instruction refers to a character string in a specific format, and the behavior of the first behavior instruction, such as JOIN, LEAVE, etc.; the second row is followed by an information row, each row being the "title: content "form.
Further, the list refers to an interface applied at the terminal for displaying all controllable smart media player devices.
S312, the terminal starts a TCP server, then joins multicast, and sends instruction notification to the central control terminal;
further, the TCP server refers to a Socket based on TCP, which is a network transmission protocol.
S313, after receiving the instruction, the control center sends information of the local equipment to a TCP server of the terminal;
s314, the terminal receives the equipment information and displays the equipment information on the list.
Further, the specific implementation steps of the plug-in system are as follows:
s331, a control center creates data sharing;
the control center creates a database containing fields such as plug-in name, package name and service name, and then shares the data with the database.
Further, data sharing refers to ContentProvider of Android, which is a way to access data across processes.
S332, other applications register the information of the application through data sharing;
other applications use the own plug-in names, package names and plug-in service names to carry out plug-in search by using the plug-in names through a database of a control center stored by data sharing, and then establish inter-process communication by using package names and service name binding services.
Further, the Service refers to Android Service, and cross-process communication can be performed through the Service.
S333, in control, the center acquires a corresponding registration application from a registration list according to a terminal request;
the control center splits the request sent by the terminal to obtain the plug-in name of the request target, and then queries the database by using the plug-in name to obtain the plug-in stored in the database.
Further, the request refers to a generic network request, based on the HTTP protocol, and url in the request must be "HTTP: v/IP: port/plug-in name/.."to parse out plug-in names and then communicate with the corresponding plug-ins.
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 control center establishes the inter-process communication based on AIDL, the control center forwards the request to the application, the application determines that if the request is processed according to the request, if the request is uploading or acquiring the data with large content such as the picture, the request is read and written with the control center through a remotecallbackList by using a preset interface, if the request is only required to return the data with small content, or the request is an instruction which can be directly completed in the application, such as an installed application list, application data clearing and the like, the request can be directly closed into a Json character string to be returned to the control center
Further, the AIDL is intended to be an android interface definition language, so that other applications can access services provided by the application.
S336, the application returns the result to the control center.
Further, the result refers to the j ava class of the package, which includes fields such as type, path, j son, etc., and the control center can judge the type of the returned result according to the fields and perform corresponding processing.
Further, the specific implementation steps of the remote control system are as follows:
s321, starting an HTTP server by the control center;
further, the Http server is a lightweight Http server composed of Http server and Socket of Android, and has the characteristic of multithreading.
S322, the terminal initiates an HTTP request according to the IP and the port number in the equipment information;
further, the HTTP request and the universal HTTP request have no 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, after the plug-in makes a response, returning a result to the control center;
s325, the control center processes the result and sends the result to the terminal.
The control center analyzes the result returned by the plug-in application, converts the real content into corresponding HttpEntity according to the type stated in the result, and then sets the corresponding HttpEntity into HttpResponse to complete HTTP response.
Further, the specific implementation steps of the Web service system are as follows:
s341, exporting the webpage into a file in advance, compressing the file, and putting the file into engineering;
after the web pages are developed, all the web pages are exported as files, compressed and placed under an engineering ascert directory.
S342, starting a Web server;
before starting the service, the control center firstly reads the webpage file under the assert directory, decompresses the webpage file 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-dimension code website of the server;
after the Web server is started, in order to facilitate quick connection of a user, in a visual interface of a control center, a two-dimensional code is generated by using a third-party open source library ZXingCode and displayed on the interface. And simultaneously, the access address of the Web server is also displayed on the interface.
And S344, the terminal accesses by scanning the two-dimensional code or inputting a website in the browser.
When a user needs to access the Web, the user can scan the two-dimensional code by using intelligent electronic equipment such as an android mobile phone or a apple mobile phone, and jump to a browser to display the Web page after scanning. Or directly inputting the access address of the Web server in the browser for access.
Example 2:
the application 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 in a coordinated manner by a control center. Wherein:
the control center is an Android service running on the intelligent media player, and the device discovery system, the plug-in system, the remote control system and the Web service system all run based on the service.
The device discovery system starts UDP multicast in a control center, receives an instruction of a terminal, 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 registers in the control center through the ContentProvider so that the control center interacts 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 unit 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 the data direction and control can be carried out 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 (shown in figure 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, terminals such as mobile phones, tablets and the like firstly create a MulticastSocket based on a network protocol UDP. And invokes the join group to join the predetermined broadcast address.
And secondly, the control center of the central control end JOINs the multicast in the same way, immediately sends a joining instruction after joining the multicast, wherein the joining instruction is a section of character string in a specific format, the first row is JOIN, the other rows are information such as IP, port number, equipment name and the like of the equipment, and the information is packaged in a Datagram socket form and sent to the joined broadcast by the MulticastSocket.
And thirdly, the terminal receives the instruction in the broadcast, analyzes the equipment information in the instruction and then displays the equipment information in the list.
Referring to fig. 3, the device discovery system actively discovers and realizes the following steps:
firstly, a control center firstly joins multicast;
and secondly, the terminal firstly creates a Socket based on a network protocol TCP and blocks waiting for receiving data. Then adding multicast and sending instruction;
thirdly, after the MulticastSocket of the control center receives the DatagramPacket instruction, analyzing and obtaining the IP and port number of the TCP server of the terminal, then creating Socket to establish connection with the Socket of the terminal, and sending the information of the local equipment.
Fourth, after receiving the device information, the terminal displays the device on a list
As shown in fig. 4, the device remote control system and the plug-in system cooperate to realize remote control, and the specific process comprises the following steps:
firstly, a control center of the intelligent media player creates a database which contains fields such as a plug-in name, a package name, a service name and the like, and then the database is subjected to data sharing. And the other applications complete the registration operation by using the own plug-in names, package names and plug-in service names through a database of a control center stored by data sharing.
Secondly, the control center starts an HTTP server, wherein the HTTP server is a lightweight HTTP server composed of HTTP server and Socket of Android and has the characteristic of multithreading.
Third, the client or browser sends a generic network request to the control center, the request is based on HTTP protocol, and url in the request must be "HTTP: v/IP: port/plug-in name/. The form of ".
Fourthly, after receiving the request, the control center analyzes url in the request to obtain the plug-in name contained in the url, and then queries a database by using the plug-in name to find out corresponding plug-in information. And initiating binding for the plug-in service by using the package name and the service name in the plug-in information.
And fifthly, the plug-in service accepts the binding and returns an interface based on AIDL for the control center to call.
And seventhly, smoothly completing binding after the interface is acquired, and forwarding the request to the plug-in by using a preset interface.
And eighth step, the plug-in analyzes after receiving the request, if the request is uploading or acquiring the data with large content, the plug-in performs read-write operation with the control center through the interface, if the request only needs to return the data with small content, or is an instruction which can be directly completed in the application, such as an installed application list, application data clearing and the like, the request can be directly closed into a Json character string to be returned to the control center.
And ninth, after receiving the result returned by the plug-in application, the control center analyzes the result, converts the real content into corresponding httpenty according to the type stated in the result, and then sets the httpenty into HttpResponse to complete the HTTP response.
And tenth, 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 browser.
The specific implementation steps of the Web service system are as follows, as shown in comprehensive figure 5:
firstly, developing a webpage in advance, exporting the webpage into a file, compressing the file, putting the file under an engineering ascert catalog, decompressing the compressed file when the control center is started, and storing the decompressed file into a private catalog for the Web server to use.
And secondly, the control center reads the data of the webpage file, starts a NanoHTTPD server, generates a two-dimensional code and always displays the two-dimensional code and the address on a visual interface.
Thirdly, the terminals such as mobile phones, tablets or computers can jump to the website by using a browser in the form of scanning two-dimensional codes or inputting the website, and the webpage can be displayed on the browser.
The application will be further described with reference to fig. 11 and 12.
The intelligent media playing system of the application refers to a media player based on an android system (such as a product of a skyhook magic box), and is hereinafter referred to as a box. The whole system aims at controlling android applications at a box end for intelligent terminals (such as android devices, apple devices, desktops and other terminals). For example, the box end is provided with a video application, the application is provided with a plurality of video files, the android mobile phone can browse videos of the application through the system, the video can be controlled to be played, and editing, setting and the like can be performed. That is, all of the functionality of the application may be presented on the handset through the system. The purpose of this is that the box is operated by a remote control, and the operations of searching, editing and the like have a lot of inconveniences, especially the typing is very hard, and the operation by a mobile phone is much more convenient.
The whole process is as follows: the box end starts the control center service (an application), and then the controlled application is registered in the control center (only one time is needed to be registered); the mobile phone terminal searches the equipment of the local area network firstly, initiates connection after finding the equipment, and acquires the necessary information of the equipment; the mobile phone initiates an application control request to the control center, the control center receives the request and forwards the request to the application, 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 this patent are: the intelligent terminal controls other application steps through the control center, namely: the control center receives the request and 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 application consists of a service end and a control end (client). The server side consists of a control center and registered applications, wherein the control center consists of a device discovery server, a web server, a plug-in service and an http server. The control end can be an intelligent device (android mobile phone, apple mobile phone and the like), and can also be a web browser (360 browser, UC browser and the like, and the browser of the mobile phone or the computer end can be used). If the device is an intelligent device, a specific application (client application) is installed, and the control is performed in an http mode. If the browser is a web browser, the client is not required to be installed, and the browser can be operated directly.
Please refer to fig. 11. Fig. 11 illustrates a flow of web access. The specific description is as follows:
and the control center receives the startup broadcast of the android system, and the startup is self-started.
After the control center is started, related services such as control center service (service), device discovery server (joining device discovery multicast), WEB and the like 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 a 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, inquires and acquires the related 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 after receiving the request and sends the processing result to the control center.
The control center encapsulates the processing results and returns the processing results to the browser in the form of web.
And the browser receives the returned result and displays the result on the interface.
It should be noted that: other plug-ins are understood to be plug-in systems which may comprise at least one plug-in.
In summary, after the control center is started, the relevant service is started. And then, the control center sends the 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 returns the web page information after the control center receives the access request of the browser. The user can operate the returned webpage information, and the browser requests the operation to the control center; after receiving the request, the control center forwards the request to the plug-in system, the plug-in system processes the request and returns the processed result to the control center, and the control center returns the result to the browser end.
It should also be noted that: when the user accesses the control center using the browser, the user may manually input the server address, for example, input the IP address, or input the domain name of the server. And, if the browser has address information of the server already stored, the user can also dispense with the process of manual input.
Please refer to fig. 12. Fig. 12 illustrates the flow of an http access. The specific description is as follows:
and the control center receives the startup broadcast of the android system, and the startup is self-started.
After the control center is started, starting a control center service (service), starting an http server, starting a device discovery server (joining device discovery multicast), and starting a WEB service.
And then sending a BroadCast (BroadCast) to other applications, and registering the other applications in the control center through data sharing after receiving the BroadCast.
The terminal joins the device to find the multicast, sends UDP broadcast, and notifies the server in the multicast. And the server returns information to the terminal after receiving the information.
After receiving the information, the terminal sends a control application to the control center, and after receiving the request, the box user saves the authorization record and returns the result.
After the terminal acquires the permission, an http request is sent to the control center.
After receiving the request, the control center analyzes the request, acquires the corresponding plug-in name registered by the application, inquires and acquires the related 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 after receiving the request and sends the processing result to the control center.
And the control center encapsulates the processing result and returns the processing result to the client in the form of http.
And the terminal receives the returned result and displays the result on the interface.
It should also be noted that: the terminal referred to in the present application may be implemented in various forms. For example, the terminals described in the present application may include mobile terminals such as cell phones, tablet computers, notebook computers, palm computers, personal digital assistants (Personal Digital Assistant, PDA), portable media players (Portable Media Player, PMP), navigation devices, wearable devices, smart bracelets, pedometers, and fixed terminals such as digital TVs, desktop computers, 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 one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (7)

1. An intelligent media playing system comprising a device discovery system, a plug-in system, and a remote control system, and operated in coordination by a control center, wherein:
the control center is an Android service running on 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 service;
the equipment discovery system starts UDP multicast in a control center, receives an instruction of a terminal, then sends 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 registers in the control center through the ContentProvider so that the control center interacts with the registered applications;
the remote control system is that an HTTP server is started in a control center, a terminal sends a request to the control center according to an HTTP protocol, the control center distributes the request to a plug-in unit for processing and then returns data to the terminal, and the control of the intelligent media playing system comprises the following steps: s31, pairing the terminal and the intelligent media playing system is achieved through the equipment discovery system; s32, realizing remote control of the intelligent media playing system by the terminal in an HTTP mode through a remote control system;
after the step S32, the method further includes: s33, processing a task request distributed by the remote control system by adopting a plug-in system, and returning data to the terminal after the plug-in system finishes processing; the plugins in the plugin system are application programs of the control center, and interact with the control center through the identity of the plugins, so that interaction with the terminal is achieved indirectly, and the specific implementation steps of the step S33 are as follows:
s331, a control center creates a data sharing ContentProvider;
s332, other applications register information of the application through the ContentProvider;
s333, the control center acquires a 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;
s336, the application returns the result to the control center;
in the step S332, the information of 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 the format of ip+port+plug-in name+uri, and the control center analyzes the plug-in name in url, queries the database, and finds out the corresponding registration application information;
in step S335, the control center interacts with the application based on AIDL, the control center forwards the request to the application, the application determines how to process the request according to the request, if the request is uploading or acquiring data with large content, the request is read and written with the control center through a remotecall back list by using a predetermined interface, if the request only needs to return data with small content or is an instruction which can be directly completed in the application, the request is directly closed into a Json character string and returned to the control center.
2. The intelligent media playback system of claim 1, further comprising a Web services system, wherein,
the Web service system is characterized in that a nanoHTTPD server is started in a control center, terminal equipment accesses the control center through a Web browser to acquire a Web page, and then data access and control are carried out on an intelligent media player in the Web page.
3. The intelligent media playback system of claim 2, further comprising the steps of:
s34, the terminal remotely controls the intelligent media playing system in a Web mode through the Web service system.
4. The intelligent media playing system according to claim 3, wherein the specific implementation steps of step S31 are as follows:
s311, the control center joins the multicast and sends an instruction notification terminal;
s312, the terminal starts a TCP server, then joins multicast, and sends instruction notification to the central control terminal;
s313, after receiving the instruction, the control center sends information of the local equipment to a TCP server of the terminal;
s314, the terminal receives the equipment information and displays the equipment information on the list.
5. The intelligent media playback system of claim 4, wherein,
in the step S311, the control center creates a MulticastSocket based on UDP, joins the group, then sends an instruction, encapsulates the instruction in the form of datagram, and then parses out the device information in the instruction if the terminal has joined the multicast, after receiving the instruction sent by the control center, and then displays the device in the list;
in the step S312, the terminal creates a Socket based on TCP, blocks waiting for receiving equipment information, and then joins multicast, and the sending instruction requests the control center to send the equipment information;
in step S313, after receiving the instruction, the control center creates a Socket and establishes connection with a ServerSocket, then sends information to the terminal, and after receiving the instruction, the terminal displays the device information on the list.
6. The intelligent media playing system according to claim 1, wherein the specific implementation steps of the step S32 are as follows:
s321, starting an Http server by a 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, after the plug-in makes a response, returning a result to the control center;
s325, the control center processes the result and sends the result to the terminal.
7. The intelligent media playing system according to claim 3, wherein the specific implementation step of the step S34 is as follows:
s341, exporting the webpage into a file in advance, compressing the file, and putting the file into engineering;
s342, starting a Web server;
s343, generating a two-dimension code website of the server;
and S344, the terminal accesses by scanning the two-dimensional code or inputting a website in the browser.
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 CN111010437A (en) 2020-04-14
CN111010437B true 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)

Families Citing this family (5)

* 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
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
CN117271270B (en) * 2023-11-21 2024-04-05 麒麟软件有限公司 Method for monitoring Android music playing on Web operating system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
WO2015109872A1 (en) * 2014-01-26 2015-07-30 广东欧珀移动通信有限公司 Method for quickly accessing and controlling the playing of shared media file based on samba
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

Family Cites Families (3)

* 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
US20140178052A1 (en) * 2012-12-26 2014-06-26 Sling Media Inc. Systems and methods for remotely recording media content
CN105979353A (en) * 2015-12-04 2016-09-28 乐视致新电子科技(天津)有限公司 Method and device for controlling video playing of play device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
WO2015109872A1 (en) * 2014-01-26 2015-07-30 广东欧珀移动通信有限公司 Method for quickly accessing and controlling the playing of shared media file based on samba
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

Also Published As

Publication number Publication date
CN111010437A (en) 2020-04-14

Similar Documents

Publication Publication Date Title
CN111010437B (en) Intelligent media playing system and control method
JP7391890B2 (en) Search page display method, device, terminal and storage medium
CN103606310B (en) Teaching method and system
US20170163580A1 (en) Interactive method and device for playback of multimedia
CN113741765B (en) Page jump method, device, equipment, storage medium and program product
US9749322B2 (en) Information sharing system and information sharing method
CN109032606A (en) The process of compilation method, apparatus and terminal of native applications program
CN113253880B (en) Method and device for processing pages of interaction scene and storage medium
US20170277526A1 (en) Software categorization method and electronic device
CN112995721A (en) Video delivery method, delivery method and device of rich media content and storage medium
CN108810132B (en) Animation display method, device, terminal, server and storage medium
CN108401173B (en) Mobile live broadcast interactive terminal, method and computer readable storage medium
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
CN113228561A (en) Providing virtual desktops within a computing environment
US20220215482A1 (en) User information processing method, apparatus, electronic device, and computer storage medium
CN112911320A (en) Live broadcast method and device, computer equipment and storage medium
CN110618811B (en) Information presentation method and device
US10101831B1 (en) Techniques for sharing data between devices with varying display characteristics
JP6406028B2 (en) Document display support device, terminal device, document display method, and computer program
WO2022117028A1 (en) Game livestreaming-based anchor input operation sharing and displaying methods and device
CN105630948A (en) Web page display method and apparatus
CN114416248A (en) Conversation method and device thereof
CN112004158B (en) Text input method, television and readable storage medium
JP6586717B1 (en) Content providing system and program

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