CN103826157A - SoftAp-based on-screen sharing method and system - Google Patents
SoftAp-based on-screen sharing method and system Download PDFInfo
- Publication number
- CN103826157A CN103826157A CN201410100268.2A CN201410100268A CN103826157A CN 103826157 A CN103826157 A CN 103826157A CN 201410100268 A CN201410100268 A CN 201410100268A CN 103826157 A CN103826157 A CN 103826157A
- Authority
- CN
- China
- Prior art keywords
- transmission end
- softap
- rtsp
- unit
- receiving device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses an on-screen sharing method and system, which establish intranet connection by utilizing the SoftAp network to realize the equal user experience of the wifi-direct. The SoftAp-based on-screen sharing method comprises the following steps that a receiving end device establishes the connection with SoftAp of a transmitting end device; a receiving end RTSP unit of the receiving end device establishes the connection with a transmitting end RTSP unit of the transmitting end device; the receiving end device receives streaming media information of the transmitting end device. By utilizing the technical scheme, the old device with the wifi module not supporting the wifi-direct connection is also capable of establishing the intranet connection aiming to realize the on-screen sharing purpose, and the equal user experience of the wifi-direct is capable of being realized without bringing in too much complex user operations.
Description
Technical field
The present invention relates to the Streaming Media technology of sharing of electronic equipment, particularly a kind of same screen sharing method and system based on SoftAp.
Background technology
Miracast is going through at present one universal and that promote to share technology with screen, is based on wifi-direct agreement and RTSP(Real Time Streaming Protocol, real-time streams transmission) agreement carries out that the mode of real time flow medium relay realizes.Therefore, implement Miracast first-selection and need to guarantee that wifi chip and related software stack support wifi-direct thereof connect.But for some relatively old equipment, its wifi module scarcely supports wifi-direct to connect, therefore want to realize with screen and sharing on these equipment, must provide a kind of realizes for the method that substitutes wifi-direct connection, also need the user's experience of the process that reaches the same with wifi-direct, avoid introducing too much loaded down with trivial details user's operation simultaneously.
Summary of the invention
Technical problem to be solved by this invention is to provide same screen sharing method and the system that a kind of SoftAp of utilization network struction Intranet connects the user's experience that reaches suitable with wifi-direct.
For solving the problems of the technologies described above, the technical solution used in the present invention is as follows:
Based on a same screen sharing method of SoftAp, comprise step:
Receiving device is set up and is connected with the SoftAp of transmission end equipment;
The receiving terminal RTSP unit foundation of receiving device is connected with the RTSP unit, transmission end of transmission end equipment;
Receiving device receives the stream media information from transmission end equipment.
Further, in the described same screen sharing method based on SoftAp, described receiving device is set up and is connected specifically and comprises the steps: with the SoftAp of transmission end equipment
The SoftAp pattern of wifi unit, device start transmission end, transmission end, and SSID is set;
Receiving device starts the above-mentioned SSID of receiving terminal wifi unit scan;
Receiving device proposes SoftAp to transmission end equipment and connects the request of setting up, and transmission end equipment is accepted to connect from the SoftAp of receiving device the request of foundation;
Transmission end device responds receiving device application, provides IP address and the DNS information of SoftAp network to receiving device.
Further, in the described same screen sharing method based on SoftAp, described receiving device receives and specifically comprises step from the stream media information of transmission end equipment:
The RTSP unit, transmission end of transmission end equipment takes out video data from local video system, takes out voice data from local audio system, is packaged into RTSP code stream and shares.
Further, in the described same screen sharing method based on SoftAp, described receiving device receives and also comprises step from the stream media information of transmission end equipment:
Receiving device receives the RTSP code stream from transmission end equipment, and described RTSP is carried out to local decode and broadcasting.
Further, in the described same screen sharing method based on SoftAp, in step " the receiving terminal RTSP unit foundation of receiving device is connected with the RTSP unit, transmission end of transmission end equipment ", the IP address of connection is positioned at the gateway address of SoftAp network, and port numbers is RTSP default port.
Based on a same screen share system of SoftAp, comprise receiving device and transmission end equipment; Receiving device comprises receiving terminal wifi unit and receiving terminal RTSP unit, and transmission end equipment comprises wifi unit, transmission end and RTSP unit, transmission end;
Receiving terminal wifi unit and wifi unit, transmission end connect for set up SoftAp between receiving device and transmission end equipment;
Receiving terminal RTSP unit and RTSP unit, transmission end connect for set up RTSP between receiving device and transmission end equipment;
Receiving device receives the stream media information sending from transmission end equipment.
Further, in the described same screen share system based on SoftAp, transmission end wifi unit starting SoftAp pattern also arranges SSID;
SSID described in receiving terminal wifi unit scan, and
Propose SoftAp connection by receiving device to transmission end equipment and set up request, make transmission end equipment accept to connect from the SoftAp of receiving device the request of foundation, and IP address and the DNS information of SoftAp network are provided to receiving device.
Further, in the described same screen share system based on SoftAp, transmission end equipment also comprises memory cell, for stored video data and voice data; RTSP unit, transmission end comprises coding unit, for transferring video data and voice data from memory cell and being packaged into RTSP code stream.
Further, in the described same screen share system based on SoftAp, receiving device also comprises decoding unit, for the RTSP code stream that receives autobiography sending end equipment is decoded; And
Broadcast unit, for playing the Media Stream through decoding.
Further, in the described same screen share system based on SoftAp, when receiving terminal RTSP unit builds on the connection of RTSP unit, transmission end, the IP address of connection is positioned at the gateway address of SoftAp network, and port numbers is RTSP default port.
After taking technique scheme, the equipment that comparatively old and wifi module does not support wifi-direct to connect also can be set up is enough to realize the Intranet connection of sharing object with screen, and can reach the user suitable with wifi-direct and experience, not need to introduce too much loaded down with trivial details user's operation.
Accompanying drawing explanation
Fig. 1 is the high-level schematic functional block diagram of a kind of same screen share system based on SoftAp in another execution mode of the present invention;
Fig. 2 is the flow chart of a kind of same screen sharing method based on SoftAp in an embodiment of the present invention;
Fig. 3 is the flow chart step by step of a kind of same screen sharing method based on SoftAp in an embodiment of the present invention;
Fig. 4 is another flow chart step by step of a kind of same screen sharing method based on SoftAp in an embodiment of the present invention.
Label declaration:
1-transmission end equipment
2-receiving device
Wifi unit, 11-transmission end
RTSP unit, 12-transmission end
13-memory cell
121-coding unit
21-receiving terminal wifi unit
22-receiving terminal RTSP unit
23-decoding unit
24-broadcast unit
Embodiment
By describing technology contents of the present invention, structural feature in detail, being realized object and effect, below in conjunction with execution mode and coordinate accompanying drawing to be explained in detail.
Referring to Fig. 1, is the high-level schematic functional block diagram of a kind of same screen share system based on SoftAp in another execution mode of the present invention, and in figure, dotted line represents between two functional modules that dotted line connects and has information transfering relation.Described system comprises receiving device 2 and transmission end equipment 1; Receiving device 2 comprises receiving terminal wifi unit 21 and receiving terminal RTSP unit 22, and transmission end equipment 1 comprises wifi unit, transmission end 11 and RTSP unit, transmission end 12; Receiving terminal wifi unit 21 and wifi unit, transmission end 11 connect for set up SoftAp between receiving device 2 and transmission end equipment 1; Receiving terminal RTSP unit 22 and RTSP unit, transmission end 12 connect for set up RTSP between receiving device 2 and transmission end equipment 1; Receiving device 2 receives the stream media information sending from transmission end equipment 1.
Further, in the described same screen share system based on SoftAp, wifi unit, transmission end 11 starts SoftAp pattern and SSID is set; Receiving terminal wifi unit 21 scans above-mentioned SSID; Receiving device 2 proposes SoftAp to transmission end equipment 1 and connects the request of setting up, and transmission end equipment 1 is accepted to connect from the SoftAp of receiving device 2 request of foundation; Transmission end equipment 1 responds receiving device 2 and applies for, IP address and the DNS information of SoftAp network is provided to receiving device 2.
Further, in the described same screen share system based on SoftAp, transmission end equipment 1 also comprises memory cell 13; RTSP unit, transmission end comprises coding unit 121; Memory cell 13 is for stored video data and voice data; Coding unit 121 is for transferring video data and voice data and being packaged into RTSP code stream from memory cell 13.
Further, in the described same screen share system based on SoftAp, receiving device 2 also comprises decoding unit 23 and broadcast unit 24; Decoding unit 23 is for decoding to the RTSP code stream that receives autobiography sending end equipment; Broadcast unit 24 is for playing the Media Stream through decoding.
Further, in the described same screen share system based on SoftAp, when receiving terminal RTSP unit 22 builds on the connection of RTSP unit, transmission end 12, the IP address of connection is positioned at the gateway address of SoftAp network, and port numbers is RTSP default port.
Operation and the principle of native system are described below: first with a concrete case, need between transmission end equipment 1 and receiving device 2, start the occasion with screen application user, the state of wifi unit, its transmission end 11 is switched to SoftAp state by transmission end equipment 1, and the SSID of SoftAp is set to " Direct-softap XXX ", the numeral that wherein XXX is 0-999, receiving terminal wifi unit 21 will rely on the Becon bag from catching to resolve SSID wherein in the air, if around other do not use the same screen of the method to share equipment there is no similar SSID() just since 001, increase progressively if occupied, until there is no occupied numeral.Using numeral name is a kind of simple naming method, also can take in other embodiments other regular naming rules, guarantees not bear the same name.Now receiving device starts with screen and shares, and its wifi scans the SSID based on above-mentioned rule, and this SSID(of the receiving device 2 user clicks on links now wifi of transmission end equipment, in SoftAp pattern, does not arrange password but needs artificial mandate).Whether wifi unit, transmission end 11 receives this connection request, eject and accept request at transmission end equipment 1 interface.If equipment 1 user in transmission end clicks acceptance, actual running background is to allow the other side to be linked to current SoftAp network to carry out network sharing.Immediately, receiving device 2 is applied for IP address and the DNS information in SoftAp network to transmission end equipment 1.In this state, transmission end equipment 1 plays the effect that is equal to gateway, and receiving device 2 plays the effect that is equal to the subset in the gateway network segment of living in.
After completing above-mentioned network connection, transmission end equipment 1 starts respectively RTSP unit, transmission end 12 and receiving terminal RTSP unit 22 with receiving device 2.Video data is taken out in the local display buffer that RTSP unit, transmission end 12 is responsible for from memory cell 13, and taking out voice data in audio system from memory cell 13, coding unit 121 is packaged into video data and voice data RTSP code stream and shares.Receiving terminal RTSP unit 22 is connected to the RTSP server that transmission end equipment 1 sets up, and (IP address is positioned at the gateway address of SoftAp network, port numbers is RTSP default port), receive the RTSP code stream from transmission end equipment 1, decoding unit 23 carries out local decode, and broadcast unit 24 carries out this locality and plays.The same screen that above process completes based on SoftAp pattern is shared.
Referring to Fig. 2, is the flow chart of a kind of same screen sharing method based on SoftAp in an embodiment of the present invention.Described method comprises the steps:
Step S1, receiving device are set up and are connected with the SoftAp of transmission end equipment;
The receiving terminal RTSP unit foundation of step S2, receiving device is connected with the RTSP unit, transmission end of transmission end equipment; The IP address connecting is positioned at the gateway address of SoftAp network, and port numbers is RTSP default port.
Step S3, receiving device receive the stream media information from transmission end equipment.
Further, referring to Fig. 3, is the flow chart step by step of a kind of same screen sharing method based on SoftAp in an embodiment of the present invention, and step S1's is as follows step by step:
The SoftAp pattern of step S11, wifi unit, device start transmission end, transmission end, and SSID is set;
Step S12, receiving device start the above-mentioned SSID of receiving terminal wifi unit scan;
Step S13, receiving device propose SoftAp to transmission end equipment and connect the request of setting up, and transmission end equipment is accepted to connect from the SoftAp of receiving device the request of foundation;
Step S14, transmission end device responds receiving device application, provide IP address and the DNS information of SoftAp network to receiving device.
Further, referring to Fig. 4, is another flow chart step by step of a kind of same screen sharing method based on SoftAp in an embodiment of the present invention; In the described same screen sharing method based on SoftAp, step S3 specifically comprises as follows step by step again:
The RTSP unit, transmission end of step S31, transmission end equipment takes out video data from local video system, takes out voice data from local audio system, is packaged into RTSP code stream and shares.
Step S32, receiving device receive the RTSP code stream from transmission end equipment, and described RTSP is carried out to local decode and broadcasting.
Operation and the principle of this method that is elaborated in concrete case below: first, need between transmission end equipment 1 and receiving device 2, start the occasion with screen application user, the state of wifi unit, its transmission end 11 is switched to SoftAp state by transmission end equipment 1, and the SSID of SoftAp is set to " Direct-softap XXX ", the numeral that wherein XXX is 0-999, receiving terminal wifi unit 21 will rely on the Becon bag from catching to resolve SSID wherein in the air, if around other do not use the same screen of the method to share equipment there is no similar SSID() just since 001, increase progressively if occupied, until there is no occupied numeral.Using numeral name is a kind of simple naming method, also can take in other embodiments other regular naming rules, guarantees not bear the same name.Now receiving device starts with screen and shares, and its wifi scans the SSID based on above-mentioned rule, and this SSID(of the receiving device 2 user clicks on links now wifi of transmission end equipment, in SoftAp pattern, does not arrange password but needs artificial mandate).Whether wifi unit, transmission end 11 receives this connection request, eject and accept request at transmission end equipment 1 interface.If equipment 1 user in transmission end clicks acceptance, actual running background is to allow the other side to be linked to current SoftAp network to carry out network sharing.Immediately, receiving device 2 is applied for IP address and the DNS information in SoftAp network to transmission end equipment 1.In this state, transmission end equipment 1 plays the effect that is equal to gateway, and receiving device 2 plays the effect that is equal to the subset in the gateway network segment of living in.
After completing above-mentioned network connection, transmission end equipment 1 starts respectively RTSP unit, transmission end 12 and receiving terminal RTSP unit 22 with receiving device 2.Video data is taken out in the local display buffer that RTSP unit, transmission end 12 is responsible for from memory cell 13, and taking out voice data in audio system from memory cell 13, coding unit 121 is packaged into video data and voice data RTSP code stream and shares.Receiving terminal RTSP unit 22 is connected to the RTSP server that transmission end equipment 1 sets up, and (IP address is positioned at the gateway address of SoftAp network, port numbers is RTSP default port), receive the RTSP code stream from transmission end equipment 1, decoding unit 23 carries out local decode, and broadcast unit 24 carries out this locality and plays.The same screen that above process completes based on SoftAp pattern is shared.
The foregoing is only embodiments of the invention; not thereby limit the scope of the claims of the present invention; every equivalent structure or conversion of equivalent flow process that utilizes specification of the present invention and accompanying drawing content to do; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.
Claims (10)
1. the same screen sharing method based on SoftAp, is characterized in that, comprises step:
Receiving device is set up and is connected with the SoftAp of transmission end equipment;
The receiving terminal RTSP unit foundation of receiving device is connected with the RTSP unit, transmission end of transmission end equipment;
Receiving device receives the stream media information from transmission end equipment.
2. the same screen sharing method based on SoftAp as claimed in claim 1, is characterized in that, described receiving device is set up and is connected specifically and comprises the steps: with the SoftAp of transmission end equipment
The SoftAp pattern of wifi unit, device start transmission end, transmission end, and SSID is set;
Receiving device starts the above-mentioned SSID of receiving terminal wifi unit scan;
Receiving device proposes SoftAp to transmission end equipment and connects the request of setting up, and transmission end equipment is accepted to connect from the SoftAp of receiving device the request of foundation;
Transmission end device responds receiving device application, provides IP address and the DNS information of SoftAp network to receiving device.
3. the same screen sharing method based on SoftAp as claimed in claim 1 or 2, is characterized in that, described receiving device receives and specifically comprises step from the stream media information of transmission end equipment:
The RTSP unit, transmission end of transmission end equipment takes out video data from local video system, takes out voice data from local audio system, is packaged into RTSP code stream and shares.
4. the same screen sharing method based on SoftAp as claimed in claim 1 or 2, is characterized in that, described receiving device receives and also comprises step from the stream media information of transmission end equipment:
Receiving device receives the RTSP code stream from transmission end equipment, and described RTSP is carried out to local decode and broadcasting.
5. the same screen sharing method based on SoftAp as claimed in claim 1 or 2, it is characterized in that, in step " the receiving terminal RTSP unit foundation of receiving device is connected with the RTSP unit, transmission end of transmission end equipment ", the IP address connecting is positioned at the gateway address of SoftAp network, and port numbers is RTSP default port.
6. the same screen share system based on SoftAp, is characterized in that, comprises receiving device and transmission end equipment; Receiving device comprises receiving terminal wifi unit and receiving terminal RTSP unit, and transmission end equipment comprises wifi unit, transmission end and RTSP unit, transmission end;
Receiving terminal wifi unit and wifi unit, transmission end connect for set up SoftAp between receiving device and transmission end equipment;
Receiving terminal RTSP unit and RTSP unit, transmission end connect for set up RTSP between receiving device and transmission end equipment;
Receiving device receives the stream media information sending from transmission end equipment.
7. the same screen share system based on SoftAp as claimed in claim 6, it is characterized in that, transmission end wifi unit starting SoftAp pattern also arranges SSID, SSID propose SoftAp by receiving device to transmission end equipment and connect and set up request described in receiving terminal wifi unit scan, make transmission end equipment accept to connect from the SoftAp of receiving device the request of foundation, and IP address and the DNS information of SoftAp network are provided to receiving device.
8. the same screen share system based on SoftAp as described in claim 6 or 7, is characterized in that, transmission end equipment also comprises memory cell, for stored video data and voice data; RTSP unit, transmission end comprises coding unit, for transferring video data and voice data from memory cell and being packaged into RTSP code stream.
9. the same screen share system based on SoftAp as described in claim 6 or 7, is characterized in that, receiving device also comprises:
Decoding unit is for decoding to the RTSP code stream that receives autobiography sending end equipment; And
Broadcast unit, for playing the Media Stream through decoding.
10. the same screen share system based on SoftAp as described in claim 6 or 7, it is characterized in that, when receiving terminal RTSP unit is set up with being connected of RTSP unit, transmission end, the IP address of connection is positioned at the gateway address of SoftAp network, and port numbers is RTSP default port.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410100268.2A CN103826157A (en) | 2014-03-18 | 2014-03-18 | SoftAp-based on-screen sharing method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410100268.2A CN103826157A (en) | 2014-03-18 | 2014-03-18 | SoftAp-based on-screen sharing method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103826157A true CN103826157A (en) | 2014-05-28 |
Family
ID=50760945
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410100268.2A Pending CN103826157A (en) | 2014-03-18 | 2014-03-18 | SoftAp-based on-screen sharing method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103826157A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110024439A (en) * | 2016-12-30 | 2019-07-16 | 英特尔公司 | Wireless Display docking technique is used on infrastructure network |
-
2014
- 2014-03-18 CN CN201410100268.2A patent/CN103826157A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110024439A (en) * | 2016-12-30 | 2019-07-16 | 英特尔公司 | Wireless Display docking technique is used on infrastructure network |
CN110024439B (en) * | 2016-12-30 | 2022-03-29 | 英特尔公司 | Using wireless display docking techniques on an infrastructure network |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20180253396A1 (en) | Method and device for interconnecting terminals, and storage medium | |
US9282448B2 (en) | Method, system and apparatus for providing streaming media service | |
CN103037477A (en) | Method, server side and client side of family media device accessing to wireless fidelity (wifi) hotspot | |
CN105491600A (en) | Network access method, device and related equipment for household appliances | |
CN102833365A (en) | File playing method and system based on DLNA (Digital Living Network Alliance) and driving and driven DLNA equipment | |
CN103561281A (en) | Multimedia data sharing method and device | |
CN104093064A (en) | Method, system and device used for video interaction between terminal devices | |
CN112752245B (en) | Distribution network method and device, electronic equipment and storage medium | |
CN104980215A (en) | System and method for achieving WiFi configuration of intelligent equipment based on optical signal transmission | |
CN103841466A (en) | Screen projection method, computer end and mobile terminal | |
CN103780933A (en) | Remote control method and control apparatus for multimedia terminal | |
CN104735400A (en) | Method and gateway equipment for SIP client side in video monitoring system to have access to RTSP media equipment | |
CN104821929A (en) | Multimedia data sharing method and terminal | |
CN105141536A (en) | Intelligent router gateway | |
CN104506955A (en) | Network video phone with built-in camera and connected with external HDMI (high definition multimedia interface) display device | |
CN103001948B (en) | Method and system for controlling computer terminal by handheld device through scan codes | |
CN104333842A (en) | Intelligent device program resource sharing method and system based on WIFI | |
CN104581367A (en) | Method and device for sharing multimedia content | |
CN101175095A (en) | Family network multimedia access apparatus and method | |
CN103297813A (en) | Video-on-demand method, video-on-demand system and video-on-demand server | |
CN102006516B (en) | Digital household content service transmission method based on cable television two-way access | |
CN106550493B (en) | Media resource sharing method and mobile terminal | |
CN104391576A (en) | Remote input method and device based on wireless Ethernet | |
CN103826157A (en) | SoftAp-based on-screen sharing method and system | |
US10104422B2 (en) | Multimedia playing control method, apparatus for the same and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 350000 Fuzhou Gulou District, Fujian, software Avenue, building 89, No. 18 Applicant after: FUZHOU ROCKCHIP ELECTRONICS CO., LTD. Address before: 350000 Fuzhou Gulou District, Fujian, software Avenue, building 89, No. 18 Applicant before: Fuzhou Rockchip Semiconductor Co., Ltd. |
|
COR | Change of bibliographic data | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20140528 |