CN104702565B - Media resource shared method, shared server and shared system - Google Patents
Media resource shared method, shared server and shared system Download PDFInfo
- Publication number
- CN104702565B CN104702565B CN201310653199.3A CN201310653199A CN104702565B CN 104702565 B CN104702565 B CN 104702565B CN 201310653199 A CN201310653199 A CN 201310653199A CN 104702565 B CN104702565 B CN 104702565B
- Authority
- CN
- China
- Prior art keywords
- browser
- server
- shared
- channel
- shared server
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/25—Mapping addresses of the same type
- H04L61/2503—Translation of Internet protocol [IP] addresses
- H04L61/256—NAT traversal
- H04L61/2575—NAT traversal using address mapping retrieval, e.g. simple traversal of user datagram protocol through session traversal utilities for NAT [STUN]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/25—Mapping addresses of the same type
- H04L61/2503—Translation of Internet protocol [IP] addresses
- H04L61/256—NAT traversal
- H04L61/2589—NAT traversal over a relay server, e.g. traversal using relay for network address translation [TURN]
-
- 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
- H04L65/1069—Session establishment or de-establishment
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/04—Protocols specially adapted for terminals or networks with limited capabilities; specially adapted for terminal portability
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Multimedia (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Computer And Data Communications (AREA)
Abstract
The present invention relates to method, shared server and shared systems that a kind of media resource is shared, and the shared method of media resource is the following steps are included: shared server obtains the sharing request of browser by duplex channel;The address information of the shared server Yu the browser is obtained according to the sharing request;The test of ICE connectivity is carried out according to the address information and the browser of the shared server of acquisition and the browser, and establishes the first media channel;By first media channel and the browser share media resource, the present invention can be improved the versatility of share media resource between server and browser, reduce cost, save Internet resources.
Description
Technical field
The present invention relates to a kind of shared method of field of communication technology more particularly to media resource, shared server and it is total to
Enjoy system.
Background technique
With the development of network technology, share media resource has had diversified realization on two kinds of network equipments
Method.The media resource that user shares includes word content, photo and video etc., these media resources are generally stored inside user
Mobile phone or the network equipments such as computer on, these network equipments are the outer net IP that does not fix externally inside local area network
Location, when accessing these network equipments outside local area network, generally by NAT (Network Address Translation,
Network address translation) it passes through or the mode of Server Relay is realized.
But using the mode of Server Relay in the biggish media resource of shared data amount, to server resource
Occupy can it is relatively high, individual server simultaneously can service network apparatus quantity reduce, cause the increase of server cost.
And passed through using NAT mode when, usually by UDP(User Datagram Protocol, user data package
Agreement) it burrows to realize, UDP, which burrows, needs private client to complete, i.e., when media resource is shared, needs private client
Carry out browsing media resource, causes the limitation to the network equipment of share media resource, smaller scope of application.
Summary of the invention
The main purpose of the present invention is to provide a kind of media resource share method, shared server and shared system,
It is intended to improve the versatility of share media resource between server and browser, reduces cost, save Internet resources.
In order to achieve the above object, the present invention proposes a kind of method that media resource is shared, comprising the following steps:
Shared server obtains the sharing request of browser by duplex channel;
The address information of the shared server Yu the browser is obtained according to the sharing request;
ICE connection is carried out according to the address information and the browser of the shared server of acquisition and the browser
Property test, and establish the first media channel;
Pass through first media channel and the browser share media resource.
Preferably, described that the shared server and the address information of the browser are obtained according to the sharing request
Step includes:
According to the sharing request, request response is returned to application server by the duplex channel, by described
The request response is transmitted to the browser by the duplex channel by application server;
The address NAT and port of the browser that reception is obtained by the application server and the shared clothes
The address NAT and port of business device;
The address NAT of the shared server and port are sent to the browser by the duplex channel.
Preferably, the address information and the browser of the shared server according to acquisition and the browser
The test of ICE connectivity is carried out, and the step of establishing the first media channel includes:
It is carried out according to the address NAT and port of the shared server of acquisition and the browser and the browser
The test of ICE connectivity, and establish the first media channel.
Preferably, the address information and the browser of the shared server according to acquisition and the browser
The test of ICE connectivity is carried out, and after the step of establishing the first media channel further include:
If first media channel establishes failure, it is relaying with the application server, establishes and the browser
Between the second media channel;
Pass through second media channel and the browser share media resource.
Preferably, the shared server by duplex channel obtain browser sharing request the step of include:
The shared server and the browser establish duplex channel with the application server respectively;
It is obtained by the duplex channel that the shared server and the browser are established with the application server respectively
The sharing request of browser.
Preferably, described the step of passing through the first media channel and the browser share media resource includes: to pass through institute
It states the first media channel and sends media resource to browser, or the browser is received by first media channel and is sent
Media resource.
The present invention also provides a kind of media resource shared server, comprising:
Request module, for obtaining the sharing request of browser by duplex channel;
Address information obtains module, for obtaining the shared server and the browser according to the sharing request
Address information;
First establishes module, for according to the address information of the shared server of acquisition and the browser with it is described
Browser carries out the test of ICE connectivity, and establishes the first media channel;
First sharing module, for passing through first media channel and the browser share media resource.
Preferably, the address information acquisition module includes:
Return unit, for returning to request to application server by the duplex channel and ringing according to the sharing request
Message is answered, the request response is transmitted to by the browser by the duplex channel by the application server;
Receiving unit, for receiving the address NAT and port of the browser obtained by the application server, with
And the address NAT and port of the shared server;
Transmission unit, for the address NAT of the shared server and port to be sent to institute by the duplex channel
State browser.
Preferably, it described first establishes module and is specifically used for according to the shared server of acquisition and the browser
The address NAT and port and the browser carry out the test of ICE connectivity, and establish the first media channel.
Preferably, further includes:
Second establishes module, is relaying with the application server if establishing failure for first media channel,
Establish the second media channel between the browser;
Second sharing module, for passing through second media channel and the browser share media resource.
Preferably, the request module includes:
Path Setup unit is established with the application server double respectively for the shared server and the browser
To channel;
Request unit, for being built respectively with the application server by the shared server and the browser
Vertical duplex channel obtains the sharing request of browser.
Preferably, first sharing module is specifically used for sending media money to browser by first media channel
Source, or the media resource that the browser is sent is received by first media channel.
The present invention also provides a kind of media resource shared system, including application server, browser and above-mentioned shared
Server, in which:
The application server is used to send address information to shared server and browser according to the sharing request;Institute
State browser for by duplex channel to shared server send sharing request, be also used to and shared server cooperation progress
The test of ICE connectivity, and the first media channel is established, it is also used to share media money by the first media channel and shared server
Source.
Preferably, the application server includes registrar and ICE server.
A kind of media resource proposed by the present invention shared method, shared server and shared system, browser support Web
RTC standard, shared server and browser can carry out interacting message by the duplex channel established with application server, shared
After server and browser obtain itself and the address information of other side respectively, the test of ICE connectivity can be carried out and establish the first matchmaker
Body channel realizes that the media resource between shared server and browser is shared by the first media channel, due to much browsing
Device all supports Web RTC standard, thus compared with the prior art in for the mode passed through using NAT, the present invention server with
The applicable range of resource-sharing becomes larger between browser, does not need special client to complete;Compared to using in server
After mode, for the present invention in the biggish media resource of shared data amount, the occupancy of application server resource is lower, reduces
Cost has saved Internet resources.
Detailed description of the invention
Fig. 1 is the flow diagram of the shared method first embodiment of media resource of the present invention;
Fig. 2 is the flow diagram of the shared method second embodiment of media resource of the present invention;
Fig. 3 is the flow diagram that the address information of shared server and browser is obtained shown in Fig. 2;
Fig. 4 is the flow diagram for obtaining the sharing request of browser shown in Fig. 2 by duplex channel;
Fig. 5 is the structural schematic diagram of shared server first embodiment of the present invention;
Fig. 6 is the structural schematic diagram of shared server second embodiment of the present invention;
Fig. 7 is the structural schematic diagram of request module shown in Fig. 6;
Fig. 8 is the structural schematic diagram of location data obtaining module as shown in Figure 6;
Fig. 9 is the structural schematic diagram of shared system of the present invention.
In order to keep the technical solution of invention clearer, clear, it is described in further detail below in conjunction with attached drawing.
Specific embodiment
Specifically, as shown in Figure 1, one embodiment of the invention proposes a kind of method that media resource is shared, comprising:
Step S101, shared server obtain the sharing request of browser by duplex channel;
Wherein, duplex channel is the channel Web Socket.
The browser of the present embodiment supports Web RTC (Web Real-Time Communication, webpage real time communication)
Standard, Web RTC are the technologies that a kind of supported web page browser carries out real-time voice dialogue or video conversation.Shared server with
The equipment of installation browser is in different local area networks, using shared server or browser as visiting from outside other side
When, be required to through a NAT(Netword Address Translation, network address translation) equipment, by network address into
Row is converted and shields the information of internal network.The present embodiment is established with application server respectively by shared server and browser
Duplex channel obtain browser sharing request.Web Socket specification target be in a browser realize and server end
Two-way communication, the browser with Web Socket specification includes Firefox4, Chrome4, Opera10.70 and Safari5
Browser etc..
Step S102 obtains the address information of the shared server Yu the browser according to the sharing request;
In the present embodiment, after shared server receives sharing request, using application server as transfer, returned to browser
The response message for returning sharing request, after browser receives response message, obtains its address information to application server first, so
Afterwards, shared server also obtains its address information to application server.
Shared server obtains shared server itself and browser address information by application server, and browses
Device by application server obtain browser itself and shared server address information, by it is known itself and other side
Address information can carry out next step ICE connectivity test.
Wherein, address information includes the address NAT and port, further includes IP address and port, the address NAT and the port of relaying
To be sent to application server after shared server and browser respective NAT device distribution, and the IP address relayed and port
Then it is allocated by application server.The address NAT and port are preferentially used in the present embodiment.
Step S103, according to the address information of the shared server of acquisition and the browser and the browser into
The test of row ICE connectivity, and establish the first media channel;
ICE(Interactive Connectivity Establishment, interactive mode connection are established) it is a kind of synthesis
The technology that the NAT of property is passed through, it is more common in NAT is passed through.
Shared server and browser by it is known itself and the address information of other side just can be carried out ICE connectivity and survey
Examination, and the first media channel is established, address information used in the present embodiment includes the address NAT and port.
Step S104 passes through first media channel and the browser share media resource.
Shared server and browser by the first media channel share media resource, media resource include word content,
Photo and video etc. retransmit after being packaged as UDP packet before sending, can be shared server by the first media channel to clear
Device of looking at sends media resource;It is also possible to shared server and the media resource that browser is sent is received by the first media channel,
And the media resource that browser is sent is saved in shared server.
Compared with prior art, the browser of the present embodiment supports Web RTC standard, shared server that can lead to browser
Cross with application server establish duplex channel carry out interacting message, shared server and browser obtain respectively itself and it is right
After the address information of side, the test of ICE connectivity can be carried out and establish the first media channel, realized by the first media channel shared
Media resource between server and browser is shared, since many browsers all support Web RTC standard, therefore compared to existing
For the mode passed through in technology using NAT, the present embodiment applicable range of resource-sharing between server and browser becomes
Greatly, special client is not needed to complete;Compared to the mode for using Server Relay, the present embodiment shared data amount compared with
When big media resource, the occupancy of application server resource is lower, reduces costs, and has saved Internet resources.
In a preferred embodiment, as shown in Fig. 2, another embodiment of the present invention proposes a kind of side that media resource is shared
Method, on the basis of the above embodiments, after above-mentioned steps S102, further includes:
Step S105 is relaying, foundation and institute with the application server if first media channel establishes failure
State the second media channel between browser;
Step S106 passes through second media channel and the browser share media resource.
The present embodiment on the basis of the above embodiments, is further solved when between shared server and browser
When first media channel establishes failure, wrapped in the address information that is obtained due to shared server and browser by application server
Include IP address and the port of relaying, shared server and browser can be still relaying with application server, establish with browser it
Between the second media channel the problem of, and realize with browser share media resource, ensure that shared server and browsing
Normal communication between device.
In a preferred embodiment, as shown in figure 3, above-mentioned steps S101 shared server obtained by duplex channel it is clear
Look at device sharing request the step of include:
Step S1011, the shared server and the browser establish duplex channel with the application server respectively;
Step S1012 is established with the application server double respectively by the shared server and the browser
The sharing request of browser is obtained to channel.
The present embodiment specifically: shared server carries out shaking hands for Web Socket with application server, establishes two-way
Road, to realize the both-way communication of shared server and application server;Shared server reports itself to application server
State, i.e., available or unusable state;Browser accesses the page for the inquiry shared service list that application server provides, and
The page is loaded, browser carries out shaking hands for Web Socket with application server, duplex channel established, to realize browser
With the both-way communication of application server, browser sends sharing request, application server to application server by duplex channel
The shared requirement of browser is transmitted to shared server by duplex channel.
In a preferred embodiment, as shown in figure 4, above-mentioned steps S102 obtains described share according to the sharing request
The step of address information of server and the browser includes:
Step S1021 returns to request response to application server by the duplex channel and disappears according to the sharing request
Breath, is transmitted to the browser for the request response by the duplex channel by the application server;
Step S1022 receives the address NAT and port of the browser obtained by the application server, and
The address NAT of the shared server and port;
The address NAT of the shared server is sent to described clear by step S1023 by the duplex channel with port
Look at device.
As shown in figure 5, one embodiment of the invention proposes a kind of shared server, comprising:
Request module 101, for obtaining the sharing request of browser by duplex channel;
The browser of the present embodiment supports Web RTC (Web Real-Time Communication, webpage real time communication)
Standard, Web RTC are the technologies that a kind of supported web page browser carries out real-time voice dialogue or video conversation.Shared server with
The equipment of installation browser is in different local area networks, using shared server or browser as visiting from outside other side
When, be required to through a NAT(Netword Address Translation, network address translation) equipment, by network address into
Row is converted and shields the information of internal network.The present embodiment is established with application server respectively by shared server and browser
Duplex channel obtain browser sharing request.Web Socket specification target be in a browser realize and server end
Two-way communication, the browser with Web Socket specification includes Firefox4, Chrome4, Opera10.70 and Safari5
Browser etc..
Address information obtains module 102, for obtaining the shared server and the browsing according to the sharing request
The address information of device;
In the present embodiment, after receiving sharing request, using application server as transfer, sharing request is returned to browser
Response message, after browser receives response message, obtain its address information to application server first, then, share clothes
Business device also obtains its address information to application server.
The address information acquisition module 102 of shared server passes through application server acquisition shared server itself and clear
Look at the address information of device, and browser obtains browser itself and shared server address information by application server,
By it is known itself and the address information of other side can carry out ICE connectivity test.
Wherein, address information includes the address NAT and port, further includes IP address and port, the address NAT and the port of relaying
To be sent to application server after shared server and browser respective NAT device distribution, and the IP address relayed and port
Then it is allocated by application server.The address NAT and port are preferentially used in the present embodiment.
First establishes module 103, for according to the address information of the shared server of acquisition and the browser with
The browser carries out the test of ICE connectivity, and establishes the first media channel;
ICE(Interactive Connectivity Establishment, interactive mode connection are established) it is a kind of synthesis
The technology that the NAT of property is passed through, it is more common in NAT is passed through.
The first of shared server establish module 103 and browser by it is known itself and other side address information
It can be carried out the test of ICE connectivity, and establish the first media channel, address information used in the present embodiment includes the address NAT
And port.
First sharing module 104, for passing through first media channel and the browser share media resource.
The first sharing module 103 and the browser of shared server pass through the first media channel share media resource, media
Resource includes word content, photo and video etc., and the first sharing module 103 that can be shared server is logical by the first media
Road sends media resource to browser;The first sharing module 103 for being also possible to shared server is connect by the first media channel
The media resource that browser is sent is received, and saves the media resource of browser transmission in shared server.
As shown in fig. 6, another embodiment of the present invention proposes a kind of shared server, on the basis of above-mentioned Fig. 5 embodiment,
Further include:
Second establishes module 105, if establish failure for first media channel, is with the application server
After, establish and the browser between the second media channel;
Second sharing module 106, for passing through second media channel and the browser share media resource.
The present embodiment on the basis of the above embodiments, is further solved when the first of shared server establishes module
When the first media channel between 102 and browser establishes failure, since shared server and browser pass through application server
It include IP address and the port of relaying in the address information of acquisition, the second of shared server establishes module 104 and browser still
It can be relaying with application server, establish the second media channel between browser, and realize and share media money with browser
The problem of source.Ensure that the normal communication between shared server and browser.
In a preferred embodiment, as shown in fig. 7, above-mentioned request module 101 includes:
Path Setup unit 1011 is built with the application server respectively for the shared server and the browser
Vertical duplex channel;
Request unit 1012, for by the shared server and the browser respectively with the application service
The duplex channel that device is established obtains the sharing request of browser.
In a preferred embodiment, as shown in figure 8, address above mentioned data obtaining module 102 includes:
Return unit 1021, for being asked to application server return by the duplex channel according to the sharing request
Response message is sought, the request response is transmitted to by the browsing by the duplex channel by the application server
Device;
Receiving unit 1022, for receiving the address NAT and end of the browser obtained by the application server
The address NAT and port of mouth and the shared server;
Transmission unit 1023, for being sent the address NAT of the shared server and port by the duplex channel
To the browser.
One embodiment of the invention proposes a kind of shared system, comprising: application server, browser and shared server,
Wherein:
Shared server is used to obtain the sharing request of browser by duplex channel, obtains shared clothes according to sharing request
The address information of business device and browser carries out ICE according to the shared server of acquisition and the address information of browser and browser
Connectivity test, and the first media channel is established, pass through the first media channel and browser share media resource;
Application server is used to send address information to shared server and browser according to the sharing request;
Browser is used to send sharing request to shared server by duplex channel, is also used to cooperate with shared server
The test of ICE connectivity is carried out, and establishes the first media channel, is also used to share matchmaker by the first media channel and shared server
Body resource.
In a preferred embodiment, as shown in figure 9, in order to reduce the burden of above-mentioned application server and improve efficiency,
Application server can also be divided into two servers, that is, be divided into a registrar and an ICE server.Registrar
For shared server and the respective Outside Access address after NAT device of browser registration, and as shared server and
The transfer server of browser interacting message;And ICE server is responsible for distributing shared server and the respective address letter of browser
Breath, and establish as shared server and browser transfer service when the shared interaction of media resource after the second media channel.
It is described in detail so that application server is divided into registrar and ICE server as an example below:
1, shared server and registrar carry out shaking hands for Web Socket, establish duplex channel;
2, shared server is to registrar uploaded state information;
3, the page for the inquiry shared server that browser access registrar provides, and load the page;
4, browser and registrar carry out shaking hands for Web Socket, establish duplex channel;
5, browser sends sharing request to registrar by duplex channel;
6, sharing request is transmitted to shared server by duplex channel by registrar;
7, shared server passes through duplex channel to registrar returning response information;
8, response message is transmitted to browser by duplex channel by registrar;
9, browser is to its address information of ICE server request;
10, ICE server returns to the address NAT and port, the relaying list informations such as IP and port of browser;
11, the list information of itself is sent to registrar by browser;
12, the list information of browser is sent to shared server by registrar;
13, shared server is to its address information of ICE server request;
14, ICE server returns to the address NAT and port, the relaying list informations such as IP and port of shared server;
15, the list information of itself is sent to registrar by shared server;
16, the list information of shared server is sent to browser by registrar;
17, the survey of ICE connectivity is carried out according to the address NAT of known other side and port between browser and shared server
Examination, establishes the first media channel;
18, pass through the first media channel share media resource between browser and shared server.
In the present embodiment, shared server and registrar carry out Web Socket communication, carry out a little pair with browser
Point UDP communication carries out TCP communication with ICE server.
By above description it can be seen that browser of the invention supports Web RTC standard, shared server and browsing
Device can carry out interacting message by the duplex channel established with application server, be obtained from respectively in shared server and browser
After the address information of body and other side, the test of ICE connectivity can be carried out and establish the first media channel, pass through the first media channel reality
Media resource between existing shared server and browser is shared, since many browsers all support Web RTC standard, therefore compares
For the mode passed through in the prior art using NAT, example of the present invention resource-sharing between server and browser is applicable in
Range becomes larger, and does not need special client to complete;Compared to the mode for using Server Relay, the present invention is in shared data
When measuring biggish media resource, the occupancy of application server resource is lower, has saved Internet resources;When shared server with it is clear
When the first media channel look between device establishes failure, shared server and browser can be still relaying with application server, build
Vertical the second media channel between browser, and realization and browser share media resource, ensure that shared server
Normal communication between browser.
The above description is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all utilizations
Equivalent structure made by description of the invention and accompanying drawing content or process transformation, are applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (14)
1. a kind of shared method of media resource, which comprises the following steps:
Shared server obtains the sharing request of browser by the duplex channel established with application server;
The address information of the shared server Yu the browser is obtained by application server according to the sharing request;
The survey of ICE connectivity is carried out according to the address information and the browser of the shared server of acquisition and the browser
Examination, and establish the first media channel;
Pass through first media channel and the browser share media resource.
2. the method according to claim 1, wherein described obtain the shared service according to the sharing request
The step of address information of device and the browser includes:
According to the sharing request, request response is returned to application server by the duplex channel, by the application
The request response is transmitted to the browser by the duplex channel by server;
The address NAT and port of the browser that reception is obtained by the application server and the shared server
The address NAT and port;
The address NAT of the shared server and port are sent to the browser by the duplex channel.
3. according to the method described in claim 2, it is characterized in that, the shared server according to acquisition with it is described clear
It lookes at the address information of device and the browser carries out the test of ICE connectivity, and the step of establishing the first media channel includes:
ICE connection is carried out according to the address NAT and port of the shared server of acquisition and the browser and the browser
General character test, and establish the first media channel.
4. according to the method described in claim 2, it is characterized in that, the shared server according to acquisition with it is described clear
Look at device address information and the browser carry out the test of ICE connectivity, and the step of establishing the first media channel after also wrap
It includes:
If first media channel establishes failure, it is relaying with the application server, establishes between the browser
The second media channel;
Pass through second media channel and the browser share media resource.
5. according to the method described in claim 2, it is characterized in that, the shared server obtains browser by duplex channel
Sharing request the step of include:
The shared server and the browser establish duplex channel with the application server respectively;
It is obtained and is browsed by the duplex channel that the shared server and the browser are established with the application server respectively
The sharing request of device.
6. the method according to claim 1, wherein first media channel that passes through is shared with the browser
The step of media resource includes: to send media resource to browser by first media channel, or pass through described first
Media channel receives the media resource that the browser is sent.
7. a kind of media resource shared server characterized by comprising
Request module obtains the sharing request of browser for the duplex channel by establishing with application server;
Address information obtains module, for obtaining the shared server and institute by application server according to the sharing request
State the address information of browser;
First establishes module, for according to the shared server of acquisition and the address information of the browser and the browsing
Device carries out the test of ICE connectivity, and establishes the first media channel;
First sharing module, for passing through first media channel and the browser share media resource.
8. shared server according to claim 7, which is characterized in that the address information obtains module and includes:
Return unit, for returning to request response to application server by the duplex channel and disappearing according to the sharing request
Breath, is transmitted to the browser for the request response by the duplex channel by the application server;
Receiving unit, for receiving the address NAT and port of the browser obtained by the application server, Yi Jisuo
State the address NAT and port of shared server;
Transmission unit, it is described clear for being sent to the address NAT of the shared server with port by the duplex channel
Look at device.
9. shared server according to claim 8, which is characterized in that described first establishes module obtains specifically for basis
The address NAT and port of the shared server and the browser that take and the browser carry out the test of ICE connectivity, and
Establish the first media channel.
10. shared server according to claim 8, which is characterized in that further include:
Second establishes module, if establishing failure for first media channel, is relaying with the application server, establishes
The second media channel between the browser;
Second sharing module, for passing through second media channel and the browser share media resource.
11. shared server according to claim 8, which is characterized in that the request module includes:
Path Setup unit establishes two-way with the application server respectively for the shared server and the browser
Road;
Request unit, for what is established respectively with the application server by the shared server and the browser
The sharing request of duplex channel acquisition browser.
12. shared server according to claim 7, which is characterized in that first sharing module is specifically used for passing through
First media channel sends media resource to browser, or receives the browser hair by first media channel
The media resource sent.
13. a kind of media resource shared system, which is characterized in that including application server, browser and claim 7 to 12
Described in any item shared server, in which:
The application server is used to send address information to shared server and browser according to the sharing request;It is described clear
Device of looking at is used to send sharing request to shared server by duplex channel, is also used to cooperate progress ICE connection with shared server
General character test, and the first media channel is established, it is also used to through the first media channel and shared server share media resource.
14. shared system according to claim 13, which is characterized in that the application server include registrar and
ICE server.
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310653199.3A CN104702565B (en) | 2013-12-05 | 2013-12-05 | Media resource shared method, shared server and shared system |
EP14867542.4A EP3079328B1 (en) | 2013-12-05 | 2014-06-23 | Media resource sharing method, shared server and shared system |
PCT/CN2014/080547 WO2015081691A1 (en) | 2013-12-05 | 2014-06-23 | Media resource sharing method, shared server and shared system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310653199.3A CN104702565B (en) | 2013-12-05 | 2013-12-05 | Media resource shared method, shared server and shared system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104702565A CN104702565A (en) | 2015-06-10 |
CN104702565B true CN104702565B (en) | 2019-09-17 |
Family
ID=53272823
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310653199.3A Active CN104702565B (en) | 2013-12-05 | 2013-12-05 | Media resource shared method, shared server and shared system |
Country Status (3)
Country | Link |
---|---|
EP (1) | EP3079328B1 (en) |
CN (1) | CN104702565B (en) |
WO (1) | WO2015081691A1 (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110392071B (en) * | 2018-04-18 | 2021-06-22 | 网宿科技股份有限公司 | Uploading and downloading methods of streaming media resources, distribution system and streaming media server |
CN111371829A (en) * | 2019-10-12 | 2020-07-03 | 杭州海康威视系统技术有限公司 | Data sharing method and device, terminal, server and storage medium |
CN113824803A (en) * | 2021-11-24 | 2021-12-21 | 飞狐信息技术(天津)有限公司 | Multimedia file sharing method and related device |
CN114339116A (en) * | 2021-12-31 | 2022-04-12 | 四川科瑞软件有限责任公司 | WebRtc-based audio and video call method and system |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100426769C (en) * | 2005-01-12 | 2008-10-15 | 腾讯科技(深圳)有限公司 | Method for establishing pier-to-pier direct channels |
CN100521663C (en) * | 2006-04-18 | 2009-07-29 | 华为技术有限公司 | Method for crossing network address conversion in point-to-point communication |
CN101478493B (en) * | 2009-02-10 | 2011-02-02 | 杭州华三通信技术有限公司 | Method and device for NAT through communication |
US7941551B2 (en) * | 2009-02-25 | 2011-05-10 | Microsoft Corporation | Tunneling of remote desktop sessions through firewalls |
CN102447749B (en) * | 2010-10-15 | 2015-10-28 | 中兴通讯股份有限公司 | The method that the centralized P2P system supporting NAT to pass through, NAT pass through |
CN102457580B (en) * | 2010-10-18 | 2016-06-08 | 中兴通讯股份有限公司 | NAT through method and system |
BR112014014114A2 (en) * | 2012-01-17 | 2017-06-13 | Ericsson Telefon Ab L M | ice-based nat crossing |
US8601144B1 (en) * | 2012-11-27 | 2013-12-03 | Sansay, Inc. | Systems and methods for automatic ICE relay candidate creation |
-
2013
- 2013-12-05 CN CN201310653199.3A patent/CN104702565B/en active Active
-
2014
- 2014-06-23 EP EP14867542.4A patent/EP3079328B1/en active Active
- 2014-06-23 WO PCT/CN2014/080547 patent/WO2015081691A1/en active Application Filing
Also Published As
Publication number | Publication date |
---|---|
EP3079328A4 (en) | 2016-11-30 |
EP3079328B1 (en) | 2019-06-05 |
WO2015081691A1 (en) | 2015-06-11 |
EP3079328A1 (en) | 2016-10-12 |
CN104702565A (en) | 2015-06-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104796396B (en) | The method and medium of network agent layer for the application proxy based on strategy are provided | |
CN101946493B (en) | Method and system for providing connectivity between clients connected to the internet | |
CN109274634B (en) | Multimedia communication method and device, and storage medium | |
CN103491172B (en) | Cloud sharing files method and system | |
CN101478493B (en) | Method and device for NAT through communication | |
CN101262478A (en) | Method and device for penetrating NAT | |
CN104580192B (en) | The treating method and apparatus of the network access request of application program | |
CN104702565B (en) | Media resource shared method, shared server and shared system | |
CN104243506A (en) | Browser redirection method and device | |
CN103581248A (en) | Method and device for providing content distribution network CDN service | |
CN103023790A (en) | Method and system used for realizing cross-domain interactive access | |
CN103108089A (en) | Connection establishment management method of network system and related system thereof | |
CN108156210A (en) | The acquisition methods and device of target resource | |
CN102710765A (en) | Method, device and system for realizing transparent proxy through CDN server | |
CN101902506A (en) | SIP call-based traversal network address translation method and system | |
CN101800781A (en) | Tunnel transition method and system for passing through NAT | |
KR20160011304A (en) | System and method for providing advertisement based on web using wifi network | |
WO2014169736A1 (en) | Terminal device and method for sharing web page among multiple screens | |
CN103152444B (en) | The network address translation of trunking scheme and message transmitting method and device, system | |
WO2017107795A1 (en) | Method and device for accelerating access to website | |
CN102611948A (en) | Method for sharing and issuing audios and videos of mobile internet terminal | |
CN114666306B (en) | WebRTC network connection establishment method, server, electronic device and computer readable storage medium | |
CN109862055A (en) | A kind of satellite network communications method, agent service device and gateway | |
CN103391220B (en) | A kind of network management of video monitoring equipment | |
CN103595702B (en) | The choosing method and device of content providing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20190819 Address after: Yuhuatai District of Nanjing City, Jiangsu province 210012 Bauhinia Road No. 68 Applicant after: Nanjing Zhongxing New Software Co., Ltd. Address before: 518057 Nanshan District Guangdong high tech Industrial Park, South Road, science and technology, ZTE building, Ministry of Justice Applicant before: ZTE Corporation |
|
GR01 | Patent grant | ||
GR01 | Patent grant |