CN115134641B - Screen projection method and device and electronic equipment - Google Patents

Screen projection method and device and electronic equipment Download PDF

Info

Publication number
CN115134641B
CN115134641B CN202210790943.3A CN202210790943A CN115134641B CN 115134641 B CN115134641 B CN 115134641B CN 202210790943 A CN202210790943 A CN 202210790943A CN 115134641 B CN115134641 B CN 115134641B
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.)
Active
Application number
CN202210790943.3A
Other languages
Chinese (zh)
Other versions
CN115134641A (en
Inventor
字东清
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202210790943.3A priority Critical patent/CN115134641B/en
Publication of CN115134641A publication Critical patent/CN115134641A/en
Application granted granted Critical
Publication of CN115134641B publication Critical patent/CN115134641B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4122Peripherals receiving signals from specially adapted client devices additional display device, e.g. video projector
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4363Adapting the video stream to a specific local network, e.g. a Bluetooth® network
    • H04N21/43637Adapting 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network 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/63Control 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/643Communication protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/54Details 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 invention discloses a screen projection method, a screen projection device and electronic equipment. One embodiment of the method comprises the following steps: transmitting 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; 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 into the display terminal based on a preset screen-throwing protocol, when the display terminal plays the video stream unsmoothly, the video parameters of the display terminal playing the video stream can be automatically switched, so that the display terminal can play the video stream smoothly.

Description

Screen projection method and device and electronic equipment
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 the 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 pre-establish a screen-cast connection with terminal B, and screen-cast related content on terminal B.
Disclosure of Invention
This disclosure is provided in part 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 throwing method, a screen throwing device and electronic equipment, wherein in a scene that a mobile terminal throws video streams to a display terminal based on a preset screen throwing protocol, when the display terminal plays the video streams unsmoothly, video parameters of the display terminal playing the video streams can be automatically switched, so that the smooth playing of the video streams by the display terminal is realized.
In a first aspect, embodiments of the present disclosure provide a screen projection method, including: transmitting 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; 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 device, the device comprising: the mobile terminal comprises a first sending unit, a second sending unit and a second sending unit, wherein the first sending unit is used for sending 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 the 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 that the display terminal can continuously play the received video stream based on the video format and the second video parameter.
In a third aspect, embodiments of the present disclosure provide an electronic device, comprising: one or more processors; and a storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the method of screening as described in the first aspect.
In a fourth aspect, embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein the computer program when executed by a processor implements the steps of the method of screening according to the first aspect.
According to the screen projection method, the screen projection device and the electronic equipment, the mobile terminal can project the video stream on the display terminal based on the preset screen projection protocol, and the display terminal can play the video stream projected by the mobile terminal based on the video format and the first video parameters 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 and the display terminal can negotiate a second video parameter, so that the display terminal can continue to play the video stream launched by the mobile terminal based on the video format and the second video parameter.
Therefore, in the scene that the mobile terminal delivers the video stream to the display terminal based on the preset screen-throwing protocol, when the display terminal plays the video stream unsmoothly, the video parameters of the display terminal playing the video stream can be automatically switched, so that the display terminal can smoothly play the video stream. On the one hand, the working pressure of the display terminal caused by playing the video stream put in by the mobile terminal can be reduced. On the other hand, the user experience of watching the video stream put in by the mobile terminal through the display terminal can be improved.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures 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 chart of a screen projection method of the present disclosure in one embodiment for determining whether a smooth play target is met by a video stream played by a display terminal;
FIG. 3 is a flow chart of a screen shot method of the present disclosure negotiating a second video parameter with a display terminal in one embodiment;
FIG. 4 is a schematic structural view of one embodiment of a screen projection device of the present disclosure;
FIG. 5 is an exemplary system architecture in which the screen casting 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 have been shown in the accompanying drawings, it is to 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 are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, 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 "including" and variations thereof as used herein are intended to be 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. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
Referring to fig. 1, a flow of one embodiment of the 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-casting protocol may be a protocol for implementing a screen casting of one terminal on another terminal. Alternatively, the preset screen-drop protocol may be the Miracast protocol.
As shown in fig. 1, the screen projection method comprises the following steps:
step 101, sending a video stream to a 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.
If the mobile terminal and the display terminal establish screen projection connection based on a preset screen projection protocol, the mobile terminal and the display terminal can negotiate video formats and video parameters required by playing the video stream. Specifically, after establishing a screen-cast connection with the display terminal, the mobile terminal may negotiate a video format and a first video parameter with the display terminal.
The video format is a video format supported by the display terminal. The video parameters may include various parameters negotiated by the mobile terminal with 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.
Step 102, determining whether the video stream played by the display terminal meets the smooth playing target.
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 when the video stream is played. Further, the mobile terminal can determine whether the video stream played by the display terminal is blocked or not by analyzing the at least one image. If the video stream played by the display terminal is blocked, the mobile terminal can determine that the video stream played by the display terminal does not meet the smooth playing target.
Step 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 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 second video parameter.
The second video parameter is rated 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 generally satisfied.
In this embodiment, the mobile terminal may put in a video stream on the display terminal based on a preset screen-casting protocol. The display terminal may play the video stream delivered by the mobile terminal based on the video format negotiated with the mobile terminal and the first video parameter. 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 and the display terminal can negotiate a second video parameter, so that the display terminal can continue to play the video stream launched by the mobile terminal based on the video format and the second video parameter.
Therefore, in the scene that the mobile terminal delivers the video stream to the display terminal based on the preset screen-throwing protocol, when the display terminal plays the video stream unsmoothly, the video parameters of the display terminal playing the video stream can be automatically switched, so that the display terminal can smoothly play the video stream. On the one hand, the working pressure of the display terminal caused by playing the video stream put in by the mobile terminal can be reduced. On the other hand, the user experience of watching the video stream put in 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.
And 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 formats supported by the display terminal.
In some scenarios, the display terminal may select one of the video formats it supports and then return a first negotiation result containing that video format to the mobile terminal.
And secondly, acquiring a 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 the video format negotiated by 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 first video parameters selected by the display terminal.
In some scenarios, the display terminal may select the highest level of video parameters as the first video parameters and then return a second negotiation result containing the first video parameters to the mobile terminal.
And step four, acquiring the first video parameters negotiated with the display device 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 the scene that the mobile terminal puts the video stream into the display terminal based on the preset screen-throwing protocol, the mobile terminal can actively negotiate with the display terminal about the video format and the first video parameter suitable for playing the video stream, and accordingly smooth completion of the video stream put into 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 with the display terminal. Wherein 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 with the display terminal.
Here, it may be determined whether the display terminal plays the video stream satisfying the smooth play target by performing the steps in the flow shown in fig. 2. The process includes the following steps.
Step 201, obtaining a current video frame rate and a current network delay of a display terminal.
In some scenarios, the mobile terminal may send an acquisition 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.
Step 202, 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.
In practice, the video frame rate at which the display terminal plays the video stream may be degraded, due to factors such as the network, the performance of the display terminal, and the like.
The preset percentage (e.g., 20%) and the network delay threshold (e.g., 100 ms) may be set according to actual requirements, and are not particularly limited herein.
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 smooth playing target is not satisfied by the video stream played by the display terminal.
In practice, the current video frame rate is low, and/or the current network delay is large, which may cause that the display terminal plays the video stream unsmoothly.
Therefore, whether the display terminal smoothly plays the video stream put in by the mobile terminal can be accurately judged by analyzing whether the current video frame rate of the display terminal is lower and/or whether the current network delay of the display terminal is larger.
In some embodiments, the second video parameters may be negotiated with the display terminal by performing steps in the flow shown in fig. 3. The process includes the following steps.
Step 301, sending a renegotiation instruction to the display terminal, so that the display terminal selects a second video parameter lower by one level than the first video parameter, and returning a third negotiation result including the second video parameter to the mobile terminal.
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 with 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 picture size negotiated by the mobile terminal with the display terminal.
In some fields, after receiving the renegotiation instruction sent by the mobile terminal, the display terminal may select a video frame rate and a video frame size that are one level lower, and then return a third negotiation result including the video frame rate and the video frame size to the mobile terminal.
It will be appreciated that the video frame rate one level lower may be a smaller video frame rate and the video picture size one level lower may be a smaller video picture size. In practice, the video stream is played at a video frame rate and a video picture size one level lower, so that the working pressure of the display terminal caused by playing the video stream can be reduced, and smooth playing of the video stream can be promoted.
Step 302, obtaining the second video parameter negotiated with the display terminal from the third negotiation result.
Therefore, when the display terminal plays the video stream unsmoothly, the mobile terminal can initiate a process of renegotiating the video parameters to the display terminal, so that the mobile terminal can renegotiate the second video parameters with one level lower than the second video parameters with the display terminal.
In some embodiments, the mobile terminal may also perform the following steps before negotiating the second video parameters with the display terminal.
Specifically, a pause screen-throwing instruction is sent to the display terminal so as to inform the display terminal to pause sending the video stream.
After negotiating the second video parameters with the display terminal, the mobile terminal may further perform the following steps.
Specifically, the transmission of the video stream to the display terminal is resumed.
Thus, when the display terminal plays the video stream unsmoothly, the mobile terminal can inform the display terminal to pause sending the video stream (i.e. pause screen throwing) and then negotiate the 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 dropping the screen). Therefore, the smooth screen throwing of the mobile terminal to the display terminal can be ensured.
In some embodiments, after receiving the pause screen-throwing instruction sent by the mobile terminal, the display terminal may execute the following steps.
And the first step, continuing to play the video stream which is received and sent by the mobile terminal until the last video frame which is received and sent by the mobile terminal is played.
And secondly, playing the last video frame until the mobile terminal resumes sending the video stream.
It follows that during the pause of the screen shot, the display terminal can always play the last video frame transmitted by the mobile terminal before the pause of the screen shot. Therefore, the condition that the display terminal is in black screen during the suspension of screen throwing can be avoided.
With further reference to fig. 4, as an implementation of the method shown in the foregoing figures, the present disclosure provides an embodiment of a screen projection device, where the embodiment of the device corresponds to the embodiment of the method shown in fig. 1, and the device 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 device of the present embodiment includes a first transmitting unit 401, a determining unit 402, and a first negotiating 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 the 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 playing the received video stream based on the video format and the second video parameter.
In this embodiment, the specific processing and the technical effects brought by the specific processing of the first sending unit 401, the determining unit 402, and the first negotiating unit 403 of the screen projection device may refer to the relevant descriptions of step 101, step 102, and step 103 in the corresponding embodiment of fig. 1, which are not described herein again.
In some embodiments, the video parameters include a video frame rate negotiated by the mobile terminal with the display terminal; the determining unit 402 is further configured to: acquiring the current video frame rate and the current network delay of a display terminal; determining whether the current video frame rate is smaller 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 larger than or equal to a network delay threshold value; and if the current video frame rate is smaller 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 larger than or equal to a 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 to: sending a renegotiation instruction to the display terminal so that the display terminal selects a second video parameter which is one level lower than the first video parameter, 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 with the display terminal.
In some embodiments, the above-mentioned screen projection device may further include a second sending unit (not shown in the figure) and a third sending unit (not shown in the figure). The second sending unit is used for sending a pause screen-throwing instruction to the display terminal before negotiating a second video parameter with the display terminal so as to inform the display terminal to pause sending the video stream; and the third sending unit is used for restoring to send the video stream to the display terminal after negotiating the second video parameters with the display terminal.
In some embodiments, after receiving the pause screen-throwing instruction, the display terminal performs the following steps: continuing to play the video stream which is received and sent by the mobile terminal until the last video frame which is received and sent by the mobile terminal is played; and playing the last video frame until the mobile terminal resumes sending the video stream.
In some embodiments, the above-mentioned 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 a 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 first video parameter selected by the display terminal; and acquiring the first video parameters negotiated with the display device from the second negotiation result.
With further reference to fig. 5, fig. 5 illustrates an exemplary system architecture in 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-projection connection based on a preset screen-projection protocol.
The mobile terminal 501 may store video locally or may install video playback class software. In some scenarios, mobile terminal 501 may send locally stored videos or videos acquired from video playback class software to display terminal 502, thereby dropping the videos to 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 parameters negotiated with the mobile terminal 501. The mobile terminal 501 may determine whether the display terminal 502 plays the video stream satisfying the smooth play target. If the video stream played by the display terminal 502 does not meet the smooth playing goal, the mobile terminal 501 may negotiate with the display terminal 502 about a second video parameter, and the display terminal 502 may continue playing 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, tablet computer, etc. When the mobile terminal 501 is software, it may be installed in the above-listed electronic device, and may be implemented as a plurality of software or software modules, or may be implemented as a single software or software module, which is not particularly 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, a digital TV, a desktop computer, and the like. When the display terminal 502 is software, it may be installed in the above-listed electronic device, and may be implemented as a plurality of software or software modules, or may be implemented as a single software or software module, which is not particularly limited herein.
The screen projection method provided by the embodiment of the present disclosure may be performed by the mobile terminal 501, and accordingly, the screen projection device may be disposed 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, a schematic diagram of the structure of an electronic device (e.g., the mobile terminal of fig. 5) of an embodiment of the present disclosure is shown. 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), an in-vehicle terminal (e.g., an in-vehicle navigation terminal), and the like. The electronic device shown in fig. 6 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments. The electronic device shown in fig. 6 is merely an example and should not impose any limitations on the functionality and scope of use of 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 required 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 through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
In general, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, and the like; an output device 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 shows 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 alternatively be implemented or provided.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via communication means 609, or from storage means 608, or from ROM 602. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 601.
It should be noted that, the computer readable medium according to 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. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any 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 an embodiment of the present 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. Whereas in embodiments of the present disclosure, the computer-readable signal medium may comprise a data signal propagated in baseband or as part of a carrier wave, with computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. 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, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, 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 networks.
The computer readable medium may be included in the electronic device or may exist alone without being incorporated into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: transmitting 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; 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 of the present disclosure may be written in 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 case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts 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 means of software, or may be implemented by means of hardware. The names of these units do not constitute a limitation on 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 a video stream satisfying the fluent play target".
The functions described above herein 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: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), etc.
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. The 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 of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by those skilled in the art that the scope of the disclosure in the embodiments of the disclosure is not limited to the specific combination of features described above, but encompasses other technical solutions formed by any combination of features described above or their equivalents without departing from the spirit of the disclosure. Such as those described above, are provided in the present disclosure in place of, but not limited to, features having similar functions.
Moreover, although 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. In 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 limiting the scope of the present 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 example forms of implementing the claims.

Claims (9)

1. The 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:
transmitting 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;
if the video stream played by the display terminal does not meet the smooth playing target, sending a pause screen-throwing instruction to the display terminal so as to inform the display terminal to pause sending the video stream, negotiating a second video parameter with the display terminal, and recovering sending the video stream to the display terminal so that the display terminal can continue playing the received video stream based on the video format and the second video parameter.
2. The method of claim 1, wherein the video parameters include a video frame rate negotiated by the mobile terminal with the display terminal; and
the determining whether the video stream played by the display terminal meets the smooth playing target comprises the following steps:
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 smaller 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 larger 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 a second video parameter with the display terminal comprises:
transmitting a renegotiation instruction to the display terminal so that the display terminal selects a second video parameter which is one level lower than the first video parameter, and returning a third negotiation result containing the second video parameter to the mobile terminal;
and acquiring the second video parameters negotiated with the display terminal from the third negotiation result.
4. A method according to claim 3, wherein the video parameters include a video frame rate and a video picture size negotiated by the mobile terminal with the display terminal.
5. The method according to claim 1, wherein after the display terminal receives the pause screen-throwing instruction, the following steps are performed:
continuing to play the video stream which is received and sent by the mobile terminal until the last video frame which is received and sent by the mobile terminal is played;
and playing the last video frame until the mobile terminal resumes sending the video stream.
6. The method according to any one of claims 1-5, 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 the video formats 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 first video parameter selected by the display terminal;
and acquiring the first video parameters negotiated with the display terminal from the second negotiation result.
7. A screen projection device applied to a mobile terminal, wherein the mobile terminal and a display terminal establish screen projection connection based on a preset screen projection protocol, and the device comprises:
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 sending a pause screen-throwing instruction to the display terminal to inform the display terminal to pause sending the video stream 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, and resuming sending the video stream to the display terminal so that the display terminal can continue playing the received video stream based on the video format and the second video parameter.
8. An electronic device, comprising:
one or more processors;
a storage means for storing one or more programs;
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-6.
9. A computer readable medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the method of any of claims 1-6.
CN202210790943.3A 2022-07-05 2022-07-05 Screen projection method and device and electronic equipment Active CN115134641B (en)

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 CN115134641A (en) 2022-09-30
CN115134641B true 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 (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100678891B1 (en) * 2004-07-30 2007-02-05 삼성전자주식회사 Method and apparatus for contents' attribute adaptive buffer control in audio-video data receiving

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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)

