CN102811335B - Set up the method, apparatus and system of video session - Google Patents
Set up the method, apparatus and system of video session Download PDFInfo
- Publication number
- CN102811335B CN102811335B CN201110149089.4A CN201110149089A CN102811335B CN 102811335 B CN102811335 B CN 102811335B CN 201110149089 A CN201110149089 A CN 201110149089A CN 102811335 B CN102811335 B CN 102811335B
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- video session
- server
- information
- session room
- 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
Landscapes
- Mobile Radio Communication Systems (AREA)
- Computer And Data Communications (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a kind of method, apparatus and system setting up video session, belong to communication technical field.Described method comprises: when the first mobile terminal initiates video session request by IM server to the second mobile terminal, the networking type of the application of setting up video session room that forward decision server reception IM server is sent and two mobile terminals, set up video session room and determine data transfer mode and transfer server, room information, data transfer mode and transfer information are issued two mobile terminals respectively by IM server; Transfer server receives the request entering video session room of two mobile terminals respectively, is all verified successfully in the information in the video session room of two mobile terminals, and allowing to enter video session room is also both sides' transmission of video information.This invention simplifies the flow process setting up video session, shorten the time, save the bandwidth of wireless network, improve the experience effect of user.
Description
Technical field
The present invention relates to communication technical field, particularly a kind of method, apparatus and system setting up video session.
Background technology
Along with the arrival of 3G, the increase of wireless network bandwidth, industry and user call more application.Wherein mobile phone for video chat is more regarded as one of 3G first-selection application.In existing technology, two mobile terminals realize Video chat have been come mainly through IM (InstantMessaging, instant messaging) server and transfer server.
See Fig. 1, the process that existing mobile terminal sets up video connection is as follows: mobile terminal A and B signs in on IM server separately, A is by IM server request and B Video chat, after B is agreed to by IM server acknowledge, A and transfer server connect and send the request in application room, B is given by IM server again after obtaining room number and key, B and transfer server are connected and are sent the request of enabling by room number and key, after transfer server checking room number and key pass through, response B rents a room in a hotel successfully, notify that A and B transfer server is ready to more respectively, the notified rear respective camera opening this locality of A and B, and send to the other side to carry out Video chat by transfer server the video data of catching.
Above-mentioned prior art has following shortcoming: the process step that mobile terminal sets up video session is loaded down with trivial details, time of implementation is long, and each step needs to be transmitted by wireless network, and the limited bandwidth of wireless network, cause delay comparatively large, experience effect is difficult to the requirement meeting user.
Summary of the invention
In order to solve the problem of prior art, embodiments provide a kind of method, apparatus and system setting up video session.
Set up a method for video session, described method comprises:
When the first mobile terminal initiates video session request by instant messaging IM server to the second mobile terminal, forward decision server receives the application of setting up video session room that described IM server is sent, and the networking type of described first mobile terminal and the second mobile terminal;
Described forward decision server sets up a video session room, according to the networking type of described first mobile terminal and the networking type of described second mobile terminal, determine data transfer mode and the transfer server of described first mobile terminal and the second mobile terminal, the information of the information in described video session room, data transfer mode and transfer server is sent to described first mobile terminal and the second mobile terminal respectively by described IM server;
Described transfer server receives the request entering described video session room that described first mobile terminal and described second mobile terminal are sent respectively, the information in the video session room carried in the information in the video session room carried in the request of described first mobile terminal and the request of described second mobile terminal is all verified successfully, allowing described first mobile terminal and the second mobile terminal to enter described video session room, is described first mobile terminal and the second mobile terminal transmission of video information.
Wherein, according to the networking type of described first mobile terminal and the networking type of described second mobile terminal, determine the data transfer mode of described first mobile terminal and the second mobile terminal, comprising:
Described forward decision server judges whether the networking type of described first mobile terminal and the second mobile terminal is direct-connected Net or is Wireless Fidelity Wifi;
If so, then determine that the data transfer mode of described first mobile terminal and the second mobile terminal is user datagram protocol UDP mode;
Otherwise, determine that the data transfer mode of described first mobile terminal and the second mobile terminal is transmission control protocol TCP mode.
Wherein, described method also comprises:
The information in described first mobile terminal and described video session room corresponding to the second mobile terminal is issued described transfer server by described forward decision server;
Correspondingly, the information in the video session room carried in the information in the video session room carried in the request of described first mobile terminal and the request of described second mobile terminal is all verified successfully, allow described first mobile terminal and the second mobile terminal to enter described video session room, comprising:
The information in the described video session room that described transfer server is sent according to described forward decision server, verifies the information in the video session room that information and described second mobile terminal in the video session room that described first mobile terminal carries carry;
If be proved to be successful, then described first mobile terminal and the second mobile terminal is allowed to enter described video session room.
Wherein, described method also comprises:
The information in described first mobile terminal and described video session room corresponding to the second mobile terminal is issued registrar by described forward decision server;
Correspondingly, the information in the video session room carried in the information in the video session room carried in the request of described first mobile terminal and the request of described second mobile terminal is all verified successfully, allow described first mobile terminal and the second mobile terminal to enter described video session room, comprising:
The information in the video session room carried in the request of the information in the video session room carried in the request of described first mobile terminal and described second mobile terminal is sent to described registrar by described transfer server;
The information in the described video session room that described registrar is sent according to described forward decision server, the information in the video session room carried in the information in the video session room carried in the request respectively to described first mobile terminal and the request of described second mobile terminal is verified, returns results to described transfer server after being proved to be successful;
After described transfer server receives the result be proved to be successful, described first mobile terminal and the second mobile terminal is allowed to enter described video session room.
Wherein, described method also comprises:
The Internet protocol IP address of the first equipment and the IP address of the second equipment are also sent to registrar by described transfer server, and described first equipment and the second equipment are respectively the equipment that described first mobile terminal and the second mobile terminal provide service for described transfer server inside;
Described registrar receives and stores the corresponding relation of the IP address of described first equipment and the IP address of described second equipment, is described first mobile terminal and the second mobile terminal transmission of video information to make described first equipment and the second equipment according to described corresponding relation.
Wherein, the networking type of any one in described first mobile terminal and the second mobile terminal is direct-connected Net, acts on behalf of Wap or Wireless Fidelity Wifi.
A kind of forward decision server, described forward decision server comprises:
Receiver module, for when the first mobile terminal initiates video session request by instant messaging IM server to the second mobile terminal, receive the application of setting up video session room that described IM server is sent, and the networking type of described first mobile terminal and the second mobile terminal;
Decision-making module, for setting up a video session room, according to the networking type of described first mobile terminal and the networking type of described second mobile terminal, determine data transfer mode and the transfer server of described first mobile terminal and the second mobile terminal, the information of the information in described video session room, data transfer mode and transfer server is sent to described first mobile terminal and the second mobile terminal respectively by described IM server.
Wherein, described decision-making module comprises:
Judging unit, for judging whether the networking type of described first mobile terminal and the second mobile terminal is direct-connected Net or is Wireless Fidelity Wifi;
Decision package, if the result judged for described judging unit is yes, then determines that the data transfer mode of described first mobile terminal and the second mobile terminal is user datagram protocol UDP mode; Otherwise, determine that the data transfer mode of described first mobile terminal and the second mobile terminal is transmission control protocol TCP mode.
Wherein, described forward decision server also comprises:
Sending module, for the information in described first mobile terminal and described video session room corresponding to the second mobile terminal is issued described transfer server, or sends to registrar.
A kind of registrar, described registrar comprises:
Receiver module, for receiving the information in the first mobile terminal that forward decision server sends after setting up video session room and described video session room corresponding to the second mobile terminal, and receive transfer server and receiving after described first mobile terminal and the second mobile terminal initiate to enter the request in described video session room, the information in the video session room carried in the information in the video session room carried in the request of described first mobile terminal sent and the request of described second mobile terminal;
Authentication module, for the information in described video session room sent according to described forward decision server, the information in the video session room carried in the information in the video session room carried in the request respectively to described first mobile terminal and the request of described second mobile terminal is verified, return results to described transfer server after being proved to be successful, allow described first mobile terminal and the second mobile terminal to enter described video session room to make described transfer server.
Wherein, described receiver module also for: receive the Internet protocol IP address of the first equipment that described transfer server is sent and the IP address of the second equipment, described first equipment and the second equipment are respectively the equipment that described first mobile terminal and the second mobile terminal provide service for described transfer server inside;
Described registrar also comprises:
Memory module, for the corresponding relation of the IP address of the IP address and described second equipment that store described first equipment, be described first mobile terminal and the second mobile terminal transmission of video information to make described first equipment and the second equipment according to described corresponding relation.
Set up a system for video session, described system comprises:
Forward decision server, for when the first mobile terminal initiates video session request by instant messaging IM server to the second mobile terminal, receive the application of setting up video session room that described IM server is sent, and the networking type of described first mobile terminal and the second mobile terminal, set up a video session room, according to the networking type of described first mobile terminal and the networking type of described second mobile terminal, determine data transfer mode and the transfer server of described first mobile terminal and the second mobile terminal, by the information in described video session room, the information of data transfer mode and transfer server sends to described first mobile terminal and the second mobile terminal respectively by described IM server,
Transfer server, for receiving the request entering described video session room that described first mobile terminal and described second mobile terminal are sent respectively, the information in the video session room carried in the information in the video session room carried in the request of described first mobile terminal and the request of described second mobile terminal is all verified successfully, allowing described first mobile terminal and the second mobile terminal to enter described video session room, is described first mobile terminal and the second mobile terminal transmission of video information.
Wherein, described transfer server comprises for described first mobile terminal provides the first equipment of service, and provides the second equipment of service for described second mobile terminal, and described system also comprises: registrar;
Described transfer server is also for sending to described registrar by the IP address of the Internet protocol IP address of described first equipment and described second equipment;
Described registrar is for receiving and storing the corresponding relation of the IP address of described first equipment and the IP address of described second equipment;
The described corresponding relation that described first equipment and the second equipment are used for storing according to described registrar is described first mobile terminal and the second mobile terminal transmission of video information.
The beneficial effect of the technical scheme that the embodiment of the present invention provides is:
When the first mobile terminal initiates video session request by IM server to the second mobile terminal, video session room is set up by forward decision server, and according to the networking type determination data transfer mode of the first mobile terminal and the second mobile terminal and transfer server, all be verified successfully in the information in the video session room that the first mobile terminal and the second mobile terminal carry, transfer server allows both sides to enter video session room and is its transmission of video information, greatly simplifie the flow process that mobile terminal sets up video session, shorten the time of implementation, and be wire transmission between forward decision server and IM server, save the bandwidth of wireless network, improve the experience effect of user, meet the requirement of user better.
Accompanying drawing explanation
Fig. 1 is the process schematic that existing mobile terminal sets up video connection;
Fig. 2 is the method flow diagram setting up video session that the embodiment of the present invention 1 provides;
Fig. 3 is the method flow diagram setting up video session that the embodiment of the present invention 2 provides;
Fig. 4 is the forward decision server structure chart that the embodiment of the present invention 3 provides;
Fig. 5 is the registrar structure chart that the embodiment of the present invention 4 provides;
Fig. 6 is the system construction drawing setting up video session that the embodiment of the present invention 5 provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
The present invention relates to the video session of mobile terminal, this video session refers to that two mobile terminals use IM technology to carry out Video chat.Wherein, IM technology is a kind of real-time communication technology that user can be allowed on network to set up certain private chat room, and IM software is existing a variety of at present, as current welcome QQ, Sina UC, MSNMessenger etc. on the internet.
The invention still further relates to the networking type of mobile terminal, this networking type comprises: direct-connected Net mode, act on behalf of Wap mode and Wireless Fidelity Wifi mode.
Wherein, Net and Wap is two kinds of modes that GPRS (GeneralPacketRadioService, GPRS) surfs the Net.The rate of Wap are lower and Net is more expensive.When using Wap access point, the IP address obtained after being connected by GRPS is the category-A address as 10.x.x.x, i.e. internal address, and the access of this address is subject to a lot of restriction, is exactly generally that this subnet is inner.Such as, the wap network of China Mobile can only be accessed exactly for the restriction be subject to China Mobile cmwap.But by hanging agency, as 10.0.0.172:80, then connecting with Wap and also can browse the website on Net, just proxy resources is limited, so speed is slow.When using Net access point, what obtain is a c class address as 202.xxx.x.x or 61.x.x.x and so on, and it can any website on travel all over the Internet, unrestricted.Wifi full name WirelessFidelity, belongs to the short distance wireless technical used in office and family, and its great advantage is exactly that transmission speed is higher, and can reach 11Mbps, its coverage is also very long in addition.
Net mode can support TCP (TransmissionControlProtocol, transmission control protocol) and UDP (UserDatagramProtocol, User Datagram Protocol), Wap mode can support TCP, and Wifi mode can support TCP and UDP.TCP be a kind of connection-oriented, reliable, based on transport layer (Transportlayer) communication protocol of byte stream.UDP is a kind of connectionless transport layer protocol in OSI (OpenSystemInterconnect means open system interconnection) reference model, provides the simple unreliable information transfer service towards affairs.Data transfer mode in the embodiment of the present invention refers to UDP mode or TCP mode.
The embodiment of the present invention relates to IM server, forward decision server, transfer server and registrar.Wherein, being wired connection between IM server and forward decision server, is wired connection between transfer server and registrar.The function of forward decision server is the mobile terminal determination video session room for two video communications, and according to the network connecting mode determination data transfer mode of two mobile terminals and transfer server.Transfer server is a concept of trooping, it can comprise an equipment or multiple devices, therefore, when two mobile terminals communicate, there are two kinds of scenes, be by same equipment in transfer server for two mobile terminals provide a service, another kind is respectively two mobile terminals by the different equipment of two in transfer server to provide service.The function of registrar verifies the video request of mobile terminal, the request of mobile terminal is forwarded by transfer server, the foundation of checking is the information in the video session room corresponding with mobile terminal sent by forward decision server, wherein, registrar and forward decision server are also wired connections.
Embodiment 1
See Fig. 2, present embodiments provide a kind of method setting up video session, comprising:
21: when the first mobile terminal initiates video session request by instant messaging IM server to the second mobile terminal, forward decision server receives the application of setting up video session room that IM server is sent, and the networking type of the first mobile terminal and the second mobile terminal;
22: forward decision server sets up a video session room, according to the networking type of the first mobile terminal and the networking type of the second mobile terminal, determine data transfer mode and the transfer server of the first mobile terminal and the second mobile terminal, the information of the information in video session room, data transfer mode and transfer server is sent to the first mobile terminal and the second mobile terminal respectively by IM server;
23: transfer server receives the request entering video session room that the first mobile terminal and the second mobile terminal are sent respectively, the information in the video session room carried in the information in the video session room carried in the request of the first mobile terminal and the request of the second mobile terminal is all verified successfully, allowing the first mobile terminal and the second mobile terminal to enter video session room, is the first mobile terminal and the second mobile terminal transmission of video information.
Alternatively, according to the networking type of the first mobile terminal and the networking type of the second mobile terminal, determine the data transfer mode of the first mobile terminal and the second mobile terminal, comprising:
Forward decision server judges whether the networking type of the first mobile terminal and the second mobile terminal is direct-connected Net or is Wireless Fidelity Wifi; If so, then determine that the data transfer mode of the first mobile terminal and the second mobile terminal is user datagram protocol UDP mode; Otherwise, determine that the data transfer mode of the first mobile terminal and the second mobile terminal is transmission control protocol TCP mode.
In the present embodiment, the operation of checking video session room information can be performed by transfer server, and alternatively, said method can also comprise:
The information in the first mobile terminal and video session room corresponding to the second mobile terminal is issued transfer server by forward decision server; Correspondingly, the information in the video session room carried in the information in the video session room carried in the request of the first mobile terminal and the request of the second mobile terminal is all verified successfully, allow the first mobile terminal and the second mobile terminal to enter video session room, comprising:
The information in the video session room that transfer server is sent according to forward decision server, verifies the information in the video session room that information and second mobile terminal in the video session room that the first mobile terminal carries carry; If be proved to be successful, then the first mobile terminal and the second mobile terminal is allowed to enter video session room.This mode of being undertaken verifying by transfer server is applicable to by the equipment of in transfer server as two mobile terminals provide the scene of service.
In the present embodiment, the operation of checking video session room information can be performed by registrar, and alternatively, said method can also comprise:
The information in the first mobile terminal and video session room corresponding to the second mobile terminal is issued registrar by forward decision server; Correspondingly, the information in the video session room carried in the information in the video session room carried in the request of the first mobile terminal and the request of the second mobile terminal is all verified successfully, allow the first mobile terminal and the second mobile terminal to enter video session room, comprising:
The information in the video session room carried in the information in the video session room carried in the request of the first mobile terminal and the request of the second mobile terminal is sent to registrar by transfer server; The information in the video session room that registrar is sent according to forward decision server, the information in the video session room carried in the information in the video session room carried in the request respectively to the first mobile terminal and the request of the second mobile terminal is verified, returns results to transfer server after being proved to be successful; After transfer server receives the result be proved to be successful, the first mobile terminal and the second mobile terminal is allowed to enter video session room.This mode of being undertaken verifying by registrar, both gone for providing the scene of service by the equipment of in transfer server for two mobile terminals, and also gone for being respectively by the equipment of two in transfer server the scene that two mobile terminals provide service.
In the present embodiment, transfer server for the server of trooping, can comprise multiple equipment, and the mobile terminal that the plurality of equipment can be respectively different provides service, and alternatively, described method also comprises:
The Internet protocol IP address of the first equipment and the IP address of the second equipment are also sent to registrar by transfer server, and described first equipment and the second equipment are respectively the equipment that the first mobile terminal and the second mobile terminal provide service for transfer server inside;
Correspondingly, described registrar receives and stores the corresponding relation of the IP address of the first equipment and the IP address of the second equipment, is the first mobile terminal and the second mobile terminal transmission of video information to make the first equipment and the second equipment according to described corresponding relation.
Such as, transfer server comprises device A and equipment B, device A provides service for the first mobile terminal, equipment B provides service for the second mobile terminal, the IP address of device A and the IP address of equipment B are sent to registrar by transfer server, registrar is set up and the corresponding relation of the IP address of memory device A and the IP address of equipment B, after transfer server allows the first and second mobile terminals to enter video session room, device A and equipment B can know mutually the IP address of the other side according to this corresponding relation, thus can to communicate mutually be the first mobile terminal and the second mobile terminal transmission of video information.
In the present embodiment, the networking type of any one in the first mobile terminal and the second mobile terminal is direct-connected Net, acts on behalf of Wap or Wireless Fidelity Wifi.
In the present embodiment, further, forward decision server can also be selected a kind of and recommend mobile terminal in direct-connected or transfer mode, and mobile terminal preferably tastes the pilot production mode of this recommendation and connects.As forward decision server recommends mobile terminal to adopt the direct-connected mode of UDP, then mobile terminal is first attempted carrying out the direct-connected connection of UDP, if connection failure, then mobile terminal can reattempt and carry out UDP transfer connection.For another example forward decision server recommends mobile terminal to adopt TCP transfer mode, then mobile terminal is attempted carrying out TCP transfer connection, if connection failure, then mobile terminal can not reattempt and carry out other connection, and flow process terminates.
The said method that the present embodiment provides, when the first mobile terminal initiates video session request by IM server to the second mobile terminal, video session room is set up by forward decision server, and according to the networking type determination data transfer mode of the first mobile terminal and the second mobile terminal and transfer server, all be verified successfully in the information in the video session room that the first mobile terminal and the second mobile terminal carry, transfer server allows both sides to enter video session room and is its transmission of video information, effectively utilize the advantage of cable network, the situation of combining wireless network, greatly simplifie the flow process that mobile terminal sets up video session, shorten the time that video session is set up, best transmission mode can be selected, reach the effect of distributing the most rational transfer server of connection rationally, thus reach the effect of optimum use network, and, compared with prior art, set up video session room and enter video session room and change parallel processing into by serial process, application is set up video session room and is transferred to cable network from wireless network, decrease the interaction times in wireless network, save the bandwidth of wireless network, improve the experience effect of user, the requirement of user can be met better.
Embodiment 2
See Fig. 3, present embodiments provide a kind of method setting up video session, be respectively mobile terminal A and B for the first mobile terminal and the second mobile terminal and be described, the method comprises:
31: mobile terminal A initiates video session request by IM server to mobile terminal B.
In the present embodiment, mobile terminal A and mobile terminal B is provided with IM client all in advance, they can be successfully logged onto on IM server by respective IM client.Such as, by input username and password Successful login QQ software.
32: the mobile terminal B video session request receiving the mobile terminal A that IM server forwards.
33: mobile terminal B agrees to this video session request, and informs IM server.
Wherein, first mobile terminal A and B, in the process logging in IM server, can connect with IM server, in this connection procedure, the networking type of oneself can be informed IM server by mobile terminal, and therefore, IM server can know the networking type of mobile terminal A and B.
34:IM server is set up the room of a video session, and is carried the networking type of mobile terminal A and mobile terminal B in this application after receiving the message of mobile terminal B agreement video session request to forward decision server application.
Wherein, the networking type of mobile terminal A and B comprises: Net, Wap or Wifi.Such as, mobile terminal A is cmwap, and mobile terminal B is cmnet; Or mobile terminal A is wifi, mobile terminal B is 3gnet; Or mobile terminal A and B is 3gwap, etc.
Be wired connection between forward decision server and IM server, thus application is set up the flow process in video session room from wireless transfer to wired, save the resource of wireless network.
35: after forward decision server receives the request from IM server, for mobile terminal A and B sets up the room of a video session, this room and mobile terminal A and B have corresponding relation, room key is distributed to this room, and, according to the networking type of mobile terminal A and B, forward decision server determines that the data transfer mode of the two is TCP or UDP, can also determine it is TCP transfer further, UDP transfer, or UDP is direct-connected, in addition, also be defined as the transfer server that mobile terminal A and B provides service, by the IP address of this transfer server and port, above-mentioned room key, and data transfer mode issues IM server.
In addition, the information of mobile terminal A and B of above-mentioned room key and correspondence is also sent to registrar by forward decision server, carries out storing to facilitate follow-up checking after registrar receives.Wherein, the information of mobile terminal A and B can be the login account of IM software, and as No. QQ etc., the embodiment of the present invention is not specifically limited this.
After the IP address that 36:IM server receives the transfer server that forward decision server is sent and port, room key and data transfer mode, respectively these information are transmitted to mobile terminal A and B.
37: after mobile terminal A and B receives above-mentioned information, connect with above-mentioned data transfer mode with corresponding transfer server according to the IP address of this transfer server and port respectively, and carry room key and information of mobile terminal request enters above-mentioned video session room.
38: after transfer server receives the request of mobile terminal A and B, respectively the room key of wherein carrying and information of mobile terminal are sent to registrar.
39: the information that registrar is sent according to the forward decision server stored, the room key of carrying mobile terminal A and B respectively and information of mobile terminal are verified, if the information of mobile terminal of room key and correspondence is all legal, then sends to transfer server and enter the successful message in room.
Such as, No. QQ of mobile terminal A legal with corresponding key1, and mobile terminal B No. QQ also legal with corresponding key1, be then proved to be successful.
310: transfer server informs mobile terminal A and B after receiving the message be proved to be successful from registrar respectively, and mobile terminal A and B sets up session and complete, and both sides begin through transfer server transmission of video information, carries out video session.
The said method that the present embodiment provides, mobile terminal A initiates video session request by IM server to mobile terminal B, forward decision server sets up video session room, and according to the two networking type determination data transfer mode and transfer server, the video session room information of registrar to mobile terminal A and B is verified, allowing both sides to enter video session room by transfer server after success is also the two transmission of video information, effectively utilize the advantage of cable network, the situation of combining wireless network, greatly simplifie the flow process that mobile terminal sets up video session, shorten the time that video session is set up, best transmission mode can be selected, reach the effect of distributing the most rational transfer server of connection rationally, thus reach the effect of optimum use network, and, compared with prior art, set up video session room and enter video session room and change parallel processing into by serial process, application is set up video session room and is transferred to cable network from wireless network, decrease the interaction times in wireless network, save the bandwidth of wireless network, improve the experience effect of user, the requirement of user can be met better.Undertaken verifying that the scene be suitable for is more by registrar, application is more flexibly, compatible strong, convenient upgrading and maintenance.
Embodiment 3
See Fig. 4, present embodiments provide a kind of forward decision server, comprising:
Receiver module 41, for when the first mobile terminal initiates video session request by instant messaging IM server to the second mobile terminal, receive the application of setting up video session room that IM server is sent, and the networking type of the first mobile terminal and the second mobile terminal;
Decision-making module 42, for setting up a video session room, according to the networking type of the first mobile terminal and the networking type of the second mobile terminal, determine data transfer mode and the transfer server of the first mobile terminal and the second mobile terminal, the information of the information in video session room, data transfer mode and transfer server is sent to the first mobile terminal and the second mobile terminal respectively by IM server.
In the present embodiment, decision-making module 42 can comprise:
Judging unit, for judging whether the networking type of the first mobile terminal and the second mobile terminal is direct-connected Net or is Wireless Fidelity Wifi;
Decision package, if the result judged for judging unit is yes, then determines that the data transfer mode of the first mobile terminal and the second mobile terminal is user datagram protocol UDP mode; Otherwise, determine that the data transfer mode of the first mobile terminal and the second mobile terminal is transmission control protocol TCP mode.
In the present embodiment, forward decision server can also comprise:
Sending module, for the information in the first mobile terminal and video session room corresponding to the second mobile terminal is issued transfer server, or sends to registrar.
Wherein, in the first mobile terminal and the second mobile terminal, the networking type of any one comprises: Net, Wap or Wifi.
The forward decision server that the present embodiment provides, by setting up video session room for the first and second mobile terminals, and according to the two networking type determination data transfer mode and transfer server, effectively utilize the advantage of cable network, the situation of combining wireless network, greatly simplifie the flow process that mobile terminal sets up video session, shorten the time that video session is set up, best transmission mode can be selected, reach the effect of distributing the most rational transfer server of connection rationally, thus reach the effect of optimum use network; And, compared with prior art, set up video session room and enter video session room and change parallel processing into by serial process, application is set up video session room and is transferred to cable network from wireless network, decrease the interaction times in wireless network, save the bandwidth of wireless network, improve the experience effect of user, the requirement of user can be met better.
Embodiment 4
See Fig. 5, present embodiments provide a kind of registrar, comprising:
Receiver module 51, for receiving the information in the first mobile terminal that forward decision server sends after setting up video session room and video session room corresponding to the second mobile terminal, and receive transfer server and receiving after the first mobile terminal and the second mobile terminal initiate to enter the request in video session room, the information in the video session room carried in the information in the video session room carried in the request of the first mobile terminal sent and the request of the second mobile terminal;
Authentication module 52, for the information in video session room sent according to forward decision server, the information in the video session room carried in the information in the video session room carried in the request respectively to the first mobile terminal and the request of the second mobile terminal is verified, return results after being proved to be successful to transfer server, allow the first mobile terminal and the second mobile terminal to enter video session room to make transfer server.
In the present embodiment, receiver module 51 also for: receive the transfer server Internet protocol IP address of the first equipment of sending and the IP address of the second equipment, described first equipment and the second equipment are respectively the equipment that the first mobile terminal and the second mobile terminal provide service for transfer server inside;
Described registrar also comprises:
Memory module, for the corresponding relation of the IP address of the IP address and the second equipment that store the first equipment, is the first mobile terminal and the second mobile terminal transmission of video information to make the first equipment and the second equipment according to this corresponding relation.
The registrar that the present embodiment provides, after receiving the request that transfer server sends, the video session room information of the first mobile terminal and the second mobile terminal is verified, effectively utilize the advantage of cable network, the situation of combining wireless network, greatly simplifie the flow process that mobile terminal sets up video session, shorten the time that video session is set up; Further, compared with prior art, set up video session room and enter video session room and change parallel processing into by serial process, decrease the interaction times in wireless network, save the bandwidth of wireless network, improve the experience effect of user, the requirement of user can be met better.Undertaken verifying that the scene be suitable for is more by registrar, application is more flexibly, compatible strong, convenient upgrading and maintenance.
Embodiment 5
See Fig. 6, present embodiments provide a kind of system setting up video session, comprising:
Forward decision server 61, for when the first mobile terminal initiates video session request by instant messaging IM server to the second mobile terminal, receive the application of setting up video session room that IM server is sent, and the first networking type of mobile terminal and the second mobile terminal, set up a video session room, according to the networking type of the first mobile terminal and the networking type of the second mobile terminal, determine data transfer mode and the transfer server of the first mobile terminal and the second mobile terminal, by the information in video session room, the information of data transfer mode and transfer server sends to the first mobile terminal and the second mobile terminal respectively by IM server,
Transfer server 62, for receiving the request entering video session room that the first mobile terminal and the second mobile terminal are sent respectively, the information in the video session room carried in the information in the video session room carried in the request of the first mobile terminal and the request of the second mobile terminal is all verified successfully, allowing the first mobile terminal and the second mobile terminal to enter video session room, is the first mobile terminal and the second mobile terminal transmission of video information.
In the present embodiment, transfer server 62 comprises for the first mobile terminal provides the first equipment of service, and provides the second equipment of service for the second mobile terminal, and described system also comprises: registrar;
Transfer server 62 is also for sending to registrar by the IP address of the first equipment and the IP address of the second equipment;
Described registrar is for receiving and storing the corresponding relation of the IP address of the first equipment and the IP address of the second equipment;
Correspondingly, the corresponding relation that the first equipment and the second equipment are used for storing according to described registrar is the first mobile terminal and the second mobile terminal transmission of video information.
In the present embodiment, transfer server 62 can comprise:
Receiver module, for receiving the information in the first mobile terminal that forward decision server sends and video session room corresponding to the second mobile terminal, and receives the request entering video session room that the first mobile terminal and the second mobile terminal send respectively;
Processing module, for the information in video session room sent according to forward decision server, the information in the video session room carried in the information in the video session room carried in the request to the first mobile terminal and the request of the second mobile terminal is verified; If be proved to be successful, then allowing the first mobile terminal and the second mobile terminal to enter video session room, is the first mobile terminal and the second mobile terminal transmission of video information.
In the present embodiment, said system can also comprise registrar;
Forward decision server 61 is also for issuing registrar by the information in the first mobile terminal and video session room corresponding to the second mobile terminal;
Transfer server 62 is also for sending to described registrar by the information in the video session room carried in the request of the information in the video session room carried in the request of described first mobile terminal and described second mobile terminal;
Described registrar, for the information in video session room sent according to forward decision server 61, the information in the video session room carried in the information in the video session room carried in the request respectively to the first mobile terminal and the request of the second mobile terminal is verified, returns results to transfer server 62 after being proved to be successful.
Wherein, the networking type of any one in the first mobile terminal and the second mobile terminal comprises: Net, Wap or Wifi.
In the said system that the present embodiment provides, can implement the method in above-mentioned either method embodiment, its specific implementation process refers to embodiment of the method, repeats no more here.
The said system that the present embodiment provides, first mobile terminal initiates video session request by IM server to the second mobile terminal, forward decision server sets up video session room, and according to the two networking type determination data transfer mode and transfer server, transfer server or the video session room information of registrar to the first mobile terminal and the second mobile terminal are verified, allowing both sides to enter video session room by transfer server after success is also the two transmission of video information, effectively utilize the advantage of cable network, the situation of combining wireless network, greatly simplifie the flow process that mobile terminal sets up video session, shorten the time that video session is set up, best transmission mode can be selected, reach the effect of distributing the most rational transfer server of connection rationally, thus reach the effect of optimum use network, and, compared with prior art, set up video session room and enter video session room and change parallel processing into by serial process, application is set up video session room and is transferred to cable network from wireless network, decrease the interaction times in wireless network, save the bandwidth of wireless network, improve the experience effect of user, the requirement of user can be met better.Undertaken verifying that the scene be suitable for is more by registrar, application is more flexibly, compatible strong, convenient upgrading and maintenance.
Finally it should be noted that, one of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (ROM) or random store-memory body (RAM) etc.
Each functional unit in the embodiment of the present invention can be integrated in a processing module, also can be that the independent physics of unit exists, also can be integrated in a module by two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.If described integrated module using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium.The above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.Above-mentioned each device or system, can perform the method in correlation method embodiment.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (11)
1. set up a method for video session, it is characterized in that, described method comprises:
When the first mobile terminal initiates video session request by instant messaging IM server to the second mobile terminal, forward decision server receives the application of setting up video session room that described IM server is sent, and the networking type of described first mobile terminal and the second mobile terminal;
Described forward decision server sets up a video session room, according to the networking type of described first mobile terminal and the networking type of described second mobile terminal, determine data transfer mode and the transfer server of described first mobile terminal and the second mobile terminal, the information of the information in described video session room, data transfer mode and transfer server is sent to described first mobile terminal and the second mobile terminal respectively by described IM server;
Described transfer server receives the request entering described video session room that described first mobile terminal and described second mobile terminal are sent respectively;
The information in described first mobile terminal and described video session room corresponding to the second mobile terminal is issued described transfer server or registrar by described forward decision server, the information in the described video session room that described transfer server or registrar are sent according to described forward decision server, verifies the information in the video session room that information and described second mobile terminal in the video session room that described first mobile terminal carries carry;
The information in the video session room carried in the information in the video session room that described transfer server carries in the request of described first mobile terminal and the request of described second mobile terminal is all verified successfully, allowing described first mobile terminal and the second mobile terminal to enter described video session room, is described first mobile terminal and the second mobile terminal transmission of video information.
2. method according to claim 1, is characterized in that, according to the networking type of described first mobile terminal and the networking type of described second mobile terminal, determines the data transfer mode of described first mobile terminal and the second mobile terminal, comprising:
Described forward decision server judges whether the networking type of described first mobile terminal and the second mobile terminal is direct-connected Net or is Wireless Fidelity Wifi;
If so, then determine that the data transfer mode of described first mobile terminal and the second mobile terminal is user datagram protocol UDP mode;
Otherwise, determine that the data transfer mode of described first mobile terminal and the second mobile terminal is transmission control protocol TCP mode.
3. method according to claim 1, is characterized in that,
The information in the video session room carried in the information in the video session room that described transfer server carries in the request of described first mobile terminal and the request of described second mobile terminal is all verified successfully, allow described first mobile terminal and the second mobile terminal to enter described video session room, comprising:
The information in the video session room carried in the request of the information in the video session room carried in the request of described first mobile terminal and described second mobile terminal is sent to described registrar by described transfer server;
The information in the described video session room that described registrar is sent according to described forward decision server, the information in the video session room carried in the information in the video session room carried in the request respectively to described first mobile terminal and the request of described second mobile terminal is verified, returns results to described transfer server after being proved to be successful;
After described transfer server receives the result be proved to be successful, described first mobile terminal and the second mobile terminal is allowed to enter described video session room.
4. method according to claim 1, is characterized in that, described method also comprises:
The Internet protocol IP address of the first equipment and the IP address of the second equipment are also sent to registrar by described transfer server, and described first equipment and the second equipment are respectively the equipment that described first mobile terminal and the second mobile terminal provide service for described transfer server inside;
Described registrar receives and stores the corresponding relation of the IP address of described first equipment and the IP address of described second equipment, is described first mobile terminal and the second mobile terminal transmission of video information to make described first equipment and the second equipment according to described corresponding relation.
5. method according to claim 1, is characterized in that, the networking type of any one in described first mobile terminal and the second mobile terminal is direct-connected Net, acts on behalf of Wap or Wireless Fidelity Wifi.
6. a forward decision server, is characterized in that, described forward decision server comprises:
Receiver module, for when the first mobile terminal initiates video session request by instant messaging IM server to the second mobile terminal, receive the application of setting up video session room that described IM server is sent, and the networking type of described first mobile terminal and the second mobile terminal;
Decision-making module, for setting up a video session room, according to the networking type of described first mobile terminal and the networking type of described second mobile terminal, determine data transfer mode and the transfer server of described first mobile terminal and the second mobile terminal, the information of the information in described video session room, data transfer mode and transfer server is sent to described first mobile terminal and the second mobile terminal respectively by described IM server;
Described forward decision server also comprises:
Sending module, for the information in described first mobile terminal and described video session room corresponding to the second mobile terminal is issued described transfer server, or sends to registrar.
7. forward decision server according to claim 6, is characterized in that, described decision-making module comprises:
Judging unit, for judging whether the networking type of described first mobile terminal and the second mobile terminal is direct-connected Net or is Wireless Fidelity Wifi;
Decision package, if the result judged for described judging unit is yes, then determines that the data transfer mode of described first mobile terminal and the second mobile terminal is user datagram protocol UDP mode; Otherwise, determine that the data transfer mode of described first mobile terminal and the second mobile terminal is transmission control protocol TCP mode.
8. a registrar, is characterized in that, described registrar comprises:
Receiver module, for receiving the information in the first mobile terminal that forward decision server sends after setting up video session room and described video session room corresponding to the second mobile terminal, and receive transfer server and receiving after described first mobile terminal and the second mobile terminal initiate to enter the request in described video session room, the information in the video session room carried in the information in the video session room carried in the request of described first mobile terminal sent and the request of described second mobile terminal;
Authentication module, for the information in described video session room sent according to described forward decision server, the information in the video session room carried in the information in the video session room carried in the request respectively to described first mobile terminal and the request of described second mobile terminal is verified, return results to described transfer server after being proved to be successful, allow described first mobile terminal and the second mobile terminal to enter described video session room to make described transfer server.
9. registrar according to claim 8, it is characterized in that, described receiver module also for: receive the Internet protocol IP address of the first equipment that described transfer server is sent and the IP address of the second equipment, described first equipment and the second equipment are respectively the equipment that described first mobile terminal and the second mobile terminal provide service for described transfer server inside;
Described registrar also comprises:
Memory module, for the corresponding relation of the IP address of the IP address and described second equipment that store described first equipment, be described first mobile terminal and the second mobile terminal transmission of video information to make described first equipment and the second equipment according to described corresponding relation.
10. set up a system for video session, it is characterized in that, described system comprises:
Forward decision server, for when the first mobile terminal initiates video session request by instant messaging IM server to the second mobile terminal, receive the application of setting up video session room that described IM server is sent, and the networking type of described first mobile terminal and the second mobile terminal, set up a video session room, according to the networking type of described first mobile terminal and the networking type of described second mobile terminal, determine data transfer mode and the transfer server of described first mobile terminal and the second mobile terminal, by the information in described video session room, the information of data transfer mode and transfer server sends to described first mobile terminal and the second mobile terminal respectively by described IM server,
Described forward decision server is also for issuing described transfer server or registrar by the information in described first mobile terminal and described video session room corresponding to the second mobile terminal, the information in the described video session room that described transfer server or registrar are sent according to described forward decision server, verifies the information in the video session room that information and described second mobile terminal in the video session room that described first mobile terminal carries carry;
Transfer server, for receiving the request entering described video session room that described first mobile terminal and described second mobile terminal are sent respectively, the information in the video session room carried in the information in the video session room carried in the request of described first mobile terminal and the request of described second mobile terminal is all verified successfully, allowing described first mobile terminal and the second mobile terminal to enter described video session room, is described first mobile terminal and the second mobile terminal transmission of video information.
11. systems according to claim 10, it is characterized in that, described transfer server comprises for described first mobile terminal provides the first equipment of service, and provides the second equipment of service for described second mobile terminal, and described system also comprises: registrar;
Described transfer server is also for sending to described registrar by the IP address of the Internet protocol IP address of described first equipment and described second equipment;
Described registrar is for receiving and storing the corresponding relation of the IP address of described first equipment and the IP address of described second equipment;
The described corresponding relation that described first equipment and the second equipment are used for storing according to described registrar is described first mobile terminal and the second mobile terminal transmission of video information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110149089.4A CN102811335B (en) | 2011-06-03 | 2011-06-03 | Set up the method, apparatus and system of video session |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110149089.4A CN102811335B (en) | 2011-06-03 | 2011-06-03 | Set up the method, apparatus and system of video session |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102811335A CN102811335A (en) | 2012-12-05 |
CN102811335B true CN102811335B (en) | 2016-02-24 |
Family
ID=47234899
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110149089.4A Active CN102811335B (en) | 2011-06-03 | 2011-06-03 | Set up the method, apparatus and system of video session |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102811335B (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104333728B (en) * | 2013-07-22 | 2019-02-12 | 腾讯科技(深圳)有限公司 | Audio video transmission regulates and controls method, apparatus, system and computer readable storage medium |
CN104333727B (en) * | 2013-07-22 | 2019-04-12 | 腾讯科技(深圳)有限公司 | Audio video transmission channel regulates and controls methods, devices and systems |
CN104378326B (en) * | 2013-08-12 | 2018-06-01 | 联想(北京)有限公司 | Information processing equipment, server and the method for it |
CN104519022A (en) * | 2013-09-29 | 2015-04-15 | 北京新媒传信科技有限公司 | Method and device for establishing connecting channel |
CN105635632B (en) * | 2014-11-05 | 2018-09-14 | 南宁富桂精密工业有限公司 | stream media transmission system and method |
CN105991707B (en) * | 2015-02-10 | 2019-11-19 | 腾讯科技(深圳)有限公司 | Multimedia interaction method, server and system |
CN105025246A (en) * | 2015-07-27 | 2015-11-04 | 上海网达软件股份有限公司 | Video call system and video call method for accelerating display of videos of opposite sides |
CN106488169B (en) | 2015-08-28 | 2019-09-13 | 腾讯科技(深圳)有限公司 | A kind of method, system and the relevant device of data transmission |
CN105338288A (en) * | 2015-11-20 | 2016-02-17 | 深圳联友科技有限公司 | Multi-people network video session method and system |
CN106713814B (en) * | 2016-12-30 | 2019-02-15 | 维沃移动通信有限公司 | A kind of method and terminal of video calling |
CN111930846B (en) * | 2020-09-15 | 2021-02-23 | 支付宝(杭州)信息技术有限公司 | Data processing method, device and equipment |
CN112333190B (en) * | 2020-11-05 | 2024-05-03 | 深圳Tcl新技术有限公司 | Session control method, session control device, and computer-readable storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101083758A (en) * | 2006-05-29 | 2007-12-05 | 腾讯科技(深圳)有限公司 | System and method for building audio/video conversation |
CN101184194A (en) * | 2007-12-04 | 2008-05-21 | 华为技术有限公司 | Method, system and device for playing video |
US20100165888A1 (en) * | 2003-12-22 | 2010-07-01 | Linqware, Inc. | System and method for initiating a conference call |
-
2011
- 2011-06-03 CN CN201110149089.4A patent/CN102811335B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100165888A1 (en) * | 2003-12-22 | 2010-07-01 | Linqware, Inc. | System and method for initiating a conference call |
CN101083758A (en) * | 2006-05-29 | 2007-12-05 | 腾讯科技(深圳)有限公司 | System and method for building audio/video conversation |
CN101184194A (en) * | 2007-12-04 | 2008-05-21 | 华为技术有限公司 | Method, system and device for playing video |
Also Published As
Publication number | Publication date |
---|---|
CN102811335A (en) | 2012-12-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102811335B (en) | Set up the method, apparatus and system of video session | |
CN107836104B (en) | Method and system for internet communication with machine equipment | |
CN102761864B (en) | Data transmission method, system and device | |
JP6054484B2 (en) | System and method using a client local proxy server to access a device having an assigned network address | |
US9036517B2 (en) | Methods and apparatus for establishing a tunneled direct link setup (TDLS) session between devices in a wireless network | |
CN108200165B (en) | Request Transmission system, method, apparatus and storage medium | |
CN109981316A (en) | The switching method and session management network element, terminal device of application server | |
CN103873342B (en) | A kind of method for adding social group, terminal and system | |
CN104796396A (en) | Network proxy layer for policy-based application proxies | |
KR20130135953A (en) | System and method using a web proxy-server to access a device having an assigned network address | |
CN110830925A (en) | Session management method and device for user group | |
US20120033616A1 (en) | Mobile terminal and peer-to-peer mode based data transmission method thereof | |
WO2010139151A1 (en) | Method and system for realizing concurrent access of multi-kinds of bearer protocols on machine-to-machine (m2m) platform | |
WO2014135050A1 (en) | Message processing method, device, gateway, set-top box and internet protocol television system | |
US20140089431A1 (en) | Instant messaging method, terminal, server, and system | |
CN107222561A (en) | A kind of transport layer reverse proxy method | |
JP2013546261A (en) | Mobile Internet service realization method, gateway, proxy and system | |
JP2024513803A (en) | Network information exposure methods, devices, electronic devices, and computer programs | |
CN104821909A (en) | Peer-to-peer data transmission method and system | |
US20220060560A1 (en) | Cloud communication method and apparatus | |
JP2024512661A (en) | Network information release methods, devices, electronic devices and programs | |
CN104410982A (en) | Terminal aggregation and refactoring method in wireless heterogeneous network | |
WO2013056552A1 (en) | Service data processing method, device and system | |
JP2012085299A (en) | Remote downloading method, system, and persistent computer readable storage medium | |
CN106227490A (en) | The method that cloud desktop system, cloud terminal and application add multicast group |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |