CN107040498B - Same-screen method and terminal - Google Patents
Same-screen method and terminal Download PDFInfo
- Publication number
- CN107040498B CN107040498B CN201610077632.7A CN201610077632A CN107040498B CN 107040498 B CN107040498 B CN 107040498B CN 201610077632 A CN201610077632 A CN 201610077632A CN 107040498 B CN107040498 B CN 107040498B
- Authority
- CN
- China
- Prior art keywords
- terminal
- video data
- data stream
- transmission
- feedback information
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 69
- 230000005540 biological transmission Effects 0.000 claims description 105
- 238000004891 communication Methods 0.000 description 10
- 230000008569 process Effects 0.000 description 10
- 230000000694 effects Effects 0.000 description 8
- 238000012545 processing Methods 0.000 description 6
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000012216 screening Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000008014 freezing Effects 0.000 description 1
- 238000007710 freezing Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/1066—Session management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/436—Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
- H04N21/4363—Adapting the video stream to a specific local network, e.g. a Bluetooth® network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/643—Communication protocols
- H04N21/6437—Real-time Transport Protocol [RTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明实施例公开了一种同屏方法及终端。所述同屏方法包括:第一终端与第二终端建立同屏连接;选择至少一路原始数据流,利用所述同屏连接发送给第二终端;其中,所述原始数据流用于供第二终端输出,从而与第一终端实现同屏。
The embodiment of the present invention discloses a method and terminal for the same screen. The same-screen method includes: establishing a same-screen connection between a first terminal and a second terminal; selecting at least one original data stream, and sending it to the second terminal using the same-screen connection; wherein the original data stream is used for the second terminal output, so as to achieve the same screen with the first terminal.
Description
技术领域technical field
本发明涉及无线通信领域的同屏技术,尤其涉及一种同屏方法及终端。The present invention relates to the same-screen technology in the field of wireless communication, and in particular, to a same-screen method and terminal.
背景技术Background technique
终端间无线同屏是目前在移动终端上新兴的一种应用,借助于无线网络将移动终端上的多媒体内容推送到远端设备上进行展示。智能终端在局域网内进行视频通话的同屏实现过程中,包括了三个步骤:Wireless co-screening between terminals is an emerging application on mobile terminals at present. The multimedia content on the mobile terminal is pushed to a remote device for display by means of a wireless network. The process of realizing the same screen of the video call of the intelligent terminal in the local area network includes three steps:
1)终端周期性的截取当前屏幕的内容;1) The terminal periodically intercepts the content of the current screen;
2)终端将截取的屏幕内容进行编码;2) The terminal encodes the captured screen content;
3)将编码完成的内容通过无线同屏协议传输给局域网内的接收端设备。3) The encoded content is transmitted to the receiving end device in the local area network through the wireless same-screen protocol.
上述方法虽然实现了终端间的无线同屏,但是存在以下问题:Although the above method realizes the wireless same screen between terminals, it has the following problems:
首先,对发送端进行屏幕进行截取,可能存在有些信息用户并不想截取发送给接收端。First, screenshot the sender's screen. There may be some information that the user does not want to capture and send to the receiver.
其次,传输给发送端的屏幕内容的分辨率取决于发送端的屏幕分辨率,显然这可能导致接收端的播放效果不佳的现象;Secondly, the resolution of the screen content transmitted to the sender depends on the screen resolution of the sender, which obviously may lead to poor playback at the receiver;
第三,发送端需要对屏幕内容进行截屏编码,会消耗发送端的资源,可能会导致发送端资源紧张、系统运行慢从而导致同屏出现卡顿等现象。Third, the sender needs to take screenshots and encode the screen content, which will consume the resources of the sender, which may lead to the resource shortage of the sender and the slow system operation, which may lead to the phenomenon of freezing on the same screen.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本发明实施例期望提供一种同屏方法及终端,至少部分解决上述问题之一。In view of this, the embodiments of the present invention are expected to provide a method and terminal for sharing a screen, which at least partially solve one of the above problems.
为达到上述目的,本发明的技术方案是这样实现的:In order to achieve the above object, the technical scheme of the present invention is achieved in this way:
本发明实施例第一方面提供一种同屏方法,所述方法包括:A first aspect of the embodiments of the present invention provides a method for sharing a screen, and the method includes:
第一终端与第二终端建立同屏连接;establishing a same-screen connection between the first terminal and the second terminal;
选择至少一路原始数据流,利用所述同屏连接发送给第二终端;Selecting at least one original data stream, and using the same-screen connection to send to the second terminal;
其中,所述原始数据流用于供第二终端输出,从而与第一终端实现同屏。Wherein, the original data stream is used for output by the second terminal, so as to realize the same screen with the first terminal.
基于上述方案,所述选择至少一路原始数据流,利用所述同屏连接发送给第二终端,包括:Based on the above solution, the selecting at least one original data stream and sending it to the second terminal using the same-screen connection includes:
选择所述第一终端的本地数据流和/或接收到远端设备发送的远端数据流发送给所述第二终端。Select the local data stream of the first terminal and/or receive the remote data stream sent by the remote device and send it to the second terminal.
基于上述方案,所述方法还包括:Based on the above scheme, the method further includes:
所述第一终端向发送确定所述第二终端是否支持N路数据流传输的询问;其中,所述N为不小于2的整数;The first terminal sends a query to determine whether the second terminal supports N-channel data stream transmission; wherein, the N is an integer not less than 2;
接收所述第二终端基于所述询问发送的反馈信息;receiving feedback information sent by the second terminal based on the inquiry;
所述选择至少一路原始数据流,利用所述同屏连接发送给第二终端,包括:The selecting at least one original data stream and sending it to the second terminal by using the same-screen connection, including:
在所述反馈信息表明所述第二终端支持N路数据流传输时,选择M路原始数据流发送给所述第二终端;其中,所述M为不大于所述N的正整数。When the feedback information indicates that the second terminal supports transmission of N channels of data streams, M channels of original data streams are selected and sent to the second terminal; wherein, the M is a positive integer not greater than the N.
基于上述方案,所述反馈信息包括所述第二终端接收N路数据流传输的端口参数;Based on the above solution, the feedback information includes port parameters for the second terminal to receive N data stream transmissions;
所述在所述反馈信息表明所述第二终端支持N路数据流传输时,选择M路原始数据流发送给所述第二终端,包括:The selecting, when the feedback information indicates that the second terminal supports transmission of N data streams, selects M channels of original data streams to send to the second terminal, including:
根据所述端口参数,将所述M路原始数据流发送给所述第二终端。According to the port parameter, the M channels of original data streams are sent to the second terminal.
基于上述方案,所述方法还包括:Based on the above scheme, the method further includes:
基于所述端口参数,进行会话协商并建立进行M路原始数据流传输的传输会话;Based on the port parameter, perform session negotiation and establish a transmission session for M-channel original data stream transmission;
所述在所述反馈信息表明所述第二终端支持N路数据流传输时,选择M路原始数据流发送给所述第二终端,包括:The selecting, when the feedback information indicates that the second terminal supports transmission of N data streams, selects M channels of original data streams to send to the second terminal, including:
基于所述传输会话,向第二终端发送所述M路原始数据流。Based on the transmission session, the M channels of original data streams are sent to the second terminal.
本发明实施例第二方面提供一种同屏方法,所述方法包括:A second aspect of the embodiments of the present invention provides a method for sharing a screen, and the method includes:
第二终端与第一终端建立同屏连接;The second terminal establishes a same-screen connection with the first terminal;
通过所述同屏连接,接收所述第一终端发送的至少一路原始数据流;receiving at least one original data stream sent by the first terminal through the same-screen connection;
显示所述原始数据流。The raw data stream is displayed.
基于上述方案,所述方法还包括:Based on the above scheme, the method further includes:
接收所述第一终端确定所述第二终端是否支持N路数据流传输的询问;所述N为不小于2的整数;Receive a query from the first terminal to determine whether the second terminal supports transmission of N data streams; the N is an integer not less than 2;
基于所述询问,根据所述第二终端的能力参数形成反馈信息;based on the inquiry, forming feedback information according to the capability parameter of the second terminal;
向所述第一终端发送所述反馈信息。Send the feedback information to the first terminal.
基于上述方案,在所述第二终端支持N路数据流传输时,所述反馈信息包括支持N路数据流传输的端口参数。Based on the above solution, when the second terminal supports N-channel data stream transmission, the feedback information includes port parameters supporting N-channel data stream transmission.
基于上述方案,所述方法还包括:Based on the above scheme, the method further includes:
与所述第一终端进行会话协商并建立进行M路原始数据流传输的传输会话;其中,所述M为不大于N的正整数;Perform session negotiation with the first terminal and establish a transmission session for M-channel original data stream transmission; wherein, M is a positive integer not greater than N;
所述通过所述同屏连接,接收所述第一终端发送的至少一路原始数据流,包括:The receiving at least one original data stream sent by the first terminal through the same-screen connection includes:
基于所述传输会话,接收所述第一终端发送的原始数据流。Based on the transmission session, the original data stream sent by the first terminal is received.
本发明实施例第三方面提供一种终端,所述终端为第一终端;所述第一终端包括:A third aspect of the embodiments of the present invention provides a terminal, where the terminal is a first terminal; the first terminal includes:
第一连接单元,用于与第二终端建立同屏连接;a first connection unit for establishing a same-screen connection with the second terminal;
第一发送单元,用于选择至少一路原始数据流,利用所述同屏连接发送给第二终端;a first sending unit, configured to select at least one original data stream and send it to the second terminal by using the same-screen connection;
其中,所述原始数据流用于供第二终端输出,从而与第一终端实现同屏。Wherein, the original data stream is used for output by the second terminal, so as to realize the same screen with the first terminal.
基于上述方案,所述第一发送单元,用于选择所述第一终端的本地数据流和/或接收到远端设备发送的远端数据流发送给所述第二终端。Based on the above solution, the first sending unit is configured to select a local data stream of the first terminal and/or receive a remote data stream sent by a remote device and send it to the second terminal.
基于上述方案,所述第一发送单元,用于向发送确定所述第二终端是否支持N路数据流传输的询问;其中,所述N为不小于2的整数;Based on the above solution, the first sending unit is configured to send a query to determine whether the second terminal supports N-channel data stream transmission; wherein, N is an integer not less than 2;
所述终端还包括:The terminal also includes:
第一接收单元,用于接收所述第二终端基于所述询问发送的反馈信息;a first receiving unit, configured to receive feedback information sent by the second terminal based on the inquiry;
所述第一发送单元,还用于在所述反馈信息表明所述第二终端支持N路数据流传输时,选择M路原始数据流发送给所述第二终端;其中,所述M为不大于所述N的正整数。The first sending unit is further configured to select M channels of original data streams to send to the second terminal when the feedback information indicates that the second terminal supports transmission of N channels of data streams; wherein, the M is not A positive integer greater than said N.
基于上述方案,所述反馈信息包括所述第二终端接收N路数据流传输的端口参数;Based on the above solution, the feedback information includes port parameters for the second terminal to receive N data stream transmissions;
所述第一发送单元,用于根据所述端口参数,将所述M路原始数据流发送给所述第二终端。The first sending unit is configured to send the M channels of original data streams to the second terminal according to the port parameter.
基于上述方案,所述终端还包括:Based on the above solution, the terminal further includes:
协商单元,用于基于所述端口参数,进行会话协商并建立进行M路原始数据流传输的传输会话;a negotiation unit, configured to perform session negotiation and establish a transmission session for M-channel original data stream transmission based on the port parameter;
所述第一发送单元,用于基于所述传输会话,向第二终端发送所述M路原始数据流。The first sending unit is configured to send the M channels of original data streams to the second terminal based on the transmission session.
本发明实施例第四方面提供一种终端,所述终端为第二终端;所述第二终端包括:A fourth aspect of the embodiments of the present invention provides a terminal, where the terminal is a second terminal; the second terminal includes:
第二连接单元,用于与第一终端建立同屏连接;a second connection unit, configured to establish a same-screen connection with the first terminal;
第二接收单元,用于通过所述同屏连接,接收所述第一终端发送的至少一路原始数据流;a second receiving unit, configured to receive at least one original data stream sent by the first terminal through the same-screen connection;
显示单元,用于显示所述原始数据流。a display unit for displaying the original data stream.
基于上述方案,所述第二接收单元,用于接收所述第一终端确定所述第二终端是否支持N路数据流传输的询问;所述N为不小于2的整数;Based on the above solution, the second receiving unit is configured to receive a query from the first terminal to determine whether the second terminal supports transmission of N data streams; the N is an integer not less than 2;
所述第二终端还包括:The second terminal also includes:
形成单元,用于基于所述询问,根据所述第二终端的能力参数形成反馈信息;a forming unit, configured to form feedback information according to the capability parameter of the second terminal based on the query;
第二发送单元,用于向所述第一终端发送所述反馈信息。A second sending unit, configured to send the feedback information to the first terminal.
基于上述方案,在所述第二终端支持N路数据流传输时,所述反馈信息包括支持N路数据流传输的端口参数。Based on the above solution, when the second terminal supports N-channel data stream transmission, the feedback information includes port parameters supporting N-channel data stream transmission.
基于上述方案,所述第二终端还包括:Based on the above solution, the second terminal further includes:
会话单元,用于与所述第一终端进行会话协商并建立进行M路原始数据流传输的传输会话;其中,所述M为不大于N的正整数;a session unit, configured to perform session negotiation with the first terminal and establish a transmission session for M-channel original data stream transmission; wherein, M is a positive integer not greater than N;
所述第二接收单元,具体用于基于所述传输会话,接收所述第一终端发送的原始数据流。The second receiving unit is specifically configured to receive the original data stream sent by the first terminal based on the transmission session.
本发明实施例提供的同屏方法及终端,第一终端向第二终端发送的视频为原始数据流,并非是第一终端的截屏编码形成的数据流;首先,减少第一终端因截屏及编码消耗的系统资源和导致的繁忙,从而避免第一终端因为系统资源紧张导致的同屏卡顿等不良现象;其次,由于传输的是原始数据流,从而数据流的视频分辨率不局限于第一终端的显示分辨率,从而第二终端能够获得更好的显示效果;再次,这样可以允许第一终端将显示的部分数据流传输给第二终端,实现第一终端和第二终端之间的部分同屏,从而满足了用户仅在第二终端上同屏部分的用户需求,提高了终端的智能性及用户使用满意度。In the same screen method and terminal provided by the embodiments of the present invention, the video sent by the first terminal to the second terminal is the original data stream, not the data stream formed by the screenshot encoding of the first terminal; Consume system resources and cause busyness, so as to avoid undesired phenomena such as the same screen freeze caused by system resource shortage of the first terminal; secondly, since the original data stream is transmitted, the video resolution of the data stream is not limited to the first terminal the display resolution of the terminal, so that the second terminal can obtain a better display effect; again, this allows the first terminal to transmit part of the displayed data stream to the second terminal, so as to realize the part between the first terminal and the second terminal. The same screen is used, thereby meeting the user requirement that the user only uses the same screen part on the second terminal, and improving the intelligence of the terminal and the user satisfaction.
附图说明Description of drawings
图1为本发明实施例提供的第一种同屏方法的流程示意图;1 is a schematic flowchart of a first method for co-screening provided by an embodiment of the present invention;
图2为本发明实施例提供的第二种同屏方法的流程示意图;FIG. 2 is a schematic flowchart of a second same-screen method according to an embodiment of the present invention;
图3为本发明实施例提供的第三种同屏方法的流程示意图;3 is a schematic flowchart of a third method for co-screening provided by an embodiment of the present invention;
图4为本发明实施例提供的第一终端和第二终端之间的能力协商流程示意图;FIG. 4 is a schematic flowchart of capability negotiation between a first terminal and a second terminal according to an embodiment of the present invention;
图5为本发明实施例提供的第一种终端的结构示意图;FIG. 5 is a schematic structural diagram of a first terminal according to an embodiment of the present invention;
图6为本发明实施例提供的第二种终端的结构示意图。FIG. 6 is a schematic structural diagram of a second terminal according to an embodiment of the present invention.
具体实施方式Detailed ways
以下结合说明书附图及具体实施例对本发明的技术方案做进一步的详细阐述。The technical solutions of the present invention will be further elaborated below with reference to the accompanying drawings and specific embodiments of the description.
实施例一:Example 1:
如图1所示,本实施例提供一种同屏方法,所述方法包括:As shown in FIG. 1 , this embodiment provides a method for sharing a screen, and the method includes:
步骤S110:第一终端与第二终端建立同屏连接;Step S110: the first terminal establishes a same-screen connection with the second terminal;
步骤S120:选择至少一路原始数据流,利用所述同屏连接发送给第二终端;Step S120: Select at least one original data stream, and send it to the second terminal by using the same-screen connection;
其中,所述原始数据流用于供第二终端输出,从而与第一终端实现同屏。Wherein, the original data stream is used for output by the second terminal, so as to realize the same screen with the first terminal.
本实施例所述第一终端和所述第二终端均可为有线终端,也可以为移动终端;所述第一终端和所述第二终端均可为手机、平板电脑或可穿戴式设备等。在本实施例中所述同屏方法可为无线同屏方法,即为第一终端和第二终端都是无线设备,传输的数据流采用无线传输进行传输的。Both the first terminal and the second terminal in this embodiment can be wired terminals or mobile terminals; both the first terminal and the second terminal can be mobile phones, tablet computers, or wearable devices, etc. . In this embodiment, the same-screen method may be a wireless same-screen method, that is, the first terminal and the second terminal are both wireless devices, and the transmitted data stream is transmitted by wireless transmission.
所述第一终端和所述第二终端之间建立的同屏连接可包括基于无线网路开发WFD协议建立的同屏连接。所述第一终端可为支持WiFi直连的终端;所述第二终端可为支持WiFi显示的终端。在本实施例中所述第一终端可为进行同屏的发送端;所述第二终端可为进行同屏的接收端。The same-screen connection established between the first terminal and the second terminal may include a same-screen connection established based on the wireless network development WFD protocol. The first terminal may be a terminal supporting WiFi direct connection; the second terminal may be a terminal supporting WiFi display. In this embodiment, the first terminal may be a sending end that performs the same screen; the second terminal may be a receiving end that performs the same screen.
所述原始数据流可包括原始视频流等信息。所述原始数据流包括所述第一终端当前显示的部分显示数据流。在步骤S120中,所述第一终端向第二终端传输的原始数据流,而非对第一终端进行截屏编码形成的数据流。这样的话,第一终端就不用对第一终端的显示屏进行截屏,也不用对截屏进行编码,从而降低了第一终端因为截屏和编码消耗的系统资源,从而减少了第一终端的资源消耗,减少了第一终端因为资源消耗导致同屏卡顿等故障现象。The original data stream may include information such as an original video stream. The original data stream includes a partial display data stream currently displayed by the first terminal. In step S120, the original data stream transmitted by the first terminal to the second terminal is not a data stream formed by performing screenshot encoding on the first terminal. In this way, the first terminal does not need to take a screenshot of the display screen of the first terminal, nor does it need to encode the screenshot, thereby reducing the system resources consumed by the first terminal due to the screenshot and encoding, thereby reducing the resource consumption of the first terminal. It reduces the failure phenomenon of the first terminal that causes the same screen to freeze due to resource consumption.
同时这个时候,第二终端接收到的是原始数据流,并非截屏编码的数据,从而不会局限于第一终端的显示分辨率,从而能够使得第二终端能够提供更好的视频输出效果。At the same time, at this time, the second terminal receives the original data stream, not the screen-encoded data, so it is not limited to the display resolution of the first terminal, so that the second terminal can provide better video output effects.
此外,由于本实施例中所述第一终端是将原始数据流发送给第二终端,这样显示在第一终端上原本不想发送给第二终端的信息就不会发送给第二终端,从而减少了其他信息的干扰,同时避免了第一终端上显示的信息被泄露。例如,第一终端和第三终端在进行视频通话,在第一终端上除了显示视频通话显示的视频之外,还显示第一终端桌面上的各个文件。若采用截屏编码的方式形成数据流发送给第二终端,这样第二终端不仅可以看到视频通话的信息,还将看到第一终端上的桌面上的文件信息。此外,若此时,用户仅想要将第三视频发送的视频发送给第二终端,若采用西现有截屏编码的方式,显然很难以实现,而在本实施例中仅需将第三终端发送给第一终端的原始数据流转发给第一终端,就能轻易的实现用户的需求,提高了用户使用满意度。In addition, since the first terminal in this embodiment sends the original data stream to the second terminal, the information displayed on the first terminal that was originally not intended to be sent to the second terminal will not be sent to the second terminal, thereby reducing the number of The interference of other information is avoided, and the information displayed on the first terminal is avoided from being leaked. For example, when the first terminal and the third terminal are in a video call, in addition to the video displayed by the video call, the first terminal also displays various files on the desktop of the first terminal. If a data stream is formed and sent to the second terminal by means of screenshot encoding, the second terminal can not only see the information of the video call, but also see the file information on the desktop of the first terminal. In addition, if the user only wants to send the video sent by the third video to the second terminal at this time, it is obviously difficult to achieve this by using the existing screen-shot encoding method. In this embodiment, only the third terminal needs to be sent. The original data stream sent to the first terminal is forwarded to the first terminal, so that the user's requirement can be easily fulfilled, and the user satisfaction is improved.
所述方法还包括:The method also includes:
接收用户指示:Receive user instructions:
所述第一终端选择至少一路原始数据流发送给第二终端,包括:The first terminal selects at least one original data stream to send to the second terminal, including:
基于所述用户指示,选择至少一路所述原始数据流发送给所述第二终端。Based on the user instruction, at least one of the original data streams is selected and sent to the second terminal.
所述用户指示可包括检测用户输入选择哪一个或哪几个原始数据流。这样方便用户控制同屏的视频。所述步骤S120可包括:选择所述第一终端的本地数据流和/或接收到远端设备发送的远端数据流发送给所述第二终端。The user indication may include detecting which raw data stream or streams are selected by the user input. This is convenient for users to control the video on the same screen. The step S120 may include: selecting a local data stream of the first terminal and/or receiving a remote data stream sent by a remote device and sending it to the second terminal.
例如第一终端在与第三终端进行视频通话,这个时候所述第一终端会自行采集形成一个本地视频,同时第一终端还会接收第三终端采集并发送的远端视频。在步骤S120中发送给第一终端的原始数据流可以为第一终端自行采集的本地视频,也可以是从第三终端接收的远端视频。For example, the first terminal is in a video call with the third terminal. At this time, the first terminal will collect and form a local video by itself, and at the same time, the first terminal will also receive the remote video collected and sent by the third terminal. The original data stream sent to the first terminal in step S120 may be the local video collected by the first terminal itself, or may be the remote video received from the third terminal.
若将本实施例中所述的视频同屏方法应用到视频通话过程中,就可以利用手机进行视频通话获得视频同屏到屏幕较大的平板电脑或笔记本电脑等大屏设备上,以获得视频通话的更优体验。If the method for sharing video on the screen described in this embodiment is applied to the process of a video call, it is possible to use a mobile phone to make a video call to obtain a video on the same screen and transfer it to a large-screen device such as a tablet computer or a notebook computer with a larger screen to obtain a video on the same screen. A better experience for calls.
如图2所示,在步骤S120之前,所述方法还包括:As shown in FIG. 2, before step S120, the method further includes:
步骤S111:所述第一终端向发送确定所述第二终端是否支持N路数据流传输的询问;其中,所述N为不小于2的整数;Step S111: the first terminal sends a query to determine whether the second terminal supports N-channel data stream transmission; wherein, the N is an integer not less than 2;
步骤S112:接收所述第二终端基于所述询问发送的反馈信息;Step S112: Receive feedback information sent by the second terminal based on the query;
所述步骤S120可包括:The step S120 may include:
在所述反馈信息表明所述第二终端支持N路数据流传输时,选择M路原始数据流发送给所述第二终端;其中,所述M为不大于所述N的正整数。When the feedback information indicates that the second terminal supports transmission of N channels of data streams, M channels of original data streams are selected and sent to the second terminal; wherein, the M is a positive integer not greater than the N.
在本实施例中所述第一终端将会与第二终端进行能力协商,在能力协商的过程中,若所述第一终端需要向第二终端发送2个或2个以上的数据流,需要确认第二终端是否能够同时接收两个或两个以上的数据流。In this embodiment, the first terminal will perform capability negotiation with the second terminal. In the process of capability negotiation, if the first terminal needs to send two or more data streams to the second terminal, it needs to Confirm whether the second terminal can receive two or more data streams at the same time.
所述反馈信息包括所述第二终端接收N路数据流传输的端口参数;The feedback information includes port parameters for receiving, by the second terminal, N data stream transmissions;
所述步骤S120可包括:根据所述端口参数,将所述M路原始数据流发送给所述第二终端。The step S120 may include: sending the M channels of original data streams to the second terminal according to the port parameter.
所述端口参数可包括实时传输端口的端口信息。例如,所述N等于2,所述端口参数可包括rtp-port0和rtp-port1的端口参数。所述rtp-port0为实时传输端口0,所述rtp-port1为实时传输端口1。The port parameters may include port information of the real-time transmission port. For example, the N is equal to 2, and the port parameters may include port parameters of rtp-port0 and rtp-port1. The rtp-port0 is the real-time transmission port 0, and the rtp-port1 is the real-time transmission port 1.
在本实时例中所述N为不小于2的整数时,说明所述第二终端为能够支持多路数据流实时的同时传输。这样的话,所述第二终端可能够同时接收多路原始数据流并输出多路原始数据流的输出。In this real-time example, when N is an integer not less than 2, it means that the second terminal is capable of supporting real-time simultaneous transmission of multiple data streams. In this case, the second terminal may be capable of simultaneously receiving multiple original data streams and outputting the output of multiple original data streams.
所述方法还包括:The method also includes:
基于所述端口参数,进行会话协商并建立进行M路原始数据流传输的传输会话;Based on the port parameter, perform session negotiation and establish a transmission session for M-channel original data stream transmission;
所述步骤S120具体包括:基于所述传输会话,向第二终端发送所述M路原始数据流。The step S120 specifically includes: based on the transmission session, sending the M channels of original data streams to the second terminal.
在本实施例中为了方便数据流的传输,在本实施例中还需要建立传输会话,在本实时例中可能涉及多路原始数据流的传输,则需要建立传输会话。由于涉及多路原始数据流则将建立多个传输会话。In this embodiment, in order to facilitate the transmission of data streams, a transmission session needs to be established in this embodiment. In this real-time example, the transmission of multiple original data streams may be involved, and a transmission session needs to be established. Since multiple original data streams are involved, multiple transmission sessions will be established.
总之,本实施例中所述同屏方法,改变了现有技术中截屏编码发送端的显示屏幕发送给接收端的同屏方式,减少了同屏的发送端的系统消耗,提高了同屏效果并能够实现部分同屏,满足了在同屏过程中用户同屏需求。In a word, the same-screen method described in this embodiment changes the same-screen method in the prior art in which the display screen of the screen-capture encoding sender is sent to the receiver, reduces the system consumption of the sender of the same-screen, improves the same-screen effect, and can achieve Part of the same screen, to meet the needs of users on the same screen in the process of the same screen.
实施例二:Embodiment 2:
如图3所示,本实施例提供一种同屏方法,所述方法包括:As shown in FIG. 3 , this embodiment provides a method for sharing a screen, and the method includes:
步骤S210:第二终端与第一终端建立同屏连接;Step S210: establishing a same-screen connection between the second terminal and the first terminal;
步骤S220:通过所述同屏连接,接收所述第一终端发送的至少一路原始数据流;Step S220: receiving at least one original data stream sent by the first terminal through the same-screen connection;
步骤S230:显示所述原始数据流。Step S230: Display the original data stream.
本实施例所述方法同屏方法可为前述的无线同屏方法,在本实施例中可为应用于同屏方法中接收端中的方法。所述第一终端为同屏过程中的数据流的发送端,所述第二终端为接收所述数据流的接收端。The method of the same screen method described in this embodiment may be the aforementioned wireless same screen method, and in this embodiment, it may be a method applied to the receiving end of the same screen method. The first terminal is the sending end of the data stream in the process of the same screen, and the second terminal is the receiving end that receives the data stream.
在本实施例中第一终端和所述第二终端建立同屏连接,例如基于WFD协议建立的同屏连接。In this embodiment, the first terminal and the second terminal establish a same-screen connection, for example, a same-screen connection established based on the WFD protocol.
所述步骤S220中第二终端从第一终端接收的数据流为原始数据流,而非第一终端截屏编码之后的数据流,这样第二终端在步骤S230中显示的就是原始数据流,从而第二终端来看数据流的视频分辨率不局限于第一终端的屏幕分辨率,能够提高第二终端的显示效果;与此同时,由于第二终端接收的是原始数据流,不会因为第一终端的系统繁忙导致的同屏卡顿等不良现象。In the step S220, the data stream received by the second terminal from the first terminal is the original data stream, not the data stream after screen capture and encoding by the first terminal, so that what the second terminal displays in step S230 is the original data stream. The video resolution of the data stream viewed by the second terminal is not limited to the screen resolution of the first terminal, which can improve the display effect of the second terminal; at the same time, since the second terminal receives the original data stream, The system of the terminal is busy, and the same screen freezes and other undesirable phenomena.
如图4所示,所述方法还包括:As shown in Figure 4, the method further includes:
步骤S211:接收所述第一终端确定所述第二终端是否支持N路数据流传输的询问;所述N为不小于2的整数;Step S211: Receive an inquiry from the first terminal to determine whether the second terminal supports transmission of N data streams; the N is an integer not less than 2;
步骤S212:基于所述询问,根据所述第二终端的能力参数形成反馈信息;Step S212: Based on the inquiry, form feedback information according to the capability parameter of the second terminal;
步骤S213:向所述第一终端发送所述反馈信息。Step S213: Send the feedback information to the first terminal.
在本实施例中第一终端和第二终端将进行能力协商,这个时候所述第一终端会向第二终端发送询问,询问第二终端是否支持2路或2路以上的数据流传输。在步骤S212所述第二终端将会响应所述询问,根据第二终端自身的能力参数,形成响应所述询问的反馈信息,在步骤S213中将第一终端发送所述反馈信息。In this embodiment, the first terminal and the second terminal will perform capability negotiation. At this time, the first terminal will send an inquiry to the second terminal to inquire whether the second terminal supports the transmission of two or more data streams. In step S212, the second terminal will respond to the inquiry, form feedback information in response to the inquiry according to the capability parameter of the second terminal itself, and in step S213, the first terminal will send the feedback information.
通过询问,方便第一终端确定是否可同时向第二终端发送2路或2路以上的原始数据流从而进行多路数据流的同屏。Through the inquiry, it is convenient for the first terminal to determine whether two or more original data streams can be sent to the second terminal at the same time, so as to perform the same screen of multiple data streams.
在所述第二终端支持N路数据流传输时,所述反馈信息包括支持N路数据流传输的端口参数。When the second terminal supports N-channel data stream transmission, the feedback information includes port parameters supporting N-channel data stream transmission.
这些端口参数可为作为发送所述原始数据流的端口目的地址,这样的话,方便第一终端发送原始数据流。These port parameters may be the destination address of the port for sending the original data stream, in this case, it is convenient for the first terminal to send the original data stream.
所述方法还包括:与所述第一终端进行会话协商并建立进行M路原始数据流传输的传输会话;其中,所述M为不大于N的正整数;The method further includes: conducting session negotiation with the first terminal and establishing a transmission session for transmitting M channels of original data streams; wherein, M is a positive integer not greater than N;
所述步骤S220可包括:The step S220 may include:
基于所述传输会话,接收所述第一终端发送的原始数据流。Based on the transmission session, the original data stream sent by the first terminal is received.
在本实施例中所述第二终端还会第一终端进行会话,基于传输会话,接收第一终端发送的原始数据流,这样能够保证更顺畅的进行原始数据流的传输。In this embodiment, the second terminal also conducts a session with the first terminal, and receives the original data stream sent by the first terminal based on the transmission session, which can ensure smoother transmission of the original data stream.
实施例三:Embodiment three:
如图5所示,本实施例提供一种终端,所述终端为第一终端;所述第一终端包括:As shown in FIG. 5 , this embodiment provides a terminal, where the terminal is a first terminal; the first terminal includes:
第一连接单元110,用于与第二终端建立同屏连接;a first connection unit 110, configured to establish a same-screen connection with the second terminal;
第一发送单元120,用于选择至少一路原始数据流,利用所述同屏连接发送给第二终端;a first sending unit 120, configured to select at least one original data stream, and send it to the second terminal by using the same-screen connection;
其中,所述原始数据流用于供第二终端输出,从而与第一终端实现同屏。Wherein, the original data stream is used for output by the second terminal, so as to realize the same screen with the first terminal.
本实施例所述的第一终端包括的第一连接单元110可包括通信接口,所述通信接口可包括有线接口或无线接口;所述无线接口可包括收发天线等。The first connection unit 110 included in the first terminal in this embodiment may include a communication interface, and the communication interface may include a wired interface or a wireless interface; the wireless interface may include a transceiver antenna and the like.
所述第一发送单元120的硬件结构也可以包括通信接口,能够用于向第二终端发送数据流的发送接口,例如发送天线,所述发送天线具体可为WiFi天线等。The hardware structure of the first sending unit 120 may also include a communication interface, a sending interface that can be used to send a data stream to the second terminal, such as a sending antenna, and the sending antenna may specifically be a WiFi antenna or the like.
本实施例所述的第一终端可为手机、平板电脑或可穿戴式设备等电子设备,能够直接向第二终端发送进行同屏的原始数据流,而非第一终端显示后的截屏编码形成的数据流,第一终端进行同屏处理的操作少、消耗的系统资源少、同屏效果好的特点。The first terminal described in this embodiment may be an electronic device such as a mobile phone, a tablet computer, or a wearable device, which can directly send the original data stream for the same screen to the second terminal, instead of the screen shot encoding after the first terminal is displayed. The first terminal has the characteristics of less operation on the same screen, less consumption of system resources, and good effect on the same screen.
作为本实施例的进一步改进,所述第一发送单元120,用于选择所述第一终端的本地数据流和/或接收到远端设备发送的远端数据流发送给所述第二终端。As a further improvement of this embodiment, the first sending unit 120 is configured to select a local data stream of the first terminal and/or receive a remote data stream sent by a remote device and send it to the second terminal.
本实施例中所述第一发送单元120发送的原始数据流可为第一终端的本地数据流,也可以是第一终端从远端设备接收的远端数据流等。例如,第一终端与第三终端在进行视频通话,视频通话过程中形成的数据流可包括本地采集的本地数据流,也包括从第三终端接收的远端数据流。这个时候,所述第一发送单元120可以将所述本地数据流和远端数据流中的至少一个发送给第二终端,进行同屏。In this embodiment, the original data stream sent by the first sending unit 120 may be a local data stream of the first terminal, or a remote data stream received by the first terminal from a remote device, or the like. For example, the first terminal and the third terminal are in a video call, and the data stream formed during the video call may include a local data stream collected locally, and also include a remote data stream received from the third terminal. At this time, the first sending unit 120 may send at least one of the local data stream and the remote data stream to the second terminal to perform the same screen.
所述第一发送单元120,用于向发送确定所述第二终端是否支持N路数据流传输的询问;其中,所述N为不小于2的整数;The first sending unit 120 is configured to send a query to determine whether the second terminal supports N-channel data stream transmission; wherein, the N is an integer not less than 2;
所述第一终端还包括:The first terminal also includes:
第一接收单元,用于接收所述第二终端基于所述询问发送的反馈信息;a first receiving unit, configured to receive feedback information sent by the second terminal based on the inquiry;
所述第一发送单元120,还用于在所述反馈信息表明所述第二终端支持N路数据流传输时,选择M路原始数据流发送给所述第二终端;其中,所述M为不大于所述N的正整数。The first sending unit 120 is further configured to select M channels of original data streams to send to the second terminal when the feedback information indicates that the second terminal supports transmission of N channels of data streams; wherein, the M is A positive integer not greater than said N.
在本实施例中所述第一终端还包括第一接收单元,所述第一接收单元可包括接收接口,能够接收第二终端发送的反馈信息。所述第一发送单元120还将用于将确定第二终端能够同时支持N路数据流传输的询问发送给第二终端,同时第一发送单元120第二终端对所述询问的答复形成的反馈信息,完成与第二终端的能力告知,从而确定是否能够向第二终端同时发送两路以上的原始数据流。In this embodiment, the first terminal further includes a first receiving unit, and the first receiving unit may include a receiving interface capable of receiving feedback information sent by the second terminal. The first sending unit 120 is also used to send a query for determining that the second terminal can simultaneously support N-channel data stream transmission to the second terminal, and at the same time, the first sending unit 120 and the feedback formed by the second terminal's reply to the query information to complete the capability notification with the second terminal, so as to determine whether or not two or more original data streams can be sent to the second terminal at the same time.
所述反馈信息包括所述第二终端接收N路数据流传输的端口参数;The feedback information includes port parameters for receiving, by the second terminal, N data stream transmissions;
所述第一发送单元120,用于根据所述端口参数,将所述M路原始数据流发送给所述第二终端。The first sending unit 120 is configured to send the M channels of original data streams to the second terminal according to the port parameter.
在本实施例中所述反馈信息中还包括端口参数,这样的话,方便所述第一发送单元120确定通过哪些端口向第二终端发送所述原始数据流。In this embodiment, the feedback information further includes a port parameter. In this case, it is convenient for the first sending unit 120 to determine through which ports to send the original data stream to the second terminal.
此外,所述第一终端还包括:In addition, the first terminal further includes:
协商单元,用于基于所述端口参数,进行会话协商并建立进行M路原始数据流传输的传输会话;a negotiation unit, configured to perform session negotiation and establish a transmission session for M-channel original data stream transmission based on the port parameter;
所述第一发送单元120,用于基于所述传输会话,向第二终端发送所述M路原始数据流。The first sending unit 120 is configured to send the M channels of original data streams to the second terminal based on the transmission session.
在本实施例中所述第一终端还包括协商单元,所述协商单元可包括通信接口,通过与第二终端的信息交互,进行原始数据流传输的传输会话。In this embodiment, the first terminal further includes a negotiation unit, and the negotiation unit may include a communication interface, and performs a transmission session of original data stream transmission through information interaction with the second terminal.
所述第一发送单元120在协商单元与第二终端完成会话建立之后,在基于传输会话传输所述M路原始数据流,简便的实现了原始数据流的传输。After the negotiation unit and the second terminal complete the session establishment, the first sending unit 120 transmits the M channels of original data streams based on the transmission session, thereby simply realizing the transmission of the original data streams.
总之,本实施例所述第一终端可为实现实施例一中所述同屏方法的硬件结构,具有同屏效果好、第一终端的操作简单及系统资源消耗少等特点。In a word, the first terminal in this embodiment may be a hardware structure for implementing the same screen method described in the first embodiment, and has the characteristics of good screen effect, simple operation of the first terminal, and low consumption of system resources.
实施例四:Embodiment 4:
如图6所示,本实施例提供另一种终端,所述终端为第二终端;所述第二终端包括:As shown in FIG. 6 , this embodiment provides another terminal, and the terminal is a second terminal; the second terminal includes:
第二连接单元210,用于与第一终端建立同屏连接;The second connection unit 210 is configured to establish a same-screen connection with the first terminal;
第二接收单元220,用于通过所述同屏连接,接收所述第一终端发送的至少一路原始数据流;The second receiving unit 220 is configured to receive at least one original data stream sent by the first terminal through the same-screen connection;
显示单元230,用于显示所述原始数据流。The display unit 230 is configured to display the original data stream.
本实施例第二连接单元210与前述第一终端中的第一连接单元的结构类似,也可以包括通信接口,能够用于第一终端建立连接,该连接用于进行第一终端和第二终端之间的同屏,故可称为同屏连接。The structure of the second connection unit 210 in this embodiment is similar to that of the first connection unit in the aforementioned first terminal, and may also include a communication interface, which can be used for the first terminal to establish a connection, and the connection is used for connecting the first terminal and the second terminal. The same screen between them can be called the same screen connection.
所述第二接收单元220可包括接收接口,例如接收天线,能够接收所述第一终端发送的一路或多路原始数据流。The second receiving unit 220 may include a receiving interface, such as a receiving antenna, capable of receiving one or more original data streams sent by the first terminal.
所述显示单元230可包括各种显示屏;所述显示屏可包括液晶显示屏、电子墨水显示屏、投影显示屏或有机发光二极管OLED显示屏等。所述显示屏可用于显示所述数据流,从而实现与第一终端显示同样的画面,实现同屏。The display unit 230 may include various display screens; the display screens may include a liquid crystal display screen, an electronic ink display screen, a projection display screen, an organic light emitting diode OLED display screen, and the like. The display screen can be used to display the data stream, so as to realize the display of the same picture as that of the first terminal and realize the same screen.
在本实施例中所述第二终端可为实现实施例二所述同屏方法的硬件结构,能够减少同屏卡顿等不良显现,提供同屏效果。In this embodiment, the second terminal may be a hardware structure for implementing the same-screen method described in Embodiment 2, which can reduce bad displays such as stuck on the same screen and provide the same-screen effect.
进一步地,所述第二接收单元220,用于接收所述第一终端确定所述第二终端是否支持N路数据流传输的询问;所述N为不小于2的整数;Further, the second receiving unit 220 is configured to receive a query from the first terminal to determine whether the second terminal supports N-channel data stream transmission; the N is an integer not less than 2;
所述第二终端还包括:The second terminal also includes:
形成单元,用于基于所述询问,根据所述第二终端的能力参数形成反馈信息;a forming unit, configured to form feedback information according to the capability parameter of the second terminal based on the query;
第二发送单元,用于向所述第一终端发送所述反馈信息。A second sending unit, configured to send the feedback information to the first terminal.
在本实施例中所述第二终端还包括形成单元,所述形成单元可包括处理器或处理电路。所述处理器可包括中央处理器、微处理器、数字信号处理器、应用处理器或可编程阵列等。所述处理电路可包括专用集成电路等。In this embodiment, the second terminal further includes a forming unit, and the forming unit may include a processor or a processing circuit. The processor may include a central processing unit, a microprocessor, a digital signal processor, an application processor, a programmable array, or the like. The processing circuit may include an application specific integrated circuit or the like.
在本实施例所述形成单元根据所述询问,查询所述第二终端的能力,形成对应的反馈信息。最终所述第二终端的第二发送单元将所述反馈信息发送给第一终端,从而告知第一终端的第二终端的能力,方便第一终端决策向第二终端传输一路或多路原始数据流。In this embodiment, the forming unit inquires about the capability of the second terminal according to the inquiry, and forms corresponding feedback information. Finally, the second sending unit of the second terminal sends the feedback information to the first terminal, so as to inform the first terminal of the capability of the second terminal, and it is convenient for the first terminal to decide to transmit one or more channels of original data to the second terminal. flow.
所述第二发送单元可包括发送接口,所述发送接口可为有线接口或无线接口,所述无线接口可包括发送天线。所述发送天线可包括WiFi天线等。The second transmitting unit may include a transmitting interface, which may be a wired interface or a wireless interface, and the wireless interface may include a transmitting antenna. The transmitting antenna may include a WiFi antenna or the like.
在本实施例中,在所述第二终端支持N路数据流传输时,所述反馈信息包括支持N路数据流传输的端口参数。In this embodiment, when the second terminal supports N-channel data stream transmission, the feedback information includes port parameters supporting N-channel data stream transmission.
在所述反馈信息中携带端口参数,方便所述第一终端根据所述端口参数发送所述原始数据流等。The port parameter is carried in the feedback information, which is convenient for the first terminal to send the original data stream and the like according to the port parameter.
此外,所述第二终端还包括:In addition, the second terminal further includes:
会话单元,用于与所述第一终端进行会话协商并建立进行M路原始数据流传输的传输会话;其中,所述M为不大于N的正整数;a session unit, configured to perform session negotiation with the first terminal and establish a transmission session for M-channel original data stream transmission; wherein, M is a positive integer not greater than N;
所述第二接收单元220,具体用于基于所述传输会话,接收所述第一终端发送的原始数据流。The second receiving unit 220 is specifically configured to receive the original data stream sent by the first terminal based on the transmission session.
在本实施例中所述会话单元可包括通信接口和处理器或处理电路,通信接口用于第一终端进行信息交互,所述处理器或处理电路可用于形成交互的信息和解析接收的信息完成所述传输会话的建立。所述第二接收单元220基于传输会话能够简便的快熟的原始数据流,从而很好的实现所述同屏。In this embodiment, the conversation unit may include a communication interface and a processor or a processing circuit, the communication interface is used for the first terminal to perform information interaction, and the processor or processing circuit may be used to form interactive information and parse the received information to complete establishment of the transport session. The second receiving unit 220 is based on the original data stream that can be easily and quickly processed by the transmission session, so that the same screen can be well realized.
总之本实施例提供的第二终端能够为实现实施例二所述同屏方法的硬件结构,能够提高同屏效果及用户使用满意度。In a word, the second terminal provided in this embodiment can be a hardware structure for implementing the same-screen method described in Embodiment 2, and can improve the same-screen effect and user satisfaction.
以下结合上述任意实施例,提供几个具体示例。Several specific examples are provided below in conjunction with any of the foregoing embodiments.
示例一:Example one:
本示例的工作场景可为,在视频通话时,将视频通话的具体内容包括本地数据流和远端的数据流通过同屏协议在大屏上展示。The working scenario of this example may be that, during a video call, the specific content of the video call, including the local data stream and the remote data stream, is displayed on the large screen through the same-screen protocol.
本示例所述的同屏方法包括:The same screen method described in this example includes:
第1步:在进行视频通话的第一终端上搜索当前的局域网内的设备,找到支持同屏的接收端设备;该接收端设备即为前述的第二终端。Step 1: Search for devices in the current local area network on the first terminal for video calling, and find a receiving end device that supports the same screen; the receiving end device is the aforementioned second terminal.
第2步:基于用户指示,选择将视频通话的第一终端和其中的一个接收端设备建立同屏连接。Step 2: Based on the user's instruction, choose to establish a same-screen connection between the first terminal of the video call and one of the receiving end devices.
第3步:在建立同屏连接后,选择一路第一终端上的视频通话数据流送给接收端设备输出。Step 3: After establishing the same-screen connection, select a video call data stream on the first terminal to send to the receiving end device for output.
第4步:基于用户指示可以选择对数据流进行切换,选择不同的数据流,包括本地数据流或者远端数据流;也可以基于用户指示,选择将两路的数据流同时送给接收端设备,接收端设备在接收到两路数据流后,需要同时进行两路数据流的输出。Step 4: Based on the user's instruction, you can choose to switch the data stream and select different data streams, including the local data stream or the remote data stream; you can also choose to send the two data streams to the receiving end device at the same time based on the user's instruction. , after receiving the two data streams, the receiving end device needs to output the two data streams at the same time.
第5步:基于用户指示,终止视频通话或者同屏,结束数据流的传输。Step 5: Based on the user's instruction, terminate the video call or the same screen, and end the transmission of the data stream.
在上述步骤中,如果当前同屏的数据流是单一的数据流,如本地数据流或者远端数据流,则可以采用现有的同屏协议,只需要终端从视频通话获取实时传输(Real TimeProtocol,RTP)数据流后通过同屏协议传输给接收端。In the above steps, if the current data stream on the same screen is a single data stream, such as a local data stream or a remote data stream, the existing on-screen protocol can be used, and the terminal only needs to obtain the real-time transmission (Real Time Protocol) from the video call. , RTP) data stream is transmitted to the receiving end through the same screen protocol.
示例二:Example two:
在本示例中,提供同时传输两路数据流,进行两路数据流同屏的方法。这个时候第一终端和第二终端进行同屏的可以在现有的同屏协议的基础上做如下的改进。以无线显示Miracast协议为例,包括两种场景:第一种场景下将两路数据流在同一个接收端上输出;第二种场景是将两路数据流在不同的接收端设备上输出。In this example, a method of simultaneously transmitting two data streams and performing the same screen of the two data streams is provided. At this time, when the first terminal and the second terminal perform the same screen, the following improvements can be made on the basis of the existing same screen protocol. Taking the wireless display Miracast protocol as an example, it includes two scenarios: in the first scenario, two data streams are output on the same receiver; in the second scenario, the two data streams are output on different receiver devices.
第一种场景下,修改Miracast协议的流程如下:发送端和接收端完成M1或M2消息后,终端给发送端发送M3消息时,增加一个询问当前接收端是否支持两路数据流的方法参数。该用于询问的参数可为:wfd_supported_second_video。这里的发送端即为前述第一终端,接收端即为前述的第二终端。In the first scenario, the process of modifying the Miracast protocol is as follows: After the sender and receiver complete the M1 or M2 message, when the terminal sends an M3 message to the sender, a method parameter is added to ask whether the current receiver supports two data streams. The parameter for query can be: wfd_supported_second_video. The transmitting end here is the aforementioned first terminal, and the receiving end is the aforementioned second terminal.
如果接收端未回复的该字段,则表示接收端不支持两路数据同时传输和显示。If the receiving end does not reply to this field, it means that the receiving end does not support simultaneous transmission and display of two channels of data.
接收端如果同时支持两路数据的解码和显示,则回复的M3中携带的该字段,同时在回复的M3消息中给出wfd-client-rtp-ports的rtp-port0和rtp-port1参数的内容。所述rtp-port0表示实时传输端口0;所述rtp-port1表示实时传输端口1。If the receiving end supports the decoding and display of two channels of data at the same time, this field is carried in the returned M3, and the content of the rtp-port0 and rtp-port1 parameters of wfd-client-rtp-ports is given in the returned M3 message. . The rtp-port0 represents the real-time transmission port 0; the rtp-port1 represents the real-time transmission port 1.
如下表所示:As shown in the table below:
接下来的M4消息中,需要扩展wfd-presentation-url参数中的wfd-url0和wfd-url1,如下表所示In the next M4 message, the wfd-url0 and wfd-url1 in the wfd-presentation-url parameter need to be extended, as shown in the following table
上述表格中的第一接收端为主接收端,所述第二接收端为辅接收端。The first receiving end in the above table is the main receiving end, and the second receiving end is the auxiliary receiving end.
M3或M4消息协商过程完成后,则在第一终端和发送端根据WFD会话建立流程,在M6消息中同时将第二路数据流传送给接收端。这里的第二数据流可为前述多路原始数据流其中的一路。具体的两路数据的解析和展现由接收端负责,打包的RTP流中需要包含数据源的序列参数集(Sequence Parameter Sets,SPS)和图像参数集(Picture Parameter Sets,PPS),这样方便接收端根据所述SPS和PPS解析出数据流并输出对应的视频。After the M3 or M4 message negotiation process is completed, the first terminal and the sender send the second data stream to the receiver simultaneously in the M6 message according to the WFD session establishment process. The second data stream here may be one of the aforementioned multiple original data streams. The parsing and presentation of the specific two-way data is the responsibility of the receiving end. The packaged RTP stream needs to contain the sequence parameter sets (Sequence Parameter Sets, SPS) and picture parameter sets (Picture Parameter Sets, PPS) of the data source, which is convenient for the receiving end. Parse out the data stream according to the SPS and PPS and output the corresponding video.
场景2是将两路数据传递给不同的接收端。Scenario 2 is to transmit two channels of data to different receivers.
发送端在接到接收端的不支持两路数据的M3回复消息后,再次广播发现其他的接收端设备,用户选择第二个接收端设备后和当前的发送端之间建立WFD连接,这样,第二路数据同第一路数据一样使用WFD将数据源传送给第二接收端。该流程相当于进行两次的同屏,也就是在发送端和两个不同的接收端之间分别建立WFD连接,不需要进行协议的修改,具体流程不再赘述。After receiving the M3 reply message that does not support two-way data from the receiving end, the sending end broadcasts to discover other receiving end devices again. After the user selects the second receiving end device, a WFD connection is established with the current sending end. In this way, the first The second channel of data uses WFD to transmit the data source to the second receiving end in the same way as the first channel of data. This process is equivalent to performing the same screen twice, that is, establishing a WFD connection between the sending end and two different receiving ends, respectively, and does not need to modify the protocol, and the specific process will not be repeated.
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined, or Can be integrated into another system, or some features can be ignored, or not implemented. In addition, the coupling, or direct coupling, or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be electrical, mechanical or other forms. of.
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元,即可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The unit described above as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place or distributed to multiple network units; Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本发明各实施例中的各功能单元可以全部集成在一个处理模块中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may all be integrated into one processing module, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integration The unit can be implemented either in the form of hardware or in the form of hardware plus software functional units.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by program instructions related to hardware, the aforementioned program can be stored in a computer-readable storage medium, and when the program is executed, execute Including the steps of the above-mentioned method embodiment; and the aforementioned storage medium includes: a mobile storage device, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk and other various A medium on which program code can be stored.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention. should be included within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610077632.7A CN107040498B (en) | 2016-02-03 | 2016-02-03 | Same-screen method and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610077632.7A CN107040498B (en) | 2016-02-03 | 2016-02-03 | Same-screen method and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107040498A CN107040498A (en) | 2017-08-11 |
CN107040498B true CN107040498B (en) | 2020-09-25 |
Family
ID=59532814
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610077632.7A Active CN107040498B (en) | 2016-02-03 | 2016-02-03 | Same-screen method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107040498B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107465941A (en) * | 2017-09-07 | 2017-12-12 | 北京奇艺世纪科技有限公司 | A kind of Desktop Share video broadcasting method, system and computer system |
CN109068084A (en) * | 2018-08-31 | 2018-12-21 | 努比亚技术有限公司 | Video calling picture display process, mobile terminal and computer readable storage medium |
CN109327728B (en) * | 2018-11-23 | 2021-10-15 | 深圳市鹰硕技术有限公司 | One-to-many same-screen method, device and system, same-screen equipment and storage medium |
WO2020168499A1 (en) * | 2019-02-20 | 2020-08-27 | 深圳市鹰硕技术有限公司 | Screen-sharing teaching method, apparatus and system, and smart device and storage medium |
CN111277807A (en) * | 2020-01-14 | 2020-06-12 | 广东小天才科技有限公司 | A projection implementation method, wearable device, display device and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103648015A (en) * | 2013-11-18 | 2014-03-19 | 乐视致新电子科技(天津)有限公司 | Data display method and apparatus |
CN103856809A (en) * | 2012-12-03 | 2014-06-11 | 中国移动通信集团公司 | Method, system and terminal equipment for multipoint at the same screen |
CN103974062A (en) * | 2013-06-24 | 2014-08-06 | 福州瑞芯微电子有限公司 | Image display device, image display system and image display method |
CN104052788A (en) * | 2013-03-12 | 2014-09-17 | 三星电子株式会社 | Method and device for sharing content |
CN104661085A (en) * | 2013-11-22 | 2015-05-27 | 中兴通讯股份有限公司 | Multi-way wireless display method and device |
-
2016
- 2016-02-03 CN CN201610077632.7A patent/CN107040498B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103856809A (en) * | 2012-12-03 | 2014-06-11 | 中国移动通信集团公司 | Method, system and terminal equipment for multipoint at the same screen |
CN104052788A (en) * | 2013-03-12 | 2014-09-17 | 三星电子株式会社 | Method and device for sharing content |
CN103974062A (en) * | 2013-06-24 | 2014-08-06 | 福州瑞芯微电子有限公司 | Image display device, image display system and image display method |
CN103648015A (en) * | 2013-11-18 | 2014-03-19 | 乐视致新电子科技(天津)有限公司 | Data display method and apparatus |
CN104661085A (en) * | 2013-11-22 | 2015-05-27 | 中兴通讯股份有限公司 | Multi-way wireless display method and device |
Also Published As
Publication number | Publication date |
---|---|
CN107040498A (en) | 2017-08-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112350981B (en) | Method, device and system for switching communication protocol | |
US10009578B2 (en) | Mobile terminal, display apparatus and control method thereof | |
CN107040498B (en) | Same-screen method and terminal | |
US9257097B2 (en) | Remote rendering for efficient use of wireless bandwidth for wireless docking | |
CN103534679B (en) | Method and terminal for media stream sharing | |
US10979900B2 (en) | Information processing device and information processing method | |
US20130139210A1 (en) | Multicasting in a wireless display system | |
US9094527B2 (en) | Seamlessly transferring a communication | |
US9363472B2 (en) | Video injection for video communication | |
WO2019015428A1 (en) | Data transmission method, device, terminal, and computer-readable storage medium | |
US9509947B2 (en) | Method and apparatus for transmitting file during video call in electronic device | |
CN103092552A (en) | Method and system for achieving multi-screen display | |
JP2015084511A (en) | Information processing device, system and program | |
CN104219479A (en) | Video communication service processing method and system | |
CN112929704A (en) | Data transmission method, device, electronic equipment and storage medium | |
KR20150095722A (en) | Method and apparatus for cloud based power management of local network devices | |
WO2017215100A1 (en) | Method and device for video call data processing | |
US9392063B2 (en) | Information processing apparatus that controls transfer of image, control method therefor, and storage medium | |
CN106803917B (en) | Video call method for dual-screen mobile terminal and dual-screen mobile terminal | |
CN114095764B (en) | Screen projection method and electronic device | |
JP2024527153A (en) | COMMUNICATIONS, METHOD FOR ESTABLISHING A DATA CHANNEL, DEVICE AND STORAGE MEDIUM | |
KR102345503B1 (en) | Mediating Method and Computer Readable Recording Medium | |
CN115695928A (en) | Screen projection method and device, electronic equipment and storage medium | |
CN102244822A (en) | Remote broadcast control method in IPTV (Internet Protocol Television) system, device and system thereof | |
CN112995567A (en) | Video call method, device, server 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 |