Screen mirroring methods, systems, devices and storage media

By generating the push address on the screen casting server, the problem of existing screen casting methods being limited by hardware and systems is solved, universal screen casting across terminals is achieved, multiple protocol types are supported, and the flexibility and flexibility of screen casting are improved. Convenience.

CN114827682BActive Publication Date: 2024-08-23DOUYIN VISION CO LTD
View PDF 14 Cites 0 Cited by

Patent Information

Application Number
CN202210367043.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-08
Publication Date
2024-08-23
Estimated Expiration
2042-04-08

AI Technical Summary

Technical Problem

Existing screencasting methods are limited by hardware and systems, cannot achieve universality, and require the purchase of a license and a certain dependence on hardware.

Method used

Log in to the projection server by setting an account, generate a push address, and send the LAN address information, sender port information, and audio and video path information to the server to achieve cross-terminal projection of audio and video streams, supporting multiple protocol types such as HTTP-FLV and RTMP ensure that the receiving end can play audio and video streams regardless of hardware and system limitations.

Benefits of technology

It achieves the versatility of screencasting and is not subject to hardware and system restrictions. Users can freely choose the supported protocol types, reducing hardware and system dependence and improving the flexibility and convenience of screencasting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114827682B
    Figure CN114827682B
Patent Text Reader

Abstract

The embodiments of the present disclosure disclose a screen projection method, system, device and storage medium. It includes: logging in to the screen projection server based on a set account; generating a streaming address of at least one protocol type based on the sender information, and sending the streaming address to the screen projection server; wherein the sender information includes LAN address information, sender port information and audio and video path information; sending the audio and video stream to the target receiving end according to the streaming address, so that the target receiving end plays the audio and video stream; wherein the target receiving end is a terminal that uses the set account to log in to the screen projection server. The screen projection method provided by the embodiments of the present disclosure can achieve the versatility of screen projection, and is not limited by hardware and systems.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of screen projection technology, and in particular, to a screen projection method, system, device and storage medium. Background Art

[0002] Most of the existing screen projection methods are based on private or public protocols. These protocols have certain requirements on the sender and receiver to a certain extent. Some have a certain degree of dependence on hardware, some require the purchase of a license, and can only be used on specified systems, which limits the screen projection technology. Summary of the invention

[0003] The embodiments of the present disclosure provide a screen projection method, system, device and storage medium, which can achieve the versatility of screen projection without being restricted by hardware and system.

[0004] In a first aspect, an embodiment of the present disclosure provides a screen projection method, which is executed by a sending end and includes:

[0005] Log in to the screen projection server based on the set account;

[0006] Generate a streaming address of at least one protocol type based on the sender information, and send the streaming address to the screen projection server; wherein the sender information includes LAN address information, sender port information and audio and video path information

[0007] When a screen projection request is received from the target sending end, the audio and video stream is sent to the target receiving end according to the streaming address, so that the target receiving end plays the audio and video stream; wherein, the target receiving end is a terminal that uses the set account to log in to the screen projection server.

[0008] In a second aspect, an embodiment of the present disclosure further provides a screen projection method, which is executed by a receiving end and includes:

[0009] Log in to the screen projection server based on the set account;

[0010] Obtaining a streaming address list from the screen projection server through a screen projection request; wherein the streaming address is generated by logging into the sending end of the screen projection server using the set account;

[0011] The audio and video stream is obtained according to the streaming address selected by the user, and the audio and video stream is played.

[0012] In a third aspect, the embodiment of the present disclosure further provides a screen projection method, which is executed by a screen projection server, comprising:

[0013] When detecting that a sending end and at least one receiving end log in to the screen projection server based on the same set account, receiving a streaming address sent by the sending end and a screen projection request sent by at least one receiving end;

[0014] The streaming address is sent to the at least one receiving end according to the screen projection request, so that the sending end projects the played audio and video stream to the at least one receiving end for playback.

[0015] In a fourth aspect, an embodiment of the present disclosure further provides a screen projection system, including a sending end, a screen projection server and at least one receiving end;

