CN112486446A - Content editing method and device based on server - Google Patents

Content editing method and device based on server Download PDF

Info

Publication number
CN112486446A
CN112486446A CN202011388883.XA CN202011388883A CN112486446A CN 112486446 A CN112486446 A CN 112486446A CN 202011388883 A CN202011388883 A CN 202011388883A CN 112486446 A CN112486446 A CN 112486446A
Authority
CN
China
Prior art keywords
display content
client
editing
content
request instruction
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
CN202011388883.XA
Other languages
Chinese (zh)
Other versions
CN112486446B (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.)
PCI Suntek Technology Co Ltd
Original Assignee
PCI Suntek 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 PCI Suntek Technology Co Ltd filed Critical PCI Suntek Technology Co Ltd
Priority to CN202011388883.XA priority Critical patent/CN112486446B/en
Publication of CN112486446A publication Critical patent/CN112486446A/en
Application granted granted Critical
Publication of CN112486446B publication Critical patent/CN112486446B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/452Remote windowing, e.g. X-Window System, desktop virtualisation
    • 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]

Abstract

The embodiment of the application discloses a content editing method and device based on a server. The method comprises the following steps: receiving a request instruction for establishing a websocket protocol sent by a client, upgrading the HTTP into the websocket protocol, and connecting the websocket protocol with the client through an information transmission channel; the information transmission channel is a websocket protocol established between the client and the server; receiving a request instruction for entering a content editing mode sent by the client through the information transmission channel, thereby entering the content editing mode; receiving an edit display content request instruction sent by the client through the information transmission channel, and editing the display content according to the edit display content request instruction; and receiving a request instruction sent by the client for sending the display content to the large-screen end through the information transmission channel, so that the display content is sent to the large-screen end for displaying the display content by the large-screen end.

Description

