CN109144445A - Wireless screen transmission method and device - Google Patents
Wireless screen transmission method and device Download PDFInfo
- Publication number
- CN109144445A CN109144445A CN201810822074.1A CN201810822074A CN109144445A CN 109144445 A CN109144445 A CN 109144445A CN 201810822074 A CN201810822074 A CN 201810822074A CN 109144445 A CN109144445 A CN 109144445A
- Authority
- CN
- China
- Prior art keywords
- played
- frame
- buffer area
- screen
- threshold
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1454—Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/44—Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/04—Synchronising
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The present invention is suitable for passing screen technical field, provide a kind of wireless screen transmission method and device, method includes: the video flowing for receiving transmitting terminal and sending, decoded video streams obtain at least one screen frame of the first screen, using at least one screen frame as frame buffer to be played to buffer area, compare the quantity of buffer area frame to be played and the size of first threshold, if the quantity of buffer area frame to be played is less than or equal to first threshold, the frame to be played of buffer area is played according to the first rule, otherwise, the frame to be played of buffer area is played according to Second Rule, in same time, it is greater than the quantity played according to the first rule according to the quantity that Second Rule plays the frame to be played of buffer area, accelerate the removing speed for removing receiving end buffer area frame to be played, receiving end buffer area is avoided to accumulate a large amount of frame to be played, so as to shorten receiving end and transmitting terminal The time difference is played, solves the problems, such as that receiving end present in wireless screen transmission technology in the prior art is asynchronous with transmitting terminal, broadcast time-delay is longer.
Description
Technical field
The invention belongs to pass screen technical field more particularly to a kind of wireless screen transmission method and device.
Background technique
Using wireless screen transmission technology, will be shown in the content transmission to another equipment in an equipment by wireless network
Show and plays, such as: being played on the video and audio transmission to television set played on computer screen, mobile phone screen transmission is shown
Show on television screen etc..At present in meeting, education sector has the local application of content share demand wider, with wireless
The development of network, wireless screen transmission technology using more and more extensive.
Since wireless screen transmission uses wireless network transmissions, influenced by the time loss of real network and data processing, nothing
Line, which passes screen, can generate transmission delay, and this delay shows as slightly being slower than data sending terminal broadcasting in the playback progress of data receiver
Progress.If wireless network is influenced to cause data stuck by other factors such as signals, the reception progress of data receiver can be much low
In the transmission progress of data sending terminal, after signal restores normal, the buffer area of data receiver has accumulated a large amount of numbers to be played
According to causing receiving end asynchronous with transmitting terminal, considerably increase broadcast time-delay, reduce user experience effect.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of wireless screen transmission method and device, with solve in the prior art without
Line passes present in screen technology that receiving end is asynchronous with transmitting terminal, the longer problem of broadcast time-delay.
The first aspect of the embodiment of the present invention provides a kind of wireless screen transmission method, comprising:
The video flowing that transmitting terminal is sent is received, the video flowing is decoded and obtains at least one screen frame of the first screen, institute
State the screen that the first screen is the transmitting terminal;
By at least one described screen frame as frame buffer to be played to buffer area;
Compare the quantity of buffer area frame to be played and the size of first threshold;
If the quantity of buffer area frame to be played is less than or equal to first threshold, the buffer area is played according to the first rule
Frame to be played, if the quantity of buffer area frame to be played be greater than first threshold, according to Second Rule play the buffer area wait broadcast
It puts frame, in same time, is greater than according to the quantity that the Second Rule plays the frame to be played of the buffer area according to described the
The quantity that one rule plays.
In one possible implementation, the video flowing for receiving transmitting terminal and sending, comprising:
Compare the quantity of buffer area frame to be played and the size of second threshold;
If the quantity of the buffer area frame to be played is less than or equal to second threshold, all videos that transmitting terminal is sent are received
Stream;
If the quantity of the buffer area frame to be played is greater than second threshold, the partial video stream that transmitting terminal is sent is received.
In one possible implementation, described extremely to cache at least one described screen frame as frame buffer to be played
Area, comprising:
Compare the quantity of buffer area frame to be played and the size of third threshold value;
If the quantity of the buffer area frame to be played is less than or equal to third threshold value, by the complete of at least one screen frame
Portion's screen frame is as frame buffer to be played to buffer area;
If the quantity of the buffer area frame to be played is greater than third threshold value, by the part of screen of at least one screen frame
Frame is as frame buffer to be played to buffer area.
In one possible implementation, if the quantity of buffer area frame to be played is less than or equal to first threshold,
The frame to be played of the buffer area is played according to the first rule, if the quantity of buffer area frame to be played is greater than first threshold, according to
Second Rule plays the frame to be played of the buffer area, specifically includes:
If the quantity of buffer area frame to be played be less than or equal to first threshold, according to buffer area frame to be played sequence successively
Play whole frames to be played in buffer area;
If the quantity of buffer area frame to be played is greater than first threshold, played according to the sequential selection of buffer area frame to be played slow
Area's inner part frame to be played is deposited, non-selected frame to be played in buffer area is abandoned.
In one possible implementation, if the quantity of buffer area frame to be played is less than or equal to first threshold,
The frame to be played of the buffer area is played according to the first rule, if the quantity of buffer area frame to be played is greater than first threshold, according to
Second Rule plays the frame to be played of the buffer area, specifically includes:
If the quantity of buffer area frame to be played is less than or equal to first threshold, broadcast according to the screen frame of first screen
Put the frame to be played that speed plays buffer area;
If the quantity of buffer area frame to be played is greater than first threshold, according to the broadcasting for the screen frame for being greater than first screen
The frame to be played of speed broadcasting buffer area.
The second aspect of the embodiment of the present invention provides a kind of wireless screen transmission method, comprising:
The screen frame of the first screen is intercepted, first screen is the screen of transmitting terminal;
At least one screen frame for encoding the first screen of interception is video flowing;
Obtain the quantity of receiving end buffer area frame to be played;
Compare the quantity of buffer area frame to be played and the size of the 4th threshold value;
If the quantity of the buffer area frame to be played is less than or equal to the 4th threshold value, the video is sent according to third rule
It is flow to receiving end, if the quantity of buffer area frame to be played is greater than the 4th threshold value, sends the video flowing according to the 4th rule
To receiving end, in same time, the view sent according to the third rule is less than according to the video flowing that the 4th rule is sent
Frequency flows.
The third aspect of the embodiment of the present invention provides a kind of wireless screen transmission device, comprising:
Receiving module, for receiving the video flowing of transmitting terminal transmission;
Decoder module obtains at least one screen of the first screen for decoding the received video flowing of the receiving module
Frame, first screen are the screen of the transmitting terminal;
Memory module, at least one screen frame by described in as frame buffer to be played to buffer area;
Contrast module, for comparing the quantity of buffer area frame to be played and the size of first threshold;
Playing module is broadcast if the quantity for buffer area frame to be played is less than or equal to first threshold according to the first rule
The frame to be played of the buffer area is put, if the quantity of buffer area frame to be played is greater than first threshold, plays institute according to Second Rule
It states the frame to be played of buffer area, in same time, the quantity of the frame to be played of the buffer area is played according to the Second Rule
Greater than the quantity played according to first rule.
The fourth aspect of the embodiment of the present invention provides a kind of wireless screen transmission device, comprising:
Interception module, for intercepting the screen frame of the first screen, first screen is the screen of transmitting terminal;
At least one screen frame of coding module, the first screen for intercepting interception module is encoded to video flowing;
Receiving module, for obtaining the quantity of receiving end buffer area frame to be played;
Contrast module, for the quantity of buffer area frame to be played and the size of the 4th threshold value;
Sending module is advised if the quantity for buffer area frame to be played is less than or equal to the 4th threshold value according to third
It then sends the video and flow to receiving end, if the quantity of buffer area frame to be played is greater than the 4th threshold value, according to the 4th rule
It sends the video and flow to receiving end, in same time, be less than according to the video flowing that the 4th rule is sent according to described the
The video flowing that three sigma rule is sent.
5th aspect of the embodiment of the present invention provides a kind of terminal device, comprising:
Memory, processor and storage are in the memory and the computer journey that can run on the processor
The step of sequence, the processor realizes method as described above when executing the computer program.
6th aspect of the embodiment of the present invention provides a kind of computer readable storage medium, comprising:
The computer-readable recording medium storage has computer program, real when the computer program is executed by processor
The step of existing method as described above.
Wireless screen transmission method and device provided by the invention receives the video flowing that transmitting terminal is sent, decoding by receiving end
The video flowing obtains at least one screen frame of the first screen, and first screen is the screen of the transmitting terminal, will be described
At least one screen frame as frame buffer to be played to buffer area, compare buffer area frame to be played quantity and first threshold it is big
It is small, if the quantity of buffer area frame to be played is less than or equal to first threshold, according to the first rule broadcasting buffer area wait broadcast
Frame is put, if the quantity of buffer area frame to be played is greater than first threshold, the frame to be played of the buffer area is played according to Second Rule,
In same time, it is greater than according to the quantity that the Second Rule plays the frame to be played of the buffer area according to first rule
The quantity of broadcasting accelerates the removing speed for removing receiving end buffer area frame to be played, and it is big to avoid the accumulation of receiving end buffer area
The frame to be played of amount solves wireless screen transmission technology in the prior art so as to shorten the broadcasting time difference of receiving end and transmitting terminal
Present in receiving end is asynchronous with transmitting terminal, the longer problem of broadcast time-delay.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is the implementation process schematic diagram for the wireless screen transmission method that the embodiment of the present invention one provides;
Fig. 2 is the implementation process schematic diagram of wireless screen transmission method provided by Embodiment 2 of the present invention;
Fig. 3 is the implementation process schematic diagram for the wireless screen transmission method that the embodiment of the present invention three provides;
Fig. 4 is the implementation process schematic diagram for the wireless screen transmission method that the embodiment of the present invention four provides;
Fig. 5 is the implementation process schematic diagram for the wireless screen transmission method that the embodiment of the present invention five provides;
Fig. 6 is the implementation process schematic diagram for the wireless screen transmission method that the embodiment of the present invention six provides;
Fig. 7 is the schematic diagram for the wireless screen transmission device that the embodiment of the present invention seven provides;
Fig. 8 is the schematic diagram for the wireless screen transmission device that the embodiment of the present invention eight provides;
Fig. 9 is the schematic diagram for the terminal device that the embodiment of the present invention nine provides.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific
The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
Fig. 1 is the implementation process schematic diagram for the wireless screen transmission method that the embodiment of the present invention one provides, as shown in Figure 1, this reality
The executing subject for applying example is receiving end, and the wireless screen transmission method of the embodiment includes:
Step 11 receives the video flowing that transmitting terminal is sent.The video flowing is the screen frame coding intercepted by transmitting terminal to it
It obtains.
Step 12, the decoding video flowing obtain at least one screen frame of the first screen, and first screen is described
The screen of transmitting terminal.
After receiving end receives video flowing, it is decoded operation to it, obtains the screen frame of transmitting terminal coding, transmitting terminal is compiled
The screen frame of code is at least one.To distinguish with receiving end screen, the screen of transmitting terminal is denoted as the first screen, by receiving end
Screen is denoted as the second screen.
Wherein, receiving end decoding operate is corresponding with the encoding operation of transmitting terminal.Optionally, encoding and decoding standard can be state
Border Electricity Federation H.261, H.262, H.263, H.264, can be the M-JPEG of motor rest motion picture expert group version, or international
The MPEG series standard of Motion Picture Experts Group of standardization body can also be other encoding and decoding standards, this is the prior art, this
Place repeats no more.According to the actual situation, selection can be not specifically limited with a kind of decoded standard, the present embodiment.
Step 13, at least one screen frame by described in are as frame buffer to be played to buffer area.
The screen frame that receiving end obtains decoding is as frame buffer to be played to buffer area.In the prior art, receiving end is pressed
According to the time order and function of buffer area frame buffer to be played, it is played out.Due to the interception of receiving end and transmitting terminal, coding screen
Frame, the operation such as transmission, decoded video streams is time-consuming so that the video playing of receiving end relative to transmitting terminal there are certain delay,
When delay reaches a certain level, cause receiving end to play with transmitting terminal asynchronous, reduces user and pass screen broadcasting experience effect.
And it is longer to be delayed, and causes the frame to be played of buffer area more, if buffer area reaches the upper limit, can not cache more screen frames again
When, the decoded screen frame in receiving end is dropped, and the video for causing the second screen of receiving end to play is discontinuous, further reduced use
Family passes screen and plays experience effect.
The size of step 14, the quantity for comparing buffer area frame to be played and first threshold.
If the quantity of step 15, buffer area frame to be played is less than or equal to first threshold, according to described in the first rule broadcasting
The frame to be played of buffer area;
If the quantity of buffer area frame to be played is greater than first threshold, the to be played of the buffer area is played according to Second Rule
Frame in same time, is greater than according to the quantity that the Second Rule plays the frame to be played of the buffer area according to described first
The quantity that rule plays.
The present embodiment is to solve the problems, such as that receiving end is nonsynchronous with transmitting terminal, reduces broadcast time-delay, caching is compared in receiving end
The quantity of area's frame to be played and the size of first threshold, the first threshold are preset value.If the quantity of buffer area frame to be played is small
In or be equal to first threshold, although the delay is unobvious there are broadcast time-delay, in the range of user can not discover, at this point,
The frame to be played of buffer area is played according to the first rule.If the quantity of buffer area frame to be played is greater than first threshold, playout-delay
It is more apparent, it has influenced user and has played experience effect, at this point, playing the frame to be played of buffer area according to Second Rule.When identical
In, the quantity played according to the first rule is greater than according to the quantity that Second Rule plays the frame to be played of buffer area, is accelerated
The removing speed for removing receiving end buffer area frame to be played avoids receiving end buffer area and accumulates a large amount of frame to be played, that is, subtracts
The frame to be played for having lacked buffer area caching reaches so that the quantity of buffer area frame to be played is less than or equal to first threshold again
Shorten receiving end and transmitting terminal plays the effect of the time difference, solves receiving end present in wireless screen transmission technology in the prior art
, broadcast time-delay longer problem asynchronous with transmitting terminal.
Wireless screen transmission method provided in this embodiment receives the video flowing that transmitting terminal is sent by receiving end, described in decoding
Video flowing obtains at least one screen frame of the first screen, and first screen is the screen of the transmitting terminal, by described at least
One screen frame compares the quantity of buffer area frame to be played and the size of first threshold as frame buffer to be played to buffer area,
If the quantity of buffer area frame to be played is less than or equal to first threshold, the to be played of the buffer area is played according to the first rule
Frame plays the frame to be played of the buffer area, phase according to Second Rule if the quantity of buffer area frame to be played is greater than first threshold
With in the time, it is greater than according to the quantity that the Second Rule plays the frame to be played of the buffer area and is broadcast according to first rule
The quantity put accelerates the removing speed for removing receiving end buffer area frame to be played, and it is a large amount of to avoid the accumulation of receiving end buffer area
Frame to be played solved in wireless screen transmission technology in the prior art so as to shorten the broadcasting time difference of receiving end and transmitting terminal
Existing receiving end is asynchronous with transmitting terminal, the longer problem of broadcast time-delay.
Fig. 2 is the implementation process schematic diagram of wireless screen transmission method provided by Embodiment 2 of the present invention, as shown in Fig. 2, this reality
The executing subject for applying example is receiving end, and the wireless screen transmission method of the embodiment includes:
The size of step 21, the quantity for comparing buffer area frame to be played and second threshold.
If step 22, the quantity of buffer area frame to be played are less than or equal to second threshold, receive what transmitting terminal was sent
All videos stream;
If the quantity of the buffer area frame to be played is greater than second threshold, the partial video stream that transmitting terminal is sent is received.
The step 21 and step 22 of the present embodiment are a kind of possible implementations of one step 11 of embodiment.Specifically,
Receiving end receive transmitting terminal send video flowing before, receiving end compare buffer area frame to be played quantity and second threshold it is big
Small, which is a preset value.If the quantity of buffer area frame to be played be less than or equal to second threshold, indicate caching to
Broadcasting frame is less, and the broadcasting time difference of receiving end and transmitting terminal is unobvious, at this point, receiving end receives all videos that transmitting terminal is sent
Stream.If the quantity of buffer area frame to be played be greater than second threshold, indicate caching frame to be played it is more, for avoid buffer area to
It plays number of frames to continue growing, under the premise of not changing frame removing speed to be played, receives the partial video that transmitting terminal is sent
Stream reduces the quantity for caching frame to be played, to reduce the number of buffer area frame to be played compared to all videos stream is received
Amount avoids buffer area and accumulates a large amount of frame to be played, solves receiving end present in wireless screen transmission technology in the prior art
, broadcast time-delay longer problem asynchronous with transmitting terminal.
Step 23, the decoding video flowing obtain at least one screen frame of the first screen, and first screen is described
The screen of transmitting terminal.
Step 24, at least one screen frame by described in are as frame buffer to be played to buffer area.
The size of step 25, the quantity for comparing buffer area frame to be played and first threshold.
If the quantity of step 26, buffer area frame to be played is less than or equal to first threshold, according to described in the first rule broadcasting
The frame to be played of buffer area;
If the quantity of buffer area frame to be played is greater than first threshold, the to be played of the buffer area is played according to Second Rule
Frame in same time, is greater than according to the quantity that the Second Rule plays the frame to be played of the buffer area according to described first
The quantity that rule plays.
The present embodiment step 23 to step 26 respectively corresponds the step 12 of embodiment one to step 15, one step of reference implementation example
Rapid 12 describe accordingly into step 15, and it is similar that the realization principle and technical effect are similar, and details are not described herein again.
Wireless screen transmission method provided in this embodiment, by comparing the quantity and second threshold of buffer area frame to be played
Size, if the quantity of buffer area frame to be played be less than or equal to second threshold, receive transmitting terminal send all videos
Stream receives the partial video stream that transmitting terminal is sent, avoids slow if the quantity of buffer area frame to be played is greater than second threshold
The number of frames to be played for depositing area continues growing, and under the premise of not changing frame removing speed to be played, receives what transmitting terminal was sent
Partial video stream reduces the quantity for caching frame to be played, waits broadcasting to reduce buffer area compared to all videos stream is received
The quantity for putting frame avoids buffer area and accumulates a large amount of frame to be played, solves and exist in wireless screen transmission technology in the prior art
Receiving end is asynchronous with transmitting terminal, the longer problem of broadcast time-delay.
Fig. 3 is the implementation process schematic diagram for the wireless screen transmission method that the embodiment of the present invention three provides, as shown in figure 3, this reality
The executing subject for applying example is receiving end, and the wireless screen transmission method of the embodiment includes:
The size of step 31, the quantity for comparing buffer area frame to be played and second threshold.
If step 32, the quantity of buffer area frame to be played are less than or equal to second threshold, receive what transmitting terminal was sent
All videos stream;
If the quantity of the buffer area frame to be played is greater than second threshold, the partial video stream that transmitting terminal is sent is received.It connects
Receive and dispatch the video flowing that sending end is sent.
Step 33, the decoding video flowing obtain at least one screen frame of the first screen, and first screen is described
The screen of transmitting terminal.
The present embodiment step 31 to step 33 respectively corresponds the step 21 of embodiment two to step 23, two step of reference implementation example
Rapid 21 describe accordingly into step 23, and it is similar that the realization principle and technical effect are similar, and details are not described herein again.
The size of step 34, the quantity of buffer area frame to be played and third threshold value.
It, will at least one described screen if step 35, the quantity of buffer area frame to be played are less than or equal to third threshold value
Whole screen frames of curtain frame are as frame buffer to be played to buffer area;
If the quantity of the buffer area frame to be played is greater than third threshold value, by the part of screen of at least one screen frame
Frame is as frame buffer to be played to buffer area.
The step 34 and step 35 of the present embodiment are that one kind of two step 24 of one step 13 of embodiment or embodiment is possible
Implementation.Specifically, may include: the reception using at least one described screen frame as frame buffer to be played to buffer area
Before end caches at least one screen frame to buffer area, compare the quantity of buffer area frame to be played and the size of third threshold value, this
Three threshold values are a preset value.If the quantity of buffer area frame to be played is less than or equal to third threshold value, the frame to be played of caching is indicated
Less, the broadcasting time difference of receiving end and transmitting terminal is unobvious, at this point, receiving end caches whole screen frames of at least one screen frame
For frame to be played.If the quantity of buffer area frame to be played is greater than third threshold value, indicate that the frame to be played of caching is more, to avoid delaying
The number of frames to be played for depositing area continues growing, and under the premise of not changing frame removing speed to be played, caches at least one screen
The part of screen frame of frame is frame to be played, is frame to be played compared to whole screen frames are cached, reduces caching frame to be played
Quantity avoids buffer area and accumulates a large amount of frame to be played, solve existing to reduce the quantity of buffer area frame to be played
Receiving end present in wireless screen transmission technology is asynchronous with transmitting terminal in technology, the longer problem of broadcast time-delay.
The size of step 36, the quantity for comparing buffer area frame to be played and first threshold.
If the quantity of step 37, buffer area frame to be played is less than or equal to first threshold, according to described in the first rule broadcasting
The frame to be played of buffer area;
If the quantity of buffer area frame to be played is greater than first threshold, the to be played of the buffer area is played according to Second Rule
Frame in same time, is greater than according to the quantity that the Second Rule plays the frame to be played of the buffer area according to described first
The quantity that rule plays.
The present embodiment step 36 and step 37 respectively correspond the step 14 and step 15 or corresponding embodiment two of embodiment one
Step 25 and step 26, retouched in one step 14 of reference implementation example and step 15 or two step 25 of embodiment and step 26 accordingly
It states, it is similar that the realization principle and technical effect are similar, and details are not described herein again.
Wireless screen transmission method provided in this embodiment, by comparing the quantity and third threshold value of buffer area frame to be played
Size, if the quantity of buffer area frame to be played be less than or equal to third threshold value, by the complete of at least one screen frame
Portion's screen frame is as frame buffer to be played to buffer area, if the quantity of buffer area frame to be played is greater than third threshold value, by institute
The part of screen frame of at least one screen frame is stated as frame buffer to be played to buffer area, avoids the frame number to be played of buffer area
Amount continues growing, and under the premise of not changing frame removing speed to be played, the part of screen frame for caching at least one screen frame is
Frame to be played is frame to be played compared to whole screen frames are cached, reduces the quantity for caching frame to be played, to reduce slow
The quantity for depositing area's frame to be played avoids buffer area and accumulates a large amount of frame to be played, solves wireless screen transmission skill in the prior art
Receiving end present in art is asynchronous with transmitting terminal, the longer problem of broadcast time-delay.
Fig. 4 is the implementation process schematic diagram for the wireless screen transmission method that the embodiment of the present invention four provides, as shown in figure 4, this reality
The executing subject for applying example is receiving end, and the wireless screen transmission method of the embodiment includes:
The size of step 41, the quantity for comparing buffer area frame to be played and second threshold.
If step 42, the quantity of buffer area frame to be played are less than or equal to second threshold, receive what transmitting terminal was sent
All videos stream;
If the quantity of the buffer area frame to be played is greater than second threshold, the partial video stream that transmitting terminal is sent is received.It connects
Receive and dispatch the video flowing that sending end is sent.
Step 43, the decoding video flowing obtain at least one screen frame of the first screen, and first screen is described
The screen of transmitting terminal.
The size of step 44, the quantity of buffer area frame to be played and third threshold value.
It, will at least one described screen if step 45, the quantity of buffer area frame to be played are less than or equal to third threshold value
Whole screen frames of curtain frame are as frame buffer to be played to buffer area;
If the quantity of the buffer area frame to be played is greater than third threshold value, by the part of screen of at least one screen frame
Frame is as frame buffer to be played to buffer area.
The size of step 46, the quantity for comparing buffer area frame to be played and first threshold.
The present embodiment step 41 to step 46 respectively corresponds the step 31 of embodiment three to step 36, three step of reference implementation example
Rapid 31 describe accordingly into step 36, and it is similar that the realization principle and technical effect are similar, and details are not described herein again.
If the quantity of step 47, buffer area frame to be played is less than or equal to first threshold, according to buffer area frame to be played
Sequence plays in order whole frames to be played in buffer area;
If the quantity of buffer area frame to be played is greater than first threshold, played according to the sequential selection of buffer area frame to be played slow
Area's inner part frame to be played is deposited, non-selected frame to be played in buffer area is abandoned.
The present embodiment step 47 is a kind of possible implementation of three step 37 of embodiment.If buffer area frame to be played
Quantity is less than or equal to first threshold, and the frame to be played of buffer area is played according to the first rule.Specifically, buffer area frame to be played
Quantity be less than or equal to first threshold, indicate caching frame to be played it is less, the broadcasting time difference of receiving end and transmitting terminal is unknown
It is aobvious, at this point it is possible to play in order in buffer area all frames to be played according to the sequence of buffer area frame to be played, i.e. the second screen with
First screen keeps being played simultaneously substantially.
If the quantity of buffer area frame to be played is greater than first threshold, the frame to be played of buffer area is played according to Second Rule,
Specifically, according to buffer area frame to be played sequential selection play buffer area inner part frame to be played, abandon buffer area in not by
The frame to be played of selection.The quantity of buffer area frame to be played is greater than first threshold, indicates that the frame to be played of caching is more, to avoid
The number of frames to be played of buffer area continues growing, and under the premise of not changing frame buffer speed to be played, accelerates frame to be played
Removing speed plays buffer area inner part frame to be played according to the sequential selection of buffer area frame to be played, abandons in buffer area not
The frame to be played selected avoids buffer area and accumulates a large amount of frame to be played to reduce the quantity of buffer area frame to be played,
Solve the problems, such as that receiving end present in wireless screen transmission technology in the prior art is asynchronous with transmitting terminal, broadcast time-delay is longer.
For example, frame to be played in buffer area is played every a frame, that is, a frame is repeated playing, a frame is abandoned, so that wait broadcast
The removing speed for putting frame is promoted to original twice, and caches that speed is constant, so as to reduce the number of buffer area frame to be played
Amount.And due to being played every a frame, the difference between frame and frame is smaller, and it is discontinuous that user will not discover video out, improves
User passes screen and plays experience effect.It is of course also possible to play two frames, a frame is abandoned, or play three frames, abandoning frame etc., other can
The interval of energy jumps as long as discontinuously abandoning multiframe and apparent video pictures would not occur.In practical application in buffer area to
The discarding interval for playing frame is set as the case may be, and the present embodiment does not limit.
Wireless screen transmission method provided in this embodiment passes through the quantity of receiving end buffer area frame to be played and the
The size of two threshold values receives the complete of transmitting terminal transmission if the quantity of buffer area frame to be played is less than or equal to second threshold
Portion's video flowing receives the partial video stream that transmitting terminal is sent if the quantity of buffer area frame to be played is greater than second threshold.It connects
The video flowing that sending end is sent is received and dispatched, the video flowing is decoded and obtains at least one screen frame of the first screen, first screen
For the screen of the transmitting terminal, the quantity of the buffer area frame to be played and the size of third threshold value, if the buffer area
The quantity of frame to be played is less than or equal to third threshold value, using whole screen frames of at least one screen frame as frame to be played
Caching is to buffer area, if the quantity of buffer area frame to be played is greater than third threshold value, by the portion of at least one screen frame
Sub-screen frame compares the quantity of buffer area frame to be played and the size of first threshold as frame buffer to be played to buffer area, if
The quantity of buffer area frame to be played is less than or equal to first threshold, plays in order buffer area according to the sequence of buffer area frame to be played
Interior whole frame to be played selects if the quantity of buffer area frame to be played is greater than first threshold according to the sequence of buffer area frame to be played
It selects and plays buffer area inner part frame to be played, abandon non-selected frame to be played in buffer area, it is slow to accelerate removing receiving end
The removing speed for depositing area's frame to be played avoids receiving end buffer area and accumulates a large amount of frame to be played, so as to shorten receiving end
With the broadcasting time difference of transmitting terminal, solve receiving end present in wireless screen transmission technology in the prior art it is asynchronous with transmitting terminal,
The longer problem of broadcast time-delay.
Fig. 5 is the implementation process schematic diagram for the wireless screen transmission method that the embodiment of the present invention five provides, as shown in figure 5, this reality
The executing subject for applying example is receiving end, and the wireless screen transmission method of the embodiment includes:
The size of step 51, the quantity for comparing buffer area frame to be played and second threshold.
If step 52, the quantity of buffer area frame to be played are less than or equal to second threshold, receive what transmitting terminal was sent
All videos stream;
If the quantity of the buffer area frame to be played is greater than second threshold, the partial video stream that transmitting terminal is sent is received.It connects
Receive and dispatch the video flowing that sending end is sent.
Step 53, the decoding video flowing obtain at least one screen frame of the first screen, and first screen is described
The screen of transmitting terminal.
The size of step 54, the quantity of buffer area frame to be played and third threshold value.
It, will at least one described screen if step 55, the quantity of buffer area frame to be played are less than or equal to third threshold value
Whole screen frames of curtain frame are as frame buffer to be played to buffer area;
If the quantity of the buffer area frame to be played is greater than third threshold value, by the part of screen of at least one screen frame
Frame is as frame buffer to be played to buffer area.
The size of step 56, the quantity for comparing buffer area frame to be played and first threshold.
The present embodiment step 51 to step 56 respectively corresponds the step 31 of embodiment three to step 36, three step of reference implementation example
Rapid 31 describe accordingly into step 36, and it is similar that the realization principle and technical effect are similar, and details are not described herein again.
If the quantity of step 57, buffer area frame to be played is less than or equal to first threshold, according to the screen of first screen
The broadcasting speed of curtain frame plays the frame to be played of buffer area;
If the quantity of buffer area frame to be played is greater than first threshold, according to the broadcasting for the screen frame for being greater than first screen
The frame to be played of speed broadcasting buffer area.
The present embodiment step 57 is the alternatively possible implementation of three step 37 of embodiment.If buffer area frame to be played
Quantity be less than or equal to first threshold, according to first rule play buffer area frame to be played.Specifically, buffer area is to be played
The quantity of frame is less than or equal to first threshold, indicates that the frame to be played of caching is less, the broadcasting time difference of receiving end and transmitting terminal is not
Obviously, at this point it is possible to play the frame to be played of buffer area, i.e. the second screen according to the broadcasting speed of the screen frame of first screen
Curtain keeps being played simultaneously substantially with the first screen.
If the quantity of buffer area frame to be played is greater than first threshold, the frame to be played of buffer area is played according to Second Rule,
Specifically, playing the frame to be played of buffer area according to the broadcasting speed for the screen frame for being greater than first screen.Buffer area waits broadcasting
The quantity for putting frame is greater than first threshold, indicates that the frame to be played of caching is more, to avoid the number of frames to be played of buffer area from continuing
Increase, under the premise of not changing frame buffer speed to be played, accelerate the broadcasting speed of frame to be played, according to greater than the first screen
Screen frame broadcasting speed play buffer area frame to be played avoided slow to reduce the quantity of buffer area frame to be played
It deposits area and accumulates a large amount of frame to be played, it is different from transmitting terminal to solve receiving end present in wireless screen transmission technology in the prior art
Step, the longer problem of broadcast time-delay.
For example, being accelerated the broadcasting speed of frame to be played by original 24 frame per second to 30 frame per second, buffer area is accelerated
The removing speed of frame to be played, and cache that speed is constant, so as to reduce the quantity of buffer area frame to be played.It improves to be played
The broadcasting speed of frame is similar to and quickly plays, and picture is continuous between frame and frame, therefore video pictures will not occurs and jump not connecting
Continuous situation.The frame number of broadcasting per second can be set as the case may be in practical application, and the present embodiment does not limit.
Wireless screen transmission method provided in this embodiment passes through the quantity of receiving end buffer area frame to be played and the
The size of two threshold values receives the complete of transmitting terminal transmission if the quantity of buffer area frame to be played is less than or equal to second threshold
Portion's video flowing receives the partial video stream that transmitting terminal is sent if the quantity of buffer area frame to be played is greater than second threshold.It connects
The video flowing that sending end is sent is received and dispatched, the video flowing is decoded and obtains at least one screen frame of the first screen, first screen
For the screen of the transmitting terminal, the quantity of the buffer area frame to be played and the size of third threshold value, if the buffer area
The quantity of frame to be played is less than or equal to third threshold value, using whole screen frames of at least one screen frame as frame to be played
Caching is to buffer area, if the quantity of buffer area frame to be played is greater than third threshold value, by the portion of at least one screen frame
Sub-screen frame compares the quantity of buffer area frame to be played and the size of first threshold as frame buffer to be played to buffer area, if
The quantity of buffer area frame to be played is less than or equal to first threshold, plays according to the broadcasting speed of the screen frame of first screen
The frame to be played of buffer area, if the quantity of buffer area frame to be played is greater than first threshold, according to the screen for being greater than first screen
The broadcasting speed of curtain frame plays the frame to be played of buffer area, accelerates the removing speed for removing receiving end buffer area frame to be played,
It avoids receiving end buffer area and accumulates a large amount of frame to be played, so as to shorten the broadcasting time difference of receiving end and transmitting terminal, solve
Receiving end present in wireless screen transmission technology is asynchronous with transmitting terminal in the prior art, broadcast time-delay longer problem.
Fig. 6 is the implementation process schematic diagram for the wireless screen transmission method that the embodiment of the present invention six provides, as shown in fig. 6, this reality
The executing subject for applying example is transmitting terminal, and the wireless screen transmission method of the embodiment includes:
Step 61, the screen frame for intercepting the first screen, first screen are the screen of transmitting terminal.
Transmitting terminal obtains screen frame by the first screen of certain frequency interception transmitting terminal.
At least one screen frame for the first screen that step 62, coding intercept is video flowing.
Screen frame is encoded in transmitting terminal, forms video flowing, sends after video flows to receiving end and is decoded, it can be with
Greatly reduce transmission quantity, accelerate the transmission of screen frame, reduces wireless screen transmission delay.
Optionally, encoding and decoding standard can for International Telecommunication Association H.261, H.262, H.263, H.264, can for move it is quiet
The only M-JPEG of motion picture expert group version, or the MPEG series standard of Motion Picture Experts Group of International Organization for standardization may be used also
Think other encoding and decoding standards, this is the prior art, and details are not described herein again.According to the actual situation, the one kind that can be encoded is chosen
Standard, the present embodiment are not specifically limited.
Step 63, the quantity for obtaining receiving end buffer area frame to be played.
The size of step 64, the quantity of buffer area frame to be played and the 4th threshold value.
Transmitting terminal to receiving end send video flowing before, obtain receiving end buffer area frame to be played quantity, according to
Play frame quantity, determine send video flowing number.If the quantity of receiving end buffer area frame to be played is greater than the 4th
Threshold value indicates that the frame to be played of caching is more, to avoid the number of frames to be played of receiving end buffer area from continuing growing, is not changing
Under the premise of frame removing speed to be played, the quantity for caching frame to be played is reduced, reduction receiving end buffer area may be implemented and wait broadcasting
Put the quantity of frame.
If step 65, the quantity of buffer area frame to be played are less than or equal to the 4th threshold value, sent according to third rule
The video flow to receiving end;
If the quantity of the buffer area frame to be played is greater than the 4th threshold value, it flow to and connects according to the 4th rule transmission video
Receiving end in same time, is less than the video flowing sent according to the third rule according to the video flowing that the 4th rule is sent.
A kind of possible implementation for reducing the quantity that receiving end caches frame to be played is to reduce the hair of transmitting terminal video flowing
It send, even the quantity of buffer area frame to be played is less than or equal to the 4th threshold value, and video, which is sent, according to third rule flow to receiving end,
If the quantity of buffer area frame to be played is greater than the 4th threshold value, video is sent according to the 4th rule and flow to receiving end, in same time,
It is less than the video flowing sent according to third rule according to the video flowing that the 4th rule is sent, reduces receiving end caching to realize
The quantity of area's frame to be played avoids receiving end buffer area and accumulates a large amount of frame to be played, solves wireless biography in the prior art
Receiving end present in screen technology is asynchronous with transmitting terminal, the longer problem of broadcast time-delay.
Wireless screen transmission method provided in this embodiment, by the screen frame of the first screen of transmission end intercepts, first screen
Curtain is the screen of transmitting terminal, at least one screen frame for encoding the first screen of interception is video flowing, obtains receiving end buffer area
The quantity of frame to be played, the quantity of the buffer area frame to be played and the size of the 4th threshold value, if the buffer area waits broadcasting
The quantity for putting frame is less than or equal to the 4th threshold value, sends the video according to third rule and flow to receiving end, if the buffer area
The quantity of frame to be played is greater than the 4th threshold value, sends the video according to the 4th rule and flow to receiving end, in same time, according to
The video flowing that 4th rule is sent is less than the video flowing sent according to the third rule, reduces receiving end buffer area
Number of frames to be played caches speed, under the premise of not changing frame removing speed to be played, sends video by reducing transmitting terminal
The amount of stream realizes the quantity for reducing and caching frame to be played, to reduce buffer area to reduce the received video flowing in receiving end
The quantity of frame to be played avoids buffer area and accumulates a large amount of frame to be played, solves in wireless screen transmission technology in the prior art
Existing receiving end is asynchronous with transmitting terminal, the longer problem of broadcast time-delay.
Fig. 7 is the schematic diagram for the wireless screen transmission device that the embodiment of the present invention seven provides, as shown in fig. 7, the nothing of the present embodiment
Line passes screen device
Receiving module 71, for receiving the video flowing of transmitting terminal transmission;
Decoder module 72 obtains at least one of the first screen for decoding the received video flowing of the receiving module 71
Screen frame, first screen are the screen of the transmitting terminal;
Memory module 73, at least one screen frame by described in as frame buffer to be played to buffer area;
Contrast module 74, for comparing the quantity of buffer area frame to be played and the size of first threshold;
Playing module 75, if the quantity for buffer area frame to be played is less than or equal to first threshold, according to the first rule
The frame to be played of the buffer area is played, if the quantity of buffer area frame to be played is greater than first threshold, is played according to Second Rule
In same time, the number of the frame to be played of the buffer area is played according to the Second Rule for the frame to be played of the buffer area
Amount is greater than the quantity played according to first rule.
Wireless screen transmission device provided in this embodiment, for realizing wireless screen transmission method described in embodiment one, wherein respectively
The function of a module can be referred to and be described accordingly in embodiment of the method, and it is similar that the realization principle and technical effect are similar, herein no longer
It repeats.
Fig. 8 is the schematic diagram for the wireless screen transmission device that the embodiment of the present invention eight provides;As shown in figure 8, the nothing of the present embodiment
Line passes screen device
Interception module 81, for intercepting the screen frame of the first screen, first screen is the screen of transmitting terminal;
At least one screen frame of coding module 82, the first screen for intercepting interception module 81 is encoded to video
Stream;
Module 83 is obtained, for obtaining the quantity of receiving end buffer area frame to be played;
Contrast module 84, for the quantity of buffer area frame to be played and the size of the 4th threshold value;
Sending module 85, if the quantity for buffer area frame to be played is less than or equal to the 4th threshold value, according to third
Rule sends the video and flow to receiving end, if the quantity of buffer area frame to be played is greater than the 4th threshold value, according to the 4th rule
It then sends the video and flow to receiving end, in same time, be less than according to the video flowing that the 4th rule is sent according to described
The video flowing that third rule is sent.
Wireless screen transmission device provided in this embodiment, for realizing wireless screen transmission method described in embodiment six, wherein respectively
The function of a module can be referred to and be described accordingly in embodiment of the method, and it is similar that the realization principle and technical effect are similar, herein no longer
It repeats.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit
It is fixed.
Fig. 9 is the schematic diagram for the terminal device that the embodiment of the present invention nine provides.As shown in figure 9, the terminal of the embodiment is set
Standby 9 include: processor 90, memory 91 and are stored in the meter that can be run in the memory 91 and on the processor 90
Calculation machine program 92, such as wireless screen transmission program.The processor 90 realizes above-mentioned each nothing when executing the computer program 92
Step in line screen transmission method embodiment, such as step 11 shown in FIG. 1 is to 15.Alternatively, the processor 90 executes the meter
The function of each module in above-mentioned each Installation practice, such as the function of module 71 to 75 shown in Fig. 7 are realized when calculation machine program 92.
Illustratively, the computer program 92 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 91, and are executed by the processor 90, to complete the present invention.Described one
A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for
Implementation procedure of the computer program 92 in the wireless screen transmission device 9 is described.For example, the computer program 92 can be with
It is divided into receiving module, decoder module, memory module, contrast module, playing module (unit module in virtual bench), respectively
Module concrete function is as follows:
Receiving module, for receiving the video flowing of transmitting terminal transmission;
Decoder module obtains at least one screen of the first screen for decoding the received video flowing of the receiving module
Frame, first screen are the screen of the transmitting terminal;
Memory module, at least one screen frame by described in as frame buffer to be played to buffer area;
Contrast module, for comparing the quantity of buffer area frame to be played and the size of first threshold;
Playing module is broadcast if the quantity for buffer area frame to be played is less than or equal to first threshold according to the first rule
The frame to be played of the buffer area is put, if the quantity of buffer area frame to be played is greater than first threshold, plays institute according to Second Rule
It states the frame to be played of buffer area, in same time, the quantity of the frame to be played of the buffer area is played according to the Second Rule
Greater than the quantity played according to first rule.
The wireless screen transmission device 9 can be mobile phone, television set, desktop PC, notebook, palm PC etc. and set
It is standby.The wireless screen transmission device 9 may include, but be not limited only to, processor 90, memory 91.Those skilled in the art can manage
Solution, Fig. 9 is only the example of wireless screen transmission device 9, does not constitute the restriction to wireless screen transmission device 9, may include than diagram
More or fewer components, perhaps combine certain components or different components, such as the wireless screen transmission device 9 can be with
Including input-output equipment, network access equipment, bus etc..
Alleged processor 90 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
The memory 91 can be the internal storage unit of the wireless screen transmission device 9, such as wireless screen transmission device 9
Hard disk or memory.The memory 91 is also possible to the External memory equipment of the wireless screen transmission device 9, such as the wireless biography
The plug-in type hard disk being equipped on screen device 9, intelligent memory card (Smart Media Card, SMC), secure digital (Secure
Digital, SD) card, flash card (Flash Card) etc..Further, the memory 91 can also both include described wireless
The internal storage unit for passing screen device 9 also includes External memory equipment.The memory 91 is for storing the computer program
And other programs and data needed for the wireless screen transmission device 9.The memory 91 can be also used for temporarily storing
Data through exporting or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing
The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also
To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list
Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system
The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method, it can be with
It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute
The division of module or unit is stated, only a kind of logical function partition, there may be another division manner in actual implementation, such as
Multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately
A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, device
Or the INDIRECT COUPLING or communication connection of unit, it can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, each functional module in each embodiment of the present invention can integrate in one processing unit
It is that modules physically exist alone, can also be integrated in one unit with two or more modules.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation
All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on
The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation
Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium
It may include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic that can carry the computer program code
Dish, CD, computer storage, read-only memory (Read-Only Memory, ROM), random access memory (Random
Access Memory, RAM), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that the meter
The content that calculation machine readable medium includes can carry out increase and decrease appropriate according to the requirement made laws in jurisdiction with patent practice,
It such as does not include electric carrier signal and telecommunications according to legislation and patent practice, computer-readable medium in certain jurisdictions
Signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality
Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.
Claims (10)
1. a kind of wireless screen transmission method characterized by comprising
The video flowing that transmitting terminal is sent is received, the video flowing is decoded and obtains at least one screen frame of the first screen, described the
One screen is the screen of the transmitting terminal;
By at least one described screen frame as frame buffer to be played to buffer area;
Compare the quantity of buffer area frame to be played and the size of first threshold;
If the quantity of buffer area frame to be played is less than or equal to first threshold, according to the first rule broadcasting buffer area wait broadcast
Frame is put, if the quantity of buffer area frame to be played is greater than first threshold, the frame to be played of the buffer area is played according to Second Rule,
In same time, it is greater than according to the quantity that the Second Rule plays the frame to be played of the buffer area according to first rule
The quantity of broadcasting.
2. the method as described in claim 1, which is characterized in that the video flowing for receiving transmitting terminal and sending, comprising:
Compare the quantity of buffer area frame to be played and the size of second threshold;
If the quantity of the buffer area frame to be played is less than or equal to second threshold, all videos stream that transmitting terminal is sent is received;
If the quantity of the buffer area frame to be played is greater than second threshold, the partial video stream that transmitting terminal is sent is received.
3. method according to claim 2, which is characterized in that described to delay using at least one described screen frame as frame to be played
It deposits to buffer area, comprising:
Compare the quantity of buffer area frame to be played and the size of third threshold value;
If the quantity of the buffer area frame to be played is less than or equal to third threshold value, the whole of at least one screen frame is shielded
Curtain frame is as frame buffer to be played to buffer area;
If the quantity of the buffer area frame to be played is greater than third threshold value, the part of screen frame of at least one screen frame is made
For frame buffer to be played to buffer area.
4. the method according to claim 1, which is characterized in that if the quantity of buffer area frame to be played is less than
Or it is equal to first threshold, the frame to be played of the buffer area is played according to the first rule, if the quantity of buffer area frame to be played is big
In first threshold, the frame to be played of the buffer area is played according to Second Rule, is specifically included:
If the quantity of buffer area frame to be played is less than or equal to first threshold, playd in order according to the sequence of buffer area frame to be played
Whole frames to be played in buffer area;
If the quantity of buffer area frame to be played is greater than first threshold, buffer area is played according to the sequential selection of buffer area frame to be played
Inner part frame to be played abandons non-selected frame to be played in buffer area.
5. the method according to claim 1, which is characterized in that if the quantity of buffer area frame to be played is less than
Or it is equal to first threshold, the frame to be played of the buffer area is played according to the first rule, if the quantity of buffer area frame to be played is big
In first threshold, the frame to be played of the buffer area is played according to Second Rule, is specifically included:
If the quantity of buffer area frame to be played is less than or equal to first threshold, according to the broadcasting speed of the screen frame of first screen
Degree plays the frame to be played of buffer area;
If the quantity of buffer area frame to be played is greater than first threshold, according to the broadcasting speed for the screen frame for being greater than first screen
Play the frame to be played of buffer area.
6. a kind of wireless screen transmission method characterized by comprising
The screen frame of the first screen is intercepted, first screen is the screen of transmitting terminal;
At least one screen frame for encoding the first screen of interception is video flowing;
Obtain the quantity of receiving end buffer area frame to be played;
Compare the quantity of buffer area frame to be played and the size of the 4th threshold value;
If the quantity of the buffer area frame to be played is less than or equal to the 4th threshold value, the video is sent according to third rule and is flow to
Receiving end flow to according to the 4th rule transmission video and connects if the quantity of buffer area frame to be played is greater than the 4th threshold value
Receiving end in same time, is less than the video flowing sent according to the third rule according to the video flowing that the 4th rule is sent.
7. a kind of wireless screen transmission device characterized by comprising
Receiving module, for receiving the video flowing of transmitting terminal transmission;
Decoder module obtains at least one screen frame of the first screen, institute for decoding the received video flowing of the receiving module
State the screen that the first screen is the transmitting terminal;
Memory module, at least one screen frame by described in as frame buffer to be played to buffer area;
Contrast module, for comparing the quantity of buffer area frame to be played and the size of first threshold;
Playing module plays institute according to the first rule if the quantity for buffer area frame to be played is less than or equal to first threshold
The frame to be played of buffer area is stated, if the quantity of buffer area frame to be played is greater than first threshold, is played according to Second Rule described slow
It deposits the frame to be played in area, in same time, is greater than according to the quantity that the Second Rule plays the frame to be played of the buffer area
The quantity played according to first rule.
8. a kind of wireless screen transmission device characterized by comprising
Interception module, for intercepting the screen frame of the first screen, first screen is the screen of transmitting terminal;
At least one screen frame of coding module, the first screen for intercepting interception module is encoded to video flowing;
Module is obtained, for obtaining the quantity of receiving end buffer area frame to be played;
Contrast module, for the quantity of buffer area frame to be played and the size of the 4th threshold value;
Sending module is sent out if the quantity for buffer area frame to be played is less than or equal to the 4th threshold value according to third rule
It send the video to flow to receiving end, if the quantity of buffer area frame to be played is greater than the 4th threshold value, is sent according to the 4th rule
The video flow to receiving end, in same time, is less than according to the video flowing that the 4th rule is sent and advises according to the third
The video flowing then sent.
9. a kind of terminal device, including memory, processor and storage are in the memory and can be on the processor
The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 5 when executing the computer program
The step of any one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In when the computer program is executed by processor the step of any one of such as claim 1 to 5 of realization the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810822074.1A CN109144445A (en) | 2018-07-24 | 2018-07-24 | Wireless screen transmission method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810822074.1A CN109144445A (en) | 2018-07-24 | 2018-07-24 | Wireless screen transmission method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109144445A true CN109144445A (en) | 2019-01-04 |
Family
ID=64797732
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810822074.1A Pending CN109144445A (en) | 2018-07-24 | 2018-07-24 | Wireless screen transmission method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109144445A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110519633A (en) * | 2019-08-02 | 2019-11-29 | 广州视源电子科技股份有限公司 | Wireless screen transmission method, apparatus, system and intelligent interaction plate |
CN112055231A (en) * | 2020-08-31 | 2020-12-08 | 浙江大华技术股份有限公司 | Video decoding method, decoding device, decoder and electronic equipment |
CN112104907A (en) * | 2019-06-17 | 2020-12-18 | 西安光启未来技术研究院 | Picture playing method and playing device |
CN112154665A (en) * | 2019-09-05 | 2020-12-29 | 深圳市大疆创新科技有限公司 | Video display method, receiving end, system and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101577672A (en) * | 2008-05-07 | 2009-11-11 | ***通信集团公司 | Method, system and devices for transmitting data in streaming media service |
US8285886B1 (en) * | 2010-08-30 | 2012-10-09 | Adobe Systems Incorporated | Live media playback adaptive buffer control |
CN103248939A (en) * | 2012-02-03 | 2013-08-14 | 海尔集团公司 | Method and system for achieving synchronous display of multiple screens |
CN104363411A (en) * | 2014-10-20 | 2015-02-18 | 福建星网锐捷安防科技有限公司 | Video playing method and video playing device in video monitoring system |
CN105049955A (en) * | 2015-07-02 | 2015-11-11 | 浙江工商大学 | Real-time screen transferring method and system |
CN107205160A (en) * | 2017-06-27 | 2017-09-26 | 青岛海信电器股份有限公司 | A kind of player method and device of the video issued for server |
-
2018
- 2018-07-24 CN CN201810822074.1A patent/CN109144445A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101577672A (en) * | 2008-05-07 | 2009-11-11 | ***通信集团公司 | Method, system and devices for transmitting data in streaming media service |
US8285886B1 (en) * | 2010-08-30 | 2012-10-09 | Adobe Systems Incorporated | Live media playback adaptive buffer control |
CN103248939A (en) * | 2012-02-03 | 2013-08-14 | 海尔集团公司 | Method and system for achieving synchronous display of multiple screens |
CN104363411A (en) * | 2014-10-20 | 2015-02-18 | 福建星网锐捷安防科技有限公司 | Video playing method and video playing device in video monitoring system |
CN105049955A (en) * | 2015-07-02 | 2015-11-11 | 浙江工商大学 | Real-time screen transferring method and system |
CN107205160A (en) * | 2017-06-27 | 2017-09-26 | 青岛海信电器股份有限公司 | A kind of player method and device of the video issued for server |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112104907A (en) * | 2019-06-17 | 2020-12-18 | 西安光启未来技术研究院 | Picture playing method and playing device |
CN112104907B (en) * | 2019-06-17 | 2024-02-23 | 西安光启智能技术有限公司 | Picture playing method and device |
CN110519633A (en) * | 2019-08-02 | 2019-11-29 | 广州视源电子科技股份有限公司 | Wireless screen transmission method, apparatus, system and intelligent interaction plate |
CN110519633B (en) * | 2019-08-02 | 2021-10-15 | 广州视源电子科技股份有限公司 | Wireless screen transmission method, device and system and intelligent interactive panel |
CN112154665A (en) * | 2019-09-05 | 2020-12-29 | 深圳市大疆创新科技有限公司 | Video display method, receiving end, system and storage medium |
WO2021042341A1 (en) * | 2019-09-05 | 2021-03-11 | 深圳市大疆创新科技有限公司 | Video display method, receiving end, system and storage medium |
CN112055231A (en) * | 2020-08-31 | 2020-12-08 | 浙江大华技术股份有限公司 | Video decoding method, decoding device, decoder and electronic equipment |
CN112055231B (en) * | 2020-08-31 | 2021-10-15 | 浙江大华技术股份有限公司 | Video decoding method, decoding device, decoder and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109144445A (en) | Wireless screen transmission method and device | |
CN112087633B (en) | Video decoding method, device and storage medium | |
CN107948578B (en) | The method of adjustment and adjustment device of video conferencing system transmission bandwidth and resolution ratio | |
CN104159150B (en) | Cloud terminal, Cloud Server, media data flow play system and method | |
CN106063165A (en) | Method of transmitting a timed transport stream from a receiver device to a peripheral device | |
CN109660879A (en) | Frame losing method, system, computer equipment and storage medium is broadcast live | |
CN106817613B (en) | Method and device for playing audio and video contents | |
CN107277505B (en) | AVS-2 video decoder device based on software and hardware partition | |
CN109168083A (en) | A kind of Streaming Media real time playing method and device | |
CN109862357A (en) | Cloud game image encoding method, device, equipment and the storage medium of low latency | |
CN109587511A (en) | More equipment net cast methods, equipment, system and storage medium | |
CN106791850A (en) | Method for video coding and device | |
CN111327921A (en) | Video data processing method and device | |
CN110324632A (en) | A kind of data processing and verification method based on OpenMP multi-core parallel concurrent mechanism | |
CN113691812B (en) | Hongmon system-based distributed video processing method, terminal and readable medium | |
CN108200470A (en) | A kind of video code rate method of adjustment and equipment | |
CN105812914B (en) | A kind of the mixed multiplex coding/decoding method and device of video | |
JP2002542549A (en) | Apparatus and method for processing high-speed streaming media in a computer | |
CN109151571A (en) | The method that DST PLAYER in DTV based on GStreamer frame promotes image quality | |
CN106791870B (en) | A kind of method for video coding, video encoding/decoding method and relevant device | |
CN105611427B (en) | The control method for playing back and device of audio-video | |
CN115460458B (en) | Video frame loss method and device | |
CN112995543B (en) | Distributed video switching system, method and equipment | |
CN104363487A (en) | STB (set top box) with function of automatic channel selection on startup | |
CN112887742B (en) | Live stream processing method, device, equipment and storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190104 |
|
RJ01 | Rejection of invention patent application after publication |