CN115134641A - Screen projection method and device and electronic equipment - Google Patents
Screen projection method and device and electronic equipment Download PDFInfo
- Publication number
- CN115134641A CN115134641A CN202210790943.3A CN202210790943A CN115134641A CN 115134641 A CN115134641 A CN 115134641A CN 202210790943 A CN202210790943 A CN 202210790943A CN 115134641 A CN115134641 A CN 115134641A
- Authority
- CN
- China
- Prior art keywords
- display terminal
- video
- video stream
- mobile terminal
- terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000004590 computer program Methods 0.000 claims description 11
- 238000005266 casting Methods 0.000 claims description 4
- 230000005540 biological transmission Effects 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 9
- 230000008569 process Effects 0.000 description 7
- 238000012545 processing Methods 0.000 description 7
- 238000004891 communication Methods 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 6
- 239000013307 optical fiber Substances 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000001737 promoting effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/4104—Peripherals receiving signals from specially adapted client devices
- H04N21/4122—Peripherals receiving signals from specially adapted client devices additional display device, e.g. video projector
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/436—Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
- H04N21/4363—Adapting the video stream to a specific local network, e.g. a Bluetooth® network
- H04N21/43637—Adapting the video stream to a specific local network, e.g. a Bluetooth® network involving a wireless protocol, e.g. Bluetooth, RF or wireless LAN [IEEE 802.11]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/643—Communication protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/54—Details of telephonic subscriber devices including functional features of a projector or beamer module assembly
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the disclosure discloses a screen projection method and device and electronic equipment. One embodiment of the method comprises: sending a video stream to a display terminal so that the display terminal plays the received video stream based on a video format and a first video parameter negotiated with the mobile terminal; determining whether the video stream played by the display terminal meets a smooth playing target; and if the video stream played by the display terminal does not meet the smooth playing target, negotiating a second video parameter with the display terminal so that the display terminal continues to play the received video stream based on the video format and the second video parameter. Therefore, in a scene that the mobile terminal puts the video stream to the display terminal based on the preset screen-throwing protocol, when the video stream played by the display terminal is not smooth, the video parameters of the video stream played by the display terminal can be automatically switched, so that the video stream can be smoothly played by the display terminal.
Description
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to a screen projection method, a screen projection device and electronic equipment.
Background
In daily work and life, it is sometimes necessary to screen content displayed by the terminal a to the terminal B so that the content displayed by the terminal a is presented through the terminal B.
In some scenarios, terminal a may establish a screen-casting connection with terminal B in advance, and then cast the relevant content on terminal B.
Disclosure of Invention
This disclosure is provided to introduce concepts in a simplified form that are further described below in the detailed description. This disclosure is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
The embodiment of the disclosure provides a screen projection method, a screen projection device and electronic equipment.
In a first aspect, an embodiment of the present disclosure provides a screen projection method, including: sending a video stream to a display terminal so that the display terminal plays the received video stream based on a video format and a first video parameter negotiated with the mobile terminal; determining whether the video stream played by the display terminal meets a smooth playing target; and if the video stream played by the display terminal does not meet the smooth playing target, negotiating a second video parameter with the display terminal so that the display terminal continues to play the received video stream based on the video format and the second video parameter.
In a second aspect, embodiments of the present disclosure provide a screen projection apparatus, including: the first sending unit is used for sending the video stream to the display terminal so that the display terminal plays the received video stream based on the video format negotiated with the mobile terminal and the first video parameter; the device comprises a determining unit, a judging unit and a display unit, wherein the determining unit is used for determining whether the video stream played by the display terminal meets a smooth playing target; and the first negotiation unit is used for negotiating a second video parameter with the display terminal if the video stream played by the display terminal does not meet the smooth playing target so as to enable the display terminal to continue playing the received video stream based on the video format and the second video parameter.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including: one or more processors; a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the screen projection method as described in the first aspect.
In a fourth aspect, an embodiment of the present disclosure provides a computer-readable medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of the screen projection method according to the first aspect.
According to the screen projecting method, the screen projecting device and the electronic equipment, the mobile terminal can project the video stream on the display terminal based on the preset screen projecting protocol, and the display terminal can play the video stream projected by the mobile terminal based on the video format and the first video parameter negotiated with the mobile terminal. In the process of playing the video stream by the display terminal, the mobile terminal can determine whether the video stream played by the display terminal meets the smooth playing target. If the video stream played by the display terminal does not meet the smooth playing target, the mobile terminal can negotiate a second video parameter with the display terminal, so that the display terminal can continue to play the video stream released by the mobile terminal based on the video format and the second video parameter.
Therefore, in a scene that the mobile terminal puts the video stream to the display terminal based on the preset screen-throwing protocol, when the video stream played by the display terminal is not smooth, the video parameters of the video stream played by the display terminal can be automatically switched, so that the video stream can be smoothly played by the display terminal. On one hand, the working pressure of the display terminal caused by playing the video stream released by the mobile terminal can be reduced. On the other hand, the user experience of watching the video stream released by the mobile terminal through the display terminal can be improved.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and components are not necessarily drawn to scale.
FIG. 1 is a flow chart of one embodiment of a screen projection method of the present disclosure;
FIG. 2 is a flow diagram of a screen projection method of the present disclosure in one embodiment to determine whether a video stream played by a display terminal meets a smooth play objective;
FIG. 3 is a flow diagram of a screen projection method of the present disclosure negotiating second video parameters with a display terminal in one embodiment;
FIG. 4 is a schematic structural diagram of one embodiment of a screen projection device of the present disclosure;
FIG. 5 is an exemplary system architecture to which the screen projection method of the present disclosure may be applied in one embodiment;
fig. 6 is a schematic diagram of a basic structure of an electronic device provided by an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more complete and thorough understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Referring to fig. 1, a flow of one embodiment of a screen projection method of the present disclosure is shown. The screen projection method is applied to the mobile terminal, wherein the mobile terminal and the display terminal establish screen projection connection based on a preset screen projection protocol.
The preset screen projection protocol may be a protocol for enabling one terminal to project a screen on another terminal. Optionally, the preset screen projection protocol may be Miracast protocol.
As shown in fig. 1, the screen projection method includes the following steps:
If the mobile terminal and the display terminal establish the screen projection connection based on the preset screen projection protocol, the mobile terminal and the display terminal can negotiate the video format and the video parameters required by the video stream playing. Specifically, after establishing a screen-casting connection with the display terminal, the mobile terminal may negotiate a video format and first video parameters with the display terminal.
The above-mentioned video format is a video format supported by the display terminal. The video parameters may include various parameters negotiated by the mobile terminal and the display terminal for playing the video stream.
In some scenarios, the mobile terminal may encode the video stream using the video format described above and then transmit the encoded video stream to the display terminal. Further, the display terminal may decode the received video stream, and then play the decoded video stream based on the first video parameter.
In some scenarios, the mobile terminal may send a screen capture instruction to the display terminal to cause the display terminal to capture at least one image while the video stream is being played. Further, the mobile terminal can determine whether the video stream played by the display terminal is jammed by analyzing the at least one image. If the display terminal plays the video stream, the mobile terminal can determine that the display terminal plays the video stream and does not meet the smooth playing target.
And 103, if the video stream played by the display terminal does not meet the smooth playing target, negotiating a second video parameter with the display terminal so that the display terminal continues to play the received video stream based on the video format and the second video parameter.
In some scenarios, after negotiating the second video parameter with the display terminal, the mobile terminal may encode the video stream using the video format described above, and then send the encoded video stream to the display terminal. Further, the display terminal may decode the received video stream, and then play the decoded video stream based on the second video parameter.
The second video parameter is ranked lower than the first video parameter. Therefore, the display terminal plays the video stream based on the second video parameter, and the smooth playing target can be usually satisfied.
In this embodiment, the mobile terminal may launch a video stream on the display terminal based on a preset screen launching protocol. The display terminal may play the video stream delivered by the mobile terminal based on the video format and the first video parameter negotiated with the mobile terminal. In the process of playing the video stream by the display terminal, the mobile terminal can determine whether the video stream played by the display terminal meets the smooth playing target. If the video stream played by the display terminal does not meet the smooth playing target, the mobile terminal can negotiate a second video parameter with the display terminal, so that the display terminal can continue to play the video stream released by the mobile terminal based on the video format and the second video parameter.
Therefore, in a scene that the mobile terminal puts the video stream to the display terminal based on the preset screen-throwing protocol, when the video stream played by the display terminal is not smooth, the video parameters of the video stream played by the display terminal can be automatically switched, so that the video stream can be smoothly played by the display terminal. On one hand, the working pressure of the display terminal caused by playing the video stream released by the mobile terminal can be reduced. On the other hand, the user experience of watching the video stream released by the mobile terminal through the display terminal can be improved.
In some embodiments, the mobile terminal negotiates the video format and the first video parameters with the display terminal in the following manner.
The first step is to send a video format negotiation request to the display terminal, so that the display terminal returns a first negotiation result containing the video format supported by the display terminal.
In some scenarios, the display terminal may select a video format that it supports and then return a first negotiation result containing the video format to the mobile terminal.
And secondly, acquiring the video format negotiated with the display terminal from the first negotiation result.
It can be understood that the video format included in the first negotiation result is a video format negotiated between the mobile terminal and the display terminal.
And thirdly, sending a video parameter negotiation request to the display terminal so that the display terminal returns a second negotiation result containing the selected first video parameters.
In some scenarios, the display terminal may select the highest-ranking video parameter as the first video parameter, and then return a second negotiation result including the first video parameter to the mobile terminal.
And fourthly, acquiring the first video parameter negotiated with the display equipment from the second negotiation result.
It can be understood that the video parameters included in the second negotiation result are the first video parameters negotiated by the mobile terminal and the display terminal.
Therefore, in a scene that the mobile terminal puts the video stream to the display terminal based on the preset screen-throwing protocol, the mobile terminal can actively negotiate a video format and a first video parameter suitable for playing the video stream with the display terminal, and therefore smooth completion of putting the video stream to the display terminal by the mobile terminal can be guaranteed.
In some embodiments, the video parameters include a video frame rate negotiated by the mobile terminal and the display terminal. The video frame rate may be the number of video frames displayed per second by the display terminal. Here, the first video parameter and the second video parameter may each include a video frame rate negotiated by the mobile terminal and the display terminal.
Here, it may be determined whether the smooth play target is satisfied by the display terminal playing the video stream by performing the steps in the flow shown in fig. 2. The process includes the following steps.
In some scenarios, the mobile terminal may send a fetch instruction to the display terminal. The display terminal may then return the current video frame rate and the current network delay to the mobile terminal.
In practice, the video frame rate of playing the video stream by the display terminal may be reduced under the influence of the network, the performance of the display terminal, and other factors.
The preset percentage (e.g., 20%) and the network delay threshold (e.g., 100ms) may be set according to actual requirements, and are not particularly limited herein.
In step 203, if the current video frame rate is less than or equal to a preset percentage of the video frame rate included in the first video parameter, and/or the current network delay is greater than or equal to a network delay threshold, it is determined that the video stream played by the display terminal does not meet the smooth playing target.
In practice, the current video frame rate is low, and/or the current network delay is large, which may cause the video stream played by the display terminal to be unsmooth.
Therefore, whether the video stream delivered by the mobile terminal is smoothly played by the display terminal can be accurately judged by analyzing whether the current video frame rate of the display terminal is low and/or whether the current network delay of the display terminal is large.
In some embodiments, the second video parameters may be negotiated with the display terminal by performing the steps of the flow illustrated in fig. 3. The process includes the following steps.
The renegotiation instruction may be an instruction to renegotiate video parameters with the display terminal.
Optionally, the video parameters include a video frame rate and a video picture size negotiated by the mobile terminal and the display terminal. Wherein the video picture size may be a picture size when the video stream is played. Here, the first video parameter and the second video parameter may each include a video frame rate and a video screen size negotiated by the mobile terminal and the display terminal.
In some fields, after receiving a renegotiation instruction sent by the mobile terminal, the display terminal may select a video frame rate and a video picture size that are one level lower, and then return a third negotiation result including the video frame rate and the video picture size to the mobile terminal.
It is to be understood that the lower level video frame rate may be a smaller video frame rate and the lower level video picture size may be a smaller video picture size. In practice, playing a video stream at a lower video frame rate by one level and a video frame size can reduce the working pressure of the display terminal due to the playing of the video stream, thereby promoting smooth playing of the video stream.
Therefore, when the video stream played by the display terminal is not smooth, the mobile terminal can initiate a process of renegotiating the video parameters to the display terminal, so as to negotiate a second video parameter lower by one level with the display terminal.
In some embodiments, the mobile terminal may also perform the following steps prior to negotiating the second video parameters with the display terminal.
Specifically, a pause screen-casting instruction is sent to the display terminal to inform the display terminal to pause sending of the video stream.
After negotiating the second video parameters with the display terminal, the mobile terminal may further perform the following steps.
Specifically, the video stream is resumed to be transmitted to the display terminal.
Therefore, when the video stream played by the display terminal is not smooth, the mobile terminal can firstly inform the display terminal to pause sending the video stream (namely pause screen projection), and then negotiate a second video parameter with the display terminal. After negotiating the second video parameters, the mobile terminal may resume sending the video stream to the display terminal (i.e., resume screen projection). Therefore, the screen can be projected to the display terminal smoothly by the mobile terminal.
In some embodiments, after receiving the screen pause instruction sent by the mobile terminal, the display terminal may perform the following steps.
And the first step, continuing to play the video stream which has received the video stream sent by the mobile terminal until the last video frame sent by the mobile terminal is received.
And secondly, the last video frame is played until the mobile terminal resumes sending the video stream.
It can be seen that during the pause of the screen projection, the display terminal can always play the last video frame sent by the mobile terminal before the pause of the screen projection. Therefore, the condition that the display terminal is in a black screen during the screen pause can be avoided.
With further reference to fig. 4, as an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a screen projection apparatus, which corresponds to the method embodiment shown in fig. 1, and which is applied to a mobile terminal. The mobile terminal and the display terminal establish screen projection connection based on a preset screen projection protocol.
As shown in fig. 4, the screen projection apparatus of the present embodiment includes a first transmission unit 401, a determination unit 402, and a first negotiation unit 403. The first sending unit 401 is configured to send a video stream to the display terminal, so that the display terminal plays the received video stream based on the video format and the first video parameter negotiated with the mobile terminal; a determining unit 402, configured to determine whether a video stream played by the display terminal meets a smooth playing target; the first negotiation unit 403 is configured to negotiate a second video parameter with the display terminal if the video stream played by the display terminal does not meet the smooth playing target, so that the display terminal continues to play the received video stream based on the video format and the second video parameter.
In this embodiment, for specific processing of the first sending unit 401, the determining unit 402, and the first negotiating unit 403 of the screen projection apparatus and technical effects brought by the processing, reference may be made to relevant descriptions of step 101, step 102, and step 103 in the corresponding embodiment of fig. 1, and details are not repeated here.
In some embodiments, the video parameters include a video frame rate negotiated by the mobile terminal and the display terminal; the determining unit 402 is further configured to: acquiring a current video frame rate and a current network delay of a display terminal; determining whether the current video frame rate is less than or equal to a preset percentage of the video frame rate included in the first video parameter, and determining whether the current network delay is greater than or equal to a network delay threshold; and if the current video frame rate is less than or equal to the preset percentage of the video frame rate included in the first video parameter and/or the current network delay is greater than or equal to the network delay threshold value, determining that the video stream played by the display terminal does not meet the smooth playing target.
In some embodiments, the first negotiation unit 403 is further configured to: sending a renegotiation instruction to the display terminal so that the display terminal selects a second video parameter which is lower than the first video parameter by one grade, and returning a third negotiation result containing the second video parameter to the mobile terminal; and acquiring a second video parameter negotiated with the display terminal from the third negotiation result.
In some embodiments, the video parameters include a video frame rate and a video picture size negotiated by the mobile terminal and the display terminal.
In some embodiments, the screen projection device may further include a second transmitting unit (not shown) and a third transmitting unit (not shown). The second sending unit is used for sending a screen pause screen projection instruction to the display terminal before negotiating with the display terminal for the second video parameter so as to inform the display terminal to pause sending the video stream; and a third sending unit, configured to resume sending the video stream to the display terminal after negotiating the second video parameter with the display terminal.
In some embodiments, after the display terminal receives the screen pause instruction, the following steps are executed: continuing to play the video stream which is received and sent by the mobile terminal until the last video frame sent by the mobile terminal is received; and the last video frame is played until the mobile terminal resumes sending the video stream.
In some embodiments, the screen projection device may further include a second negotiation unit (not shown in the figure). The second negotiation unit is used for sending a video format negotiation request to the display terminal so that the display terminal returns a first negotiation result containing the video format supported by the display terminal; acquiring a video format negotiated with the display terminal from the first negotiation result; sending a video parameter negotiation request to the display terminal so that the display terminal returns a second negotiation result containing the selected first video parameter; and acquiring the first video parameter negotiated with the display equipment from the second negotiation result.
With further reference to fig. 5, fig. 5 illustrates an exemplary system architecture to which the screen projection method of the present disclosure may be applied in one embodiment.
As shown in fig. 5, the system architecture may include a mobile terminal 501 and a display terminal 502. The mobile terminal 501 and the display terminal 502 establish a screen-projecting connection based on a preset screen-projecting protocol.
The mobile terminal 501 may store the video locally or install video playing software. In some scenarios, the mobile terminal 501 may send locally stored videos or videos obtained from video playing software to the display terminal 502, so as to project the videos to the display terminal 502.
In some scenarios, the mobile terminal 501 may send a video stream to the display terminal 502, and the display terminal 502 may play the received video stream based on the video format and the first video parameter negotiated with the mobile terminal 501. The mobile terminal 501 may determine whether the display terminal 502 plays the video stream to meet the smooth play target. If the video stream played by the display terminal 502 does not satisfy the smooth playing target, the mobile terminal 501 may negotiate a second video parameter with the display terminal 502, and the display terminal 502 may continue to play the received video stream based on the video format and the second video parameter.
The mobile terminal 501 may be hardware or software. When the mobile terminal 501 is hardware, it may include, but is not limited to, an electronic device such as a smart phone, a tablet computer, and the like. When the mobile terminal 501 is software, it may be installed in the electronic device listed above, and may be implemented as multiple pieces of software or software modules, or may be implemented as a single piece of software or software modules, and is not limited herein.
The display terminal 502 may be hardware or software. When the display terminal 502 is hardware, it may include, but is not limited to, an electronic device such as a digital TV, a desktop computer, and the like. When the display terminal 502 is software, it can be installed in the electronic devices listed above, and can be implemented as a plurality of software or software modules, or can be implemented as a single software or software module, which is not limited herein.
The screen projection method provided by the embodiment of the present disclosure may be executed by the mobile terminal 501, and accordingly, a screen projection apparatus may be provided in the mobile terminal 501.
It should be noted that the number of terminals shown in fig. 5 is merely illustrative. There may be any number of display terminals, as desired for implementation.
Referring now to fig. 6, therein is shown a schematic structural diagram of an electronic device (e.g., the mobile terminal of fig. 5) of an embodiment of the present disclosure. The electronic device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, the electronic device may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 601, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, magnetic tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates an electronic device having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided, and that more or fewer means may be alternatively implemented or provided.
In particular, the processes described above with reference to the flow diagrams may be implemented as computer software programs, according to embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium described in the embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In embodiments of the present disclosure, however, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be included in the electronic device or may exist separately without being incorporated in the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: sending a video stream to a display terminal so that the display terminal plays the received video stream based on a video format and a first video parameter negotiated with the mobile terminal; determining whether the video stream played by the display terminal meets a smooth playing target; and if the video stream played by the display terminal does not meet the smooth playing target, negotiating a second video parameter with the display terminal so that the display terminal continues to play the received video stream based on the video format and the second video parameter.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software, and may also be implemented by hardware. Here, the names of these units do not constitute a limitation to the unit itself in some cases, and for example, the determination unit may also be described as a unit that determines whether or not the display terminal plays the video stream to satisfy the smooth play target.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure in the embodiments of the present disclosure is not limited to the particular combination of the above-described features, but also encompasses other embodiments in which any combination of the above-described features or their equivalents is possible without departing from the scope of the present disclosure. For example, the above features and the technical features disclosed in the present disclosure (but not limited to) having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
Claims (10)
1. A screen projection method is applied to a mobile terminal, the mobile terminal and a display terminal establish screen projection connection based on a preset screen projection protocol, and the method comprises the following steps:
sending a video stream to the display terminal so that the display terminal plays the received video stream based on the video format and the first video parameter negotiated with the mobile terminal;
determining whether the video stream played by the display terminal meets a smooth playing target;
and if the video stream played by the display terminal does not meet the smooth playing target, negotiating a second video parameter with the display terminal so that the display terminal continues to play the received video stream based on the video format and the second video parameter.
2. The method of claim 1, wherein video parameters comprise a video frame rate negotiated by the mobile terminal and the display terminal; and
the determining whether the video stream played by the display terminal meets a smooth playing target includes:
acquiring the current video frame rate and the current network delay of the display terminal;
determining whether the current video frame rate is less than or equal to a preset percentage of the video frame rate included in the first video parameter, and determining whether the current network delay is greater than or equal to a network delay threshold;
and if the current video frame rate is less than or equal to a preset percentage of the video frame rate included in the first video parameter, and/or the current network delay is greater than or equal to the network delay threshold value, determining that the video stream played by the display terminal does not meet the smooth playing target.
3. The method of claim 1, wherein negotiating second video parameters with the display terminal comprises:
sending a renegotiation instruction to the display terminal so that the display terminal selects a second video parameter which is lower than the first video parameter by one grade, and returning a third negotiation result containing the second video parameter to the mobile terminal;
and acquiring the second video parameter negotiated with the display terminal from the third negotiation result.
4. The method of claim 3, wherein the video parameters comprise a video frame rate and a video picture size negotiated by the mobile terminal and the display terminal.
5. The method of claim 1, wherein prior to said negotiating second video parameters with said display terminal, said method further comprises:
sending a screen pause projection instruction to the display terminal to inform the display terminal to pause sending of the video stream; and
after the negotiating with the display terminal of the second video parameters, the method further comprises:
and resuming the transmission of the video stream to the display terminal.
6. The method according to claim 5, wherein after the display terminal receives the pause screen-casting instruction, the following steps are executed:
continuing to play the received video stream sent by the mobile terminal until the last video frame sent by the mobile terminal is received;
and the last video frame is always played before the mobile terminal resumes sending the video stream.
7. The method according to any of claims 1-6, wherein prior to said sending a video stream to said display terminal, said method further comprises:
sending a video format negotiation request to the display terminal so that the display terminal returns a first negotiation result containing a video format supported by the display terminal;
acquiring a video format negotiated with the display terminal from the first negotiation result;
sending a video parameter negotiation request to the display terminal so that the display terminal returns a second negotiation result containing the selected first video parameter;
and acquiring the first video parameter negotiated with the display equipment from the second negotiation result.
8. The utility model provides a throw screen device, is applied to mobile terminal, mobile terminal and display terminal throw the screen connection based on predetermineeing to throw the screen agreement and establish, the device includes:
a first sending unit, configured to send a video stream to the display terminal, so that the display terminal plays the received video stream based on a video format and a first video parameter negotiated with the mobile terminal;
the determining unit is used for determining whether the video stream played by the display terminal meets a smooth playing target;
and the first negotiation unit is used for negotiating a second video parameter with the display terminal if the video stream played by the display terminal does not meet the smooth playing target so as to enable the display terminal to continue playing the received video stream based on the video format and the second video parameter.
9. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method recited in any of claims 1-7.
10. A computer-readable medium, on which a computer program is stored, wherein the computer program, when being executed by a processor, carries out the method according to any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210790943.3A CN115134641B (en) | 2022-07-05 | 2022-07-05 | Screen projection method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210790943.3A CN115134641B (en) | 2022-07-05 | 2022-07-05 | Screen projection method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115134641A true CN115134641A (en) | 2022-09-30 |
CN115134641B CN115134641B (en) | 2023-10-27 |
Family
ID=83382188
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210790943.3A Active CN115134641B (en) | 2022-07-05 | 2022-07-05 | Screen projection method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115134641B (en) |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060023729A1 (en) * | 2004-07-30 | 2006-02-02 | Samsung Electronics Co., Ltd. | Apparatus and method for adaptively controlling buffering amount according to content attribute in receiving audio-video data |
WO2013112087A1 (en) * | 2012-01-27 | 2013-08-01 | Telefonaktiebolaget Lm Ericsson (Publ) | Methods and apparatuses for resuming paused media |
CN106454389A (en) * | 2016-10-10 | 2017-02-22 | 广州酷狗计算机科技有限公司 | Live video playing method and device |
CN108184166A (en) * | 2017-12-26 | 2018-06-19 | 桂林远望智能通信科技有限公司 | A kind of video quality analysis method and system |
CN111417006A (en) * | 2020-04-28 | 2020-07-14 | 广州酷狗计算机科技有限公司 | Video screen projection method, device, terminal and storage medium |
CN112346692A (en) * | 2020-11-09 | 2021-02-09 | 深圳康佳电子科技有限公司 | Screen projection data processing method and device and storage medium |
CN112492395A (en) * | 2020-11-30 | 2021-03-12 | 维沃移动通信有限公司 | Data processing method and device and electronic equipment |
CN113407142A (en) * | 2021-07-13 | 2021-09-17 | 海信视像科技股份有限公司 | Display device and screen projection method |
CN113507638A (en) * | 2021-07-07 | 2021-10-15 | 海信视像科技股份有限公司 | Display device and screen projection method |
CN113873195A (en) * | 2021-08-18 | 2021-12-31 | 荣耀终端有限公司 | Video conference control method, device and storage medium |
WO2022001027A1 (en) * | 2020-07-02 | 2022-01-06 | 深圳市鹰硕技术有限公司 | Projection screen picture self-adaption method and apparatus in network teaching |
CN113992967A (en) * | 2021-10-25 | 2022-01-28 | 北京字节跳动网络技术有限公司 | Screen projection data transmission method and device, electronic equipment and storage medium |
CN114501122A (en) * | 2022-01-30 | 2022-05-13 | 深圳创维-Rgb电子有限公司 | Screen projection method and device for audio data, storage medium and screen projector |
WO2022135291A1 (en) * | 2020-12-24 | 2022-06-30 | 维沃移动通信有限公司 | Video call processing method and apparatus, and electronic device |
-
2022
- 2022-07-05 CN CN202210790943.3A patent/CN115134641B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060023729A1 (en) * | 2004-07-30 | 2006-02-02 | Samsung Electronics Co., Ltd. | Apparatus and method for adaptively controlling buffering amount according to content attribute in receiving audio-video data |
WO2013112087A1 (en) * | 2012-01-27 | 2013-08-01 | Telefonaktiebolaget Lm Ericsson (Publ) | Methods and apparatuses for resuming paused media |
CN106454389A (en) * | 2016-10-10 | 2017-02-22 | 广州酷狗计算机科技有限公司 | Live video playing method and device |
CN108184166A (en) * | 2017-12-26 | 2018-06-19 | 桂林远望智能通信科技有限公司 | A kind of video quality analysis method and system |
CN111417006A (en) * | 2020-04-28 | 2020-07-14 | 广州酷狗计算机科技有限公司 | Video screen projection method, device, terminal and storage medium |
WO2022001027A1 (en) * | 2020-07-02 | 2022-01-06 | 深圳市鹰硕技术有限公司 | Projection screen picture self-adaption method and apparatus in network teaching |
CN112346692A (en) * | 2020-11-09 | 2021-02-09 | 深圳康佳电子科技有限公司 | Screen projection data processing method and device and storage medium |
CN112492395A (en) * | 2020-11-30 | 2021-03-12 | 维沃移动通信有限公司 | Data processing method and device and electronic equipment |
WO2022135291A1 (en) * | 2020-12-24 | 2022-06-30 | 维沃移动通信有限公司 | Video call processing method and apparatus, and electronic device |
CN113507638A (en) * | 2021-07-07 | 2021-10-15 | 海信视像科技股份有限公司 | Display device and screen projection method |
CN113407142A (en) * | 2021-07-13 | 2021-09-17 | 海信视像科技股份有限公司 | Display device and screen projection method |
CN113873195A (en) * | 2021-08-18 | 2021-12-31 | 荣耀终端有限公司 | Video conference control method, device and storage medium |
CN113992967A (en) * | 2021-10-25 | 2022-01-28 | 北京字节跳动网络技术有限公司 | Screen projection data transmission method and device, electronic equipment and storage medium |
CN114501122A (en) * | 2022-01-30 | 2022-05-13 | 深圳创维-Rgb电子有限公司 | Screen projection method and device for audio data, storage medium and screen projector |
Non-Patent Citations (1)
Title |
---|
叶锋;傅燕云;陈林芳;钟晓君;邓衍晨;: "基于多协议融合的实时移动视频监控系统", 计算机系统应用, no. 04 * |
Also Published As
Publication number | Publication date |
---|---|
CN115134641B (en) | 2023-10-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108965907B (en) | Method, device and system for playing video | |
CN110166791B (en) | Connection establishing method, device, equipment and storage medium | |
CN113992967B (en) | Screen projection data transmission method and device, electronic equipment and storage medium | |
CN112954354B (en) | Video transcoding method, device, equipment and medium | |
CN112019914B (en) | Screen projection method and device, electronic equipment and computer readable medium | |
CN110519645B (en) | Video content playing method and device, electronic equipment and computer readable medium | |
CN110290398B (en) | Video issuing method and device, storage medium and electronic equipment | |
CN111711784B (en) | Conference control method and device, readable medium and electronic equipment | |
CN110806846A (en) | Screen sharing method, screen sharing device, mobile terminal and storage medium | |
CN115767181A (en) | Live video stream rendering method, device, equipment, storage medium and product | |
KR102445154B1 (en) | data transfer | |
CN115037986B (en) | Video self-adaptive playing method and device | |
CN113542856B (en) | Method, device, equipment and computer readable medium for reverse playing of online video | |
CN112261349B (en) | Image processing method and device and electronic equipment | |
CN111478916B (en) | Data transmission method, device and storage medium based on video stream | |
CN113259729B (en) | Data switching method, server, system and storage medium | |
WO2023226757A1 (en) | Video caching method and apparatus, device and storage medium | |
CN112929240A (en) | Method, device, terminal and non-transitory storage medium for acquiring communication delay time | |
CN113965779A (en) | Cloud game data transmission method, device and system and electronic equipment | |
CN115134641B (en) | Screen projection method and device and electronic equipment | |
CN112887742B (en) | Live stream processing method, device, equipment and storage medium | |
CN113115074B (en) | Video jamming processing method and device | |
CN112203039A (en) | Processing method and device for online conference, electronic equipment and computer storage medium | |
CN113727183B (en) | Live push method, apparatus, device, storage medium and computer program product | |
CN112995780B (en) | Network state evaluation 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |