CN106209969A - A kind of screen mirror image method and device between mobile terminal - Google Patents
A kind of screen mirror image method and device between mobile terminal Download PDFInfo
- Publication number
- CN106209969A CN106209969A CN201610437355.6A CN201610437355A CN106209969A CN 106209969 A CN106209969 A CN 106209969A CN 201610437355 A CN201610437355 A CN 201610437355A CN 106209969 A CN106209969 A CN 106209969A
- Authority
- CN
- China
- Prior art keywords
- frame
- mirror image
- mode
- sent
- screen
- 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.)
- Pending
Links
Classifications
-
- 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/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/565—Conversion or adaptation of application format or content
- H04L67/5651—Reducing the amount or size of exchanged application data
-
- 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
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses the screen mirror image method and device between a kind of mobile terminal, the method includes: instructs according to user operation, determines current mode of operation;Mode of operation includes: emission mode and the pattern of reception;According to current mode of operation, execution screen mirror image processes, specifically include: if current mode of operation is emission mode, then obtain on-screen data, it is compressed encoding by on-screen data according to encoding and decoding agreement, and use host-host protocol that code stream is packaged into Frame, the Frame after encapsulation is sent to outside router;If current operation mode is reception pattern, then receive the Frame that outside router sends, and the Frame received is packaged protocol analysis, Frame after resolving decompresses, obtain video stream data, again it is sent to player play out, uses the embodiment of the present invention can realize the mutual screen mirror image between mobile terminal, expanded range and the application scenarios of image feature.
Description
Technical field
The present invention relates to technical field of mobile terminals, particularly relate to a kind of screen mirror image method between mobile terminal and dress
Put.
Background technology
Growing along with mobile terminal, people generally require the screen mirror image realizing between mobile terminal, to realize
Data interaction and communication.But, current intelligent mobile terminal, mirror image transfer function is the most single, or uses
Miracast agreement, or use AirPlay agreement, poor reliability, poor universality, most importantly screen mirror between mobile terminal
Picture can only be unidirectional, it is impossible to carrying out mutual mirror image, practicality is poor.
Summary of the invention
The embodiment of the present invention proposes the screen mirror image method and device between a kind of mobile terminal, it is achieved between mobile terminal
Mutual screen mirror image, expanded range and the application scenarios of image feature.
The embodiment of the present invention provides a kind of screen mirror image method between mobile terminal, including:
Instruct according to user operation, determine current mode of operation;Described mode of operation includes: emission mode and reception mould
Formula;
According to current mode of operation, perform screen mirror image and process, specifically include:
If current mode of operation is emission mode, then obtain on-screen data, according to encoding and decoding agreement by described screen
Data are compressed coding, and use host-host protocol that the code stream after compressed encoding is packaged into Frame, by the data after encapsulation
Frame is sent to outside router;
If current operation mode is reception pattern, then receive the Frame that described outside router sends, and according to institute
Stating host-host protocol the Frame received is resolved, the Frame after resolving decompresses, it is thus achieved that video stream data,
Again described video stream data is sent to player play out.
Further, described emission mode includes: unicast transmission pattern and multicast transmission pattern;
Described reception pattern includes: unicast reception pattern and multicast reception pattern;
Described encoding and decoding agreement includes: H.264 agreement or H.265 agreement;
Described host-host protocol includes: Transmission Control Protocol, RTSP agreement or udp protocol.
Further, the mode of operation that described basis is current, perform screen mirror image and process, specifically include:
If current mode of operation is described unicast transmission pattern, then obtain on-screen data, described on-screen data is entered
Row compressed encoding H.264, and use Transmission Control Protocol that the code stream after compressed encoding is packaged into Frame, by the data after encapsulation
Frame is sent to outside router;
Judge whether to receive response message, if received, then return and obtain on-screen data, it is achieved reciprocation cycle is sent out
Penetrate;Otherwise, wait described response message to be received, if being not received by described response message in Preset Time, the most again by institute
State the Frame after encapsulation and be transmitted to described outside router.
Further, the mode of operation that described basis is current, perform screen mirror image and process, specifically include:
If current mode of operation is described unicast reception pattern, then receive the data that described outside router sends
Frame, and the described Frame received is carried out Transmission Control Protocol parsing;
Response message is fed back to described outside router;
Frame after resolving decompresses, it is thus achieved that video stream data, more described video stream data is sent to broadcast
Put device to play out.
Further, the mode of operation that described basis is current, perform screen mirror image and process, specifically include:
If current mode of operation is described multicast transmission pattern, then obtain on-screen data, described on-screen data is entered
Row compressed encoding H.264, and use Transmission Control Protocol that the code stream after compressed encoding is packaged into Frame, after described encapsulation
Frame is sent to outside router;
Frame secondary after described encapsulation is sent to described outside router.
Further, the mode of operation that described basis is current, perform screen mirror image and process, specifically include:
If current mode of operation is described multicast reception pattern, then send multicast request to described outside router,
Communication connection is set up with described outside router;
Receive the Frame that described outside router sends, and the described Frame received is carried out Transmission Control Protocol parsing;
Judge whether the Frame after described parsing is valid data frame;
If it is not, then return previous step, receive the Frame that described outside router sends;
If so, the Frame after resolving decompresses, it is thus achieved that video stream data, more described video stream data is sent
Play out to player.
Correspondingly, the embodiment of the present invention also provides for the screen mirror image device between a kind of mobile terminal, including: pattern determines
Module and mirror image processing module;
Described mode decision module, for instructing according to user operation, determines the mode of operation that described launch terminal is current;
Described mode of operation includes: emission mode and the pattern of reception;
Described mirror image processing module, for according to current mode of operation, performs screen mirror image and processes;
Described mirror image processing module includes: the first processing unit, the second processing unit, transmitter unit and reception unit;
Described first processing unit is used for when described mode decision module determines that current mode of operation is emission mode,
Obtain on-screen data, the compressed encoding carried out by described on-screen data according to encoding and decoding agreement, and use host-host protocol to compress
Code stream after coding is packaged into Frame, and the Frame after described encapsulation is sent to described transmitter unit, so that described transmitting
Frame after described encapsulation is transmitted to outside router by unit;
Described reception unit, for when described mode decision module determines that current mode of operation is reception pattern, receives
The Frame that described outside router sends, and the Frame of described reception is sent to described second processing unit;
Described second processing unit, for the described Frame received being resolved according to described host-host protocol, will solve
Frame after analysis decompresses, it is thus achieved that video stream data, more described video stream data is sent to player plays out.
Further, described emission mode includes: unicast transmission pattern and multicast transmission pattern;
Described reception pattern includes: unicast reception pattern and multicast reception pattern;
Described encoding and decoding agreement includes: H.264 agreement or H.265 agreement;
Described host-host protocol includes: Transmission Control Protocol, RTSP agreement or udp protocol.
Further, described first processing unit includes: first processes subelement and the first judgment sub-unit;
Described first clean culture processes subelement for determining that current mode of operation is described at described mode decision module
During unicast transmission pattern, obtain on-screen data, described on-screen data is carried out compressed encoding H.264, and uses Transmission Control Protocol to incite somebody to action
Code stream after compressed encoding is packaged into Frame, and described Frame is sent to outside router;
Described first judgment sub-unit is used for judging whether to receive response message, if received, then controls described
One clean culture processes subelement and returns acquisition on-screen data, it is achieved reciprocation cycle is launched;Otherwise, wait described response message to be received,
If being not received by described response message in Preset Time, then control described transmitter unit again by the data after described encapsulation
Frame is transmitted to described outside router;
Described second processing unit includes: second processes subelement and response message transmission subelement;
Described second processes subelement for determining that current mode of operation is described clean culture at described mode decision module
During reception pattern, the Frame that described reception unit is received carries out Transmission Control Protocol parsing;
Described response message sends subelement for feeding back response message to described outside router;
The Frame that described second process subelement will be additionally operable to after resolving decompresses, it is thus achieved that video stream data, then
Described video stream data is sent to player play out.
Further, described first processing unit includes: the 3rd processes subelement;
3rd processes subelement for determining that current mode of operation is described multicast transmission at described mode decision module
During pattern, obtain on-screen data, described on-screen data is carried out compressed encoding H.264, and uses Transmission Control Protocol by compressed encoding
After code stream be packaged into Frame, the Frame after described encapsulation is sent to described transmitter unit, make described transmitter unit will
Frame after described encapsulation is transmitted to described outside router;
Described 3rd processes the Frame secondary after subelement is additionally operable to described encapsulation is sent to described transmitter unit, makes
Frame secondary after described encapsulation is sent to described outside router by described transmitter unit;
Described second processing unit includes: request sends subelement, the second judgment sub-unit and fourth process subelement;
Described request sends subelement for determining that current mode of operation is described multicast at described mode decision module
During reception pattern, send multicast request to described outside router, set up communication connection with described outside router;
Described fourth process subelement is for carrying out Transmission Control Protocol parsing the described Frame received;
Whether described second judgment sub-unit Frame after judging described parsing is valid data frame;
If it is not, then control described reception unit again receive the Frame that described outside router sends;
If so, control the Frame after described fourth process subelement will resolve to decompress, it is thus achieved that video stream data,
Again described video stream data is sent to player play out.
Implement the embodiment of the present invention, have the advantages that
Screen mirror image method and device between a kind of mobile terminal that the embodiment of the present invention provides, refers to according to user operation
Order determines current mode of operation, and performs screen mirror image process according to current mode of operation.Mode of operation is divided into transmitting mould
Formula and the pattern of reception.During transmitting, on-screen data is compressed, and just to outside router after using host-host protocol to be packaged
Launch, be the inverse process of emission process during reception, finally the video stream data of acquisition passed to player and play out.Compare
Can only realize unidirectional screen mirror image between prior art mobile terminal, technical solution of the present invention not only can make mobile terminal become
For transmitting terminal, it is possible to so that mobile terminal becomes receiving terminal, it is achieved the mutual screen mirror image between mobile terminal, expand mirror image
The range of function and application scenarios.
Further, the emission mode of the present invention includes unicast transmission pattern and multicast transmission pattern, and reception pattern is also wrapped
Include unicast reception pattern and multicast reception pattern, it is achieved that the screen mirror image of single pair of list, or the screen mirror image that single pair of is many, enter
One step has expanded range and the application scenarios of image feature.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of a kind of embodiment of the screen mirror image method between the mobile terminal that the present invention provides;
Fig. 2 is the flow process signal of the another kind of embodiment of the screen mirror image method between the mobile terminal that the present invention provides
Figure;
Fig. 3 is the flow process signal of another embodiment of the screen mirror image method between the mobile terminal that the present invention provides
Figure;
Fig. 4 is the structural representation of a kind of embodiment that the invention provides the screen mirror image device between mobile terminal;
Fig. 5 is the structural representation of the another kind of embodiment that the invention provides the screen mirror image device between mobile terminal
Figure;
Fig. 6 is the structural representation of another embodiment that the invention provides the screen mirror image device between mobile terminal
Figure.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under not making creative work premise
Embodiment, broadly falls into the scope of protection of the invention.
See Fig. 1, be that the flow process of a kind of embodiment of screen mirror image method between the mobile terminal that provides of the present invention is shown
It is intended to.The screen mirror image method that the present invention provides can operate with between each mobile terminal or intelligent terminal, as mobile phone and mobile phone it
Between, between flat board and flat board, between computer and computer and between mobile phone and computer, between mobile phone and flat board, flat board and computer
Between can realize.This screen mirror image method include step 101 to 102, wherein, step 102 includes step 1021 and 1022.
Each step is specific as follows:
Step 101: instruct according to user operation, determine current mode of operation;This mode of operation includes: emission mode and
Reception pattern.
Step 102: according to current mode of operation, performs screen mirror image and processes.
Step 1021: if current mode of operation is emission mode, then obtain on-screen data, will according to encoding and decoding agreement
This on-screen data is compressed coding, and uses host-host protocol that the code stream after compressed encoding is packaged into Frame, after encapsulating
Frame be sent to outside router.
Step 1022: if current operation mode is reception pattern, then receive the Frame that outside router sends, and root
According to host-host protocol, the Frame received being resolved, the Frame after resolving decompresses, it is thus achieved that video stream data,
Again video stream data is sent to player play out.
As a kind of citing of the present embodiment, emission mode includes unicast transmission pattern and multicast transmission pattern.Receive mould
Formula includes unicast reception pattern and multicast reception pattern.Encoding and decoding agreement includes: H.264 agreement or H.265 agreement etc. solve and compile
Code agreement.Host-host protocol includes: the host-host protocols such as Transmission Control Protocol, RTSP agreement or udp protocol.
See the stream that Fig. 2, Fig. 2 are the another kind of embodiments of screen mirror image method between the mobile terminal that provides of the present invention
Journey schematic diagram.As in figure 2 it is shown, the method comprising the steps of 201 to 207, step 201 includes step 2011 and 2012.
Step 201: instruct according to user operation, determine current mode of operation;This mode of operation includes: emission mode and
Reception pattern.
Step 2011: current mode of operation is unicast transmission pattern.
Step 2012: current mode of operation is unicast reception pattern.
In this citing, if step 201 determines that current operation mode is unicast transmission pattern, then perform step 202, as
Fruit determines that current operation mode is unicast reception pattern, then perform step 205.
Step 202: obtain on-screen data, carries out on-screen data compressed encoding H.264, and uses Transmission Control Protocol to press
Reduce the staff the code stream after code and be packaged into Frame, the Frame after encapsulation is sent to outside router.
Step 203: judge whether to receive response message, if received, then returns step 202, it is achieved reciprocation cycle
Launch;Otherwise, step 204 is performed.
Step 204: wait response message to be received, if being not received by response message in Preset Time, the most again will envelope
Frame after dress is transmitted to outside router.
Step 205: receive the Frame that outside router sends, and the Frame received is carried out Transmission Control Protocol parsing.
Step 206: feed back response message to outside router;
Step 207: the Frame after resolving decompresses, it is thus achieved that video stream data, then video stream data is sent
Play out to player.
In this citing, before realizing clean culture mirror image, need two mobile terminals of mutual mirror image to be respectively connecting to
Same router, it is ensured that the two terminal is on same LAN so that the mirrored content in some terminal is by route
Device is sent to another terminal.
As another citing of the present embodiment, seeing Fig. 3, Fig. 3 is the screen between the mobile terminal that provides of the present invention
The schematic flow sheet of another embodiment of mirror method.As it is shown on figure 3, the method comprising the steps of 301 to 306, step 301 is wrapped
Include step 3011 and 3012.
Step 301: instruct according to user operation, determine current mode of operation;This mode of operation includes: emission mode and
Reception pattern.
Step 3011: current mode of operation is multicast reception pattern.
Step 3012: current mode of operation is multicast transmission pattern.
In this citing, if step 301 determines that current operation mode is unicast transmission pattern, then perform step 302, as
Fruit determines that current operation mode is unicast reception pattern, then perform step 305.
Step 302: send multicast request to outside router, sets up communication connection with outside router, receives outside road
The Frame sent by device, and the Frame received is carried out Transmission Control Protocol parsing.
Step 303: judge whether the Frame after resolving is valid data frame;If it is not, then return step 302, outside reception
The Frame that portion's router sends.The most then perform step 304.
In this citing, if these frame data are destroyed, then abandon;If these frame data are the first frames of a Frame
Data, then second frame data of these frame data to be received such as;If the second frame data are also destroyed, then abandon, wait new one
Frame data.If the first frame data in two frame data are effective, the most no longer receive the second frame data.
Step 304: the Frame after resolving decompresses, it is thus achieved that video stream data, then video stream data is sent
Play out to player.
Step 305: obtain on-screen data, carries out on-screen data compressed encoding H.264, and uses Transmission Control Protocol to press
Reduce the staff the code stream after code and be packaged into Frame, the Frame after encapsulation is sent to outside router.
Step 306: the Frame secondary after encapsulation is sent to outside router.
In this citing, secondary sends can prevent loss of data, improves the stability of mirror method of the present invention.
In this citing, multiple intelligent terminal of multicast pattern connect inside a LAN.One of them intelligence
Terminal carries out the transmitting of screen mirror image as transmitting terminal, and multiple intelligent terminal synchronize to receive as receiving terminal, in data exchange
The heart is router.
On the other hand, seeing Fig. 4, Fig. 4 is to the invention provides the one of the screen mirror image device between mobile terminal in fact
Execute the structural representation of example.As shown in Figure 4, this device includes: mode decision module 401 and mirror image processing module 402.
Mode decision module 401, for instructing according to user operation, determines the mode of operation that launch terminal is current;Working mould
Formula includes: emission mode and the pattern of reception.
Mirror image processing module 402, for according to current mode of operation, performs screen mirror image and processes.
Mirror image processing module 402 includes: first processing unit the 4021, second processing unit 4022, transmitter unit 4023 and
Receive unit 4024.
First processing unit 4021 is used for when mode decision module 401 determines that current mode of operation is emission mode,
Obtain on-screen data, be compressed encoding by on-screen data according to encoding and decoding agreement, and use host-host protocol by after compressed encoding
Code stream be packaged into Frame, will encapsulation after Frame be sent to transmitter unit 4023 so that transmitter unit 4023 will encapsulation
After Frame be transmitted to outside router.
Receive unit 4024 to be used for when mode decision module 401 determines that current mode of operation is reception pattern, receive
The Frame that outside router sends, and the Frame of reception is sent to the second processing unit 4022.
Second processing unit 4022 is for resolving, according to described host-host protocol, the Frame received, after resolving
Frame decompress, it is thus achieved that video stream data, then video stream data is sent to player plays out.
As a kind of citing of the present embodiment, this emission mode includes: unicast transmission pattern and multicast transmission pattern.This connects
Receipts pattern includes: unicast reception pattern and multicast reception pattern.
As a kind of citing of the present embodiment, seeing Fig. 5, Fig. 5 is the screen mirror between the mobile terminal that provides of the present invention
Structural representation as the another kind of embodiment of device.The difference of Fig. 5 with Fig. 4 is, the first processing unit 4021 includes: first
Process subelement 501 and the first judgment sub-unit 502.Second processing unit 4022 includes: second processes subelement 503 and response
Information sends subelement 504.
First clean culture processes subelement 501 for determining that current mode of operation is that clean culture is sent out at mode decision module 401
During emission mode, obtain on-screen data, on-screen data is carried out compressed encoding H.264, and uses Transmission Control Protocol by after compressed encoding
Code stream be packaged into Frame, Frame is sent to transmitter unit 4023, so that Frame is sent to by transmitter unit 4023
Outside router.
First judgment sub-unit 502 is used for judging whether to receive response message, if received, then controls the first clean culture
Process subelement 501 and return acquisition on-screen data, it is achieved reciprocation cycle is launched;Otherwise, wait described response message to be received, if
It is not received by response message in Preset Time, then controls transmitter unit 4023 and again the Frame after encapsulation is transmitted to outside
Router.
Second processes subelement 503 for determining that current mode of operation is unicast reception mould at mode decision module 401
During formula, the Frame that reception unit 4024 is received carries out Transmission Control Protocol parsing.
Response message sends subelement 504 for feeding back response message to outside router.
The Frame that second process subelement 503 will be additionally operable to after resolving decompresses, it is thus achieved that video stream data, then
Video stream data is sent to player and plays out.
As a kind of citing of the present embodiment, seeing Fig. 6, Fig. 6 is the screen mirror between the mobile terminal that provides of the present invention
Structural representation as the another kind of embodiment of device.The difference of Fig. 6 with Fig. 4 is, the first processing unit 4021 includes: the 3rd
Process subelement 601.Second processing unit 4022 includes that request sends subelement the 602, second judgment sub-unit 603 and the everywhere
Reason subelement 604.
3rd processes subelement 601 for determining that current mode of operation is multicast transmission mould at mode decision module 401
During formula, obtain on-screen data, on-screen data is carried out compressed encoding H.264, and uses Transmission Control Protocol by the code after compressed encoding
Stream is packaged into Frame, and the Frame after encapsulation is sent to transmitter unit 4023, makes transmitter unit 4023 by the number after encapsulation
It is transmitted to outside router according to frame.
3rd processes the Frame secondary after subelement 601 is additionally operable to encapsulation is sent to transmitter unit 4023, makes transmitting
Frame secondary after encapsulation is sent to outside router by unit 4023.
Request sends subelement 602 for determining that current mode of operation is multicast reception mould at mode decision module 401
During formula, send multicast request to outside router, set up communication connection with outside router.
Fourth process subelement 603 is for carrying out Transmission Control Protocol parsing the Frame received.
Whether the second judgment sub-unit 604 is valid data frame for judging the Frame after resolving;If it is not, then control to connect
Receive unit 4024 and again receive the Frame that outside router sends;If so, after control fourth process subelement 603 will resolve
Frame decompresses, it is thus achieved that video stream data, then video stream data is sent to player plays out.
Therefore, the screen mirror image method and device between a kind of mobile terminal that the embodiment of the present invention provides, according to
User operation instruction determines current mode of operation, and performs screen mirror image process according to current mode of operation.Mode of operation
It is divided into emission mode and reception pattern.According to encoding and decoding agreement, on-screen data is compressed during transmitting, and uses host-host protocol
Just launch to outside router after being packaged, be the inverse process of emission process during reception, the video stream data that finally will obtain
Pass to player play out.Compared to realizing unidirectional screen mirror image, the present invention between prior art mobile terminal
Technical scheme not only can make mobile terminal become transmitting terminal, it is possible to so that mobile terminal becomes receiving terminal, it is achieved mobile terminal it
Between mutual screen mirror image, expanded range and the application scenarios of image feature.
Further, the emission mode of the present invention includes unicast transmission pattern and multicast transmission pattern, and reception pattern is also wrapped
Include unicast reception pattern and multicast reception pattern, it is achieved that the screen mirror image of single pair of list, or the screen mirror image that single pair of is many, enter
One step has expanded range and the application scenarios of image feature.
The above is the preferred embodiment of the present invention, it is noted that for those skilled in the art
For, under the premise without departing from the principles of the invention, it is also possible to make some improvements and modifications, these improvements and modifications are also considered as
Protection scope of the present invention.
Claims (10)
1. the screen mirror image method between a mobile terminal, it is characterised in that including:
Instruct according to user operation, determine current mode of operation;Described mode of operation includes: emission mode and the pattern of reception;
According to current mode of operation, perform screen mirror image and process, specifically include:
If current mode of operation is emission mode, then obtain on-screen data, according to encoding and decoding agreement by described on-screen data
It is compressed coding, and uses host-host protocol that the code stream after compressed encoding is packaged into Frame, the Frame after encapsulation is sent out
Give outside router;
If current operation mode is reception pattern, then receive the Frame that described outside router sends, and according to described biography
Transmission protocol resolves the Frame received, and the Frame after resolving decompresses, it is thus achieved that video stream data, then
Described video stream data is sent to player and plays out.
2. according to the screen mirror image method between the mobile terminal described in right 1, it is characterised in that described emission mode includes:
Unicast transmission pattern and multicast transmission pattern;
Described reception pattern includes: unicast reception pattern and multicast reception pattern;
Described encoding and decoding agreement includes: H.264 agreement or H.265 agreement;
Described host-host protocol includes: Transmission Control Protocol, RTSP agreement or udp protocol.
Screen mirror image method between mobile terminal the most according to claim 2, it is characterised in that described basis is current
Mode of operation, performs screen mirror image and processes, specifically include:
If current mode of operation is described unicast transmission pattern, then obtain on-screen data, described on-screen data is carried out
H.264 compressed encoding, and use Transmission Control Protocol that the code stream after compressed encoding is packaged into Frame, by the Frame after encapsulation
It is sent to outside router;
Judge whether to receive response message, if received, then return and obtain on-screen data, it is achieved reciprocation cycle is launched;No
Then, wait described response message to be received, if being not received by described response message in Preset Time, the most again by described encapsulation
After Frame be transmitted to described outside router.
Screen mirror image method between mobile terminal the most according to claim 2, it is characterised in that described basis is current
Mode of operation, performs screen mirror image and processes, specifically include:
If current mode of operation is described unicast reception pattern, then receive the Frame that described outside router sends, and
The described Frame received is carried out Transmission Control Protocol parsing;
Response message is fed back to described outside router;
Frame after resolving decompresses, it is thus achieved that video stream data, more described video stream data is sent to player
Play out.
Screen mirror image method between mobile terminal the most according to claim 2, it is characterised in that described basis is current
Mode of operation, performs screen mirror image and processes, specifically include:
If current mode of operation is described multicast transmission pattern, then obtain on-screen data, described on-screen data is carried out
H.264 compressed encoding, and use Transmission Control Protocol that the code stream after compressed encoding is packaged into Frame, by the number after described encapsulation
It is sent to outside router according to frame;
Frame secondary after described encapsulation is sent to described outside router.
Screen mirror image method between mobile terminal the most according to claim 2, it is characterised in that described basis is current
Mode of operation, performs screen mirror image and processes, specifically include:
If current mode of operation is described multicast reception pattern, then send multicast request to described outside router, with institute
State outside router and set up communication connection;
Receive the Frame that described outside router sends, and the described Frame received is carried out Transmission Control Protocol parsing;
Judge whether the Frame after described parsing is valid data frame;
If it is not, then return previous step, receive the Frame that described outside router sends;
If so, the Frame after resolving decompresses, it is thus achieved that video stream data, more described video stream data is sent to broadcast
Put device to play out.
7. the screen mirror image device between a mobile terminal, it is characterised in that including: mode decision module and mirror image processing mould
Block;
Described mode decision module, for instructing according to user operation, determines the mode of operation that described launch terminal is current;Described
Mode of operation includes: emission mode and the pattern of reception;
Described mirror image processing module, for according to current mode of operation, performs screen mirror image and processes;
Described mirror image processing module includes: the first processing unit, the second processing unit, transmitter unit and reception unit;
Described first processing unit, for when described mode decision module determines that current mode of operation is emission mode, obtains
On-screen data, is compressed encoding by described on-screen data according to encoding and decoding agreement, and uses host-host protocol by after compressed encoding
Code stream be packaged into Frame, the Frame after described encapsulation is sent to described transmitter unit so that described transmitter unit will
Frame after described encapsulation is transmitted to outside router;
Described reception unit, for when described mode decision module determines that current mode of operation is reception pattern, receives described
The Frame that outside router sends, and the Frame of described reception is sent to described second processing unit;
Described second processing unit is for using described host-host protocol that the described Frame received is resolved, after resolving
Frame decompress, it is thus achieved that video stream data, more described video stream data is sent to player plays out.
Screen mirror image device between a kind of mobile terminal the most according to claim 7, it is characterised in that described transmitting mould
Formula includes: unicast transmission pattern and multicast transmission pattern;
Described reception pattern includes: unicast reception pattern and multicast reception pattern;
Described encoding and decoding agreement includes: H.264 agreement or H.265 agreement;
Described host-host protocol includes: Transmission Control Protocol, RTSP agreement or udp protocol.
Screen mirror image device between a kind of mobile terminal the most according to claim 8, it is characterised in that at described first
Reason unit includes: first processes subelement and the first judgment sub-unit;
Described first clean culture processes subelement for determining that current mode of operation is described clean culture at described mode decision module
During emission mode, obtain on-screen data, described on-screen data is carried out compressed encoding H.264, and uses Transmission Control Protocol to compress
Code stream after coding is packaged into Frame, and described Frame is sent to outside router;
Described first judgment sub-unit is used for judging whether to receive response message, if received, then controls described first single
Broadcast process subelement and return acquisition on-screen data, it is achieved reciprocation cycle is launched;Otherwise, wait described response message to be received, if
It is not received by described response message in Preset Time, then controls described transmitter unit and again the Frame after described encapsulation is sent out
Penetrate to described outside router;
Described second processing unit includes: second processes subelement and response message transmission subelement;
Described second processes subelement for determining that current mode of operation is described unicast reception at described mode decision module
During pattern, the Frame that described reception unit is received carries out Transmission Control Protocol parsing;
Described response message sends subelement for feeding back response message to described outside router;
The Frame that described second process subelement will be additionally operable to after resolving decompresses, it is thus achieved that video stream data, then institute
State video stream data to be sent to player and play out.
Screen mirror image device between a kind of mobile terminal the most according to claim 8, it is characterised in that described first
Processing unit includes: the 3rd processes subelement;
3rd processes subelement for determining that current mode of operation is described multicast transmission pattern at described mode decision module
Time, obtain on-screen data, described on-screen data is carried out compressed encoding H.264, and uses Transmission Control Protocol by after compressed encoding
Code stream is packaged into Frame, and the Frame after described encapsulation is sent to described transmitter unit, makes described transmitter unit by described
Frame after encapsulation is transmitted to described outside router;
Described 3rd processes the Frame secondary after subelement is additionally operable to described encapsulation is sent to described transmitter unit, makes described
Frame secondary after described encapsulation is sent to described outside router by transmitter unit;
Described second processing unit includes: request sends subelement, the second judgment sub-unit and fourth process subelement;
Described request sends subelement for determining that current mode of operation is described multicast reception at described mode decision module
During pattern, send multicast request to described outside router, set up communication connection with described outside router;
Described fourth process subelement is for carrying out Transmission Control Protocol parsing the described Frame received;
Whether described second judgment sub-unit Frame after judging described parsing is valid data frame;
If it is not, then control described reception unit again receive the Frame that described outside router sends;
If so, control the Frame after described fourth process subelement will resolve to decompress, it is thus achieved that video stream data, then
Described video stream data is sent to player and plays out.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610437355.6A CN106209969A (en) | 2016-06-16 | 2016-06-16 | A kind of screen mirror image method and device between mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610437355.6A CN106209969A (en) | 2016-06-16 | 2016-06-16 | A kind of screen mirror image method and device between mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106209969A true CN106209969A (en) | 2016-12-07 |
Family
ID=57460720
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610437355.6A Pending CN106209969A (en) | 2016-06-16 | 2016-06-16 | A kind of screen mirror image method and device between mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106209969A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20130095519A (en) * | 2012-02-20 | 2013-08-28 | 삼성전자주식회사 | Screen mirroring method and apparatus thereof |
CN104360790A (en) * | 2013-11-14 | 2015-02-18 | 三星电子(中国)研发中心 | Method for sharing mobile terminal screen and mobile terminal |
CN104837048A (en) * | 2015-05-08 | 2015-08-12 | 深圳市飞图视讯有限公司 | Screen mirror implementation method and system |
CN104836936A (en) * | 2015-05-19 | 2015-08-12 | 深圳市飞图视讯有限公司 | Data transmission method |
CN105100154A (en) * | 2014-05-14 | 2015-11-25 | 中兴通讯股份有限公司 | Multimedia sharing method and system between cloud terminal and mobile terminal, and cloud terminal |
CN105142008A (en) * | 2015-07-31 | 2015-12-09 | 中国科学院声学研究所 | Method for playing second terminal data with first terminal |
-
2016
- 2016-06-16 CN CN201610437355.6A patent/CN106209969A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20130095519A (en) * | 2012-02-20 | 2013-08-28 | 삼성전자주식회사 | Screen mirroring method and apparatus thereof |
CN104360790A (en) * | 2013-11-14 | 2015-02-18 | 三星电子(中国)研发中心 | Method for sharing mobile terminal screen and mobile terminal |
CN105100154A (en) * | 2014-05-14 | 2015-11-25 | 中兴通讯股份有限公司 | Multimedia sharing method and system between cloud terminal and mobile terminal, and cloud terminal |
CN104837048A (en) * | 2015-05-08 | 2015-08-12 | 深圳市飞图视讯有限公司 | Screen mirror implementation method and system |
CN104836936A (en) * | 2015-05-19 | 2015-08-12 | 深圳市飞图视讯有限公司 | Data transmission method |
CN105142008A (en) * | 2015-07-31 | 2015-12-09 | 中国科学院声学研究所 | Method for playing second terminal data with first terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101068345B (en) | Video frequency monitoring method and system and network transmission equipment | |
CN104519493A (en) | Method for networking multiple Bluetooth devices | |
CN106254189A (en) | A kind of WiFi distribution method | |
CN105516635A (en) | Video call system, device and method | |
RU2010136044A (en) | WIRELESS RADIO CONTROL UNITS USING IDENTIFIERS | |
JP2013510472A (en) | Method and device for aggregating multiple service data from machine terminal equipment | |
CN102724170A (en) | IPv6lowpan-based internet of things gateway supporting UGCCNet | |
CN106961426B (en) | Communication method and device of intelligent equipment | |
CN102739947B (en) | Wireless network shooting device and working method of wireless network shooting device | |
CN101304302A (en) | Method and system for transmitting video data | |
CN110266437A (en) | It throws screen message method, throw screen message treatment method, device and terminal | |
CN102447738B (en) | A kind of method and device realizing base station remote debugging | |
CN103337144B (en) | Wireless network-based intelligent remote control method and wireless network-based terminal | |
CN105323736A (en) | IMSI obtaining method and device, and signal monitoring system | |
CN104219236A (en) | Cellphone incoming call prompting method of intelligent television | |
CN102012796A (en) | Spliced wall control command transmission method and device | |
CN106851198B (en) | Network camera operation method and network camera | |
CN102186029A (en) | Television and network access method and device for same | |
CN104754502A (en) | Equipment pairing method and equipment pairing system supporting multiple protocols | |
CN107295603A (en) | A kind of terminal control method and device | |
CN106209969A (en) | A kind of screen mirror image method and device between mobile terminal | |
CN104243412A (en) | Network data processing terminal and method for processing network data in network data processing terminal | |
CN111147582A (en) | Voice interaction method and device, computer equipment and storage medium | |
CN106656813B (en) | Data transmission method | |
CN101321259B (en) | Multimedia equipment control system, control data transmission and processing equipment and method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161207 |
|
RJ01 | Rejection of invention patent application after publication |