* Cited by examiner, † Cited by third party
Title
基于多协议融合的实时移动视频监控系统;叶锋;傅燕云;陈林芳;钟晓君;邓衍晨;;计算机系统应用(04);全文 *

Also Published As

Publication number Publication date
CN115134641A (en) 2022-09-30

Similar Documents

Publication Publication Date Title
CN113992967B (en) Screen projection data transmission method and device, electronic equipment and storage medium
CN112394892A (en) Screen projection method, screen projection equipment, mobile terminal and storage medium
CN112135169B (en) Media content loading method, device, equipment and medium
CN110166791B (en) Connection establishing method, device, equipment and storage medium
CN107707972B (en) Data processing method, device and system for screen sharing and electronic equipment
CN112954354B (en) Video transcoding method, device, equipment and medium
CN110290398B (en) Video issuing method and device, storage medium and electronic equipment
CN112019914B (en) Screen projection method and device, electronic equipment and computer readable medium
CN112312229A (en) Video transmission method and device, electronic equipment and storage medium
CN110806846A (en) Screen sharing method, screen sharing device, mobile terminal and storage medium
CN112351222A (en) Image special effect processing method and device, electronic equipment and computer readable storage medium
CN112770159A (en) Multi-screen interaction system, method, device, equipment and storage medium
CN110519645B (en) Video content playing method and device, electronic equipment and computer readable medium
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
CN110809166B (en) Video data processing method and device and electronic equipment
CN115134641B (en) Screen projection method and device and electronic equipment
CN110570502A (en) method, apparatus, electronic device and computer-readable storage medium for displaying image frame
CN114979762B (en) Video downloading and transmitting method and device, terminal equipment, server and medium
CN117412140A (en) Method and apparatus for video transmission
CN112887742B (en) Live stream processing method, device, equipment and storage medium
CN115037986B (en) Video self-adaptive playing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant