Disclosure of Invention
The invention aims to provide a terminal display control method and a terminal display control device.
Therefore, in a first aspect, the present invention provides a terminal display control method, including: acquiring a terminal list, wherein the terminal list comprises at least one piece of terminal information; the method comprises the steps of obtaining a play list of each terminal in at least one piece of terminal information, wherein the play list comprises a plurality of pieces of first visible display file information configured according to the authority of the terminal; and respectively sending a first playing instruction to at least one terminal, wherein the first playing instruction comprises a plurality of pieces of first visible display file information, and the first playing instruction is used for enabling the terminal to play a plurality of first visible display files according to the first playing instruction.
According to an aspect of the embodiments of the present invention, after obtaining the playlist of each terminal in the at least one piece of terminal information, the presentation control method further includes: editing a plurality of first visible display files configured according to the authority of the terminal to obtain at least one piece of second visible display file information; and respectively sending a second playing instruction to at least one terminal, wherein the second playing instruction comprises at least one piece of second visible display file information, and the second playing instruction is used for enabling the terminal to play at least one piece of second visible display file according to the second playing instruction.
According to an aspect of the embodiments of the present invention, editing a plurality of first visible display files configured according to a right of a terminal to obtain information of at least one second visible display file includes: and modifying, deleting or adjusting the playing sequence of the plurality of first visible display files configured according to the authority of the terminal to obtain at least one piece of second visible display file information.
In a second aspect, the present invention further provides a terminal display control method, including: sending a playlist of the terminal to the central control device, wherein the playlist comprises information of a plurality of first visible display files configured according to the authority of the terminal; receiving a first playing instruction sent by the central control equipment according to the playlist, wherein the first playing instruction comprises a plurality of pieces of first visible display file information; and playing the plurality of first visible display files according to the first playing instruction.
According to an aspect of the present invention, before sending the playlist of the terminal to the central control device, the terminal presentation control method further includes: sending a playing request to a server, wherein the playing request is used for requesting authorized playing content from the server; receiving authorized playing content sent by a server, wherein the playing content is encrypted playing content; and generating a play list according to the play content.
According to an aspect of the present invention, before playing the plurality of first visible display files according to the first play instruction, the terminal display control method further includes: the plurality of first visible presentation files are decrypted.
According to an aspect of the present invention, the playing method further includes: receiving a second playing instruction sent by the central control equipment, wherein the second playing instruction comprises at least one piece of second visible display file information; and playing at least one second visible display file according to the second playing instruction.
According to an aspect of the invention, the plurality of first visual presentation files includes a video file, a text file, and a voice file synchronized with the text file.
In a third aspect, the present invention further provides a terminal display control apparatus, including: the terminal list comprises at least one terminal; the acquisition unit is further used for acquiring a playlist of each terminal in at least one piece of terminal information, wherein the playlist includes a plurality of pieces of first visible display file information configured according to the authority of the terminal; the first sending unit is used for sending a first playing instruction to at least one terminal respectively, the first playing instruction comprises a plurality of pieces of first visible display file information, and the first playing instruction is used for enabling the terminal to play a plurality of first visible display files according to the first playing instruction.
In a fourth aspect, the present invention further provides a terminal display control apparatus, including: the second sending unit is used for sending a playlist of the terminal to the central control device, wherein the playlist comprises information of a plurality of first visible display files configured according to the authority of the terminal; the receiving unit is used for receiving a first playing instruction sent by the central control equipment according to the playlist, wherein the first playing instruction comprises a plurality of pieces of first visible display file information; and the playing unit is used for playing the plurality of first visible display files according to the first playing instruction.
In another aspect, the present invention also provides an apparatus, comprising: a memory storing computer program instructions; a processor, which when executed by the processor implements the terminal presentation control method as described above.
In another aspect, the present invention also provides a computer storage medium, where the computer storage medium includes instructions, and when the instructions are executed on a computer, the instructions cause the computer to execute the terminal display control method as described above.
According to the terminal display control method and device, the displayable content of the terminal is configured according to the authority of the terminal so as to meet the personalized display requirements of different display scenes, the operation is flexible and simple, the operation personnel is not needed to be on duty, and the labor cost is reduced.
Detailed Description
The embodiments of the present invention will be described in further detail with reference to the drawings and examples. The following detailed description of the embodiments and the accompanying drawings are provided to illustrate the principles of the invention and are not intended to limit the scope of the invention, i.e., the invention is not limited to the described embodiments.
In the description of the present invention, it should be noted that the terms "first", "second", "third", and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance, unless otherwise stated.
For better understanding of the present invention, a terminal display control method and apparatus according to an embodiment of the present invention are described in detail below with reference to fig. 1 to 5.
As shown in fig. 1, an embodiment of the present invention provides a terminal display control system. The terminal display control system comprises a terminal, a central control device and a server. The terminal can be at least one terminal with a display screen, such as a mobile phone, a television, a large screen of an exhibition hall, and the like. The display content is stored in the cloud storage end and then displayed through terminals such as a television, a mobile phone and a large screen of an exhibition hall.
All terminals interact with the load balancing server through RESTFUL API interfaces and HTTPS protocols. HTTPS action has two effects: firstly, an information security channel is established to ensure the security of data transmission, and secondly, the authenticity of the website is confirmed. The internal network and the external network are separated by the firewall, data interaction of the internal network and the external network is realized through the NAT technology, any activity between the internal network and the external network is effectively monitored, and the safety of the internal network is ensured. The load balancing server is deployed at the exit, all requests sent by the front end pass through the load balancing server, and the load balancing server is controlled in a unified mode. The load balancer hides the back-end server, improves the overall performance, carries out fault transfer, and reasonably distributes tasks according to the weight. In addition, the background service logic server is separated from the client service logic server, so that the background service and the client service are ensured not to be influenced and stable.
In addition, the database memory guarantees basic data security and file authorization information, and the cloud storage service storage kms (key Management service) is a secure and highly reliable key Management system. When the user uploads the Object, the HTTP Header of x-os-server-side-encryption is carried in the request, the value of the HTTP Header is designated as KMS, the KMS encrypts the Object by using CMK established by default of the system, and if the user designates x-os-server-side-encryption-key-id in the request, the os encrypts and decrypts by using the designated CMK. The use of a user-specified CMK can provide greater flexibility including creating, rotating, disabling, and customizing access controls, as well as auditing cryptographic key capabilities for protecting data.
The central Control end sends out an instruction Control terminal through a High Level Data Link Control procedure (HDLC), wherein the HDLC is a Data Link layer protocol which transmits Data on a synchronous network and faces to bits. The protocol has the advantages of no dependence on any character coding set, transparent transmission of data messages, high data link transmission efficiency, high transmission reliability and high flexibility. The terminals such as televisions, mobile phones and the like can directly access the server to display the content, and can also display the content in a linkage mode through the central control equipment.
The following describes in detail a specific flow of the terminal display control method provided by the embodiment of the present invention with reference to the accompanying drawings.
Referring to fig. 2, an embodiment of the present invention provides a terminal display control method, including:
step S1: and acquiring a terminal list, wherein the terminal list comprises at least one piece of terminal information.
In the embodiment of the invention, the server creates the special account for each exhibition hall, and performs personalized content configuration on the special account, and can inherit the general configuration. The proprietary account may be, for example, a combination of a terminal account and an exhibition hall attribute. And the central control equipment of the exhibition hall directly adopts the special account number to log in, and after the central control equipment is accessed to a large screen, the central control equipment logs in by using the corresponding composite special account number. The composite proprietary account number may be, for example, "proprietary account number" + "No" + numbered. The server stores the created account information in a database, and the uniqueness of the newly created special account and the composite special account is guaranteed.
And the server judges a terminal list corresponding to the central control equipment according to the special account information of the central control equipment. And the central control equipment acquires the terminal list from the server at regular time and displays the received terminal list. And if the terminal list is changed, automatically refreshing the terminal list and displaying. In the prior art, the access mode of the terminal and the server is mainly determined whether to access according to the same network segment, but in practical application, a network in one exhibition hall may have a plurality of network segments, and the access mode of the terminal is easily influenced by the network environment. In the embodiment of the invention, the terminal access central control equipment is mainly controlled by the account number, is not influenced by the network environment, does not need additional configuration of a terminal user, and is simple and easy to use.
Step S2: and acquiring a play list of each terminal in at least one piece of terminal information, wherein the play list comprises a plurality of pieces of first visible display file information configured according to the authority of the terminal.
The user logs in the central control equipment by using the special account, the central control equipment receives a user login instruction, and the RESTFUL style login interface is called through HTTPS protocol communication to verify the user login. And after the login is successful, the central control equipment registers the HDLC service to start monitoring and is used for monitoring the working state of at least one terminal device. And the user logs in the terminal by using the composite special account, the terminal receives a login instruction, and the RESTFUL interface login interface is called through HTTPS protocol communication to verify the user login. And after the login is successful, registering the HDLC service. And the central control equipment and at least one terminal establish connection through an HDLC protocol.
The server configures a visible content list for each special account, and meets the personalized display requirements of different display scenes. The central control equipment receives a content viewing instruction of at least one terminal, sends a content list inquiring instruction to the server, and the server receives the content list inquiring instruction and inquires a visible content list configured for each special account in the database. And the central control equipment acquires a play list of the terminal according to the visible content list and the terminal information and stores the play list, wherein the play list comprises a plurality of pieces of first visible display file information configured according to the authority of the terminal. The playlist is stored in the server and can be used for a long time.
Step S3: and respectively sending a first playing instruction to at least one terminal, wherein the first playing instruction comprises a plurality of pieces of first visible display file information, and the first playing instruction is used for enabling the terminal to play a plurality of first visible display files according to the first playing instruction.
The central control equipment acquires the play list, selects the terminal needing to be configured, clicks and selects the file or the file list needing to be played, and sends a first play instruction to the terminal, so that frequent management of the played file is omitted. And the terminal plays the plurality of first visible display files according to the first playing instruction. Because the central control equipment is associated with the terminal of the exhibition hall through the login account, the central control equipment can remotely control the playing content of the terminal, and unattended operation of the exhibition hall is realized.
According to the terminal display control method provided by the embodiment of the invention, the displayable content of the terminal is configured according to the authority of the terminal so as to meet the personalized display requirements of different display scenes, the operation is flexible and simple, the operation personnel is not required to be on duty, and the labor cost is reduced.
Further, after step S2, that is, after acquiring the playlist of each terminal in the at least one piece of terminal information, the presentation control method further includes:
step S4: editing a plurality of first visible display files configured according to the authority of the terminal to obtain at least one piece of second visible display file information;
step S5: and respectively sending a second playing instruction to at least one terminal, wherein the second playing instruction comprises at least one piece of second visible display file information, and the second playing instruction is used for enabling the terminal to play at least one piece of second visible display file according to the second playing instruction.
Further, in step S4, the editing the plurality of first visible display files configured according to the authority of the terminal to obtain at least one piece of second visible display file information includes:
step S41: and modifying, deleting or adjusting the playing sequence of the plurality of first visible display files configured according to the authority of the terminal to obtain at least one piece of second visible display file information.
In the embodiment of the invention, in the linkage process of the central control device and at least one terminal, the central control device can edit a plurality of first visible display files configured according to the authority of the terminal, for example, the central control device can control the display contents of a plurality of terminals accessed to an exhibition hall in real time, can switch the display contents of each terminal in real time, or terminate the playing of a certain terminal, so that one-to-many control is realized, and the operation is flexible and variable.
It should be noted that the operations of adding or deleting information of the plurality of first visible display files in the playlist, adjusting the playing sequence, and the like are only used for modifying the display information of the playlist, and do not modify the display files stored in the server. When the specific content of the display file needs to be modified, the specific content needs to be modified through the server, so that the controllability of the display content is ensured.
Therefore, in the embodiment of the invention, the visible file range is determined by the server configuration account, and the visible file range is synchronized to the terminal in real time by a professional technical means, so that the problem of unicity in the prior art that the visible file range is stored and then sent to the terminal for playing is solved. In addition, the central control equipment is automatically accessed to at least one terminal, each terminal can be accurately positioned, the display contents of the terminals are linked in real time, the display effect of the terminals is greatly improved, and the workload of controlling the terminals is reduced.
Referring to fig. 3, an embodiment of the present invention further provides a terminal display control method, including:
step R1: and sending a playlist of the terminal to the central control equipment, wherein the playlist comprises information of a plurality of first visible display files configured according to the authority of the terminal.
After the terminal is connected with the central control device through the account, a play list of the terminal is sent to the central control device, and the play list comprises information of a plurality of first visible display files configured according to the authority of the terminal, so that the display content of the terminal is in a controllable state.
Step R2: and receiving a first playing instruction sent by the central control equipment according to the playlist, wherein the first playing instruction comprises a plurality of pieces of first visible display file information.
After a common user logs in an account at a terminal such as a television or a mobile phone APP, the terminal such as the television or the mobile phone APP receives a user login instruction, and a user name and a password are inquired, verified and stored. After the login is successful, the server allocates the visible resources through the right to which the account belongs, and can implement synchronization to the terminal according to the synchronization technology. Such as: only the Beijing exhibition hall can see the Beijing files, and the Chengdu can only see the Chengdu files; the general promotion file can specify the distribution city and check a plurality of exhibition halls. If the file played in the exhibition hall with the current account needs to be put down on shelf urgently, the local playing can be stopped immediately by modifying the authority of the terminal account.
Step R3: and playing the plurality of first visible display files according to the first playing instruction.
After the central control device initiates a first playing instruction through the encryption channel, the terminal starts to play the authorized first visible display files. After receiving the first playing instruction, the terminal optimizes adaptation and self-adapts to the network state according to the depth of the exhibition hall terminal and sends different code rates to the terminal.
Specifically, after receiving the first play command, the terminal requests the server to play a plurality of first visible display files, and transmits the network status to the server. And after receiving the playing request, the server pushes the proper code rate to the terminal according to the network condition. In the playing process, the server automatically switches code rates according to the network condition. Therefore, automatic real-time switching of various code rates at different network speeds is realized, high-definition code rate video is automatically switched under the network environment with high bandwidth and high speed, and low code rate is automatically switched when the network environment is poor.
Further, before step R1, that is, before sending the playlist of the terminal to the central control device, the terminal presentation control method further includes:
step R01: and sending a playing request to the server, wherein the playing request is used for requesting authorized playing content from the server.
An administrator at the server side uploads the display file, can classify and identify the playing content of the display file, and sets a visible file range for different terminal accounts, so that the existing resources can be effectively shared, and information sharing and resource sharing are achieved. After the display file is uploaded, the display file needs to be approved by an administrator to ensure that the playing content is controllable. Only the administrator is limited to have the uploading authority of the played content, so that the played content can be ensured to be in accordance with the regulation, and the quality of the played content is ensured.
Step R02: and receiving authorized playing content sent by the server, wherein the playing content is encrypted playing content.
The server caches the played content to a storage medium after multiple encryption, simultaneously starts a high-performance security caching mechanism, asynchronously downloads the video, and after the downloading is successful, protects the file coding, encryption, compression and scattering technologies, achieves 99.9% security protection, and ensures the security of the displayed content. A unique lossless compression technology can be adopted for the video files, the occupied space ratio of 45% is saved in comparison with the source files after compression, the fluency is improved by 30%, and meanwhile the impression is not influenced.
Step R03: and generating a play list according to the play content.
Further, before step R3, that is, before playing the plurality of first visible display files according to the first playing instruction, the terminal display control method further includes:
step R21: the plurality of first visible presentation files are decrypted.
Further, the terminal display control method provided by the embodiment of the present invention further includes:
step R4: receiving a second playing instruction sent by the central control equipment, wherein the second playing instruction comprises at least one piece of second visible display file information;
step R5: and playing at least one second visible display file according to the second playing instruction.
If the current file needs to be skipped over in the playing process to play a new file, only a new playing instruction needs to be sent, and the file which is being played before immediately exits to start playing the new file. If multicast is needed, files needing to be played can be added into a play set, a set command is sent, the terminal plays circularly according to a play list, the unattended state of the exhibition hall can be achieved, and the exhibition cost of the exhibition hall is saved by about 35%.
Further, the plurality of first visual presentation files in the step R3 includes a video file, a text file, and a voice file synchronized with the text file.
The video file is uploaded by the server, and the server automatically converts the content of the video file into an m3u8 format for storage. The m3u8 format supports the mainstream browser of windows, android and ios equipment in the current market, and the same video file can be played in a flash environment and a flash-free html5 environment. Therefore, the playing contents can be normally displayed by the terminals of mobile phones, televisions and the like with various brands and models in the market, and the display smoothness is improved.
The method includes the steps that a text file is uploaded through a server, the text file is for example a PowerPoint (PPT), after playing contents are automatically identified by the server, pictures and commentary are fitted and sent to a terminal in a sound-picture synchronization mode, and when the terminal plays the contents of the text file, the virtual robot explains the commentary of a current page configured in advance. Through the intelligent explanation mode, the unified explanation style and the stable explanation level can be ensured, the limitation of the capability of an individual commentator is avoided, and the use requirement of high-efficiency and intelligent scene application is met.
Referring to fig. 5, an embodiment of the present invention further provides a terminal display control apparatus, including: an acquisition unit 10 and a first sending unit 20.
The acquiring unit 10 is configured to acquire a terminal list, where the terminal list includes at least one terminal; the acquisition unit is further configured to acquire a playlist of each terminal in the at least one piece of terminal information, where the playlist includes a plurality of pieces of first visible display file information configured according to the authority of the terminal.
The first sending unit 20 is configured to send a first play instruction to at least one terminal, where the first play instruction includes information of a plurality of first visible display files, and the first play instruction is used to enable the terminal to play the plurality of first visible display files according to the first play instruction.
The terminal display control device can be a central control device of an exhibition hall.
Referring to fig. 5, an embodiment of the present invention further provides a terminal display control apparatus, including: a second transmitting unit 30, a receiving unit 40 and a playing unit 50.
The second sending unit 30 is configured to send a playlist of the terminal to the central control device, where the playlist includes information of a plurality of first visible display files configured according to the authority of the terminal;
the receiving unit 40 is configured to receive a first play instruction sent by the central control device according to the playlist, where the first play instruction includes information of a plurality of first visible display files.
The playing unit 50 is configured to play the plurality of first visible display files according to a first playing instruction.
The terminal display control device can be a mobile phone, a television, a large screen in an exhibition hall and other terminals.
It can be understood that the terminal display control device provided in the embodiment of the present invention is an execution main body of the terminal display control method, and the content of the terminal display control method is specifically implemented by each unit of the terminal display control device, which is not described herein again.
In addition, an embodiment of the present invention further provides an apparatus, including:
a memory storing computer program instructions;
a processor, which when executed by the processor implements any of the aforementioned terminal presentation control methods.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium includes instructions, and when the instructions are executed on a computer, the instructions cause the computer to execute any one of the terminal display control methods described above.
While the invention has been described with reference to a preferred embodiment, various modifications may be made and equivalents may be substituted for elements thereof without departing from the scope of the invention. In particular, the technical features mentioned in the embodiments can be combined in any way as long as there is no structural conflict. The present invention is not limited to the predetermined embodiments disclosed herein but encompasses all technical solutions falling within the scope of the claims.