[0016] The sending end and the at least one receiving end log in to the screen projection server based on the same set account; the sending end sends the generated streaming address to the screen projection server; the at least one receiving end sends a screen projection request to the screen projection server, and the screen projection server sends the streaming address to the at least one receiving end according to the screen projection request; the sending end projects the audio and video stream to the at least one receiving end for playback according to the streaming address.

[0017] In a fifth aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:

[0018] one or more processing devices;

[0019] A storage device for storing one or more programs;

[0020] When the one or more programs are executed by the one or more processing devices, the one or more processing devices implement the screen projection method as described in the embodiment of the present disclosure.

[0021] In a sixth aspect, an embodiment of the present disclosure further provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processing device, the screen projection method as described in the embodiment of the present disclosure is implemented.

[0022] The embodiments of the present disclosure disclose a screen projection method, system, device and storage medium. Log in to the screen projection server based on a set account; generate a streaming address of at least one protocol type based on the sender information, and send the streaming address to the screen projection server; wherein the sender information includes LAN address information, sender port information and audio and video path information; when a screen projection request sent by a target sender is received, the audio and video stream is sent to the target receiving end according to the streaming address, so that the target receiving end plays the audio and video stream. The screen projection method provided by the embodiments of the present disclosure can realize the versatility of screen projection, and is not limited by hardware and systems. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1is a flow chart of a screen projection method in an embodiment of the present disclosure;

[0024] Figure 2 is a flow chart of a screen projection method in an embodiment of the present disclosure;

[0025] Figure 3 is a flow chart of a screen projection method in an embodiment of the present disclosure;

[0026] Figure 4 is a structural principle diagram of a screen projection system in an embodiment of the present disclosure;

[0027] Figure 5 It is a structural principle diagram of an electronic device in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0028] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0029] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0030] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0031] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0032] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0033] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0034] Figure 1 This is a flowchart of a screen projection method provided in an embodiment of the present disclosure. This embodiment is applicable to screen projection situations. The method can be executed by a screen projection device set at a sending end, which can be a mobile terminal (such as a smart phone or tablet computer) or a wearable device (such as a smart watch, smart bracelet, smart glasses or head-mounted VR terminal, etc.). Figure 1 As shown, the method specifically comprises the following steps:

[0035] S110, log in to the screen projection server based on the set account.

[0036] Among them, the setting account can be an account registered by the user in the screen projection server, and the screen projection server can be understood as a server used to implement the screen projection function. In this embodiment, the user logs in to the screen projection server through the screen projection application (Application, APP) installed in the sending end or through the browser screen projection webpage to enter the setting account and login password. After the sending end logs in to the screen projection server, it can also report the local area network address to the screen projection server.

[0037] S120, generate a streaming address of at least one protocol type based on the sending end information, and send the streaming address to the screen projection server.

[0038] The sender information includes LAN address information, sender port information and audio and video path information, that is, the push stream address is composed of LAN address information, sender port information and audio and video path information. At least one protocol type may include a streaming media transmission protocol (Hyper Text Transfer Protocol-Flash Video, HTTP-FLV) and a real-time messaging protocol (Real Time Messaging Protocol, RTMP). The advantage of this is that the receiving end that supports the HTTP-FLV protocol or the RTMP protocol can receive the audio and video stream of the sender without being restricted by hardware and system.

[0039] Specifically, the sender generates a streaming address based on the acquired LAN address information, sender port information, and audio and video path information, and sends the streaming address to the screen projection server.

[0040] S130, sending the audio and video stream to the target receiving end according to the streaming address, so that the target receiving end plays the audio and video stream.

[0041] Among them, the target receiving end is a terminal that uses a set account to log in to the screen projection server, that is, the target receiving end and the sending end use the same account to log in to the screen projection server, and the target receiving end can be one or more.

[0042] In this embodiment, if the target receiving endpoint selects the streaming address, the sending end sends the audio and video stream to the target receiving end according to the streaming address, so that the target receiving end plays the audio and video stream, thereby enabling the sending end to project the audio and video stream to the target receiving end.

[0043] Specifically, the process of sending the audio and video stream to the target receiving end according to the streaming address can be: performing a screen recording operation on the sending end to obtain the audio and video stream; determining whether the sending end and the target receiving end are in the same local area network; if the sending end and the target receiving end are in the same local area network, establishing a data channel with the target receiving end according to the streaming address, and sending the audio and video stream to the target receiving end through the data channel; if the sending end and the target receiving end are not in the same local area network, sending the audio and video stream to the screen projection server, so that the screen projection server forwards the audio and video stream to the target receiving end.

[0044] Among them, the screen recording operation can be understood as recording the audio and video played on the current screen to obtain the audio and video stream.

[0045] The method for determining whether the sending end and the target receiving end are in the same local area network may be: sending a network exploration ping message to the target receiving end; if feedback information from the target receiving end is received, whether the sending end and the target receiving end are in the same local area network.

[0046] In this embodiment, after the sending end logs in to the screen projection server, the screen projection server sends a ping command to the sending end. The sending end pings the receiving end according to the ping command. If feedback information from the target receiving end is received, the sending end and the target receiving end are in the same local area network.

[0047] In this embodiment, if the sending end and the target receiving end are in the same local area network, the sending end sends the audio and video stream to the target receiving end through the established data channel; if the sending end and the target receiving end are not in the same local area network, the sending end sends the audio and video stream to the screen projection server, so that the screen projection server forwards the audio and video stream to the target receiving end.

[0048] The technical solution of the embodiment of the present disclosure is based on logging into the screen projection server with a set account; generating a streaming address of at least one protocol type based on the sender information, and sending the streaming address to the screen projection server; wherein the sender information includes LAN address information, sender port information and audio and video path information; when receiving a screen projection request sent by the target sender, the audio and video stream is sent to the target receiving end according to the streaming address, so that the target receiving end plays the audio and video stream. The screen projection method provided by the embodiment of the present disclosure can realize the versatility of screen projection, and is not limited by hardware and system.

[0049] Figure 2 This is a flow chart of a screen projection method provided by an embodiment of the present disclosure. Based on the above embodiment, this embodiment can be applied to screen projection situations. The method can be executed by a screen projection device set at a receiving end, and the receiving end can be a mobile terminal (such as a smart phone or a tablet computer) or a wearable device (such as a smart watch, a smart bracelet, smart glasses or a head-mounted VR terminal, etc.). Figure 1 As shown, the method specifically comprises the following steps:

[0050] S210, log in to the screen projection server based on the set account.

[0051] Among them, the setting account can be an account registered by the user in the screen projection server, and the screen projection server can be understood as a server used to implement the screen projection function. In this embodiment, the user logs in to the screen projection server through the screen projection application (Application, APP) installed in the receiving end or through the browser screen projection webpage to enter the setting account and login password. After the receiving end logs in to the screen projection server, it can also report the local area network address to the screen projection server.

[0052] S220, obtaining a streaming address list from the screen projection server through a screen projection request.

[0053] The streaming address is generated by the terminal that logs in to the screen casting server using the set account. The screen casting request can be sent through a browser web page or a screen casting APP.

[0054] In this embodiment, the process of obtaining the streaming address list from the screen projection server through a screen projection request can be: if the receiving end logs in to the screen projection server through a web page, a screen projection request is sent to the screen projection server by setting the screen projection URL to obtain the streaming address list.

[0055] Among them, the set screen projection website address can be a pre-set address, for example: http: / / www.touping.com. In this embodiment, after receiving the screen projection request, the screen projection server determines the communication protocol supported by the receiving end, and sends the push stream address list under the communication protocol supported by the receiving end corresponding to the same account to the receiving end. The receiving end selects one of the push stream addresses to obtain the audio and video stream corresponding to the push stream address. That is, if the receiving end supports the HTTP-FLV protocol, the screen projection server sends the push stream address list under the HTTP-FLV protocol to the receiving end; if the receiving end supports the RTMP protocol, the screen projection server sends the push stream address list under the RTMP protocol to the receiving end.

[0056] Optionally, if the receiving end logs in to the screen projection server through the screen projection APP, the screen projection request module detects the user-triggered screen projection request to obtain the streaming address list by sending a screen projection request to the screen projection server to obtain the streaming address list.