Content editing method and device based on server
Technical Field
The embodiment of the application relates to the technical field of large-screen-end display, in particular to a content editing method and device based on a server.
Background
The enterprises engaged in production, storage, use, operation and transportation of chemicals relate to the industries of chemicals which have the characteristics of flammability, explosiveness, toxicity, harmfulness and corrosion and cause harm or damage to personnel, facilities and environment, and are called hazardous chemical industries. Because the product chain of the hazardous chemical industry is easily interfered by the outside world to cause an accident, each link of the product chain needs to be monitored in real time.
At present, the solutions for monitoring the dangerous chemical industry product chain all comprise a PC (personal computer) end and a large-screen end, the display content of the large-screen end is generally customized and designed for a client, the appeal of the client is continuously changed, and the content displayed by the large-screen end needs to be adjusted and optimized in stages according to the appeal of the client. Meanwhile, products in the same industry are applied to different clients, the difference of functional ontologies is not large, but the products need to be customized and developed one by one according to the requirement of a large screen end, and the integral development cost is very high.
Disclosure of Invention
The embodiment of the application provides a content editing method and device based on a server, and the method and device can solve the problems that the development is customized according to the requirement of a large screen end, the development cost is high, the content of the large screen end can be modified randomly, the customized development is not needed, and the convenience and the practicability of products are improved.
In a first aspect, an embodiment of the present application provides a server-based content editing method, including:
receiving a request instruction for establishing a websocket protocol sent by a client, upgrading the HTTP into the websocket protocol, and connecting the websocket protocol with the client through an information transmission channel; the information transmission channel is a websocket protocol established between the client and the server;
receiving a request instruction for entering a content editing mode sent by the client through the information transmission channel, thereby entering the content editing mode;
receiving an edit display content request instruction sent by the client through the information transmission channel, and editing the display content according to the edit display content request instruction;
and receiving a request instruction sent by the client for sending the display content to the large-screen end through the information transmission channel, so that the display content is sent to the large-screen end for displaying the display content by the large-screen end.
Further, before the step of receiving a request instruction for establishing a websocket protocol sent by a client, upgrading an HTTP protocol to the websocket protocol, and connecting the client through an information transmission channel, the method further includes:
and monitoring a request instruction sent by the client through a socket interface.
Furthermore, the content editing mode is configured with a plurality of function sections, and the function sections are used for presenting data in a preset presentation mode.
Further, the step of the function section including a preview section for displaying the display content of the designated function section, the step of receiving the edit display content request instruction sent by the client through the information transmission channel, and editing the display content according to the edit display content request instruction includes:
receiving the editing display content request instruction, and analyzing the editing display content request instruction to obtain an operation instruction for adding, editing and moving the specified function block by the client;
correspondingly adding and editing the corresponding functional sub-modules according to the adding and editing operation instructions;
sending the display content of the functional sub-module which completes the adding and editing operation instruction to the preview sub-module, and using the preview sub-module to display the display content of the functional block;
and according to the moving operation instruction, adjusting the position of the display content of the preview section to enable the display content of the preview section to be consistent with the display content of the client.
Further, the step of receiving, through the information transmission channel, a request instruction sent by the client to send the display content to the large-screen end, so as to send the display content to the large-screen end, where the request instruction is used by the large-screen end to display the display content includes:
receiving and analyzing the command for sending the display content request to obtain the address information of the large screen end;
and connecting the corresponding large screen end according to the address information, and sending the display content of the preview block to the large screen end.
Further, the step of receiving, through the information transmission channel, a request instruction sent by the client to send the display content to the large-screen end, so as to send the display content to the large-screen end, where the request instruction is used by the large-screen end to display the display content includes:
receiving an individual display request instruction sent by the client, and sending the display content of the functional layout block selected by the client to the preview layout block for the preview layout block to display the selected display content;
receiving the request instruction for sending the display content, and analyzing the request instruction to obtain the address information of the large screen end;
and connecting the corresponding large screen end according to the address information, and sending the display content of the preview block to the large screen end.
In a second aspect, an embodiment of the present application provides a server-based content editing apparatus, including:
the system comprises a protocol establishing module, a client and a server, wherein the protocol establishing module is configured to receive a request instruction for establishing a websocket protocol sent by the client, upgrade the HTTP protocol into the websocket protocol and connect the client through an information transmission channel; the information transmission channel is a websocket protocol between the client and the server;
the entering mode module is configured to receive a request instruction for entering the content editing mode sent by the client through the information transmission channel so as to enter the content editing mode;
the editing content module is configured to receive an editing display content request instruction sent by the client through the information transmission channel and edit the display content according to the editing display content request instruction;
and the content sending module is configured to receive a request instruction sent by the client to send the display content to the large-screen end through the information transmission channel, so that the display content is sent to the large-screen end and is used for the large-screen end to display the display content.
Further, the apparatus further comprises:
and the monitoring module is configured to monitor the request instruction sent by the client through a socket interface.
Furthermore, the content editing mode is configured with a plurality of function sections, and the function sections are used for presenting data in a preset presentation mode.
Further, the function section includes a preview section for displaying the display content of the specified function section, and the edit content module includes:
the first receiving unit is configured to receive the edit display content request instruction and analyze the edit display content request instruction to obtain an operation instruction of adding, editing and moving a specified function block by the client;
the first execution unit is configured to perform corresponding addition and editing on the corresponding function layout according to the addition and editing operation instruction;
the display unit is configured to send the display content of the functional block which completes the adding and editing operation instruction to the preview block, and the display content of the functional block is displayed by the preview block;
and the second execution unit is configured to perform position adjustment on the display content of the preview layout according to the moving operation instruction, so that the display content of the preview layout is consistent with the display content of the client.
Further, the content sending module includes:
the second receiving unit is configured to receive the request instruction for sending the display content and analyze the request instruction to obtain the address information of the large screen end;
and the first sending unit is configured to connect the corresponding large screen end according to the address information and send the display content of the preview block to the large screen end.
Further, the content sending module includes:
a third receiving unit, configured to receive an individual display request instruction sent by the client, and send display content of a function layout selected by the client to the preview layout, where the preview layout is used for displaying the selected display content;
the fourth receiving unit is configured to receive the request instruction for sending the display content, analyze the request instruction and obtain the address information of the large screen end;
and the second sending unit is configured to connect a corresponding large screen end according to the address information and send the display content of the preview block to the large screen end.
In a third aspect, an embodiment of the present application provides an electronic device, including:
a memory and one or more processors;
the memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the content editing method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a storage medium containing computer-executable instructions for performing the content editing method according to the first aspect when executed by a computer processor.
According to the method and the device, when the content of the large screen end is edited, a websocket protocol connected with the client is established, the content editing mode is entered according to a content editing mode entering instruction and a content editing and displaying request instruction sent by the client, the displayed content is edited, and when the client finishes the editing of the displayed content, the displayed content is sent to the large screen end according to the request instruction sent by the client and sent to the large screen end, so that the large screen end displays the displayed content. By adopting the technical means, a series of editing operation instructions for the display content sent by the client can be received through the websocket protocol, so that the corresponding editing operation is performed on the display content of the cloud server, and the display content of the cloud server is consistent with the display content of the client. And then, a large screen end to which the client needs to be connected is obtained through a websocket protocol, and the display content of the cloud server is sent to the large screen end by the cloud server based on the address information of the large screen end. Through the transfer function of the cloud server, the editable display content of the client is displayed on the large screen, and the display content can be modified according to the requirement of actual business even in the transmission process. The problem that the display content needs to be customized, developed and edited according to the requirements of each client is solved, the development cost is reduced, and the convenience and the practicability of the product are improved.
Drawings
Fig. 1 is a flowchart of a server-based content editing method according to an embodiment of the present application;
FIG. 2 is a schematic connection diagram of devices according to a first embodiment of the present disclosure;
FIG. 3 is a flow chart of editing display content according to an embodiment of the present application;
FIG. 4 is a flow chart of sending display content according to a first embodiment of the present application;
FIG. 5 is a flow chart of the sending display content provided in the second embodiment of the present application;
fig. 6 is a schematic structural diagram of a server-based content editing apparatus according to a third embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, specific embodiments of the present application will be described in detail with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some but not all of the relevant portions of the present application are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
The application provides a content editing method and device based on a server, and aims to establish a websocket protocol connected with a client when editing large-screen content, enter a content editing mode according to a content editing mode entering instruction and a content editing and displaying request instruction sent by the client, edit displayed content, and send the displayed content to a large-screen end according to a request instruction sent by the client to send the displayed content to the large-screen end when the client finishes editing the displayed content, so that the content editing of the large-screen end is realized. Compared with the traditional editing mode of the display content of the large-screen end, the editing mode is designed in advance according to the requirements of clients, and the requirements of the clients are continuously changed, so that the display content of the large-screen end needs to be adjusted and optimized in stages according to the requirements of the clients. Even if products in the same industry are applied to different customers, the difference of functional bodies is not large, but the display content of the large-screen end still needs to be customized and developed according to the personalized requirements of the customers, so that the overall development cost is high. Based on the above, a method and an apparatus for editing content based on a server according to the embodiments of the present application are provided. The problem that the editing of the display content of the existing large screen end needs to be customized and developed is solved.
The first embodiment is as follows:
fig. 1 is a flowchart of a content editing method based on a server according to an embodiment of the present disclosure, where the content editing method provided in this embodiment is executed by a server device, the server device may be implemented in a software and/or hardware manner, and the server device may be a physical entity server or a cloud server. The following description will be given taking a server apparatus as an example of a subject that executes a content editing method. Referring to fig. 1, the content editing method specifically includes:
s110, receiving a request instruction for establishing a websocket protocol sent by a client, upgrading the HTTP into the websocket protocol, and connecting the websocket protocol with the client through an information transmission channel; the information transmission channel is a websocket protocol established between the client and the server.
Specifically, referring to fig. 2, when editing content on a large-screen end, a server receives a request instruction for establishing a websocket protocol sent by a client, responds to the request instruction, and upgrades an HTTP protocol, in which the server is connected to the client, to the websocket protocol, so that an information transmission channel between the client and the server is established, that is, the websocket protocol is established between the client and the server. The Websocket protocol is a protocol for carrying out full-duplex communication on a single TCP connection, and in the Websocket protocol, a client and a server only need to complete one connection establishment request, and persistent connection can be directly established between the client and the server for bidirectional data transmission.
Specifically, in an embodiment, before the step of receiving a request instruction for establishing a websocket protocol sent by a client, upgrading an HTTP protocol to the websocket protocol, and connecting the client through an information transmission channel, the method further includes: and monitoring a request instruction sent by the client through a socket interface.
Illustratively, the server socket needs to monitor the connection request of the client in real time before the client has not established the websocket protocol with the server. The working process of establishing connection between the client and the server is specifically server monitoring; a client request; and (5) connection confirmation. The server monitoring means that the server socket does not locate a specific client socket, but is in a state of waiting for connection, and monitors the network state in real time. The client request refers to a request for connection made by a socket of the client, and the target to be connected is a socket of the server. For this purpose, the client's socket must first describe the socket of the server to which it is to connect, indicating the address and port number of the server socket, and then make a connection request to the server socket.
And S120, receiving a request instruction for entering the content editing mode sent by the client through the information transmission channel, so as to enter the content editing mode.
For example, when the server is configured with content editing software consistent with the client and the client opens the content editing software installed on the client, the interface of the client jumps to the content editing interface. Meanwhile, the client sends a request instruction for entering the content editing mode to the server, and the server executes the same instruction as the client, namely opens the content editing software installed on the server, and jumps to the content editing interface, namely the server enters the content editing mode.
Specifically, in an embodiment, the content editing mode configures a plurality of function sections, and the function sections are used for presenting data in a preset presentation manner.
Illustratively, the demands of different customers have a common point and a difference, and the specific development cost for each function block is high. Therefore, various functional layout blocks are configured in the content editing mode, each functional layout block is solidified, the functional layout blocks can be added, modified and stored according to the requirements of customers, the functional layout blocks with the same functions are prevented from being repeatedly developed, and the overall development efficiency is improved. And when the client edits the display content according to the functional layout, the client can freely match the functional layout with different presentation modes according to actual requirements, thereby meeting various editing requirements of the client and improving the user experience of the client.
S130, receiving an edit display content request instruction sent by the client through the information transmission channel, and editing the display content according to the edit display content request instruction.
Illustratively, when the display content is edited for the client, the server edits the display content of the server according to an operation instruction for editing the display content of the client by the client.
Specifically, in an embodiment, the function section includes a preview section, which is used to display the display content of the specified function section. Referring to fig. 3, the editing display content flow includes:
and S1301, receiving the editing display content request instruction, analyzing the editing display content request instruction, and obtaining an operation instruction of adding, editing and moving the specified function block by the client.
S1302, according to the adding and editing operation instruction, corresponding adding and editing are carried out on the corresponding function layout block.
And S1303, sending the display content of the functional layout block which completes the adding and editing operation instruction to the preview layout block, wherein the display content of the functional layout block is used for the preview layout block to display the display content of the functional layout block.
And S1304, according to the moving operation instruction, adjusting the position of the display content of the preview block to enable the display content of the preview block to be consistent with the display content of the client.
For example, after the client performs a series of operations of adding, editing, and moving on the display content of the client, the client sends the operation instructions to the server through the information transmission channel, and the server edits the display content of the server according to the operation instructions. The interface of the content editing software overall interface displayed by the interfaces of the client and the server comprises configured functional plates and editing areas which are not identical to the display content. Therefore, a preview block is added for displaying the display content which can be sent to the large screen end. Adding a function section, namely adding the selected function section into the editing area; editing the function layout block, namely importing the selected data into the function layout block, and adjusting the size of the whole function layout block or adjusting the size of a font in the function layout block, wherein the operation step is used for operating the function layout block in the editing area; and moving the function section, namely adjusting the position of the selected function section, wherein the operation step is used for operating the function section in the editing area. When the content of the editing area changes, the display content of the preview block correspondingly changes, and the display content of the preview block is specific image data.
S140, receiving a request instruction sent by the client to send the display content to the large-screen end through the information transmission channel, so that the display content is sent to the large-screen end and used for the large-screen end to display the display content.
Specifically, referring to fig. 2, the server receives a request instruction sent by the client to send the display content to the large screen. And the server acquires the address information of the large screen end according to the request instruction. And connecting the corresponding large screen end according to the address information, thereby sending the display content to the large screen end.
Specifically, referring to fig. 4, the process of sending display content includes:
and S1401, receiving the request instruction for sending the display content, and analyzing the request instruction to obtain the address information of the large screen end.
S1402, connecting the corresponding large screen end according to the address information, and sending the display content of the preview block to the large screen end.
Illustratively, the display content is viewed through the preview block of the client, the display content is determined to meet the requirements of the client, and then a request instruction for sending the display content to the large screen end is sent to the server through the information transmission channel. The server responds to the request instruction, analyzes the address information of the large-screen end to be connected from the request instruction, and searches the large-screen end to be connected through the address information. And when finding the large screen end corresponding to the address information, establishing connection with the large screen end, sending image data corresponding to the display content of the preview block to the large screen end, and displaying the display content on the display screen by the large screen end. Through the transfer function of the cloud server, the editable display content of the client is displayed on the large screen, and the display content can be modified according to the requirement of actual business even in the transmission process. The problem that the display content needs to be customized, developed and edited according to the requirements of each client is solved, the development cost is reduced, and the convenience and the practicability of the product are improved.
Example two:
on the basis of the first embodiment, fig. 5 is a flow chart of sending display content according to the second embodiment of the present application. Referring to fig. 5, the transmitting display content flow includes:
s1403, receiving an individual display request instruction sent by the client, and sending the display content of the functional layout block selected by the client to the preview layout block for the preview layout block to display the selected display content;
s1404, receiving the request instruction for sending the display content, and analyzing the request instruction to obtain the address information of the large screen end;
s1405, connecting the corresponding large screen end according to the address information, and sending the display content of the preview block to the large screen end.
Illustratively, in the process of editing the display content, the large-screen end needs to specifically display the display content of a certain functional layout, and the client selects to send the functional layout in the editing area to the preview layout according to the functional layout which needs to be displayed independently by the large-screen end, so that the preview layout does not display the display content of the editing area any more, but displays the display content of the functional layout. In the subsequent display content sending process, the image data correspondingly generated by the display content of the preview layout is sent to the large-screen end, so that the large-screen end displays the display content of the functional layout. Based on this embodiment, when the large screen end needs to specifically display the display content of a certain function layout, all function layouts in the editing area need not to be deleted, the display content of the independent function layout can be sent to the large screen end, the problem that the content needs to be edited again when the large screen end needs to continue displaying the original edited display content is avoided, and the user experience and the product practicability are improved.
Example three:
on the basis of the foregoing embodiments, fig. 6 is a schematic structural diagram of a server-based content editing apparatus according to a third embodiment of the present application. Referring to fig. 6, the content editing apparatus provided in this embodiment specifically includes: a protocol setup module 21, an entry mode module 22, an edit content module 23, and a send content module 24.
The protocol establishing module 21 is configured to receive a request instruction for establishing a websocket protocol sent by a client, upgrade an HTTP protocol to the websocket protocol, and connect to the client through an information transmission channel; the information transmission channel is a websocket protocol between the client and the server;
an entry mode module 22 configured to receive an entry content editing mode request instruction sent by the client through the information transmission channel, so as to enter a content editing mode;
the editing content module 23 is configured to receive an editing display content request instruction sent by the client through the information transmission channel, and edit the display content according to the editing display content request instruction;
the content sending module 24 is configured to receive, through the information transmission channel, a request instruction sent by the client to send display content to the large-screen end, so as to send the display content to the large-screen end, where the large-screen end displays the display content.
Specifically, in one embodiment, the content editing apparatus further includes: and the monitoring module is configured to monitor the request instruction sent by the client through a socket interface.
Specifically, in an embodiment, the content editing mode configures a plurality of function sections, and the function sections are used for presenting data in a preset presentation manner.
Specifically, in an embodiment, the function section includes a preview section for displaying the display content of the specified function section, and the edit content module includes:
the first receiving unit is configured to receive the edit display content request instruction and analyze the edit display content request instruction to obtain an operation instruction of adding, editing and moving a specified function block by the client;
the first execution unit is configured to perform corresponding addition and editing on the corresponding function layout according to the addition and editing operation instruction;
the display unit is configured to send the display content of the functional block which completes the adding and editing operation instruction to the preview block, and the display content of the functional block is displayed by the preview block;
and the second execution unit is configured to perform position adjustment on the display content of the preview layout according to the moving operation instruction, so that the display content of the preview layout is consistent with the display content of the client.
Specifically, in one embodiment, the content sending module includes:
the second receiving unit is configured to receive the request instruction for sending the display content and analyze the request instruction to obtain the address information of the large screen end;
and the first sending unit is configured to connect the corresponding large screen end according to the address information and send the display content of the preview block to the large screen end.
Specifically, in an embodiment, the content sending module further includes:
a third receiving unit, configured to receive an individual display request instruction sent by the client, and send display content of a function layout selected by the client to the preview layout, where the preview layout is used for displaying the selected display content;
the fourth receiving unit is configured to receive the request instruction for sending the display content, analyze the request instruction and obtain the address information of the large screen end;
and the second sending unit is configured to connect a corresponding large screen end according to the address information and send the display content of the preview block to the large screen end.
The websocket protocol connected with the client is established when the content of the large screen end is edited, the content editing mode is entered according to the content editing mode entering instruction and the content editing and displaying request instruction sent by the client, the displayed content is edited, and when the content editing is completed by the client, the displayed content is sent to the large screen end according to the request instruction sent by the client and sent to the large screen end, so that the large screen end displays the displayed content. By adopting the technical means, a series of editing operation instructions for the display content sent by the client can be received through the websocket protocol, so that the corresponding editing operation is performed on the display content of the cloud server, and the display content of the cloud server is consistent with the display content of the client. And then, a large screen end to which the client needs to be connected is obtained through a websocket protocol, and the display content of the cloud server is sent to the large screen end by the cloud server based on the address information of the large screen end. Through the transfer function of the cloud server, the editable display content of the client is displayed on the large screen, and the display content can be modified according to the requirement of actual business even in the transmission process. The problem that the display content needs to be customized, developed and edited according to the requirements of each client is solved, the development cost is reduced, and the convenience and the practicability of the product are improved.
The server-based content editing apparatus provided in the third embodiment of the present application may be configured to execute the server-based content editing method provided in the first embodiment, and has corresponding functions and beneficial effects.
Example four:
an embodiment of the present application provides an electronic device, and with reference to fig. 7, the electronic device includes: a processor 31, a memory 32, a communication module 33, an input device 34, and an output device 35. The number of processors in the electronic device may be one or more, and the number of memories in the electronic device may be one or more. The processor, memory, communication module, input device, and output device of the electronic device may be connected by a bus or other means.
The memory 32 is a computer readable storage medium, and can be used for storing software programs, computer executable programs, and modules, such as program instructions/modules corresponding to the server-based content editing method according to any embodiment of the present application (for example, a protocol establishing module, an entry mode module, an editing content module, and a sending content module in a server-based content editing apparatus). The memory can mainly comprise a program storage area and a data storage area, wherein the program storage area can store an operating system and an application program required by at least one function; the storage data area may store data created according to use of the device, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory may further include memory located remotely from the processor, and these remote memories may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The communication module 33 is used for data transmission.
The processor 31 executes various functional applications of the device and data processing, i.e., implements the above-described server-based content editing method, by running software programs, instructions, and modules stored in the memory 32.
The input device 34 may be used to receive entered numeric or character information and to generate key signal inputs relating to user settings and function controls of the apparatus. The output device 35 may include a display device such as a display screen.
The electronic device provided above can be used to execute the server-based content editing method provided in the first embodiment above, and has corresponding functions and advantages.
Example five:
embodiments of the present application also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a server-based content editing method, including: receiving a request instruction for establishing a websocket protocol sent by a client, upgrading the HTTP into the websocket protocol, and connecting the websocket protocol with the client through an information transmission channel; the information transmission channel is a websocket protocol established between the client and the server; receiving a request instruction for entering a content editing mode sent by the client through the information transmission channel, thereby entering the content editing mode; receiving an edit display content request instruction sent by the client through the information transmission channel, and editing the display content according to the edit display content request instruction; and receiving a request instruction sent by the client for sending the display content to the large-screen end through the information transmission channel, so that the display content is sent to the large-screen end for displaying the display content by the large-screen end.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media residing in different locations, e.g., in different computer systems connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided in the embodiments of the present application contains computer-executable instructions, and the computer-executable instructions are not limited to the server-based content editing method described above, and may also perform related operations in the server-based content editing method provided in any embodiments of the present application.
The server-based content editing apparatus, the storage medium, and the electronic device provided in the foregoing embodiments may execute the server-based content editing method provided in any embodiment of the present application, and reference may be made to the server-based content editing method provided in any embodiment of the present application without detailed technical details described in the foregoing embodiments.
The foregoing is considered as illustrative of the preferred embodiments of the invention and the technical principles employed. The present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the claims.

Claims (10)

1. A server-based content editing method, comprising:
receiving a request instruction for establishing a websocket protocol sent by a client, upgrading the HTTP into the websocket protocol, and connecting the websocket protocol with the client through an information transmission channel; the information transmission channel is a websocket protocol established between the client and the server;
receiving a request instruction for entering a content editing mode sent by the client through the information transmission channel, thereby entering the content editing mode;
receiving an edit display content request instruction sent by the client through the information transmission channel, and editing the display content according to the edit display content request instruction;
and receiving a request instruction sent by the client for sending the display content to the large-screen end through the information transmission channel, so that the display content is sent to the large-screen end for displaying the display content by the large-screen end.
2. The method according to claim 1, wherein before the step of receiving a request instruction for establishing a websocket protocol sent by a client, upgrading an HTTP protocol to the websocket protocol, and connecting the client through an information transmission channel, the method further comprises:
and monitoring a request instruction sent by the client through a socket interface.
3. The method of claim 1, wherein the content editing mode configures a plurality of function blocks for presenting data in a predetermined presentation.
4. The method according to claim 3, wherein the function section includes a preview section for displaying the display content of the specified function section, the step of receiving an edit display content request instruction sent by the client through the information transmission channel, and editing the display content according to the edit display content request instruction includes:
receiving the editing display content request instruction, and analyzing the editing display content request instruction to obtain an operation instruction for adding, editing and moving the specified function block by the client;
correspondingly adding and editing the corresponding function block according to the adding and editing operation instruction;
sending the display content of the functional layout block which completes the adding and editing operation instruction to the preview layout block, wherein the display content of the functional layout block is used for the preview layout block to display the display content of the functional layout block;
and according to the moving operation instruction, adjusting the position of the display content of the preview section to enable the display content of the preview section to be consistent with the display content of the client.
5. The method according to claim 4, wherein the step of receiving a request instruction sent by the client to send the display content to a large-screen end through the information transmission channel, so as to send the display content to the large-screen end for displaying the display content on the large-screen end comprises:
receiving and analyzing the command for sending the display content request to obtain the address information of the large screen end;
and connecting the corresponding large screen end according to the address information, and sending the display content of the preview block to the large screen end.
6. The method according to claim 4, wherein the step of receiving a request instruction sent by the client to send the display content to a large-screen end through the information transmission channel, so as to send the display content to the large-screen end for displaying the display content on the large-screen end comprises:
receiving an individual display request instruction sent by the client, and sending the display content of the functional layout block selected by the client to the preview layout block for the preview layout block to display the selected display content;
receiving the request instruction for sending the display content, and analyzing the request instruction to obtain the address information of the large screen end;
and connecting the corresponding large screen end according to the address information, and sending the display content of the preview block to the large screen end.
7. A server-based content editing apparatus, comprising:
the system comprises a protocol establishing module, a client and a server, wherein the protocol establishing module is configured to receive a request instruction for establishing a websocket protocol sent by the client, upgrade the HTTP protocol into the websocket protocol and connect the client through an information transmission channel; the information transmission channel is a websocket protocol between the client and the server;
the entering mode module is configured to receive a request instruction for entering the content editing mode sent by the client through the information transmission channel so as to enter the content editing mode;
the editing content module is configured to receive an editing display content request instruction sent by the client through the information transmission channel and edit the display content according to the editing display content request instruction;
and the content sending module is configured to receive a request instruction sent by the client to send the display content to the large-screen end through the information transmission channel, so that the display content is sent to the large-screen end and is used for the large-screen end to display the display content.
8. The apparatus of claim 7, further comprising:
and the monitoring module is configured to monitor the request instruction sent by the client through a socket interface.
9. An electronic device, comprising:
a memory and one or more processors;
the memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a content editing method as recited in any of claims 1-6.
10. A storage medium containing computer-executable instructions for performing the content editing method of any one of claims 1 to 6 when executed by a computer processor.
CN202011388883.XA 2020-12-01 2020-12-01 Content editing method and device based on server Active CN112486446B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011388883.XA CN112486446B (en) 2020-12-01 2020-12-01 Content editing method and device based on server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011388883.XA CN112486446B (en) 2020-12-01 2020-12-01 Content editing method and device based on server

Publications (2)

Publication Number Publication Date
CN112486446A true CN112486446A (en) 2021-03-12
CN112486446B CN112486446B (en) 2023-12-01

Family

ID=74938930

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011388883.XA Active CN112486446B (en) 2020-12-01 2020-12-01 Content editing method and device based on server

Country Status (1)

Country Link
CN (1) CN112486446B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013102335A1 (en) * 2012-01-06 2013-07-11 华为技术有限公司 Gateway handshake and communication method, gateway and web communication system
CN107517204A (en) * 2017-08-11 2017-12-26 西安万像电子科技有限公司 Data configuration reads system, method and apparatus
CN108897510A (en) * 2018-07-03 2018-11-27 鲸数科技(北京)有限公司 Large screen shows that the control system, method and large screen of information show information system
CN108965397A (en) * 2018-06-22 2018-12-07 中央电视台 Cloud video editing method and device, editing equipment and storage medium
CN109901938A (en) * 2019-02-26 2019-06-18 北京华夏电通科技有限公司 Big screen system and visual presentation method are interacted based on WebSocket communication
CN110022323A (en) * 2019-04-17 2019-07-16 杭州玳数科技有限公司 A kind of method and system of the cross-terminal real-time, interactive based on WebSocket and Redux
CN111262909A (en) * 2020-01-09 2020-06-09 中国建设银行股份有限公司 Large-screen information display method, device, equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013102335A1 (en) * 2012-01-06 2013-07-11 华为技术有限公司 Gateway handshake and communication method, gateway and web communication system
CN107517204A (en) * 2017-08-11 2017-12-26 西安万像电子科技有限公司 Data configuration reads system, method and apparatus
CN108965397A (en) * 2018-06-22 2018-12-07 中央电视台 Cloud video editing method and device, editing equipment and storage medium
CN108897510A (en) * 2018-07-03 2018-11-27 鲸数科技(北京)有限公司 Large screen shows that the control system, method and large screen of information show information system
CN109901938A (en) * 2019-02-26 2019-06-18 北京华夏电通科技有限公司 Big screen system and visual presentation method are interacted based on WebSocket communication
CN110022323A (en) * 2019-04-17 2019-07-16 杭州玳数科技有限公司 A kind of method and system of the cross-terminal real-time, interactive based on WebSocket and Redux
CN111262909A (en) * 2020-01-09 2020-06-09 中国建设银行股份有限公司 Large-screen information display method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN112486446B (en) 2023-12-01

Similar Documents

Publication Publication Date Title
US20140143672A1 (en) System and method for function expandable collaboration screen system
US20200301648A1 (en) Method of operating a shared object in a video call
CN111611054B (en) Application deployment method and device
CN113256095B (en) Draggable configuration agile flow service construction method, system, equipment and medium
CN114490383A (en) Remote debugging system, remote debugging method, computing device and readable medium
CN111352847A (en) Real-time debugging method and system for mobile application terminal
JP2018092565A (en) Cloud relay device, cloud connection processing method, and program
CN110266701B (en) Intelligent device data transmission method, device, medium and electronic device
CN110275787B (en) Online platform data transmission method, device, medium and electronic equipment
AU2020305669A1 (en) Special effect synchronization method, device, and storage medium
CN115277666A (en) 5G-based equipment remote operation and maintenance method, device and storage medium
CN113014669B (en) Proxy service method, system, server and storage medium based on RPA
CN108228457B (en) Test agent method and device of mobile terminal and computer readable storage medium
CN113891128A (en) Screen sharing method and device and electronic equipment
CN112486446B (en) Content editing method and device based on server
CN112700014A (en) Method, device and system for deploying federal learning application and electronic equipment
CN104219280A (en) Intelligent application data transmission channel
CN112492034B (en) Information interaction method and device based on server
US20210109777A1 (en) Systems and methods of computer system monitoring and control
EP3164818A1 (en) Networking cooperation method and machine using such method
CN112486396B (en) Content editing method and device for multiple large screen ends
CN114928619A (en) Information synchronization method and device, electronic equipment and storage medium
CN113238944A (en) Test method, device and system
US20170149578A1 (en) Networking cooperation method and machine using such method
CN108270803B (en) Method and system for realizing transmission of network file and desktop application through webpage technology

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Room 306, zone 2, building 1, Fanshan entrepreneurship center, Panyu energy saving technology park, No. 832 Yingbin Road, Donghuan street, Panyu District, Guangzhou City, Guangdong Province

Applicant after: Jiadu Technology Group Co.,Ltd.

Address before: Room 306, zone 2, building 1, Fanshan entrepreneurship center, Panyu energy saving technology park, No. 832 Yingbin Road, Donghuan street, Panyu District, Guangzhou City, Guangdong Province

Applicant before: PCI-SUNTEKTECH Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Li Ming

Inventor after: Tang Xu

Inventor before: Li Ming