CN110752999A - Screen broadcasting method, device, system, electronic equipment and storage medium - Google Patents
Screen broadcasting method, device, system, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN110752999A CN110752999A CN201910927637.8A CN201910927637A CN110752999A CN 110752999 A CN110752999 A CN 110752999A CN 201910927637 A CN201910927637 A CN 201910927637A CN 110752999 A CN110752999 A CN 110752999A
- Authority
- CN
- China
- Prior art keywords
- terminal
- screen data
- screen
- group
- data stream
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 68
- 238000003860 storage Methods 0.000 title claims abstract description 20
- 230000005540 biological transmission Effects 0.000 claims abstract description 49
- 238000004891 communication Methods 0.000 claims description 271
- 238000009826 distribution Methods 0.000 claims description 24
- 238000004590 computer program Methods 0.000 claims description 13
- 238000010586 diagram Methods 0.000 description 16
- 230000006870 function Effects 0.000 description 13
- 230000002452 interceptive effect Effects 0.000 description 9
- 230000008569 process Effects 0.000 description 9
- 238000012545 processing Methods 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 238000010187 selection method Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/12—Avoiding congestion; Recovering from congestion
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/16—Arrangements for providing special services to substations
- H04L12/18—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
- H04L12/185—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with management of multicast group membership
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/16—Multipoint routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/70—Admission control; Resource allocation
- H04L47/80—Actions related to the user profile or the type of traffic
- H04L47/806—Broadcast or multicast traffic
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The embodiment of the application provides a screen broadcasting method, a screen broadcasting device, a screen broadcasting system, electronic equipment and a storage medium, which are applied to a first terminal; the first terminal is connected with a plurality of group terminals; the small group end is connected with a plurality of second terminals; the method comprises the following steps: receiving screen broadcast operation; acquiring a screen data stream of a first terminal according to screen broadcasting operation; and transmitting the screen data stream to the group terminal and the second terminal so that the group terminal and the second terminal share the screen of the first terminal. According to the method and the device, the group end is configured for each group according to the group teaching scene, the second terminal is configured for each student, and the second terminal of the same group is connected in the same group end, so that the same-screen broadcasting of the first terminal, the group end and the second terminal is realized, the transmission mode of screen data flow can be dynamically adjusted according to the teaching scene, and the problems of heavy network load and network congestion are prevented when more receiving ends are selected; and when the number of selected receiving ends is small, the accuracy of transmission is improved.
Description
Technical Field
The embodiment of the application relates to the technical field of teaching information, in particular to a screen broadcasting method, device and system, electronic equipment and a storage medium.
Background
In the traditional teaching, teachers use a mode of writing teaching contents on a blackboard by chalk, so that the teachers are hard and not environment-friendly; and adopt the mode of traditional projector projection teaching content, the projection picture contrast is poor, and the definition is low, and the student can not be fine sees the teaching content of projection clearly. With the development of economy and screen broadcasting technology, the first terminal transmits the teaching contents on the screen to the second terminal through the screen broadcasting technology, so that students can clearly and intuitively see the teaching contents of teachers, and the teaching terminal is more and more widely used in the teaching field.
In the process of implementing the invention, the inventor finds that the following problems exist in the prior art: a teaching format based on a group becomes an important teaching organization means for teachers, and how to perform screen broadcasting for a use scene of group teaching becomes a subject of study.
Disclosure of Invention
In order to overcome the problems in the related art, the application provides a screen broadcasting method, a screen broadcasting device, a screen broadcasting system, electronic equipment and a storage medium, and the screen broadcasting method, the screen broadcasting device, the screen broadcasting system, the screen broadcasting method, the screen broadcasting system and the screen broadcasting system have the advantages that a group terminal can be configured for each group according to a group teaching scene, a second terminal is configured for each student, and the second terminal of the same group is connected in the same group terminal, so that.
According to a first aspect of an embodiment of the present application, there is provided a screen broadcasting method applied to a first terminal; the first terminal is connected with a plurality of group terminals; the group end is connected with a plurality of second terminals; the method comprises the following steps:
receiving screen broadcast operation; the screen broadcasting operation comprises a request for acquiring a screen data stream of the first terminal;
acquiring a screen data stream of the first terminal according to the screen broadcasting operation;
and transmitting the screen data stream to the group terminal and the second terminal so that the group terminal and the second terminal share the screen of the first terminal.
Further, the screen broadcasting operation further comprises selecting a group terminal and a second terminal for receiving the screen broadcasting; transmitting the screen data stream to the panel terminal and the second terminal, including:
according to the screen broadcasting operation, the number of the selected group terminals and the number of the second terminals are also obtained;
when the sum of the number of the selected group terminals and the number of the second terminals exceeds a preset threshold value, sending the screen data stream of the first terminal to an IP multicast address, and sending the IP multicast address to the selected group terminals and the second terminals, so that the selected group terminals and the second terminals are added into a multicast group identified by the IP multicast address, and further the screen data stream sent to the IP multicast address is forwarded to the selected group terminals and the second terminals;
and when the sum of the number of the selected group terminals and the number of the second terminals does not exceed a preset threshold value, sending the screen data stream communication address of the first terminal to the selected group terminals and the second terminals, establishing screen data stream communication links with the selected group terminals and the second terminals, and sending the screen data stream of the first terminal to the selected group terminals and the selected second terminals through the screen data stream communication links.
According to a second aspect of the embodiments of the present application, there is provided a screen broadcasting apparatus, which is applied to a first terminal, wherein the first terminal is connected with a plurality of group terminals; the group terminal is connected with a plurality of second terminals, and the device comprises:
the operation receiving module is used for receiving screen broadcasting operation; the screen broadcasting operation comprises a request for acquiring a screen data stream of the first terminal;
the screen data stream acquisition module is used for acquiring the screen data stream of the first terminal according to the screen broadcasting operation;
and the screen data stream transmission module is used for transmitting the screen data stream to the group terminal and the second terminal so as to enable the group terminal and the second terminal to share the screen of the first terminal.
Further, the screen broadcasting operation further comprises selecting a group terminal and a second terminal for receiving the screen broadcasting; the screen data streaming module includes:
the number acquisition module is used for acquiring the number of the selected group terminals and the number of the second terminals according to the screen broadcasting operation;
a multicast module, configured to send, when a sum of the number of the selected group terminals and the number of the second terminals exceeds a preset threshold, a screen data stream of the first terminal to an IP multicast address, and send the IP multicast address to the selected group terminal and the second terminal, so that the selected group terminal and the second terminal join in a multicast group identified by the IP multicast address, and further forward the screen data stream sent to the IP multicast address to the selected group terminal and the second terminal;
and the unicast module is used for sending the screen data stream communication address of the first terminal to the selected group terminal and the selected second terminal when the sum of the number of the selected group terminals and the number of the second terminals does not exceed a preset threshold, establishing a screen data stream communication link with the selected group terminal and the selected second terminal, and sending the screen data stream of the first terminal to the selected group terminal and the selected second terminal through the screen data stream communication link.
According to a third aspect of embodiments of the present application, there is provided a screen broadcasting system including a first terminal; the first terminal is connected with a plurality of group terminals; the group end is connected with a plurality of second terminals;
the first terminal is configured to receive a screen broadcast operation; the screen broadcasting operation comprises a request for acquiring a screen data stream of the first terminal;
the first terminal is further configured to obtain a screen data stream of the first terminal according to the screen broadcasting operation;
the first terminal is further configured to transmit the screen data stream to the panel terminal and the second terminal;
the team terminal and the second terminal are configured to receive the screen data stream and share a screen of the first terminal.
Further, the screen broadcasting operation further comprises selecting a group terminal and a second terminal for receiving the screen broadcasting;
the first terminal is further configured to acquire the number of the selected group terminals and the number of the second terminals according to the screen broadcasting operation;
when the sum of the number of the selected group terminals and the number of the second terminals exceeds a preset threshold, the first terminal is further configured to send a screen data stream of the first terminal to an IP multicast address, and send the IP multicast address to the selected group terminals and the second terminals; and the selected group terminal and the second terminal are configured to receive the IP multicast address and join the multicast group identified by the IP multicast address, so as to receive the screen data stream forwarded by the IP multicast address.
When the sum of the number of the selected group terminals and the number of the second terminals does not exceed a preset threshold, the first terminal is further configured to send the screen data stream communication address of the first terminal to the selected group terminals and the selected second terminals; the selected group terminal and the selected second terminal are configured to receive the screen data stream communication address of the first terminal and send respective screen data stream communication addresses to the first terminal; the first terminal is further configured to establish an on-screen data stream communication link between the first terminal and the selected group terminal and the second terminal, and send the on-screen data stream of the first terminal to the selected group terminal and the second terminal through the on-screen data stream communication link.
According to a fourth aspect of embodiments of the present application, there is provided an electronic apparatus, including: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform any of the screen broadcasting methods described above.
According to a fifth aspect of embodiments of the present application, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a screen broadcasting method as recited in any one of the above.
According to the group teaching scene, the group terminal is configured for each group, the second terminal is configured for each student, and the second terminal of the same group is connected in the same group terminal, so that the same-screen broadcasting of the first terminal, the group terminal and the second terminal is realized. Furthermore, the embodiment of the application dynamically adjusts the transmission mode of the screen data stream of the first terminal according to the actual screen broadcasting scene, namely the number of the selected group terminals for receiving the screen broadcasting and the number of the second terminals connected with the group terminals, so that when the number of the selected receiving terminals is large, a single screen data stream can be sent at the first terminal and then quickly transmitted to each selected receiving terminal through a multicast transmission mode, and the problems of heavy load and network congestion of a backbone network where the first terminal is located are prevented; when the number of the selected receiving ends is small, a screen data stream communication link of the first terminal and the selected group end and the second terminal is established in a one-to-one mode, so that the accuracy of screen data stream transmission is improved, and the user experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
For a better understanding and practice, the invention is described in detail below with reference to the accompanying drawings.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic block diagram of an application environment of a screen broadcasting method according to an embodiment of the present application;
fig. 2 is a flowchart illustrating a screen broadcasting method according to an embodiment of the present application;
FIG. 3 is a flow chart illustrating transmission of screen data streams according to an embodiment of the present application;
fig. 4 is a flowchart illustrating acquiring an IP multicast address according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a screen broadcasting device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a screen data stream transmission module according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a multicast module according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a unicast module according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a screen data streaming module according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
It should be understood that the embodiments described are only a few embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application, as detailed in the appended claims.
In the description of the present application, it is to be understood that the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not necessarily used to describe a particular order or sequence, nor are they to be construed as indicating or implying relative importance. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. The word "if/if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination". Further, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Please refer to fig. 1, which is a schematic block diagram illustrating an application environment of a screen broadcasting method according to an embodiment of the present application.
As shown in fig. 1, an application environment of the screen broadcasting method includes a first terminal; the first terminal is connected with a plurality of group terminals, and the group terminals are connected with a plurality of second terminals. In the embodiment of the present application, the application environment of the screen broadcasting method is a group teaching scene, specifically, a teacher may assign students in a classroom, especially a classroom, into a plurality of groups according to a group manner, each group may correspond to one or more students, each student is assigned to a group, each teacher is provided with one of the first terminals 1000, each group is provided with one of the group terminals 2000, each student is provided with one of the second terminals 3000, each group terminal 2000 is connected to the first terminal 1000, each second terminal 3000 is connected to the corresponding group terminal 2000, and teaching can be performed through the first terminal 1000, the group terminals 2000 and the second terminal 3000, for example, screen sharing of the first terminal 1000, the group terminals 2000 and the second terminal 3000 is realized; when a student is not equipped with the second terminal 3000, a screen shared on the team terminal 2000 can be seen through the team terminal 2000; or the teaching discussion, data sharing, etc. are performed in the group through the group terminal 2000 and the second terminal 3000 connected to the group. Of course, students in the classroom may be automatically assigned to a plurality of groups by connecting the second terminals 3000 of the students to the group terminal 2000 without assigning groups to the students by the teacher, and using the second terminal 3000 connected to the group terminal 2000 as one group.
In this embodiment of the present application, the screen broadcasting mainly refers to synchronizing the content and/or sound displayed on the screen of the first terminal 1000 to the screens of the team terminal 2000 and the second terminal 3000 for displaying, so that each student of the team terminal 2000 and the second terminal 3000 can conveniently and intuitively obtain the teaching content data of the first terminal 1000.
The first terminal 1000 can be any intelligent terminal, and for example, can be a computer, a mobile phone, a tablet computer, an interactive smart tablet, a multimedia player, and the like. A first terminal 1000 screen broadcasting program for implementing a screen broadcasting method may be run on the first terminal 1000. The first terminal 1000 screen broadcasting program may be presented in a form suitable for the smart terminal, for example, may be an APP application program, and in some examples, may also be presented in a form of, for example, a system plug-in, a web page plug-in, and the like. In this embodiment, the first terminal 1000 is an interactive smart tablet, the screen broadcasting program of the first terminal 1000 is an APP application installed in the interactive smart tablet, and the screen broadcasting program of the first terminal 1000 implements a screen broadcasting operation in response to an operation of a user at the first terminal 1000, and packages a screen code of the first terminal 1000 into a screen data stream according to the screen broadcasting operation and transmits the screen data stream to the group terminal 2000 and the second terminal 3000.
The group peer 2000 may be any intelligent peer, and may be embodied as a computer, a mobile phone, a tablet computer, an interactive smart tablet, a multimedia player, and the like. The panel end 2000 may have a panel end 2000 screen broadcasting program for implementing a screen broadcasting method running thereon. The group peer 2000 screen broadcasting program may be presented in a form suitable for the smart peer, for example, may be an APP application program, and in some examples, may also be presented in a form of, for example, a system plug-in, a web page plug-in, and the like. In this embodiment, the group terminal 2000 is an interactive smart tablet, the group terminal 2000 screen broadcasting program is an APP application installed in the interactive smart tablet, and the group terminal 2000 screen broadcasting program can establish a communication bridge between the first terminal 1000 and the second terminal 3000 and decode, render and display a screen data stream transmitted by the first terminal 1000, which is the same as the screen of the first terminal 1000.
The second terminal 3000 may be any intelligent terminal, and for example, may be a computer, a mobile phone, a tablet computer, an interactive smart tablet, a multimedia player, and the like. A panel-side 2000 screen broadcasting program for implementing a screen broadcasting method may be run on the second terminal 3000. The second terminal 3000 screen broadcasting program may be presented in a form suitable for the smart terminal, for example, may be an APP application program, and in some examples, may also be presented in a form of, for example, a system plug-in, a web page plug-in, and the like. In this embodiment, the second terminal 3000 is a laptop or a mobile phone, the screen broadcasting program of the second terminal 3000 is an APP application program installed in the laptop or the mobile phone, and the screen data stream of the first terminal 1000 is decoded, rendered and displayed on the same screen as the first terminal 1000 by the screen broadcasting program of the second terminal 3000.
Example 1
The embodiment of the application discloses a screen broadcasting method which is applied to electronic equipment.
A screen broadcasting method provided by the embodiment of the present application will be described in detail below with reference to fig. 2.
Referring to fig. 2, an on-screen broadcasting method provided in the embodiment of the present application is applied to a first terminal; the first terminal is connected with a plurality of group terminals; the group end is connected with a plurality of second terminals; the method comprises the following steps:
step S101: receiving screen broadcast operation; the screen broadcasting operation comprises a request for acquiring a screen data stream of the first terminal.
In the embodiment of the application, the first terminal, the group terminal and the second terminal are connected in the same wireless router, so that data transmission can be conveniently and rapidly carried out. The first terminal and the small group terminal, and the small group terminal and the second terminal can be connected through a wired cable or in a wireless mode such as a wifi mode.
In the embodiment of the application, the first terminal runs a screen broadcasting program of the first terminal, the group terminal runs a screen broadcasting program of the group terminal, and the second terminal runs a screen broadcasting program of the second terminal; the method comprises the steps that a first terminal communication code can be displayed when the first terminal opens a screen broadcasting program of the first terminal, after the first terminal communication code is input into the screen broadcasting program of the group terminal, a first instruction communication link between the group terminal and the first terminal can be established, control instructions are transmitted between the group terminal and the first terminal, for example, an instruction for opening a window, an instruction for transmitting an IP address and the like are transmitted through the first terminal, and how many group terminals are accessed into the screen broadcasting program can be conveniently known from the screen broadcasting program of the first terminal, so that the selected group terminals for receiving screen broadcasting can be selected later. Specifically, the first terminal communication code is a character string for conveniently establishing a communication link between electronic devices, and is generated according to an IP address of a first terminal and a pre-assigned instruction communication port of the first terminal according to a preset rule, after the first terminal communication code is input on a screen broadcast program of the group terminal, the group terminal sends the IP address of the group terminal and the pre-assigned instruction communication port of the group terminal to the instruction communication port of the first terminal under the IP address of the first terminal, and thus a first instruction communication link between the group terminal and the first terminal can be established. In this embodiment of the application, the first instruction communication link between the first terminal and the group terminal, which is established through the first terminal communication code, is only limited to a communication link based on a socket communication protocol. After the group end and the first terminal establish the instruction communication link, the group end communication code can be directly displayed in a screen broadcasting program of the group end, after the group end communication code is input on the screen broadcasting program of the second terminal, a second instruction communication link of the second terminal and the group end can be established, control instructions are transmitted between the group end and the second terminal, for example, the group end transmits an instruction for opening a window, an instruction for transmitting an IP address and the like, and the number of second terminals of each group end, which are accessed to the screen broadcasting program, can be conveniently known on the screen broadcasting program of the first terminal through the group end, so that the number of the selected second terminals for receiving the screen broadcasting can be conveniently acquired in the subsequent process. The group end communication code is a character string used for realizing convenient establishment of a communication link between electronic equipment, and is generated according to a group end IP address and a pre-allocated instruction communication port of the group end according to a preset rule, after the group end communication code is input on a screen broadcasting program of the second terminal, the second terminal sends the IP address of the second terminal and the pre-allocated instruction communication port of the second terminal to the instruction communication port of the group end under the IP address of the group end, and then a second instruction communication link between the group end and the second terminal can be established. In this embodiment of the application, the second instruction communication link between the group terminal and the second terminal, which is established through the group terminal communication code, is only limited to a communication link based on a socket communication protocol.
The screen broadcasting program of the first terminal is provided with a screen broadcasting function, and a user can click the screen broadcasting function on the screen broadcasting program of the first terminal to trigger screen broadcasting operation, so as to generate an instruction for requesting to acquire the screen data stream of the first terminal.
Step S102: and acquiring the screen data stream of the first terminal according to the screen broadcasting operation.
The screen data stream is a data packet transmitted in real time after screen capture coding is performed on the screen of the first terminal, and may include audio data and/or video data of the screen, which corresponds to content and/or sound displayed on the screen of the first terminal. And the screen broadcasting program of the first terminal acquires the command of the screen data stream of the first terminal according to the received request, and performs real-time screen capture, coding and packaging on the screen of the first terminal so as to acquire the screen data stream of the first terminal.
Step S103: and transmitting the screen data stream to the group terminal and the second terminal so that the group terminal and the second terminal share the screen of the first terminal.
By streaming said screen data to said second terminal, a user of the second terminal can directly see the screen of the first terminal, whereas by streaming said screen data to said team terminal, some users not equipped with the second terminal can see the screen of the first terminal through said team terminal.
According to the group teaching scene, the group terminal is configured for each group, the second terminal is configured for each student, and the second terminal of the same group is connected in the same group terminal, so that the same-screen broadcasting of the first terminal, the group terminal and the second terminal is realized.
Referring to fig. 3, in an exemplary embodiment of the present application, the screen broadcasting operation further includes selecting a group terminal and a second terminal for receiving the screen broadcasting; in step S103, the step of transmitting the screen data stream to the group terminal and the second terminal includes:
step S1031: and according to the screen broadcasting operation, the number of the selected group terminals and the number of the second terminals are also obtained.
When the user can click the screen broadcast function on the screen broadcast program of the first terminal to trigger the screen broadcast operation, an option for selecting to receive the screen broadcast can be popped up for the user to select the group terminal and the second terminal. The user can fill in the numbers of the group terminal and the second terminal which need to receive the screen broadcast on the option of selecting the screen broadcast, wherein the numbers of the group terminal and the second terminal can provide the numbers of the group terminal and the second terminal or other numbers for obtaining the numbers to the first terminal when establishing the first communication link connection between the first terminal and the group terminal and establishing the second communication link connection between the group terminal and the second terminal.
In an exemplary embodiment of the present application, when the screen broadcasting function is clicked to trigger a screen broadcasting operation, a distribution interface of the first terminal, the group terminal, and the second terminal is displayed to receive the screen broadcasting operation on the distribution interface. The distribution interface is an interface in which the first terminal, the subgroup terminal and the second terminal are connected with each other as shown in fig. 1. The method comprises the steps that a first instruction communication link is established between a first terminal and a group terminal, a second instruction communication link is established between the group terminal and a second terminal, the number of the group terminals connected with the first terminal and the number of the second terminals connected with the group terminal can be displayed on a screen broadcasting program of the first terminal, meanwhile, the connection relation between the first terminal and the group terminal and the connection relation between the group terminal and the second terminal are also displayed, and a distribution interface is further formed, so that a user can conveniently perform screen broadcasting operation on the distribution interface, and select the selected group terminal and the selected second terminal. When the group end is selected on the distribution interface, the group end can be selected by clicking the group end through a mouse or a touch, or a selectable item box can be arranged beside the group end, the group end can be selected by checking the selectable item box, or other selection modes. Similarly, when the second terminal is selected on the distribution interface, the second terminal can be selected by clicking the second terminal through a mouse or a touch, or the second terminal can be selected by setting a selectable item box beside the second terminal, by checking the selectable item box, or in other selection modes. Based on the application of the application to the group teaching scene, in the embodiment of the application, when the second terminal is selected, the group terminal must be selected first, and the second terminal is selected for the convenience of the user, and after the group terminal is selected, all the second terminals connected under the group terminal are selected by default.
Step S1032: and when the sum of the number of the selected group terminals and the number of the second terminals exceeds a preset threshold value, sending the screen data stream of the first terminal to an IP multicast address, and sending the IP multicast address to the selected group terminals and the second terminals, so that the selected group terminals and the second terminals are added into a multicast group identified by the IP multicast address, and further the screen data stream sent to the IP multicast address is forwarded to the selected group terminals and the second terminals.
The IP multicast address indicates more than one destination address but one group, and is a group address. Referring to fig. 4, in an exemplary embodiment of the present application, the step S1032 further includes the step of connecting the first terminal, the group terminal, and the second terminal to a same wireless router: acquiring an IP multicast address; the step of acquiring the IP multicast address comprises the following steps:
step S10321: and randomly generating an IP address according to the set D-type address range of the wireless router, and randomly generating a port according to the set port range of the wireless router.
Specifically, the wireless router of the present application has a segment of D-type address for multicast, the starting range of which is from 239.0.0.0 to 239.255.255, and the port range of the wireless router of the present application is from 10001 to 65535, initially, the D-type address range of the wireless router and the port range of the wireless router are set in the first terminal, when the first terminal determines that multicast transmission is required, an IP address is randomly generated as a transmission address according to the set D-type address range of the wireless router, that is, the range from 239.0.0.0 to 239.255.255, for example, the randomly generated IP address is 239.0.0.1; meanwhile, according to the set port range of the wireless router, namely 10001 to 65535, a port is randomly generated as a screen data stream transmission port, for example, the randomly generated port is 10002.
Step S10322: and obtaining the IP multicast address according to the randomly generated IP address and the randomly generated port.
In the embodiment of the present application, a randomly selected IP address and a randomly selected port are spliced to serve as an IP multicast address, and if the randomly generated IP address is: 239.0.0.1, the port is 10002, the randomly generated IP multicast address is 239.0.0.1: 10002.
according to the embodiment of the application, the screen data stream is transmitted in a multicast mode by acquiring the IP multicast address of the wireless router, so that the problems of heavy load and network congestion of a backbone network where the first terminal is located can be prevented.
The multicast group identified by the IP multicast address refers to that when data is transmitted, the source data device transmits data to the destination address by using the IP multicast address as the destination address, but the data transmitted to the destination address will forward the data to each destination address in the multicast group by using all IP addresses added in the multicast group as the destination address. The multicast group added to the IP multicast address mark transmits the IP address and the port for receiving data to the wireless router, the wireless router stores the IP address and the port for receiving data, and the wireless router transmits the data to the port for receiving data under the IP address when data is transmitted to the IP multicast address.
The preset threshold may be determined according to an actual scene or an actual situation, for example, the preset threshold may be determined according to a network bandwidth, specifically, when the network bandwidth is relatively large, the number of the group terminals and the second terminals that indicate support is relatively large, and at this time, a usable bandwidth space is relatively large when data transmission is performed through the point-to-point screen data stream communication link, so that a problem of network congestion is not likely to occur, and therefore, the preset threshold may be set to be larger.
In this embodiment of the present application, when the screen data stream sent to the IP multicast address is forwarded to the selected group terminal and the second terminal, the screen data stream is transmitted in a UDP manner. When the sum of the number of the selected group terminals and the number of the second terminals connected with the group terminals exceeds a preset threshold, it is indicated that the number of receiving terminals currently requiring screen broadcasting is large, in the group teaching application scene of the present application, screen broadcasting can be specifically performed for all the group terminals and the second terminals selected, so as to realize that the screens of all the group terminals and the second terminals are on the same screen, and facilitate all students to synchronously learn teaching contents, at this time, by sending an IP multicast address to the selected group terminals and the second terminals, the selected group terminals and the second terminals can be added into a multicast group identified by the IP multicast address, that is, in a data transmission network, after a screen data stream of a first terminal sent by the first terminal is sent to the multicast group identified by the IP multicast address, with the first terminal as a source address and the selected group terminals and the second terminals as destination addresses, and transmitting the data stream to the selected group end and the second terminal which join the multicast group immediately so that all members in the group can receive the screen data stream. According to the method and the device, the screen data stream can be transmitted in a DUP multicast mode, the screen data stream can be broadcast to the selected group end and the second terminal connected with the group end only by transmitting the screen data stream of the first terminal to the multicast group of the IP multicast address mark once on the backbone where the first terminal is located, and then the screen data stream can be transmitted rapidly, the selected group end is realized, the second terminal and the first terminal are displayed on the same screen, and the problem of transmission congestion is prevented.
Step S1033: and when the sum of the number of the selected group terminals and the number of the second terminals does not exceed a preset threshold value, sending the screen data stream communication address of the first terminal to the selected group terminals and the second terminals, establishing screen data stream communication links with the selected group terminals and the second terminals, and sending the screen data stream of the first terminal to the selected group terminals and the selected second terminals through the screen data stream communication links.
When the sum of the selected group end number and the second terminal connected with the group end number does not exceed a preset threshold, it indicates that the number of receiving ends currently required to perform screen broadcasting is small, and in the group teaching application scene of the present application, screen broadcasting may be specifically selected to be performed to a certain group end and the second terminal connected with the group end, so as to implement screen sharing with the group end and the second terminal connected with the group end, such as arranging a teaching task for the group, explaining group discussion content, and the like. And establishing a one-to-one screen data stream communication link with the selected group terminal and the second terminal, and sending the screen data stream through the one-to-one screen data stream communication link to realize reliable transmission of the screen data stream.
According to the method and the device, the transmission mode of the screen data stream of the first terminal is dynamically adjusted according to the actual screen broadcasting scene, namely the number of the selected group terminals for receiving the screen broadcasting and the number of the second terminals connected with the group terminals, when the number of the selected receiving terminals is large, the single screen data stream can be sent at the first terminal and then quickly transmitted to the selected receiving terminals in a multicast transmission mode, and the problems of heavy load and network congestion of a backbone network where the first terminal is located are solved; when the number of the selected receiving ends is small, a screen data stream communication link of the first terminal and the selected group end and the second terminal is established in a one-to-one mode, so that the accuracy of screen data stream transmission is improved, and the user experience is improved.
In an exemplary embodiment of the present application, a first command communication link is established between the first terminal and the team terminal, and a second command communication link is established between the team terminal and the second terminal; the screen broadcasting method further includes: and transmitting the IP multicast address to the selected group terminal through the first instruction communication link, and transmitting the IP multicast address to the second terminal through the selected group terminal and the second instruction communication link. The IP multicast address can be conveniently transmitted through the first instruction communication link and the second instruction communication link, so that the selected group terminal and the selected group terminal are added into the multicast group identified by the IP multicast address, and the efficiency of data and instruction transmission can be improved by establishing a single instruction communication link without sharing a screen data stream transmission link.
Referring to fig. 5, in an exemplary embodiment of the present application, in step S1033, the step of sending the IP address of the first terminal to the selected group peer and the second terminal, and the step of establishing the on-screen data flow communication link with the selected group peer and the second terminal includes:
step S10331: transmitting the screen data flow communication link address of the first terminal to the selected group terminal through the first instruction communication link, and transmitting the screen data flow communication link address of the first terminal to the second terminal through the selected group terminal and the second instruction communication link; the screen data flow communication link address of the first terminal comprises an IP address of the first terminal and a screen data flow communication port of the first terminal.
In this embodiment of the present application, the screen data stream communication link address of the first terminal is a character string formed by splicing the IP address of the first terminal and the screen data stream communication port of the first terminal, and if the IP address of the first terminal is 191.255.255.251 and the screen data stream communication port of the first terminal is 82, the screen data stream communication link address of the first terminal is 191.255.255.251: 82.
step S10332: receiving the selected screen data flow communication link address of the group end, and establishing a screen data flow communication link between the first terminal and the selected group end; the selected on-screen data flow communication link address of the group end comprises the selected IP address of the group end and the selected on-screen data flow communication port of the group end.
In this embodiment of the present application, the selected on-screen data flow communication link address of the team end is a character string formed by splicing the selected IP address of the team end and the selected on-screen data flow communication port of the team end, and if the selected IP address of the team end is 191.255.255.252 and the selected on-screen data flow communication port of the team end is 110, the on-screen data flow communication link address of the team end is 191.255.255.252: 110.
step S10333: receiving the selected screen data flow communication link address of the second terminal, and establishing a screen data flow communication link between the first terminal and the selected second terminal; the selected on-screen data flow communication link address of the second terminal comprises the selected IP address of the second terminal and the selected on-screen data flow communication port of the second terminal.
The selected on-screen data stream communication link address of the second terminal is a character string formed by splicing the selected IP address of the second terminal and the selected on-screen data stream communication port of the second terminal, and if the selected IP address of the second terminal is 191.255.255.253 and the selected on-screen data stream communication port of the second terminal is 111, the on-screen data stream communication link address of the second terminal is 191.255.255.253: 111.
the first terminal, the group terminal and the second terminal can conveniently establish one-to-one screen data flow communication links of the first terminal and the selected group terminal and the second terminal by sending respective screen data flow communication addresses, so that the first terminal can transmit screen data flows through the respective screen data flow communication links, and the reliability of data transmission is improved.
In an exemplary embodiment of the present application, the first terminal and the selected group terminal and the selected screen data stream communication link of the second terminal, wherein the data stream communication protocol is a communication link using a TCP connection, and reliable data stream transmission can be achieved by using the TCP connection. Specifically, within a preset time, when the information that the screen data stream is received is not received by the selected group terminal and the second terminal, the screen data stream of the first terminal is sent to the selected group terminal and the second terminal again. By retransmitting the screen data stream of the first terminal, each selected group terminal and the second terminal can be ensured to acquire the screen data stream, and the accuracy of data transmission is improved.
Example 2
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Please refer to fig. 5, which shows a schematic structural diagram of a screen broadcasting apparatus according to an embodiment of the present application. The screen broadcasting device 200 is applied to a first terminal, and the first terminal is connected with a plurality of group terminals; the small group end is connected with a plurality of second terminals. The first terminal may be an interactive smart tablet, and the screen broadcasting device may implement a part or all of the contents of the interactive smart tablet through software, hardware, or a combination of the two. Specifically, the screen broadcasting apparatus 200 includes:
an operation receiving module 201 for receiving a screen broadcasting operation; the screen broadcasting operation comprises a request for acquiring a screen data stream of the first terminal.
A screen data stream obtaining module 202, configured to obtain a screen data stream of the first terminal according to the screen broadcasting operation.
A screen data stream transmission module 203, configured to transmit the screen data stream to the group terminal and the second terminal, so that the group terminal and the second terminal share the screen of the first terminal.
According to the group teaching scene, the group terminal is configured for each group, the second terminal is configured for each student, and the second terminal of the same group is connected in the same group terminal, so that the same-screen broadcasting of the first terminal, the group terminal and the second terminal is realized.
Referring to fig. 6, in an exemplary embodiment of the present application, the screen broadcasting operation further includes selecting a group terminal and a second terminal to receive the screen broadcasting; the screen data streaming module 203 includes:
a number obtaining module 2031, configured to further obtain the number of the selected group terminals and the number of the second terminals according to the screen broadcasting operation;
a multicast module 2032, configured to send the screen data stream of the first terminal to an IP multicast address and send the IP multicast address to the selected group terminal and the selected second terminal when the sum of the number of the selected group terminals and the number of the second terminals exceeds a preset threshold, so that the selected group terminal and the selected second terminal join in a multicast group identified by the IP multicast address, and further, the screen data stream sent to the IP multicast address is forwarded to the selected group terminal and the selected second terminal;
a unicast module 2033, configured to send the screen data stream communication address of the first terminal to the selected group terminal and the selected second terminal when the sum of the selected number of group terminals and the number of second terminals does not exceed a preset threshold, establish a screen data stream communication link with the selected group terminal and the selected second terminal, and send the screen data stream of the first terminal to the selected group terminal and the selected second terminal through the screen data stream communication link.
According to the method and the device, the transmission mode of the screen data stream of the first terminal is dynamically adjusted according to the actual screen broadcasting scene, namely the number of the selected group terminals for receiving the screen broadcasting and the number of the second terminals connected with the group terminals, when the number of the selected receiving terminals is large, the single screen data stream can be sent at the first terminal and then quickly transmitted to the selected receiving terminals in a multicast transmission mode, and the problems of heavy load and network congestion of a backbone network where the first terminal is located are solved; when the number of the selected receiving ends is small, a screen data stream communication link of the first terminal and the selected group end and the second terminal is established in a one-to-one mode, so that the accuracy of screen data stream transmission is improved, and the user experience is improved.
In an exemplary embodiment of the present application, the transmission module further includes a display module (not shown); the display module is used for displaying the distribution interfaces of the first terminal, the group terminal and the second terminal so as to receive the screen broadcasting operation on the distribution interface, so that a user can conveniently perform the screen broadcasting operation on the distribution interface and select the selected group terminal and the selected second terminal.
Referring to fig. 7, in an exemplary embodiment of the present application, the first terminal, the group terminal, and the second terminal are connected to a same wireless router, and the multicast module 2032 is further configured to acquire an IP multicast address; the multicast module 2032 includes:
a random selection module 20321, configured to randomly generate an IP address according to the set D-type address range of the wireless router, and randomly generate a port according to the set port range of the wireless router;
the IP multicast address generating module 20322 obtains the IP multicast address according to the randomly generated IP address and the randomly generated port.
According to the embodiment of the application, the screen data stream is transmitted in a multicast mode by acquiring the IP multicast address of the wireless router, so that the problems of heavy load and network congestion of a backbone network where the first terminal is located can be prevented.
In an exemplary embodiment of the present application, when the screen data stream sent to the IP multicast address is forwarded to the selected group terminal and the second terminal, the screen data stream is transmitted in a UDP manner. The screen data stream can be broadcast to the selected group end and the second terminal connected with the group end only by transmitting the screen data stream of the first terminal to the multicast group identified by the IP multicast address once on the backbone network where the first terminal is located, so that the screen data stream can be transmitted quickly, the selected group end, the second terminal connected with the group end and the first terminal can be displayed on the same screen, and transmission congestion is prevented.
In an exemplary embodiment of the present application, a first command communication link is established between the first terminal and the team terminal, and a second command communication link is established between the team terminal and the second terminal; the multicast module 2032 is further configured to transmit the IP multicast address to the selected group terminal through the first instruction communication link, and transmit the IP multicast address to the second terminal through the selected group terminal and the second instruction communication link. The IP multicast address can be conveniently transmitted through the first instruction communication link and the second instruction communication link, so that the selected group end and the group end are added into the multicast group identified by the IP multicast address.
Referring to fig. 8, in an exemplary embodiment of the present application, the unicast module 2033 includes:
an on-screen data stream communication link address sending module 20331, configured to transmit an on-screen data stream communication link address of the first terminal to the selected group terminal through the first instruction communication link, and transmit an on-screen data stream communication link address of the first terminal to the second terminal through the selected group terminal and the second instruction communication link; the screen data flow communication link address of the first terminal comprises an IP address of the first terminal and a screen data flow communication port of the first terminal.
An on-screen data stream communication link address receiving module 20332, configured to receive an on-screen data stream communication link address of the selected group terminal, and establish an on-screen data stream communication link between the first terminal and the selected group terminal; the selected on-screen data flow communication link address of the group end comprises the selected IP address of the group end and the selected on-screen data flow communication port of the group end.
An on-screen data stream communication link establishing module 20333, configured to receive an address of the selected on-screen data stream communication link of the second terminal, and establish an on-screen data stream communication link between the first terminal and the selected second terminal; the selected on-screen data flow communication link address of the second terminal comprises the selected IP address of the second terminal and the selected on-screen data flow communication port of the second terminal.
The first terminal, the group terminal and the second terminal can conveniently establish one-to-one screen data flow communication links of the first terminal and the selected group terminal and the second terminal by sending respective screen data flow communication addresses, so that the first terminal can transmit screen data flows through the respective screen data flow communication links, and the reliability of data transmission is improved.
In an exemplary embodiment of the present application, when the screen data stream of the first terminal is sent to the selected group terminal and the second terminal through the screen data stream communication link, the screen data stream is transmitted in a TCP manner, and TCP is used as a reliable communication link protocol, which may further improve reliability of data transmission. Specifically, within a preset time, when the information that the screen data stream is received is not received by the selected group terminal and the second terminal, the screen data stream of the first terminal is sent to the selected group terminal and the second terminal again. By retransmitting the screen data stream of the first terminal, each selected group terminal and the second terminal can be ensured to acquire the screen data stream, and the accuracy of data transmission is improved.
Example 3
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the methods of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 10, the present application further provides an electronic device 300, where the electronic device 300 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and the like. The electronic device 300 may include: at least one processor 301, at least one memory 302, at least one network interface 303, a user interface 304, and at least one communication bus 305.
The user interface 304 is mainly used for providing an input interface for a user, acquiring data input by the user, and may include a display terminal and a camera terminal; the display end comprises a display screen and a touch screen, and the display screen is used for displaying the data processed by the processor; the touch screen may include: a capacitive screen, an electromagnetic screen, an infrared screen, or the like, and in general, the touch screen may receive a touch operation or a writing operation input by a user through a finger or an input device. Optionally, the user interface 304 may also include a standard wired interface, a wireless interface.
The network interface 303 may optionally include a standard wired interface or a wireless interface (e.g., WI-FI interface).
Wherein the communication bus 305 is used to enable connection communication between these components.
The processor 301 may include one or more processing cores. The processor 301, using various interfaces and lines to connect various parts throughout the electronic device 300, performs various functions of the electronic device 300 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 302, and calling data stored in the memory 302. Optionally, the processor 301 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 301 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 301, but may be implemented by a single chip.
The Memory 302 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 302 includes a non-transitory computer-readable medium. The memory 302 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 302 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the above-described method embodiments, and the like; the storage data area may store data and the like referred to in the above respective method embodiments. The memory 302 may alternatively be at least one storage device located remotely from the processor 301. As shown in fig. 10, the memory 302, which is a kind of computer storage medium, may include an operating system, a network communication module, and a user therein.
The processor 301 may be configured to invoke an application program of the data synchronous display method stored in the memory 63, and specifically perform the following operations: receiving screen broadcast operation; the screen broadcasting operation comprises a request for acquiring a screen data stream of the first terminal; acquiring a screen data stream of the first terminal according to the screen broadcasting operation; and transmitting the screen data stream to the group terminal and the second terminal so that the group terminal and the second terminal share the screen of the first terminal.
According to the group teaching scene, the group terminal is configured for each group, the second terminal is configured for each student, and the second terminal of the same group is connected in the same group terminal, so that the same-screen broadcasting of the first terminal, the group terminal and the second terminal is realized.
In an exemplary embodiment of the present application, the processor 301 further specifically performs the following operations: according to the screen broadcasting operation, the number of the selected group terminals and the number of the second terminals are also obtained; when the sum of the number of the selected group terminals and the number of the second terminals exceeds a preset threshold value, sending the screen data stream of the first terminal to an IP multicast address, and sending the IP multicast address to the selected group terminals and the second terminals, so that the selected group terminals and the second terminals are added into a multicast group identified by the IP multicast address, and further the screen data stream sent to the IP multicast address is forwarded to the selected group terminals and the second terminals; and when the sum of the number of the selected group terminals and the number of the second terminals does not exceed a preset threshold value, sending the screen data stream communication address of the first terminal to the selected group terminals and the second terminals, establishing screen data stream communication links with the selected group terminals and the second terminals, and sending the screen data stream of the first terminal to the selected group terminals and the selected second terminals through the screen data stream communication links.
According to the method and the device, the transmission mode of the screen data stream of the first terminal is dynamically adjusted according to the actual screen broadcasting scene, namely the number of the selected group terminals for receiving the screen broadcasting and the number of the second terminals connected with the group terminals, when the number of the selected receiving terminals is large, the single screen data stream can be sent at the first terminal and then quickly transmitted to the selected receiving terminals in a multicast transmission mode, and the problems of heavy load and network congestion of a backbone network where the first terminal is located are solved; when the number of the selected receiving ends is small, a screen data stream communication link of the first terminal and the selected group end and the second terminal is established in a one-to-one mode, so that the accuracy of screen data stream transmission is improved, and the user experience is improved.
In an exemplary embodiment of the present application, the processor 301 further controls a display end to display a distribution interface of the first terminal, the group end and the second terminal, so as to receive the screen broadcasting operation on the distribution interface, so that a user can conveniently perform the screen broadcasting operation on the distribution interface to select the selected group end and the second terminal.
In an exemplary embodiment of the present application, the first terminal, the group terminal, and the second terminal are connected to a same wireless router, and the processor 301 further performs the following operations: acquiring an IP multicast address; the multicast module 2032 includes: randomly generating an IP address according to the set D-type address range of the wireless router, and randomly generating a port according to the set port range of the wireless router; and obtaining the IP multicast address according to the randomly generated IP address and the randomly generated port.
In an exemplary embodiment of the present application, when the screen data stream sent to the IP multicast address is forwarded to the selected group terminal and the second terminal, the screen data stream is transmitted in a UDP manner. The screen data stream can be broadcast to the selected group end and the second terminal connected with the group end only by transmitting the screen data stream of the first terminal to the multicast group identified by the IP multicast address once on the backbone network where the first terminal is located, so that the screen data stream can be transmitted quickly, the selected group end, the second terminal connected with the group end and the first terminal can be displayed on the same screen, and transmission congestion is prevented.
In an exemplary embodiment of the present application, a first command communication link is established between the first terminal and the team terminal, and a second command communication link is established between the team terminal and the second terminal; the processor 301 further specifically performs the following operations: and transmitting the IP multicast address to the selected group terminal through the first instruction communication link, and transmitting the IP multicast address to the second terminal through the selected group terminal and the second instruction communication link. The IP multicast address can be conveniently transmitted through the first instruction communication link and the second instruction communication link, so that the selected group end and the group end are added into the multicast group identified by the IP multicast address.
In an exemplary embodiment of the present application, the processor 301 further performs the following operations: transmitting the screen data flow communication link address of the first terminal to the selected group terminal through the first instruction communication link, and transmitting the screen data flow communication link address of the first terminal to the second terminal through the selected group terminal and the second instruction communication link; the screen data flow communication link address of the first terminal comprises an IP address of the first terminal and a screen data flow communication port of the first terminal. Receiving the selected screen data flow communication link address of the group end, and establishing a screen data flow communication link between the first terminal and the selected group end; the selected on-screen data flow communication link address of the group end comprises the selected IP address of the group end and the selected on-screen data flow communication port of the group end. Receiving the selected screen data flow communication link address of the second terminal, and establishing a screen data flow communication link between the first terminal and the selected second terminal; wherein the selected on-screen data flow communication link address of the second terminal comprises the selected IP address of the second terminal and the selected on-screen data flow communication port of the second terminal
The first terminal, the group terminal and the second terminal can conveniently establish one-to-one screen data flow communication links of the first terminal and the selected group terminal and the second terminal by sending respective screen data flow communication addresses, so that the first terminal can transmit screen data flows through the respective screen data flow communication links, and the reliability of data transmission is improved.
In an exemplary embodiment of the present application, when the screen data stream of the first terminal is sent to the selected group terminal and the second terminal through the screen data stream communication link, the screen data stream is transmitted in a TCP manner, and TCP is used as a reliable communication link protocol, which may further improve reliability of data transmission. Specifically, within a preset time, when the information that the screen data stream is received is not received by the selected group terminal and the second terminal, the screen data stream of the first terminal is sent to the selected group terminal and the second terminal again. By retransmitting the screen data stream of the first terminal, each selected group terminal and the second terminal can be ensured to acquire the screen data stream, and the accuracy of data transmission is improved.
Example 4
The following is an embodiment of the system of the present application, where the screen broadcasting system is applied to a group teaching scene, as shown in fig. 1, specifically, the screen broadcasting system includes a first terminal 1000; the first terminal 1000 is connected with a plurality of group terminals 2000; the group terminal 2000 is connected with a plurality of second terminals 3000;
the first terminal 1000 is configured to receive a screen broadcasting operation; the screen broadcasting operation includes a request for acquiring a screen data stream of the first terminal 1000;
the first terminal 1000 is further configured to obtain a screen data stream of the first terminal 1000 according to the screen broadcasting operation;
the first terminal 1000 can be further configured to stream the screen data to the team terminal 2000 and the second terminal 3000;
the team terminal 2000 and the second terminal 3000 are configured to receive the screen data stream and share the screen of the first terminal 1000.
Specifically, the first terminal 1000 runs a screen broadcasting program of the first terminal 1000, the team terminal 2000 runs a screen broadcasting program of the team terminal 2000, and the second terminal 3000 runs a screen broadcasting program of the second terminal 3000; the first terminal 1000 may display a first terminal 1000 communication code when opening a screen broadcasting program of the first terminal 1000, and after the first terminal communication code is input on the screen broadcasting program of the group terminal 2000, a first instruction communication link between the group terminal 2000 and the first terminal 1000 may be established, so that a control instruction is transmitted between the group terminal 2000 and the first terminal 1000, for example, an instruction for opening a window, an instruction for transmitting an IP address, and the like are transmitted through the first terminal 1000, and it may also be convenient to learn how many group terminals 2000 access the screen broadcasting program on the screen broadcasting program of the first terminal 1000, so as to facilitate subsequent selection of the selected group terminal 2000 for receiving the screen broadcasting. Specifically, the first terminal communication code is a character string for conveniently establishing a communication link between electronic devices, and is generated according to an IP address of the first terminal 1000 and a pre-assigned instruction communication port of the first terminal 1000 according to a preset rule, after the first terminal communication code is input on a screen broadcasting program of the group terminal, the group terminal 2000 sends the IP address of the group terminal and the pre-assigned instruction communication port of the group terminal to the instruction communication port of the first terminal under the IP address of the first terminal, and thus the first instruction communication link between the group terminal 2000 and the first terminal 1000 can be established. In this embodiment of the application, the first instruction communication link between the first terminal and the group terminal, which is established through the first terminal communication code, is only limited to a communication link based on a socket communication protocol. After the group end 2000 and the first terminal 1000 establish the instruction communication link, the group communication code is directly displayed in the screen broadcast program of the group end, and after the group end communication code is input in the screen broadcast program of the second terminal, the second instruction communication link between the second terminal 3000 and the group end 2000 can be established, so that the control instruction can be transmitted between the group end 2000 and the second terminal 3000, for example, the instruction for opening a window, the instruction for transmitting an IP address and the like can be transmitted through the group end 2000, and how many second terminals 3000 of each group end 2000 have access to the screen broadcast program can be conveniently known on the screen broadcast program of the first terminal 1000 through the group end 2000, so that the number of the selected second terminals 3000 for receiving the screen broadcast can be conveniently obtained later. The group end communication code is a character string for conveniently establishing a communication link between electronic devices, and is generated according to the group end IP address and a pre-assigned group end instruction communication port according to a preset rule, after the group end communication code is input on a screen broadcast program of the second terminal, the second terminal 3000 sends the IP address of the second terminal and the pre-assigned group end instruction communication port of the second terminal to the group end instruction communication port under the group end IP address, and a second instruction communication link between the group end 2000 and the second terminal 3000 can be established. In this embodiment of the application, the second instruction communication link between the group terminal and the second terminal, which is established through the group terminal communication code, is only limited to a communication link based on a socket communication protocol.
According to the group teaching scene, the group terminal 2000 is configured for each group, the second terminal 3000 is configured for each student, and the second terminal 3000 of the same group is connected to the same group terminal 2000, so that screen sharing of the first terminal 1000, the group terminal 2000 and the second terminal 3000 is achieved.
In an exemplary embodiment of the present application, the screen broadcasting operation further includes selecting the panel terminal 2000 and the second terminal 3000 to receive the screen broadcasting;
the first terminal 1000 is further configured to obtain the number of the selected team terminals 2000 and the number of the second terminals 3000 according to the screen broadcasting operation;
when the sum of the number of the selected group peers 2000 and the number of the second terminals 3000 exceeds a preset threshold, the first terminal 1000 is further configured to transmit a screen data stream of the first terminal 1000 to an IP multicast address, and to transmit the IP multicast address to the selected group peers 2000 and the second terminals 3000; the selected group peer 2000 and the second terminal 3000 are configured to receive the IP multicast address and join the multicast group identified by the IP multicast address, thereby receiving the screen data stream forwarded by the IP multicast address.
When the sum of the number of the selected group terminals 2000 and the number of the second terminals 3000 does not exceed a preset threshold, the first terminal 1000 is further configured to transmit the screen data stream communication address of the first terminal to the selected group terminals 2000 and the second terminals 3000; the selected team terminal 2000 and the selected second terminal 3000 are configured as the on-screen data stream communication address of the first terminal and transmit the respective on-screen data stream communication addresses to the first terminal 1000; the first terminal 1000 is further configured to establish an on-screen data stream communication link between the first terminal 1000 and the selected team terminal 2000 and the second terminal 3000, and to transmit an on-screen data stream of the first terminal 1000 to the selected team terminal 2000 and the second terminal 3000 through the on-screen data stream communication link.
According to the embodiment of the application, the transmission mode of the screen data stream of the first terminal 1000 is dynamically adjusted according to the actual screen broadcasting scene, namely the number of the selected group terminals 2000 for receiving the screen broadcasting and the number of the second terminals 3000 connected with the group terminals 2000, so that when a large number of selected receiving terminals exist, a single screen data stream can be sent at the first terminal 1000 and then quickly transmitted to each selected receiving terminal through a multicast transmission mode, and the problems of heavy load and network congestion of a backbone network where the first terminal 1000 is located are prevented; when the number of selected receiving terminals is small, the accuracy of screen data stream transmission is improved and the user experience is improved by establishing a one-to-one screen data stream communication link between the first terminal 1000 and the selected group terminal 2000 and the second terminal 3000.
In an exemplary embodiment of the present application, the first terminal 1000 is further configured to display a distribution interface of the first terminal 1000, the team terminal 2000 and the second terminal 3000 to receive the screen broadcasting operation on the distribution interface. The distribution interface is an interface in which the first terminal 1000, the team terminal 2000 and the second terminal 3000 are connected to each other as shown in fig. 1. A first command communication link is established between the first terminal 1000 and the team terminal 2000, a second command communication link is established between the team terminal 2000 and the second terminal 3000, and how many team terminals 2000 are connected to the first terminal 1000 and how many second terminals 3000 are connected to the team terminal 2000 can be displayed on a screen broadcasting program of the first terminal 1000, and meanwhile, the connection relationship between the first terminal 1000 and the team terminal 2000 and between the team terminal 2000 and the second terminal 3000 is also displayed, so that the distribution interface is formed, so that a user can conveniently perform screen broadcasting operation on the distribution interface and select the selected team terminal 2000 and the selected second terminal 3000. When the group end 2000 is selected on the distribution interface, the group end 2000 may be selected by clicking the group end 2000 with a mouse or a touch, or the group end 2000 may be selected by setting a selectable item box beside the group end 2000, by checking the selectable item box, or in other selection manners. Similarly, when the second terminal 3000 is selected on the distribution interface, the second terminal 3000 may be selected by clicking the second terminal 3000 with a mouse or by touching, or the second terminal 3000 may be selected by setting a selectable item box beside the second terminal 3000, by checking the selectable item box, or by other selection methods. Based on the application of the present application to a group teaching scenario, in the embodiment of the present application, the group peer 2000 must be selected first when the second terminal 3000 is selected, and for the convenience of the user, the second terminal 3000 is selected, and after the group peer 2000 is selected, all the second terminals 3000 connected to the group peer 2000 are selected by default.
In an exemplary embodiment of the present application, a first command communication link is established between the first terminal 1000 and the team terminal 2000, and a second command communication link is established between the team terminal 2000 and the second terminal 3000;
the first terminal 1000 is further configured to transmit the IP multicast address to the selected subgroup peer 2000 over the first command communication link;
the selected group peer 2000 is further configured to join the multicast group identified by the IP multicast address according to the IP multicast address, and forward the IP multicast address to the second terminal 3000;
the selected second terminal 3000 is further configured to receive the IP multicast address, and join the multicast group identified by the IP multicast address according to the IP multicast address.
In the embodiment of the present application, the screen data stream is transmitted in a multicast manner by acquiring the IP multicast address of the wireless router, so that the problems of heavy load and network congestion of the backbone network where the first terminal 1000 is located can be prevented.
In an exemplary embodiment of the present application, the first terminal, the group terminal, and the second terminal are connected to a same wireless router, and the first terminal 1000 is further configured to obtain an IP multicast address; comprising a configuration to: randomly generating an IP address according to the set D-type address range of the wireless router, and randomly generating a port according to the set port range of the wireless router; and obtaining the IP multicast address according to the randomly generated IP address and the randomly generated port. According to the embodiment of the application, the screen data stream is transmitted in a multicast mode by acquiring the IP multicast address of the wireless router, so that the problems of heavy load and network congestion of a backbone network where the first terminal is located can be prevented.
In an exemplary embodiment of the present application, the first terminal 1000 is further configured to transmit an IP address of the first terminal 1000 to the selected subgroup peer 2000 via the first command communication link;
the first terminal 1000 is further configured to transmit an on-screen data flow communication link address of the first terminal to the selected team terminal 2000 over the first command communication link; the screen data flow communication link address of the first terminal comprises an IP address of the first terminal and a screen data flow communication port of the first terminal;
the selected team node 2000 is further configured to send the selected team node's on-screen data flow communication link address to the first terminal's on-screen data flow communication port under the first terminal's IP address, and forward the first terminal's on-screen data flow communication link address to the second terminal 3000; the selected screen data flow communication link address of the group end comprises the selected IP address of the group end and the selected screen data flow communication port of the group end;
the selected second terminal 3000 is further configured to send the selected on-screen data flow communication link address of the second terminal to the on-screen data flow communication port of the first terminal under the IP address of the first terminal; the selected screen data flow communication link address of the second terminal comprises a selected IP address of the second terminal and a selected screen data flow communication port of the second terminal;
the first terminal 1000 is further configured to receive the selected on-screen data flow communication link address of the team terminal, establish an on-screen data flow communication link between the first terminal 1000 and the selected team terminal 2000, and receive the selected on-screen data flow communication link address of the second terminal, establish an on-screen data flow communication link between the first terminal 1000 and the selected second terminal 3000.
The first terminal 1000, the team terminal 2000 and the second terminal 3000 establish a one-to-one on-screen data flow communication link between the first terminal 1000 and the selected team terminal 2000 and the second terminal 3000 by sending respective data flow communication addresses, so that the first terminal 1000 can transmit the on-screen data flow through the respective on-screen data flow communication link, thereby improving the reliability of data transmission.
In an exemplary embodiment of the present application, when the screen data stream transmitted to the IP multicast address is forwarded to the selected group terminal 2000 and the second terminal 3000, the screen data stream is transmitted in a UDP manner. The screen data stream is transmitted in a UDP multicast manner, and the screen data stream of the first terminal 1000 can be broadcast to the selected group end 2000 and the second terminal 3000 connected to the group end 2000 only by transmitting the screen data stream of the first terminal 1000 to the multicast group identified by the IP multicast address once, so that the screen data stream is quickly transmitted, the selected group end 2000, the second terminal 3000 connected to the group end 2000 and the first terminal 1000 are displayed on the same screen, and transmission congestion is prevented.
In an exemplary embodiment of the present application, when the screen data stream of the first terminal 1000 is transmitted to the selected group terminal 2000 and the selected second terminal 3000 through the screen data stream communication link, the screen data stream is transmitted in a TCP manner, and the TCP is used as a reliable communication link protocol, which may further improve reliability of data transmission. Specifically, within a preset time, the first terminal 1000 is configured to resend the screen data stream of the first terminal 1000 to the selected team terminal 2000 and the second terminal 3000 when the information confirming the reception of the screen data stream fed back by the selected team terminal 2000 and the second terminal 3000 is not received. By retransmitting the screen data stream of the first terminal 1000, it can be ensured that each of the selected group terminal 2000 and the second terminal 3000 can acquire the screen data stream, and the accuracy of data transmission is improved.
Example 5
The present application further provides a computer-readable storage medium, on which a computer program is stored, where the instructions are suitable for being loaded by a processor and executing the method steps of the foregoing illustrated embodiments, and specific execution processes may refer to specific descriptions shown in embodiment 1, which are not described herein again. The device where the storage medium is located can be an electronic device such as a personal computer, a notebook computer, a smart phone and a tablet computer.
For the apparatus embodiment, since it basically corresponds to the method embodiment, reference may be made to the partial description of the method embodiment for relevant points. The above-described device embodiments are merely illustrative, wherein the components described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart block or blocks and/or flowchart block or blocks. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium, such as a modulated data signal and a carrier wave
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims (16)
1. A screen broadcasting method is applied to a first terminal; the first terminal is connected with a plurality of group terminals; the group end is connected with a plurality of second terminals; the method comprises the following steps:
receiving screen broadcast operation; the screen broadcasting operation comprises a request for acquiring a screen data stream of the first terminal;
acquiring a screen data stream of the first terminal according to the screen broadcasting operation;
and transmitting the screen data stream to the group terminal and the second terminal so that the group terminal and the second terminal share the screen of the first terminal.
2. The screen broadcasting method of claim 1, wherein the screen broadcasting operation further comprises selecting a group terminal and a second terminal to receive the screen broadcasting; the transmitting the screen data stream to the panel terminal and the second terminal includes:
according to the screen broadcasting operation, the number of the selected group terminals and the number of the second terminals are also obtained;
when the sum of the number of the selected group terminals and the number of the second terminals exceeds a preset threshold value, sending the screen data stream of the first terminal to an IP multicast address, and sending the IP multicast address to the selected group terminals and the second terminals, so that the selected group terminals and the second terminals are added into a multicast group identified by the IP multicast address, and further the screen data stream sent to the IP multicast address is forwarded to the selected group terminals and the second terminals;
and when the sum of the number of the selected group terminals and the number of the second terminals does not exceed a preset threshold value, sending the screen data stream communication address of the first terminal to the selected group terminals and the second terminals, establishing screen data stream communication links with the selected group terminals and the second terminals, and sending the screen data stream of the first terminal to the selected group terminals and the selected second terminals through the screen data stream communication links.
3. The screen broadcasting method of claim 2, further comprising: and displaying the distribution interfaces of the first terminal, the group terminal and the second terminal so as to receive the screen broadcasting operation on the distribution interface.
4. The screen broadcasting method of claim 2, wherein the first terminal, the team terminal, and the second terminal are connected under the same wireless router, the method further comprising obtaining an IP multicast address; the step of acquiring the IP multicast address comprises the following steps:
randomly generating an IP address according to the set D-type address range of the wireless router, and randomly generating a port according to the set port range of the wireless router;
and obtaining the IP multicast address according to the randomly generated IP address and the randomly generated port.
5. The screen broadcasting method of claim 4, wherein a first command communication link is established between the first terminal and the team terminal, and a second command communication link is established between the team terminal and the second terminal; the step of sending the IP address of the first terminal to the selected group terminal and the second terminal, and establishing the on-screen data flow communication link with the selected group terminal and the second terminal includes:
transmitting the screen data flow communication link address of the first terminal to the selected group terminal through the first instruction communication link, and transmitting the screen data flow communication link address of the first terminal to the second terminal through the selected group terminal and the second instruction communication link; the screen data flow communication link address of the first terminal comprises an IP address of the first terminal and a screen data flow communication port of the first terminal;
receiving the selected screen data flow communication link address of the group end, and establishing a screen data flow communication link between the first terminal and the selected group end; the selected screen data flow communication link address of the group end comprises the selected IP address of the group end and the selected screen data flow communication port of the group end;
receiving the selected screen data flow communication link address of the second terminal, and establishing a screen data flow communication link between the first terminal and the selected second terminal; the selected on-screen data flow communication link address of the second terminal comprises the selected IP address of the second terminal and the selected on-screen data flow communication port of the second terminal.
6. The screen broadcasting method according to claim 2, wherein when the screen data stream transmitted to the IP multicast address is forwarded to the selected group terminal and the second terminal, the screen data stream is transmitted in a UDP manner; and/or when the screen data stream of the first terminal is sent to the selected group terminal and the second terminal through the screen data stream communication link, the screen data stream is transmitted in a TCP mode.
7. A screen broadcasting device is characterized in that the screen broadcasting device is applied to a first terminal, and the first terminal is connected with a plurality of group terminals; the group terminal is connected with a plurality of second terminals, and the device comprises:
the operation receiving module is used for receiving screen broadcasting operation; the screen broadcasting operation comprises a request for acquiring a screen data stream of the first terminal;
the screen data stream acquisition module is used for acquiring the screen data stream of the first terminal according to the screen broadcasting operation;
and the screen data stream transmission module is used for transmitting the screen data stream to the group terminal and the second terminal so as to enable the group terminal and the second terminal to share the screen of the first terminal.
8. The screen broadcasting device of claim 7, wherein the screen broadcasting operation further comprises selecting a team terminal and a second terminal to receive the screen broadcasting; the screen data streaming module includes:
the number acquisition module is used for acquiring the number of the selected group terminals and the number of the second terminals according to the screen broadcasting operation;
a multicast module, configured to send, when a sum of the number of the selected group terminals and the number of the second terminals exceeds a preset threshold, a screen data stream of the first terminal to an IP multicast address, and send the IP multicast address to the selected group terminal and the second terminal, so that the selected group terminal and the second terminal join in a multicast group identified by the IP multicast address, and further forward the screen data stream sent to the IP multicast address to the selected group terminal and the second terminal;
and the unicast module is used for sending the screen data stream communication address of the first terminal to the selected group terminal and the selected second terminal when the sum of the number of the selected group terminals and the number of the second terminals does not exceed a preset threshold, establishing a screen data stream communication link with the selected group terminal and the selected second terminal, and sending the screen data stream of the first terminal to the selected group terminal and the selected second terminal through the screen data stream communication link.
9. A screen broadcasting system comprising a first terminal; the first terminal is connected with a plurality of group terminals; the group end is connected with a plurality of second terminals;
the first terminal is configured to receive a screen broadcast operation; the screen broadcasting operation comprises a request for acquiring a screen data stream of the first terminal;
the first terminal is further configured to obtain a screen data stream of the first terminal according to the screen broadcasting operation;
the first terminal is further configured to transmit the screen data stream to the panel terminal and the second terminal;
the team terminal and the second terminal are configured to receive the screen data stream and share a screen of the first terminal.
10. The screen broadcasting system of claim 9, wherein the screen broadcasting operation further comprises selecting a group terminal and a second terminal to receive the screen broadcasting;
the first terminal is further configured to acquire the number of the selected group terminals and the number of the second terminals according to the screen broadcasting operation;
when the sum of the number of the selected group terminals and the number of the second terminals exceeds a preset threshold, the first terminal is further configured to send a screen data stream of the first terminal to an IP multicast address, and send the IP multicast address to the selected group terminals and the second terminals; the selected group terminal and the second terminal are configured to receive the IP multicast address and join the multicast group identified by the IP multicast address, so as to receive the screen data stream forwarded by the IP multicast address;
when the sum of the number of the selected group terminals and the number of the second terminals does not exceed a preset threshold, the first terminal is further configured to send the screen data stream communication address of the first terminal to the selected group terminals and the selected second terminals; the selected group terminal and the selected second terminal are configured to receive the screen data stream communication address of the first terminal and send respective screen data stream communication addresses to the first terminal; the first terminal is further configured to establish an on-screen data stream communication link between the first terminal and the selected group terminal and the second terminal, and send the on-screen data stream of the first terminal to the selected group terminal and the second terminal through the on-screen data stream communication link.
11. The screen broadcasting system of claim 10, wherein the first terminal is further configured to display a distribution interface of the first terminal, the team terminal and the second terminal to receive the screen broadcasting operation on the distribution interface.
12. The screen broadcasting system of claim 10, wherein the first terminal, the team terminal, and the second terminal are connected under the same wireless router, the first terminal further configured to obtain an IP multicast address; comprising a configuration to: randomly generating an IP address according to the set D-type address range of the wireless router, and randomly generating a port according to the set port range of the wireless router; and obtaining the IP multicast address according to the randomly generated IP address and the randomly generated port.
13. The screen broadcasting system of claim 10, wherein a first command communication link is established between the first terminal and the team terminal and a second command communication link is established between the team terminal and the second terminal;
the first terminal is further configured to transmit a screen data stream communication link address of the first terminal to the selected group terminal through the first instruction communication link; the screen data flow communication link address of the first terminal comprises an IP address and a screen data flow communication port of the first terminal;
the selected group terminal is further configured to send the selected screen data flow communication link address of the group terminal to the screen data flow communication port of the first terminal under the IP address of the first terminal, and forward the screen data flow communication link address of the first terminal to the second terminal; the selected screen data flow communication link address of the group end comprises the selected IP address of the group end and the selected screen data flow communication port of the group end;
the selected second terminal is further configured to send the selected on-screen data flow communication link address of the second terminal to the on-screen data flow communication port of the first terminal under the IP address of the first terminal; the selected screen data flow communication link address of the second terminal comprises a selected IP address of the second terminal and a selected screen data flow communication port of the second terminal;
the first terminal is further configured to receive the selected on-screen data flow communication link address of the group terminal, establish an on-screen data flow communication link between the first terminal and the selected group terminal, receive the selected on-screen data flow communication link address of the second terminal, and establish an on-screen data flow communication link between the first terminal and the selected second terminal.
14. The screen broadcasting system of claim 10, wherein when the screen data stream of the first terminal is transmitted to the selected group terminal and the second terminal through the screen data stream communication link, the screen data stream is transmitted in a TCP manner; and/or when the screen data stream sent to the IP multicast address is forwarded to the selected group terminal and the second terminal, the screen data stream is transmitted in a UDP mode.
15. An electronic device, comprising: a display screen, a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to execute the screen broadcasting method of any one of claims 1 to 6.
16. A computer-readable storage medium, on which a computer program is stored, the computer program, when being executed by a processor, implementing the screen broadcasting method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910927637.8A CN110752999B (en) | 2019-09-27 | 2019-09-27 | Screen broadcasting method, device, system, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910927637.8A CN110752999B (en) | 2019-09-27 | 2019-09-27 | Screen broadcasting method, device, system, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110752999A true CN110752999A (en) | 2020-02-04 |
CN110752999B CN110752999B (en) | 2023-03-24 |
Family
ID=69277287
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910927637.8A Active CN110752999B (en) | 2019-09-27 | 2019-09-27 | Screen broadcasting method, device, system, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110752999B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111580764A (en) * | 2020-04-18 | 2020-08-25 | 广州视源电子科技股份有限公司 | Screen sharing method, device, equipment and storage medium of intelligent interactive tablet |
CN112306610A (en) * | 2020-11-02 | 2021-02-02 | 北京字节跳动网络技术有限公司 | Terminal control method and device and electronic equipment |
CN113286192A (en) * | 2021-05-21 | 2021-08-20 | 青岛海信移动通信技术股份有限公司 | Screen sharing method and mobile terminal |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120182384A1 (en) * | 2011-01-17 | 2012-07-19 | Anderson Eric C | System and method for interactive video conferencing |
CN104882039A (en) * | 2015-06-02 | 2015-09-02 | 阔地教育科技有限公司 | Teaching interaction method based on mobile terminals and server |
CN204632158U (en) * | 2015-05-27 | 2015-09-09 | 曾望 | A kind of interactive English study Group Cooperation discussion teaching platform |
CN107102837A (en) * | 2017-05-25 | 2017-08-29 | 成都市极米科技有限公司 | Multiple terminals Display on the same screen system and method |
CN108933965A (en) * | 2017-05-26 | 2018-12-04 | 腾讯科技(深圳)有限公司 | screen content sharing method, device and storage medium |
CN109979272A (en) * | 2019-04-28 | 2019-07-05 | 浙江学海教育科技有限公司 | Interactive teaching methods and system |
CN110072133A (en) * | 2019-04-28 | 2019-07-30 | 浙江学海教育科技有限公司 | Display on the same screen method and system |
-
2019
- 2019-09-27 CN CN201910927637.8A patent/CN110752999B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120182384A1 (en) * | 2011-01-17 | 2012-07-19 | Anderson Eric C | System and method for interactive video conferencing |
CN204632158U (en) * | 2015-05-27 | 2015-09-09 | 曾望 | A kind of interactive English study Group Cooperation discussion teaching platform |
CN104882039A (en) * | 2015-06-02 | 2015-09-02 | 阔地教育科技有限公司 | Teaching interaction method based on mobile terminals and server |
CN107102837A (en) * | 2017-05-25 | 2017-08-29 | 成都市极米科技有限公司 | Multiple terminals Display on the same screen system and method |
CN108933965A (en) * | 2017-05-26 | 2018-12-04 | 腾讯科技(深圳)有限公司 | screen content sharing method, device and storage medium |
CN109979272A (en) * | 2019-04-28 | 2019-07-05 | 浙江学海教育科技有限公司 | Interactive teaching methods and system |
CN110072133A (en) * | 2019-04-28 | 2019-07-30 | 浙江学海教育科技有限公司 | Display on the same screen method and system |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111580764A (en) * | 2020-04-18 | 2020-08-25 | 广州视源电子科技股份有限公司 | Screen sharing method, device, equipment and storage medium of intelligent interactive tablet |
CN111580764B (en) * | 2020-04-18 | 2023-08-29 | 广州视源电子科技股份有限公司 | Screen sharing method, device, equipment and storage medium of intelligent interaction tablet |
CN112306610A (en) * | 2020-11-02 | 2021-02-02 | 北京字节跳动网络技术有限公司 | Terminal control method and device and electronic equipment |
CN113286192A (en) * | 2021-05-21 | 2021-08-20 | 青岛海信移动通信技术股份有限公司 | Screen sharing method and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN110752999B (en) | 2023-03-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10284644B2 (en) | Information processing and content transmission for multi-display | |
CN110752999B (en) | Screen broadcasting method, device, system, electronic equipment and storage medium | |
CN109168021B (en) | Plug flow method and device | |
CN102595239A (en) | Multi-screen interactive method, device and intelligent television for terminal system | |
CN107104947B (en) | Multi-screen interaction method | |
CN104158900A (en) | Method and system for synchronizing courseware through iPad controlling | |
US20150089395A1 (en) | Electronic tool and methods for meetings | |
CN110198478B (en) | Interactive recording and broadcasting method, system, client, device, equipment and storage medium | |
CN103440099A (en) | Multi-screen interactive method, terminal and system | |
WO2015176648A1 (en) | Method and device for transmitting data in intelligent terminal to television terminal | |
CN112181353B (en) | Audio playing method and device, electronic equipment and storage medium | |
US10965480B2 (en) | Electronic tool and methods for recording a meeting | |
CN111580764A (en) | Screen sharing method, device, equipment and storage medium of intelligent interactive tablet | |
CN104753989A (en) | Screen image transmission and playing method and device based on Web-based OS runtime environment | |
CN110737638A (en) | data sharing method, device, electronic equipment and storage medium | |
CN103838532A (en) | Multi-screen content synthesizing and displaying method, related equipment and system | |
CN104469078A (en) | Interactive projection control method and system | |
CN103078851A (en) | Message receiving and transmitting method, message interaction system and DLNA (Digital Living Network Alliance) equipment | |
EP4145269A1 (en) | Screen projection control method, storage medium, and communication device | |
CN110794966B (en) | AR display system and method | |
RU2648982C2 (en) | Wireless docking system for audio-video | |
CN106028173A (en) | Digital education intelligent terminal system | |
CN115150804B (en) | Connection establishment method, storage medium and related equipment | |
CN112738445B (en) | Multi-line plug flow method and device, storage medium and electronic equipment | |
CN115243064B (en) | Live broadcast control method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |