WO2022222924A1 - 一种投屏显示参数调节方法 - Google Patents

一种投屏显示参数调节方法 Download PDF

Info

Publication number
WO2022222924A1
WO2022222924A1 PCT/CN2022/087679 CN2022087679W WO2022222924A1 WO 2022222924 A1 WO2022222924 A1 WO 2022222924A1 CN 2022087679 W CN2022087679 W CN 2022087679W WO 2022222924 A1 WO2022222924 A1 WO 2022222924A1
Authority
WO
WIPO (PCT)
Prior art keywords
screen
display
frame rate
electronic device
display parameter
Prior art date
Application number
PCT/CN2022/087679
Other languages
English (en)
French (fr)
Inventor
徐辉
李自然
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP22791031.2A priority Critical patent/EP4310663A1/en
Publication of WO2022222924A1 publication Critical patent/WO2022222924A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • G06F3/1462Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay with means for detecting differences between the image stored in the host and the images displayed on the remote displays
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/147Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/04Changes in size, position or resolution of an image
    • G09G2340/0492Change of orientation of the displayed image, e.g. upside-down, mirrored

Definitions

  • the present application relates to the technical field of screen projection, and in particular, to a method for adjusting parameters of screen projection display.
  • the external display screen will only display the image transmitted by the PC side.
  • the display frame rate of the external display is lower than the negotiated display frame rate between the mobile phone and the PC, the image displayed on the external display is inconsistent with the image displayed on the PC side, resulting in out-of-synch between the projected content displayed on the external display and the audio.
  • the present application provides a method for adjusting screen projection display parameters, which solves the problem that the screen projection content displayed on the display screen is out of sync with the audio when an external display screen is connected to the screen projection system, and provides user experience.
  • the present application provides a screen projection system
  • the system includes an electronic device, a large-screen device and a display device; the large-screen device is used for: establishing a first screen projection connection with the electronic device; and The display device establishes a second screen projection connection; the electronic device is configured to send a first display parameter to the large-screen device; wherein the first display parameter includes a first encoding frame rate of the electronic device ; the display device for sending second display parameters to the large-screen device; wherein the second display parameters include a first decoding frame rate and a first display frame rate of the display device; the large-screen device
  • the screen device is further configured to: receive the first display parameter sent by the electronic device; receive the second display parameter sent by the display device; acquire the display parameter of the large-screen device.
  • the third parameter includes the second encoding frame rate, the second decoding frame rate and the second display frame rate; based on the first display parameter, the second display parameter and the third display parameter, the target display parameter is determined,
  • the target display parameter includes a target encoding frame rate, and the target encoding frame rate is less than or equal to the first encoding frame rate, the first decoding frame rate, the first display frame rate, and the second encoding frame rate.
  • the minimum value among the frame rate, the second decoding frame rate, and the two display frame rates; based on the target encoding frame rate in the target display parameters, encode the first screen projection content, and encode the A projected screen content is projected to the display device.
  • the newly formed screen projection system will negotiate the display parameters of each device in the screen projection system, so as to prevent the display screen from being displayed on the display screen when an external display screen is connected to the screen projection system.
  • the problem that the projected screen content is out of sync with the audio provides the user experience.
  • the large-screen device encodes the first screen projection content based on the target encoding frame rate in the target display parameter, and encodes the first screen projection content.
  • the large-screen device is further configured to: send the target display parameter to the electronic device, where the target display parameter is used to instruct the electronic device
  • the second screen projection content is encoded at the target encoding frame rate and sent to the large screen device;
  • the electronic device is further configured to: encode the second screen projection content at the target encoding frame rate;
  • the large screen device sends the second screen projection content;
  • the large screen device is further configured to: receive the second screen projection content sent by the electronic device; and display the second screen projection content.
  • the large-screen device is specifically configured to: after the large-screen device establishes the first screen projection connection with the electronic device, communicate with the large-screen device The display device establishes the second screen projection connection; or, after the large-screen device establishes the second screen projection connection with the display device, establishes the first screen projection connection with the electronic device.
  • the large-screen device before the large-screen device receives the first display parameter sent by the electronic device, the large-screen device is further configured to: send to the large-screen device The electronic device sends a first request, where the first request is used to instruct the electronic device to send the first display parameter to the large-screen device; the electronic device is further configured to: receive the data sent by the large-screen device the first request; in response to the first request, send the first display parameter to the large-screen device; the large-screen device is further configured to: receive the first display sent by the electronic device parameter.
  • the large-screen device is specifically configured to: determine that the second encoding frame rate is greater than the first decoding frame rate or the second encoding frame rate When the rate is greater than the first display frame rate or the second encoding frame rate is less than the second display frame rate, the first request is sent to the electronic device.
  • the first display parameter further includes a first encoding type and/or a first screen resolution
  • the second display parameter further includes a second encoding type and/or a first screen resolution.
  • the target display parameter further includes a target encoding type and/or a target screen resolution; wherein, the target encoding type is a common encoding of the first encoding type and the second encoding type Type, the target screen resolution is the shared screen resolution of the first screen resolution and the second screen resolution.
  • the present application provides a method for adjusting screen projection display parameters.
  • the method includes: establishing a first screen projection connection between a large-screen device and an electronic device, and establishing a second screen projection connection between the large-screen device and a display device;
  • the large-screen device receives the first display parameter sent by the electronic device, where the first display parameter includes the first encoding frame rate of the electronic device;
  • the large-screen device receives the second display parameter sent by the display device,
  • the second display parameter includes the first decoding frame rate and the first display frame rate of the display device;
  • the large-screen device acquires display parameter three of the large-screen device, and the display parameter three includes the second The encoding frame rate, the second decoding frame rate, and the second display frame rate;
  • the large-screen device determines the target display parameter based on the first display parameter, the second display parameter, and the third display parameter, wherein , the target display parameter includes a target encoding frame rate, the target encoding frame rate is less than or equal to the
  • the large-screen device encodes the first screen projection content based on the target encoding frame rate in the target display parameter, and projects the first screen projection content to the display device.
  • the newly formed screencasting system will negotiate the display parameters of each device in the screencasting system, so as to prevent the display screen from being displayed on the screen when an external display screen is connected to the screencasting system.
  • the problem that the projected screen content is out of sync with the audio provides the user experience.
  • the large-screen device encodes the first screen projection content based on the target encoding frame rate in the target display parameter, and encodes the first screen projection content.
  • the method further includes: the large-screen device sending the target display parameter to the electronic device, where the target display parameter is used to indicate the electronic device.
  • the device encodes the second screen projection content at the target encoding frame rate and sends it to the large screen device; the large screen device receives the second screen projection content sent by the electronic device; the large screen device displaying the second screen projection content.
  • establishing a first screen projection connection between the large-screen device and the electronic device, and establishing a second screen projection connection between the large-screen device and the display device specifically includes: in the After the large-screen device establishes the first screen projection connection with the electronic device, the large-screen device establishes the second screen projection connection with the display device; or, after the large-screen device and the display device After the second screen projection connection is established, the large screen device establishes the first screen projection connection with the electronic device.
  • the method further includes: the large-screen device sends a The electronic device sends a first request, where the first request is used to instruct the electronic device to send the first display parameter to the large-screen device.
  • the large-screen device sends a first request to the electronic device, which specifically includes: when the large-screen device determines that the second encoding frame rate is greater than When the first decoding frame rate or the second encoding frame rate is greater than the first display frame rate or the second encoding frame rate is smaller than the second display frame rate, the large-screen device sends the electronic The device sends the first request.
  • the first display parameter further includes a first encoding type and/or a first screen resolution
  • the second display parameter further includes a second encoding type and/or a first screen resolution.
  • the target display parameter further includes a target encoding type and/or a target screen resolution; wherein, the target encoding type is a common encoding of the first encoding type and the second encoding type Type, the target screen resolution is the shared screen resolution of the first screen resolution and the second screen resolution.
  • the present application provides an electronic device including one or more processors and one or more memories.
  • the one or more memories are coupled to the one or more processors for storing computer program code, the computer program code comprising computer instructions that, when executed by the one or more processors, cause the electronic device to perform
  • the electronic device executes the method steps.
  • the present application provides a computer storage medium, including computer instructions, which, when the computer instructions are executed on an electronic device, cause the electronic device to perform the electronic device execution method steps in any of the possible implementations of any of the above aspects.
  • the embodiments of the present application provide a computer program product that, when the computer program product runs on a computer, enables an electronic device to perform the steps of the electronic device execution method in any of the possible implementations of any of the foregoing aspects.
  • an embodiment of the present application provides a large-screen device, including one or more processors and one or more memories.
  • the one or more memories are coupled to one or more processors, and the one or more memories are used to store computer program code, the computer program code includes computer instructions, when the one or more processors execute the computer instructions, make the large screen device Perform the steps of the large-screen device execution method in any of the possible implementation manners of any of the foregoing aspects.
  • the present application provides a computer storage medium, including computer instructions, when the computer instructions are run on a large-screen device, the large-screen device is made to execute any one of the above-mentioned possible implementations of the large-screen device. method steps.
  • an embodiment of the present application provides a computer program product that, when the computer program product runs on a computer, enables a large-screen device to perform the steps of a large-screen device in any of the possible implementations of any one of the foregoing aspects.
  • an embodiment of the present application provides a display device, including one or more processors and one or more memories.
  • the one or more memories are coupled to the one or more processors for storing computer program code, the computer program code comprising computer instructions that, when executed by the one or more processors, cause the display device to execute
  • the display device executes the method steps.
  • the present application provides a computer storage medium, including computer instructions, which, when the computer instructions are executed on a display device, cause the display device to perform the steps of the display device execution method in any of the possible implementations of any of the above aspects.
  • the embodiments of the present application provide a computer program product, which, when the computer program product runs on a computer, causes a display device to perform the steps of the display device execution method in any possible implementation manner of any one of the foregoing aspects.
  • FIG. 1 is a schematic diagram of a system provided by an embodiment of the present application.
  • 2A-2D are a set of UI diagrams provided by the embodiments of the present application.
  • FIG. 2E-FIG. 2F provide another set of UI diagrams according to an embodiment of the present application.
  • FIG. 3 is a flowchart of a method for negotiating display parameters between an electronic device 100 and a large-screen device 200 according to an embodiment of the present application;
  • FIG. 3A-FIG. 3B are UI diagrams of a group of electronic devices 100 playing screen projection content 1 according to an embodiment of the present application;
  • FIG. 4 is a schematic diagram of a process of negotiating display parameters of the electronic device 100, the large-screen device 200, and the display device 300 by a large-screen device 200 according to an embodiment of the present application;
  • FIG. 4A is a UI diagram of an electronic device 100 for displaying multimedia content according to an embodiment of the present application
  • FIG. 5 is a schematic diagram of a RTCP data packet format provided by an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of an electronic device 100 according to an embodiment of the present application.
  • FIG. 7 is a block diagram of a software structure of an electronic device 100 provided by an embodiment of the present application.
  • FIG. 8 is a hardware structure of a large-screen device 200 provided by an embodiment of the present application.
  • FIG. 9 is a hardware structure of a display device 300 according to an embodiment of the present application.
  • first and second are only used for descriptive purposes, and should not be construed as implying or implying relative importance or implying the number of indicated technical features. Therefore, the features defined as “first” and “second” may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, unless otherwise specified, the “multiple” The meaning is two or more.
  • UI user interface
  • the term "user interface (UI)" in the description, claims and drawings of this application is a medium interface for interaction and information exchange between an application program or an operating system and a user, and it realizes the internal form of information Conversion to and from user-acceptable forms.
  • the user interface of the application is the source code written in a specific computer language such as java and extensible markup language (XML).
  • the interface source code is parsed and rendered on the terminal device, and finally presented as content that the user can recognize.
  • Controls also known as widgets, are the basic elements of the user interface. Typical controls include toolbars, menu bars, input boxes, buttons, scroll bars, images and text.
  • the attributes and content of controls in the interface are defined by tags or nodes.
  • XML specifies the controls contained in the interface through nodes such as ⁇ Textview>, ⁇ ImgView>, and ⁇ VideoView>.
  • a node corresponds to a control or property in the interface, and the node is presented as user-visible content after parsing and rendering.
  • applications such as hybrid applications, often contain web pages in their interface.
  • a web page also known as a page, can be understood as a special control embedded in an application program interface.
  • a web page is source code written in a specific computer language, such as hypertext markup language (HTML), cascading styles Tables (cascading style sheets, CSS), java scripts (JavaScript, JS), etc.
  • the source code of the web page can be loaded and displayed as user-identifiable content by a browser or a web page display component similar in function to a browser.
  • the specific content contained in a web page is also defined by tags or nodes in the source code of the web page. For example, HTML defines the elements and attributes of web pages through ⁇ p>, ⁇ img>, ⁇ video>, and ⁇ canvas>.
  • GUI graphical user interface
  • GUI refers to a user interface related to computer operations that is displayed graphically. It can be an interface element such as a window, a control, etc. displayed in the display screen of the electronic device.
  • the electronic device 100 can establish a screen projection connection with the large-screen device 200 (eg, a personal computer). Before the electronic device 100 displays the screen-casting content on the large-screen device 200 , the electronic device 100 will negotiate screen-casting parameters with the large-screen device 200 . Specifically, the large-screen device 200 sends the display parameters to the electronic device 100. After receiving the display parameters sent by the large-screen device 200, the electronic device 100 negotiates with the display parameters of the large-screen device 200 to obtain the negotiated target display parameters. Afterwards, the electronic device 100 processes the projected screen content based on the negotiated target display parameters and sends it to the large-screen device 200 , and the large-screen device 200 receives and displays the projected screen content.
  • the large-screen device 200 eg, a personal computer.
  • the screencast content can be video, picture, audio or table, etc.
  • the display parameters of the large-screen device 200 include any one or more of the following: screen resolution, display frame rate, decoding frame rate, encoding type, and the like.
  • the display parameters of the electronic device 100 include any one or more of the following: screen resolution, encoding frame rate, encoding type, and the like.
  • Target display parameters include any one or more of the following: screen resolution, encoding type, encoding frame rate, and so on.
  • the large-screen device 200 when the large-screen device 200 is externally connected to the display device 300, the large-screen device 200 will process the projected screen content according to the display parameters of the large-screen device 200, and send it to the display device 300. If the display frame rate of the display device 300 or the decoding When the frame rate is less than the encoding frame rate of the large-screen device 200, the image frames on the display device 300 side will continue to accumulate, resulting in a freeze on the display device 300 side; or due to the central processing unit (CPU) of the large-screen device 200 ) capability is limited, so that the encoding frame rate of the large-screen device 200 is smaller than the display frame rate of the large-screen device 200 .
  • CPU central processing unit
  • the large-screen device 200 processes the projected screen content according to the encoding frame rate, the image frames on the large-screen device 200 are continuously accumulated. Before the large-screen device 200 sends the processed projected screen content to the display device 300, the image frames Frames accumulate on the side of the large-screen device 200 . As a result, the image frames displayed on the side of the display device 300 and the audio played by the large-screen device 200 are out of sync, which affects user experience.
  • the method includes: establishing a first screen projection connection between the large-screen device and the electronic device, and establishing a second screen projection connection between the electronic device and the display device.
  • the large-screen device will negotiate the target display parameters according to the display parameters of the large-screen device, the display parameters of the electronic device, and the display parameters of the display device.
  • the target display parameters include the target encoding frame rate, so that the target encoding frame rate is smaller than the display frame of the display device. or decoding frame rate, or the display frame rate of the large-screen device 200 is greater than the target encoding frame rate.
  • the large-screen device will process the projected screen content according to the target display parameters and send it to the display device.
  • the problem that the screen projection content displayed on the display screen is not synchronized with the audio is solved, and the user experience is provided.
  • the screencasting connection can be a collaborative screencasting connection.
  • Mirror screen projection connection etc.
  • the present application does not limit the method of screen projection connection.
  • the following embodiments of the present application take collaborative screen projection connection as an example for description.
  • FIG. 1 is a schematic diagram of a system provided by an embodiment of the present application.
  • the electronic device 100 establishes a screen-casting connection with the large-screen device 200 , that is, the electronic device 100 can screen-cast the screencast content on the large-screen device 200 .
  • the display device 300 can be externally connected to the large-screen device 200 through a USB interface or the like. In this way, the large-screen device 200 displays the display content of the large-screen device 200 on the display device 300 .
  • the display device 300 may be connected to the large-screen device 200 through a USB interface after the electronic device 100 establishes a screen projection connection with the large-screen device 200 ; in other embodiments, the display device 300 may be an electronic device 200 . Before the device 100 establishes a screen projection connection with the large-screen device 200, a connection is established with the large-screen device 200 through a USB interface.
  • Electronic device 100 may be a cell phone, tablet, desktop, laptop, handheld computer, notebook, ultra-mobile personal computer (UMPC), netbook, as well as cellular telephones, personal digital assistants (personal digital assistants) digital assistant (PDA), augmented reality (AR) devices, virtual reality (VR) devices, artificial intelligence (AI) devices, wearable devices, in-vehicle devices, smart home devices and/or Smart city equipment, the embodiments of the present application do not specifically limit the specific type of the electronic equipment.
  • the software system of the electronic device 100 includes but is not limited to Linux or other operating systems. For Huawei's Hongmeng system.
  • the large-screen device 200 refers to an electronic device with a larger-sized display screen, such as a television, a desktop computer, or an electronic billboard.
  • the display device 300 is an image (eg, video, picture, etc.) output device that can be used to display images (eg, video, picture, etc.).
  • the electronic device 100 and the large-screen device 200 may be connected and communicated through a wireless communication technology.
  • the wireless communication technologies include, but are not limited to: wireless local area network (WLAN) technology, bluetooth (bluetooth), infrared, near field communication (NFC), ZigBee, and other wireless communications that appear in subsequent development technology, etc.
  • WLAN wireless local area network
  • NFC near field communication
  • ZigBee ZigBee
  • the electronic device 100 and the large-screen device 200 are connected by wireless fidelity direct (Wi-Fi direct) (also known as wireless fidelity peer-to-peer, Wi-Fi P2P) technology communication is used as an example to illustrate.
  • Wi-Fi direct also known as wireless fidelity peer-to-peer, Wi-Fi P2P
  • the electronic device 100 can join the WiFi P2P group constructed by the large-screen display device 200 through the Wi-Fi P2P technology, and connect to the large-screen device 200. Do network synchronization. After successful networking and synchronization, the large-screen devices 200 in the collaborative network perform collaborative playback, collaborative recording, collaborative conferences, and the like under the control of the electronic device 100 . That is, the electronic device 100 sends the screencasting content to the large-screen device 200 through the established Wi-Fi P2P connection, so that the large-screen device 200 displays and/or plays the screencasting content, thereby completing the screencasting.
  • Screencast content may include, but is not limited to, images (eg, videos, pictures, etc.) and audio.
  • the display device 300 may establish a connection with the large-screen device 200 through a USB interface after the electronic device 100 establishes a screen projection connection with the large-screen device 200 .
  • the display parameters will be negotiated to obtain the target display parameters.
  • the electronic device 100 and the large-screen device 200 perform cooperative screen projection through target display parameters.
  • the negotiation of display parameters between the electronic device 100 and the large-screen device 200 will be described in detail in subsequent embodiments, and details are not described herein again in this application.
  • the large-screen device 200 After the electronic device 100 and the large-screen device 200 establish cooperative screen projection, the large-screen device 200 connects to the display device 300 through a USB interface or the like.
  • the displayed screencast content will not freeze, and the screencast content displayed on the display device 300 side is synchronized with the sound on the large-screen device 200 side. Therefore, when the large-screen device 200 is connected to the display device 300, the large-screen device 200 (or the electronic device 100) will negotiate the display parameters of the electronic device 100, the large-screen device 200 and the display device 300 to obtain the target display parameters. After that, the electronic device 100 will process the screen projection content according to the target display parameters, and send it to the large-screen device 200 .
  • the large-screen device 200 also processes the projected content according to the target display parameters, and sends the content to the large-screen device display device 300 .
  • the large-screen device 200 negotiates the display parameters of the electronic device 100 , the large-screen device 200 and the display device 300 , and obtains the target display parameters, which will be described in detail in subsequent embodiments, and will not be repeated in this application.
  • a connection is established with the large-screen device 200 through a USB interface.
  • the large-screen device 200 In order to ensure that when the large-screen device 200 displays the screen-cast content on the display device 300, the screen-cast content displayed on the display device 300 side will not freeze, and when the screen-cast content displayed on the display device 300 side and the sound on the large-screen device 200 side Synchronous. Therefore, when the electronic device 100 and the large-screen device 200 establish cooperative screen projection, the large-screen device 200 (or the electronic device 100 ) will negotiate the display parameters of the electronic device 100 , the large-screen device 200 and the display device 300 to obtain the target display parameters . After that, the electronic device 100 will process the screen projection content according to the target display parameters, and send it to the large-screen device 200 .
  • the large-screen device 200 also processes the projected content according to the target display parameters, and sends the content to the large-screen device display device 300 .
  • the large-screen device 200 negotiates the display parameters of the electronic device 100 , the large-screen device 200 and the display device 300 , and obtains the target display parameters, which will be described in detail in subsequent embodiments, and will not be repeated in this application.
  • the following describes how to establish a screen projection connection between the electronic device 100 and the large-screen device 200 in detail with reference to the UI diagram.
  • the electronic device 100 may establish a screen projection connection with the large-screen device 200 in any of the following manners.
  • 2A-2D exemplarily show a user operation detected by the electronic device 100 to enable the collaborative screen projection function.
  • FIG. 2A shows an exemplary video playback user interface 20 on the mobile device 100 .
  • the user interface 20 displays: video name (brave stride), video playback progress (episode 1), video playback duration (4 minutes and 13 seconds), total video duration (7 minutes and 33 seconds), video popularity (5946 ), the total number of episodes of the video (23 episodes in total), more video icons, and more images corresponding to the videos.
  • the mobile device 100 displays a window 201 on the user interface 20 in response to the swipe gesture.
  • a control 202 may be displayed in the window 201 , and the control 202 may receive an operation (eg, touch operation, click operation) for enabling/disabling the cooperative screen projection function of the mobile device 100 .
  • the representation of the control 202 may include icons and/or text (eg, the text "Co-cast").
  • the window 201 can also display other functions such as Wi-Fi, Bluetooth, flashlight, ringer, auto-rotate, instant sharing, airplane mode, mobile data, location information, screen capture, eye protection mode, hotspot, screen recording, NFC and other switches Control, that is, the user operation to enable the collaborative screen projection function is detected.
  • the electronic device 100 can change the display form of the control 202, for example, adding a shadow when the control 202 is displayed.
  • the user may also input a downward sliding gesture on other interfaces to trigger the electronic device 100 to display the window 201 .
  • the electronic device 100 may also display a setting interface provided by a settings application, and the setting interface may include a control provided to the user for enabling/disabling the cooperative screen projection function of the electronic device 100.
  • a user operation is input on the above to enable the collaborative screen projection function of the electronic device 100 .
  • the electronic device 100 enables one or more of Wi-Fi direct connection (not shown in the figure), Bluetooth or NFC in the wireless communication module 160, and uses Wi-Fi One or more of direct connection, Bluetooth, and NFC to discover electronic devices that can mirror the screen near the electronic device 100 .
  • the electronic device 100 can discover the nearby large-screen device 200 and other electronic devices through the Wi-Fi direct connection.
  • the electronic device 100 may also display other information, such as images of the found electronic devices, which are not limited in this embodiment of the present application.
  • a window 203 pops up on the electronic device 100 .
  • Window 203 includes interface indicators 204, icons 205, images 206 and logos 207 of one or more electronic devices.
  • the user operation for selecting the large-screen device 200 may be a user operation acting on the image 206 and/or the logo 207 corresponding to the large-screen device 200 .
  • the user operation for selecting the large-screen device 200 may also be implemented in other forms, which are not limited in this embodiment of the present application.
  • the electronic device 100 may establish a communication connection with the large-screen device 200 through one or more wireless communication technologies among Wi-Fi Direct, Bluetooth, and NFC.
  • the electronic device 100 and the large-screen device 200 establish a Wi-Fi Direct communication connection.
  • they can negotiate capabilities based on the communication connection, including the encoding format, resolution, audio format, encoding frame rate, display frame rate, decoding frame rate, etc. supported by both parties, so as to facilitate subsequent Executed transfer of screencast content.
  • the electronic device 100 can acquire the currently displayed multimedia content (including images and/or audio) through screen recording, audio recording, etc., and then compress the acquired content and send it to the large-screen device 200 through the communication connection.
  • Large screen device 200 Taking the electronic device 100 and the large-screen device 200 sharing multimedia content based on miracast as an example, the electronic device 100 can obtain the image displayed on the display screen by recording the screen according to the provisions in the miracast protocol, and use the H.264 encoding algorithm to perform the image processing.
  • Compression collect the audio played by the electronic device 100, and use an advanced audio coding (advanced audio coding, AAC) algorithm to compress the audio; then encapsulate the compressed audio data and image data into a transport stream (transport stream, TS), Then, the TS stream is encoded according to a real-time transport protocol (RTP), and the encoded data is sent to the large-screen device 200 through the Wi-Fi direct connection. That is, the multimedia content is transmitted by means of streaming media.
  • AAC advanced audio coding
  • RTP real-time transport protocol
  • the electronic device 100 transmits the currently displayed multimedia content (including images and/or audio) to the large-screen device 200, and the large-screen device 200 receives the currently displayed multimedia content (including images and/or audio) transmitted by the electronic device 100. or audio), and displayed on the display screen of the large-screen device 200 .
  • the large-screen device 200 may perform decoding processing on the multimedia content, thereby acquiring the multimedia content.
  • the large-screen device 200 can receive the RTP-encoded TS stream based on the Wi-Fi direct communication connection with the electronic device 100, and can sequentially It performs RTP decoding, TS stream decapsulation, audio and image quality processing/delay synchronization processing, and finally outputs audio and video, that is, plays multimedia content.
  • 2E-2F exemplarily show that the electronic device 100 is close to the NFC sensing area of the large-screen device 200, and the electronic device 100 is triggered to enable the collaborative screen projection function.
  • the electronic device 100 is close to the NFC sensing area of the large-screen device 200 , the large-screen device 200 receives and responds to the connection request sent by the electronic device 100 , and the large-screen device 200 displays the prompt box shown in FIG. 2F on the display screen. 208.
  • the prompt box 208 includes prompt information “Do you allow HUA WIP40 to connect to this computer?” “HUA WEI P40” is the device identification of the electronic device 100.
  • Prompt box 208 also includes an allow control 209 and a deny control 210.
  • the allow control 209 can receive an input operation (eg, a single click), and in response to the input operation (eg, a single click), the large-screen device 200 establishes a communication connection with the electronic device 100 through NFC.
  • the rejection control 210 may receive an input operation (eg, a single click), and in response to the input operation (eg, a single click), the large-screen device 200 refuses to establish a communication connection with the electronic device 100 .
  • the large-screen device 200 when the control 209 is allowed to receive an input operation (eg, a single click), in response to the input operation (eg, a single click), the large-screen device 200 establishes a communication connection with the electronic device 100 through NFC. After the electronic device 100 and the large-screen device 200 establish a communication connection, they can negotiate capabilities based on the communication connection, including the encoding format, resolution, audio format, encoding frame rate, display frame rate, decoding frame rate, etc. supported by both parties, so as to facilitate subsequent Executed transfer of screencast content.
  • an input operation eg, a single click
  • the large-screen device 200 After the electronic device 100 and the large-screen device 200 establish a communication connection, they can negotiate capabilities based on the communication connection, including the encoding format, resolution, audio format, encoding frame rate, display frame rate, decoding frame rate, etc. supported by both parties, so as to facilitate subsequent Executed transfer of screencast content.
  • the electronic device 100 can acquire the currently displayed multimedia content (including images and/or audio) through screen recording, audio recording, etc., and then compress the acquired content and send it to the large-screen device 200 through the communication connection.
  • Large screen device 200 Taking the electronic device 100 and the large-screen device 200 sharing multimedia content based on miracast as an example, the electronic device 100 can obtain the image displayed on the display screen by recording the screen according to the provisions in the miracast protocol, and use the H.264 encoding algorithm to perform the image processing.
  • Compression collect the audio played by the electronic device 100, and use an advanced audio coding (advanced audio coding, AAC) algorithm to compress the audio; then encapsulate the compressed audio data and image data into a transport stream (transport stream, TS), Then, the TS stream is encoded according to a real-time transport protocol (RTP), and the encoded data is sent to the large-screen device 200 through the Wi-Fi direct connection. That is, the multimedia content is transmitted by means of streaming media.
  • AAC advanced audio coding
  • RTP real-time transport protocol
  • the electronic device 100 transmits the currently displayed multimedia content (including images and/or audio) to the large-screen device 200, and the large-screen device 200 receives the currently displayed multimedia content (including images and/or audio) transmitted by the electronic device 100, and displays the On the display screen of the large-screen device 200, specifically, please refer to the embodiment shown in FIG. 2D, which is not repeated in this application.
  • FIG. 3 exemplarily shows a flowchart of a method for negotiating display parameters between the electronic device 100 and the large-screen device 200 .
  • the electronic device 100 acquires the first screen projection content, and the first screen projection content includes a first image or the first screen projection content includes a first image and a first audio.
  • the electronic device 100 may acquire the screencast content 1 by means of screen recording and/or audio recording.
  • Screen projection content one may be multimedia content (including a first image or a first image and a first audio) displayed by the electronic device 100 as shown in FIG. 2D .
  • the first screen projection content is the content displayed by the electronic device 100 in real time.
  • the screen projection content one displayed by the electronic device 100 may also only include the first image, and the present application does not limit the form of the screen projection content one.
  • 3A-3B exemplarily show UI diagrams of the electronic device 100 playing screencast content one.
  • FIG. 3A exemplarily shows the user interface 30 of the electronic device 100 .
  • the user interface 30 may include icons for some applications. For example, file management icon 301, email icon 302, music icon 303, Huawei video icon 304, sports health icon 305, weather icon 306, camera icon 307, address book icon 308, phone icon 309. Information icon 310.
  • user interface 30 may include icons for more or fewer applications.
  • the user interface 30 may include icons of some application programs different from those shown in FIG. 3A , which are not limited here.
  • the electronic device 100 may launch a video application in response to a user operation acting on the icon 304 of Huawei Video on the user interface 30 .
  • FIG. 3B exemplarily shows the user interface 40 displayed after the electronic device 100 starts the video application.
  • the user interface 40 is the main page provided by the Huawei video application.
  • one or more video images 401 are displayed in the user interface 40 .
  • the image of the video can be dynamic or static.
  • the user interface 40 may also display a bottom menu bar, a search box, a sub-channel entry, and the like, which are not limited in this embodiment of the present application. As shown in FIG.
  • the electronic device 100 can detect the user operation acting on the video image 401 , obtain the network video indicated by the video image 401 from the server corresponding to the Huawei video application through the network, and play the network video.
  • the network video indicated by the video image 401 in which the user's operation is monitored is the network video selected by the user.
  • the electronic device 100 will display the video playback user interface 20 as shown in FIG. 2A.
  • FIG. 2A For the description of the video playback user interface 20, reference may be made to the description of FIG. 2A , which will not be repeated in this application.
  • the electronic device 100 establishes a screen projection connection with the large-screen device 200 .
  • the electronic device 100 After the electronic device 100 establishes a connection with the large-screen device 200 , the electronic device 100 negotiates display parameters with the large-screen device 200 .
  • display parameters For details, please refer to the description of S303 and S304.
  • the electronic device 100 receives the first message sent by the large-screen device 200.
  • the first message includes the first display parameter, and the first display parameter includes the first decoding frame rate and the first display frame rate.
  • Display frame rate 1 is the number of image frames that can be displayed by the large-screen device 200 within a fixed period of time (for example, 1 s).
  • the decoding frame rate 1 is the number of image frames that can be decoded by the electronic device 100 within a fixed time (for example, 1 s) by the large-screen device 200 .
  • Display parameter 1 also includes other parameters, such as screen resolution 1 and encoding type 1. Display parameter one may also include other more parameters, which are not limited in this application.
  • the first screen resolution is the number of pixels displayed by the large-screen device 200 in the horizontal direction and the horizontal direction.
  • the first screen resolution is 150 ⁇ 128, which means that the number of pixels in the horizontal direction is 150 and the number of pixels in the vertical direction is 128.
  • Coding type one includes speech coding type and image stream coding type.
  • the image stream encoding type includes any one of the following: Xvid, AVC/H.264, MPEG1, MPEG2;
  • the voice encoding type includes any one of the following: MP3, AAC.
  • the image stream encoding type and the speech encoding type may also be other types, which are not limited in this application.
  • the electronic device 100 obtains the target display parameter 1 according to the display parameter 2 and the display parameter 1, and the target display parameter 1 includes the encoding frame rate 1, and the encoding frame rate 2 is smaller than the frame in the display parameter 1 and the display parameter 2 The minimum value of the rate parameter value.
  • the second display parameter includes the second encoding frame rate of the electronic device 100 .
  • the second encoding frame rate is the number of frames of audio data frames encoded by the electronic device 100 per second.
  • Display parameter two also includes other parameters, such as screen resolution two and encoding type two.
  • the second display parameter may also include other more parameters, which are not limited in this application.
  • the electronic device 100 After the electronic device 100 receives the display parameter 1 of the large-screen device 200, the electronic device 100 compares the size of the display frame rate 1, the decoding frame rate 1, and the encoding frame rate 2 in the display parameter 1, and obtains 3. The minimum value of the three is determined, and the encoding frame rate 1 is determined according to the minimum value of the three, wherein the encoding frame rate 1 is less than or equal to the minimum value of the display frame rate 1, the decoding frame rate 1, and the encoding frame rate 2.
  • the electronic device 100 also negotiates other parameters in the display parameter 1 and the display parameter 2, so that the parameter information of the other display parameters of the electronic device 100 and the electronic device 200 are consistent.
  • the electronic device 100 determines screen resolution 2 in display parameter 2, and the electronic device 100 compares the sizes of screen resolution 2 and screen resolution 1 to obtain the minimum value of the two, and calculates the minimum value according to the minimum value between the two.
  • a screen resolution 3 is determined, wherein the screen resolution 3 is less than or equal to the minimum value of the screen resolution 2 and the screen resolution 1.
  • the electronic device 100 further determines the coding type 2 in the display parameter 2, and the electronic device 100 determines the coding type common to the coding type 2 and coding type 1 as the coding negotiated between the electronic device 100 and the electronic device 200.
  • Type 3 coding type 3 is any one of coding types common to coding type 2 and coding type 1.
  • the electronic device 100 will also negotiate other parameters in the display parameter 1 and the display parameter 2, which will not be introduced one by one here.
  • the target display parameter 1 includes encoding type 3 and screen resolution 3 in addition to the encoding frame rate 1, and the target display parameter 1 may also include other parameters, which will not be introduced one by one in this application.
  • S305 The electronic device 100 sends a second packet to the large-screen device 200, where the second packet includes the first target display parameter.
  • Target display parameter one includes encoding frame rate one.
  • Target display parameter one may further include screen resolution three and encoding type three.
  • the electronic device 100 sends a second packet to the large-screen device 200 , and the second packet includes the first target display parameter.
  • the large-screen device 200 receives the second packet sent by the electronic device 100 to the large-screen device 200 .
  • the electronic device 100 uses the target display parameter 1 to process the projected screen content 1.
  • the electronic device 100 sends the screen projection content processed with the target display parameters to the large-screen device 200 .
  • the electronic device 100 may acquire screen projection content 1 through screen recording and/or audio recording, and process a pair of screen projection content 1 according to target display parameters to obtain screen projection content 1 processed with target display parameter 1.
  • the electronic device 100 compresses the screen projection content processed with the target display parameter 1, and then sends the screen projection content processed with the target display parameter 1 to the large-screen device 200 .
  • the large-screen device 200 receives the screen projection content one processed with the target display parameter one, and displays the screen projection content one.
  • the large-screen device 200 receives the projection content 1 processed with the target display parameter 1, and decodes the projection content 1 with the second decoding rate in order.
  • the projected screen content after the target display parameter processing is decoded, and the audio and image quality is processed.
  • the large-screen device 200 displays the projected screen content one.
  • FIG. 2D is a schematic diagram of the large-screen device 200 displaying screen projection content one.
  • the value of the second decoding rate is the same as the value of the encoding frame rate 1.
  • the electronic device 100 After the electronic device 100 establishes a screen projection connection with the large-screen device 200 , the electronic device 100 projects and displays the screen-casting content on the large-screen device 200 . Afterwards, the display device 300 can be externally connected to the large-screen device 200 through a USB interface or the like.
  • the large-screen device 200 will negotiate the display parameters of the electronic device 100 , the large-screen device 200 and the display device 300 . Next, the process of negotiating display parameters of the electronic device 100 , the large-screen device 200 and the display device 300 by the large-screen device 200 will be described in detail.
  • the electronic device 100 may also negotiate the display parameters of the electronic device 100 , the large-screen device 200 and the display device 300 , and this application does not limit the devices that negotiate the display parameters.
  • the following embodiments of the present application take the large-screen device 200 negotiating the display parameters of the electronic device 100 , the large-screen device 200 and the display device 300 as an example for detailed description.
  • FIG. 4 exemplarily shows a schematic diagram of a process of the large-screen device 200 negotiating display parameters of the electronic device 100 , the large-screen device 200 and the display device 300 .
  • the electronic device 100 establishes a screen projection connection (a first screen projection connection) with the large-screen device 200 .
  • the electronic device 100 and the large-screen device 200 will negotiate display parameters.
  • the target display parameter 1 is obtained, the target display Parameter one includes encoding frame rate two, third screen resolution, encoding type three, and so on.
  • the process of negotiating display parameters between the electronic device 100 and the large-screen device 200 please refer to the embodiment shown in FIG. 3, which will not be repeated in this application.
  • the large device 200 receives the first operation, and the large screen device 200 establishes a connection with the display device 300 (a second screen projection connection).
  • the large-screen device 200 side can connect to the display device 300 through a USB interface or the like, and the large-screen device 200 establishes a connection with the display device 300 through a USB data cable.
  • the large-screen device 200 before the large-screen device 200 establishes a screen projection connection with the display device 300 , the large-screen device 200 has already established a connection with the display device 300 in advance. That is, S402 may not exist.
  • the electronic device 100 sends the second message to the large-screen device 200 , and the second message displays the second parameter (the first display parameter).
  • the second display parameter includes the second encoding frame rate (the first encoding frame rate) of the electronic device 100 .
  • Display parameter one may also include screen resolution two (first screen resolution), encoding type two (first encoding type), and so on.
  • the display device 300 sends a message 3 to the large-screen device 200, where the message 3 includes the display parameter 3 (the second display parameter), and the display parameter 3 includes the display frame rate 3 (the first display frame rate) of the display device 300 , decoding frame rate three (the first decoding frame rate).
  • the message 3 includes the display parameter 3 (the second display parameter)
  • the display parameter 3 includes the display frame rate 3 (the first display frame rate) of the display device 300 , decoding frame rate three (the first decoding frame rate).
  • the display frame rate 3 is the number of image frames that the display device 300 can display within a fixed time (for example, 1 s).
  • the decoding frame rate 3 is the number of image frames that can be decoded by the display device 300 within a fixed time (for example, 1s) and transmitted by the large-screen device 200 .
  • Display parameter three also includes other parameters, such as screen resolution four (second screen resolution) and encoding type four (second encoding type). Display parameter three may also include other more parameters, which are not limited in this application.
  • the screen resolution 4 is the number of pixels displayed by the display device 300 in the horizontal direction and the horizontal direction.
  • the screen resolution 4 is 160 ⁇ 128, which means that the number of pixels in the horizontal direction is 160 and the number of pixels in the vertical direction is 128.
  • the fourth coding type includes a speech coding type and an image stream coding type.
  • the image stream encoding type includes any one of the following: Xvid, AVC/H.264, MPEG1, MPEG2;
  • the voice encoding type includes any one of the following: MP3, AAC.
  • the image stream encoding type and the voice encoding type may also be other types, such as image quality and color, etc., which are not limited in this application.
  • the large-screen device 200 before the large-screen device 200 establishes a screen projection connection with the display device 300, the large-screen device 200 has established a connection with the display device 300 in advance, and the electronic device 100 needs to set the display parameter 2 of the electronic device 100 to Sent to the large-screen device 200 .
  • the large-screen device 200 negotiates and obtains the second target display parameter according to the first display parameter (the third display parameter), the second display parameter and the third display parameter.
  • the large-screen device 200 After the large-screen device 200 receives the display parameter 2 sent by the electronic device 100 and the display parameter 3 sent by the display device 300 , at the same time, the large-screen device 200 will acquire the display parameter 1 of the large-screen device 200 .
  • the display parameter 1 includes the encoding frame rate 3 (the third encoding frame rate), the decoding frame rate 1 (the second decoding frame rate), and the display frame rate 1 (the second display frame rate) of the large-screen device 200 .
  • Display parameter one may also include screen resolution one (third screen resolution), encoding type one (third encoding type), and so on.
  • the second display parameter includes the second encoding frame rate of the electronic device 100 .
  • Display parameter one may also include screen resolution two, encoding type two, and so on.
  • the third display parameter includes the second display frame rate and the second decoding frame rate of the display device 300 .
  • Display parameter three also includes encoding type four and screen resolution four of the display device 300 .
  • the large-screen device 200 will compare the encoding frame rate 3, the decoding frame rate 1, the display frame rate 1 in the display parameter 1 with the encoding frame rate 2 in the display parameter 2 and the display frame rate 2 and the decoding frame rate 2 in the display parameter 3.
  • the minimum value of the five frame rate parameters is obtained, and the coding frame rate 4 (target coding frame rate) is determined according to the minimum value of the five frame rate parameters, wherein the coding frame rate 4 is less than or equal to the coding frame rate 3.
  • the large-screen device 200 also negotiates other parameters in the display parameter 1, the display parameter 2 and the third target display parameter, so that the parameter information of other display parameters of the electronic device 100, the large-screen device 200 and the display device 300 is consistent. .
  • the large-screen device 200 determines the sizes of screen resolution 1, screen resolution 2, and screen resolution 4 in display parameter 3, obtains the minimum value among the three, and determines the screen according to the minimum value among the three.
  • Resolution five target screen resolution
  • screen resolution five is less than or equal to the minimum value of screen resolution one, screen resolution two, and screen resolution four.
  • the large-screen device 200 will also determine the common encoding type among encoding type 1, encoding type 2, and encoding type 4, as the encoding type 5 (target) obtained through negotiation between the electronic device 100, the large-screen device 200 and the display device 300.
  • coding type), and coding type 5 is any one of coding type 1, coding type 2 and coding type 4 which are common to coding type 4.
  • the large-screen device 200 may also negotiate other parameters in the display parameter 1, the display parameter 2, and the display parameter 3, which are not introduced one by one in this application.
  • the second target display parameter includes encoding type 5 and screen resolution 5 in addition to encoding frame rate 4.
  • the second target display parameter may also include other parameters, which will not be described in this application. An introduction.
  • the large-screen device 200 sends a message 4 to the electronic device 100 , and the message 4 includes the second target display parameter.
  • message 4 may also be referred to as a first newly added extended RTCP APP message, and the first newly added extended RTCP APP message includes key screen projection factor adjustment information, and the key screen projection factor adjustment information may be
  • the second target displays parameters, such as encoding frame rate four, encoding type five, and screen resolution five.
  • the large-screen device 200 sends a message 5 to the display device 300 , where the message 5 includes the second target display parameter.
  • the second target display parameter includes the encoding frame rate four.
  • Target display parameter one may also include screen resolution five and encoding type five.
  • the large-screen device 200 sends a message 4 to the electronic device 100, and the message 4 includes the second target display parameter.
  • the electronic device 100 receives the message four sent by the large-screen device 200 .
  • the large-screen device 200 sends a packet 5 to the display device 300, and the packet 5 includes the second target display parameter.
  • the display device 300 receives the message five sent by the large-screen device 200 .
  • the large-screen device 200 may not send the packet 5 to the display device 300, that is, S407 may not exist. This application is not limited here.
  • the large-screen device 200 before the large-screen device 200 receives the first display parameter sent by the electronic device 100, the large-screen device 200 sends a first request to the electronic device 100, where the first request is used to instruct the electronic device 100 to send the first display parameter to large screen devices.
  • the message including the first request may also be referred to as a second newly added extended RTCP APP message.
  • the second newly added extended RTCP APP message includes key screen projection factor adjustment information.
  • the key screen projection factor may be a first request, and the first request is used to instruct the electronic device 100 to send the first display parameter to the large-screen device.
  • the large-screen device 200 determines that the second encoding frame rate is greater than the first decoding frame rate or the second encoding frame rate is greater than the first display frame rate or the second encoding frame rate is smaller than the second display frame rate.
  • the large-screen device sends a first request to the electronic device.
  • the large-screen device 100 determines that the current display parameters do not meet the load requirements, and the load will cause the display image to be out of sync with the audio, and the large-screen device 200 will send the first request to the electronic device 100 .
  • the electronic device 100 acquires the first screen projection content, and the first screen projection content includes the first image or the first screen projection content includes the first image and the first audio.
  • the electronic device 100 may acquire the screencast content 1 by means of screen recording and/or audio recording.
  • Screen projection content one may be multimedia content (including a first image or a first image and a first audio) displayed by the electronic device 100 as shown in FIG. 2D .
  • the first screen projection content is the content displayed by the electronic device 100 in real time.
  • the screen projection content one displayed by the electronic device 100 may also only include the first image, and the present application does not limit the form of the screen projection content one.
  • the electronic device 100 processes the projection content one (the second projection content) by using the second target display parameter (target display parameter).
  • the electronic device 100 sends the screen projection content processed with the second target display parameter to the large-screen device 200 .
  • the electronic device 100 may acquire the screencast content 1 through screen recording and/or audio recording, and process the screencast content 1 according to the second target display parameters to obtain the screencast content 1 processed with the second target display parameters.
  • the electronic device 100 compresses the screen projection content processed with the second target display parameters, and then sends the screen projection content processed with the first target display parameters to the large-screen device 200 .
  • the large-screen device 200 receives the screen projection content one processed with the second target display parameter, and displays the screen projection content one.
  • the large-screen device 200 receives the screen projection content 1 processed with the second target display parameters, and sequentially decodes the content 1 with the fourth decoding frame rate.
  • the projected screen content processed with the second target display parameters is decoded, and the audio and image quality is processed.
  • the large-screen device 200 displays the projected screen content one.
  • FIG. 2D is a schematic diagram of the large-screen device 200 displaying screen projection content one.
  • the value of the fourth decoding frame rate is the same as the value of the encoding frame rate 4.
  • the large screen device 200 acquires the second screen projection content (the first screen projection content) by means of screen recording and/or audio recording, and the second screen projection content includes the second image or the second screen projection content includes the second image and the second audio.
  • the second screen projection content may be multimedia content (including images and/or audio) displayed by the electronic device 100 as shown in FIG. 4A .
  • the second image is the content displayed by the large-screen device 200 in real time.
  • the screen projection content 2 displayed by the large-screen device 200 may also only include the second audio, and the present application does not limit the form of the screen projection content two.
  • S413 The large-screen device 200 sends the second screen projection content processed with the second target display parameter.
  • the large-screen device 200 compresses the screen projection content 2 processed with the second target display parameters, and then sends the screen projection content 2 processed with the second target display parameters to the display device 300 .
  • the display device 300 receives the second screen projection content processed with the second target display parameter, and displays the second screen projection content.
  • the display device 300 In response to the screen projection content 2 processed with the second target display parameters sent by the large-screen device 200, the display device 300 receives the screen projection content 2 processed with the second target display parameters, and sequentially decodes the projection content at the fourth decoding frame rate. After the second target display parameter is used to decode the projected screen content, and process the audio and image quality, the display device 300 displays the projected screen content two. As shown in FIG. 4A , FIG. 4A is a schematic diagram of the display device 300 displaying the second screen projection content. The value of the fourth decoding frame rate is the same as the value of the encoding frame rate 4.
  • the large-screen device 200 negotiates and obtains the target display parameters according to the first display parameter of the electronic device 100 , the second display parameter of the display device 300 , and the third display parameter of the large-screen device 200 .
  • the electronic device 100 may also negotiate the target display parameters according to the first display parameter of the electronic device 100 , the second display parameter of the display device 300 , and the third display parameter of the large-screen device 200 .
  • the electronic device 100 sends the second display parameter of the display device 300 and the third display parameter of the large-screen device 200 to the electronic device 100, and the electronic device 100 transmits the first display parameter of the electronic device 100, the second display parameter of the display device 300, The third display parameter of the device 200 obtains the target display parameter through negotiation.
  • the electronic device 100 negotiates the target display parameters according to the first display parameter of the electronic device 100, the second display parameter of the display device 300, and the third display parameter of the large-screen device 200, and negotiates with the large-screen device 200 according to the first display parameter of the electronic device 100.
  • the parameters, the second display parameters of the display device 300, and the third display parameters of the large-screen device 200 are negotiated to obtain the target display parameters are consistent, which will not be repeated in this application.
  • the implementation of the extended protocol involved in this application is based on the existing RTCP protocol (only including the transmission quality such as the number of lost packets, the number of sent, etc.), to expand the quality of the screen projection service and its key influencing factor capability set.
  • FIG. 5 is a schematic diagram of an RTCP data packet format involved in an embodiment of the present application.
  • Table 1 exemplarily shows the fields included in the RTCP data packet shown in FIG. 5 , and the meaning of each field.
  • the field version (version, V) indicates that the version number of the current protocol is 2, and the size of the field V is 2 bits. There is no improvement or extension to Field V in this application.
  • Field padding represents a padding flag, and the size of field P is 1 bit.
  • One or more padding bytes are included at the end of the packet, and the padding bits indicate that the packet has been padded beyond its natural size.
  • the value of field P is set to 1, it means that there are padding bits after the data packet, and when the value of field P is set to 0, it means that there are padding bits after the data packet.
  • the last byte in the padding byte is the padding bit count, which indicates how many padding bits are added in total. There is no improvement or extension to Field P in this application.
  • Field subtype (subtype, ST): The size of the field subtype is 5 bits to allow a group of APP data packets to be defined with a unique name, or for any application-related definition data.
  • Bit7-Bit3 reserved.
  • This application has an extension for the field PT, and the extension part includes a request for changing the screen-casting extension capability set.
  • Field packet type When PT is a constant 204, to identify it as an RTCP APP packet.
  • the field PT indicates the type of the message, and the size of the field PT is 8 bits.
  • Five standard packet types are defined in the RTP specification, which are not limited to five standard packet types, but may also be other five standard packet types.
  • the value of the field PT is 204, it indicates that the packet format is the APP format. This application does not improve or expand the field PT.
  • SSRC Field Synchronization Source Identifier
  • the size of the field SSRC is 2 bytes.
  • Synchronization source identifier used to identify a synchronization source. This identifier is randomly chosen, but to ensure that any two synchronization source identifiers in the same RTP session are different, RTP must detect and resolve conflicts. This application does not improve or extend the field SSRC.
  • the field name (name) represents the application-defined name. This field is a name chosen by the person who defines the set of APP packets. Application creators may choose to use the application name and then coordinate the assignment of subtypes to the value application that wants to define the new packet type for others. Also, the name is interpreted as a sequence of four ASCII characters, with uppercase and lowercase characters treated differently.
  • the UI of this application is extended with the field name (name), and the field name (name) includes the screen casting service (Cast Plus).
  • Field application-dependent data (application-dependent data A): This field is used to identify the content of the data packet, and the data length is 64 bits.
  • the extended content of the field application-dependent data A includes color: color mode: SRGB/P3/Aodble; color range: full/limited; color primary color: BT.601PAL; transmission characteristics: BT.601; matrix system: BT. 470.
  • Basic image format Coding method: H.264/AVC; H.265/HEVC; H.266P8/P9; frame rate: 25/30fps/60fps/90fps/120fps.
  • Bit rate xxMbps; frame interval: 1.0/2.0, etc.; GOP: i-frame-interval*frame-rate.
  • Display size: height 2400; width 1080.
  • Field length field (Length) refers to the length of the sum of the header and data, in bytes, and the total length field is 16 bits.
  • Each data link layer has its own frame format, which includes the maximum length of the data field in the frame format, which is called the maximum transmission unit MTU.
  • MTU maximum transmission unit
  • the total length of the datagram cannot exceed the value of the corresponding MTU. If the length of the datagram exceeds the value for MTU, the datagram will be fragmented.
  • the "total length" field in the header of the datagram refers to the sum of the header length and data length of each fragment after fragmentation. There is no improvement or extension to the field length field (Length) in this application.
  • SSRC Field synchronization source
  • the size of the synchronization source is 4 bytes, and the synchronization source identifier is used to identify a synchronization source. This identifier is randomly chosen, but is guaranteed to be different for any two SSRCs in the same RTP session. And the sender's synchronization source identifier is the same as the synchronization source identifier in the corresponding RTP packet.
  • FIG. 6 shows a schematic structural diagram of the electronic device 100 .
  • the electronic device 100 may be a cell phone, tablet computer, desktop computer, laptop computer, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, as well as cellular telephones, personal digital assistants (personal digital assistants) digital assistant (PDA), augmented reality (AR) devices, virtual reality (VR) devices, artificial intelligence (AI) devices, wearable devices, in-vehicle devices, smart home devices and/or Smart city equipment, the embodiments of the present application do not specifically limit the specific type of the electronic equipment.
  • PDA personal digital assistants
  • AR augmented reality
  • VR virtual reality
  • AI artificial intelligence
  • the electronic device 100 may include a processor 110, an external memory interface 121, an internal memory 120, a universal serial bus (USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195 and so on.
  • SIM Subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • baseband processor baseband processor
  • neural-network processing unit neural-network processing unit
  • the controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
  • the wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 may provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low frequency baseband signal is processed by the baseband processor and passed to the application processor.
  • the application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared technology (IR).
  • WLAN wireless local area networks
  • BT Bluetooth
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared technology
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
  • the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou navigation satellite system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
  • global positioning system global positioning system, GPS
  • global navigation satellite system global navigation satellite system, GLONASS
  • Beidou navigation satellite system beidou navigation satellite system, BDS
  • quasi-zenith satellite system quadsi -zenith satellite system, QZSS
  • SBAS satellite based augmentation systems
  • the wireless communication module 160 can be used to establish a communication connection with the large-screen device 200 (for example, a Wi-Fi direct communication connection, a Bluetooth communication connection, etc.), and based on the communication connection, the content displayed on the user interface of the electronic device 100 is encoded and sent to the large-screen device. screen device 200. That is, the wireless communication module 160 can support content sharing between the electronic device 100 and the large-screen device 200 based on cooperative screencasting (eg, miracast).
  • a communication connection for example, a Wi-Fi direct communication connection, a Bluetooth communication connection, etc.
  • the electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • Display screen 194 is used to display images, videos, and the like.
  • Display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light).
  • LED diode AMOLED
  • flexible light-emitting diode flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
  • the electronic device 100 may include one or N display screens 194 , where N is a positive integer greater than one.
  • the display screen 194 is used to display the user interface implemented on the electronic device 100 mentioned in the embodiments of the present application.
  • the user interface For the specific implementation of the user interface, reference may be made to related descriptions of subsequent method embodiments.
  • the electronic device 100 may implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
  • the ISP is used to process the data fed back by the camera 193 .
  • the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin tone.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193 .
  • the camera 193 is used to capture still images or video.
  • the object is projected through the lens to generate an optical image onto the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
  • a digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy and so on.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs.
  • the electronic device 100 can play or record videos of various encoding formats, such as: Moving Picture Experts Group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
  • MPEG Moving Picture Experts Group
  • MPEG2 moving picture experts group
  • MPEG3 MPEG4
  • MPEG4 Moving Picture Experts Group
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • Applications such as intelligent cognition of the electronic device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
  • the internal memory 120 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).
  • RAM random access memories
  • NVM non-volatile memories
  • Random access memory can include static random-access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronization Dynamic random access memory (double data rate synchronous dynamic random access memory, DDR SDRAM, such as fifth-generation DDR SDRAM is generally called DDR5 SDRAM), etc.;
  • SRAM static random-access memory
  • DRAM dynamic random access memory
  • SDRAM synchronous dynamic random access memory
  • DDR SDRAM double data rate synchronous dynamic random access memory
  • DDR SDRAM double data rate synchronous dynamic random access memory
  • DDR SDRAM double data rate synchronous dynamic random access memory
  • fifth-generation DDR SDRAM is generally called DDR5 SDRAM
  • Non-volatile memory may include magnetic disk storage devices, flash memory.
  • Flash memory can be divided into NOR FLASH, NAND FLASH, 3D NAND FLASH, etc. according to the operating principle, and can include single-level memory cell (SLC), multi-level memory cell (multi-level memory cell, SLC) according to the level of storage cell potential.
  • cell, MLC multi-level memory cell
  • TLC triple-level cell
  • QLC quad-level cell
  • UFS universal flash storage
  • eMMC embedded multimedia memory card
  • the random access memory can be directly read and written by the processor 110, and can be used to store executable programs (eg, machine instructions) of an operating system or other running programs, and can also be used to store data of users and application programs.
  • executable programs eg, machine instructions
  • the random access memory can be directly read and written by the processor 110, and can be used to store executable programs (eg, machine instructions) of an operating system or other running programs, and can also be used to store data of users and application programs.
  • the non-volatile memory can also store executable programs and store data of user and application programs, etc., and can be loaded into the random access memory in advance for the processor 110 to directly read and write.
  • the external memory interface 121 can be used to connect an external non-volatile memory, so as to expand the storage capacity of the electronic device 100 .
  • the external non-volatile memory communicates with the processor 110 through the external memory interface 121 to realize the data storage function. For example, save music, video, etc. files in external non-volatile memory.
  • the electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.
  • the audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
  • Speaker 170A also referred to as a "speaker" is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also referred to as "earpiece" is used to convert audio electrical signals into sound signals.
  • the voice can be answered by placing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through a human mouth, and input the sound signal into the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which can implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may further be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
  • the earphone jack 170D is used to connect wired earphones.
  • the earphone interface 170D may be the USB interface 130, or may be a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals.
  • the pressure sensor 180A may be provided on the display screen 194 .
  • the capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
  • the electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon, the instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the motion attitude of the electronic device 100 .
  • the angular velocity of electronic device 100 about three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B detects the shaking angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse motion to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenarios.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 can detect the opening and closing of the flip holster using the magnetic sensor 180D.
  • the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D. Further, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, characteristics such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes).
  • the magnitude and direction of gravity can be detected when the electronic device 100 is stationary. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
  • the electronic device 100 can measure the distance through infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
  • Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • the light emitting diodes may be infrared light emitting diodes.
  • the electronic device 100 emits infrared light to the outside through the light emitting diode.
  • Electronic device 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100 . When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100 .
  • the electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
  • Proximity light sensor 180G can also be used in holster mode, pocket mode automatically unlocks and locks the screen.
  • the ambient light sensor 180L is used to sense ambient light brightness.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket, so as to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, accessing application locks, taking pictures with fingerprints, answering incoming calls with fingerprints, and the like.
  • the temperature sensor 180J is used to detect the temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J in order to reduce power consumption and implement thermal protection.
  • the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 caused by the low temperature.
  • the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch device”.
  • the touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to touch operations may be provided through display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the location where the display screen 194 is located.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the pulse of the human body and receive the blood pressure beating signal.
  • the bone conduction sensor 180M can also be disposed in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibration bone block obtained by the bone conduction sensor 180M, so as to realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the function of heart rate detection.
  • the keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key.
  • the electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100 .
  • Motor 191 can generate vibrating cues.
  • the motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback.
  • touch operations acting on different applications can correspond to different vibration feedback effects.
  • the motor 191 can also correspond to different vibration feedback effects for touch operations on different areas of the display screen 194 .
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like.
  • the SIM card interface 195 is used to connect a SIM card.
  • the SIM card can be contacted and separated from the electronic device 100 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195 .
  • the electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card and so on. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 is also compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication.
  • the electronic device 100 employs an eSIM, ie: an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiment of the present invention takes an Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 as an example.
  • FIG. 7 is a block diagram of a software structure of an electronic device 100 according to an embodiment of the present invention.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces.
  • the Android system is divided into four layers, which are, from top to bottom, an application layer, an application framework layer, an Android runtime (Android runtime) and a system library, and a kernel layer.
  • the application layer can include a series of application packages.
  • the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
  • a window manager is used to manage window programs.
  • the window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, take screenshots, etc.
  • Content providers are used to store and retrieve data and make these data accessible to applications.
  • the data may include video, images, audio, calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. View systems can be used to build applications.
  • a display interface can consist of one or more views.
  • the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
  • the phone manager is used to provide the communication function of the electronic device 100 .
  • the management of call status including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localization strings, icons, pictures, layout files, video files and so on.
  • the notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages, and can disappear automatically after a brief pause without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also display notifications in the status bar at the top of the system in the form of graphs or scroll bar text, such as notifications of applications running in the background, and notifications on the screen in the form of dialog windows. For example, text information is prompted in the status bar, a prompt sound is issued, the electronic device vibrates, and the indicator light flashes.
  • Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
  • the core library consists of two parts: one is the function functions that the java language needs to call, and the other is the core library of Android.
  • the application layer and the application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, safety and exception management, and garbage collection.
  • a system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
  • surface manager surface manager
  • media library Media Libraries
  • 3D graphics processing library eg: OpenGL ES
  • 2D graphics engine eg: SGL
  • the Surface Manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
  • 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display drivers, camera drivers, audio drivers, and sensor drivers.
  • FIG. 7 is only a schematic example; the software structure of the electronic device 100 provided in this embodiment of the present application may also adopt other software architectures, such as The software architecture of Linux or other operating systems.
  • FIG. 8 shows the hardware structure of the large-screen device 200 .
  • the large-screen device 200 may include: a video codec 221, a processor 222, a memory 223, a wireless communication processing module 224, a power switch 225, a wired LAN communication processing module 226, a high-definition multimedia interface (high-definition multimedia interface) definition multimedia interface, HDMI) communication processing module 227, USB communication processing module 228, display screen 229, audio module 230.
  • the individual modules can be connected via a bus. in:
  • the processor 222 may be used to read and execute computer readable instructions.
  • the processor 222 may mainly include a controller, an arithmetic unit and a register.
  • the controller is mainly responsible for instruction decoding, and sends out control signals for the operations corresponding to the instructions.
  • the arithmetic unit is mainly responsible for performing fixed-point or floating-point arithmetic operations, shift operations, and logical operations, and can also perform address operations and conversions.
  • Registers are mainly responsible for saving register operands and intermediate operation results temporarily stored during instruction execution.
  • the hardware architecture of the processor 222 may be an application specific integrated circuit (ASIC) architecture, a MIPS architecture, an ARM architecture, an NP architecture, or the like.
  • ASIC application specific integrated circuit
  • the wireless communication processing module 224 may include a WLAN communication processing module 224A, and may further include a Bluetooth (BT) communication processing module 224B, an NFC processing module 224C, a cellular mobile communication processing module (not shown), and the like.
  • BT Bluetooth
  • NFC NFC
  • cellular mobile communication processing module not shown
  • the wireless communication processing module 224 may be configured to establish a communication connection with the electronic device 100, and receive encoded data sent by the electronic device 100 based on the communication connection.
  • the WLAN communication processing module 224A can be used to establish a Wi-Fi Direct communication connection with the electronic device 100
  • the Bluetooth (BT) communication processing module 224B can be used to establish a Bluetooth communication connection with the electronic device 100
  • the NFC processing module 224C can be used to establish a Bluetooth communication connection with the electronic device 100 Establish an NFC connection, etc. That is, the wireless communication processing module 224 can support content sharing between the electronic device 100 and the large-screen device 200 through cooperative screen projection.
  • the wireless communication processing module 224 can monitor signals transmitted by the electronic device 100 , such as probe requests and scan signals, discover the electronic device 100 , and establish a communication connection with the electronic device 100 . In another embodiment, the wireless communication processing module 224 may also transmit signals, such as detection requests and scanning signals, so that the large-screen device 200 can discover the electronic device 100 and establish a communication connection (such as a Wi-FiP2P connection with the electronic device 100 ) ).
  • the wireless communication processing module 224 may also receive a scene notified by the electronic device 100 .
  • the processor 222 can parse and learn the scene, adaptively select a play strategy corresponding to the scene, and use the play strategy to call modules such as the display screen 229 and the audio module 230 to play the content sent by the electronic device 100 .
  • the video codec 221 is used to compress or decompress digital video.
  • the video codec 221 may decompress the screencast content from the electronic device 100 .
  • the large-screen device 200 may support one or more video codecs, and may play videos in one or more encoding formats. For example: MPEG1, MPEG2, MPEG3, MPEG4, etc.
  • the processor 222 may be configured to parse a signal received by the wireless communication processing module 224, such as a broadcast detection request of the large-screen device 200, and the like.
  • the processor 222 may be configured to perform corresponding processing operations according to the parsing result, such as generating a probe response, and the like.
  • the processor 222 may be used to drive the display screen 229 to perform display according to the decompression result of the video codec 221 .
  • Memory 223 is coupled to processor 222 for storing various software programs and/or sets of instructions.
  • memory 223 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other non-volatile solid-state storage devices.
  • the memory 223 can store operating systems, such as embedded operating systems such as uCOS, VxWorks, RTLinux, Harmony, and Android.
  • the memory 223 may also store communication programs that may be used to communicate with the large screen device 200, one or more servers, or additional devices.
  • the power switch 225 can be used to control the power supply from the power source to the large screen device 200 .
  • the wired LAN communication processing module 226 can be used to communicate with other devices in the same LAN through the wired LAN, and can also be used to connect to the WAN through the wired LAN, and can communicate with the devices in the WAN.
  • the HDMI communication processing module 227 may be used to communicate with other devices through an HDMI interface (not shown).
  • the USB communication processing module 228 may be used to communicate with other devices through a USB interface (not shown).
  • the large-screen device 200 can connect an external display screen 300 through a USB interface, and the large-screen device 200 can transmit the displayed screen projection image frame to the display screen 300 .
  • Display screen 229 may be used to display images, video, and the like.
  • the display screen 229 can be LCD, OLED, AMOLED, FLED, QLED and other display screens.
  • For the content displayed on the display screen 229 reference may be made to related descriptions of subsequent method embodiments.
  • the audio module 230 can be used to output audio signals through the audio output interface, so that the large-screen device 200 can support audio playback.
  • the audio module 230 can also be used to receive audio data through the audio input interface.
  • the audio module 230 may include, but is not limited to, a microphone, a speaker, a receiver, and the like.
  • the large-screen device 200 may further include a serial interface such as an RS-232 interface.
  • the serial interface can be connected to other devices, such as audio amplifiers such as speakers, so that the display and audio amplifiers can cooperate to play audio and video.
  • the structure shown in FIG. 8 does not constitute a specific limitation on the large-screen device 200 .
  • the large-screen device 200 may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the software system of the large-screen device 200 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the software system of the large-screen device 200 includes but is not limited to Linux or other operating systems. For Huawei's Hongmeng system.
  • FIG. 9 shows the hardware structure of the display device 300 .
  • the display device 300 may include: a video codec 321, a processor 322, a memory 323, a wireless communication processing module 324, a power switch 325, a wired LAN communication processing module 326, a high definition multimedia interface (high definition multimedia interface) multimedia interface, HDMI) communication processing module 327, USB communication processing module 328, display screen 329.
  • the individual modules can be connected via a bus. in:
  • the processor 322 may be used to read and execute computer readable instructions.
  • the processor 322 may mainly include a controller, an operator and a register.
  • the controller is mainly responsible for instruction decoding, and sends out control signals for the operations corresponding to the instructions.
  • the arithmetic unit is mainly responsible for performing fixed-point or floating-point arithmetic operations, shift operations, and logical operations, and can also perform address operations and conversions.
  • Registers are mainly responsible for saving register operands and intermediate operation results temporarily stored during instruction execution.
  • the hardware architecture of the processor 322 may be an application specific integrated circuit (ASIC) architecture, a MIPS architecture, an ARM architecture, an NP architecture, or the like.
  • ASIC application specific integrated circuit
  • the wireless communication processing module 324 may include a WLAN communication processing module 324A, and may further include a Bluetooth (BT) communication processing module 324B, an NFC processing module 324C, a cellular mobile communication processing module (not shown), and the like.
  • BT Bluetooth
  • NFC NFC
  • cellular mobile communication processing module not shown
  • the wireless communication processing module 324 may be configured to establish a communication connection with the large-screen device 200, and receive encoded data sent by the large-screen device 200 based on the communication connection.
  • the WLAN communication processing module 324A can be used to establish a Wi-Fi direct communication connection with the large-screen device 200
  • the Bluetooth (BT) communication processing module 324B can be used to establish a Bluetooth communication connection with the large-screen device 200
  • the NFC processing module 324C can be used to communicate with The large-screen device 200 establishes an NFC connection and the like.
  • the wireless communication processing module 324 can monitor the signals transmitted by the large-screen device 200 , such as detection requests and scanning signals, discover the large-screen device 200 , and establish a communication connection with the large-screen device 200 . In another embodiment, the wireless communication processing module 324 can also transmit signals, such as detection requests and scan signals, so that the display device 300 can discover the large-screen device 200 and establish a communication connection with the large-screen device 200 (such as Wi-FiP2P connect).
  • signals transmitted by the large-screen device 200 such as detection requests and scanning signals
  • the wireless communication processing module 324 can also transmit signals, such as detection requests and scan signals, so that the display device 300 can discover the large-screen device 200 and establish a communication connection with the large-screen device 200 (such as Wi-FiP2P connect).
  • the video codec 321 is used to compress or decompress digital video.
  • the video codec 321 may decompress the screencast content from the large-screen device 200 .
  • the display device 300 may support one or more video codecs, and may play videos in one or more encoding formats. For example: MPEG1, MPEG2, MPEG3, MPEG4, etc.
  • the processor 322 may be configured to parse the signal received by the wireless communication processing module 324, such as a broadcast probe request of the display device 300, and the like.
  • the processor 322 may be configured to perform corresponding processing operations according to the parsing results, such as generating a probe response, and the like.
  • the processor 322 can be used to drive the display screen 329 to perform display according to the decompression result of the video codec 321 .
  • Memory 323 is coupled to processor 322 for storing various software programs and/or sets of instructions.
  • memory 323 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other non-volatile solid-state storage devices.
  • the memory 323 can store operating systems, such as embedded operating systems such as uCOS, VxWorks, RTLinux, Harmony, and Android.
  • the memory 323 may also store communication programs that can be used to communicate with the display device 300, one or more servers, or additional devices.
  • the power switch 325 may be used to control the supply of power to the display device 300 from a power source.
  • the wired LAN communication processing module 326 can be used to communicate with other devices in the same LAN through the wired LAN, and can also be used to connect to the WAN through the wired LAN, and can communicate with the devices in the WAN.
  • the HDMI communication processing module 327 may be used to communicate with other devices through an HDMI interface (not shown).
  • the USB communication processing module 328 may be used to communicate with other devices through a USB interface (not shown).
  • Display screen 329 may be used to display images, video, and the like.
  • the display screen 329 can be LCD, OLED, AMOLED, FLED, QLED and other display screens.
  • For the content displayed on the display screen 329 reference may be made to related descriptions of subsequent method embodiments.
  • the display device 300 may also include a serial interface such as an RS-232 interface.
  • the serial interface can be connected to other devices, such as audio amplifiers such as speakers, so that the display and audio amplifiers can cooperate to play audio and video.
  • the structure shown in FIG. 9 does not constitute a specific limitation on the display device 300 .
  • the display device 300 may include more or less components than those shown in the drawings, or combine some components, or separate some components, or arrange different components.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the software system of the display device 300 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture, or the like.
  • the software system of the display device 300 includes but is not limited to Linux or other operating systems. For Huawei's Hongmeng system.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

一种投屏显示参数调节方法,包括:大屏设备(200)与电子设备(100)建立第一投屏连接,电子设备(100)与显示设备(300)建立第二投屏连接。大屏设备(200)将根据大屏设备(200)的显示参数、电子设备(100)的显示参数和显示设备(300)的显示参数协商得到目标显示参数,目标显示参数包括目标编码帧率,以使得目标编码帧率小于显示设备(300)的显示帧率或解码帧率,或者大屏设备(200)的显示帧率大于目标编码帧率。之后,大屏设备(200)将根据目标显示参数对投屏内容进行处理,并发送至显示设备(300)。这样,解决了在投屏系统上外接显示屏时,显示屏上显示的投屏内容与音频不同步的问题,提高了用户体验。

Description

一种投屏显示参数调节方法
本申请要求于2021年04月22日提交中国专利局、申请号为202110437451.1、申请名称为“一种投屏显示参数调节方法”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及投屏技术领域,尤其涉及一种投屏显示参数调节方法。
背景技术
随着网络通信技术的发展,利用智能电视的大屏特性、智能手机和平板电脑的便携性,通过多屏幕协同工作有助于提升用户体验。示例性的,当手机与个人电脑(personal computer,PC)进行协同投屏时,手机和PC会协商显示帧率,之后,手机和PC根据协商之后的显示帧率显示投屏内容。
之后,当PC侧需要扩展显示屏时,若外接显示屏没有音频播放模块,外接显示屏只会显示PC侧传输的图像。当外接显示屏的显示帧率低于手机和PC根据协商的显示帧率时,外接显示屏显示的图像与PC侧显示的图像不一致,导致外接显示屏显示的投屏内容与音频不同步。
发明内容
本申请提供了一种投屏显示参数调节方法,解决了在投屏系统上外接显示屏时,显示屏上显示的投屏内容与音频不同步的问题,提供了用户体验。
第一方面,本申请提供了一种投屏系统,所述系统包括电子设备、大屏设备和显示设备;所述大屏设备,用于:与所述电子设备建立第一投屏连接;与所述显示设备建立第二投屏连接;所述电子设备,用于将第一显示参数发送至所述大屏设备;其中,所述第一显示参数包括所述电子设备的第一编码帧率;所述显示设备,用于将第二显示参数发送至所述大屏设备;其中,所述第二显示参数包括所述显示设备的第一解码帧率和第一显示帧率;所述大屏设备,还用于:接收所述电子设备发送的所述第一显示参数;接收所述显示设备发送的所述第二显示参数;获取所述大屏设备的显示参数三,所述显示参数三包括第二编码帧率、第二解码帧率和第二显示帧率;基于所述第一显示参数、所述第二显示参数和所述显示参数三,确定出目标显示参数,其中,所述目标显示参数包括目标编码帧率,所述目标编码帧率小于等于所述第一编码帧率、所述第一解码帧率、所述第一显示帧率、所述第二编码帧率、所述第二解码帧率、所述二显示帧率中的最小值;基于所述目标显示参数中的所述目标编码帧率,编码出第一投屏内容,并将所述第一投屏内容投屏至所述显示设备。
通过第一方面的系统,在投屏系统上外接显示屏时,新组成的投屏系统会协商投屏系统内各个设备的显示参数,防止在投屏系统上外接显示屏时,显示屏上显示的投屏内容与音频不同步的问题,提供了用户体验。
结合第一方面的系统,在一种可能的实现方式中,在所述大屏设备基于所述目标显示参数中的所述目标编码帧率,编码出第一投屏内容,并将所述第一投屏内容投屏至所述显示设备之前,所述大屏设备,还用于:将所述目标显示参数发送给所述电子设备,其中,所述目 标显示参数用于指示所述电子设备以所述目标编码帧率编码出第二投屏内容并发送至所述大屏设备;所述电子设备,还用于:以所述目标编码帧率编码出第二投屏内容;向所述大屏设备发送所述第二投屏内容;所述大屏设备,还用于:接收所述电子设备发送的所述第二投屏内容;显示所述第二投屏内容。
结合第一方面的系统,在一种可能的实现方式中,所述大屏设备,具体用于:在所述大屏设备与所述电子设备建立所述第一投屏连接之后,与所述显示设备建立所述第二投屏连接;或者,在所述大屏设备与所述显示设备建立所述第二投屏连接之后,与所述电子设备建立所述第一投屏连接。
结合第一方面的系统,在一种可能的实现方式中,在所述大屏设备接收所述电子设备发送的所述第一显示参数之前,所述大屏设备,还用于:向所述电子设备发送第一请求,所述第一请求用于指示所述电子设备发送所述第一显示参数至所述大屏设备;所述电子设备,还用于:接收所述大屏设备发送的所述第一请求;响应于所述第一请求,向所述大屏设备发送所述第一显示参数;所述大屏设备,还用于:接收所述电子设备发送的所述第一显示参数。
结合第一方面的系统,在一种可能的实现方式中,所述大屏设备,具体用于:确定出所述第二编码帧率大于所述第一解码帧率或者所述第二编码帧率大于所述第一显示帧率或者所述第二编码帧率小于所述第二显示帧率时,向所述电子设备发送所述第一请求。
结合第一方面的系统,在一种可能的实现方式中,所述第一显示参数还包括第一编码类型和/或第一屏幕分辨率;所述第二显示参数还包括第二编码类型和/或第二屏幕分辨率;所述目标显示参数还包括目标编码类型和/或目标屏幕分辨率;其中,所述目标编码类型为所述第一编码类型和所述第二编码类型共有的编码类型,所述目标屏幕分辨率为所述第一屏幕分辨率和所述第二屏幕分辨率共有的屏幕分辨率。
第二方面,本申请提供了一种投屏显示参数调节方法,方法包括:大屏设备与电子设备建立第一投屏连接,所述大屏设备与显示设备建立第二投屏连接;所述大屏设备接收所述电子设备发送的第一显示参数,所述第一显示参数包括所述电子设备的第一编码帧率;所述大屏设备接收所述显示设备发送的第二显示参数,所述第二显示参数包括所述显示设备的第一解码帧率和第一显示帧率;所述大屏设备获取所述大屏设备的显示参数三,所述显示参数三包括第二编码帧率、第二解码帧率和第二显示帧率;所述大屏设备基于所述第一显示参数、所述第二显示参数和所述显示参数三,确定出目标显示参数,其中,所述目标显示参数包括目标编码帧率,所述目标编码帧率小于等于所述第一编码帧率、所述第一解码帧率、所述第一显示帧率、所述第二编码帧率、所述第二解码帧率、所述二显示帧率中的最小值;
所述大屏设备基于所述目标显示参数中的所述目标编码帧率,编码出第一投屏内容,并将所述第一投屏内容投屏至所述显示设备。
通过第一方面的方法,在投屏系统上外接显示屏时,新组成的投屏系统会协商投屏系统内各个设备的显示参数,防止在投屏系统上外接显示屏时,显示屏上显示的投屏内容与音频不同步的问题,提供了用户体验。
结合第一方面的方法,在一种可能的实现方式中,在所述大屏设备基于所述目标显示参数中的所述目标编码帧率,编码出第一投屏内容,并将所述第一投屏内容投屏至所述显示设备之前,所述方法还包括:所述大屏设备将所述目标显示参数发送给所述电子设备,其中,所述目标显示参数用于指示所述电子设备以所述目标编码帧率编码出第二投屏内容并发送至所述大屏设备;所述大屏设备接收到所述电子设备发送的所述第二投屏内容;所述大屏设备 显示所述第二投屏内容。
结合第一方面的方法,在一种可能的实现方式中,大屏设备与电子设备建立第一投屏连接,所述大屏设备与显示设备建立第二投屏连接,具体包括:在所述大屏设备与所述电子设备建立所述第一投屏连接之后,所述大屏设备与所述显示设备建立所述第二投屏连接;或者,在所述大屏设备与所述显示设备建立所述第二投屏连接之后,所述大屏设备与所述电子设备建立所述第一投屏连接。
结合第一方面的方法,在一种可能的实现方式中,在所述大屏设备接收所述电子设备发送的所述第一显示参数之前,所述方法还包括:所述大屏设备向所述电子设备发送第一请求,所述第一请求用于指示所述电子设备发送所述第一显示参数至所述大屏设备。
结合第一方面的方法,在一种可能的实现方式中,所述大屏设备向所述电子设备发送第一请求,具体包括:所述大屏设备在确定出所述第二编码帧率大于所述第一解码帧率或者所述第二编码帧率大于所述第一显示帧率或者所述第二编码帧率小于所述第二显示帧率时,所述大屏设备向所述电子设备发送所述第一请求。
结合第一方面的方法,在一种可能的实现方式中,所述第一显示参数还包括第一编码类型和/或第一屏幕分辨率;所述第二显示参数还包括第二编码类型和/或第二屏幕分辨率;所述目标显示参数还包括目标编码类型和/或目标屏幕分辨率;其中,所述目标编码类型为所述第一编码类型和所述第二编码类型共有的编码类型,所述目标屏幕分辨率为所述第一屏幕分辨率和所述第二屏幕分辨率共有的屏幕分辨率。
第三方面,本申请提供了一种电子设备,包括一个或多个处理器和一个或多个存储器。该一个或多个存储器与一个或多个处理器耦合,一个或多个存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当一个或多个处理器执行计算机指令时,使得电子设备执行上述任一方面任一项可能的实现方式中电子设备执行方法步骤。
第四方面,本申请提供了一种计算机存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行上述任一方面任一项可能的实现方式中电子设备执行方法步骤。
第五方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在计算机上运行时,使得电子设备执行上述任一方面任一项可能的实现方式中电子设备执行方法步骤。
第六方面,本申请实施例提供了一种大屏设备,包括一个或多个处理器和一个或多个存储器。该一个或多个存储器与一个或多个处理器耦合,一个或多个存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当一个或多个处理器执行计算机指令时,使得大屏设备执行上述任一方面任一项可能的实现方式中大屏设备执行方法步骤。
第七方面,本申请提供了一种计算机存储介质,包括计算机指令,当计算机指令在大屏设备上运行时,使得大屏设备执行上述任一方面任一项可能的实现方式中大屏设备执行方法步骤。
第八方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在计算机上运 行时,使得大屏设备执行上述任一方面任一项可能的实现方式中大屏设备执行方法步骤。
第九方面,本申请实施例提供了一种显示设备,包括一个或多个处理器和一个或多个存储器。该一个或多个存储器与一个或多个处理器耦合,一个或多个存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当一个或多个处理器执行计算机指令时,使得显示设备执行上述任一方面任一项可能的实现方式中显示设备执行方法步骤。
第十方面,本申请提供了一种计算机存储介质,包括计算机指令,当计算机指令在显示设备上运行时,使得显示设备执行上述任一方面任一项可能的实现方式中显示设备执行方法步骤。
第十一方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在计算机上运行时,使得显示设备执行上述任一方面任一项可能的实现方式中显示设备执行方法步骤。
附图说明
图1为本申请实施例提供的一种系统示意图;
图2A-图2D为本申请实施例提供的一组UI图;
图2E-图2F为本申请实施例提供的另一组UI图;
图3为本申请实施例提供的一种电子设备100与大屏设备200协商显示参数的方法流程图;
图3A-图3B为本申请实施例提供的一组电子设备100播放投屏内容一的UI图;
图4为本申请实施例提供的一种大屏设备200协商电子设备100、大屏设备200与显示设备300的显示参数过程的示意图;
图4A本申请实施例提供的一种电子设备100显示多媒体内容的UI图;
图5为本申请实施例提供的一种RTCP数据包格式示意图;
图6为本申请实施例提供的一种电子设备100的结构示意图;
图7为本申请实施例提供的一种电子设备100的软件结构框图;
图8为本申请实施例提供的一种大屏设备200的硬件结构;
图9为本申请实施例提供的一种显示设备300的硬件结构。
具体实施方式
下面将结合附图对本申请实施例中的技术方案进行清除、详尽地描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;文本中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,另外,在本申请实施例的描述中,“多个”是指两个或多于两个。
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为暗示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征,在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
本申请的说明书和权利要求书及附图中的术语“用户界面(user interface,UI)”,是应用程序或操作系统与用户之间进行交互和信息交换的介质接口,它实现信息的内部形式与用户可以接受形式之间的转换。应用程序的用户界面是通过java、可扩展标记语言(extensible markup language,XML)等特定计算机语言编写的源代码,界面源代码在终端设备上经过解析,渲染,最终呈现为用户可以识别的内容,比如图像、文本、按钮等控件。控件(control)也称为部件(widget),是用户界面的基本元素,典型的控件有工具栏(toolbar)、菜单栏(menu bar)、输入框、按钮(button)、滚动条(scrollbar)、图像和文本。界面中的控件的属性和内容是通过标签或者节点来定义的,比如XML通过<Textview>、<ImgView>、<VideoView>等节点来规定界面所包含的控件。一个节点对应界面中一个控件或属性,节点经过解析和渲染之后呈现为用户可视的内容。此外,很多应用程序,比如混合应用(hybrid application)的界面中通常还包含有网页。网页,也称为页面,可以理解为内嵌在应用程序界面中的一个特殊的控件,网页是通过特定计算机语言编写的源代码,例如超文本标记语言(hyper text markup language,HTML),层叠样式表(cascading style sheets,CSS),java脚本(JavaScript,JS)等,网页源代码可以由浏览器或与浏览器功能类似的网页显示组件加载和显示为用户可识别的内容。网页所包含的具体内容也是通过网页源代码中的标签或者节点来定义的,比如HTML通过<p>、<img>、<video>、<canvas>来定义网页的元素和属性。
用户界面常用的表现形式是图形用户界面(graphic user interface,GUI),是指采用图形方式显示的与计算机操作相关的用户界面。它可以是在电子设备的显示屏中显示的一个窗口、控件等界面元素。
目前,电子设备100(例如手机)可以与大屏设备200(例如个人电脑)建立投屏连接,之后,电子设备100将投屏内容投屏显示在大屏设备200上。在电子设备100将投屏内容显示在大屏设备200上之前,电子设备100会与大屏设备200协商投屏参数。具体的,大屏设备200将显示参数发送给电子设备100,电子设备100接收到大屏设备200发送的显示参数之后,与大屏设备200的显示参数进行协商,得到协商之后的目标显示参数。之后,电子设备100基于协商之后的目标显示参数对投屏内容进行处理并发送至大屏设备200,大屏设备200接收并显示投屏内容。
电子设备100与大屏设备200协商显示参数将在后续实施例详细介绍,本申请在此不再赘述。
投屏内容可以是视频、图片、音频或表格等等。
大屏设备200的显示参数包括以下任意一项或多项:屏幕分辨率、显示帧率、解码帧率、编码类型等等。
电子设备100的显示参数包括以下任意一项或多项:屏幕分辨率、编码帧率、编码类型等等。
目标显示参数包括以下任意一项或多项:屏幕分辨率、编码类型、编码帧率等等。
但是,当大屏设备200外接显示设备300时,大屏设备200将按照大屏设备200的显示参数对投屏内容进行处理,并发送至显示设备300,若显示设备300的显示帧率或解码帧率小于大屏设备200的编码帧率时,则显示设备300侧的图像帧会不断累积,导致显示设备300侧出现卡顿;或者由于大屏设备200的中央处理器(central processing unit,CPU)能力有限,导致大屏设备200的编码帧率小于大屏设备200的显示帧率。因此当大屏设备200按照编码帧率对投屏内容进行处理时,导致大屏设备200侧的图像帧不断累积,在大屏设备200将处 理后的投屏内容发送给显示设备300之前,图像帧在大屏设备200侧出现累积,导致,显示设备300侧显示的图像帧与大屏设备200播放的音频已经不同步了,影响用户体验。
因此,本申请以下实施例提供了一种投屏显示参数调节方法。该方法包括:大屏设备与电子设备建立第一投屏连接,电子设备与显示设备建立第二投屏连接。大屏设备将根据大屏设备的显示参数、电子设备的显示参数和显示设备的显示参数协商得到目标显示参数,目标显示参数包括目标编码帧率,以使得目标编码帧率小于显示设备的显示帧率或解码帧率,或者大屏设备200的显示帧率大于目标编码帧率。之后,大屏设备将根据目标显示参数对投屏内容进行处理,并发送至显示设备。这样,解决了在投屏系统上外接显示屏时,显示屏上显示的投屏内容与音频不同步的问题,提供了用户体验。
投屏连接可以是协同投屏连接。镜像投屏连接等等,本申请对于投屏连接的方式不做限定,本申请以下实施例以协同投屏连接为例进行说明。
接下来介绍本申请实施例提供的一种系统架构。
如图1所示,图1为本申请实施例提供的一种系统示意图。
首先,电子设备100与大屏设备200建立投屏连接,即电子设备100可以将投屏内容投屏显示在大屏设备200上。之后,大屏设备200侧可以通过USB接口等方式外接显示设备300。这样,大屏设备200将大屏设备200的显示内容显示在显示设备300上。
在一些实施例中,显示设备300可以是电子设备100与大屏设备200建立投屏连接之后,才与大屏设备200通过USB接口建立连接;在另一些实施例中,显示设备300可以是电子设备100与大屏设备200建立投屏连接之前,就与大屏设备200通过USB接口建立连接了。
电子设备100可以是手机、平板电脑、桌面型计算机、膝上型计算机、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、人工智能(artificial intelligence,AI)设备、可穿戴式设备、车载设备、智能家居设备和/或智慧城市设备,本申请实施例对该电子设备的具体类型不作特殊限制。电子设备100的软件系统包括但不限于
Figure PCTCN2022087679-appb-000001
Figure PCTCN2022087679-appb-000002
Linux或者其它操作系统。
Figure PCTCN2022087679-appb-000003
为华为的鸿蒙系统。
大屏设备200是指具有较大尺寸的显示屏的电子设备,例如电视机、台式电脑或者电子广告牌等。
显示设备300为图像(例如视频、图片等)输出设备,可用于显示图像(例如视频、图片等)。
在电子设备100与大屏设备200建立投屏连接时,电子设备100与大屏设备200之间可以通过无线通信技术连接并进行通信。这里的无线通信技术包括但不仅限于:无线局域网(wireless local area network,WLAN)技术、蓝牙(bluetooth)、红外线、近场通信(near field communication,NFC)、ZigBee以及后续发展中出现的其他无线通信技术等。为了描述方便,以下实施例将以电子设备100与大屏设备200之间通过无线保真直连(wireless fidelity direct,Wi-Fi direct)(又称为无线保真点对点(wirelessfidelity peer-to-peer,Wi-Fi P2P))技术通信为例进行说明。
电子设备100可以通过Wi-Fi P2P技术加入大屏显示设备200构建的WiFi P2P group,连接到大屏设备200,之后,电子设备100向大屏设备200发送同步对时信息(例如握手信息)来进行网络同步。在组网成功并完成同步之后,协同网络中的大屏设备200在电子设备100的控制下进行协同播放、协同录音和协同会议等等。即电子设备100通过建立的Wi-Fi P2P连接将投屏 内容发送给该大屏设备200,使得该大屏设备200显示和/或播放该投屏内容,从而完成投屏。投屏内容可包括但不限于图像(例如视频、图片等)和音频。
在一些实施例中,显示设备300可以是电子设备100与大屏设备200建立投屏连接之后,才与大屏设备200通过USB接口建立连接的。
则当电子设备100与大屏设备200建立投屏连接时,会协商显示参数,得到目标显示参数。电子设备100与大屏设备200通过目标显示参数进行协同投屏。电子设备100与大屏设备200协商显示参数将在后续实施例详细介绍,本申请在此不再赘述。
在电子设备100与大屏设备200建立协同投屏之后,大屏设备200通过USB接口等外接显示设备300,为了确保大屏设备200将投屏内容显示在显示设备300上时,显示设备300侧显示的投屏内容不会卡顿并且显示设备300侧显示的投屏内容与大屏设备200侧的声音时同步的。因此,大屏设备200在外接显示设备300时,大屏设备200(或者电子设备100)会协商电子设备100、大屏设备200和显示设备300三者的显示参数,得到目标显示参数。之后,电子设备100将按照目标显示参数对投屏内容进行处理,并发送至大屏设备200。大屏设备200也会按照目标显示参数对投屏内容进行处理,并发送至大屏设备显示设备300。大屏设备200协商电子设备100、大屏设备200和显示设备300三者的显示参数,得到目标显示参数将在后续实施例详细介绍,本申请在此不再赘述。
在另一些实施例中,当显示设备300是电子设备100与大屏设备200建立投屏连接之前,就与大屏设备200通过USB接口建立连接。
为了确保大屏设备200将投屏内容显示在显示设备300上时,显示设备300侧显示的投屏内容不会卡顿并且显示设备300侧显示的投屏内容与大屏设备200侧的声音时同步的。因此,电子设备100与大屏设备200建立协同投屏时,大屏设备200(或者电子设备100)会协商电子设备100、大屏设备200和显示设备300三者的显示参数,得到目标显示参数。之后,电子设备100将按照目标显示参数对投屏内容进行处理,并发送至大屏设备200。大屏设备200也会按照目标显示参数对投屏内容进行处理,并发送至大屏设备显示设备300。大屏设备200协商电子设备100、大屏设备200和显示设备300三者的显示参数,得到目标显示参数将在后续实施例详细介绍,本申请在此不再赘述。
下面结合UI图具体介绍电子设备100与大屏设备200如何建立投屏连接。
电子设备100可以通过以下任意一种方式与大屏设备200建立投屏连接。
方式一:
图2A-图2D示例性示出了电子设备100检测到的开启协同投屏功能的用户操作。
图2A示出了移动设备100上的示例性视频播放用户界面20。该用户界面20显示有:视频名称(勇敢的跨步)、视频播放进度(第1集)、视频播放时长(4分13秒)、视频总时长(7分33秒)、视频的热度(5946)、视频的总集数(23集全)、更多视频图标以及更多视频对应的图像。
如图2A及图2B所示,当电子设备100检测到在显示屏上的向下滑动手势时,响应于该滑动手势,移动设备100在用户界面20上显示窗口201。如图2B所示,窗口201中可以显示有控件202,控件202可接收开启/关闭移动设备100的协同投屏功能的操作(例如触摸操作、点击操作)。控件202的表现形式可以包括图标和/或文本(例如文本“协同投屏”)。窗口201中还可以显示有其他功能例如Wi-Fi、蓝牙、手电筒、响铃、自动旋转、即时分享、飞行模式、移动数据、位置信息、截屏、护眼模式、热点、屏幕录制、NFC等开关控件,即检测 到开启协同投屏功能的用户操作。在一些实施例中,电子设备100检测到作用于控件202的用户操作后,可以更改控件202的显示形式,例如增加显示控件202时的阴影等。
不限于在图2A所示的主界面上,用户还可以在其他界面上输入向下滑动的手势,触发电子设备100显示窗口201。
不限于图2A及图2B示出的用户在窗口201中作用于控件202的用户操作,在本申请实施例中,开启协同投屏功能的用户操作还可以实现为其他形式,本申请实施例不作限制。
例如,电子设备100还可以显示设置(settings)应用提供的设置界面,该设置界面中可包括提供给用户的用于开启/关闭电子设备100的协同投屏功能的控件,用户可通过在该控件上输入用户操作来开启电子设备100的协同投屏功能。
检测到开启协同投屏功能的用户操作,电子设备100开启无线通信模块160中的Wi-Fi直连(图中未示出)、蓝牙或NFC中的一项或多项,并通过Wi-Fi直连、蓝牙、NFC中一项或多项发现该电子设备100附近的可投屏的电子设备。例如,电子设备100可以通过Wi-Fi直连发现附近的大屏设备200以及其他电子设备。
除了显示电子设备100发现的可接受协同投屏的电子设备的标识,电子设备100还可以显示其他信息,例如发现的电子设备的图像等,本申请实施例不作限制。
之后,示例性地,如图2C所示,电子设备100上弹出窗口203。窗口203包括:界面指示符204、图标205、一个或多个电子设备的图像206和标识207。
示例性地,如图2C所示,选择大屏设备200的用户操作可以是作用于大屏设备200对应的图像206和/或标识207上的用户操作。选择大屏设备200的用户操作还可以实现为其他形式,本申请实施例不作限制。
响应于该用户操作,电子设备100可以通过Wi-Fi直连、蓝牙、NFC中一项或多项无线通信技术和大屏设备200建立通信连接。例如,电子设备100和大屏设备200建立Wi-Fi直连通信连接。电子设备100和大屏设备200建立通信连接后,可以基于该通信连接进行能力协商,包括双方支持的编码格式、分辨率、音频格式、编码帧率、显示帧率、解码帧率等,便于后续执行的投屏内容的传输。
具体的,电子设备100可以通过录屏、录音等方式获取当前显示的多媒体内容(包含图像和/或音频),然后将获取的内容压缩后,通过和大屏设备200之间的通信连接发送给大屏设备200。以电子设备100和大屏设备200基于miracast共享多媒体内容为例,电子设备100可以根据miracast协议中的规定,通过录屏的方式获取显示屏显示的图像,使用H.264编码算法对该图像进行压缩;采集电子设备100所播放的音频,使用高级音频编码(advanced audio coding,AAC)算法对该音频进行压缩;然后将压缩后的音频数据和图像数据封装为传输流(transport stream,TS),之后对TS流按照实时传送协议(real-time transport protocol,RTP)进行编码并将编码后得到的数据通过Wi-Fi直连连接发送给大屏设备200。即,该多媒体内容通过流媒体的方式传输。
如图2D所示,电子设备100将当前显示的多媒体内容(包含图像和/或音频)传输至大屏设备200,大屏设备200接收电子设备100传输的当前显示的多媒体内容(包含图像和/或音频),并显示在大屏设备200的显示屏上。
大屏设备200接收到电子设备100基于通信连接发送的多媒体内容后,可以对该多媒体内容执行解码处理,从而获取多媒体内容。以电子设备100和大屏设备200基于miracast共享多媒体内容为例,大屏设备200可以基于与电子设备100之间的Wi-Fi直连通信连接接收到RTP编码的TS流,并可以按顺序对其执行RTP解码、TS流解封装、音画质处理/时延同 步处理,最后输出音视频,即播放多媒体内容。
方式二:
图2E-图2F示例性示出了电子设备100贴近大屏设备200的NFC感应区域,触发电子设备100开启协同投屏功能。
如图2E所示,电子设备100贴近大屏设备200的NFC感应区域,大屏设备200接收并响应电子设备100发出的连接请求,大屏设备200在显示屏上显示如图2F所示提示框208。
提示框208包括提示信息“是否允许HUA WEI P40连接此电脑?”“HUA WEI P40”是电子设备100的设备标识。
提示框208还包括允许控件209和拒绝控件210。允许控件209可以接收输入操作(例如单击),响应于输入操作(例如单击),大屏设备200通过NFC与电子设备100建立通信连接。拒绝控件210可以接收输入操作(例如单击),响应于输入操作(例如单击),大屏设备200拒绝与电子设备100建立通信连接。
示例性的,当允许控件209接收输入操作(例如单击),响应于输入操作(例如单击),大屏设备200通过NFC与电子设备100建立通信连接。电子设备100和大屏设备200建立通信连接后,可以基于该通信连接进行能力协商,包括双方支持的编码格式、分辨率、音频格式、编码帧率、显示帧率、解码帧率等,便于后续执行的投屏内容的传输。
具体的,电子设备100可以通过录屏、录音等方式获取当前显示的多媒体内容(包含图像和/或音频),然后将获取的内容压缩后,通过和大屏设备200之间的通信连接发送给大屏设备200。以电子设备100和大屏设备200基于miracast共享多媒体内容为例,电子设备100可以根据miracast协议中的规定,通过录屏的方式获取显示屏显示的图像,使用H.264编码算法对该图像进行压缩;采集电子设备100所播放的音频,使用高级音频编码(advanced audio coding,AAC)算法对该音频进行压缩;然后将压缩后的音频数据和图像数据封装为传输流(transport stream,TS),之后对TS流按照实时传送协议(real-time transport protocol,RTP)进行编码并将编码后得到的数据通过Wi-Fi直连连接发送给大屏设备200。即,该多媒体内容通过流媒体的方式传输。
电子设备100将当前显示的多媒体内容(包含图像和/或音频)传输至大屏设备200,大屏设备200接收电子设备100传输的当前显示的多媒体内容(包含图像和/或音频),并显示在大屏设备200的显示屏上,具体的,请参考上述图2D所示的实施例,本申请在此不再赘述。
接下来介绍电子设备100与大屏设备200通过WiFi P2P建立通信连接之后,电子设备100与大屏设备200协商显示参数的过程。
如图3所示,图3示例性示出了电子设备100与大屏设备200协商显示参数的方法流程图。
S301、电子设备100获取投屏内容一,投屏内容一包括第一图像或者投屏内容一包括第一图像和第一音频。
电子设备100可以采用录屏和/或录音等方式获取投屏内容一。
投屏内容一可以是如图2D所示的电子设备100显示的多媒体内容(包含第一图像或第一图像和第一音频)。
投屏内容一是电子设备100实时显示的内容。
需要说明的是,电子设备100显示的投屏内容一也可以只包括第一图像,本申请对于投 屏内容一的形式不做限定。
图3A-图3B示例性示出了电子设备100播放投屏内容一的UI图。
图3A示例性地示出电子设备100的用户界面30。该用户界面30可以包括一些应用程序的图标。例如,文件管理的图标301、电子邮件的图标302、音乐的图标303、华为视频的图标304、运动健康的图标305、天气的图标306、相机的图标307、通讯录的图标308、电话的图标309、信息的图标310。在一些实施例中,用户界面30可以包括更多或更少的应用程序的图标。在一些实施例中,用户界面30中可以包括一些与图3A示出的应用程序不同的应用程序的图标,此处不作限定。
电子设备100可以响应于作用于用户界面30上的华为视频的图标304上的用户操作,启动视频应用。图3B示例性示出了电子设备100启动视频应用后所显示的用户界面40。该用户界面40是华为视频应用提供的主页面。如图3B所示,用户界面40中显示有一个或多个视频图像401。视频的图像可以是动态的,也可以是静态的。此外,用户界面40还可以显示有底部菜单栏、搜索框、子频道入口等,本申请实施例对此不作限制。如图3B所示,电子设备100可以检测到作用于视频图像401上的用户操作,通过网络从华为视频应用对应的服务器中获取该视频图像401所指示的网络视频,并播放该网络视频。监听到用户操作的视频图像401所指示的网络视频,即为用户选择的网络视频。电子设备100将显示如图2A所示的视频播放用户界面20。对视频播放用户界面20的描述可以参考图2A的描述,本申请再此不再赘述。
S302、电子设备100与大屏设备200建立投屏连接。
电子设备100与大屏设备200建立连接的过程请参考图2A-图2D和图2E-图2F所示的实施例,本申请在此不再赘述。
电子设备100与大屏设备200建立连接之后,电子设备100与大屏设备200协商显示参数。具体的,请参考S303与S304的描述。
S303、电子设备100接收大屏设备200发送的报文一,报文一包括显示参数一,显示参数一包括解码帧率一、显示帧率一。
显示帧率一为大屏设备200在固定时间内(例如1s)可以显示的图像帧的数量。
解码帧率一为大屏设备200在固定时间内(例如1s)可以解码电子设备100传输的图像帧的数量。
显示参数一还包括其他的参数,例如屏幕分辨率一和编码类型一。显示参数一还可以包括其他更多的参数,本申请在此不做限定。
屏幕分辨率一为大屏设备200在水平方向和水平方向上显示的像素数量。示例性的,屏幕分辨率一为150×128,表示水平方向含有像素数为150个,垂直方向像素数128个。
编码类型一包括语音编码类型和图像流编码类型。示例性的,图像流编码类型包括以下任意一种:Xvid,AVC/H.264,MPEG1,MPEG2;语音编码类型包括以下任意一种:MP3、AAC。需要说明的是,图像流编码类型和语音编码类型还可以是其他的类型,本申请在此不做限定。
S304、电子设备100根据显示参数二和显示参数一得到目标显示参数一,目标显示参数 一包括编码帧率一,编码帧率二小于显示参数一和显示参数二中的帧率参数值的最小值。
显示参数二包括电子设备100的编码帧率二。编码帧率二为电子设备100每秒编码的音频数据帧的帧数。
显示参数二还包括其他的参数,例如屏幕分辨率二和编码类型二。显示参数二还可以包括其他更多的参数,本申请在此不做限定。
电子设备100接收到大屏设备200的显示参数一之后,电子设备100将比较显示参数一中显示帧率一、解码帧率一和显示参数二中编码帧率二的大小,得到三者中的最小值,并根据三者中最小值确定出编码帧率一,其中,编码帧率一小于等于显示帧率一、解码帧率一和编码帧率二中的最小值。
电子设备100还会协商显示参数一和显示参数二中其他的参数,以使得电子设备100与电子设备200的其他显示参数的参数信息达到一致。
示例性的,电子设备100确定出显示参数二中屏幕分辨率二,电子设备100比较屏幕分辨率二和屏幕分辨率一的大小,得到两者中的最小值,并根据两者中最小值确定出屏幕分辨率三,其中,屏幕分辨率三小于等于屏幕分辨率二和屏幕分辨率一中的最小值。
示例性的,电子设备100还会确定出显示参数二中编码类型二,电子设备100确定出编码类型二与编码类型一中共同的编码类型,作为电子设备100与电子设备200协商得到的编码类型三,编码类型三为编码类型二与编码类型一中共同的编码类型中的任意一种。
电子设备100还会协商显示参数一和显示参数二中其他的参数,办申请在此不在一一介绍。
因此,目标显示参数一除了包括编码帧率一之后,还包括编码类型三和屏幕分辨率三,目标显示参数一还可以包括其他的参数,本申请在此不再一一介绍。
S305、电子设备100向大屏设备200发送报文二,报文二包括目标显示参数一。
目标显示参数一包括编码帧率一。目标显示参数一还可以包括屏幕分辨率三和编码类型三。
电子设备100向大屏设备200发送报文二,报文二包括目标显示参数一。响应于电子设备100向大屏设备200发送的报文二,大屏设备200接收电子设备100向大屏设备200发送的报文二。
S306、电子设备100以目标显示参数一处理投屏内容一。
S307、电子设备100将以目标显示参数一处理后的投屏内容一发送至大屏设备200。
电子设备100可以通过录屏和/或录音等方式获取投屏内容一,并根据目标显示参数一对投屏内容一进行处理,得到以目标显示参数一处理后的投屏内容一。
电子设备100将以目标显示参数一处理后的投屏内容一进行压缩,之后,将以目标显示参数一处理后的投屏内容一发送至大屏设备200。
S308、大屏设备200接收以目标显示参数一处理后的投屏内容一,并显示投屏内容一。
响应于电子设备100发送的以目标显示参数一处理后的投屏内容一,大屏设备200接收以目标显示参数一处理后的投屏内容一,并按照顺序以第二解码率将以目标显示参数一处理后的投屏内容一解码、音画质处理,之后,大屏设备200显示投屏内容一。如图2D所示,图2D为大屏设备200显示投屏内容一的示意图。第二解码率的数值与编码帧率一的数值大 小一致。
电子设备100与大屏设备200建立投屏连接之后,电子设备100将投屏内容投屏显示在大屏设备200上。之后,大屏设备200侧可以通过USB接口等方式外接显示设备300。大屏设备200将协商电子设备100、大屏设备200与显示设备300的显示参数。接下来,将详细介绍大屏设备200协商电子设备100、大屏设备200与显示设备300的显示参数的过程。
在一些实施例中,也可以是电子设备100协商电子设备100、大屏设备200与显示设备300的显示参数,本申请对于协商显示参数的设备不做限定。本申请以下实施例以大屏设备200协商电子设备100、大屏设备200与显示设备300的显示参数为例进行详细说明。
如图4所示,图4示例性示出了大屏设备200协商电子设备100、大屏设备200与显示设备300的显示参数过程的示意图。
S401、电子设备100与大屏设备200建立投屏连接(第一投屏连接)。
电子设备100与大屏设备200建立投屏连接的过程请参考图2A-图2D和图2E-图2F所示的实施例,本申请在此不再赘述。
电子设备100与大屏设备200建立投屏连接之后,电子设备100将与大屏设备200将协商显示参数,电子设备100与大屏设备200协商显示参数之后,得到目标显示参数一,目标显示参数一包括编码帧率二、第三屏幕分辩率、编码类型三等等。电子设备100与大屏设备200协商显示参数的过程请参考图3所示的实施例,本申请再次不再赘述。
S402、大设备200接收第一操作,大屏设备200与显示设备300建立连接(第二投屏连接)。
大屏设备200侧可以通过USB接口等方式外接显示设备300,大屏设备200通过USB数据线与显示设备300建立连接。
在一些实施例中,在大屏设备200与显示设备300建立投屏连接之前,大屏设备200已经事先与显示设备300建立连接了。即S402也可以不存在。
S403、电子设备100向大屏设备200发送报文二,报文二显示参数二(第一显示参数)。
显示参数二包括电子设备100的编码帧率二(第一编码帧率)。显示参数一还可以包括屏幕分辨率二(第一屏幕分辨率)和编码类型二(第一编码类型)等等。
S404、显示设备300向大屏设备200发送报文三,报文三包括显示参数三(第二显示参数),显示参数三包括显示设备300的显示帧率三(第一显示帧率)、解码帧率三(第一解码帧率)。
显示帧率三为显示设备300在固定时间内(例如1s)可以显示的图像帧的数量。
解码帧率三为显示设备300在固定时间内(例如1s)可以解码大屏设备200传输的图像帧的数量。
显示参数三还包括其他的参数,例如屏幕分辨率四(第二屏幕分辨率)和编码类型四(第二编码类型)。显示参数三还可以包括其他更多的参数,本申请在此不做限定。
屏幕分辨率四为显示设备300在水平方向和水平方向上显示的像素数量。示例性的,屏幕分辨率四为160×128,表示水平方向含有像素数为160个,垂直方向像素数128个。
编码类型四包括语音编码类型和图像流编码类型。示例性的,图像流编码类型包括以下 任意一种:Xvid,AVC/H.264,MPEG1,MPEG2;语音编码类型包括以下任意一种:MP3、AAC。需要说明的是,图像流编码类型和语音编码类型还可以是其他的类型,例如画质和颜色等等,本申请在此不做限定。
在一些实施例中,当在大屏设备200与显示设备300建立投屏连接之前,大屏设备200已经事先与显示设备300建立连接了,则电子设备100需要将电子设备100的显示参数二发送至大屏设备200。
S405、大屏设备200根据显示参数一(第三显示参数)、显示参数二和显示参数三协商得到第二目标显示参数。
大屏设备200接收电子设备100发送的显示参数二和显示设备300发送的显示参数三后,同时,大屏设备200将获取大屏设备200的显示参数一。
其中,显示参数一包括大屏设备200的编码帧率三(第三编码帧率)、解码帧率一(第二解码帧率)、显示帧率一(第二显示帧率)。显示参数一还可以包括屏幕分辨率一(第三屏幕分辨率)和编码类型一(第三编码类型)等等。
显示参数二包括电子设备100的编码帧率二。显示参数一还可以包括屏幕分辨率二和编码类型二等等。
显示参数三包括显示设备300的显示帧率二、解码帧率二。显示参数三还包括显示设备300的编码类型四和屏幕分辨率四。
大屏设备200将比较显示参数一中编码帧率三、解码帧率一、显示帧率一与显示参数二中编码帧率二与显示参数三中显示帧率二、解码帧率二的大小,得到五个帧率参数的最小值,并根据五个帧率参数中的最小值确定出编码帧率四(目标编码帧率),其中,编码帧率四小于等于编码帧率三、解码帧率一、显示帧率一、编码帧率二、显示帧率二、解码帧率二中的最小值。
大屏设备200还会协商显示参数一、显示参数二和第三目标显示参数中其他的参数,以使得电子设备100、大屏设备200与显示设备300的其他显示参数的参数信息达到一致。
示例性的,大屏设备200确定出显示参数三中屏幕分辨率一、屏幕分辨率二和屏幕分辨率四的大小,得到三者中的最小值,并根据三者中最小值确定出屏幕分辨率五(目标屏幕分辨率),其中,屏幕分辨率五小于等于屏幕分辨率一、屏幕分辨率二和屏幕分辨率四中的最小值。
示例性的,大屏设备200还会确定出编码类型一、编码类型二与编码类型四中共同的编码类型,作为电子设备100、大屏设备200与显示设备300协商得到的编码类型五(目标编码类型),编码类型五为编码类型一、编码类型二与编码类型四中中共同的编码类型中的任意一种。
大屏设备200还会协商显示参数一、显示参数二和显示参数三中其他的参数,本申请在此不在一一介绍。
因此,第二目标显示参数(目标显示参数)除了包括编码帧率四之后,还包括编码类型五和屏幕分辨率五,第二目标显示参数还可以包括其他的参数,本申请在此不再一一介绍。
S406、大屏设备200向电子设设备100发送报文四,报文四包括第二目标显示参数。
在一些实施例中,报文四也可以称为第一新增扩展RTCP APP报文,该第一新增扩展RTCP APP报文包含关键投屏因子调整信息,该关键投屏因子调整信息可以为第二目标显示 参数,例如编码帧率四、编码类型五和屏幕分辨率五。
S407、大屏设备200向显示设备300发送报文五,报文五包括第二目标显示参数。
第二目标显示参数包括编码帧率四。目标显示参数一还可以包括屏幕分辨率五和编码类型五。
大屏设备200向电子设备100发送报文四,报文四包括第二目标显示参数。响应于大屏设备200向电子设备100发送的报文四,电子设备100接收大屏设备200发送的报文四。
同时,大屏设备200向显示设备300发送报文五,报文五包括第二目标显示参数。响应于大屏设备200向显示设备300发送的报文五,显示设备300接收大屏设备200发送的报文五。
在一些实施例中,大屏设备200也可以不向显示设备300发送报文五,即S407可以不存在。本申请在此不做限定。
在一些实施例中,在大屏设备200接收电子设备100发送的第一显示参数之前,大屏设备200向电子设备100发送第一请求,第一请求用于指示电子设备100发送第一显示参数至大屏设备。
在一些实施例中,包括第一请求的报文也可以称为第二新增扩展RTCP APP报文,该第二新增扩展RTCP APP报文包含关键投屏因子调整信息,该关键投屏因子调整信息可以为第一请求,第一请求用于指示电子设备100发送第一显示参数至大屏设备。
在一些实施例中,大屏设备200在确定出第二编码帧率大于第一解码帧率或者第二编码帧率大于第一显示帧率或者第二编码帧率小于第二显示帧率时,大屏设备向电子设备发送第一请求。
即大屏设备100判断出当前显示参数不在满足负载要求,负载将会出现显示画面与音频不同步,大屏设备200会向电子设备100发送第一请求。
S408、电子设备100获取投屏内容一,投屏内容一包括第一图像或投屏内容一包括第一图像和第一音频。
在一些实施例中,电子设备100可以采用录屏和/或录音等方式获取投屏内容一。
投屏内容一可以是如图2D所示的电子设备100显示的多媒体内容(包含第一图像或第一图像和第一音频)。
投屏内容一是电子设备100实时显示的内容。
需要说明的是,电子设备100显示的投屏内容一也可以只包括第一图像,本申请对于投屏内容一的形式不做限定。
S409、电子设备100以第二目标显示参数(目标显示参数)处理投屏内容一(第二投屏内容)。
S410、电子设备100将以第二目标显示参数处理后的投屏内容一发送至大屏设备200。
电子设备100可以通过录屏和/或录音等方式获取投屏内容一,并根据第二目标显示参数对投屏内容一进行处理,得到以第二目标显示参数处理后的投屏内容一。
电子设备100将以第二目标显示参数处理后的投屏内容一进行压缩,之后,将以第目标显示参数处理后的投屏内容一发送至大屏设备200。
S411、大屏设备200接收以第二目标显示参数处理后的投屏内容一,并显示投屏内容一。
响应于电子设备100发送的以第二目标显示参数处理后的投屏内容一,大屏设备200接收以第二目标显示参数处理后的投屏内容一,并按照顺序以第四解码帧率将以第二目标显示参数处理后的投屏内容一解码、音画质处理,之后,大屏设备200显示投屏内容一。如图2D所示,图2D为大屏设备200显示投屏内容一的示意图。其中,第四解码帧率的数值与编码帧率四的数值相同。
S412、大屏设备200以录屏和/或录音等方式获取投屏内容二(第一投屏内容),投屏内容二包括第二图像或投屏内容二包括第二图像和第二音频。
投屏内容二可以是如图4A所示的电子设备100显示的多媒体内容(包含图像和/或音频)。
第二图像是大屏设备200实时显示的内容。
需要说明的是,大屏设备200显示的投屏内容二也可以只包括第二音频,本申请对于投屏内容二的形式不做限定。
S413、大屏设备200发送以第二目标显示参数处理的投屏内容二。
大屏设备200将以第二目标显示参数处理后的投屏内容二进行压缩,之后,将以第二目标显示参数处理后的投屏内容二发送至显示设备300。
S414、显示设备300接收以第二目标显示参数处理的投屏内容二,并显示投屏内容二。
响应于大屏设备200发送的以第二目标显示参数处理后的投屏内容二,显示设备300接收以第二目标显示参数处理后的投屏内容二,并按照顺序以第四解码帧率将以第二目标显示参数处理后的投屏内容二解码、音画质处理,之后,显示设备300显示投屏内容二。如图4A所示,图4A为显示设备300显示投屏内容二的示意图。其中,第四解码帧率的数值与编码帧率四的数值相同。
需要说明的是,图4所述的方法是由大屏设备200根据电子设备100的第一显示参数、显示设备300的第二显示参数、大屏设备200的第三显示参数协商得到目标显示参数。本申请实施例也可以通过电子设备100根据电子设备100的第一显示参数、显示设备300的第二显示参数、大屏设备200的第三显示参数协商得到目标显示参数。具体的,当大屏设备200在确定出第二编码帧率大于第一解码帧率或者第二编码帧率大于第一显示帧率或者第二编码帧率小于第二显示帧率时,电子设备100将显示设备300的第二显示参数、大屏设备200的第三显示参数发送至电子设备100,电子设备100根据电子设备100的第一显示参数、显示设备300的第二显示参数、大屏设备200的第三显示参数协商得到目标显示参数。电子设备100根据电子设备100的第一显示参数、显示设备300的第二显示参数、大屏设备200的第三显示参数协商得到目标显示参数,与大屏设备200根据电子设备100的第一显示参数、显示设备300的第二显示参数、大屏设备200的第三显示参数协商得到目标显示参数的方法一致,本申请在此不再赘述。
接下来结合具体的扩展协议,来介绍电子设备100、大屏设备200与显示设备300通过扩展协议进行显示参数协商的。
本申请涉及的扩展协议的实现,是在现有RTCP协议的基础上(仅包含传输质量如丢包数量,发送数量等),扩充投屏业务质量及其关键影响因子能力集。
如图5所示,图5为本申请实施例涉及的RTCP数据包格式示意图。
如表1所示,表1示例性示出了图5所示的RTCP数据包包含的字段,以及各个字段的含义。
表1
Figure PCTCN2022087679-appb-000004
如表1所示,字段版本(version,V)表示当前的协议的版本号为2,字段V的大小为2比特。本申请对于字段V没有改进也没有扩展。
字段填充(padding,P)表示填充标记,字段P的大小为1比特。数据包的末尾包含了一个或多个填充字节,填充位表示数据包已填充超出其自然大小。字段P的值置为1时,表示数据包后有填充位,字段P的值置为0时,表示数据包后有填充位。填充字节中的最后一个字节是填充位计数,他表示一共加了多少个填充位。本申请对于字段P没有改进也没有扩展。
字段子类型(subtype,ST):字段子类型的大小为5位,以允许将一组APP数据包以一个唯一的名称定义,或针对任何与应用程序相关的定义数据。当Bit7=1接收端向发送端请求变更投屏关键能力集;当Bit7=0发送端向接收端响应变更后投屏关键能力集。Bit7-Bit3保留。本申请对于字段PT有扩展,扩展部分包括投屏扩展能力集变更请求。
字段数据包类型(packet type,PT):当PT为常数204时,以将其标识为RTCP APP数据包。字段PT表示报文的类型,字段PT的大小为8比特。RTP规范中定义了五种标准报文类型,不限于五种标准报文类型,还可以是其他五种标准报文类型。当字段PT的值为204时,表示报文格式为APP格式。本申请对于字段PT没有改进也没有扩展。
字段同步源标识符(SSRC),字段SSRC的大小为2个字节。同步源标识符,用来标识一个同步源。此标识符是随机选择的,但要保证同一RTP会话中的任意两个同步源标识符各不相同,RTP必须检测并解决冲突。本申请对于字段SSRC没有改进也没有扩展。
字段名称(name)表示应用自定义的名字。该字段由定义APP数据包集的人员选择的名称。应用程序创建者可能选择使用应用程序名称,然后协调子类型的分配想要为其他人定义新数据包类型的值应用。另外,该名称被解释为四个ASCII字符的序列,大写字符和小写字符被视为不同。本申请UI与字段名称(name)有扩展,字段名称(name)包括投屏服务(Cast Plus)。
字段与应用相关的数据(application-dependent data A):该字段用于标识数据包的内容,数据长度为64位。字段application-dependent data A的扩展内容包括色彩(color):颜色模式:SRGB/P3/Aodble;颜色范围:full/limited;色彩原色:BT.601PAL;传输特性:BT.601;矩阵系统:BT.470。基础影像格式:编码方式:H.264/AVC;H.265/HEVC;H.266P8/P9;帧率:25/30fps/60fps/90fps/120fps。
码率:xxMbps;帧间隔:1.0/2.0等;GOP:i-frame-interval*frame-rate。画质:maxQP=51minQP=12。显示尺寸:高=2400;宽1080。
字段长度域(Length):指报头和数据之和的长度,单位是字节,总长度字段为16位。每一种数据链路层都有其自己的帧格式,其中包括帧格式中的数据字段的最大长度,这称为最大传送单元MTU。当IP数据报封装成链路层的帧时,此数据报的总长度不能超过对应MTU的值。若数据报长度超过对于MTU的值,就将数据报进行分片处理,此时数据报首部中的“总长度“字段是指分片后的每一个分片的报头长度和数据长度之和。本申请对于字段长度域(Length)没有改进也没有扩展。
字段同步源(SSRC):同步源的大小为4个字节,同步源标识符,用来标识一个同步源。此标识符是随机选择的,但要保证同一RTP会话中的任意两个SSRC各不相同。并且发送者的同步源标志符,与对应的RTP包中的同步源标志符一样。
首先介绍电子设备100的硬件结构。
图6示出了电子设备100的结构示意图。
电子设备100可以是手机、平板电脑、桌面型计算机、膝上型计算机、手持计算机、笔 记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、人工智能(artificial intelligence,AI)设备、可穿戴式设备、车载设备、智能家居设备和/或智慧城市设备,本申请实施例对该电子设备的具体类型不作特殊限制。
电子设备100可以包括处理器110,外部存储器接口121,内部存储器120,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
无线通信模块160可用于和大屏设备200建立通信连接(例如Wi-Fi直连通信连接、蓝牙通信连接等),并基于该通信连接将电子设备100用户界面显示的内容显编码后发送给大屏设备200。即,无线通信模块160可支持电子设备100和大屏设备200之间基于协同投屏(如miracast)来共享内容。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
在本申请实施例中,显示屏194用于显示本申请实施例提及的在电子设备100上实现的用户界面。该用户界面的具体实现可参考后续方法实施例的相关描述。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
内部存储器120可以包括一个或多个随机存取存储器(random access memory,RAM)和一个或多个非易失性存储器(non-volatile memory,NVM)。
随机存取存储器可以包括静态随机存储器(static random-access memory,SRAM)、动态随机存储器(dynamic random access memory,DRAM)、同步动态随机存储器(synchronous dynamic random access memory,SDRAM)、双倍资料率同步动态随机存取存储器(double data rate synchronous dynamic random access memory,DDR SDRAM,例如第五代DDR SDRAM一般称为DDR5SDRAM)等;
非易失性存储器可以包括磁盘存储器件、快闪存储器(flash memory)。
快闪存储器按照运作原理划分可以包括NOR FLASH、NAND FLASH、3D NAND FLASH等,按照存储单元电位阶数划分可以包括单阶存储单元(single-level cell,SLC)、多阶存储单元(multi-level cell,MLC)、三阶储存单元(triple-level cell,TLC)、四阶储存单元(quad-level cell,QLC)等,按照存储规范划分可以包括通用闪存存储(英文:universal flash storage,UFS)、嵌入式多媒体存储卡(embedded multi media Card,eMMC)等。
随机存取存储器可以由处理器110直接进行读写,可以用于存储操作系统或其他正在运行中的程序的可执行程序(例如机器指令),还可以用于存储用户及应用程序的数据等。
非易失性存储器也可以存储可执行程序和存储用户及应用程序的数据等,可以提前加载到随机存取存储器中,用于处理器110直接进行读写。
外部存储器接口121可以用于连接外部的非易失性存储器,实现扩展电子设备100的存储能力。外部的非易失性存储器通过外部存储器接口121与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部的非易失性存储器中。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电 子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。
图7是本发明实施例的电子设备100的软件结构框图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。
应用程序层可以包括一系列应用程序包。
如图7所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图7所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
需要强调的是,图7仅为示意性举例;本申请实施例提供的电子设备100的软件结构还可采用其他的软件架构,比如
Figure PCTCN2022087679-appb-000005
Linux或者其它操作系统的软件架构。
示例性的,图8示出了大屏设备200的硬件结构。如图8所示,大屏设备200可包括:视频编解码器221、处理器222、存储器223、无线通信处理模块224、电源开关225、有线LAN通信处理模块226、高清晰度多媒体接口(high definition multimedia interface,HDMI)通信处理模块227、USB通信处理模块228、显示屏229、音频模块230。各个模块可通过总线连接。其中:
处理器222可用于读取和执行计算机可读指令。具体实现中,处理器222可主要包括控制器、运算器和寄存器。其中,控制器主要负责指令译码,并为指令对应的操作发出控制信号。运算器主要负责执行定点或浮点算数运算操作、移位操作以及逻辑操作等,也可以执行地址运算和转换。寄存器主要负责保存指令执行过程中临时存放的寄存器操作数和中间操作结果等。具体实现中,处理器222的硬件架构可以是专用集成电路(ASIC)架构、MIPS架构、ARM架构或者NP架构等。
无线通信处理模块224可以包括WLAN通信处理模块224A,还可包括蓝牙(BT)通信处理模块224B、NFC处理模块224C、蜂窝移动通信处理模块(未示出)等。
在一些实施例中,无线通信处理模块224可用于与电子设备100建立通信连接,并基于该通信连接接收到电子设备100发送的经过编码的数据。例如,WLAN通信处理模块224A可用于与电子设备100建立Wi-Fi直连通信连接,蓝牙(BT)通信处理模块224B可用于与电子设备100建立蓝牙通信连接,NFC处理模块224C可用于与电子设备100建立NFC连接等。即,无线通信处理模块224可支持电子设备100与大屏设备200之间通过协同投屏来共享内容。
在一种实施方式中,无线通信处理模块224可以监听到电子设备100发射的信号如探测请求、扫描信号,发现电子设备100,并与电子设备100建立通信连接。在另一种实施方式中,无线通信处理模块224也可以发射信号,如探测请求、扫描信号,使得大屏设备200可以发现电子设备100,并与电子设备100建立通信连接(如Wi-FiP2P连接)。
在一些实施例中,电子设备100与大屏设备200之间通过协同投屏来共享内容时,无线通信处理模块224(如WLAN通信处理模块224A)还可以接收到电子设备100通知的场景。处理器222可解析并获知该场景,并自适应地选择与该场景对应的播放策略,并以该播放策略来调用显示屏229、音频模块230等模块播放电子设备100发送的内容。
视频编解码器221用于对数字视频压缩或解压缩。在本申请实施例中,视频编解码器221可以对来自电子设备100的投屏内容进行解压缩。大屏设备200可以支持一种或多种视频编解码器,可以播放一种或多种编码格式的视频。例如:MPEG1,MPEG2,MPEG3,MPEG4等。
处理器222可以用于解析无线通信处理模块224接收到的信号,如大屏设备200的广播的探测请求等。处理器222可以用于根据解析结果进行相应的处理操作,如生成探测响应,等。处理器222可用于根据视频编解码器221的解压缩结果来驱动显示屏229执行显示。
存储器223与处理器222耦合,用于存储各种软件程序和/或多组指令。具体实现中,存储器223可包括高速随机存取的存储器,并且也可包括非易失性存储器,例如一个或多个磁盘存储设备、闪存设备或其他非易失性固态存储设备。存储器223可以存储操作系统,例如uCOS、VxWorks、RTLinux、Harmony、Android等嵌入式操作系统。存储器223还可以存储通信程序,该通信程序可用于与大屏设备200,一个或多个服务器,或附加设备进行通信。
电源开关225可用于控制电源向大屏设备200的供电。
有线LAN通信处理模块226可用于通过有线LAN和同一个LAN中的其他设备进行通信,还可用于通过有线LAN连接到WAN,可与WAN中的设备通信。
HDMI通信处理模块227可用于通过HDMI接口(未示出)与其他设备进行通信。
USB通信处理模块228可用于通过USB接口(未示出)与其他设备进行通信。
在一些实施例中,大屏设备200可以通过USB接口外接显示屏300,大屏设备200可以将显示的投屏图像帧传输至显示屏300。
显示屏229可用于显示图像,视频等。显示屏229可以采用LCD、OLED、AMOLED、FLED、QLED等显示屏。显示屏229所显示的内容可参考后续方法实施例的相关描述。
音频模块230可用于通过音频输出接口输出音频信号,这样可使得大屏设备200支持音频播放。音频模块230还可用于通过音频输入接口接收音频数据。音频模块230可包括但不限于:麦克风、扬声器、受话器等。
在一些实施例中,大屏设备200还可以包括RS-232接口等串行接口。该串行接口可连接至其他设备,如音箱等音频外放设备,使得显示器和音频外放设备协作播放音视频。
可以理解的是图8示意的结构并不构成对大屏设备200的具体限定。在本申请另一些实施例中,大屏设备200可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
大屏设备200的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构等。示例性地,大屏设备200的软件系统包括但不限于
Figure PCTCN2022087679-appb-000006
Figure PCTCN2022087679-appb-000007
Linux或者其它操作系统。
Figure PCTCN2022087679-appb-000008
为华为的鸿蒙系统。
示例性的,图9示出了显示设备300的硬件结构。如图9所示,显示设备300可包括:视频编解码器321、处理器322、存储器323、无线通信处理模块324、电源开关325、有线LAN通信处理模块326、高清晰度多媒体接口(high definition multimedia interface,HDMI)通信处理模块327、USB通信处理模块328、显示屏329。各个模块可通过总线连接。其中:
处理器322可用于读取和执行计算机可读指令。具体实现中,处理器322可主要包括控制器、运算器和寄存器。其中,控制器主要负责指令译码,并为指令对应的操作发出控制信号。运算器主要负责执行定点或浮点算数运算操作、移位操作以及逻辑操作等,也可以执行地址运算和转换。寄存器主要负责保存指令执行过程中临时存放的寄存器操作数和中间操作结果等。具体实现中,处理器322的硬件架构可以是专用集成电路(ASIC)架构、MIPS架构、ARM架构或者NP架构等。
无线通信处理模块324可以包括WLAN通信处理模块324A,还可包括蓝牙(BT)通信处理模块324B、NFC处理模块324C、蜂窝移动通信处理模块(未示出)等。
在一些实施例中,无线通信处理模块324可用于与大屏设备200建立通信连接,并基于该通信连接接收到大屏设备200发送的经过编码的数据。例如,WLAN通信处理模块324A可用于与大屏设备200建立Wi-Fi直连通信连接,蓝牙(BT)通信处理模块324B可用于与大屏设备200建立蓝牙通信连接,NFC处理模块324C可用于与大屏设备200建立NFC连接等。
在一种实施方式中,无线通信处理模块324可以监听到大屏设备200发射的信号如探测请求、扫描信号,发现大屏设备200,并与大屏设备200建立通信连接。在另一种实施方式中,无线通信处理模块324也可以发射信号,如探测请求、扫描信号,使得显示设备300可以发现大屏设备200,并与大屏设备200建立通信连接(如Wi-FiP2P连接)。
视频编解码器321用于对数字视频压缩或解压缩。在本申请实施例中,视频编解码器321可以对来自大屏设备200的投屏内容进行解压缩。显示设备300可以支持一种或多种视频编解码器,可以播放一种或多种编码格式的视频。例如:MPEG1,MPEG2,MPEG3,MPEG4等。
处理器322可以用于解析无线通信处理模块324接收到的信号,如显示设备300的广播的探测请求等。处理器322可以用于根据解析结果进行相应的处理操作,如生成探测响应,等。处理器322可用于根据视频编解码器321的解压缩结果来驱动显示屏329执行显示。
存储器323与处理器322耦合,用于存储各种软件程序和/或多组指令。具体实现中,存储器323可包括高速随机存取的存储器,并且也可包括非易失性存储器,例如一个或多个磁盘存储设备、闪存设备或其他非易失性固态存储设备。存储器323可以存储操作系统,例如uCOS、VxWorks、RTLinux、Harmony、Android等嵌入式操作系统。存储器323还可以存储通信程序,该通信程序可用于与显示设备300,一个或多个服务器,或附加设备进行通信。
电源开关325可用于控制电源向显示设备300的供电。
有线LAN通信处理模块326可用于通过有线LAN和同一个LAN中的其他设备进行通信,还可用于通过有线LAN连接到WAN,可与WAN中的设备通信。
HDMI通信处理模块327可用于通过HDMI接口(未示出)与其他设备进行通信。
USB通信处理模块328可用于通过USB接口(未示出)与其他设备进行通信。
显示屏329可用于显示图像,视频等。显示屏329可以采用LCD、OLED、AMOLED、FLED、QLED等显示屏。显示屏329所显示的内容可参考后续方法实施例的相关描述。
在一些实施例中,显示设备300还可以包括RS-232接口等串行接口。该串行接口可连接至其他设备,如音箱等音频外放设备,使得显示器和音频外放设备协作播放音视频。
可以理解的是图9示意的结构并不构成对显示设备300的具体限定。在本申请另一些实施例中,显示设备300可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
显示设备300的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构等。示例性地,显示设备300的软件系统包括但不限于
Figure PCTCN2022087679-appb-000009
Figure PCTCN2022087679-appb-000010
Linux或者其它操作系统。
Figure PCTCN2022087679-appb-000011
为华为的鸿蒙系统。
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。

Claims (15)

  1. 一种投屏系统,其特征在于,所述系统包括电子设备、大屏设备和显示设备;所述大屏设备,用于:
    与所述电子设备建立第一投屏连接;与所述显示设备建立第二投屏连接;
    所述电子设备,用于将第一显示参数发送至所述大屏设备;其中,所述第一显示参数包括所述电子设备的第一编码帧率;
    所述显示设备,用于将第二显示参数发送至所述大屏设备;其中,所述第二显示参数包括所述显示设备的第一解码帧率和第一显示帧率;
    所述大屏设备,还用于:
    接收所述电子设备发送的所述第一显示参数;
    接收所述显示设备发送的所述第二显示参数;
    获取所述大屏设备的显示参数三,所述显示参数三包括第二编码帧率、第二解码帧率和第二显示帧率;
    基于所述第一显示参数、所述第二显示参数和所述显示参数三,确定出目标显示参数,其中,所述目标显示参数包括目标编码帧率,所述目标编码帧率小于等于所述第一编码帧率、所述第一解码帧率、所述第一显示帧率、所述第二编码帧率、所述第二解码帧率、所述二显示帧率中的最小值;
    基于所述目标显示参数中的所述目标编码帧率,编码出第一投屏内容,并将所述第一投屏内容投屏至所述显示设备。
  2. 根据权利要求1所述的系统,其特征在于,在所述大屏设备基于所述目标显示参数中的所述目标编码帧率,编码出第一投屏内容,并将所述第一投屏内容投屏至所述显示设备之前,所述大屏设备,还用于:
    将所述目标显示参数发送给所述电子设备,其中,所述目标显示参数用于指示所述电子设备以所述目标编码帧率编码出第二投屏内容并发送至所述大屏设备;
    所述电子设备,还用于:
    以所述目标编码帧率编码出第二投屏内容;向所述大屏设备发送所述第二投屏内容;
    所述大屏设备,还用于:
    接收所述电子设备发送的所述第二投屏内容;显示所述第二投屏内容。
  3. 根据权利要求1所述的系统,其特征在于,所述大屏设备,具体用于:
    在所述大屏设备与所述电子设备建立所述第一投屏连接之后,与所述显示设备建立所述第二投屏连接;
    或者,
    在所述大屏设备与所述显示设备建立所述第二投屏连接之后,与所述电子设备建立所述第一投屏连接。
  4. 根据权利要求1所述的系统,其特征在于,在所述大屏设备接收所述电子设备发送的所述第一显示参数之前,所述大屏设备,还用于:
    向所述电子设备发送第一请求,所述第一请求用于指示所述电子设备发送所述第一显示参数至所述大屏设备;
    所述电子设备,还用于:
    接收所述大屏设备发送的所述第一请求;
    响应于所述第一请求,向所述大屏设备发送所述第一显示参数;
    所述大屏设备,还用于:
    接收所述电子设备发送的所述第一显示参数。
  5. 据权利要求4所述的系统,其特征在于,所述大屏设备,具体用于:
    确定出所述第二编码帧率大于所述第一解码帧率或者所述第二编码帧率大于所述第一显示帧率或者所述第二编码帧率小于所述第二显示帧率时,向所述电子设备发送所述第一请求。
  6. 据权利要求1-5任一项所述的系统,其特征在于,所述第一显示参数还包括第一编码类型和/或第一屏幕分辨率;
    所述第二显示参数还包括第二编码类型和/或第二屏幕分辨率;
    所述目标显示参数还包括目标编码类型和/或目标屏幕分辨率;
    其中,所述目标编码类型为所述第一编码类型和所述第二编码类型共有的编码类型,所述目标屏幕分辨率为所述第一屏幕分辨率和所述第二屏幕分辨率共有的屏幕分辨率。
  7. 一种投屏显示参数调节方法,其特征在于,方法包括:
    大屏设备与电子设备建立第一投屏连接,所述大屏设备与显示设备建立第二投屏连接;
    所述大屏设备接收所述电子设备发送的第一显示参数,所述第一显示参数包括所述电子设备的第一编码帧率;
    所述大屏设备接收所述显示设备发送的第二显示参数,所述第二显示参数包括所述显示设备的第一解码帧率和第一显示帧率;
    所述大屏设备获取所述大屏设备的第三显示参数,所述显示参数三包括第二编码帧率、第二解码帧率和第二显示帧率;
    所述大屏设备基于所述第一显示参数、所述第二显示参数和所述显示参数三,确定出目标显示参数,其中,所述目标显示参数包括目标编码帧率,所述目标编码帧率小于等于所述第一编码帧率、所述第一解码帧率、所述第一显示帧率、所述第二编码帧率、所述第二解码帧率、所述二显示帧率中的最小值;
    所述大屏设备基于所述目标显示参数中的所述目标编码帧率,编码出第一投屏内容,并将所述第一投屏内容投屏至所述显示设备。
  8. 根据权利要求7所述的方法,其特征在于,在所述大屏设备基于所述目标显示参数中的所述目标编码帧率,编码出第一投屏内容,并将所述第一投屏内容投屏至所述显示设备之前,所述方法还包括:
    所述大屏设备将所述目标显示参数发送给所述电子设备,其中,所述目标显示参数用于指示所述电子设备以所述目标编码帧率编码出第二投屏内容并发送至所述大屏设备;
    所述大屏设备接收到所述电子设备发送的所述第二投屏内容;
    所述大屏设备显示所述第二投屏内容。
  9. 根据权利要求7所述的方法,其特征在于,大屏设备与电子设备建立第一投屏连接, 所述大屏设备与显示设备建立第二投屏连接,具体包括:
    在所述大屏设备与所述电子设备建立所述第一投屏连接之后,所述大屏设备与所述显示设备建立所述第二投屏连接;
    或者,
    在所述大屏设备与所述显示设备建立所述第二投屏连接之后,所述大屏设备与所述电子设备建立所述第一投屏连接。
  10. 根据权利要求7所述的方法,其特征在于,在所述大屏设备接收所述电子设备发送的所述第一显示参数之前,所述方法还包括:
    所述大屏设备向所述电子设备发送第一请求,所述第一请求用于指示所述电子设备发送所述第一显示参数至所述大屏设备。
  11. 根据权利要求10所述的方法,其特征在于,所述大屏设备向所述电子设备发送第一请求,具体包括:
    所述大屏设备在确定出所述第二编码帧率大于所述第一解码帧率或者所述第二编码帧率大于所述第一显示帧率或者所述第二编码帧率小于所述第二显示帧率时,所述大屏设备向所述电子设备发送所述第一请求。
  12. 根据权利要求7-11任一项所述的方法,其特征在于,所述第一显示参数还包括第一编码类型和/或第一屏幕分辨率;
    所述第二显示参数还包括第二编码类型和/或第二屏幕分辨率;
    所述第三显示参数还包括第三编码类型和/或第三屏幕分辨率;
    所述目标显示参数还包括目标编码类型和/或目标屏幕分辨率;
    其中,所述目标编码类型为所述第一编码类型和所述第二编码类型共有的编码类型,所述目标屏幕分辨率为所述第一屏幕分辨率和所述第二屏幕分辨率共有的屏幕分辨率。
  13. 一种电子设备,其特征在于,包括一个或多个处理器、一个或多个存储器;所述一个或多个存储器、所述一个或多个编码器与所述一个或多个处理器耦合,所述一个或多个存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,所述一个或多个处理器调用所述计算机指令以使得所述电子设备执行如权利要求7至12任一项所述的方法。
  14. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机可执行指令,所述计算机可执行指令在被所述计算机调用时用于执行如权利要求7至12任一项所述的方法。
  15. 一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求7至12任一项所述的方法。
PCT/CN2022/087679 2021-04-22 2022-04-19 一种投屏显示参数调节方法 WO2022222924A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP22791031.2A EP4310663A1 (en) 2021-04-22 2022-04-19 Method for adjusting screen projection display parameters

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110437451.1 2021-04-22
CN202110437451.1A CN115237359A (zh) 2021-04-22 2021-04-22 一种投屏显示参数调节方法

Publications (1)

Publication Number Publication Date
WO2022222924A1 true WO2022222924A1 (zh) 2022-10-27

Family

ID=83666394

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/087679 WO2022222924A1 (zh) 2021-04-22 2022-04-19 一种投屏显示参数调节方法

Country Status (3)

Country Link
EP (1) EP4310663A1 (zh)
CN (1) CN115237359A (zh)
WO (1) WO2022222924A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116578256A (zh) * 2023-05-16 2023-08-11 润芯微科技(江苏)有限公司 一种投屏方法及投屏设备、投屏控制系统

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116931866B (zh) * 2023-09-13 2024-03-01 宁波均联智行科技股份有限公司 车载多屏显示控制方法及车载装置
CN117294690B (zh) * 2023-11-22 2024-04-12 荣耀终端有限公司 一种评估QoE的方法及电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160239250A1 (en) * 2015-02-17 2016-08-18 Samsung Electronics Co., Ltd. Method and apparatus for providing of screen mirroring service
CN110381345A (zh) * 2019-07-05 2019-10-25 华为技术有限公司 一种投屏显示方法及电子设备
CN111417006A (zh) * 2020-04-28 2020-07-14 广州酷狗计算机科技有限公司 视频投屏方法、装置、终端及存储介质
CN111506282A (zh) * 2020-04-21 2020-08-07 深圳市鸿合创新信息技术有限责任公司 一种显示参数调整方法、装置、连接设备及存储介质
CN111601120A (zh) * 2020-04-21 2020-08-28 江苏大学 一种无线传屏显示系统与显示方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160239250A1 (en) * 2015-02-17 2016-08-18 Samsung Electronics Co., Ltd. Method and apparatus for providing of screen mirroring service
CN110381345A (zh) * 2019-07-05 2019-10-25 华为技术有限公司 一种投屏显示方法及电子设备
CN111506282A (zh) * 2020-04-21 2020-08-07 深圳市鸿合创新信息技术有限责任公司 一种显示参数调整方法、装置、连接设备及存储介质
CN111601120A (zh) * 2020-04-21 2020-08-28 江苏大学 一种无线传屏显示系统与显示方法
CN111417006A (zh) * 2020-04-28 2020-07-14 广州酷狗计算机科技有限公司 视频投屏方法、装置、终端及存储介质

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116578256A (zh) * 2023-05-16 2023-08-11 润芯微科技(江苏)有限公司 一种投屏方法及投屏设备、投屏控制系统
CN116578256B (zh) * 2023-05-16 2023-10-24 润芯微科技(江苏)有限公司 一种投屏方法及投屏设备、投屏控制系统

Also Published As

Publication number Publication date
EP4310663A1 (en) 2024-01-24
CN115237359A (zh) 2022-10-25

Similar Documents

Publication Publication Date Title
WO2020221039A1 (zh) 投屏方法、电子设备以及系统
US20230115868A1 (en) Displaying Interfaces in Different Display Areas Based on Activities
CN111316598B (zh) 一种多屏互动方法及设备
WO2020259452A1 (zh) 一种移动终端的全屏显示方法及设备
WO2021000807A1 (zh) 一种应用程序中等待场景的处理方法和装置
CN113885759B (zh) 通知消息处理方法、设备、系统及计算机可读存储介质
CN113726950B (zh) 一种图像处理方法和电子设备
JP7235871B2 (ja) データ伝送方法と電子デバイス
WO2022222924A1 (zh) 一种投屏显示参数调节方法
WO2020093988A1 (zh) 一种图像处理方法及电子设备
US20230247093A1 (en) Data Synchronization Method, Electronic Device, and Computer-Readable Storage Medium
US20230216990A1 (en) Device Interaction Method and Electronic Device
WO2022022575A1 (zh) 显示控制方法、装置和存储介质
WO2022105445A1 (zh) 基于浏览器的应用投屏方法及相关装置
EP4187907A1 (en) Screen projection data processing method and apparatus
WO2021139630A1 (zh) 数据传输方法、装置及数据处理系统、存储介质
WO2022042637A1 (zh) 一种蓝牙数据传输方法及相关装置
WO2023005900A1 (zh) 一种投屏方法、电子设备及系统
US20240045643A1 (en) Codec negotiation and switching method
CN115756268A (zh) 跨设备交互的方法、装置、投屏系统及终端
EP4293997A1 (en) Display method, electronic device, and system
JP2022515446A (ja) 接続確立方法および端末デバイス
US20230335081A1 (en) Display Synchronization Method, Electronic Device, and Readable Storage Medium
WO2022206763A1 (zh) 一种显示方法、电子设备和系统
WO2023020528A1 (zh) 一种投屏方法、设备、存储介质及计算机程序产品

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22791031

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2022791031

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2022791031

Country of ref document: EP

Effective date: 20231016

NENP Non-entry into the national phase

Ref country code: DE