CN108848083A - A kind of method and system of webpage version multi-screen interactive - Google Patents
A kind of method and system of webpage version multi-screen interactive Download PDFInfo
- Publication number
- CN108848083A CN108848083A CN201810564684.6A CN201810564684A CN108848083A CN 108848083 A CN108848083 A CN 108848083A CN 201810564684 A CN201810564684 A CN 201810564684A CN 108848083 A CN108848083 A CN 108848083A
- Authority
- CN
- China
- Prior art keywords
- message
- page end
- group
- page
- target message
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/61—Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
- H04L65/611—Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for multicast or broadcast
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
Abstract
The present invention provides a kind of method and system of webpage version multi-screen interactive, and wherein method includes:The connection request for receiving the first page end determines the first group belonging to the first page end according to the identification information of the first page end;The target message of the first page end transmission is received, target message includes message packet head and Izvestia style, and message packet head includes type of message;Determine the type of message of target message, when type of message is the interior message of group and the first group includes at least one second page end, target message is distributed to the second page end in the first group, so that the second page end in the first group parses message packet body and shows parsing result.Multi-screen interactive can be realized using core node and page end in this method and system, it is supported without excessive software and hardware, the realization for simplifying multi-screen interactive to a certain extent, reduces the development difficulty and maintenance difficulties of multi-screen interactive, to save the human resources of multi-screen interactive exploitation and maintenance.
Description
Technical field
The present invention relates to fields of communication technology, more particularly, to a kind of method and system of webpage version multi-screen interactive.
Background technique
Current Internet technology has been directed to all trades and professions, with the diversification of industry requirement, public institution and scientific research
Mechanism etc. increasingly payes attention to front end visual means and it is complete to generally require multi-screen interactive for the visual presentation of some standardization
At demonstration.
Multi-screen interactive is that the technology that one kind is quietly being risen at present is briefly exactly the screen of several equipment, passes through
Special connection equipment can interconnect conversion.For example the film on mobile phone can play on TV, the figure on plate
Piece can be shared on TV, and the content of computer can project on TV etc..
However, not only need the support of hardware when realizing multi-screen interactive in the prior art, while needing mobile phone terminal, more
The application software of screen interaction box and intelligent television end is supported.For common third party user or personal user, it is difficult
Realize the exploitation of multi-screen interactive, and the maintenance difficulties in later period are big
In view of this, simplifying the realization of multi-screen interactive it is urgent to provide a kind of multi-screen interaction method and system, reduce more
Shield the development difficulty and maintenance difficulties of interaction.
Summary of the invention
The present invention is provided to overcome the problems, such as that the exploitation of multi-screen interactive and maintenance difficulties are big in the prior art, provide one kind
The method and system of webpage version multi-screen interactive.
On the one hand, the present invention provides a kind of method of webpage version multi-screen interactive, including:
S1, the connection request for receiving the first page end determine described first according to the identification information of first page end
First group belonging to page end;
S2 receives the target message that first page end is sent, and the target message includes message packet head and message
Message body, the message packet head include type of message;
S3 determines the type of message of the target message, when the type of message is message and first group in group
When comprising at least one second page end, the target message is distributed to the second page end in first group, so that
The second page end obtained in first group parses the Izvestia style and shows parsing result.
Preferably, the step S3 further includes:
When the type of message is global message, the target message is distributed to all second page ends, so that
All second page ends parse the Izvestia style and show parsing result.
Preferably, further include after the step S2:
The target message is cached to storage equipment.
Preferably, the message packet head also includes message lifecycle;
Correspondingly, described cache the target message to storage equipment further includes later:When reaching the message life
When the period, the target message is removed from the storage equipment.
Preferably, further include after the step S3:
The connection request for receiving third page end determines the third net according to the identification information of the third page end
Second group belonging to page end;
In the message lifecycle, when the type of message is message and second group and described first in group
When group is identical, the target message is distributed to the third page end;When the type of message is global message, by institute
It states target message and is distributed to the third page end.
Preferably, first page end and second page end and the third page end are controlled comprising socket
Part.
On the one hand, the present invention provides a kind of system of webpage version multi-screen interactive, including:
Page end link block, for receiving the connection request of the first page end, according to the mark of first page end
Information determines the first group belonging to first page end;
Message reception module, the target message sent for receiving first page end, the target message include disappearing
Heading and Izvestia style are ceased, the message packet head includes type of message;
Message distribution module, for determining the type of message of the target message, when the type of message is message in group
And first group is when including at least one second page end, the target message is distributed in first group
Two page ends, so that the second page end in first group parses the Izvestia style and shows parsing knot
Fruit.
Preferably, the message distribution module is also used to:
When the type of message is global message, the target message is distributed to all second page ends, so that
All second page ends parse the Izvestia style and show parsing result.
On the one hand, the present invention provides the equipment of a kind of method of webpage version multi-screen interactive, including:
At least one processor;And
At least one processor being connect with the processor communication, wherein:
The memory is stored with the program instruction that can be executed by the processor, and the processor calls described program to refer to
It enables and is able to carry out any of the above-described method.
On the one hand, the present invention provides a kind of non-transient computer readable storage medium, and the non-transient computer is readable to deposit
Storage media stores computer instruction, and the computer instruction makes the computer execute any of the above-described method.
A kind of method and system of webpage version multi-screen interactive provided by the invention, core node receive the company of the first page end
Request is connect, according to the identification information of the first page end, determines the first group belonging to the first page end;Receive the first page end hair
The target message sent, target message include message packet head and Izvestia style, and message packet head includes type of message;Determine mesh
The type of message for marking message, when type of message is the interior message of group and the first group includes at least one second page end, by mesh
Message distribution is marked to the second page end in the first group so that the second page end in the first group to message packet body into
Row parses and shows parsing result.This method and system pass through core node by connecting multiple page ends with core node
The forms of dispatch messages realizes multi-screen interactive, and multi-screen interactive can be realized using core node and page end, without excessive soft
Part and hardware supported simplify the realization of multi-screen interactive to a certain extent, reduce the development difficulty and Maintenance Difficulty of multi-screen interactive
Degree, to save the human resources of multi-screen interactive exploitation and maintenance.
Detailed description of the invention
Fig. 1 is a kind of overall flow schematic diagram of the method for webpage version multi-screen interactive of the embodiment of the present invention;
Fig. 2 is a kind of overall structure diagram of the system of webpage version multi-screen interactive of the embodiment of the present invention;
Fig. 3 is a kind of structural framing schematic diagram of the equipment of webpage version multi-screen interaction method of the embodiment of the present invention.
Specific embodiment
With reference to the accompanying drawings and examples, specific embodiments of the present invention will be described in further detail.Implement below
Example is not intended to limit the scope of the invention for illustrating the present invention.
It should be noted that the present invention carries out communication link in order to realize multi-screen interactive, by multiple page ends and core node
It connects, the multi-screen interactive of multiple page ends is realized using core node.Plurality of page end includes the first page end and the second net
Page end, the first page end are the producer of message, and the second page end is the consumer of message, i.e. the content of multi-screen interactive is by the
One page end passes through core node in form of a message and is distributed to the second page end.
Based on the above principles, the present embodiment provides a kind of method of webpage version multi-screen interactive, the executing subject of this method is
Core node.
Fig. 1 is a kind of overall flow schematic diagram of the method for webpage version multi-screen interactive of the embodiment of the present invention, such as Fig. 1 institute
Showing, the present invention provides a kind of method of webpage version multi-screen interactive, including:
S1, the connection request for receiving the first page end determine the first page end institute according to the identification information of the first page end
The first group belonged to;
Specifically, the first page end sends connection request to core node, and the first page end can be sent to core node
Join is instructed to request to establish connection with core node.Core node receives the connection request of the first page end, according to the first net
The identification information at page end, determines the first group belonging to the first page end.Its identification information can be User ID, thus can incite somebody to action
The corresponding multiple page ends of same User ID are divided to same group.For example, user's first opens multiple web browsers, then should
Multiple web browsers will be then divided to same group by core node.
S2 receives the target message that the first page end is sent, and target message includes message packet head and Izvestia style, is disappeared
Ceasing heading includes type of message;
Specifically, after the first page end and core node are communicatively coupled, life of first page end as message
The content of multi-screen interactive is combined into target message according to preset messaging protocol by production person, after generating target message, the
Target message is sent to core node by one page end, and final core node receives the target message that the first page end is sent.Its
The parsing result of middle target message is the content of multi-screen interactive, and the target message generated according to presetting message agreement includes disappearing
Heading and Izvestia style are ceased, message packet head includes type of message.
S3 determines the type of message of target message, when type of message is that message and the first group include at least one in group
When the second page end, target message is distributed to the second page end in the first group, so that the second net in the first group
Page end parses message packet body and shows parsing result.
Specifically, core node extracts from the message packet head of target message and disappears after receiving target message
Type is ceased, that is, determines the type of message of target message.When type of message be in group message and the first group include at least one the
When two page ends, then it represents that the target message is the second page end being sent in its affiliated first group by the first page end
's.Therefore, target message is then distributed to the second page end in the first group by core node.
In the present embodiment, using the first page end as the producer of message, other page ends that will be connect with core node
As the second page end, the second page end is the consumer of message.The quantity of the second page end in first group can be more
A, when the first group includes multiple second page ends, target message is then distributed to all in the first group by core node
Second page end.Second page end parses the Izvestia style of target message after receiving target message, and
Parsing result is shown on the screen of second page end.Hereby it is achieved that the multi-screen interactive of the first page end and the second page end.
It should be noted that the first page end and the second page end be after establishing connection with core node, the first webpage
End and the second page end are both needed to send heartbeat packet to core node according to preset frequency, so that core node determines the first net
The presence at page end and the second page end.
For a better understanding of the technical solution of the present invention, existing be specifically described with following examples:
For example, totally 6 page ends need to carry out multi-screen interactive by existing A, B, C, D, E and F, then A, B, C, D, E and F be both needed to first with
Core node is communicatively coupled, if wherein A, B, C be user's first open page end, and D, E, F be respectively user's second,
The third, the page end of fourth opening.On this basis, core node is when receiving the connection request of above-mentioned 6 page ends, it will
A, B, C are divided into same group.Therefore, when page end A needs to carry out multi-screen interactive with other page ends, A is the first net
Page end, and page end B, C, D, E and F that other connect with core node are the second page end, the first page end A is mutual by multi-screen
Dynamic content is sent to core node in the form of a message, core node after the target message for receiving the first page end A transmission,
Determine the type of message of target message.When type of message is message in group, target message is then distributed to and the by core node
One page end A belongs to the second page end B and C of same group, and the second page end B and C is after receiving target message, parsing target
Izvestia style in message, and show parsing result.Hereby it is achieved that the multi-screen interactive of A, B, C totally 3 page ends.
A kind of method of webpage version multi-screen interactive provided by the invention, the connection that core node receives the first page end are asked
It asks, according to the identification information of the first page end, determines the first group belonging to the first page end;Receive the transmission of the first page end
Target message, target message include message packet head and Izvestia style, and message packet head includes type of message;Determine that target disappears
The type of message of breath disappears target when type of message is the interior message of group and the first group includes at least one second page end
The second page end being distributed in the first group is ceased, so that the second page end in the first group solves message packet body
It analyses and shows parsing result.This method passes through core node dispatch messages by connecting multiple page ends with core node
Form realizes multi-screen interactive, multi-screen interactive can be realized using core node and page end, without excessive software and hardware branch
It holds, simplifies the realization of multi-screen interactive to a certain extent, the development difficulty and maintenance difficulties of multi-screen interactive are reduced, to save
The human resources of multi-screen interactive exploitation and maintenance.
Based on any of the above-described embodiment, a kind of method of webpage version multi-screen interactive is provided, step S3 further includes:When message class
When type is global message, target message is distributed to all second page ends, so that all second page ends are to message packet
Body is parsed and shows parsing result.
Specifically, core node extracts from the message packet head of target message and disappears after receiving target message
Type is ceased, that is, determines the type of message of target message.When type of message is global message, then it represents that the target message is by the
One page end is sent to all second page ends connecting with core node.Therefore, core node then distributes target message
To the second page end in the first group and the second page end outside the first group, i.e., target message is distributed to and core node
All second page ends of connection.All second page ends are after receiving target message, to the message packet of target message
Body is parsed, and shows parsing result on the screen of each second page end.Hereby it is achieved that the first page end and the second net
The multi-screen interactive at page end.
It is illustrated with above-mentioned example, if core node receives the message after the target message that the first page end A is sent
Type be global message when, core node then target message is distributed to all second page end B, C being connect with core node,
D, E and F, second page end B, C, D, E and F parse the Izvestia style in target message after receiving target message, and show
Parsing result.
The method of a kind of webpage version multi-screen interactive provided by the invention, when the message for the target message that the first page end is sent
When type is global message, target message is distributed to all second page ends, so that all second page ends are to Izvestia
Style is parsed and shows parsing result.This method passes through core node by connecting multiple page ends with core node
The forms of dispatch messages realizes multi-screen interactive, and multi-screen interactive can be realized using core node and page end, without excessive soft
Part and hardware supported simplify the realization of multi-screen interactive to a certain extent, reduce the development difficulty and Maintenance Difficulty of multi-screen interactive
Degree, to save the human resources of multi-screen interactive exploitation and maintenance.
Based on any of the above-described embodiment, a kind of method of webpage version multi-screen interactive is provided, further includes after step S2:By mesh
Mark message is cached to storage equipment.
Specifically, core node also needs to delay target message after the target message for receiving the transmission of the first page end
It deposits to storage equipment.On this basis, core node is receiving the first page end in the target message that subsequent time is sent,
The target message that current time receives will be stored in storage equipment as history target message.Thus, it can be achieved that history
The storage of target message is conducive to subsequent be called history target message.
A kind of method of webpage version multi-screen interactive provided by the invention, core node are receiving the transmission of the first page end
After target message, target message is cached to storage equipment, the storage to history target message is effectively realized, after being conducive to
It is continuous that history target message is called.
Based on any of the above-described embodiment, a kind of method of webpage version multi-screen interactive is provided, message packet head also includes message
Life cycle;
Correspondingly, further include after target message being cached to storage equipment:When reaching message lifecycle, by target
Message is removed from storage equipment.
Specifically, the first page end, which is sent to the target message of core node, is generated according to presetting message agreement, mesh
Mark message includes message packet head and Izvestia style, and message packet head includes type of message.In the present embodiment, message packet head
It also include message lifecycle, target message is only effective in message Life Cycle.On this basis, core node is receiving mesh
Mark message simultaneously caches target message to storage equipment, after some period of time, when the message for reaching target message is raw
When ordering the period, then target message is removed from storage equipment.
A kind of method of webpage version multi-screen interactive provided by the invention, the Izvestia for the target message that core node receives
Literary head also includes message lifecycle, and core node is caching target message to storage equipment, when reaching target message
Message lifecycle when, by target message from storage equipment in remove, not only ensure target message in message lifecycle
Interior validity, while the target message that can also be up to message lifecycle is purged, and is conducive to save storage equipment
Memory space, so that the storage burden of storage equipment be effectively reduced.
Based on any of the above-described embodiment, a kind of method of webpage version multi-screen interactive is provided, further includes after step S3:It receives
The connection request of third page end determines the second group belonging to third page end according to the identification information of third page end;?
In message lifecycle, when type of message is the interior message of group and the second group identical as the first group, target message is distributed
Give third page end;When type of message is global message, target message is distributed to third page end.
It should be noted that the first page end and the second page end in any of the above-described embodiment be current time with
Core node establishes the page end of communication connection, and does not establish the page end of communication connection then with core node for current time
It is set as third page end.
On the basis of the above, after the first page end and the second page end realize multi-screen interactive, if third page end is same
Sample needs to realize multi-screen interactive, then third page end needs first to send connection request to core node, and core node receives third net
The connection request at page end determines the second group belonging to third page end according to the identification information of third page end.Wherein second
Group can be same or different with the first group, and in above-mentioned page end A, B, C, D, E and F, totally 6 page ends progress multi-screens are mutual
On the basis of dynamic, wherein page end A, B and C is the page end that user's first is opened, and page end A is the first page end, and B and C are
Second page end an of group is belonged to the first page end A, D, E and F are the second page end outside group.Subsequent web pages end
G request is established with core node to be communicated to connect, if page end G is similarly the page end of user's first opening, belonging to page end G
Second group and page end A, B are identical with the first group belonging to C;If page end G is the page end that user's second is opened, webpage
Hold the first group belonging to the second group belonging to G and page end A, B and C not identical.
On the basis of the above, after third page end and core node, which are established, to be communicated to connect, if disappearing at this time in target
In the message lifecycle of breath, then target message is still stored in storage equipment.When the type of message of target message is in group
When message and the second group identical as the first group, core node then takes out target message from storage equipment, and is distributed to
Third page end;When the type of message of target message is to organize interior message and not identical the second group and the first group, core section
Target message will not be then distributed to third page end by point.In addition, when the type of message of target message is global message, core
Target message then directly can be distributed to third page end by node.After history target message adaptively can be distributed to as a result,
The continuous third page end that connection is established with core node.
A kind of method of webpage version multi-screen interactive provided by the invention realizes multi-screen in the first page end and the second page end
After interaction, the connection request that core node receives third page end determines third net according to the identification information of third page end
Second group belonging to page end;In message lifecycle, when type of message is message and the second group and the first group in group
When identical, target message is distributed to third page end;When type of message is global message, target message is distributed to third
Page end.History target message can be adaptively distributed to the subsequent third page end that connection is established with core node as a result,
Effectively realize the message playback of history target message.
Based on any of the above-described embodiment, a kind of method of webpage version multi-screen interactive, the first page end and the second webpage are provided
End and third page end include socket control.
Specifically, in the present embodiment, the first page end and the second page end and third page end are embedded with socket
Control, socket control refer to one section of js code and a js file, onInit, onSend comprising user's realization the inside,
The functions such as onMessage, onEnd.On this basis, the first page end and the second page end and third page end pass through
Socket control and core node establish connection, send message, receive message and disconnect the operations such as the connection with core node,
Simplify the system structure of the first page end and the second page end and third page end.
A kind of method of webpage version multi-screen interactive provided by the invention, the first page end and the second page end and third net
Page end includes socket control, establishes connection by socket control and core node, sends message, reception message and disconnection
It is operated with the connection of core node etc., simplifies the system structure of the first page end and the second page end and third page end,
To be conducive to simplify the realization of multi-screen interactive.
Fig. 2 is a kind of overall structure diagram of the system of webpage version multi-screen interactive of the embodiment of the present invention, such as Fig. 2 institute
Showing, the present invention provides a kind of system of webpage version multi-screen interactive, which is applied in core node, including:
Page end link block 1 is believed for receiving the connection request of the first page end according to the mark of the first page end
Breath, determines the first group belonging to the first page end;
Specifically, the first page end sends connection request to core node, and the first page end can be sent to core node
Join is instructed to request to establish connection with core node.Core node receives the first page end using page end link block 1
Connection request determines the first group belonging to the first page end according to the identification information of the first page end.Its identification information can
Think User ID, thus the corresponding multiple page ends of same User ID can be divided to same group.For example, user's first opens
Multiple web browsers, then multiple web browser will be then divided to same group by core node.
Message reception module 2, for receiving the target message of the first page end transmission, target message includes message packet head
With Izvestia style, message packet head includes type of message;
Specifically, after the first page end and core node are communicatively coupled, life of first page end as message
The content of multi-screen interactive is combined into target message according to preset messaging protocol by production person, after generating target message, the
Target message is sent to core node by one page end, and final core node receives the first page end using message reception module 2
The target message of transmission.Wherein the parsing result of target message is the content of multi-screen interactive, and raw according to presetting message agreement
At target message include message packet head and Izvestia style, message packet head includes type of message.
Message distribution module 3, for determining the type of message of target message, when type of message is the interior message of group and first group
When group is comprising at least one second page end, target message is distributed to the second page end in the first group, so that first
The second page end in group parses message packet body and shows parsing result.
Specifically, core node is after receiving target message, using message distribution module 3 from the message of target message
Type of message is extracted in heading, that is, determines the type of message of target message.When type of message is the interior message of group and first group
When group is comprising at least one second page end, then it represents that the target message is to be sent to its affiliated first group by the first page end
In second page end.Therefore, target message is then distributed in the first group using message distribution module 3 by core node
Second page end.
In the present embodiment, using the first page end as the producer of message, other page ends that will be connect with core node
As the second page end, the second page end is the consumer of message.The quantity of the second page end in first group can be more
A, when the first group includes multiple second page ends, target message is then distributed to using message distribution module 3 by core node
All second page ends in first group.Second page end is after receiving target message, to the Izvestia of target message
Style is parsed, and shows parsing result on the screen of the second page end.Hereby it is achieved that the first page end and the second webpage
The multi-screen interactive at end.
It should be noted that the first page end and the second page end be after establishing connection with core node, the first webpage
End and the second page end are both needed to send heartbeat packet to core node according to preset frequency, so that core node determines the first net
The presence at page end and the second page end.
In addition, the technical solution of the present embodiment in order to facilitate understanding, it can be in the above-mentioned corresponding method embodiment of control reference
For example, details are not described herein again.
A kind of system of webpage version multi-screen interactive provided by the invention, core node receive the using page end link block
The connection request of one page end determines the first group belonging to the first page end according to the identification information of the first page end;It utilizes
Message reception module receives the target message that the first page end is sent, and target message includes message packet head and Izvestia style,
Message packet head includes type of message;The type of message that target message is determined using message distribution module, when type of message is group
When interior message and the first group include at least one second page end, the second webpage for target message being distributed in the first group
End, so that the second page end in the first group parses message packet body and shows parsing result.The system passes through
Multiple page ends are connect with core node, multi-screen interactive is realized by way of core node dispatch messages, utilizes core section
Multi-screen interactive can be realized in point and page end, supports without excessive software and hardware, simplifies multi-screen interactive to a certain extent
Realization, reduce the development difficulty and maintenance difficulties of multi-screen interactive, thus save multi-screen interactive exploitation and maintenance manpower
Resource.
Based on any of the above-described embodiment, a kind of system of webpage version multi-screen interactive is provided, message distribution module 3 is also used to:
When type of message is global message, target message is distributed to all second page ends, so that all second page ends pair
Izvestia style is parsed and shows parsing result.
Specifically, core node utilizes message distribution module after receiving target message using message reception module 2
3 extract type of message from the message packet head of target message, that is, determine the type of message of target message.When type of message is
When global message, then it represents that the target message is to be sent to all second page ends connecting with core node by the first page end
's.Therefore, target message is then distributed to the second page end and in the first group by core node using message distribution module 3
Target message is distributed to all second page ends connecting with core node by the second page end outside one group.All
Two page ends parse the Izvestia style of target message after receiving target message, and in each second webpage
Parsing result is shown on the screen at end.Hereby it is achieved that the multi-screen interactive of the first page end and the second page end.
The system of a kind of webpage version multi-screen interactive provided by the invention, when the message for the target message that the first page end is sent
When type is global message, target message is distributed to all second page ends using message distribution module, so that all the
Two page ends parse message packet body and show parsing result.The system is by connecting multiple page ends and core node
It connects, multi-screen interactive is realized by way of core node dispatch messages, it is mutual that multi-screen can be realized using core node and page end
It is dynamic, it is supported without excessive software and hardware, simplifies the realization of multi-screen interactive to a certain extent, reduce opening for multi-screen interactive
Degree of raising difficult questions and maintenance difficulties, to save the human resources of multi-screen interactive exploitation and maintenance.
Fig. 3 shows the structural block diagram of the equipment of the webpage version multi-screen interaction method of the embodiment of the present application.It is described referring to Fig. 3
The equipment of webpage version multi-screen interaction method, including:Processor (processor) 31, memory (memory) 32 and bus 33;Its
In, the processor 31 and memory 32 complete mutual communication by the bus 33;The processor 31 is for calling
Program instruction in the memory 32, to execute method provided by above-mentioned each method embodiment, for example including:Receive first
The connection request of page end determines the first group belonging to the first page end according to the identification information of the first page end;Receive the
The target message that one page end is sent, target message include message packet head and Izvestia style, and message packet head includes message
Type;The type of message for determining target message, when type of message is that message and the first group include at least one second net in group
When page end, target message is distributed to the second page end in the first group, so that the second page end pair in the first group
Izvestia style is parsed and shows parsing result.
The present embodiment discloses a kind of computer program product, and the computer program product includes being stored in non-transient calculating
Computer program on machine readable storage medium storing program for executing, the computer program include program instruction, when described program instruction is calculated
When machine executes, computer is able to carry out method provided by above-mentioned each method embodiment, for example including:Receive the first page end
Connection request determines the first group belonging to the first page end according to the identification information of the first page end;Receive the first page end
The target message of transmission, target message include message packet head and Izvestia style, and message packet head includes type of message;It determines
The type of message of target message will when type of message is the interior message of group and the first group includes at least one second page end
Target message is distributed to the second page end in the first group, so that the second page end in the first group is to message packet body
It is parsed and shows parsing result.
The present embodiment provides a kind of non-transient computer readable storage medium, the non-transient computer readable storage medium
Computer instruction is stored, the computer instruction makes the computer execute method provided by above-mentioned each method embodiment, example
Such as include:The connection request for receiving the first page end determines belonging to the first page end according to the identification information of the first page end
First group;The target message of the first page end transmission is received, target message includes message packet head and Izvestia style, message
Heading includes type of message;The type of message for determining target message, when type of message is message in group and the first group includes
When at least one second page end, target message is distributed to the second page end in the first group, so that in the first group
The second page end message packet body is parsed and shows parsing result.
Those of ordinary skill in the art will appreciate that:Realize that all or part of the steps of above method embodiment can pass through
The relevant hardware of program instruction is completed, and program above-mentioned can be stored in a computer readable storage medium, the program
When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes:ROM, RAM, magnetic disk or light
The various media that can store program code such as disk.
The embodiments such as the equipment of webpage version multi-screen interaction method described above are only schematical, wherein the work
It may or may not be physically separated for the unit of separate part description, component shown as a unit can be
Or it may not be physical unit, it can it is in one place, or may be distributed over multiple network units.It can be with
Some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment according to the actual needs.The common skill in this field
Art personnel are without paying creative labor, it can understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on
Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should
Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers
It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation
Method described in certain parts of example or embodiment.
Finally, the present processes are only preferable embodiment, it is not intended to limit the scope of the present invention.It is all
Within the spirit and principles in the present invention, any modification, equivalent replacement, improvement and so on should be included in protection of the invention
Within the scope of.
Claims (10)
1. a kind of method of webpage version multi-screen interactive, which is characterized in that including:
S1, the connection request for receiving the first page end determine first webpage according to the identification information of first page end
First group belonging to end;
S2 receives the target message that first page end is sent, and the target message includes message packet head and message packet
Body, the message packet head include type of message;
S3 determines the type of message of the target message, when the type of message is message in group and first group includes
When at least one second page end, the target message is distributed to the second page end in first group, so that institute
The second page end stated in the first group parses the Izvestia style and shows parsing result.
2. the method according to claim 1, wherein the step S3 further includes:
When the type of message is global message, the target message is distributed to all second page ends, so that all
Second page end parses the Izvestia style and shows parsing result.
3. method according to claim 1 or 2, which is characterized in that further include after the step S2:
The target message is cached to storage equipment.
4. according to the method described in claim 3, it is characterized in that, the message packet head also includes message lifecycle;
Correspondingly, described cache the target message to storage equipment further includes later:When reaching the message lifecycle
When, the target message is removed from the storage equipment.
5. according to the method described in claim 4, it is characterized in that, further including after the step S3:
The connection request for receiving third page end determines the third page end according to the identification information of the third page end
The second affiliated group;
In the message lifecycle, when the type of message is message and second group and first group in group
When identical, the target message is distributed to the third page end;When the type of message is global message, by the mesh
Message distribution is marked to the third page end.
6. according to the method described in claim 5, it is characterized in that, first page end and second page end and institute
Stating third page end includes socket control.
7. a kind of system of webpage version multi-screen interactive, which is characterized in that including:
Page end link block, for receiving the connection request of the first page end, according to the identification information of first page end,
Determine the first group belonging to first page end;
Message reception module, the target message sent for receiving first page end, the target message includes Izvestia
Literary head and Izvestia style, the message packet head include type of message;
Message distribution module, for determining the type of message of the target message, when the type of message is message and institute in group
When stating the first group comprising at least one second page end, the target message is distributed to the second net in first group
Page end, so that the second page end in first group parses the Izvestia style and shows parsing result.
8. system according to claim 7, which is characterized in that the message distribution module is also used to:
When the type of message is global message, the target message is distributed to all second page ends, so that all
Second page end parses the Izvestia style and shows parsing result.
9. a kind of equipment of the method for webpage version multi-screen interactive, which is characterized in that including:
At least one processor;And
At least one processor being connect with the processor communication, wherein:
The memory is stored with the program instruction that can be executed by the processor, and the processor calls described program to instruct energy
Enough methods executed as described in claim 1 to 6 is any.
10. a kind of non-transient computer readable storage medium, which is characterized in that the non-transient computer readable storage medium is deposited
Computer instruction is stored up, the computer instruction makes the computer execute the method as described in claim 1 to 6 is any.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810564684.6A CN108848083B (en) | 2018-06-04 | 2018-06-04 | Method and system for multi-screen interaction of webpage version |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810564684.6A CN108848083B (en) | 2018-06-04 | 2018-06-04 | Method and system for multi-screen interaction of webpage version |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108848083A true CN108848083A (en) | 2018-11-20 |
CN108848083B CN108848083B (en) | 2021-01-12 |
Family
ID=64210140
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810564684.6A Active CN108848083B (en) | 2018-06-04 | 2018-06-04 | Method and system for multi-screen interaction of webpage version |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108848083B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103379125A (en) * | 2013-07-02 | 2013-10-30 | 李达航 | Multi-screen interaction method based on social network |
CN103826155A (en) * | 2014-02-28 | 2014-05-28 | 深圳市同洲电子股份有限公司 | Multi-screen interaction method, server, terminal and system |
CN104683122A (en) * | 2015-02-12 | 2015-06-03 | 北京集奥聚合科技有限公司 | Multi-screen-linkage-based information transmitting method and system |
CN105094737A (en) * | 2015-08-07 | 2015-11-25 | 北京橙鑫数据科技有限公司 | Multimedia information display method and device |
CN105868001A (en) * | 2015-01-21 | 2016-08-17 | 中国移动通信集团公司 | Multi-screen interaction operation realization method, equipment and system |
WO2016196690A1 (en) * | 2015-06-01 | 2016-12-08 | Miller Benjamin Aaron | Rights management and syndication of content |
CN106572383A (en) * | 2015-10-12 | 2017-04-19 | 中国科学院声学研究所 | Video switching method and system based on multi-screen interaction |
-
2018
- 2018-06-04 CN CN201810564684.6A patent/CN108848083B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103379125A (en) * | 2013-07-02 | 2013-10-30 | 李达航 | Multi-screen interaction method based on social network |
CN103826155A (en) * | 2014-02-28 | 2014-05-28 | 深圳市同洲电子股份有限公司 | Multi-screen interaction method, server, terminal and system |
CN105868001A (en) * | 2015-01-21 | 2016-08-17 | 中国移动通信集团公司 | Multi-screen interaction operation realization method, equipment and system |
CN104683122A (en) * | 2015-02-12 | 2015-06-03 | 北京集奥聚合科技有限公司 | Multi-screen-linkage-based information transmitting method and system |
WO2016196690A1 (en) * | 2015-06-01 | 2016-12-08 | Miller Benjamin Aaron | Rights management and syndication of content |
CN105094737A (en) * | 2015-08-07 | 2015-11-25 | 北京橙鑫数据科技有限公司 | Multimedia information display method and device |
CN106572383A (en) * | 2015-10-12 | 2017-04-19 | 中国科学院声学研究所 | Video switching method and system based on multi-screen interaction |
Also Published As
Publication number | Publication date |
---|---|
CN108848083B (en) | 2021-01-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104462237B (en) | Show the method and device of public's message | |
CN110324671A (en) | Video web page playback method and device, electronic equipment and storage medium | |
CN101677389A (en) | Image transmission system and method | |
CN109561351A (en) | Network direct broadcasting back method, device and storage medium | |
CN110166455A (en) | A kind of multi-operator platform data adaptation method and relevant device | |
CN107818706A (en) | A kind of hospital's remote living broadcast formula teaching and training system | |
CN107919971A (en) | Method, apparatus and system for audio/video communication connection disaster tolerance | |
CN107784033A (en) | A kind of dialogue-based method and apparatus recommended | |
CN105959827A (en) | Data interaction method, set top box, and front-end server | |
CN110234080A (en) | A kind of information display method, device and system | |
CN106487712B (en) | For accessing the method, apparatus and server of multiple external systems | |
CN105306587B (en) | Processing method, device and the system of business datum | |
CN108124007A (en) | The method and apparatus of message data real-time Transmission | |
CN105490842A (en) | Method for managing dialogue in online service system based on MVVM (model-view-viewmodel) model | |
CN110083755A (en) | A kind of high emulation parsing web-page approach, device and electronic equipment | |
CN103546771A (en) | Television program review processing method and system based on smart terminal | |
CN108108952A (en) | A kind of service implementation method, system, equipment and computer storage media | |
CN103618766A (en) | Method and webgame interaction server for performing webgame interaction | |
CN109982134A (en) | A kind of video teaching method based on diagnostic device, diagnostic device and system | |
CN107783807A (en) | A kind of method and device of screenshot capture | |
CN107073333A (en) | The incarnation session of profile driving | |
CN105893735A (en) | Medical information remote one-screen assisting method and terminal | |
CN108848083A (en) | A kind of method and system of webpage version multi-screen interactive | |
CN104506414B (en) | A kind of system and method that roundupization application is realized based on instant message pattern | |
CN106844467A (en) | Method for exhibiting data and device |
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 |