[0057] S230, obtaining the audio and video stream according to the streaming address selected by the user, and playing the audio and video stream.

[0058] Specifically, the user selects one of the streaming addresses from the streaming address list, obtains the audio and video stream corresponding to the sender corresponding to the streaming address, and plays the audio and video stream.

[0059] Optionally, the audio and video stream is obtained according to the streaming address selected by the user, and the method for playing the audio and video stream can be: determining the target sending end according to the streaming address selected by the user; if the receiving end and the target sending end are in the same local area network, receiving the audio and video stream sent by the target sending end; if the receiving end and the target sending end are in different local area networks, receiving the audio and video stream sent by the screen projection server.

[0060] In this embodiment, when the user selects one of the streaming addresses, the sending end that generates the streaming address is determined as the target sending end. If the receiving end and the target sending end are in the same local area network, the audio and video stream sent by the target sending end through the data channel is received. If the receiving end and the target sending end are in different local area networks, the audio and video stream forwarded by the screen projection server is received.

[0061] The technical solution of the embodiment of the present disclosure is based on logging in to the screen projection server with a set account; obtaining a list of push stream addresses from the screen projection server through a screen projection request; wherein the push stream address is generated by the sender using the set account to log in to the screen projection server; obtaining the audio and video stream according to the push stream address selected by the user, and playing the audio and video stream. The screen projection method provided by the embodiment of the present disclosure can realize the versatility of screen projection without being restricted by hardware and system.

[0062] Figure 3is a flow chart of a screen projection method provided by an embodiment of the present disclosure. Based on the above embodiment, this embodiment can be applied to screen projection situations. The method can be executed by a screen projection device set in a screen projection server. Figure 3 As shown, the method specifically comprises the following steps:

[0063] S410, when it is detected that a sending end and at least one receiving end log in to the screen projection server based on the same set account, a streaming address sent by the sending end and a screen projection request sent by at least one receiving end are received.

[0064] S420: Send the streaming address to at least one receiving end according to the screen projection request, so that the audio and video stream played by the sending end is projected to at least one receiving end for playback.

[0065] In this embodiment, when the sender logs in to the screen projection server based on the set account, a streaming address of at least one protocol type is generated based on the sender information, and the streaming address is sent to the screen projection server. When the receiving end logs in to the screen projection server based on the same set account, a screen projection request is sent to the screen projection server. The server sends the streaming address to at least one sender according to the screen projection request, so that the sender projects the played audio and video stream to at least one receiving end for playback.

[0066] Optionally, after receiving the streaming address sent by the sending end and the screen projection request sent by at least one receiving end, it also includes: if an audio and video stream is received from the sending end, the audio and video stream is forwarded to at least one receiving end for playback.

[0067] In this embodiment, if the receiving end and the sending end are not in the same local area network, the sending end sends the recorded audio and video stream to the screen projection server, so that the screen projection server forwards the audio and video stream to the receiving end.

[0068] The technical solution of this embodiment detects that the sending end and at least one receiving end log in to the screen projection server based on the same set account, receives the push stream address sent by the sending end and the screen projection request sent by at least one receiving end; sends the push stream address to at least one receiving end according to the screen projection request, so that the sending end projects the played audio and video stream to at least one receiving end for playback. The universality of screen projection can be achieved without being restricted by hardware and system.

[0069] Figure 4 is a structural principle diagram of a screen projection system provided by an embodiment of the present disclosure. Figure 4As shown, the system includes a sending end, a screen projection server and at least one receiving end. The sending end and at least one receiving end log in to the screen projection server based on the same set account; the sending end sends the generated push stream address to the screen projection server; at least one receiving end sends a screen projection request to the screen projection server, and the screen projection server sends the push stream address to at least one receiving end according to the screen projection request; the sending end projects the audio and video stream to at least one receiving end for playback according to the push stream address.

[0070] The system works as follows:

[0071] 1) The sender uses the set account to log in to the screen projection server and sends the LAN address to the screen projection server;

[0072] 2) The receiving end uses the same set account to log in to the screen projection server and sends the LAN address to the screen projection server;

[0073] 3) The screen projection server detects that the sender and receiver are logged in with the same account, and sends a ping command to the sender;

