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

Screen projection method and device and electronic equipment Download PDF

Info

Publication number
CN112947880A
CN112947880A CN202110273562.3A CN202110273562A CN112947880A CN 112947880 A CN112947880 A CN 112947880A CN 202110273562 A CN202110273562 A CN 202110273562A CN 112947880 A CN112947880 A CN 112947880A
Authority
CN
China
Prior art keywords
multicast group
request
screen projection
electronic device
data
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
CN202110273562.3A
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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202110273562.3A priority Critical patent/CN112947880A/en
Publication of CN112947880A publication Critical patent/CN112947880A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • H04W4/08User group management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The embodiment of the disclosure discloses a screen projection method and device and electronic equipment. One embodiment of the method comprises: sending a multicast group establishment request based on predefined screen projection initiating operation; and sending the screen projection data to be projected to a multicast group address of the multicast group established based on the multicast group establishing request, wherein the multicast group members in the multicast group display screen projection contents according to the received screen projection data to be projected. Therefore, a new screen projection mode can be provided.

Description

Screen projection method and device and electronic equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a screen projection method and apparatus, and an electronic device.
Background
With the development of computer technology, people can realize various functions by using computers. For example, multimedia data such as images or sounds of a certain device may be delivered to another display device in a wireless transmission manner, so that the two devices present the same audio and video content, which may be referred to as screen projection.
Disclosure of Invention
This disclosure is provided to introduce concepts in a simplified form that are further described below in the detailed description. This disclosure is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
In a first aspect, an embodiment of the present disclosure provides a screen projection method, where the method includes: sending a multicast group establishment request based on predefined screen projection initiating operation; and sending the screen projection data to be projected to a multicast group address of the multicast group established based on the multicast group establishing request, wherein the multicast group members in the multicast group display screen projection contents according to the received screen projection data to be projected.
In a second aspect, the disclosed embodiments provide a screen projection device, the device comprising: the first sending unit is used for sending a multicast group establishing request based on predefined screen projection initiating operation; and the second sending unit is used for sending the data to be screen-projected to the multicast group address of the multicast group established based on the multicast group establishing request, wherein the multicast group members in the multicast group display the screen-projected content according to the received data to be screen-projected.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including: one or more processors; a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the screen projection method as described in the first aspect.
In a fourth aspect, the disclosed embodiments provide a computer readable medium, on which a computer program is stored, which when executed by a processor, implements the steps of the screen projection method according to the first aspect.
The screen projection method, the screen projection device and the electronic equipment provided by the embodiment of the disclosure can initiate operation based on screen projection, send a multicast group establishment request, and then send screen data to be projected to a multicast group address established based on the multicast group establishment request, and multicast group members in the multicast group can display screen projection content according to the received screen data to be projected. Therefore, a new screen projection mode can be provided. The new screen projection mode can realize that one device projects screens to a plurality of devices; secondly, the data transmission quantity can be reduced, and the network load can be reduced.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
FIG. 1 is a flow diagram of one embodiment of a screen projection method according to the present disclosure;
FIG. 2 is a schematic diagram of one application scenario of a screen projection method according to the present disclosure;
FIG. 3 is a schematic diagram of another application scenario of a screen projection method according to the present disclosure;
FIG. 4 is a signaling diagram of a screen projection method according to the present disclosure;
FIG. 5 is a flow chart of yet another embodiment of a screen projection method according to the present disclosure;
FIG. 6 is a schematic structural diagram of one embodiment of a screen projection device according to the present disclosure;
FIG. 7 is an exemplary system architecture to which the screen projection method of one embodiment of the present disclosure may be applied;
fig. 8 is a schematic diagram of a basic structure of an electronic device provided according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Referring to fig. 1, a flow diagram of one embodiment of a screen projection method according to the present disclosure is shown. The screen projection method as shown in fig. 1 comprises the following steps:
step 101, based on predefined screen projection initiating operation, sending a multicast group establishment request.
In this embodiment, a first execution subject (e.g., a terminal device) of the screen projection method may send a multicast group setup request based on a predefined screen projection initiation operation.
Here, the predefined screen-casting initiating operation may be used to initiate screen casting. The specific form of the screen-projecting initiating operation may be set according to an actual application scenario, and is not limited herein.
As an example, a screen-casting initiating control may be preset, and the predefined screen-casting initiating operation may include clicking the screen-casting initiating control.
Here, multicast refers to sending a packet to a certain set of nodes (i.e. a multicast group) in a network, and the basic idea is: that is, the multicast source sends data, and the destination address is the multicast group address; all recipients in the multicast group may receive the same copy of the data and only devices within the multicast group may receive the data while other devices may not.
It can be understood that the newly established multicast group may not have a multicast group member; however, the device that establishes the multicast group may perform some actions for the multicast group, such as determining multicast group members, setting storage space for the multicast group, and so on.
And 102, sending the data to be screened to the multicast group address of the multicast group established based on the multicast group establishing request.
In this embodiment, the first execution main body may send the data to be screened to a multicast group address of a multicast group established based on the multicast group establishment request.
Here, the first execution agent transmits a multicast group establishment request to request the multicast group establishment device to establish a multicast group. The multicast group setup device may return a setup completion notification to the first execution body in response to completion of the multicast group setup. And the first execution main body responds to the received establishment completion notification and sends the data to be screened to the multicast group address of the established multicast group.
Here, the multicast group may include multicast group members. As an example, a multicast group member identification may be stored in association with a multicast group to determine the multicast group members in the multicast group.
Here, the multicast group members in the multicast group display screen projection content according to the received data to be screen projected.
In this embodiment, the data to be screened may be data that the multicast source desires to screen other devices.
Here, the form and content of the data to be projected are not limited. As an example, the data to be screened may be audio/video data, or may be document data.
It should be noted that, the screen projection method provided in this embodiment may initiate an operation based on screen projection, send a multicast group establishment request, and then send data to be projected to a multicast group address established based on the multicast group establishment request, where multicast group members in the multicast group may display screen projection content according to the received data to be projected to the screen. Therefore, a new screen projection mode can be provided. The new screen projection mode can realize that one device projects screens to a plurality of devices; secondly, the data transmission quantity can be reduced, and the network load can be reduced. In contrast, if the multicast source performs one-to-one data transmission on each device to be screened, the repeated data packets not only occupy a large amount of bandwidth, but also increase the load of the multicast source.
In some embodiments, the data forwarding device establishes the multicast group in response to receiving the multicast group establishment request.
Here, the first electronic device that transmits the multicast group setup request is a multicast source of the multicast group.
Here, the data forwarding device may be a device capable of forwarding data, and the data forwarding device may support establishment of a wireless network. As an example, the data forwarding device may be a router, a switch, a terminal device that establishes a wireless hotspot, and the like.
Here, the data forwarding apparatus may pre-establish a multicast group.
Here, the number of multicast groups established by the data transfer device may be one or more. The multicast address and the multicast group are in one-to-one correspondence.
In some embodiments, the data forwarding device sends the to-be-projected-screen data to multicast group members in the multicast group in response to receiving the to-be-projected-screen data sent to the multicast group address.
In some application scenarios, the data forwarding device may receive the data forwarding request including an address; the addresses may differ according to actual requirements. As an example, the address in the data forwarding request may be a server running a website, or may be a terminal device. The data forwarding device may resolve the address in the data forwarding request to determine the device to forward the data to.
In some application scenarios, the multicast address of the multicast group may be specified by the first electronic device. The first electronic device may send a multicast group setup request including a multicast address to the data forwarding device.
Here, if the address in the data forwarding request is analyzed as a multicast address, the data forwarding apparatus may determine, according to a correspondence relationship between the multicast address and the multicast group, a multicast group corresponding to the multicast address in the data forwarding request.
Here, the multicast group may include multicast group members. As an example, the data forwarding device may store a multicast group member identifier in association with the multicast group to determine multicast group members in the multicast group.
It should be noted that, the data forwarding device establishes a multicast group in response to receiving a multicast group establishment request, and may be used as a basis for forwarding the data to be screened; therefore, the first electronic device can initiate operation based on screen projection, and request the data forwarding device to establish the multicast group, so that the multicast group can be established quickly, and the screen projection speed is increased.
In some embodiments, the user initiating the screen projection may choose to perform the screen projection in a multicast manner. Specifically, the sending a multicast group establishment request based on a predefined screen projection initiating operation includes: responding to the detection of screen projection initiating operation, and displaying multicast group establishment confirmation information; in response to detecting the confirmation operation of the multicast group establishment confirmation information, a multicast group establishment request is sent.
Referring to fig. 2, after the user initiating screen projection clicks the screen projection initiating control 201 (indicated with screen projection initiating), the first electronic device may display multicast group establishment confirmation information 202 (indicating that there is multicast screen projection), and optionally, may also display unicast confirmation information 203 (indicating that there is one-to-one screen projection). Then, if the user initiating the screen projection performs a confirmation operation with respect to the multicast group setup confirmation information 202, for example, clicks on the multicast group setup confirmation information 202, the first electronic device may send a multicast group setup request to the bookkeeping forwarding device.
It should be noted that, the user initiating screen projection confirms to establish the multicast group and requests to establish the multicast group to enter the screen projection, so that an optional screen projection mode can be provided for the user, and the user selects the screen projection mode according to the actual application scene, thereby avoiding the condition of screen projection data leakage.
In some embodiments, the multicast source may actively select a multicast group member. Specifically, the sending a multicast group establishment request based on a predefined screen projection initiating operation includes: responding to the detection of screen projection initiating operation, and displaying a second electronic equipment identifier; and sending a multicast group establishment request, wherein the multicast group establishment request comprises a second electronic equipment identifier selected by the user.
Here, the second electronic device identification indicates other electronic devices in the same network as the first electronic device. Optionally, the data transmission is performed in the same network, and data transmission through the same wireless network may be indicated, or a communication relationship may be indicated. By way of example, electronic devices connected to the same wireless network may be referred to as being on the same network.
As an example, device a, device b, device c, and device d have joined the wireless network described above. If the device A is the first electronic device which initiates screen projection, the device B, the device C and the device D can be used as second electronic devices. The device A can acquire the second electronic device identification from the data forwarding device in response to detecting the screen-casting initiation operation. Then, the device a can present the second electronic device identifications "device b", "device c", and "device d". Then, the user of device A can select device B and device C. Finally, device a may send a multicast group setup request including "device b" and "device c" to the data forwarding device. In other words, device a actively selects to establish a multicast group including "device b" and "device c".
It should be noted that, the user of the first electronic device actively selects a device group member, and in the case that the wireless network is open, it may be prevented that an unrelated device acquires data to be screened, where the unrelated device is a device that is connected to the wireless network but the user of the first electronic device does not desire to screen the first electronic device.
Referring to fig. 3, fig. 3 is a schematic diagram illustrating a scenario in which a multicast source actively selects a multicast group member. After the user clicks the multicast group establishment confirmation information 202 shown in fig. 2, the first electronic device may present an interface shown in fig. 3, and in the interface shown in fig. 3, a word "please select a multicast group member" may be presented, and an optional second electronic device identifier is shown, which may include, as an example, "device b", "device c", and "device d".
In some embodiments, the data forwarding device may query the second electronic device whether to join the multicast group. Specifically, the data forwarding device joins the target second electronic device that sent the confirmation information to the multicast group in response to receiving the confirmation information for the join inquiry request. The target second electronic device receives and presents the join inquiry request.
Here, the join inquiry request is for inquiring whether to join the multicast group.
Optionally, the target second electronic device queried by the data forwarding device may be all second electronic devices participating in the same network as the first electronic device, or may be part of second electronic devices participating in a wireless network.
It should be noted that, before joining the second electronic device into the multicast group, the data forwarding device queries the user of the second electronic device, and may provide the second electronic device with a choice whether to receive the data to be screened. Therefore, whether the second electronic equipment receives the screen projection of the first electronic equipment or not can be autonomously controlled by the second electronic equipment, and the safety of the second electronic equipment is improved.
Optionally, the target second electronic device is an electronic device indicated by the second electronic device identifier in the multicast group establishment request. In other words, if the multicast group establishment request includes the second electronic device identifier, the data forwarding device may send the join query information to the second electronic device indicated by the second electronic device identifier in the multicast group establishment request.
As an example, device a, device b, device c, and device d have joined the wireless network described above. If the device A is the first electronic device which initiates screen projection, the device A actively selects to establish a multicast group comprising a device B and a device C. The data forwarding device may send a join query request to "device b" and "device c" instead of sending a join query request to device d.
It should be noted that, by sending the join inquiry information through the second electronic device in the multicast group establishment request, the first electronic device may initiate screen projection and define a screen projection range, and then the second electronic device agrees to screen projection, and the first electronic device and the second electronic device interact with each other, so as to ensure data security for both screen projection parties.
In some embodiments, the second electronic device may actively request to join the multicast group. Specifically, the second electronic device sends a multicast group join request in response to detecting a trigger operation for a multicast group join control.
In some embodiments, the data forwarding device may determine whether a second electronic device that sent a multicast group join request joins the multicast group in response to receiving the multicast group join request sent by the second electronic device.
It should be noted that, the second electronic device may actively request to join the multicast group, and may have an opportunity to join the multicast group and participate in screen projection in a case that the second electronic device does not join the multicast group for various reasons and desires to be screen projected.
Optionally, the second electronic device may present, in response to joining the wireless network, a notification message including a multicast group identifier. The prompt message may be used to prompt an existing multicast group so that the second electronic device may join the multicast group.
As an example, device a, device b, and device c have joined the wireless network described above. If the device A is the first electronic device which initiates screen projection, the data forwarding device establishes a multicast group comprising a device B and a device C. Then, the device d joins the wireless network again, and the device d may send the multicast group join request to the data forwarding device.
Optionally, the second electronic device may refuse to join the multicast group before, and then the second electronic device wants to join the multicast group in the middle of screen projection to participate in the screen projection. At this time, the second electronic device may request the existing multicast group from the data forwarding device, display the existing multicast group identifier, and then join the multicast group identifier selectively.
In some embodiments, the method further comprises: determining whether to join a second electronic device, which transmits a multicast group join request, to the multicast group in response to receiving the approval request; and in response to detecting the confirmation information for the approval request, joining the second electronic device, which transmits the multicast group join request, to the multicast group.
Here, the approval request is generated based on a multicast group join request transmitted by the second electronic device.
In some application scenarios, the data forwarding device may directly join the second electronic device that sends the multicast group join request to the multicast group in response to receiving the multicast group join request sent by the second electronic device.
In some application scenarios, the determining, by the data forwarding device, whether to join a second electronic device that sends the multicast group join request to the multicast group in response to the received multicast group join request includes: transmitting an approval request to the first electronic device in response to the received multicast group join request, wherein the approval request is used for requesting whether to confirm that the second electronic device transmitting the multicast group join request is joined to the multicast group; and in response to receiving the confirmation information for the approval request, joining the second electronic device, which transmits the multicast group joining request, to the multicast group.
In other words, if the first electronic device confirms the approval request, the data forwarding device may join the second electronic device, which transmits the multicast group join request, to the multicast group.
It should be noted that, by determining whether to add the second electronic device to the multicast group by the first electronic device, the first electronic device may control the screen projection range to ensure data security when the wireless network is open to the public.
In some embodiments, the second electronic device exits the multicast group in response to detecting the predefined multicast group exit operation.
Here, the multicast group member may request to exit the multicast group. The data forwarding device may delete, in response to receiving the quit request, a multicast group member that sent the quit request from the multicast group, so as to update the multicast group members in the multicast group.
In some embodiments, the method further comprises: and in response to detecting the predefined screen projection ending operation, ending screen projection.
Here, the data forwarding device may be configured to dismiss the multicast group when the first electronic device desires to end the screen projection. Therefore, after the screen projection is finished, the original multicast group member cannot continuously acquire the data to be projected for screen projection.
Referring to fig. 4, an exemplary signaling diagram of the screen projection method of the present disclosure is shown. In fig. 4, the first electronic device may act as a multicast source and the second electronic device may act as a member of a multicast group.
In step 401, the first electronic device may send a multicast group setup request to the data forwarding device.
In step 402, the data forwarding device establishes a multicast group in response to receiving a multicast group establishment request.
In step 403, the data forwarding device may send join inquiry information to the target second electronic device.
In step 404, the second electronic device may send confirmation information for joining the query information to the data forwarding device.
In step 405, the second electronic device may send a multicast group join request to the data forwarding device.
In step 406, the second electronic device may send an exit request to the data forwarding device.
In step 407, the data forwarding device may update the multicast group in response to receiving the multicast group join request, the quit request, or the confirmation information for the join inquiry information.
In step 408, the first electronic device may send a data forwarding request to the data forwarding device.
In step 409, the data forwarding device may send the data to be screened to the second electronic device, that is, the multicast group member.
In step 410, the first electronic device may send a screen projection end request to the data forwarding device.
In step 411, the data forwarding device may, in response to receiving the screen projection end request, dissemble the multicast group.
It should be noted that details of implementation and technical effects of each step in fig. 4 may refer to descriptions of relevant parts in this application, and are not described herein again. The execution sequence between the steps in fig. 4 is not limited, and for example, step 405 may be anywhere between step 401 and step 411.
Continuing to refer to FIG. 5, a flow diagram of one embodiment of a screen projection method according to the present disclosure is shown. The screen projection method is applied to data forwarding equipment, and as shown in fig. 5, the screen projection method includes the following steps:
step 501, in response to determining that the received data forwarding request includes a multicast address, determining a multicast group corresponding to the multicast address.
In this embodiment, the second execution subject (e.g., the data forwarding device) of the screen projection method may determine, in response to determining that the received data forwarding request includes the multicast address, a multicast group corresponding to the multicast address.
Here, the data forwarding device may be a device capable of forwarding data, and the data forwarding device may support establishment of a wireless network. As an example, the data forwarding device may be a router, a switch, a terminal device that establishes a wireless hotspot, and the like.
In some application scenarios, the data forwarding device may receive the data forwarding request including an address; the addresses may differ according to actual requirements. As an example, the address in the data forwarding request may be a server running a website, or may be a terminal device. The data forwarding device may resolve the address in the data forwarding request to determine the device to forward the data to.
Here, the data forwarding apparatus may pre-establish a multicast group. Multicast refers to sending a data packet to a certain node set (i.e. a multicast group) in a network, and the basic idea is as follows: that is, the multicast source sends data, and the destination address is the multicast group address; all recipients in the multicast group may receive the same copy of the data and only devices within the multicast group may receive the data while other devices may not.
Here, the number of multicast groups established by the data transfer device may be one or more. The multicast address and the multicast group are in one-to-one correspondence.
Here, if the address in the data forwarding request is analyzed as a multicast address, the data forwarding apparatus may determine, according to a correspondence relationship between the multicast address and the multicast group, a multicast group corresponding to the multicast address in the data forwarding request.
In this embodiment, the multicast group includes members of the multicast group. As an example, the data forwarding device may store a multicast group member identifier in association with the multicast group to determine multicast group members in the multicast group.
In this embodiment, the data forwarding request may further include screen to be projected data. Here, the data to be screened may be data that the multicast source desires to screen other devices.
Here, the form and content of the data to be projected are not limited. As an example, the data to be screened may be audio/video data, or may be document data.
Step 502, sending the data to be screened to the multicast group members in the multicast group.
In this embodiment, the first execution subject may send the data to be screened to multicast group members in a multicast group.
Here, the data to be screened may be sent to the multicast group members.
It should be noted that, in the screen projection method provided in this embodiment, when a data forwarding request including a multicast address is received, the data to be projected is sent to multicast group members in a multicast group. Therefore, a new screen projection mode can be provided. The new screen projection mode can realize that one device projects screens to a plurality of devices; secondly, the data transmission quantity can be reduced, and the network load can be reduced. In contrast, if the multicast source performs one-to-one data transmission on each device to be screened, the repeated data packets not only occupy a large amount of bandwidth, but also increase the load of the multicast source.
It should be noted that, in the screen projection method provided in the embodiment corresponding to fig. 5, details of implementation and technical effects of each step may refer to descriptions of relevant parts in this application, and are not described herein again.
With further reference to fig. 6, as an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a screen projection apparatus, which corresponds to the method embodiment shown in fig. 1, and which can be applied in various electronic devices.
As shown in fig. 6, the screen projection device of the present embodiment includes: a first transmission unit 601 and a second transmission unit 602. The first sending unit is used for sending a multicast group establishing request based on predefined screen projection initiating operation; and the second sending unit is used for sending the data to be screen-projected to the multicast group address of the multicast group established based on the multicast group establishing request, wherein the multicast group members in the multicast group display the screen-projected content according to the received data to be screen-projected.
In this embodiment, specific processing of the first sending unit 601 and the second sending unit 602 of the screen projection apparatus and technical effects brought by the processing can refer to related descriptions of step 101 and step 102 in the corresponding embodiment of fig. 1, which are not described herein again.
In some embodiments, the data forwarding device establishes a multicast group in response to receiving a multicast group establishment request, where a first electronic device that sends the multicast group establishment request is a multicast source of the multicast group; and the data forwarding equipment responds to the received to-be-projected-screen data sent to the multicast group address, and sends the to-be-projected-screen data to multicast group members in the multicast group.
In some embodiments, the sending a multicast group setup request based on a predefined screen-casting initiation operation includes: responding to the detection of screen projection initiating operation, and displaying multicast group establishment confirmation information; in response to detecting the confirmation operation of the multicast group establishment confirmation information, a multicast group establishment request is sent.
In some embodiments, the sending a multicast group setup request based on a predefined screen-casting initiation operation includes: responding to the detection of screen projection initiating operation, and displaying a second electronic equipment identifier, wherein the second electronic equipment identifier indicates other electronic equipment in the same network with the first electronic equipment; and sending a multicast group establishment request, wherein the multicast group establishment request comprises a second electronic equipment identifier selected by the user.
In some embodiments, the target second electronic device receives and presents a join inquiry request, where the join inquiry request is used to inquire whether to join the multicast group, where the target second electronic device is another electronic device in the same network as the first electronic device, or the target second electronic device identifies the electronic device indicated in the multicast group setup request; and the data forwarding equipment responds to the received confirmation information aiming at the joining inquiry request, and joins the target second electronic equipment which sends the confirmation information into the multicast group.
In some embodiments, the second electronic device sends a multicast group join request in response to detecting a triggering operation for a multicast group join control.
In some embodiments, the apparatus is further configured to: determining whether a second electronic device that transmits a multicast group join request is joined to a multicast group in response to receiving an approval request, wherein the approval request is generated based on the multicast group join request transmitted by the second electronic device; and in response to detecting the confirmation information for the approval request, joining the second electronic device, which transmits the multicast group join request, to the multicast group.
In some embodiments, the second electronic device exits the multicast group in response to detecting the predefined multicast group exit operation.
In some embodiments, the apparatus is further configured to: and in response to detecting the predefined screen projection ending operation, ending screen projection.
Referring to fig. 7, fig. 7 illustrates an exemplary system architecture to which the screen projection method of one embodiment of the present disclosure may be applied.
As shown in fig. 7, the system architecture may include terminal devices 701, 702, 703, a network 704, and a data forwarding device 705. Network 704 is used to provide a medium for communication links between terminal devices 701, 702, 703 and data forwarding device 705. Network 704 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
End devices 701, 702, 703 may interact with a data forwarding device 705 over a network 704 to receive or send messages, etc. The terminal devices 701, 702, 703 may have various client applications installed thereon, such as a web browser application, a search-type application, and a news-information-type application. The client applications in the terminal devices 701, 702, and 703 may receive the instruction of the user, and complete corresponding functions according to the instruction of the user, for example, add corresponding information to the information according to the instruction of the user.
The terminal devices 701, 702, and 703 may be hardware or software. When the terminal devices 701, 702, and 703 are hardware, they may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, mpeg compression standard Audio Layer 3), MP4 players (Moving Picture Experts Group Audio Layer IV, mpeg compression standard Audio Layer 4), laptop portable computers, desktop computers, and the like. When the terminal devices 701, 702, and 703 are software, they can be installed in the electronic devices listed above. It may be implemented as multiple pieces of software or software modules (e.g., software or software modules used to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
The data forwarding device 705 may be a data forwarding device providing various services, for example, receiving an information acquisition request sent by the terminal devices 701, 702, and 703, and forwarding information according to an address in the information acquisition request.
It should be noted that the screen projecting method provided by the embodiment corresponding to fig. 1 may be executed by the terminal device, and accordingly, the screen projecting apparatus may be disposed in the terminal devices 701, 702, and 703. The screen projection method provided by the embodiment corresponding to fig. 5 may also be executed by the data forwarding apparatus 705, and accordingly, the screen projection apparatus may be disposed in the data forwarding apparatus 705.
It should be understood that the number of terminal devices, networks, and data forwarding devices in fig. 7 is merely illustrative. There may be any number of terminal devices, networks, and data forwarding devices, as desired for implementation.
Referring now to fig. 8, shown is a schematic diagram of an electronic device (e.g., the terminal device or the data forwarding device of fig. 7) suitable for use in implementing embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 8, an electronic device may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 801 that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage means 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data necessary for the operation of the electronic apparatus 800 are also stored. The processing apparatus 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
Generally, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 807 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage 808 including, for example, magnetic tape, hard disk, etc.; and a communication device 809. The communication means 809 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. While fig. 8 illustrates an electronic device having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 809, or installed from the storage means 808, or installed from the ROM 802. The computer program, when executed by the processing apparatus 801, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (Hyper Text Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: sending a multicast group establishment request based on predefined screen projection initiating operation;
and sending the screen projection data to be projected to a multicast group address of the multicast group established based on the multicast group establishing request, wherein the multicast group members in the multicast group display screen projection contents according to the received screen projection data to be projected.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of 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 the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Here, the name of a unit does not constitute a limitation of the unit itself in some cases, and for example, a transmission unit may also be described as a "unit that transmits data to be projected.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPG a), application specific integrated circuits (a SIC), application specific standard products (a SSP), system on a chip (SO C), Complex Programmable Logic Devices (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (12)

1. A method of screen projection, the method comprising:
sending a multicast group establishment request based on predefined screen projection initiating operation;
and sending the screen projection data to be projected to a multicast group address of the multicast group established based on the multicast group establishing request, wherein the multicast group members in the multicast group display screen projection contents according to the received screen projection data to be projected.
2. The method of claim, wherein the data forwarding device establishes a multicast group in response to receiving a multicast group establishment request, wherein the first electronic device that sent the multicast group establishment request is a multicast source of the multicast group; and
and the data forwarding equipment responds to the received to-be-projected-screen data sent to the multicast group address, and sends the to-be-projected-screen data to multicast group members in the multicast group.
3. The method according to claim 2, wherein the sending a multicast group setup request based on a predefined screen-casting initiation operation comprises:
responding to the detection of screen projection initiating operation, and displaying multicast group establishment confirmation information;
in response to detecting the confirmation operation of the multicast group establishment confirmation information, a multicast group establishment request is sent.
4. The method according to claim 2, wherein the sending a multicast group setup request based on a predefined screen-casting initiation operation comprises:
responding to the detection of screen projection initiating operation, and displaying a second electronic equipment identifier, wherein the second electronic equipment identifier indicates other electronic equipment in the same network with the first electronic equipment;
and sending a multicast group establishment request, wherein the multicast group establishment request comprises a second electronic equipment identifier selected by the user.
5. The method according to any one of claims 1 to 4,
receiving and displaying a joining inquiry request by a target second electronic device, wherein the joining inquiry request is used for inquiring whether to join the multicast group, and the target second electronic device is other electronic devices in the same network with the first electronic device, or the target second electronic device is the electronic device indicated by a second electronic device identifier in the multicast group establishment request;
and the data forwarding equipment responds to the received confirmation information aiming at the joining inquiry request, and joins the target second electronic equipment which sends the confirmation information into the multicast group.
6. The method of claim 1, wherein the second electronic device sends the multicast group join request in response to detecting a trigger operation for a multicast group join control.
7. The method of claim 6, further comprising:
determining whether a second electronic device that transmits a multicast group join request is joined to a multicast group in response to receiving an approval request, wherein the approval request is generated based on the multicast group join request transmitted by the second electronic device;
and in response to detecting the confirmation information for the approval request, joining the second electronic device, which transmits the multicast group join request, to the multicast group.
8. The method of claim 6, wherein the second electronic device exits the multicast group in response to detecting a predefined multicast group exit operation.
9. The method of claim 6, further comprising: and in response to detecting the predefined screen projection ending operation, ending screen projection.
10. A screen projection apparatus, comprising:
the first sending unit is used for sending a multicast group establishing request based on predefined screen projection initiating operation;
and the second sending unit is used for sending the data to be screen-projected to the multicast group address of the multicast group established based on the multicast group establishing request, wherein the multicast group members in the multicast group display the screen-projected content according to the received data to be screen-projected.
11. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-9.
12. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-9.
CN202110273562.3A 2021-03-12 2021-03-12 Screen projection method and device and electronic equipment Pending CN112947880A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110273562.3A CN112947880A (en) 2021-03-12 2021-03-12 Screen projection method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110273562.3A CN112947880A (en) 2021-03-12 2021-03-12 Screen projection method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN112947880A true CN112947880A (en) 2021-06-11

Family

ID=76229741

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110273562.3A Pending CN112947880A (en) 2021-03-12 2021-03-12 Screen projection method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112947880A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023078162A1 (en) * 2021-11-02 2023-05-11 华为技术有限公司 Control device switching system and control device switching method and device thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106371784A (en) * 2016-08-29 2017-02-01 武汉启目科技有限公司 Method for sharing screen obtained by intelligent terminal to other terminals
CN106406789A (en) * 2016-08-29 2017-02-15 武汉启目科技有限公司 Method for realizing screen projection from single PC screen to multiple different device screens
CN107659835A (en) * 2016-07-25 2018-02-02 中兴通讯股份有限公司 Screen sharing method, equipment and system
CN111953911A (en) * 2020-07-23 2020-11-17 西安万像电子科技有限公司 Video delivery method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107659835A (en) * 2016-07-25 2018-02-02 中兴通讯股份有限公司 Screen sharing method, equipment and system
CN106371784A (en) * 2016-08-29 2017-02-01 武汉启目科技有限公司 Method for sharing screen obtained by intelligent terminal to other terminals
CN106406789A (en) * 2016-08-29 2017-02-15 武汉启目科技有限公司 Method for realizing screen projection from single PC screen to multiple different device screens
CN111953911A (en) * 2020-07-23 2020-11-17 西安万像电子科技有限公司 Video delivery method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023078162A1 (en) * 2021-11-02 2023-05-11 华为技术有限公司 Control device switching system and control device switching method and device thereof

Similar Documents

Publication Publication Date Title
CN112311754B (en) Interaction method and device and electronic equipment
US9591524B2 (en) Method and apparatus for transmitting data in network system, and data transmission system
CN112312060B (en) Screen sharing method and device and electronic equipment
CN111931962B (en) Information display method and device and electronic equipment
US20150117513A1 (en) Bandwidth reduction system and method
CN112019625B (en) Websocket-based message pushing method, system, device and medium
CN112312222A (en) Video sending method and device and electronic equipment
CN111818291B (en) Method and device for establishing multimedia call and electronic equipment
US11758087B2 (en) Multimedia conference data processing method and apparatus, and electronic device
CN112311841A (en) Information pushing method and device, electronic equipment and computer readable medium
WO2021254168A1 (en) Conference control method and apparatus, readable medium and electronic device
CN110781373A (en) List updating method and device, readable medium and electronic equipment
CN112953815B (en) Information access control method, device, equipment and storage medium
WO2022083589A1 (en) Terminal control method and apparatus, and terminal and storage medium
CN113596530A (en) Method and device for transferring data
CN112947880A (en) Screen projection method and device and electronic equipment
CN113162836A (en) Virtual local area network communication method and device, cloud server, medium and electronic equipment
CN104219299A (en) Data transmission method and data transmission device
CN111212257A (en) Control method and device for distributed video conference and related equipment
CN115695928A (en) Screen projection method and device, electronic equipment and storage medium
CN112291216B (en) Communication method and device and electronic equipment
CN113890772A (en) Information processing method and device and electronic equipment
JP7469948B2 (en) Terminal connection method and system for multimedia communication
CN110945926B (en) Connection establishing method and device, base station, user equipment and core network equipment
CN115913803A (en) Information interaction method and device 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