[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN105376194B - Real-time communication method, system and platform device - Google Patents

Real-time communication method, system and platform device Download PDF

Info

Publication number
CN105376194B
CN105376194B CN201410401714.3A CN201410401714A CN105376194B CN 105376194 B CN105376194 B CN 105376194B CN 201410401714 A CN201410401714 A CN 201410401714A CN 105376194 B CN105376194 B CN 105376194B
Authority
CN
China
Prior art keywords
media stream
media
real
service
time communication
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
Application number
CN201410401714.3A
Other languages
Chinese (zh)
Other versions
CN105376194A (en
Inventor
赵继壮
杨鑫
吕国松
付斌
叶华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN201410401714.3A priority Critical patent/CN105376194B/en
Publication of CN105376194A publication Critical patent/CN105376194A/en
Application granted granted Critical
Publication of CN105376194B publication Critical patent/CN105376194B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephonic Communication Services (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of real-time communication method, system and platform devices, are related to the communications field.Wherein real-time communication method includes: that real-time communication platform equipment is requested by the media stream service that web interface receives business initiation user's transmission, and business model and target component that business initiation user specifies are carried in media stream service request;Real-time communication platform equipment initiates the media stream service between user's target corresponding with target component based on distribution subscription model according to business model processing business.The Media Stream real time communication scheme based on distribution subscription model realization that the embodiment of the present invention proposes, platform side can connect the voice and video stream between each terminal, more flexible unilateral subscription, bilateral subscription, group subscription etc. can be supported to share class innovative service.

Description

Real-time communication method, system and platform equipment
Technical Field
The invention relates to the field of communication, in particular to a real-time communication method, a real-time communication system and a real-time communication platform device based on a publish-subscribe model.
Background
Under the promotion of the internet industry, the browser has already matured to support the WebRTC (Web real time Communication, Web page real time Communication) standard, and the generated real time Communication innovation services are also fierce, such as voip (network phone) call, voice and video live broadcast, a real time Communication capability platform, and the like, but the WebRTC is only a local voice and video capability standard interface on the terminal side, and how to realize the real time Communication service on the platform side to connect the voice and video streams between the terminals is a problem to be considered.
The existing real-time communication platform mostly adopts SIP (Session Initiation Protocol) signaling, which can provide good support for voip service, but is not flexible enough for endless sharing type innovation services in the internet due to the relatively solidified system form.
Disclosure of Invention
One object of an embodiment of the present invention is: a real-time communication scheme with different concepts is provided, so that a platform side can connect voice and video streams among terminals, and sharing innovative services are supported more flexibly.
According to an aspect of an embodiment of the present invention, a real-time communication method is provided, including: the real-time communication platform equipment receives a media stream service request sent by a service initiating user through a web interface, and the media stream service request carries a service mode and a target parameter specified by the service initiating user; and the real-time communication platform equipment processes the media stream service between the service initiating user and the target corresponding to the target parameter according to the service mode based on a publish-subscribe model.
In one embodiment, the receiving, by the real-time communication platform device, the media stream service request sent by the service initiating user through the web interface includes: the real-time communication platform equipment receives a request for publishing the streaming media sent by a service initiating user through a web interface, wherein the request for publishing the streaming media carries a single-side subscription service mode specified by the service initiating user and an identifier of a target user; the real-time communication platform equipment processes the media stream service between the service initiating user and the target corresponding to the target parameter according to the service mode based on the publish-subscribe model, and comprises the following steps: the real-time communication platform equipment receives a media stream issued by a service initiating user through a web interface, distributes a media stream identifier for the media stream and forwards the media stream to a selected media server; the real-time communication platform equipment pushes a message published by a media stream to a target user through a web interface, responds to a request initiated by the target user for subscribing the media stream, and sends the capability information of the media server to the target user, so that the target user establishes media stream connection with the media server according to the capability information of the media server and acquires the media stream from the media server.
In one embodiment, the receiving, by the real-time communication platform device, the media stream service request sent by the service initiating user through the web interface includes: the real-time communication platform equipment receives a bilateral subscription request sent by a service initiating user through a web interface and forwards the bilateral subscription request to a target user, wherein the bilateral subscription request carries a bilateral subscription service mode specified by the service initiating user and an identifier of the target user; the real-time communication platform equipment receives a bilateral subscription response returned by a target user through a web interface and forwards the bilateral subscription response to a service initiating user; the real-time communication platform equipment processes the media stream service between the service initiating user and the target corresponding to the target parameter according to the service mode based on the publish-subscribe model, and comprises the following steps: the real-time communication platform equipment receives a first media stream issued by a service initiating user through a web interface, distributes a media stream identifier for the first media stream, and forwards the first media stream to a selected media server; the real-time communication platform equipment pushes a message published by a media stream to a target user through a web interface, responds to a request initiated by the target user for subscribing a first media stream, and sends the capability information of the media server to the target user, so that the target user establishes media stream connection with the media server according to the capability information of the media server and acquires the first media stream from the media server; the real-time communication platform equipment receives a second media stream issued by a target user through a web interface, distributes a media stream identifier for the second media stream, and forwards the second media stream to a selected media server; the real-time communication platform equipment pushes a message published by a media stream to a service initiating user through a web interface, responds to a request for subscribing a second media stream initiated by the service initiating user, and forwards the request for subscribing the second media stream to the media server so that the media server can send the second media stream to the service initiating user.
In one embodiment, the receiving, by the real-time communication platform device, the media stream service request sent by the service initiating user through the web interface includes: the real-time communication platform equipment receives a group subscription request sent by an administrator of a service initiating group through a web interface, wherein the group subscription request carries a group subscription service mode specified by the administrator of the service initiating group and an identifier of a target group; the real-time communication platform equipment processes the media stream service between the service initiating user and the target corresponding to the target parameter according to the service mode based on the publish-subscribe model, and comprises the following steps: the real-time communication platform equipment receives a media stream issued by an administrator of a service initiation group through a web interface, distributes a media stream identifier for the media stream, and forwards the media stream to a selected media server; the real-time communication platform equipment pushes a message published by a media stream to an administrator of a target group through a web interface, responds to a request initiated by the administrator of the target group for subscribing the media stream, and sends the capability information of the media server to the administrator of the target group, so that the administrator of the target group establishes media stream connection with the media server according to the capability information of the media server and obtains the media stream from the media server.
In one embodiment, the real-time communication method further comprises: the real-time communication platform equipment pushes a message issued by a media stream to other members except an administrator in a target group; or the real-time communication platform equipment pushes the message published by the media stream to other groups except the service initiating group and the target group.
In one embodiment, before the real-time communication platform device receives the media stream published by the service initiating user through the web interface, the method further includes: the real-time communication platform equipment receives the capability information of a service initiating user terminal sent by a service initiating user through a web interface and forwards the capability information to a selected media server; the real-time communication platform equipment receives the capability information of the media server returned by the media server through a web interface and forwards the capability information to the service initiating user, so that the service initiating user establishes media stream connection with the media server according to the capability information of the media server.
According to another aspect of the embodiments of the present invention, a real-time communication platform device is provided, which includes: the system comprises a streaming media service interface module, a web interface module and a service processing module, wherein the streaming media service interface module is used for receiving a media streaming service request sent by a service initiating user through the web interface, and the media streaming service request carries a service mode and a target parameter specified by the service initiating user; and the media stream service processing module is used for processing the media stream service between the service initiating user and the target corresponding to the target parameter according to the service mode based on the publish-subscribe model.
In one embodiment, the streaming media service interface module includes: the system comprises a unilateral subscription interface unit, a service initiating user and a target user, wherein the unilateral subscription interface unit is used for receiving a request for publishing the streaming media sent by the service initiating user through a web interface, and the request for publishing the streaming media carries a unilateral subscription service mode specified by the service initiating user and an identifier of the target user; the media stream service processing module comprises: the system comprises a unilateral subscription processing unit, a media server and a service provider, wherein the unilateral subscription processing unit is used for receiving a media stream issued by a service initiator through a web interface, distributing a media stream identifier for the media stream, and forwarding the media stream to a selected media server; the method comprises the steps of pushing a message published by a media stream to a target user through a web interface, responding to a request initiated by the target user for subscribing the media stream, and sending the capability information of a media server to the target user so that the target user establishes media stream connection with the media server according to the capability information of the media server and acquires the media stream from the media server.
In one embodiment, the streaming media service interface module includes: the system comprises a bilateral subscription interface unit, a service initiating user and a target user, wherein the bilateral subscription interface unit is used for receiving a bilateral subscription request sent by the service initiating user through a web interface and forwarding the bilateral subscription request to the target user, and the bilateral subscription request carries a bilateral subscription service mode specified by the service initiating user and an identifier of the target user; receiving a bilateral subscription response returned by a target user through a web interface, and forwarding the bilateral subscription response to a service initiating user; the media stream service processing module comprises: the system comprises a bilateral subscription processing unit, a service initiating user and a server, wherein the bilateral subscription processing unit is used for receiving a first media stream issued by the service initiating user through a web interface, distributing a media stream identifier for the first media stream, and forwarding the first media stream to a selected media server; the method comprises the steps that a message published by a media stream is pushed to a target user through a web interface, the capability information of a media server is sent to the target user in response to a first media stream subscription request initiated by the target user, so that the target user establishes media stream connection with the media server according to the capability information of the media server and acquires the first media stream from the media server; receiving a second media stream issued by a target user through a web interface, distributing a media stream identifier for the second media stream, and forwarding the second media stream to a selected media server; and pushing a message published by the media stream to a service initiating user through a web interface, responding to a request for subscribing the second media stream initiated by the service initiating user, and forwarding the request for subscribing the second media stream to the media server so that the media server can send the second media stream to the service initiating user.
In one embodiment, the streaming media service interface module includes: the group subscription interface unit is used for receiving a group subscription request sent by an administrator of a service initiating group through a web interface, wherein the group subscription request carries a group subscription service mode specified by the administrator of the service initiating group and an identifier of a target group; the media stream service processing module comprises: the group subscription processing module is used for receiving a media stream issued by an administrator of a service initiation group through a web interface, distributing a media stream identifier for the media stream, and forwarding the media stream to a selected media server; the method comprises the steps of pushing a message published by a media stream to an administrator of a target group through a web interface, responding to a request for subscribing the media stream initiated by the administrator of the target group, and sending capability information of a media server to the administrator of the target group, so that the administrator of the target group establishes media stream connection with the media server according to the capability information of the media server, and acquires the media stream from the media server.
In one embodiment, the group subscription processing module is further configured to: pushing a message published by a media stream to other members except the administrator in the target group; or, the message published by the media stream is pushed to other groups except the service initiating group and the target group.
In one embodiment, the real-time communication platform device further comprises: the media stream connection processing module is used for receiving the capability information of the service initiating user terminal sent by the service initiating user through the web interface before receiving the media stream issued by the service initiating user through the web interface and forwarding the capability information to the selected media server; and receiving the capability information of the media server returned by the media server through a web interface, and forwarding the capability information to the service initiating user so that the service initiating user establishes media stream connection with the media server according to the capability information of the media server.
According to another aspect of the embodiments of the present invention, a real-time communication system is provided, which includes: the user terminal is configured to send a media streaming service request, streaming media, and a request for subscribing to the streaming media to the real-time communication platform device, where the media streaming service request includes: a request to publish streaming media, a bilateral subscription request, and a group subscription request.
According to another aspect of the embodiments of the present invention, a real-time communication method is provided, including: a service initiating user terminal sends a request for releasing a media stream to a real-time communication platform device, wherein the request for releasing the media stream carries a single-side subscription service mode specified by a service initiating user and an identifier of a target user, and triggers the service initiating user terminal to establish media stream connection with a media server; the service initiating user terminal issues the media stream to the media server through the real-time communication platform equipment.
In one embodiment, the real-time communication method further comprises: the target user terminal receives a message which is pushed by the real-time communication platform equipment and is published by a media stream, sends a request for subscribing the media stream to the real-time communication platform equipment and triggers the target user terminal to establish media stream connection with a media server; the target user terminal obtains the media stream issued by the service initiating user from the media server.
According to another aspect of the embodiments of the present invention, a real-time communication method is provided, including: a service initiating user terminal sends a bilateral subscription request to a real-time communication platform device, wherein the bilateral subscription request carries a bilateral subscription service mode specified by a service initiating user and an identification of a target user; a service initiating user terminal receives a bilateral subscription response returned by a target user terminal and triggers the service initiating user terminal to establish media stream connection with a media server; the service initiating user terminal issues the media stream to the media server through the real-time communication platform equipment; the service initiating user terminal obtains the media stream issued by the target user from the media server.
In one embodiment, the real-time communication method further comprises: a target user terminal receives a message which is pushed by a real-time communication platform device and is published by a media stream, sends a request for subscribing the media stream to the real-time communication platform device, and triggers the target user terminal to establish media stream connection with a media server; a target user terminal acquires a media stream issued by a service initiating user from a media server; and the target user terminal issues the media stream to the media server through the real-time communication platform equipment.
According to another aspect of the embodiments of the present invention, a real-time communication method is provided, including: the method comprises the steps that an administrator terminal of a service initiating group sends a group subscription request to real-time communication platform equipment, wherein the group subscription request carries a group subscription service mode specified by an administrator of the service initiating group and an identifier of a target group, and triggers the administrator of the service initiating group to establish media stream connection with a media server; and the administrator terminal of the service initiating group issues the media stream to the media server through the real-time communication platform equipment.
In one embodiment, the real-time communication method further comprises: the method comprises the steps that an administrator terminal of a target group receives a message which is pushed by a real-time communication platform device and is published by a media stream, sends a request for subscribing the media stream to the real-time communication platform device, and triggers the administrator terminal of the target group to establish media stream connection with a media server; and the administrator terminal of the target group acquires the media stream issued by the administrator of the service initiating group from the media server.
According to another aspect of the embodiments of the present invention, a real-time communication user terminal is provided, which includes: the system comprises a publishing module, a media server and a service server, wherein the publishing module is used for sending a request for publishing a media stream to a real-time communication platform device, the request for publishing the media stream carries a single-side subscription service mode specified by a service initiating user and an identifier of a target user, and triggers the media stream to be established with the media server; issuing the media stream to a media server through the real-time communication platform device; the subscription module is used for receiving a message which is pushed by the real-time communication platform equipment and published by a media stream, sending a request for subscribing the media stream to the real-time communication platform equipment and triggering the establishment of media stream connection with a media server; and acquiring the media stream issued by the service initiating user from the media server.
According to another aspect of the embodiments of the present invention, a real-time communication user terminal is provided, which includes: the system comprises a publishing module, a service initiating module and a target user sending a bilateral subscription request to a real-time communication platform device, wherein the bilateral subscription request carries a bilateral subscription service mode specified by a service initiating user and an identifier of the target user; receiving a bilateral subscription response returned by a target user, and triggering to establish media stream connection with a media server; issuing the media stream to a media server through the real-time communication platform device; the subscription module is used for receiving a message which is pushed by the real-time communication platform equipment and published by a media stream, sending a request for subscribing the media stream to the real-time communication platform equipment and triggering the establishment of media stream connection with a media server; and acquiring the media stream issued by the service initiating user or the target user from the media server.
According to another aspect of the embodiments of the present invention, a real-time communication user terminal is provided, which includes: the publishing module is used for sending a group subscription request to the real-time communication platform equipment, wherein the group subscription request carries a group subscription service mode specified by a service initiating user and an identifier of a target group, and triggers the establishment of media stream connection with a media server; issuing the media stream to a media server through the real-time communication platform device; the subscription module is used for receiving a message which is pushed by the real-time communication platform equipment and published by a media stream, sending a request for subscribing the media stream to the real-time communication platform equipment and triggering the establishment of media stream connection with a media server; and acquiring the media stream issued by the service initiating user from the media server.
On one hand, according to the media stream real-time propagation scheme realized based on the publish-subscribe model provided by the embodiment of the invention, the platform side can connect the voice and video streams among all the terminals, and can more flexibly support the sharing type innovative services such as single-side subscription, double-side subscription, group subscription and the like.
On the other hand, the media stream real-time propagation scheme implemented based on the publish-subscribe model provided in the embodiment of the present invention can shield the complexity of media stream negotiation for developers, and the user terminal side can support various real-time applications, such as single-side subscription, double-side subscription, group subscription, and the like, by setting the service mode and the target parameter, only paying attention to the publish function and the subscribe function.
Other features of the present invention and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart illustrating a real-time communication method based on a publish-subscribe mode according to an embodiment of the present invention.
Fig. 2 is a flowchart illustrating an embodiment of a single-subscription real-time communication method according to the present invention.
Fig. 3 is a flowchart illustrating an embodiment of a bilateral subscription real-time communication method according to the present invention.
Fig. 4 is a flowchart illustrating a group subscription real-time communication method according to an embodiment of the present invention.
FIG. 5 is a schematic diagram illustrating information dissemination of group subscriptions in accordance with the present invention.
Fig. 6 is a schematic structural diagram of an embodiment of a real-time communication system based on a publish-subscribe mode according to the present invention.
Fig. 7 is a schematic structural diagram of an embodiment of a user terminal according to the present invention.
Fig. 8 is a schematic structural diagram of an embodiment of a real-time communication platform device according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
The real-time communication platform equipment provides an API (application program interface) for the third-party application platform, developers can develop a real-time communication function based on a publish-subscribe mode for the user terminal based on the third-party application platform, and the developers only need to pay attention to the publish function and the subscribe function during development and do not need to pay attention to a complex media stream negotiation process. Specifically, a developer first obtains an application identifier (APP ID) and an application password (APP KEY) from a self-service portal of the real-time communication platform device, provides the APP ID and the APP KEY for verification, initializes a platform side SDK (software development kit) after the verification is passed, then calls a group creation request API provided by the platform side SDK, and obtains the group ID and a plurality of group access tokens with different permissions from the real-time communication platform device by performing signaling interaction with the real-time communication platform device (the access tokens respectively aim at three roles of a group manager, a media publisher and a media subscriber). The developer initializes a terminal SDK on the user terminal, and transmits a group access token, which is used by the terminal SDK to establish a long connection with the real-time communication platform device. After the connection is established, the user can use the terminal to communicate with other users in real time within the access right.
Fig. 1 is a flowchart illustrating a real-time communication method based on a publish-subscribe mode according to an embodiment of the present invention. As shown in fig. 1, the real-time communication method of the present embodiment includes the following steps:
s102, the real-time communication platform equipment receives a media stream service request sent by a service initiating user through a web interface, and the media stream service request carries a service mode and a target parameter specified by the service initiating user.
The service mode may be, for example, single-side subscription, double-side subscription, or group subscription, and other service modes may also be extended according to service needs. In the single-side subscription and double-side subscription service modes, the target parameter may be an identifier of a target user, and in the group subscription service mode, the target parameter may be an identifier of a target group.
And S104, the real-time communication platform equipment processes the media stream service between the service initiating user and the target corresponding to the target parameter according to the service mode based on the publish-subscribe model.
Compared with the existing publish-subscribe model which can only realize message transmission, the media stream real-time propagation scheme realized based on the publish-subscribe model provided by the embodiment of the invention can connect the voice video streams among all terminals at the platform side, and can more flexibly support the sharing innovative services such as single-side subscription, double-side subscription, group subscription and the like.
The following describes the real-time communication method based on the publish-subscribe mode, with single-side subscription, double-side subscription, and group subscription as examples.
Fig. 2 is a flowchart illustrating an embodiment of a single-subscription real-time communication method according to the present invention. As shown in fig. 2, the real-time communication method of the present embodiment includes the following steps:
s202, a user 1 (service initiating user) sends a request for releasing a media stream to the real-time communication platform equipment, wherein the request for releasing the media stream carries a single-side subscription service mode specified by the service initiating user and an identifier of a target user.
One or more target users, one target user 2 is exemplarily shown in fig. 2. In one application scenario, the target user may be all other users of the group, and may also be set in a default state, that is, when the user 1 does not specify the target user, the default target user is all other users of the group.
As a specific implementation, when a user needs to publish his own media stream, a media stream publishing method called publish by a function name of a terminal SDK is called through an interface element provided by a developer, a service mode in the function is filled as a single-side subscription, and a target parameter in the function is filled in a user ID set which the publisher wants to watch his own live broadcast.
After a request of a media stream is published or a publish function is called, a media stream negotiation process (see S204-S206) is automatically triggered, which refers to the prior art, and developers need not to additionally implement the media stream negotiation process, but only concern about the implementation of a publishing function and a subscribing function.
S204, the user 1 sends the capability information of the terminal to the real-time communication platform equipment, the real-time communication platform equipment selects a proper media server, and the capability information of the user 1 terminal is forwarded to the media server.
The capability information of the terminal includes, for example, codec capability, ICE (internet communications engine) capability, and the like. The capability information of the terminal may be sent, for example, in the form of an SDP (session description protocol) message, which is named SDP offer containing capability information of the terminal.
The real-time communication platform device may select a suitable media server for the user 1 according to the distance from the network path of the user 1, the idle degree of the media server, the supported codec type, and other information.
And S206, the media server returns the capability information of the server to the user 1 through the real-time communication platform equipment according to the capability information of the user 1 terminal. The user 1 establishes media stream connection with the media server according to the capability information of the media server.
The capability information of the media server includes, for example, codec capability, frame rate, port, and the like. The capability information of the media server may be sent, for example, in the form of an SDP message, which contains the capability information of the media server and is named SDP answer.
S208, user 1 sends the media stream.
S210, after receiving the media stream sent by the user 1, the real-time communication platform device allocates a media stream ID to the media stream and forwards the media stream to the media server.
S212, the real-time communication platform device pushes a message issued by a media stream to the target user 2, where the message content may include a media stream ID and a media simple description.
S214, if the target user 2 wants to view the media stream, sending a request for subscribing the media stream to the real-time communication platform device.
As a specific implementation, when a user wants to view a media stream, a media stream subscription method called a function name of a terminal SDK as subscription is called through an interface element provided by a developer, and the function includes a media stream ID to which the user wants to subscribe.
S216, the real-time communication platform device may authenticate the subscription request of the media stream, and if the authentication is passed, send capability information (SDP answer) of the media server to the target user 2, and the user establishes a media stream connection with the media server according to the capability information of the media server.
S218, the target user 2 obtains the subscribed media stream from the media server, and the media server sends the media stream to the target user 2.
In the embodiment, the media stream real-time propagation scheme of single-side subscription is realized based on the publish-subscribe model, and the platform side can transmit the media stream published by a certain user to the target user subscribing the media stream in the same group, so that the single-side subscription service is flexibly supported. Moreover, developers do not need to process complex media stream building logic and only need to pay attention to the publishing function and the subscribing function.
Fig. 3 is a flowchart illustrating an embodiment of a bilateral subscription real-time communication method according to the present invention. As shown in fig. 3, the real-time communication method of the present embodiment includes the following steps:
s302, a user 1 (service initiating user) sends a bilateral subscription request to the real-time communication platform device, wherein the bilateral subscription request carries a bilateral subscription service mode specified by the service initiating user and an identifier of a target user.
One or more target users, one target user 2 is exemplarily shown in fig. 3. In one application scenario, the target user may be all other users of the group, and may also be set in a default state, that is, when the user 1 does not specify the target user, the default target user is all other users of the group.
As a specific implementation, when a user wants to establish a bilateral subscription service mode, a media stream publishing method called publish by a function name of a terminal SDK is invoked through an interface element provided by a developer, the service mode in the function is filled as bilateral subscription, and a target parameter in the function is filled as a target user ID set with which the bilateral subscription service is to be established.
And S304, the real-time communication platform equipment forwards the bilateral subscription request to the target user 2.
And S306, after receiving the bilateral subscription request sent by the user 1, the target user 2 determines whether to accept bilateral subscription, and returns a bilateral subscription response.
S308, after receiving the bilateral subscription response forwarded by the real-time communication platform device, the user 1 may automatically trigger a media stream negotiation process if the target user 2 agrees to the bilateral subscription (see S310-S312).
S310, the user 1 sends the SDP supply containing the terminal capability information of the user 1 to the real-time communication platform equipment, and the real-time communication platform equipment selects a proper media server and forwards the SDP supply to the media server.
S312, the media server sends the SDP answer containing the capability information of the server to the user 1 through the real-time communication platform device. The user 1 establishes media stream connection with the media server according to the capability information of the media server.
The processes S314 to S324 of the user 1 issuing the first media stream (set as the media stream 1) and pushing to the target user 2 are the same as the processes S208 to S218, and are not described herein again.
The process for user 2 to publish the second media stream (set as media stream 2) and push to the target user 1 is as follows:
s326, the user 2 transmits the second media stream (set to media stream 2).
S328, after receiving the media stream 2 sent by the user 2, the real-time communication platform device allocates a media stream ID to the media stream 2, and forwards the media stream 2 to the media server.
S330, the real-time communication platform device pushes a message issued by a media stream to the user 1, and the message content may include a media stream ID and a media simple description.
S332, if the user 1 wants to view the media stream 2, a request for subscribing the media stream is sent to the media server through the real-time communication platform device.
S334, the media server sends the media stream 2 to the user 1, thereby implementing a bilateral subscription.
In the embodiment, the media stream real-time propagation scheme of bilateral subscription is realized based on a publish-subscribe model, a platform side can transmit the media stream published by a certain user to a target user subscribing the media stream in the same group, and the media stream published by the target user is also transmitted to a user initiating a service, so that the bilateral subscription service is flexibly supported. Moreover, developers do not need to process complex media stream building logic and only need to pay attention to the publishing function and the subscribing function.
Fig. 4 is a flowchart illustrating a group subscription real-time communication method according to an embodiment of the present invention. As shown in fig. 4, the real-time communication method of the present embodiment includes the following steps:
s402, the administrator of the service initiating group 1 sends a group subscription request to the real-time communication platform equipment, wherein the group subscription request carries a group subscription service mode and a target group identifier specified by the administrator of the service initiating group.
The target group may be one or more, and fig. 2 illustrates an exemplary target group 2.
As a specific implementation, when a user wants to establish a group subscription service mode, a media stream publishing method called publish by a function name of a terminal SDK is called through an interface element provided by a developer, the service mode in the function is filled as a group subscription, and a target parameter in the function is filled as a target group ID set with which the group subscription service is to be established.
After sending the group subscription request or calling the publish function, a media stream negotiation process is automatically triggered (see S404-S406).
S404, the administrator of the group 1 sends the SDP including the capability information of the terminal to the real-time communication platform device, and the real-time communication platform device selects a proper media server and forwards the SDP to the media server.
S406, the media server returns an SDP answer containing the capability information of the server to the administrator of the group 1 through the real-time communication platform device. The administrator of the group 1 establishes media stream connection with the media server according to the capability information of the media server.
S408, the administrator of group 1 sends the media stream.
S410, after receiving the media stream sent by the administrator of the group 1, the real-time communication platform equipment allocates a media stream ID to the media stream and forwards the media stream to the media server.
S412, the real-time communication platform device pushes a message issued by a media stream to the target group 2, where the message content may include a media stream ID and a media simple description.
S414, if the administrator of the target group 2 wants to check the media stream, send a request for subscribing the media stream to the real-time communication platform device.
As a specific implementation, when an administrator wants to view a media stream, a function name of the terminal SDK is called a subscription method of the media stream through an interface element provided by a developer, and the function includes a media stream ID to which a user wants to subscribe.
S416, the real-time communication platform device may authenticate the subscription request of the media stream, and if the authentication is passed, send an SDP answer containing the capability information of the media server to the target group 2, and the administrator of the target group 2 establishes a media stream connection with the media server according to the capability information of the media server.
S418, the administrator of the target group 2 acquires the subscribed media stream from the media server, and the media server sends the media stream to the administrator of the target group 2.
The target group 2 may push the new media stream to other user members in the group 2, and push a message with media release to the user members, and the target group 2 may also push the new media stream to other groups. As shown in FIG. 5, the administrator of group A may push the new media stream to user member 1 and user member 2 in the group, or may push the new media stream to other groups, such as group B1 and group B2. The propagation of the group media stream may refer to a single-sided subscription process, which is not described herein again.
In the embodiment, the real-time media stream propagation scheme for group subscription is realized based on the publish-subscribe model, and the platform side can transmit the media stream published by the administrator of a certain group to other groups, so that the group subscription service is flexibly supported. Moreover, developers do not need to process complex media stream building logic and only need to pay attention to the publishing function and the subscribing function.
Fig. 6 is a schematic structural diagram of an embodiment of a real-time communication system according to the present invention. As shown in fig. 6, the real-time communication system 60 includes a user terminal 61 and a real-time communication platform device 62. The user terminal 61 is mainly used for sending a media stream service request to the real-time communication platform device, where the media stream service request carries a service mode and a target parameter specified by a service initiating user, and can send a stream media and a request for subscribing to the stream media. The real-time communication platform device 62 processes the media stream service between the service initiating user and the target corresponding to the target parameter according to the service mode based on the publish-subscribe model.
The user terminal 61 may be, for example, a personal computer, a mobile terminal, a browser terminal, and the like, and each terminal may access the real-time communication platform device by using a corresponding signaling access manner, such as xhr, websocket, tcp, and the like.
Fig. 7 is a schematic structural diagram of an embodiment of a real-time communication user terminal according to the present invention. As shown in fig. 7, the user terminal 61 of the present embodiment includes: a publish module 711 and a subscribe module 712.
In the unilateral subscription service mode, the publishing module 711 is configured to send a request for publishing a media stream to the real-time communication platform device, where the request for publishing the media stream carries a unilateral subscription service mode specified by a service initiating user and an identifier of a target user, and triggers establishment of a media stream connection with a media server; issuing the media stream to a media server through the real-time communication platform device; the subscription module 712 is configured to receive a message that is pushed by the real-time communication platform device and published by a media stream, send a request for subscribing to the media stream to the real-time communication platform device, and trigger establishment of a media stream connection with the media server; and acquiring the media stream issued by the service initiating user from the media server.
In the bilateral subscription service mode, the publishing module 711 is configured to send a bilateral subscription request to the real-time communication platform device, where the bilateral subscription request carries a bilateral subscription service mode specified by a service initiating user and an identifier of a target user; receiving a bilateral subscription response returned by a target user, and triggering to establish media stream connection with a media server; issuing the media stream to a media server through the real-time communication platform device; the subscription module 712 is configured to receive a message that is pushed by the real-time communication platform device and published by a media stream, send a request for subscribing to the media stream to the real-time communication platform device, and trigger establishment of a media stream connection with the media server; and acquiring the media stream issued by the service initiating user or the target user from the media server.
In the group subscription service mode, the publishing module 711 is configured to send a group subscription request to the real-time communication platform device, where the group subscription request carries a group subscription service mode specified by a service initiating user and an identifier of a target group, and triggers establishment of a media stream connection with the media server; issuing the media stream to a media server through the real-time communication platform device; the subscription module 712 is configured to receive a message that is pushed by the real-time communication platform device and published by a media stream, send a request for subscribing to the media stream to the real-time communication platform device, and trigger establishment of a media stream connection with the media server; and acquiring the media stream issued by the service initiating user from the media server.
The media stream real-time propagation scheme realized based on the publish-subscribe model provided by the embodiment of the invention can shield the complexity of media stream negotiation for developers, and a user terminal side can support various real-time applications such as single-side subscription, double-side subscription, group subscription and the like by only paying attention to the publish function and the subscribe function and setting a service mode and target parameters.
Fig. 8 is a schematic structural diagram of an embodiment of a real-time communication platform device according to the present invention. As shown in fig. 8, the real-time communication platform device 62 of the present embodiment includes:
a streaming media service interface module 821, configured to receive a media streaming service request sent by a service initiating user through a web interface, where the media streaming service request carries a service mode and a target parameter specified by the service initiating user;
and a media stream service processing module 822, configured to process, according to the service mode, a media stream service between the service initiating user and the target corresponding to the target parameter based on the publish-subscribe model.
In one embodiment, the streaming media service interface module 821 includes: the unilateral subscription interface unit is used for receiving a request for publishing the streaming media sent by a service initiating user through a web interface, wherein the request for publishing the streaming media carries a unilateral subscription service mode specified by the service initiating user and an identifier of a target user; the media stream service processing module 822 includes: the unilateral subscription processing unit is used for receiving the media stream issued by the service initiating user through the web interface, distributing media stream identification for the media stream and forwarding the media stream to the selected media server; the method comprises the steps of pushing a message published by a media stream to a target user through a web interface, responding to a request for subscribing the media stream initiated by the target user, and sending the capability information of a media server to the target user so that the target user can establish media stream connection with the media server according to the capability information of the media server and acquire the media stream from the media server.
In one embodiment, the streaming media service interface module 821 includes: the bilateral subscription interface unit is used for receiving a bilateral subscription request sent by a service initiating user through a web interface and forwarding the bilateral subscription request to a target user, wherein the bilateral subscription request carries a bilateral subscription service mode specified by the service initiating user and an identifier of the target user; receiving a bilateral subscription response returned by a target user through a web interface, and forwarding the bilateral subscription response to a service initiating user; the media stream service processing module 822 includes: the bilateral subscription processing unit is used for receiving a first media stream issued by a service initiating user through a web interface, distributing a media stream identifier for the first media stream, and forwarding the first media stream to a selected media server; the method comprises the steps that a message published by a media stream is pushed to a target user through a web interface, the capability information of a media server is sent to the target user in response to a first media stream subscription request initiated by the target user, so that the target user establishes media stream connection with the media server according to the capability information of the media server and acquires the first media stream from the media server; receiving a second media stream issued by a target user through a web interface, distributing a media stream identifier for the second media stream, and forwarding the second media stream to a selected media server; and pushing a message published by the media stream to the service initiating user through the web interface, responding to a request for subscribing the second media stream initiated by the service initiating user, and forwarding the request for subscribing the second media stream to the media server so that the media server sends the second media stream to the service initiating user.
In one embodiment, the streaming media service interface module 821 includes: the group subscription interface unit is used for receiving a group subscription request sent by an administrator of the service initiating group through the web interface, wherein the group subscription request carries a group subscription service mode specified by the administrator of the service initiating group and an identifier of a target group; the media stream service processing module 822 includes: the group subscription processing module is used for receiving the media stream issued by an administrator of a service initiation group through a web interface, distributing a media stream identifier for the media stream and forwarding the media stream to the selected media server; the method comprises the steps of pushing a message published by a media stream to an administrator of a target group through a web interface, responding to a request for subscribing the media stream initiated by the administrator of the target group, and sending capability information of a media server to the administrator of the target group, so that the administrator of the target group establishes media stream connection with the media server according to the capability information of the media server and acquires the media stream from the media server.
A group subscription processing module, further configured to: pushing a message published by a media stream to other members except the administrator in the target group; or, the message published by the media stream is pushed to other groups except the service initiating group and the target group.
The real-time communication platform device 62 further includes: the media stream connection processing module is used for receiving the capability information of the service initiating user terminal sent by the service initiating user through the web interface before receiving the media stream issued by the service initiating user through the web interface and forwarding the capability information to the selected media server; and receiving the capability information of the media server returned by the media server through the web interface, and forwarding the capability information to the service initiating user so that the service initiating user establishes media stream connection with the media server according to the capability information of the media server.
According to the media stream real-time propagation scheme based on the publish-subscribe model, the platform side can connect the voice video streams among the terminals, and sharing innovative services such as single-side subscription, double-side subscription and group subscription can be supported more flexibly.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (20)

1. A method of real-time communication, comprising:
the real-time communication platform equipment receives a media stream service request sent by a service initiating user through a web interface, and the media stream service request carries a service mode and a target parameter specified by the service initiating user, wherein the service mode comprises single-side subscription, double-side subscription or group subscription;
the real-time communication platform equipment receives the capability information of a service initiating user terminal sent by a service initiating user through a web interface and forwards the capability information to a selected media server;
the real-time communication platform equipment receives the capability information of the media server returned by the media server according to the capability information of the service initiating user terminal through a web interface, and forwards the capability information to the service initiating user so that the service initiating user establishes media stream connection with the media server according to the capability information of the media server;
and the real-time communication platform equipment processes the media stream service between the service initiating user and the target corresponding to the target parameter according to the service mode based on a publish-subscribe model.
2. The method of claim 1, wherein the receiving, by the real-time communication platform device, the media stream service request sent by the service initiating user through the web interface comprises:
the real-time communication platform equipment receives a request for publishing the streaming media sent by a service initiating user through a web interface, wherein the request for publishing the streaming media carries a single-side subscription service mode specified by the service initiating user and an identifier of a target user;
the real-time communication platform equipment processes the media stream service between the service initiating user and the target corresponding to the target parameter according to the service mode based on the publish-subscribe model, and comprises the following steps:
the real-time communication platform equipment receives a media stream issued by a service initiating user through a web interface, distributes a media stream identifier for the media stream and forwards the media stream to a selected media server;
the real-time communication platform equipment pushes a message published by a media stream to a target user through a web interface, responds to a request initiated by the target user for subscribing the media stream, and sends the capability information of the media server to the target user, so that the target user establishes media stream connection with the media server according to the capability information of the media server and acquires the media stream from the media server.
3. The method of claim 1, wherein the receiving, by the real-time communication platform device, the media stream service request sent by the service initiating user through the web interface comprises:
the real-time communication platform equipment receives a bilateral subscription request sent by a service initiating user through a web interface and forwards the bilateral subscription request to a target user, wherein the bilateral subscription request carries a bilateral subscription service mode specified by the service initiating user and an identifier of the target user;
the real-time communication platform equipment receives a bilateral subscription response returned by a target user through a web interface and forwards the bilateral subscription response to a service initiating user;
the real-time communication platform equipment processes the media stream service between the service initiating user and the target corresponding to the target parameter according to the service mode based on the publish-subscribe model, and comprises the following steps:
the real-time communication platform equipment receives a first media stream issued by a service initiating user through a web interface, distributes a media stream identifier for the first media stream, and forwards the first media stream to a selected media server;
the real-time communication platform equipment pushes a message published by a media stream to a target user through a web interface, responds to a request initiated by the target user for subscribing a first media stream, and sends the capability information of the media server to the target user, so that the target user establishes media stream connection with the media server according to the capability information of the media server and acquires the first media stream from the media server;
the real-time communication platform equipment receives a second media stream issued by a target user through a web interface, distributes a media stream identifier for the second media stream, and forwards the second media stream to a selected media server;
the real-time communication platform equipment pushes a message published by a media stream to a service initiating user through a web interface, responds to a request for subscribing a second media stream initiated by the service initiating user, and forwards the request for subscribing the second media stream to the media server so that the media server can send the second media stream to the service initiating user.
4. The method of claim 1, wherein the receiving, by the real-time communication platform device, the media stream service request sent by the service initiating user through the web interface comprises:
the real-time communication platform equipment receives a group subscription request sent by an administrator of a service initiating group through a web interface, wherein the group subscription request carries a group subscription service mode specified by the administrator of the service initiating group and an identifier of a target group;
the real-time communication platform equipment processes the media stream service between the service initiating user and the target corresponding to the target parameter according to the service mode based on the publish-subscribe model, and comprises the following steps:
the real-time communication platform equipment receives a media stream issued by an administrator of a service initiation group through a web interface, distributes a media stream identifier for the media stream, and forwards the media stream to a selected media server;
the real-time communication platform equipment pushes a message published by a media stream to an administrator of a target group through a web interface, responds to a request initiated by the administrator of the target group for subscribing the media stream, and sends the capability information of the media server to the administrator of the target group, so that the administrator of the target group establishes media stream connection with the media server according to the capability information of the media server and obtains the media stream from the media server.
5. The method of claim 4, further comprising:
the real-time communication platform equipment pushes a message issued by a media stream to other members except an administrator in a target group; or,
the real-time communication platform equipment pushes the message published by the media stream to other groups except the service initiating group and the target group.
6. A real-time communication platform device, comprising:
the system comprises a streaming media service interface module, a web interface module and a service management module, wherein the streaming media service interface module is used for receiving a media streaming service request sent by a service initiating user through the web interface, and the media streaming service request carries a service mode and a target parameter specified by the service initiating user, wherein the service mode comprises single-side subscription, double-side subscription or group subscription;
the media stream connection processing module is used for receiving the capability information of the service initiating user terminal sent by the service initiating user through the web interface and forwarding the capability information to the selected media server; receiving the capability information of the media server returned by the media server according to the capability information of the service initiating user terminal through a web interface, and forwarding the capability information to the service initiating user so that the service initiating user establishes media stream connection with the media server according to the capability information of the media server;
and the media stream service processing module is used for processing the media stream service between the service initiating user and the target corresponding to the target parameter according to the service mode based on the publish-subscribe model.
7. The apparatus of claim 6,
the streaming media service interface module comprises: the system comprises a unilateral subscription interface unit, a service initiating user and a target user, wherein the unilateral subscription interface unit is used for receiving a request for publishing the streaming media sent by the service initiating user through a web interface, and the request for publishing the streaming media carries a unilateral subscription service mode specified by the service initiating user and an identifier of the target user;
the media stream service processing module comprises: the system comprises a unilateral subscription processing unit, a media server and a service provider, wherein the unilateral subscription processing unit is used for receiving a media stream issued by a service initiator through a web interface, distributing a media stream identifier for the media stream, and forwarding the media stream to a selected media server; the method comprises the steps of pushing a message published by a media stream to a target user through a web interface, responding to a request initiated by the target user for subscribing the media stream, and sending the capability information of a media server to the target user so that the target user establishes media stream connection with the media server according to the capability information of the media server and acquires the media stream from the media server.
8. The apparatus of claim 6,
the streaming media service interface module comprises: the system comprises a bilateral subscription interface unit, a service initiating user and a target user, wherein the bilateral subscription interface unit is used for receiving a bilateral subscription request sent by the service initiating user through a web interface and forwarding the bilateral subscription request to the target user, and the bilateral subscription request carries a bilateral subscription service mode specified by the service initiating user and an identifier of the target user; receiving a bilateral subscription response returned by a target user through a web interface, and forwarding the bilateral subscription response to a service initiating user;
the media stream service processing module comprises: the system comprises a bilateral subscription processing unit, a service initiating user and a server, wherein the bilateral subscription processing unit is used for receiving a first media stream issued by the service initiating user through a web interface, distributing a media stream identifier for the first media stream, and forwarding the first media stream to a selected media server; the method comprises the steps that a message published by a media stream is pushed to a target user through a web interface, the capability information of a media server is sent to the target user in response to a first media stream subscription request initiated by the target user, so that the target user establishes media stream connection with the media server according to the capability information of the media server and acquires the first media stream from the media server; receiving a second media stream issued by a target user through a web interface, distributing a media stream identifier for the second media stream, and forwarding the second media stream to a selected media server; and pushing a message published by the media stream to a service initiating user through a web interface, responding to a request for subscribing the second media stream initiated by the service initiating user, and forwarding the request for subscribing the second media stream to the media server so that the media server can send the second media stream to the service initiating user.
9. The apparatus of claim 6,
the streaming media service interface module comprises: the group subscription interface unit is used for receiving a group subscription request sent by an administrator of a service initiating group through a web interface, wherein the group subscription request carries a group subscription service mode specified by the administrator of the service initiating group and an identifier of a target group;
the media stream service processing module comprises: the group subscription processing module is used for receiving a media stream issued by an administrator of a service initiation group through a web interface, distributing a media stream identifier for the media stream, and forwarding the media stream to a selected media server; the method comprises the steps of pushing a message published by a media stream to an administrator of a target group through a web interface, responding to a request for subscribing the media stream initiated by the administrator of the target group, and sending capability information of a media server to the administrator of the target group, so that the administrator of the target group establishes media stream connection with the media server according to the capability information of the media server, and acquires the media stream from the media server.
10. The device of claim 9, wherein the group subscription processing module is further configured to: pushing a message published by a media stream to other members except the administrator in the target group; or, the message published by the media stream is pushed to other groups except the service initiating group and the target group.
11. A real-time communication system, comprising: the real-time communication platform device and the user terminal as claimed in any one of claims 6 to 10, the user terminal being configured to send a media streaming service request, streaming media, and a request for subscribing to streaming media to the real-time communication platform device, wherein the media streaming service request includes: a request to publish streaming media, a bilateral subscription request, and a group subscription request.
12. A method of real-time communication, comprising:
a service initiating user terminal sends a request for releasing a media stream to a real-time communication platform device, wherein the request for releasing the media stream carries a single-side subscription service mode specified by a service initiating user and an identifier of a target user, and triggers the service initiating user terminal to establish media stream connection with a media server;
the service initiating user terminal issues the media stream to the media server through the real-time communication platform equipment;
wherein, triggering the service initiating user terminal to establish media stream connection with the media server comprises:
the service initiating user terminal sends the capability information of the service initiating user terminal to the real-time communication platform equipment, so that the real-time communication platform equipment forwards the capability information of the media server to the selected media server, and receives and forwards the capability information of the media server returned by the media server according to the capability information of the service initiating user terminal;
and the service initiating user terminal receives the capability information of the media server forwarded by the real-time communication platform equipment and establishes media stream connection with the media server according to the capability information of the media server.
13. The method of claim 12, further comprising:
a target user terminal receives a message which is pushed by a real-time communication platform device and is published by a media stream, sends a request for subscribing the media stream to the real-time communication platform device, and triggers the target user terminal to establish media stream connection with a media server;
the target user terminal obtains the media stream issued by the service initiating user from the media server.
14. A method of real-time communication, comprising:
a service initiating user terminal sends a bilateral subscription request to a real-time communication platform device, wherein the bilateral subscription request carries a bilateral subscription service mode specified by a service initiating user and an identification of a target user;
a service initiating user terminal receives a bilateral subscription response returned by a target user terminal and triggers the service initiating user terminal to establish media stream connection with a media server;
the service initiating user terminal issues the media stream to the media server through the real-time communication platform equipment;
a service initiating user terminal acquires a media stream issued by a target user from a media server;
wherein, triggering the service initiating user terminal to establish media stream connection with the media server comprises:
the service initiating user terminal sends the capability information of the service initiating user terminal to the real-time communication platform equipment, so that the real-time communication platform equipment forwards the capability information of the media server to the selected media server, and receives and forwards the capability information of the media server returned by the media server according to the capability information of the service initiating user terminal;
and the service initiating user terminal receives the capability information of the media server forwarded by the real-time communication platform equipment and establishes media stream connection with the media server according to the capability information of the media server.
15. The method of claim 14, further comprising:
a target user terminal receives a message which is pushed by a real-time communication platform device and is published by a media stream, sends a request for subscribing the media stream to the real-time communication platform device, and triggers the target user terminal to establish media stream connection with a media server;
a target user terminal acquires a media stream issued by a service initiating user from a media server;
and the target user terminal issues the media stream to the media server through the real-time communication platform equipment.
16. A method of real-time communication, comprising:
the method comprises the steps that an administrator terminal of a service initiating group sends a group subscription request to real-time communication platform equipment, wherein the group subscription request carries a group subscription service mode specified by an administrator of the service initiating group and an identifier of a target group, and triggers the administrator of the service initiating group to establish media stream connection with a media server;
the administrator terminal of the service initiating group issues the media stream to the media server through the real-time communication platform equipment;
wherein, triggering the service initiating user terminal to establish media stream connection with the media server comprises:
the service initiating user terminal sends the capability information of the service initiating user terminal to the real-time communication platform equipment, so that the real-time communication platform equipment forwards the capability information of the media server to the selected media server, and receives and forwards the capability information of the media server returned by the media server according to the capability information of the service initiating user terminal;
and the service initiating user terminal receives the capability information of the media server forwarded by the real-time communication platform equipment and establishes media stream connection with the media server according to the capability information of the media server.
17. The method of claim 16, further comprising:
the method comprises the steps that an administrator terminal of a target group receives a message which is pushed by a real-time communication platform device and is published by a media stream, sends a request for subscribing the media stream to the real-time communication platform device, and triggers the administrator terminal of the target group to establish media stream connection with a media server;
and the administrator terminal of the target group acquires the media stream issued by the administrator of the service initiating group from the media server.
18. A real-time communication user terminal, comprising:
the system comprises a publishing module, a media server and a service server, wherein the publishing module is used for sending a request for publishing a media stream to a real-time communication platform device, the request for publishing the media stream carries a single-side subscription service mode specified by a service initiating user and an identifier of a target user, and triggers the media stream to be established with the media server; issuing the media stream to a media server through the real-time communication platform device;
the subscription module is used for receiving a message which is pushed by the real-time communication platform equipment and published by a media stream, sending a request for subscribing the media stream to the real-time communication platform equipment and triggering the establishment of media stream connection with a media server; acquiring a media stream issued by a service initiating user from a media server;
wherein triggering establishment of a media stream connection with a media server comprises:
sending the capability information of the user terminal to the real-time communication platform equipment, so that the real-time communication platform equipment forwards the capability information to the selected media server, and receiving and forwarding the capability information of the media server returned by the media server according to the capability information of the user terminal;
and receiving the capability information of the media server forwarded by the real-time communication platform equipment, and establishing media stream connection with the media server according to the capability information of the media server.
19. A real-time communication user terminal, comprising:
the system comprises a publishing module, a service initiating module and a target user sending a bilateral subscription request to a real-time communication platform device, wherein the bilateral subscription request carries a bilateral subscription service mode specified by a service initiating user and an identifier of the target user; receiving a bilateral subscription response returned by a target user, and triggering to establish media stream connection with a media server; issuing the media stream to a media server through the real-time communication platform device;
the subscription module is used for receiving a message which is pushed by the real-time communication platform equipment and published by a media stream, sending a request for subscribing the media stream to the real-time communication platform equipment and triggering the establishment of media stream connection with a media server; acquiring a media stream issued by a service initiating user or a target user from a media server;
wherein triggering establishment of a media stream connection with a media server comprises:
sending the capability information of the user terminal to the real-time communication platform equipment, so that the real-time communication platform equipment forwards the capability information to the selected media server, and receiving and forwarding the capability information of the media server returned by the media server according to the capability information of the user terminal;
and receiving the capability information of the media server forwarded by the real-time communication platform equipment, and establishing media stream connection with the media server according to the capability information of the media server.
20. A real-time communication user terminal, comprising:
the publishing module is used for sending a group subscription request to the real-time communication platform equipment, wherein the group subscription request carries a group subscription service mode specified by a service initiating user and an identifier of a target group, and triggers the establishment of media stream connection with a media server; issuing the media stream to a media server through the real-time communication platform device;
the subscription module is used for receiving a message which is pushed by the real-time communication platform equipment and published by a media stream, sending a request for subscribing the media stream to the real-time communication platform equipment and triggering the establishment of media stream connection with a media server; acquiring a media stream issued by a service initiating user from a media server;
wherein triggering establishment of a media stream connection with a media server comprises:
sending the capability information of the user terminal to the real-time communication platform equipment, so that the real-time communication platform equipment forwards the capability information to the selected media server, and receiving and forwarding the capability information of the media server returned by the media server according to the capability information of the user terminal;
and receiving the capability information of the media server forwarded by the real-time communication platform equipment, and establishing media stream connection with the media server according to the capability information of the media server.
CN201410401714.3A 2014-08-15 2014-08-15 Real-time communication method, system and platform device Active CN105376194B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410401714.3A CN105376194B (en) 2014-08-15 2014-08-15 Real-time communication method, system and platform device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410401714.3A CN105376194B (en) 2014-08-15 2014-08-15 Real-time communication method, system and platform device

Publications (2)

Publication Number Publication Date
CN105376194A CN105376194A (en) 2016-03-02
CN105376194B true CN105376194B (en) 2019-03-26

Family

ID=55378008

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410401714.3A Active CN105376194B (en) 2014-08-15 2014-08-15 Real-time communication method, system and platform device

Country Status (1)

Country Link
CN (1) CN105376194B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102321889B1 (en) * 2017-01-09 2021-11-03 후아웨이 테크놀러지 컴퍼니 리미티드 Media downlink transmission control method and related devices

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108418779B (en) * 2017-02-10 2020-12-08 华为技术有限公司 Method for real-time communication in Internet of things and related equipment
CN108173902A (en) * 2017-11-29 2018-06-15 清华大学 Data transmission, publication and method for subscribing and device
CN108848121A (en) * 2018-05-03 2018-11-20 广州视源电子科技股份有限公司 Screen picture transmission method, device, server, system and storage medium
CN111027966B (en) * 2019-11-07 2023-08-22 中国建设银行股份有限公司 Service processing method and system
CN113347501B (en) * 2020-02-18 2023-01-20 青岛聚看云科技有限公司 Video playing method and device
CN114079828A (en) * 2020-08-21 2022-02-22 京东方科技集团股份有限公司 Method and device for processing streaming media data

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101232632A (en) * 2007-01-22 2008-07-30 华为技术有限公司 Method, system for implementing stream medium business and stream medium business control function body
CN101686222A (en) * 2008-09-27 2010-03-31 中兴通讯股份有限公司 Media resource system and method for providing media resources
CN101854288A (en) * 2009-04-01 2010-10-06 工业和信息化部电信传输研究所 Control method and system for stream media in telecommunications network
CN102185728A (en) * 2011-06-10 2011-09-14 上海志新信息科技有限公司 Communication system and method with unified management platform

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101232632A (en) * 2007-01-22 2008-07-30 华为技术有限公司 Method, system for implementing stream medium business and stream medium business control function body
CN101686222A (en) * 2008-09-27 2010-03-31 中兴通讯股份有限公司 Media resource system and method for providing media resources
CN101854288A (en) * 2009-04-01 2010-10-06 工业和信息化部电信传输研究所 Control method and system for stream media in telecommunications network
CN102185728A (en) * 2011-06-10 2011-09-14 上海志新信息科技有限公司 Communication system and method with unified management platform

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102321889B1 (en) * 2017-01-09 2021-11-03 후아웨이 테크놀러지 컴퍼니 리미티드 Media downlink transmission control method and related devices

Also Published As

Publication number Publication date
CN105376194A (en) 2016-03-02

Similar Documents

Publication Publication Date Title
CN105376194B (en) Real-time communication method, system and platform device
US11997231B2 (en) System and method for determining and communicating presence information
KR102148046B1 (en) Calling an unready terminal
KR101289945B1 (en) System and method for push-to-share file distribution with previews
US20150149566A1 (en) Messaging service active device
CN112738559A (en) Screen projection implementation method, device and system
WO2014067367A1 (en) Method, apparatus and device for establishing call
CN112738575A (en) Screen projection implementation method, device and system
EP3641262A1 (en) Communication method and device, application server, user equipment and system
US20130122872A1 (en) Apparatus and method for push-to-share file distribution with previews
JP5557262B2 (en) Method and system for presenting multimedia ringtone for instant message
KR20150104139A (en) Apparatus and method for push-to-share file distribution with previews
US9049310B2 (en) Data communication
KR20180077720A (en) Apparatus and method for interworking between call based on id and call based on phone number
US9906652B2 (en) Shifting of communication session charges
US10412124B2 (en) Initiating a server-directed communication session
KR101528268B1 (en) System and method for streaming content to remote locations
KR20180021448A (en) System and method for group communication, apparatus therefor
KR20110111475A (en) System and method for purchasing goods or services using a group communication from a wireless communication device
EP3554035A1 (en) Method and device for communications based on integrating device, and storage medium
CN116708380A (en) Method, device and system for executing call related service
CN112272099A (en) Calling method and device and computer equipment
KR20120026918A (en) Method and service apparatus for providing contents appointed by caller to call-receiver

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant