CN117369745A - Screen projection method, device, electronic equipment and storage medium - Google Patents

Screen projection method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117369745A
CN117369745A CN202210763388.5A CN202210763388A CN117369745A CN 117369745 A CN117369745 A CN 117369745A CN 202210763388 A CN202210763388 A CN 202210763388A CN 117369745 A CN117369745 A CN 117369745A
Authority
CN
China
Prior art keywords
display
screen
content
display mode
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210763388.5A
Other languages
Chinese (zh)
Inventor
吴昊
袁敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yibin Jimi Photoelectric Co Ltd
Original Assignee
Yibin Jimi Photoelectric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yibin Jimi Photoelectric Co Ltd filed Critical Yibin Jimi Photoelectric Co Ltd
Priority to CN202210763388.5A priority Critical patent/CN117369745A/en
Publication of CN117369745A publication Critical patent/CN117369745A/en
Pending legal-status Critical Current

Links

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

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)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a screen projection method, a screen projection device, electronic equipment and a storage medium; the method and the device can respond to screen throwing triggering operation to generate a content request message, wherein the content request message is used for requesting target content from a server, and the content request message comprises the identification of the target content and the identification of a display mode corresponding to display equipment; the display mode is a vertical screen display mode and/or a horizontal screen display mode; sending a content request message to a server, and receiving a response message of the server; acquiring target content meeting the display mode according to the response message; and transmitting the target content to a display device for display. In the application, when the screen is projected, the target content meeting the display mode corresponding to the display device is acquired from the server, and the target content is transmitted to the display device for display, so that the content displayed by the display device is suitable for being displayed on the display device. Therefore, the user experience can be improved by the scheme.

Description

Screen projection method, device, electronic equipment and storage medium
Technical Field
The application relates to the technical field of communication, in particular to a screen projection method, a screen projection device, electronic equipment and a storage medium.
Background
The screen projection refers to projecting the picture in the device a into another device B, thereby presenting the picture in the device a through the device B. For example, a screen on a small screen device such as a smart phone or a tablet computer can be projected into a large screen device such as a projector or a television. Because the display interface of the projector and the television is larger than that of the smart phone and the tablet personal computer, the pictures of the smart phone and the tablet personal computer are projected into the projector and the television, and the pictures can be displayed more clearly, so that the user can watch the pictures conveniently.
However, the size ratio of the display interfaces of the two devices will generally have a certain difference, and the size ratio is not adapted, so that when the screen adapted to the device a is projected on the device B, the screen needs to be stretched or cut, or there is a black edge (i.e. a non-projection display area) when displayed on the device B, which affects the viewing experience of the user.
Disclosure of Invention
The application provides a screen projection method, a screen projection device, electronic equipment and a storage medium, which can enable content displayed by display equipment to be suitable for being displayed on the display equipment, so that user experience can be improved.
The application provides a screen projection method, which comprises the following steps:
responding to the screen throwing triggering operation, generating a content request message, wherein the content request message is used for requesting target content from a server, and the content request message comprises the identification of the target content and the identification of a display mode corresponding to display equipment; the display mode is a vertical screen display mode and/or a horizontal screen display mode;
sending a content request message to a server, and receiving a response message of the server;
acquiring target content meeting the display mode according to the response message;
and transmitting the target content to a display device for display.
The application also provides a throw screen device, include:
the response unit is used for responding to the screen throwing triggering operation, generating a content request message, wherein the content request message is used for requesting target content from the server, and the content request message comprises the identification of the target content and the identification of the display mode corresponding to the display equipment; the display mode is a vertical screen display mode and/or a horizontal screen display mode;
the receiving and transmitting unit is used for sending a content request message to the server and receiving a response message of the server;
an acquisition unit for acquiring target content satisfying the display mode according to the response message;
and the display unit is used for transmitting the target content to the display equipment for display.
In some embodiments, the content request message further includes a target screen-throwing mode, and before generating the content request message, the method further includes:
responding to the selection operation of the screen-throwing mode, and obtaining a target screen-throwing mode, wherein the screen-throwing mode comprises single-screen display and multi-screen display;
when the target screen-throwing mode is multi-screen display, the content request message also comprises a first object identifier and a second object identifier;
obtaining the target content meeting the display mode according to the response message, including:
obtaining first target content and second target content meeting the display mode according to the response message; the first target content is identified by a first object identification, and the second target content is identified by a second object identification.
In some embodiments, the method further comprises:
displaying the first target content;
transmitting the target content to a display device for display, comprising:
and transmitting the second target content to the display equipment for display.
In some embodiments, the content request message further includes a display parameter, and before generating the content request message, the method further includes:
establishing a connection with a display device;
receiving display parameters sent by display equipment, wherein the display parameters comprise at least one of the following: screen resolution, display ratio, refresh rate;
obtaining the target content meeting the display mode according to the response message, including:
and acquiring target content meeting the display mode and the display parameters according to the response message.
In some embodiments, before generating the content request message, further comprising:
determining a display mode according to the resolution or the display proportion of the screen; or alternatively, the first and second heat exchangers may be,
and receiving a display mode sent by the display device.
In some embodiments, the method further comprises:
when the screen state change is detected, determining the current screen state and a target display proportion corresponding to the current screen state;
transmitting a current content request message to a server, wherein the current content request message comprises a target display proportion;
receiving a current content response message, and obtaining first target content meeting a target display proportion according to the content response message;
first target content satisfying a target display scale is displayed.
In some embodiments, the method is applicable to a display device, the method further comprising:
receiving target content and determining a display mode of the target content;
when the display mode is a vertical screen display mode, the display module of the display equipment is controlled to be in a first state corresponding to the vertical screen display mode;
when the display mode is a horizontal screen display mode, the display module of the display device is controlled to be in a second state corresponding to the horizontal screen display mode.
The application also provides an electronic device comprising a memory and a processor, wherein the memory stores a plurality of instructions; the processor loads instructions from the memory to perform steps in any of the screen projection methods provided herein.
The present application also provides a computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform steps in any of the screen projection methods provided herein.
In the application, when the screen projection is triggered, a content request message can be sent to a server to request target content meeting the display mode of the display device; the server returns a response message to the terminal, and the target content can be obtained according to the response message; then, sending target content to the display equipment, wherein the target content is adapted to the display mode of the display equipment, so that stretching or cutting of the content is not needed, and a non-screen-throwing display area does not exist during display; the content displayed by the display device may be adapted to be displayed on the display device. Therefore, the user experience can be improved by the scheme.
Drawings
In order to more clearly illustrate the technical solutions of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1a is a schematic view of a screen projection method provided in the present application;
FIG. 1b is a schematic flow chart of the screen projection method provided in the present application;
FIG. 1c is a schematic view of a display module of a display device according to the present application in a first state
FIG. 2 is a schematic structural view of a screen projection device provided in the present application;
fig. 3 is a schematic structural diagram of an electronic device provided in the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The application provides a screen projection method, a screen projection device, electronic equipment and a storage medium.
The screen projection device can be integrated in electronic equipment, and the electronic equipment can be a terminal, a server and other equipment. The terminal can comprise a smart phone, a tablet personal computer, a smart Bluetooth device, a projector, a smart television, a laser television, a notebook computer, a desktop computer and other devices; the server may be a single server or a server cluster composed of a plurality of servers. In some embodiments, the server may also be implemented in the form of a terminal.
In some embodiments, the screen projection device may be integrated in a plurality of electronic devices, for example, the screen projection device may be integrated in a terminal, a display device and a server, and the screen projection method of the present application is jointly implemented by the terminal, the display device and the server. For example, the screen projection device may be integrated in a smart phone, a projector and a server, as shown in fig. 1a, which is a schematic view of a screen projection method provided in this embodiment. In this scenario, the terminal, the display device, and the server may be connected through a network; the display device may be a large screen device, such as a projector, smart television, or the like.
The terminal can respond to the screen throwing triggering operation to generate a content request message, wherein the content request message is used for requesting target content from a server, and the content request message comprises the identification of the target content and the identification of a display mode corresponding to the display equipment; the display mode is a vertical screen display mode and/or a horizontal screen display mode. The terminal sends a content request message to the server; the server receives the content request message sent by the terminal, generates a response message based on the content request message, and sends the response message to the terminal. The terminal receives a response message sent by the server; acquiring target content meeting the display mode according to the response message; the target content is then transmitted to a display device for display. The display device receives the target content and displays the target content based on the display mode.
In this embodiment, when the user triggers the screen projection, a content request message may be sent to the server to request the target content meeting the display mode, where the display mode is used to indicate that the display device is a horizontal screen display or a vertical screen display; the server returns a response message to the terminal, decodes the response message and can obtain target content; then, sending target content to the display equipment, wherein the target content is suitable for the display mode of the display equipment, so that stretching or cutting of the content is not needed, and a non-screen-throwing display area does not exist during display; therefore, the scheme can promote user experience.
The following will describe in detail. The numbers of the following examples are not intended to limit the preferred order of the examples.
In this embodiment, a screen projection method is provided, as shown in fig. 1b, and a specific flow of the screen projection method may be as follows:
110. responding to the screen throwing triggering operation, generating a content request message, wherein the content request message is used for requesting target content from a server, and the content request message comprises the identification of the target content and the identification of a corresponding display mode; the display mode is a vertical screen display mode or a horizontal screen display mode.
The screen-throwing triggering operation can trigger a screen-throwing function, and the screen-throwing function can be realized based on a DLNA/miracast/air screen-throwing protocol/music playing screen-throwing mode and the like. In some embodiments, the content request message may be generated in response to a screen shot trigger operation to a screen shot region. The screen throwing area can be part or all of the area on the display interface of the terminal, the screen throwing area can comprise a screen throwing control which is used for packaging corresponding data and methods of the screen throwing function and can be a control in the forms of an input box, a button, a radio selection box, a check box and the like; for example, the screen-throwing area may be displayed on a user interface of an application program installed on the terminal, and after the screen throwing is triggered, the screen throwing may be performed on the content in the application software, and if the application program is video software, the screen throwing may be performed on the video content in the video software. The screen triggering operation can be operations such as clicking, double clicking, sliding, dragging and the like. For example, the terminal may display a screen-drop region on the display interface, the user may click on the open screen-drop control, and the terminal generates content request information in response to a click operation on the open screen-drop control. In some embodiments, the screen-cast trigger operation may be triggering a screen-cast function between the terminal and the display device by near field communication (Near Field Communication, NFC).
The target content can be various multimedia information such as video, album, audio and the like, and can also be a real-time operation picture for operating the application software on the terminal. The identification of the target content may be a unique identification of the target content for distinguishing other content.
The vertical screen display mode is used for indicating that the display device is suitable for displaying the picture content of the vertical screen, and the horizontal screen display mode is used for indicating that the display device is suitable for displaying the horizontal screen picture content. For example, the display mode may be set to 11, 01, and 10, where 11 indicates that the display mode is a portrait display mode and a landscape display mode, that is, indicates that the display device is suitable for displaying both the screen content of the landscape screen and the screen content of the portrait screen; 10 indicates that the display mode is a portrait display mode, i.e. the display device is only suitable for displaying the picture content of a portrait screen, and 01 indicates that the display mode is a landscape display mode, i.e. the display device is only suitable for displaying the picture content of a landscape screen.
In some embodiments, the content request information may include an identification of the target content and an identification of the corresponding display mode, and may further include an address of the terminal, and an address of the server. Wherein, the display mode can be determined according to the screen resolution or the display proportion, and the screen resolution and the display proportion are display parameters corresponding to the display equipment; or, receiving a display mode sent by the display device, determining the display mode by the display device based on the screen resolution or the display proportion of the display device, and sending the display mode to the terminal after establishing connection with the terminal.
In some embodiments, in response to a screen-shot triggering operation on the screen-shot region, the terminal may also establish a connection with the display device; the display device may broadcast display parameters, and the terminal receives the display parameters sent by the display device, where the display parameters include at least one of the following: screen resolution, display scale, refresh rate. The terminal may then generate the content request information based on the display parameters, i.e. the content request information further includes the display parameters.
In some embodiments, the content request message further includes a target screen-throwing mode, and the terminal may obtain the target screen-throwing mode in response to a selection operation of the screen-throwing mode. Optionally, before generating the content request message, the terminal may display a selection area of the screen-casting mode after the user clicks the screen-casting area; for example, the selection area may include a button corresponding to a single screen display and a button corresponding to a multi-screen display, and the screen-casting mode includes the single screen display and the multi-screen display. And the terminal responds to the selection operation of the selection area to obtain a target screen projection mode. For example, if the user clicks a button corresponding to the single-screen display, the target screen-throwing mode is obtained as the single-screen display; and the user clicks a button corresponding to the multi-screen display, so that the target screen-throwing mode is obtained to be the multi-screen display. Thus, the content request message also includes a target screen-drop mode to obtain the appropriate target content for each device.
When the target screen-throwing mode is multi-screen display, the content request message also comprises a first object identifier and a second object identifier. The first object identifier and the second object identifier are the ID values of the parameter target objects in the content request message; the first object identifier corresponds to the terminal, the second object identifier corresponds to the display device, and the second object identifier is a projector assuming that the first object identifier is STA. The content request message includes the first object identifier and the second object identifier, which indicates that the server is required to return the first target content adapted to be displayed on the terminal and the second target content adapted to be displayed on the display device. It should be noted that, when the target screen-throwing mode is multi-screen display, the content request message may also include a plurality of object identifiers, that is, the terminal may throw the screen onto a plurality of display devices.
When the target screen-throwing mode is single-screen display, the content request message also comprises a second object identification, namely the server is only required to return target content suitable for being displayed on the display device.
In some embodiments, when the display mode of the display device is a flat screen display mode, the terminal responds to the screen throwing trigger operation, and can also determine whether the display mode of the currently displayed target content is the flat screen display mode; when the display mode is a horizontal screen display mode, the terminal can directly encode the content and then transmit the content to the display equipment for display; when the display mode is not the horizontal screen display mode, a content request message is generated, and at this time, the identifier of the display mode carried in the content request message may be set to 01.
120. And sending a content request message to the server, and receiving a response message of the server.
In some embodiments, the terminal sends a content request message to the server according to the address of the server; the server receives the content request message sent by the terminal and generates a response message based on the content request message. The server can store target content suitable for vertical screen display and target content suitable for horizontal screen display, the target content suitable for vertical screen display can also be suitable for various screen resolutions or display proportions, and the target content suitable for horizontal screen display can also be suitable for various screen resolutions or display proportions. The server may acquire the target content based on the identification of the target content and the identification of the display mode; or, acquiring the target content based on the display parameter, the identification of the target content and the identification of the display mode; or, acquiring the target content based on the screen throwing mode, the ID of the target object, the display parameter, the identification of the target content and the identification of the display mode. And then the target content can be encoded to generate a response message; it should be noted that the response message may be an information stream. And the server sends a response message to the terminal according to the address of the terminal, and the terminal receives the response message sent by the server.
130. And acquiring target content meeting the display mode according to the response message.
140. And transmitting the target content to a display device for display.
In some embodiments, the content request message includes an address of the terminal, an address of the server, an identification of the target content, and an identification of the corresponding display mode; for example, when the display mode is a horizontal screen display mode, the terminal decodes the response message to obtain the target content suitable for horizontal screen display, the terminal can encode the target content and then transmit the encoded target content to the display device, the display device receives the encoded target content and decodes the encoded target content to obtain the target content, and then the target content is displayed according to the display mode. According to different display modes of different display devices, corresponding content is acquired, and interaction between the terminal and the display devices can be facilitated.
In some embodiments, the content request message includes the display parameter, the address of the terminal, the address of the server, the identifier of the target content, and the identifier of the corresponding display mode, so that the response message is decoded to obtain the target content meeting the display mode and the display parameter, then the terminal can encode the target content and transmit the encoded target content to the display device, and the display device receives the encoded target content and decodes the encoded target content to obtain the target content, and then displays the target content according to the display mode. For example, if the display parameter is a display ratio, set to 16:9, and the display mode is set to 01, the obtained target content is suitable for being displayed on a horizontal screen on a display device with the display ratio of 16:9.
In some embodiments, the content request message includes a target screen-drop mode, an ID of the target object, a display parameter, an address of the terminal, an address of the server, an identification of the target content, and an identification of the corresponding display mode.
When the target screen-throwing mode is multi-screen display, the content request message comprises a first object identifier and a second object identifier. Therefore, decoding the response message to obtain the first target content and the second target content meeting the display mode; the first target content is marked by a first object mark, and the second target content is marked by a second object mark; the specific content data in the first target content and the second target content are the same, but the corresponding display modes, resolutions, display proportions, and the like may be different; the first target content is target content adapted for display on the terminal, and the second target content is target content adapted for display on the display device.
Alternatively, the terminal may display the first target content; and meanwhile, the terminal can transmit the second target content to the display equipment for display. The server feeds back different contents simultaneously according to different target objects, so that devices with different sizes can acquire the contents suitable for being displayed on the devices. It should be noted that, when the target screen-throwing mode is multi-screen display, the display mode corresponding to the terminal may be the same as the display mode corresponding to the display device, and the content request message may not include the ID of the target object, that is, the terminal only needs to receive the target content in one display mode, and display the target content on the terminal and the display device simultaneously.
For example, example 1: the corresponding display scale of the display parameters is 16:9, the screen-throwing mode is single screen display, the identification of the display mode is 01, and the ID of the target object is a projector. The target content meets the transverse screen display mode, the single screen display selected by the user is performed, and the target content is decoded and encoded after being acquired by the terminal, transmitted to the display equipment for decoding and transverse screen display.
Example 2: the display parameters are correspondingly displayed as 16:9, the screen-throwing mode is multi-screen display, the identification of the display mode is 10 and 01, and the target object ID is a projector and an STA; the STA corresponds to the first target content (vertical screen display mode), and the projector corresponds to the second target content (horizontal screen display mode). The user selects multi-screen display, the first target content is decoded by the terminal and displayed on a vertical screen of the terminal; and the second target content is decoded and encoded through the terminal, transmitted to display equipment for decoding and transverse screen display.
Optionally, when the target screen-throwing mode is single screen display or only the target content is displayed on the display device, an operation area corresponding to the target content can be displayed on the terminal at the same time when the target content is displayed on the display device, and the operation area can operate the target content on the display device; for example, if the target content is video, operations such as pause, fast forward, next set, etc. can be performed through the operation area of the terminal.
It should be noted that, if the display parameter is the screen resolution, the display ratio may be correspondingly set; if the display parameters further include refresh rate, the frame rate of the target content sent by the server should be less than or equal to the refresh rate in the display parameters, so as to support the display device.
In some embodiments, when the screen of the terminal is a folding screen, the corresponding display scale of the terminal may be changed when the screen of the terminal is unfolded or folded. Therefore, the terminal can also detect the screen state of the terminal in real time, and when detecting the screen state change, the terminal determines the current screen state and the target display proportion corresponding to the current screen state; the current screen state may include a folded state and an unfolded state, and a display ratio corresponding to the folded state may be different from a display ratio corresponding to the unfolded state. Transmitting a current content request message to a server, wherein the current content request message comprises a target display proportion; receiving a current content response message, and obtaining first target content meeting a target display proportion according to the content response message; first target content satisfying a target display scale is displayed. Therefore, based on the screen state change of the terminal, the server feeds back different target contents according to the display scale so that the change of the screen state matches with the corresponding change of the content picture.
In some embodiments, a display device receives target content and determines a display mode of the target content; when the display mode is a vertical screen display mode, the display module of the display equipment is controlled to be in a first state corresponding to the vertical screen display mode; when the display mode is a horizontal screen display mode, the display module of the display device is controlled to be in a second state corresponding to the horizontal screen display mode. For example, if the display device is a projector, the display module may be a DMD chip, an LCD, an LCOMS, etc., and the first state is as shown in fig. 1c, where 1 and 3 are focusing lens groups, so as to implement beam shaping control, and 2 is a mirror, typically an adjustable component; and 5 is a TIR prism, 6 is a DMD chip, and 7 is a lens. In the second state, the DMD chip 6 in fig. 1c is rotated by 90 degrees about the central axis, and after the state of the DMD chip is changed, other corresponding optical devices can be adjusted adaptively. When the target content is switched from the vertical screen display mode to the horizontal screen display mode, the display module can be controlled to rotate from the first state to the second state.
It should be noted that, the content request message may be directly transmitted to the display device after encoding the content currently displayed by the terminal without executing the generation of the content request message and the transmission of the content request message to the server, and the display device may determine the display mode of the content after receiving the content, and control the display module of the display device to be in a corresponding state according to the display mode. Therefore, the target content corresponding to different display modes can be not stored in the server, so that the content displayed by the display device can be matched with the display mode of the display device while the computing resources are saved.
In this embodiment, when the screen projection is triggered, a content request message may be sent to the server, requesting for target content that satisfies the display mode of the display device; the server returns a response message to the terminal, and the target content can be obtained according to the response message; then, sending target content to the display equipment, wherein the target content is adapted to the display mode of the display equipment, so that stretching or clipping of the content is not needed, a non-projection display area does not exist during display, for example, black edges do not exist in the display area of a projector; the content displayed by the display device may be adapted to be displayed on the display device. Therefore, the user experience can be improved by the scheme.
In order to better implement the above method, the present application further provides a screen projection device, which may be specifically integrated in an electronic device, for example, in this embodiment, the method of the present application will be described in detail by taking the case that the screen projection device is specifically integrated in a smart phone.
For example, as shown in fig. 2, the screen projection device may include a response unit 201, a transceiver unit 202, an acquisition unit 202, and a display unit 204, as follows:
a response unit 201, configured to generate a content request message in response to a screen-drop triggering operation, where the content request message is used to request the server for the target content, and the content request message includes an identifier of the target content and an identifier of a display mode corresponding to the display device; the display mode is a vertical screen display mode and/or a horizontal screen display mode;
a transceiver unit 202, configured to send a content request message to a server, and receive a response message from the server;
an acquisition unit 202 for acquiring target content satisfying the display mode according to the response message;
and the display unit 204 is used for transmitting the target content to the display device for display.
In some embodiments, the content request message further includes a target screen-throwing mode, and before generating the content request message, the method further includes:
responding to the selection operation of the screen-throwing mode, and obtaining a target screen-throwing mode, wherein the screen-throwing mode comprises single-screen display and multi-screen display;
when the target screen-throwing mode is multi-screen display, the content request message also comprises a first object identifier and a second object identifier;
obtaining the target content meeting the display mode according to the response message, including:
obtaining first target content and second target content meeting the display mode according to the response message; the first target content is identified by a first object identification, and the second target content is identified by a second object identification.
In some embodiments, the method further comprises:
displaying the first target content;
transmitting the target content to a display device for display, comprising:
and transmitting the second target content to the display equipment for display.
In some embodiments, the content request message further includes a display parameter, and before generating the content request message, the method further includes:
establishing a connection with a display device;
receiving display parameters sent by display equipment, wherein the display parameters comprise at least one of the following: screen resolution, display ratio, refresh rate;
obtaining the target content meeting the display mode according to the response message, including:
and acquiring target content meeting the display mode and the display parameters according to the response message.
In some embodiments, before generating the content request message, further comprising:
determining a display mode according to the resolution or the display proportion of the screen; or alternatively, the first and second heat exchangers may be,
and receiving a display mode sent by the display device.
In some embodiments, the method further comprises:
when the screen state change is detected, determining the current screen state and a target display proportion corresponding to the current screen state;
transmitting a current content request message to a server, wherein the current content request message comprises a target display proportion;
receiving a current content response message, and obtaining first target content meeting a target display proportion according to the content response message;
first target content satisfying a target display scale is displayed.
In some embodiments, the method is applicable to a display device, the method further comprising:
receiving target content and determining a display mode of the target content;
when the display mode is a vertical screen display mode, the display module of the display equipment is controlled to be in a first state corresponding to the vertical screen display mode;
when the display mode is a horizontal screen display mode, the display module of the display device is controlled to be in a second state corresponding to the horizontal screen display mode.
In the implementation, each unit may be implemented as an independent entity, or may be implemented as the same entity or several entities in any combination, and the implementation of each unit may be referred to the foregoing method embodiment, which is not described herein again.
As can be seen from the above, the screen projection device of the present embodiment may send a content request message to the server when the screen projection is triggered, requesting for the target content that meets the display mode of the display device; the server returns a response message to the terminal, and the target content can be obtained according to the response message; then, sending target content to the display equipment, wherein the target content is adapted to the display mode of the display equipment, so that stretching or cutting of the content is not needed, and a non-screen-throwing display area does not exist during display; the content displayed by the display device may be adapted to be displayed on the display device. Therefore, the user experience can be improved by the scheme.
The present application further provides an electronic device, in this embodiment, a detailed description will be given taking an example that the electronic device of this embodiment is a smart phone, for example, as shown in fig. 3, which shows a schematic structural diagram of the electronic device related to the present application, specifically:
the electronic device may include one or more processing cores 'processors 301, one or more computer-readable storage media's memory 302, a power supply 303, an input module 304, and a communication module 305, among other components. Those skilled in the art will appreciate that the electronic device structure shown in fig. 3 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or may be arranged in different components. Wherein:
the processor 301 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 302, and invoking data stored in the memory 302. In some embodiments, processor 301 may include one or more processing cores; in some embodiments, processor 301 may integrate an application processor that primarily processes operating systems, user interfaces, applications, etc., with a modem processor that primarily processes wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 301.
The memory 302 may be used to store software programs and modules, and the processor 301 executes various functional applications and data processing by executing the software programs and modules stored in the memory 302. The memory 302 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the electronic device, etc. In addition, memory 302 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 302 may also include a memory controller to provide the processor 301 with access to the memory 302.
The electronic device also includes a power supply 303 that powers the various components, and in some embodiments, the power supply 303 may be logically connected to the processor 301 through a power management system to perform functions such as managing charging, discharging, and power consumption. The power supply 303 may also include one or more of any components, such as a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The electronic device may also include an input module 304, which input module 304 may be used to receive entered numeric or character information and to generate remote control, keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
The electronic device may also include a communication module 305, and in some embodiments the communication module 305 may include a wireless module, through which the electronic device may wirelessly transmit over a short distance, thereby providing wireless broadband internet access to the user. For example, the communication module 305 may be used to assist a user in e-mail, browsing web pages, accessing streaming media, and the like.
Although not shown, the electronic device may further include a display unit or the like, which is not described herein. In particular, in this embodiment, the processor 301 in the electronic device loads executable files corresponding to the processes of one or more application programs into the memory 302 according to the following instructions, and the processor 301 executes the application programs stored in the memory 302, so as to implement various functions as follows:
responding to the screen throwing triggering operation, generating a content request message, wherein the content request message is used for requesting target content from a server, and the content request message comprises the identification of the target content and the identification of a display mode corresponding to display equipment; the display mode is a vertical screen display mode and/or a horizontal screen display mode;
sending a content request message to a server, and receiving a response message of the server;
acquiring target content meeting the display mode according to the response message;
and transmitting the target content to a display device for display.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
As can be seen from the above, when the screen is triggered, the electronic device may send a content request message to the server, requesting for the target content that satisfies the display mode of the display device; the server returns a response message to the terminal, and the target content can be obtained according to the response message; then, sending target content to the display equipment, wherein the target content is adapted to the display mode of the display equipment, so that stretching or cutting of the content is not needed, and a non-screen-throwing display area does not exist during display; the content displayed by the display device may be adapted to be displayed on the display device. Therefore, the user experience can be improved by the scheme.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
To this end, the present application provides a computer readable storage medium having stored therein a plurality of instructions capable of being loaded by a processor to perform the steps of any of the screen projection methods provided herein. For example, the instructions may perform the steps of:
responding to the screen throwing triggering operation, generating a content request message, wherein the content request message is used for requesting target content from a server, and the content request message comprises the identification of the target content and the identification of a display mode corresponding to display equipment; the display mode is a vertical screen display mode and/or a horizontal screen display mode;
sending a content request message to a server, and receiving a response message of the server;
acquiring target content meeting the display mode according to the response message;
and transmitting the target content to a display device for display.
Wherein the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
According to one aspect of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the screen projection method provided in the above embodiment.
Because the instructions stored in the storage medium can execute the steps in any screen projection method provided by the application, the beneficial effects that any screen projection method provided by the application can realize can be realized, and detailed descriptions of the previous embodiments are omitted.
The foregoing has described in detail a method, apparatus, electronic device and computer readable storage medium for projection provided herein, and specific examples have been applied to illustrate the principles and embodiments of the present application, and the description of the foregoing examples is only for aiding in the understanding of the method and core idea of the present application; meanwhile, those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, and the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. The screen projection method is characterized by comprising the following steps of:
responding to screen throwing triggering operation, generating a content request message, wherein the content request message is used for requesting target content from a server, and the content request message comprises an identifier of the target content and an identifier of a display mode corresponding to display equipment; the display mode is a vertical screen display mode and/or a horizontal screen display mode;
sending a content request message to the server, and receiving a response message of the server;
acquiring target content meeting the display mode according to the response message;
and transmitting the target content to the display equipment for display.
2. The method of claim 1, wherein the content request message further includes a target screen-drop mode, and before the generating the content request message, further includes:
responding to the selection operation of a screen throwing mode, and obtaining the target screen throwing mode, wherein the screen throwing mode comprises single-screen display and multi-screen display;
when the target screen-throwing mode is multi-screen display, the content request message also comprises a first object identifier and a second object identifier;
the obtaining, according to the response message, the target content that satisfies the display mode includes:
obtaining first target content and second target content meeting the display mode according to the response message; the first target content is identified by the first object identifier, and the second target content is identified by the second object identifier.
3. The method of screening according to claim 2, further comprising:
displaying the first target content;
the step of transmitting the target content to a display device for display includes:
and transmitting the second target content to a display device for display.
4. The method for screening according to any one of claims 1 to 3, wherein the content request message further includes a display parameter, and before the content request message is generated, the method further includes:
establishing a connection with the display device;
receiving display parameters sent by the display equipment, wherein the display parameters comprise at least one of the following: screen resolution, display ratio, refresh rate;
the obtaining, according to the response message, the target content that satisfies the display mode includes:
and acquiring target content meeting the display mode and the display parameters according to the response message.
5. The method of screening according to claim 4, further comprising, prior to generating the content request message:
determining the display mode according to the screen resolution or the display proportion; or alternatively, the first and second heat exchangers may be,
and receiving the display mode sent by the display equipment.
6. The method of screening according to claim 3, further comprising:
when detecting that the screen state changes, determining the current screen state and a target display proportion corresponding to the current screen state;
transmitting a current content request message to the server, wherein the current content request message comprises the target display proportion;
receiving a current content response message, and obtaining first target content meeting the target display proportion according to the content response message;
and displaying the first target content meeting the target display proportion.
7. The method of screening according to claim 1, wherein the method is applicable to the display device, the method further comprising:
receiving target content and determining a display mode of the target content;
when the display mode is a vertical screen display mode, controlling a display module of the display device to be in a first state corresponding to the vertical screen display mode;
and when the display mode is a horizontal screen display mode, controlling a display module of the display equipment to be in a second state corresponding to the horizontal screen display mode.
8. A screen projection device, comprising:
the response unit is used for responding to the screen throwing triggering operation and generating a content request message, wherein the content request message is used for requesting target content from a server, and the content request message comprises an identifier of the target content and an identifier of a display mode corresponding to display equipment; the display mode is a vertical screen display mode and/or a horizontal screen display mode;
the receiving and transmitting unit is used for sending a content request message to the server and receiving a response message of the server;
an obtaining unit, configured to obtain, according to the response message, target content that satisfies the display mode;
and the display unit is used for transmitting the target content to the display equipment for display.
9. An electronic device comprising a processor and a memory, the memory storing a plurality of instructions; the processor loads instructions from the memory to perform the steps in the screen projection method of any of claims 1 to 7.
10. A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps in the method of screening according to any one of claims 1 to 7.
CN202210763388.5A 2022-06-30 2022-06-30 Screen projection method, device, electronic equipment and storage medium Pending CN117369745A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210763388.5A CN117369745A (en) 2022-06-30 2022-06-30 Screen projection method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210763388.5A CN117369745A (en) 2022-06-30 2022-06-30 Screen projection method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117369745A true CN117369745A (en) 2024-01-09

Family

ID=89402774

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210763388.5A Pending CN117369745A (en) 2022-06-30 2022-06-30 Screen projection method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117369745A (en)

Similar Documents

Publication Publication Date Title
US10489101B2 (en) Screen sharing system, screen sharing method, and storage medium
US20220020339A1 (en) Display method and apparatus
US10448082B2 (en) Information exchanging method and device, audio terminal and computer-readable storage medium
US20120293606A1 (en) Techniques and system for automatic video conference camera feed selection based on room events
US11589102B2 (en) Screen projection method and system
US9898241B2 (en) Information sharing system, image processing apparatus, and image processing method
RU2652452C2 (en) Device and method for network status information representation
US9338397B2 (en) Information processing device and conference system
US20160134919A1 (en) Networked data projecting system, projector, and content projecting method
US20160070421A1 (en) Information Processing Method And Electronic Apparatus
CN111949239B (en) Screen sharing method and device, storage medium and terminal
WO2024055840A1 (en) Image rendering method and apparatus, device, and medium
WO2022142568A1 (en) Method and device for content displaying
US20080005283A1 (en) Remote instruction system, remote instruction method, and program product therefor
CN117369745A (en) Screen projection method, device, electronic equipment and storage medium
US9270925B2 (en) Image output apparatus, image output system, and image output control program
CN115278278B (en) Page display method and device, electronic equipment and storage medium
CN114138217B (en) Terminal device and image display method
US20230418333A1 (en) Display method and device
CN115328419A (en) Multi-device screen projection method and device and computing device
KR20230131682A (en) A real-time broadcasting opertating system and method for placing viewer's video on a video wall based on an idetifier
CN117771666A (en) Picture display method, device, terminal and computer storage medium
CN116744049A (en) Screen projection method, device, equipment and storage medium
CN116781940A (en) Interface interaction method, device, equipment and storage medium
CN117749923A (en) Electronic equipment determining method, first electronic equipment and electronic equipment

Legal Events

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