[0074] 4) The receiving end pings the receiving end according to the ping command. If the ping succeeds, the receiving end and the sending end are in the same LAN. Otherwise, the receiving end and the sending end are not in the same LAN.

[0075] 5) The sender generates a streaming address and sends it to the screen projection server;

[0076] 6) The receiving end enters the address http: / / www.touping.com through the web page to send a screen projection request to the screen projection server;

[0077] 7) The screen projection server sends the streaming address list to the receiving end according to the screen projection request;

[0078] 8) The receiving end receives the streaming address selected by the user from the streaming address list;

[0079] 9) The receiving end starts the screen recording operation and obtains the audio and video stream; if the receiving end and the sending end are in the same local area network, the audio and video stream is sent to the receiving end through the established data channel; if the receiving end and the sending end are not in the same local area network, the audio and video stream is sent to the screen projection server, so that the screen projection server forwards it to the receiving end;

[0080] 10) The receiving end plays the received audio and video streams to achieve screen projection.

[0081] The screen projection system disclosed in the embodiment of the present disclosure includes: a sending end, a screen projection server and at least one receiving end; the sending end and at least one receiving end log in to the screen projection server based on the same set account; the sending end sends the generated push stream address to the screen projection server; at least one receiving end sends a screen projection request to the screen projection server, and the screen projection server sends the push stream address to at least one receiving end according to the screen projection request; the sending end projects the audio and video stream to at least one receiving end for playback according to the push stream address. The universality of screen projection can be achieved without being restricted by hardware and system.

[0082] Reference below Figure 5 , which shows a schematic diagram of the structure of an electronic device 300 suitable for implementing the embodiment of the present disclosure. The electronic device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc., or various forms of servers, such as independent servers or server clusters. Figure 5 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0083] like Figure 5 As shown, the electronic device 300 may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 301, which can perform various appropriate actions and processes according to a program stored in a read-only storage device (ROM) 302 or a program loaded from a storage device 305 to a random access storage device (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic device 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.

[0084] Typically, the following devices may be connected to the I / O interface 305: input devices 306 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 307 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 308 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 309. The communication devices 309 may allow the electronic device 300 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 5 The electronic device 300 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0085] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing a method for recommending words. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 309, or installed from a storage device 305, or installed from a ROM 302. When the computer program is executed by the processing device 301, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0086] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0087] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0088] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0089] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: logs in to the screen projection server based on the set account; generates a streaming address of at least one protocol type based on the sender information, and sends the streaming address to the screen projection server; wherein the sender information includes LAN address information, sender port information and audio and video path information; sends the audio and video stream to the target receiving end according to the streaming address, so that the target receiving end plays the audio and video stream; wherein the target receiving end is a terminal that logs in to the screen projection server using the set account. Alternatively, log in to the screen projection server based on the set account; obtain a streaming address list from the screen projection server through a screen projection request; wherein the streaming address is generated by the sender that logs in to the screen projection server using the set account; obtains the audio and video stream according to the streaming address selected by the user, and plays the audio and video stream. Alternatively, when it is detected that the sending end and at least one receiving end log in to the screen projection server based on the same set account, the streaming address sent by the sending end and the screen projection request sent by the at least one receiving end are received; according to the screen projection request, the streaming address is sent to the at least one receiving end, so that the sending end projects the played audio and video stream to the at least one receiving end for playback.

[0090] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0091] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0092] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.

[0093] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0094] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0095] According to one or more embodiments of the present disclosure, the present disclosure discloses a screen projection method, which is executed by a sending end and includes:

[0096] Log in to the screen projection server based on the set account;

[0097] Generate a streaming address of at least one protocol type based on the sender information, and send the streaming address to the screen projection server; wherein the sender information includes local area network address information, sender port information and audio and video path information;

[0098] The audio and video stream is sent to the target receiving end according to the streaming address, so that the target receiving end plays the audio and video stream; wherein, the target receiving end is a terminal that uses the set account to log in to the screen projection server.

[0099] Further, sending the audio and video stream to the target receiving end according to the streaming address includes:

[0100] Performing a screen recording operation on the sending end to obtain an audio and video stream;

[0101] Determine whether the sending end and the target receiving end are in the same local area network;

[0102] If the sending end and the target receiving end are in the same local area network, a data channel with the target receiving end is established according to the streaming address, and the audio and video stream is sent to the target receiving end through the data channel;

[0103] If the sending end and the target receiving end are not in the same local area network, the audio and video stream is sent to the screen projection server, so that the screen projection server forwards the audio and video stream to the target receiving end.

[0104] Further, determining whether the sending end and the target receiving end are in the same local area network includes:

[0105] Sending a network exploration ping message to the target receiving end;

[0106] If the feedback information of the target receiving end is received, the sending end and the target receiving end are in the same local area network.

[0107] The embodiment of the present disclosure further provides a screen projection method, which is executed by a receiving end and includes:

[0108] Log in to the screen projection server based on the set account;

[0109] Obtaining a streaming address list from the screen projection server through a screen projection request; wherein the streaming address is generated by logging into the sending end of the screen projection server using the set account;

[0110] The audio and video stream is obtained according to the streaming address selected by the user, and the audio and video stream is played.

[0111] Further, obtaining a streaming address list from the screen projection server through a screen projection request includes:

[0112] If the receiving end logs in to the screen projection server through a web page, a screen projection request is sent to the screen projection server by setting the screen projection URL to obtain a streaming address list.

[0113] Further, obtaining the audio and video stream according to the streaming address selected by the user, and playing the audio and video stream, includes:

[0114] Determine the target sender based on the streaming address selected by the user;

[0115] If the receiving end and the target sending end are in the same local area network, receiving the audio and video stream sent by the target sending end;

[0116] If the receiving end and the target sending end are in different local area networks, the audio and video stream sent by the screen projection server is received.

[0117] The present disclosure discloses a screen projection method, which is executed by a screen projection server, including:

[0118] When detecting that a sending end and at least one receiving end log in to the screen projection server based on the same set account, receiving a streaming address sent by the sending end and a screen projection request sent by at least one receiving end;

[0119] The streaming address is sent to the at least one receiving end according to the screen projection request, so that the sending end projects the played audio and video stream to the at least one receiving end for playback.

[0120] Furthermore, after receiving the streaming address sent by the sending end and the screen projection request sent by the at least one receiving end, the method further includes:

[0121] If the audio and video stream sent by the sending end is received, the audio and video stream is forwarded to the at least one receiving end for playing.

[0122] Note that the above are only preferred embodiments of the present disclosure and the technical principles used. Those skilled in the art will understand that the present disclosure is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present disclosure. Therefore, although the present disclosure is described in more detail through the above embodiments, the present disclosure is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present disclosure, and the scope of the present disclosure is determined by the scope of the attached claims.

Claims

1. A screen projection method, It is characterized in that The method is performed by a sending end and includes: Log in to the screen projection server based on the set account; Generate a streaming address of at least one protocol type based on the sender information, and send the streaming address to the screen projection server, so that the target receiving end obtains a streaming address list from the screen projection server through a screen projection request; wherein the sender information includes local area network address information, sender port information and audio and video path information, the at least one protocol type includes a streaming media transmission protocol and a real-time message transmission protocol, and the streaming address list is determined by the screen projection server based on the communication protocol supported by the target receiving end; The audio and video stream is sent to the target receiving end according to the streaming address, so that the target receiving end plays the audio and video stream; wherein, the target receiving end is a terminal that uses the set account to log in to the screen projection server.

2. The method according to claim 1, It is characterized in that The method includes sending the audio and video stream to the target receiving end according to the streaming address, including: Performing a screen recording operation on the sending end to obtain an audio and video stream; Determine whether the sending end and the target receiving end are in the same local area network; If the sending end and the target receiving end are in the same local area network, a data channel with the target receiving end is established according to the streaming address, and the audio and video stream is sent to the target receiving end through the data channel; If the sending end and the target receiving end are not in the same local area network, the audio and video stream is sent to the screen projection server, so that the screen projection server forwards the audio and video stream to the target receiving end.

3. The method according to claim 2, It is characterized in that Determining whether the sending end and the target receiving end are in the same local area network includes: Sending a network exploration ping message to the target receiving end; If the feedback information of the target receiving end is received, the sending end and the target receiving end are in the same local area network.

4. A screen projection method, It is characterized in that The method is performed by a receiving end and includes: Log in to the screen projection server based on the set account; Obtaining a streaming address list from the screen casting server through a screen casting request; wherein the streaming address is generated by a sender that logs in to the screen casting server using the set account, and the sender generates a streaming address of at least one protocol type based on the sender information, and the at least one protocol type includes a streaming media transmission protocol and a real-time message transmission protocol, and the streaming address list is determined by the screen casting server based on the communication protocol supported by the receiving end; The audio and video stream is obtained according to the streaming address selected by the user, and the audio and video stream is played.

5. The method according to claim 4, It is characterized in that Obtaining a streaming address list from the screen projection server through a screen projection request includes: If the receiving end logs in to the screen projection server through a web page, a screen projection request is sent to the screen projection server by setting the screen projection URL to obtain a streaming address list.

6. The method according to claim 4, It is characterized in that Obtaining the audio and video stream according to the streaming address selected by the user and playing the audio and video stream includes: Determine the target sender based on the streaming address selected by the user; If the receiving end and the target sending end are in the same local area network, receiving the audio and video stream sent by the target sending end; If the receiving end and the target sending end are in different local area networks, the audio and video stream sent by the screen projection server is received.

7. A screen projection method, It is characterized in that The method is executed by a screen projection server and includes: When it is detected that a sender and at least one receiver log in to the screen projection server based on the same set account, a streaming address sent by the sender and a screen projection request sent by the at least one receiver are received, wherein the sender generates a streaming address of at least one protocol type based on the sender information, and the at least one protocol type includes a streaming media transmission protocol and a real-time message transmission protocol; Sending a streaming address list to the at least one receiving end according to the screen projection request, so that the sending end projects the played audio and video stream to the at least one receiving end for playback; The sending the streaming address list to the at least one receiving end according to the screen projection request includes: For each of the at least one receiving end, after receiving the screen projection request, the communication protocol supported by the receiving end is determined, and a streaming address list under the communication protocol supported by the receiving end is sent to the receiving end.

8. The method according to claim 7, It is characterized in that After receiving the streaming address sent by the sending end and the screen projection request sent by the at least one receiving end, the method further includes: If the audio and video stream sent by the sending end is received, the audio and video stream is forwarded to the at least one receiving end for playing.

9. A screen projection system, It is characterized in that include: A sending end, a screen projection server and at least one receiving end; The sending end and the at least one receiving end log in to the screen projection server based on the same set account; The sending end sends the generated streaming address to the screen projection server; The at least one receiving end sends a screen projection request to the screen projection server, and the screen projection server sends a streaming address list to the at least one receiving end according to the screen projection request; the sending end projects the audio and video stream to the at least one receiving end for playback according to the streaming address list, wherein the streaming address is a streaming address of at least one protocol type generated by the sending end based on the sending end information, and the at least one protocol type includes a streaming media transmission protocol and a real-time message transmission protocol; The screen projection server sends the streaming address list to the at least one receiving end according to the screen projection request, including: For each of the at least one receiving end, after receiving the screen projection request, the screen projection server determines the communication protocol supported by the receiving end, and sends a streaming address list under the communication protocol supported by the receiving end to the receiving end.

10. An electronic device, It is characterized in that The electronic device comprises: one or more processing devices; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processing devices, the one or more processing devices implement the screen projection method as described in any one of claims 1-8.

11. A computer readable medium having a computer program stored thereon, It is characterized in that When the program is executed by a processing device, the screen projection method as described in any one of claims 1-8 is implemented.

Citation Information

Patent Citations

  • Information processing method and device

    CN105430433A

  • Screen projection method and system for HLS protocol

    CN107135417A

  • Control method, device and system for projection screen

    CN108989879A

  • Method and device for establishing wireless screen projection connection, equipment and storage medium

    CN111913679A

  • Screen projection control method, screen projection receiving end and storage medium

    CN112165520A