WO2009076847A1 - A method, a device and a system for playing video - Google Patents

A method, a device and a system for playing video Download PDF

Info

Publication number
WO2009076847A1
WO2009076847A1 PCT/CN2008/073296 CN2008073296W WO2009076847A1 WO 2009076847 A1 WO2009076847 A1 WO 2009076847A1 CN 2008073296 W CN2008073296 W CN 2008073296W WO 2009076847 A1 WO2009076847 A1 WO 2009076847A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
terminal
media
video service
network side
Prior art date
Application number
PCT/CN2008/073296
Other languages
French (fr)
Chinese (zh)
Inventor
Kai Wen
Original Assignee
Huawei Technologies Co., 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 Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Publication of WO2009076847A1 publication Critical patent/WO2009076847A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/647Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
    • H04N21/64746Control signals issued by the network directed to the server or the client
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • H04L65/612Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for unicast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/42Systems providing special services or facilities to subscribers
    • H04M3/487Arrangements for providing information services, e.g. recorded voice services or time announcements
    • H04M3/4872Non-interactive information services
    • H04M3/4878Advertisement messages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/10Architectures or entities
    • H04L65/1016IP multimedia subsystem [IMS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2201/00Electronic components, circuits, software, systems or apparatus used in telephone systems
    • H04M2201/50Telephonic communication in combination with video communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M7/00Arrangements for interconnection between switching centres
    • H04M7/006Networks other than PSTN/ISDN providing telephone service, e.g. Voice over Internet Protocol (VoIP), including next generation networks with a packet-switched transport layer

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method, device, and system for playing video. Background technique
  • an initial SIP protocol terminal with video playback capability.
  • a terminal does not make a video call, its screen is idle, and the network operator can use the idle resource to play to the user.
  • Video media content including advertisements, etc.
  • an operator can play an advertisement on a user terminal before a user makes a video call or an audio call, thereby creating greater value for the telecommunications backward value chain.
  • the network device needs to inform the terminal of the advertisement address, and the terminal automatically acquires the advertisement video media stream according to the address, thereby realizing playing the advertisement on the terminal.
  • the technology can play video on the terminal, the technology needs to be implemented mainly by the terminal, and the corresponding terminal needs corresponding processing function. Since the number of terminals in the network is large, it is obviously unrealistic to require all terminals to have the above-mentioned processing functions. Therefore, the prior art relies too much on the terminal, which may affect the scalability of the advertisement service, and is not conducive to the rapid promotion of the advertisement service.
  • the purpose of the embodiments of the present invention is to provide a method, a device, and a system for playing a video, so as to implement video playback and video playback control through a network side device, thereby avoiding excessive dependence on the terminal and improving the video service. Scalability.
  • a method of playing a video comprising:
  • the network side device determines the current call state.
  • a device for playing video the device comprising:
  • a call state determining unit configured to determine a current call state after the video service is triggered; the determining unit, configured to determine whether the current call state meets a video playing condition, and notify the media negotiation unit of the determination result;
  • a media negotiating unit configured to perform media negotiation with the terminal when it is known that the current call state meets a video playing condition
  • a video service playing unit configured to play a video to the terminal after determining that the media negotiation unit performs the media negotiation successfully.
  • a system for playing video comprising a video service server and a SIP server, wherein: the video service server is configured to: after triggering a video service, determine a current call state, and satisfy a video playing condition in the determined call state When the media negotiation is performed with the terminal, and after the negotiation is successful, the video is played to the terminal;
  • the SIP server is configured to: perform registration and triggering of a video service, and perform message routing when the video service server performs media negotiation with the terminal.
  • the method, the device and the system provided by the embodiments of the present invention can perform video playback and video playback mainly by using the network side device, thereby reducing the dependence on the terminal and facilitating the service scalability.
  • the effective integration with other services is enhanced, and the efficiency of the video service is improved.
  • the embodiments of the present invention are applicable to all types of terminals, which is beneficial to the rapid realization and promotion of video services.
  • the video service provided by the embodiment of the present invention in particular, the advertisement service, enables the user to enjoy the discount on the call charge by watching the video.
  • the video service can be charged from the video provider through the video service. Costs, which increase their revenue; for video providers, they can get the corresponding business benefits by publishing videos.
  • FIG. 1 is a schematic diagram of a video service network used in an embodiment of the present invention.
  • FIG. 2 is a flowchart of playing an advertisement video during a call establishment process according to an embodiment of the present invention
  • FIG. 3 is a flowchart of playing an advertisement video during a call establishment process according to another embodiment of the present invention
  • FIG. 4 is an implementation of the present invention
  • FIG. 5 is a flowchart of implementing video playback control according to an embodiment of the present invention
  • FIG. 5-1 is a flowchart of implementing stop video playback according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of an apparatus for playing a video according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a system for playing video according to an embodiment of the present invention.
  • the embodiment of the present invention implements a video service by using the video service network shown in FIG. 1.
  • the network includes a video service management system 101 and a video service execution system 102, where:
  • the video service management system 101 is configured to manage video services, and the system specifically includes: a portal, a video service policy management unit, and a video content management unit, where:
  • the portal is configured to provide an operation interface for the user to set the video service policy and upload the video content; the portal may further provide an interface to the operator operator, so that the operator uses the interface to audit the video content and Manage video business strategies;
  • the video service policy management unit is used to implement management functions such as setting, deleting, and modifying a video service policy.
  • the specific video service policies are various. Taking the advertisement service as an example, the advertisement policy may be: time period and/or call.
  • the stage specifies the advertisement video file to be played, plays the advertisement video file according to the user group to which the current user belongs, and plays the advertisement video file according to the user's preference;
  • the video content management unit is configured to: receive and save the uploaded video file, review the video file, deliver the video file, and delete and query the video file.
  • the video service execution system 102 is configured to specifically execute a video service, and the system includes: a video service server, a media resource server (MRS), and a SIP server, where:
  • the video service server is responsible for the execution of specific video service logic
  • the MRS is controlled by the video service server as a media resource component.
  • the function of the MRS is integrated into the video service server;
  • the SIP server is configured to: perform registration of the user, triggering of the user video service, and SIP message routing, and the SIP server and the video service server may implement an interaction using an interface similar to the 3GPP IMS ISC.
  • the embodiment of the present invention provides the following method for playing video and controlling video playback.
  • the video service is used as the video service and the advertisement video is taken as the video content.
  • the video involved may of course be other content and other.
  • the form of video does not affect the implementation of embodiments of the present invention.
  • the network side device determines the current call state.
  • the network side device When the call state meets the video playing condition, the network side device performs media negotiation with the terminal. After the negotiation succeeds, the network side device plays the video to the terminal.
  • the method may further include:
  • the network side device stops playing the video to the terminal.
  • the triggering of the video service may be completed by the SIP server as described in the foregoing network, and the video service server is used as the network side device to complete the judgment of the video playing condition, the media negotiation, and the video playing.
  • the call state includes the following:
  • the call state is waiting for the off-hook state. Since the video call is not currently performed, the playback of the advertisement video at this time does not affect the normal call between the users. It can be obtained that the call state satisfies the video playing condition;
  • the call state at this time is the audio call state; since the advertisement video is not played, the audio call between the users is not generated. Influence, so that the call state at this time can be obtained to satisfy the video playing condition;
  • the call state at this time is the audio and video call state, and the video call is being played between the users, if the advertisement is further played.
  • the video is bound to affect the video call between users. Therefore, it can be judged that the call state at this time does not satisfy the video playback condition.
  • the user can switch between audio and video, and the corresponding conditions of the video play.
  • the advertisement service is taken as a video service as an example, The method provided by the embodiment is described in detail; wherein, the advertisement service is a service in which an advertisement server plays an advertisement to a contracted user, and the service realizes that "there is an advertisement, there is an advertisement, and the purpose is.
  • the corresponding server can play advertisements for the user before the user establishes the call and during the call.
  • the corresponding information can be obtained by watching/listening the advertisement
  • the advertisement can be obtained by watching/listening the advertisement.
  • the discount on the call charge, for the operator can provide the user with an advertisement, and collect the advertisement fee from the advertiser, thereby obtaining a considerable income;
  • the advertisement server is the user terminal to the user side thereof. A server that provides advertising services.
  • playing an advertisement video during a call establishment process includes the following steps:
  • Step 201 The calling user initiates a call to the called user, and the terminal UE1 of the calling user sends a call setup request (INVITE) message to the SIP server, where the INVITE message carries a voice media description to indicate that the current request is to establish a voice call.
  • INVITE call setup request
  • the INVITE message carrying the voice media description is represented as: INVITE(Al); where "A" is Audio, and A1 indicates that there is one audio media capability description line in the SDP carried by the INVITE.
  • V is Vedio
  • VI indicates that there is a video media capability description line in the SDP.
  • Step 202 to step 203 The SIP server triggers an advertisement service for the calling user, and routes the INVITE (Al) message to the advertisement server (AS); wherein the AS is a video service server that implements an advertisement service;
  • Step 204 The AS records the related state of the media SDP information and the call status carried in the INVITE message, and routes the INVITE (Al) message back to the SIP server.
  • Step 205 The SIP server routes the INVITE (Al) message to the called terminal UE2.
  • the routing process in this step may also pass through other SIP servers or other service servers in the middle of the routing process. Narrative
  • Step 206 to step 207 The called terminal UE2 returns a 180 response to the AS via the SIP server to inform the AS that the called terminal is currently waiting for the called user to go off-hook;
  • Step 208 After receiving the 180 response, the AS learns that the called user terminal is currently in the off-hook waiting state, and the AS determines that the UE1 is currently capable of receiving the video media stream according to the media capability of the calling terminal UE1. Determining to send a video advertisement to the UE1; In this step, the AS needs to perform the determination according to the media capability of the calling terminal UE1. Because the UE1 initiates the voice call request in step 201, it only carries the audio media description. Therefore, the AS cannot send according to the UE1. The SDP OFFER in the incoming INVITE message determines the real media capability of the UE1, but needs to be predicted by other means.
  • the simpler way is: the AS defaults that the user who subscribes to the advertising service uses the video and audio codec.
  • the terminal of the capability at this time, once the SIP server triggers the advertisement service for the calling user, the AS triggers the calling user terminal of the advertising service to have the audio and video encoding and decoding capability by default; the other way is:
  • the SIP server triggers the advertising service for the calling user, it filters according to the media processing capability of the calling user terminal, and the SIP server only performs the determination when the calling user terminal has the corresponding audio and video processing capability.
  • the INVITE message is forwarded to the AS, in which case the AS can still default to the received INVITE message.
  • the user terminal has an audio and video codec capability; Step 209 to Step 210:
  • the AS returns a 180 response to the calling user terminal UE1 via the SIP server, and informs the UE1 that the currently established call is waiting for the called user to pick up the phone.
  • the SDP Answer is carried in the 180 response returned in this step, so as to complete the Offer/Answer matching process with the SDP Offer in the INVITE message sent by the calling user terminal UE1 in step 201, the SDP Answer can be constructed by the AS according to the SDP Offer according to the SDP matching rules;
  • Step 211 to step 212 The AS sends an update (UPDATE) request to the calling user terminal UE1 via the SIP server, and carries the SDP Offer in the request to indicate the codec of the advertisement audio and video media stream and the transmission of the media stream.
  • UPDATE update
  • Steps 213 to 214 After receiving the update request, the calling user terminal UE1 returns a response message 200 to the AS via the SIP server, where the 200 response carries an SDP Answer, and the SDP Answer includes the The voice media capability description and the video media capability description of the UE1, the AS receives the response, and according to the media capability description of the terminal UE1 carried therein, determines that the terminal has video playback capability, thereby completing the calling user terminal UE1 and the AS.
  • the advertisement media negotiation between the AS and the calling user terminal is completed through steps 211 to 214, and the advertisement media stream connection between the AS and the calling user terminal is established, so as to be followed.
  • the AS uses the connection to play an advertisement media stream to the terminal UE1;
  • Step 215 After the AS learns that the negotiation with the calling user terminal UE1 is successful, The terminal UE1 sends the advertisement video media stream to implement the advertisement service.
  • the advertisement video media stream may further include audio as needed, and does not affect the implementation of the embodiment of the present invention.
  • the AS constructs an SDP in the temporary response of the INVITE sent to the calling user terminal UE1 after learning that the called user is currently waiting for the off-hook state, and the temporary response is performed through steps 209 to 210.
  • Sending to the UE1 an audio media negotiation is performed to establish a call connection request initiated by the calling user, and then an update request is initiated to the calling user terminal UE1, and the related information of the advertisement video is carried in the update request, so as to Video media negotiation is performed between the AS and the calling user terminal UE1.
  • the above embodiment includes two media negotiation processes.
  • the AS may also directly carry the related indication information of the advertisement video in the temporary response of the INVITE, and initiate a connection request in combination with the calling user terminal.
  • the media capability information carried in the time is used to complete the media negotiation between the AS and the calling user terminal, so that the implementation process of the embodiment only needs one media negotiation process.
  • the method provided by the embodiment specifically includes:
  • Step 301 The calling user initiates a call to the called user, and the terminal UE1 of the calling user sends an audio and video call request (INVITE) to the SIP server.
  • the voice message and the video media description are carried in the INVITE message.
  • Step 302 and step 202 are consistent;
  • Step 303 After receiving the INVITE (A1/V1) message, the AS determines that the terminal UE1 has the video processing capability and records the related state according to the video media description carried in the message.
  • Step 304 to step 308 and step 204 to step 208 are consistent;
  • Step 309 to step 310 In the 180 response returned to the UE1, the AS adds a media description of the advertisement SDP to indicate the codec of the advertisement audio and video media stream and the transmission port of the media stream; thus, the AS and the calling user terminal are completed. Audio and video media negotiation process between UE1;
  • Step 311 is the same as step 215.
  • the embodiment since the SDP matching principle of RFC3264 is required, the embodiment only carries the view in the INVITE message sent by the calling user terminal. The description of the frequency media capability can only be achieved.
  • the foregoing embodiment may further include:
  • the called user After the called user picks up the call, it returns an off-hook response message to the AS, where the response message is a 200 response message, where the 200 response message carries the audio and video media capability description of the called user terminal;
  • the SDP media matching analysis is performed to learn that an audio and video call is established between the calling and called users, the AS stops playing the advertising audio and video to the calling user terminal, and returns a 200 response message to the calling user terminal;
  • the 200 response message returned by the AS to the calling user terminal does not carry the media capability description of the called user terminal.
  • the reason is: because the advertisement is played to the calling user terminal before the call is established, AS The SDP Offer/Answer match has been completed with the calling terminal. Therefore, according to the RFC 3264, the 200 response message returned by the AS to the calling user terminal does not carry the media capability description of the called user terminal.
  • the AS sends a relNVITE message to the calling user terminal, where the message carries the audio and video media capability description of the called user terminal, and after receiving the message, the calling user terminal returns a 200 response message to the AS.
  • the message carries the media capability description of the calling user terminal, and the media negotiation between the calling and the called user terminals is completed through the process, and after the negotiation is passed, the audio and video calls between the calling and called user terminals are established.
  • the called user can also play the advertisement, and correspondingly, the called AS and the called user advertise.
  • the calling AS provides an advertising service for the calling user terminal UE1 of the local side
  • the called AS provides an advertising service for the called user terminal UE2 of the local side
  • the calling AS Signaling between the AS and the called AS can also be performed by forwarding with other devices.
  • the following describes the direct signaling transmission between the calling AS and the called AS as an example.
  • a method for playing an advertisement video after a call is established includes the following steps:
  • Step 401 to step 403 The calling user initiates a call to the called user, and the calling user terminal UE1 sends a call establishment request INVITE to the called user terminal UE2 via the calling AS and the called AS.
  • the voice is carried.
  • the media description indicates the INVITE message carrying the voice media description as: INVITE(Al);
  • the INVITE (Al) message sent by the calling user terminal to the called user terminal may also pass The other SIP server routes can reach the called user terminal. For the sake of simplicity of description, the routing process is not described here.
  • Step 404 to step 405 The called user terminal UE2 returns a 180 response to the calling AS via the called AS to notify the called AS and the calling AS respectively, and the called terminal is currently waiting for the off-hook state;
  • Step 406 The calling AS returns a 180 response to the calling user terminal UE1 to respond to the establishment of the voice call request sent by the calling user terminal UE1 in step 401, and informs the UE1 that the voice call is currently established; wherein, in this step, the voice call is successfully established;
  • the SDP Answer is carried, so as to complete the Offer/Answer matching process with the SDP Offer in the INVITE message sent by the calling user terminal UE1 in step 401;
  • Step 407 to step 408 The calling AS sends an update (UPDATE) request to the calling user terminal UE1, and carries the SDP Offer in the request to indicate the codec of the advertisement audio and video media stream and the sending port of the media stream.
  • the UE1 After receiving the update request, the UE1 returns a response message 200 to the calling AS, where the 200 response carries the voice capability description and the video media capability description of the UE1, and the calling AS receives the response.
  • Step 409 The called user picks up the phone and the called user terminal UE2 returns 200 rings to the called AS.
  • the message carries an audio media description in the response message, indicating that the call between the calling and the called party only includes the audio content, and does not include the video content; for the convenience of description, the 200 response message carrying the audio media description is expressed as: 200 (A1);
  • Step 410 The called AS forwards the received 200 response message 200 (A1) to the calling AS.
  • Step 411 The calling AS forwards the 200 response message to the calling user terminal UE1 to notify the UE 1 that the called user picks up the call.
  • Step 412 The calling AS receives only the audio media description in the received 200 response message, and determines that the main called party has no video content, and the calling user terminal has the capability of playing the advertisement video, and determines the The calling user terminal UE1 plays the advertisement video media stream.
  • the advertisement video media stream is played without playing the advertisement audio;
  • Step 413 The calling AS sends a re-invitation (relNVITE) message to the calling user terminal UE1, where the media description of the advertising video is added based on the voice media description already negotiated between the calling and the called terminal.
  • reINVITE Al/V advertisement
  • the indication information may be added to the relNVITE message sent by the calling AS to the calling user terminal UE1, so that the terminal UE1 can view the advertisement video according to the indication information.
  • the calling user terminal UE1 may directly perform the subsequent step 414 when determining that the media negotiation of the advertisement video is to be performed according to the indication information.
  • the relNVITE message is automatically replied. If the relNVITE message is determined to be a request message for the peer user to initiate a video call according to the indication information, the local user may be further prompted to accept the video call, and according to the selection of the local user, Next steps related to video calls;
  • Step 414 After the calling user terminal UE1 receives the relNVITE message, the calling party
  • the AS returns a 200 response message, and carries the audio and video media capability description of the calling user terminal UE1 in the response message, so that the calling AS completes the media negotiation according to the media capability of the calling user terminal UE1;
  • the 200 response message is represented as 200 (A1/V);
  • Step 415 The calling AS performs wide according to the media capability reported by the calling user terminal UE1. After the negotiation is successful, the corresponding advertisement video is played to the calling user terminal UE1; in order not to affect the normal audio call between the calling and called users, the advertisement played by the calling AS to the calling user terminal Includes only video content and no audio content. At this time, the calling user can see the advertisement video that he likes while talking with the called user.
  • Steps 413 to 415 are specific implementations of playing the advertisement video to the calling user terminal.
  • the called AS can play the advertisement video to the called user terminal through steps 416 to 418.
  • the specific implementation process and step 413 are performed.
  • Step 415 is similar. It should be noted that there is no order of execution between steps 413 and 415 and steps 416 to 418, and the playing of the advertisement for the calling user terminal can be performed simultaneously with playing the advertisement for the called user terminal.
  • the video playback can be further controlled.
  • the corresponding method for controlling the video playback is introduced:
  • the AS can play an advertisement video to the user terminal during the user's call, and the user can watch the advertisement while talking, and based on the user's needs,
  • the user can control the playing of the advertisement, and the control includes: canceling the advertisement played during the call, restoring the advertisement during the call, and automatically stopping the advertisement when the user switches from the audio call to the audio and video call.
  • An interface for performing the control operation is provided correspondingly on the user terminal to receive a control command of the user and perform an operation related to the control command.
  • an audio call is made between the calling and called users, and the AS plays an advertisement video to the calling user terminal UE1.
  • the user's control of the advertisement playing includes the following steps:
  • Step 501 The calling user terminal UE1 selects an operation for canceling the advertisement video playback;
  • the terminal UE1 sends a re-invitation (relNVITE) message to the AS via the SIP server, and carries the advertisement in the message. Instructing, and the video media line receiving port in the media description of the SDP in the message is 0, to notify the AS to cancel the video media playing of the advertising service, and the audio and video calls between the calling and called users are not changed;
  • the description is simple, and the relNVITE message is represented as reINVITE(Al/V0);
  • Step 504 to step 506 after the AS receives the relNVITE message, according to the wide The indication indicates that the media negotiation is currently required for the advertisement service, and according to the video media description in the message, it is determined that the calling user terminal UE1 currently selects to stop playing the advertisement video, so that the AS stops playing the advertisement video to the terminal UE1. And constructing an SDP Answer, carrying the SDP Answer through the response message 200, returning to the terminal UE1 via the SIP server;
  • the operation of canceling the advertisement video playback is completed; in the actual application, after the user cancels the advertisement video playback, the user can further resume the playback of the advertisement video, and the restoration of the advertisement video playback specifically includes the following steps:
  • Step 507 The calling user terminal UE1 selects to resume playback of the advertisement video
  • Step 508 to step 509 The terminal UE1 sends a relNVITE message to the AS via the SIP server, and carries an advertisement indication in the message, and the video media line receiving port in the media description of the SDP in the message is a valid value, to notify The AS resumes the video media playing of the advertising service, and the audio and video calls between the calling and called users are not changed; for convenience of description, the relNVITE message is represented as reINVITE (Al/Vl);
  • Step 510 After receiving the relNVITE message, the AS determines, according to the advertisement indication therein, that media negotiation is currently required for the advertisement service, and determines, according to the video media description in the message, that the calling user terminal UE1 currently selects to resume the advertisement.
  • the playback of the video so that the AS starts to replay the advertisement video to the terminal UE1; in a specific application, the AS may sequentially play the next advertisement for the terminal UE1, or may select the call state in the stored advertisement list. Advertising list, and selecting a corresponding advertisement from the list to play for the terminal UE1;
  • Step 511 to step 512 After the AS plays the advertisement to the terminal UE1, the SDP Answer carries an advertisement video media description, and the SDP Answer is returned to the terminal UE1 via the SIP server by using the response message 200. In order to inform the UE1 that the currently resumed advertisement video is successfully played.
  • the user in addition to canceling the advertisement, the user can also switch from the audio call to the audio and video call through the operation interface. Once the audio/video call is successfully switched, the user needs to stop in order not to affect the normal audio and video call between the users.
  • the playback of the advertisement, at this time, stopping the advertisement to play specifically includes the following steps:
  • Step 513 The calling user terminal UE1 performs an operation of switching an audio call to an audio-video call.
  • Step 516 to step 518 After receiving the relNVITE message, the AS does not carry the advertisement indication, so it is determined that the current media negotiation is the media negotiation between the primary and the called user, and thus the receiving The relNVITE message is transparently transmitted to the called user terminal UE2 via the SIP server to notify the called user terminal: the calling user currently requests to perform an audio and video call; Step 519 to Step 520: The called user terminal UE2 After receiving the relNVITE message, selecting whether to accept the video call, and carrying the media matching result in the response message 200, returning to the AS via the SIP server;
  • Step 521 The AS checks the audio and video matching result of the calling party and the called user according to the response message returned by the called user terminal UE2. If the matching result includes a video, the AS may determine the content between the calling and called user terminals. The call will include a video call to stop playing the advertisement to the calling user terminal. If the matching result does not include the video, it can be determined that the current call between the primary and the called party does not include the video call, and the advertisement video is continuously played to the calling user terminal.
  • Step 522 to step 524 The AS routes the received 200 response message to the calling user terminal UE1 through the SIP server to notify the terminal that the current call is successfully switched to the audio and video call, and the calling user terminal UE1 and The called user terminal UE2 performs an audio and video call.
  • Step 513 to step 524 are operations for stopping the advertisement of the advertisement video when the user switches the audio call to the audio and video call.
  • the foregoing operation may also be implemented by using the method shown in FIG. 5-1.
  • the application scenario is as follows: The calling AS and the called AS play the video advertisement to the calling user terminal UE1 and the called user terminal UE2 respectively, and after the terminal UE1 performs the operation of switching to the audio and video call, the implementation of stopping the playing of the advertising video includes:
  • Step 525 The calling user terminal UE 1 sends a relNVITE message to the calling AS, where the message carries the audio media capability description and the video media capability description of the terminal UE1, so that the AS currently switches the call between the user terminals to Audio and video call, and, since the calling AS is playing an advertisement to the calling user terminal UE1, the message media description is also carried in the message;
  • the relNVITE message is represented as reINVITE (Al/V advertisement / VI);
  • Step 526 The calling AS forwards the relNVITE message to the called AS. Since the advertisement video is played only between the AS and the user terminal, the forwarded relNVITE message does not include the media description of the advertisement.
  • Step 527 The called AS forwards the relNVITE message to the called user terminal, because the called AS is playing an advertisement to the called user terminal UE2, and therefore, the called relNVITE message sent by the called AS to the called user terminal includes an advertisement.
  • Media description
  • Step 528 The called user terminal UE2 learns that the calling user currently switches to the audio and video call according to the received relNVITE message, sets the media line receiving port of the advertisement to 0, and returns a 200 response message to the called AS, where the message carries There is an audio and video media description, and also carries an advertisement media description with a receiving port of 0, and the response message is represented as 200 (A1/V1/V0);
  • Step 529 The called AS determines, according to the received relNVITE message, that the video included in the call includes the video and stops playing the advertisement video to the called user terminal UE2.
  • Step 530 The called AS sends the advertisement to the calling AS. Returning a 200 response message, which carries an audio and video media description;
  • Step 531 The calling AS determines, according to the received response message, that the video is included in the call, and stops playing the advertisement video to the calling user terminal.
  • Step 532 The calling AS returns a 200 response message to the calling user terminal UE1, where the receiving port of the advertising media line carried in the message is 0.
  • the calling AS and the called AS respectively play the advertisement video to the calling user terminal, and in other embodiments of the present invention, Only the calling AS or the called AS plays an advertisement video to its corresponding terminal.
  • the relNVITE message transmitted between the user terminal and the AS that performs the advertisement video playback carries the advertisement media description, and is determined to be switched.
  • the returned response message carries an advertisement media description with the receiving port being 0.
  • the user when the terminal is currently receiving the advertisement video, the user can perform the cancel advertisement operation on the terminal; when the terminal is currently performing a video call with the counterpart terminal, the user can cancel the video operation, and further can be restored. Operation of the advertisement; When the terminal does not currently receive any video, the user can perform an operation of starting an advertisement video or starting a video call on the terminal.
  • the above control process of canceling the advertisement video, restoring the advertisement video, and stopping the advertisement video may be separately performed separately.
  • the above three control processes are not limited in sequence, and the above embodiment is only A preferred embodiment for the convenience of description is not to be construed as limiting the embodiments of the invention.
  • the foregoing embodiment uses the calling user terminal and the AS corresponding thereto as an example to describe how to perform video playback control.
  • the called user terminal and the AS corresponding thereto may also be used.
  • the above control operation is completed, and the specific implementation process is similar to the process described in the foregoing embodiment, and is not mentioned here.
  • control process described in the foregoing embodiment is performed after the call is established.
  • operation of canceling the advertisement video and restoring the advertisement video may also be performed when the call is established, and the specific implementation process is consistent with the process described in the above embodiments.
  • the apparatus for playing video provided by the embodiment of the present invention includes:
  • the call state determining unit 601 is configured to determine a current call state after the video service is triggered; the determining unit 602 is configured to determine whether the current call state meets a video playing condition, and notify the media negotiation unit 603 of the determination result;
  • the media negotiating unit 603 is configured to perform media negotiation with the terminal when the current call state is satisfied that the video playing condition is met;
  • the video service playing unit 604 is configured to play a video to the terminal after determining that the media negotiation unit 603 performs the media negotiation successfully.
  • the apparatus may further include:
  • Stopping the video service playing unit when the determining unit 602 informs that the video playing condition is no longer satisfied, controlling the video service playing unit to stop playing the video service, and/or,
  • the canceling the video service playing unit is configured to: receive the re-invitation message sent by the terminal, cancel the playing of the video service according to the video service indication carried in the re-invitation message and the inactive video service media description; and/or ,
  • the video service playback unit is configured to: receive a re-invitation message sent by the terminal, and resume playback of the video service according to the video service indication carried in the re-invitation message and the video service media description in an active state.
  • the device for playing a video may be a video service server.
  • the device for playing video may be an advertisement server.
  • the system for playing video provided by the embodiment of the present invention:
  • a system for playing video provided by an embodiment of the present invention includes a video service server 701 and a SIP server 702, where:
  • the video service server 701 is configured to determine a current call state after triggering the video service, and perform media negotiation with the terminal when the determined call state meets the video play condition, and play the terminal to the terminal after the negotiation succeeds.
  • the SIP server 702 is configured to: perform registration and triggering of a video service, and perform message routing when the video service server performs media negotiation with the terminal.
  • the video needs to be played for the user according to the corresponding video service policy.
  • the system provided by the embodiment of the present invention may further include:
  • the video service policy management unit is configured to implement setting, modifying, and/or deleting of a video service policy, and providing a video service policy for the video service server.
  • the corresponding device is also required to receive the video uploaded by the user or the operator.
  • the system may further include:
  • the video content management unit is configured to receive and save the uploaded video file and provide the video for the video service server to play.
  • the video content management unit may be further configured to review and/or delete the video file and query the video file.
  • the video service described in the foregoing system embodiment may be an advertisement video service, and correspondingly, the video is an advertisement video.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephonic Communication Services (AREA)

Abstract

A method, a device and a system for playing video, wherein, the method includes: after triggering the video service, the network side device confirms the current talk state; when the network side device confirms that the current talk state satisfies the video playing condition, it proceeds the media negotiation with a terminal; after the negotiation succeeds, it plays the video to the terminal; wherein, the network side device is the network side device which provides the video service for the local side terminal. The device includes: a talk state confirming unit for confirming the current talk state after triggering the video service; a judging unit for judging whether the current talk state satisfies the video playing condition and reporting the judging result to the media negotiating unit; a media negotiating unit for proceeding the media negotiation with a terminal when it knows that the current talk state satisfies the video playing condition; a video service playing unit for playing the video to the terminal after confirming that the media negotiating unit succeeds to proceed the media negotiation.

Description

播放视频的方法、 装置及系统  Method, device and system for playing video
本申请要求于 2007 年 12 月 4 日提交中国专利局、 申请号为 200710193852.7、 发明名称为"播放视频的方法、 装置及系统"的中国专利申请 的优先权, 其全部内容通过引用结合在本申请中。  The present application claims priority to Chinese Patent Application No. 200710193852.7, entitled "Method, Apparatus and System for Playing Video", which is filed on Dec. 4, 2007, the entire contents of which is incorporated herein by reference. in.
技术领域 Technical field
本发明涉及通信技术领域, 尤其涉及播放视频的方法、 装置及系统。 背景技术  The present invention relates to the field of communications technologies, and in particular, to a method, device, and system for playing video. Background technique
在当前的网络中, 存在具备视频播放能力的初始^舌协议(SIP )终端, 在这类终端未进行视频通话时,其屏幕处于闲置状态, 网络运营商可以利用此 闲置的资源, 向用户播放包括广告等在内的视频媒体内容。 以播放广告视频媒 体内容的广告业务为例,运营商可以在用户进行视频通话前或者进行音频通话 时在用户终端上播放广告, 从而为其创造更大的价值, 产生电信后向价值链。  In the current network, there is an initial SIP protocol terminal with video playback capability. When such a terminal does not make a video call, its screen is idle, and the network operator can use the idle resource to play to the user. Video media content including advertisements, etc. For example, in an advertisement service that plays advertisement media content, an operator can play an advertisement on a user terminal before a user makes a video call or an audio call, thereby creating greater value for the telecommunications backward value chain.
仍以广告业务为例, 在现有技术中, 网络设备需要将广告地址告知终端, 终端才 据该地址自动获取广告视频媒体流,从而实现在该终端上播放广告。该 技术虽然能够实现在终端上播放视频, 但是, 该技术需要以终端为主来实现, 相应的需要终端具有相应的处理功能。 由于网络中的终端数量众多,要求所有 终端均具有上述处理功能显然不现实, 因此,该现有技术由于对终端的依赖过 大, 会影响广告业务的扩展性, 不利于广告业务的迅速推广。 同样, 对于其他 类型的视频业务而言, 也存在与上述广告业务的实现相类似的问题。  Still taking the advertisement service as an example, in the prior art, the network device needs to inform the terminal of the advertisement address, and the terminal automatically acquires the advertisement video media stream according to the address, thereby realizing playing the advertisement on the terminal. Although the technology can play video on the terminal, the technology needs to be implemented mainly by the terminal, and the corresponding terminal needs corresponding processing function. Since the number of terminals in the network is large, it is obviously unrealistic to require all terminals to have the above-mentioned processing functions. Therefore, the prior art relies too much on the terminal, which may affect the scalability of the advertisement service, and is not conducive to the rapid promotion of the advertisement service. Similarly, for other types of video services, there are also problems similar to the implementation of the above advertising services.
发明内容 Summary of the invention
本发明实施例的目的在于: 提供播放视频的方法、 装置及系统, 以通过网 络侧设备为主来实现视频的播放以及对视频播放的控制,从而避免对终端的过 多依赖, 提高视频业务的扩展性。  The purpose of the embodiments of the present invention is to provide a method, a device, and a system for playing a video, so as to implement video playback and video playback control through a network side device, thereby avoiding excessive dependence on the terminal and improving the video service. Scalability.
为实现上述目的, 本发明实施例提供以下技术方案:  To achieve the above objective, the embodiments of the present invention provide the following technical solutions:
一种播放视频的方法, 该方法包括:  A method of playing a video, the method comprising:
在触发视频业务后, 网络侧设备确定当前的通话状态;  After the video service is triggered, the network side device determines the current call state.
所述网络侧设备在确定当前通话状态满足视频播放条件时,与终端进行媒 体协商, 并在协商成功后, 向终端播放视频; 其中, 所述网络侧设备是为本侧 的所述终端提供所述视频业务的网络侧设备。 一种播放视频的装置, 该装置包括: When the network side device determines that the current call state meets the video playing condition, performs media negotiation with the terminal, and after the negotiation succeeds, the video is played to the terminal; wherein the network side device is provided by the terminal of the current side. The network side device of the video service. A device for playing video, the device comprising:
通话状态确定单元, 用于在触发视频业务后, 确定当前的通话状态; 判断单元, 用于判断所述当前通话状态是否满足视频播放条件, 并将判断 结果告知媒体协商单元;  a call state determining unit, configured to determine a current call state after the video service is triggered; the determining unit, configured to determine whether the current call state meets a video playing condition, and notify the media negotiation unit of the determination result;
媒体协商单元, 用于在获知所述当前通话状态满足视频播放条件时, 与终 端进行媒体协商;  a media negotiating unit, configured to perform media negotiation with the terminal when it is known that the current call state meets a video playing condition;
视频业务播放单元,用于在确定所述媒体协商单元进行所述媒体协商成功 后, 向终端播放视频。  And a video service playing unit, configured to play a video to the terminal after determining that the media negotiation unit performs the media negotiation successfully.
一种播放视频的系统, 该系统包括视频业务服务器和 SIP服务器, 其中: 所述视频业务服务器用于: 在触发视频业务后, 确定当前的通话状态, 并 在所确定的通话状态满足视频播放条件时, 与终端进行媒体协商, 和, 在协商 成功后, 向终端播放视频;  A system for playing video, the system comprising a video service server and a SIP server, wherein: the video service server is configured to: after triggering a video service, determine a current call state, and satisfy a video playing condition in the determined call state When the media negotiation is performed with the terminal, and after the negotiation is successful, the video is played to the terminal;
所述 SIP服务器用于: 进行视频业务的注册及触发, 在视频业务服务器与 终端进行媒体协商时进行消息路由。  The SIP server is configured to: perform registration and triggering of a video service, and perform message routing when the video service server performs media negotiation with the terminal.
可见, 本发明实施例所提供的方法、装置及系统, 能够以网络侧设备为主 来进行视频的播放以及对视频播放进行控制,从而减少了对终端的依赖,有利 于提高业务的扩展性,增强了同其他业务的有效融合, 并可提高视频业务的实 现效率; 此外, 在本发明实施例中, 由于以网络侧设备为主实现视频播放, 因 此,对终端仅需进行很少改造,从而使得本发明实施例对于各类型终端均可适 用, 有利于视频业务的迅速实现与推广。  It can be seen that the method, the device and the system provided by the embodiments of the present invention can perform video playback and video playback mainly by using the network side device, thereby reducing the dependence on the terminal and facilitating the service scalability. The effective integration with other services is enhanced, and the efficiency of the video service is improved. In addition, in the embodiment of the present invention, since the network side device is mainly used for video playback, only a small modification is required for the terminal, thereby The embodiments of the present invention are applicable to all types of terminals, which is beneficial to the rapid realization and promotion of video services.
另外, 本发明实施例所提供的视频业务, 尤其是广告业务, 能够使得用户 通过观看视频享受到话费上的优惠,对于运营商而言, 则可通过该视频业务从 视频提供方处收取相应的费用, 从而提高了其收益; 对于视频提供商而言, 则 可通过发布视频获得相应的商业收益。  In addition, the video service provided by the embodiment of the present invention, in particular, the advertisement service, enables the user to enjoy the discount on the call charge by watching the video. For the operator, the video service can be charged from the video provider through the video service. Costs, which increase their revenue; for video providers, they can get the corresponding business benefits by publishing videos.
附图说明 DRAWINGS
图 1为本发明实施例中所采用的视频业务网络的示意图;  1 is a schematic diagram of a video service network used in an embodiment of the present invention;
图 2为本发明一实施例中在通话建立过程中播放广告视频的流程图; 图 3为本发明另一实施例中在通话建立过程中播放广告视频的流程图; 图 4为本发明一实施例中在通话建立后播放广告视频的流程图; 图 5为本发明一实施例中实现视频播放控制的流程图; 2 is a flowchart of playing an advertisement video during a call establishment process according to an embodiment of the present invention; FIG. 3 is a flowchart of playing an advertisement video during a call establishment process according to another embodiment of the present invention; FIG. 4 is an implementation of the present invention; In the example, a flow chart for playing an advertisement video after the call is established; FIG. 5 is a flowchart of implementing video playback control according to an embodiment of the present invention; FIG.
图 5-1为本发明一实施例中实现停止视频播放的流程图;  FIG. 5-1 is a flowchart of implementing stop video playback according to an embodiment of the present invention;
图 6为本发明实施例所提供的播放视频的装置的示意图;  6 is a schematic diagram of an apparatus for playing a video according to an embodiment of the present invention;
图 7为本发明实施例所提供的播放视频的系统的示意图。  FIG. 7 is a schematic diagram of a system for playing video according to an embodiment of the present invention.
具体实施方式 detailed description
下面, 结合附图对本发明实施例进行伴细描述。  The embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
为了能够更加清楚地介绍本发明实施例所提供的方法, 下面, 首先对实现 所述方法所基于网络结构加以说明。本发明实施例采用图 1所示的视频业务网 络来实现视频业务, 该网络包括视频业务管理系统 101 和视频业务执行系统 102, 其中:  In order to be able to more clearly describe the method provided by the embodiment of the present invention, the following first, the network structure based on the implementation of the method will be described. The embodiment of the present invention implements a video service by using the video service network shown in FIG. 1. The network includes a video service management system 101 and a video service execution system 102, where:
视频业务管理系统 101用于对视频业务进行管理,该系统具体包括: 门户 ( Portal ), 视频业务策略管理单元以及视频内容管理单元, 其中:  The video service management system 101 is configured to manage video services, and the system specifically includes: a portal, a video service policy management unit, and a video content management unit, where:
所述 Portal用于提供操作界面 ,以便使用者进行视频业务策略的设置以及 视频内容的上传; 该 Portal还可进一步提供接口给运营商操作员, 以便该操作 员利用该接口对视频内容进行审核以及对视频业务策略进行管理;  The portal is configured to provide an operation interface for the user to set the video service policy and upload the video content; the portal may further provide an interface to the operator operator, so that the operator uses the interface to audit the video content and Manage video business strategies;
所述视频业务策略管理单元用于实现视频业务策略的设置、删除和修改等 管理功能, 具体的视频业务策略多种多样, 以广告业务为例, 其广告策略可以 为: 按时段和 /或呼叫阶段指定要播放的广告视频文件、 按照当前用户所属的 用户群播放广告视频文件、 依据用户的喜好播放广告视频文件;  The video service policy management unit is used to implement management functions such as setting, deleting, and modifying a video service policy. The specific video service policies are various. Taking the advertisement service as an example, the advertisement policy may be: time period and/or call. The stage specifies the advertisement video file to be played, plays the advertisement video file according to the user group to which the current user belongs, and plays the advertisement video file according to the user's preference;
所述视频内容管理单元用于:接收并保存上传的视频文件、对视频文件进 行审查、 下发视频文件、 以及删除、 查询视频文件。  The video content management unit is configured to: receive and save the uploaded video file, review the video file, deliver the video file, and delete and query the video file.
视频业务执行系统 102用于具体执行视频业务,该系统包括:视频业务服 务器、 媒体资源服务器(MRS )、 以及 SIP服务器, 其中:  The video service execution system 102 is configured to specifically execute a video service, and the system includes: a video service server, a media resource server (MRS), and a SIP server, where:
视频业务服务器负责具体视频业务逻辑的执行;  The video service server is responsible for the execution of specific video service logic;
MRS作为媒体资源部件受所述视频业务服务器的控制, 在后续描述中, 为了描述简便, 将 MRS的功能合入到所述视频业务服务器中;  The MRS is controlled by the video service server as a media resource component. In the following description, for the convenience of description, the function of the MRS is integrated into the video service server;
SIP服务器用于: 完成用户的注册、 用户视频业务的触发、 SIP消息路由 等功能, 该 SIP服务器与视频业务服务器之间可采用类似于 3GPP IMS ISC那 样的接口来实现交互。 基于如上所述的网络,本发明实施例提供以下播放视频、控制视频播放的 方法。 为了描述简便, 在以下实施例的描述中, 均以广告业务作为视频业务、 广告视频作为视频内容为例进行说明,在本发明其它实施例中, 所涉及的视频 当然也可以为其他内容、 其他形式的视频, 并不影响本发明实施例的实现。 The SIP server is configured to: perform registration of the user, triggering of the user video service, and SIP message routing, and the SIP server and the video service server may implement an interaction using an interface similar to the 3GPP IMS ISC. Based on the network as described above, the embodiment of the present invention provides the following method for playing video and controlling video playback. For the sake of simplicity of description, in the following description of the embodiments, the video service is used as the video service and the advertisement video is taken as the video content. In other embodiments of the present invention, the video involved may of course be other content and other. The form of video does not affect the implementation of embodiments of the present invention.
一、 播放视频的方法:  First, the method of playing video:
本发明实施例所提供的播放视频的方法包括:  The method for playing a video provided by the embodiment of the present invention includes:
在触发视频业务后, 网络侧设备确定当前的通话状态;  After the video service is triggered, the network side device determines the current call state.
当所述通话状态满足视频播放条件时,所述网络侧设备与终端进行媒体协 商, 协商成功后, 该网络侧设备向所述终端播放视频。  When the call state meets the video playing condition, the network side device performs media negotiation with the terminal. After the negotiation succeeds, the network side device plays the video to the terminal.
进一步的, 在本发明优选实施例中, 该方法还可进一步包括:  Further, in a preferred embodiment of the present invention, the method may further include:
当判断得到当前通话状态不再满足视频条件时,所述网络侧设备停止向终 端播放视频。  When it is judged that the current call state no longer satisfies the video condition, the network side device stops playing the video to the terminal.
其中,在具体应用中, 可以由如上网络中所述的 SIP服务器完成视频业务 的触发, 由所述视频业务服务器作为网络侧设备完成视频播放条件的判断、媒 体协商以及视频的播放。  In a specific application, the triggering of the video service may be completed by the SIP server as described in the foregoing network, and the video service server is used as the network side device to complete the judgment of the video playing condition, the media negotiation, and the video playing.
根据用户之间是否已经建立通话, 所述通话状态包括以下几种:  According to whether a call has been established between users, the call state includes the following:
1、 在主被叫用户终端间还未建立通话时, 通话状态为等待摘机状态, 由 于当前未进行视频通话,此时进行广告视频的播放不会对用户间的正常通话产 生影响 , 由此可以得到该通话状态满足视频播放条件;  1. When the call has not been established between the calling and called user terminals, the call state is waiting for the off-hook state. Since the video call is not currently performed, the playback of the advertisement video at this time does not affect the normal call between the users. It can be obtained that the call state satisfies the video playing condition;
2、 在主被叫用户终端间建立通话后, 且当主被叫用户之间仅进行音频通 话时,此时的通话状态为音频通话状态; 由于播放广告视频并不会对用户间的 音频通话产生影响, 因此可以得到此时的通话状态满足视频播放条件;  2. After the call is established between the calling and called user terminals, and when only the audio call is made between the calling and called users, the call state at this time is the audio call state; since the advertisement video is not played, the audio call between the users is not generated. Influence, so that the call state at this time can be obtained to satisfy the video playing condition;
3、 在主被叫用户终端间建立通话后, 且当主被叫用户之间进行音视频通 话时, 此时的通话状态为音视频通话状态, 由于用户间正在进行视频通话, 如 果再进一步播放广告视频势必会对用户间的视频通话产生影响, 因此,可以判 断得到此时的通话状态不满足视频播放条件。  3. After the call is established between the calling and called user terminals, and the audio and video calls are made between the calling and called users, the call state at this time is the audio and video call state, and the video call is being played between the users, if the advertisement is further played. The video is bound to affect the video call between users. Therefore, it can be judged that the call state at this time does not satisfy the video playback condition.
在实际应用中, 用户建立通话后, 可以在音频和视频间进行切换, 相应的 也会影响视频播放的条件。  In practical applications, after the user establishes a call, the user can switch between audio and video, and the corresponding conditions of the video play.
下面, 结合上述不同的通话状态, 以广告业务作为视频业务为例, 对本发 明实施例所提供的方法进行伴细描述; 其中, 所述广告业务为广告服务器向签 约用户播放广告的一种业务, 通过该业务实现"有等待即有广告,,这一目的。 在 用户签约了广告业务后 ,相应的服务器就可以在该用户建立通话前以及通话过 程中为该用户播放广告, 对于用户来说, 可以通过收看 /收听广告获取相应的 信息, 更可以通过收看 /收听广告获得话费上的优惠, 对于运营商来说, 则可 以通过为用户提供广告, 从广告商处收取广告费, 从而获得可观的收益; 在以 下的描述中, 所述广告服务器为向其本侧用户终端提供广告业务的服务器。 In the following, in combination with the above different call states, the advertisement service is taken as a video service as an example, The method provided by the embodiment is described in detail; wherein, the advertisement service is a service in which an advertisement server plays an advertisement to a contracted user, and the service realizes that "there is an advertisement, there is an advertisement, and the purpose is. After the advertising service, the corresponding server can play advertisements for the user before the user establishes the call and during the call. For the user, the corresponding information can be obtained by watching/listening the advertisement, and the advertisement can be obtained by watching/listening the advertisement. The discount on the call charge, for the operator, can provide the user with an advertisement, and collect the advertisement fee from the advertiser, thereby obtaining a considerable income; In the following description, the advertisement server is the user terminal to the user side thereof. A server that provides advertising services.
(一)在通话建立过程中播放广告视频的方法:  (1) The method of playing the advertisement video during the call establishment process:
参见图 2, 在本发明一实施例中, 在通话建立过程中播放广告视频包括以 下步骤:  Referring to FIG. 2, in an embodiment of the present invention, playing an advertisement video during a call establishment process includes the following steps:
步骤 201 : 主叫用户发起对被叫用户的呼叫, 主叫用户的终端 UE1向 SIP 服务器发送通话建立请求(INVITE ) 消息, 在该 INVITE 消息中携带有语音 媒体描述, 以表示当前请求建立语音通话; 为了描述简便, 将该携带有语音媒 体描述的 INVITE消息表示为: INVITE(Al); 其中, "A"为 Audio, A1表示 INVITE所携带的 SDP中有 1条音频媒体能力描述行。 同理, "V"为 Vedio, VI表示 SDP中有一条视频媒体能力描述行。  Step 201: The calling user initiates a call to the called user, and the terminal UE1 of the calling user sends a call setup request (INVITE) message to the SIP server, where the INVITE message carries a voice media description to indicate that the current request is to establish a voice call. For the sake of simplicity, the INVITE message carrying the voice media description is represented as: INVITE(Al); where "A" is Audio, and A1 indicates that there is one audio media capability description line in the SDP carried by the INVITE. Similarly, "V" is Vedio, and VI indicates that there is a video media capability description line in the SDP.
步骤 202〜步骤 203: 所述 SIP服务器为主叫用户做广告业务触发, 将 INVITE(Al)消息路由到广告服务器(AS ); 其中, 所述 AS即为实现广告业务 的视频业务服务器;  Step 202 to step 203: The SIP server triggers an advertisement service for the calling user, and routes the INVITE (Al) message to the advertisement server (AS); wherein the AS is a video service server that implements an advertisement service;
步骤 204: 所述 AS记录所述 INVITE消息中所携带的媒体 SDP信息和呼 叫状态等相关状态, 将所述 INVITE(Al)消息路由回到 SIP服务器;  Step 204: The AS records the related state of the media SDP information and the call status carried in the INVITE message, and routes the INVITE (Al) message back to the SIP server.
步骤 205: 所述 SIP服务器将 INVITE(Al)消息路由到被叫终端 UE2; 其 中,本步骤的路由过程中间可能还会经过其他的 SIP服务器或其它的业务服务 器, 为了描述简便, 此处不再赘述;  Step 205: The SIP server routes the INVITE (Al) message to the called terminal UE2. The routing process in this step may also pass through other SIP servers or other service servers in the middle of the routing process. Narrative
步骤 206〜步骤 207: 被叫终端 UE2经由 SIP服务器向 AS返回 180响应 , 以告知 AS该被叫终端当前处于等待被叫用户摘机状态;  Step 206 to step 207: The called terminal UE2 returns a 180 response to the AS via the SIP server to inform the AS that the called terminal is currently waiting for the called user to go off-hook;
步骤 208: 所述 AS收到所述 180响应后, 得知被叫用户终端当前处于摘 机等待状态, 该 AS依据主叫终端 UE1的媒体能力判断得到该 UE1当前能够 接收视频媒体流, 该 AS确定向该 UE1发送视频广告; 其中,该步骤中,所述 AS需要根据主叫终端 UE1的媒体能力进行所述判 断, 由于 UE1在步骤 201发起建立语音通话请求时, 仅携带音频媒体描述, 因此, 所述 AS无法依据 UE1发送来的 INVITE消息中的 SDP OFFER判断出 该 UE1 的真实媒体能力, 而是需要通过其他方式预知, 比较简单的方式是: 所述 AS缺省认为订阅广告业务的用户都使用具备广告音视频编解码能力的终 端, 此时, 一旦所述 SIP服务器为主叫用户触发广告业务, 则所述 AS就默认 触发了该广告业务的主叫用户终端具有音视频编解码能力; 另一种方式为: 所 述 SIP服务器在为主叫用户做广告业务触发时,根据主叫用户终端的媒体处理 能力进行筛选, 只有在确定得到主叫用户终端具备相应的音视频处理能力时 , 所述 SIP服务器才将所述 INVITE消息转发至所述 AS, 在此情况下, 所述 AS 仍然可以默认与收到的 INVITE消息对应的用户终端具有音视频编解码能力; 步骤 209〜步骤 210: 所述 AS经由所述 SIP服务器向主叫用户终端 UE1 返回 180响应,告知该 UE1当前建立呼叫处于等待被叫用户摘机应答的状态; 其中, 在本步骤所返回的 180响应中, 携带有 SDP Answer, 以便和步骤 201 中主叫用户终端 UE1 所发送的 INVITE 消息中的 SDP Offer 完成一次 Offer/Answer的匹配过程,所述 SDP Answer可以由 AS依据 SDP Offer按 SDP 匹配规则相应构造; Step 208: After receiving the 180 response, the AS learns that the called user terminal is currently in the off-hook waiting state, and the AS determines that the UE1 is currently capable of receiving the video media stream according to the media capability of the calling terminal UE1. Determining to send a video advertisement to the UE1; In this step, the AS needs to perform the determination according to the media capability of the calling terminal UE1. Because the UE1 initiates the voice call request in step 201, it only carries the audio media description. Therefore, the AS cannot send according to the UE1. The SDP OFFER in the incoming INVITE message determines the real media capability of the UE1, but needs to be predicted by other means. The simpler way is: the AS defaults that the user who subscribes to the advertising service uses the video and audio codec. The terminal of the capability, at this time, once the SIP server triggers the advertisement service for the calling user, the AS triggers the calling user terminal of the advertising service to have the audio and video encoding and decoding capability by default; the other way is: When the SIP server triggers the advertising service for the calling user, it filters according to the media processing capability of the calling user terminal, and the SIP server only performs the determination when the calling user terminal has the corresponding audio and video processing capability. The INVITE message is forwarded to the AS, in which case the AS can still default to the received INVITE message. The user terminal has an audio and video codec capability; Step 209 to Step 210: The AS returns a 180 response to the calling user terminal UE1 via the SIP server, and informs the UE1 that the currently established call is waiting for the called user to pick up the phone. The SDP Answer is carried in the 180 response returned in this step, so as to complete the Offer/Answer matching process with the SDP Offer in the INVITE message sent by the calling user terminal UE1 in step 201, the SDP Answer can be constructed by the AS according to the SDP Offer according to the SDP matching rules;
步骤 211〜步骤 212: 所述 AS经由所述 SIP服务器向主叫用户终端 UE1 发送更新 ( UPDATE )请求, 在该请求中携带 SDP Offer, 以指明广告音视频 媒体流的编解码以及媒体流的发送端口;  Step 211 to step 212: The AS sends an update (UPDATE) request to the calling user terminal UE1 via the SIP server, and carries the SDP Offer in the request to indicate the codec of the advertisement audio and video media stream and the transmission of the media stream. Port
步骤 213〜步骤 214: 主叫用户终端 UE1收到所述更新请求后, 经由所述 SIP服务器向所述 AS返回响应消息 200,在该 200响应中携带有 SDP Answer, 该 SDP Answer中包括有该 UE1的语音媒体能力描述和视频媒体能力描述,所 述 AS收到该响应, 据其中所携带的终端 UE1的媒体能力描述,确定该终端 具备视频播放能力,从而完成主叫用户终端 UE1与该 AS之间的广告媒体协商; 至此,通过步骤 211〜步骤 214完成了 AS与主叫用户终端之间的广告媒体 协商过程, 建立了 AS与主叫用户终端之间的广告媒体流连接, 以便在后续步 骤中所述 AS利用该连接向所述终端 UE1播放广告媒体流;  Steps 213 to 214: After receiving the update request, the calling user terminal UE1 returns a response message 200 to the AS via the SIP server, where the 200 response carries an SDP Answer, and the SDP Answer includes the The voice media capability description and the video media capability description of the UE1, the AS receives the response, and according to the media capability description of the terminal UE1 carried therein, determines that the terminal has video playback capability, thereby completing the calling user terminal UE1 and the AS. The advertisement media negotiation between the AS and the calling user terminal is completed through steps 211 to 214, and the advertisement media stream connection between the AS and the calling user terminal is established, so as to be followed. In the step, the AS uses the connection to play an advertisement media stream to the terminal UE1;
步骤 215: 所述 AS在获知与主叫用户终端 UE1之间的协商成功后, 向该 终端 UE1发送广告视频媒体流, 从而实现广告业务; 其中, 所述的广告视频 媒体流根据需要可以进一步包括音频 , 并不影响本发明实施例的实现。 Step 215: After the AS learns that the negotiation with the calling user terminal UE1 is successful, The terminal UE1 sends the advertisement video media stream to implement the advertisement service. The advertisement video media stream may further include audio as needed, and does not affect the implementation of the embodiment of the present invention.
在上述实施例中, AS在获知被叫用户当前处于等待摘机状态后, 在向主 叫用户终端 UE1所发送的 INVITE的临时响应中构造一个 SDP, 并通过步骤 209〜步骤 210将该临时响应发送给 UE1 , 从而为主叫用户所发起的建立通话 连接请求进行一次音频媒体协商, 然后, 再向主叫用户终端 UE1发起更新请 求, 并在该更新请求中携带广告视频的相关指示信息, 以便在 AS与主叫用户 终端 UE1之间进行视频媒体协商。 由此可见, 上述实施例中包括了两次媒体 协商过程。  In the above embodiment, the AS constructs an SDP in the temporary response of the INVITE sent to the calling user terminal UE1 after learning that the called user is currently waiting for the off-hook state, and the temporary response is performed through steps 209 to 210. Sending to the UE1, an audio media negotiation is performed to establish a call connection request initiated by the calling user, and then an update request is initiated to the calling user terminal UE1, and the related information of the advertisement video is carried in the update request, so as to Video media negotiation is performed between the AS and the calling user terminal UE1. Thus, the above embodiment includes two media negotiation processes.
为了简化本发明实施例的实现, 在本发明另一实施例中, 所述 AS还可以 直接在所述 INVITE的临时响应中携带广告视频的相关指示信息, 并结合主叫 用户终端在发起连接请求时所携带媒体能力信息完成 AS与主叫用户终端之间 的媒体协商,从而使得该实施例的实现过程只需一次媒体协商过程,参见图 3, 该实施例所提供的方法具体包括:  In order to simplify the implementation of the embodiment of the present invention, in another embodiment of the present invention, the AS may also directly carry the related indication information of the advertisement video in the temporary response of the INVITE, and initiate a connection request in combination with the calling user terminal. The media capability information carried in the time is used to complete the media negotiation between the AS and the calling user terminal, so that the implementation process of the embodiment only needs one media negotiation process. Referring to FIG. 3, the method provided by the embodiment specifically includes:
步骤 301 : 主叫用户发起对被叫用户的呼叫, 主叫用户的终端 UE1向 SIP 服务器发送建立音视频通话请求(INVITE ); 在该 INVITE消息中携带有语音 和视频媒体描述, 为了描述简便, 将该携带有语音和视频媒体描述的 INVITE 消息表示为: INVITE(A1/V1);  Step 301: The calling user initiates a call to the called user, and the terminal UE1 of the calling user sends an audio and video call request (INVITE) to the SIP server. The voice message and the video media description are carried in the INVITE message. Express the INVITE message carrying the voice and video media description as: INVITE(A1/V1);
步骤 302与步骤 202—致;  Step 302 and step 202 are consistent;
步骤 303: 所述 AS收到主叫用户终端 UE1发送 INVITE(A1/V1)消息后, 根据该消息中所携带的视频媒体描述, 判断该终端 UE1具备视频处理能力, 记录相关状态。  Step 303: After receiving the INVITE (A1/V1) message, the AS determines that the terminal UE1 has the video processing capability and records the related state according to the video media description carried in the message.
步骤 304〜步骤 308与步骤 204〜步骤 208—致;  Step 304 to step 308 and step 204 to step 208 are consistent;
步骤 309〜步骤 310: AS在返回给 UE1的 180响应中, 增加广告 SDP的 媒体描述, 以指明广告音视频媒体流的编解码以及媒体流的发送端口; 至此, 完成了 AS与主叫用户终端 UE1之间的音频和视频媒体协商过程;  Step 309 to step 310: In the 180 response returned to the UE1, the AS adds a media description of the advertisement SDP to indicate the codec of the advertisement audio and video media stream and the transmission port of the media stream; thus, the AS and the calling user terminal are completed. Audio and video media negotiation process between UE1;
步骤 311与步骤 215—致。  Step 311 is the same as step 215.
需要注意的是, 在图 3所示的实施例中, 由于需符合 RFC3264的 SDP匹 配原则, 因此, 该实施例仅在主叫用户终端所发送的 INVITE消息中携带有视 频媒体能力描述时方可实现。 It should be noted that, in the embodiment shown in FIG. 3, since the SDP matching principle of RFC3264 is required, the embodiment only carries the view in the INVITE message sent by the calling user terminal. The description of the frequency media capability can only be achieved.
在图 3所示的实施例中, 需要注意的是:  In the embodiment shown in Figure 3, it should be noted that:
( 1 ) 以上所描述的是通话建立前播放广告视频的方法, 在实际应用中, 被叫用户摘机应答后, 可能与主叫用户之间建立音视频通话, 此时, 为了不影 响主被叫用户之间正常的音视频通话, 需要停止广告的播放, 由此, 上述实施 例还可进一步包括:  (1) The above describes the method for playing an advertisement video before the call is established. In the actual application, after the called user picks up the phone and answers the call, an audio and video call may be established with the calling user. In this case, in order not to affect the main being The normal audio and video call between the users is called, and the playing of the advertisement needs to be stopped. Therefore, the foregoing embodiment may further include:
被叫用户摘机应答后 , 向 AS返回摘机应答响应消息 , 该响应消息为 200 响应消息, 在该 200响应消息中携带有被叫用户终端的音视频媒体能力描述; 所述 AS收到所述 200响应消息后,通过 SDP媒体匹配分析,得知主被叫 用户之间建立音视频通话,该 AS停止向主叫用户终端播放广告音视频,并且, 向主叫用户终端返回 200响应消息; 其中, 所述 AS向主叫用户终端所返回的 200响应消息中并不携带被叫用户终端的媒体能力描述, 其原因在于: 由于在 通话建立前, 为了实现向主叫用户终端播放广告, AS已经与主叫终端完成了 SDP Offer/Answer匹配, 因此依据 RFC3264 , 在所述 AS向主叫用户终端所返 回的 200响应消息中, 不携带被叫用户终端的媒体能力描述;  After the called user picks up the call, it returns an off-hook response message to the AS, where the response message is a 200 response message, where the 200 response message carries the audio and video media capability description of the called user terminal; After the 200 response message is sent, the SDP media matching analysis is performed to learn that an audio and video call is established between the calling and called users, the AS stops playing the advertising audio and video to the calling user terminal, and returns a 200 response message to the calling user terminal; The 200 response message returned by the AS to the calling user terminal does not carry the media capability description of the called user terminal. The reason is: because the advertisement is played to the calling user terminal before the call is established, AS The SDP Offer/Answer match has been completed with the calling terminal. Therefore, according to the RFC 3264, the 200 response message returned by the AS to the calling user terminal does not carry the media capability description of the called user terminal.
所述 AS向主叫用户终端发送 relNVITE消息, 在该消息中携带有被叫用 户终端的音视频媒体能力描述, 所述主叫用户终端收到该消息后, 向所述 AS 返回 200响应消息,在该消息中携带主叫用户终端的媒体能力描述,通过该过 程, 完成主被叫用户终端之间的媒体协商, 协商通过后, 建立主被叫用户终端 之间的音视频通话。  The AS sends a relNVITE message to the calling user terminal, where the message carries the audio and video media capability description of the called user terminal, and after receiving the message, the calling user terminal returns a 200 response message to the AS. The message carries the media capability description of the calling user terminal, and the media negotiation between the calling and the called user terminals is completed through the process, and after the negotiation is passed, the audio and video calls between the calling and called user terminals are established.
( 2 ) 以上所描述的均是为主叫用户播放广告的过程, 在本发明其它实施 例中, 也可以实现为被叫用户播放广告, 相应的, 被叫 AS与被叫用户之间进 行广告媒体协商, 并由被叫 AS向被叫用户终端播放广告, 其实现方法与上述 方法为主叫用户终端播放广告的方法相类似, 在此不再赞述。  (2) The above describes the process of playing an advertisement for the calling user. In other embodiments of the present invention, the called user can also play the advertisement, and correspondingly, the called AS and the called user advertise. The media negotiates, and the called AS plays the advertisement to the called user terminal, and the implementation method thereof is similar to the method for playing the advertisement for the calling user terminal, and is not mentioned here.
(二)在通话建立后播放广告视频的方法: (2) The method of playing the advertisement video after the call is established:
参见图 4, 在该实施例中, 主叫 AS为其本侧的主叫用户终端 UE1提供广 告业务,相应的, 被叫 AS为其本侧的被叫用户终端 UE2提供广告业务, 主叫 AS和被叫 AS之间可以之间进行信令传输, 也可通过其它设备转发来实现信 令传输, 为了描述方便, 以下以主叫 AS和被叫 AS之间直接进行信令传输为 例进行说明。 Referring to FIG. 4, in this embodiment, the calling AS provides an advertising service for the calling user terminal UE1 of the local side, and correspondingly, the called AS provides an advertising service for the called user terminal UE2 of the local side, and the calling AS Signaling between the AS and the called AS can also be performed by forwarding with other devices. For the convenience of description, the following describes the direct signaling transmission between the calling AS and the called AS as an example.
参见图 4,在本发明一实施例中,在通话建立后播放广告视频的方法包括以 下步骤:  Referring to FIG. 4, in an embodiment of the present invention, a method for playing an advertisement video after a call is established includes the following steps:
步骤 401〜步骤 403:主叫用户向被叫用户发起呼叫,该主叫用户终端 UE1 经由主叫 AS、 被叫 AS向被叫用户终端 UE2发送建立通话请求 INVITE, 在 该请求中, 携带有语音媒体描述, 为了描述简便, 将该携带有语音媒体描述的 INVITE消息表示为: INVITE(Al); 在具体应用中, 主叫用户终端向被叫用户 终端所发送的 INVITE(Al)消息还可能经过其他 SIP服务器路由后方可到达被 叫用户终端, 为了描述简便, 此处对该路由过程不做伴细描述;  Step 401 to step 403: The calling user initiates a call to the called user, and the calling user terminal UE1 sends a call establishment request INVITE to the called user terminal UE2 via the calling AS and the called AS. In the request, the voice is carried. The media description, for simplicity of description, indicates the INVITE message carrying the voice media description as: INVITE(Al); In a specific application, the INVITE (Al) message sent by the calling user terminal to the called user terminal may also pass The other SIP server routes can reach the called user terminal. For the sake of simplicity of description, the routing process is not described here.
步骤 404〜步骤 405:所述被叫用户终端 UE2经由被叫 AS向主叫 AS返回 180响应, 以分别告知被叫 AS和主叫 AS,该被叫终端当前处于等待摘机状态; 步骤 406: 所述主叫 AS向主叫用户终端 UE1返回 180响应, 以响应步骤 401中主叫用户终端 UE1所发送的建立语音通话请求, 告知该 UE1 当前建立 语音通话成功; 其中, 在本步骤所返回的 180响应中, 携带有 SDP Answer, 以便和步骤 401中主叫用户终端 UE1所发送的 INVITE消息中的 SDP Offer完 成一次 Offer/Answer的匹配过程;  Step 404 to step 405: The called user terminal UE2 returns a 180 response to the calling AS via the called AS to notify the called AS and the calling AS respectively, and the called terminal is currently waiting for the off-hook state; Step 406: The calling AS returns a 180 response to the calling user terminal UE1 to respond to the establishment of the voice call request sent by the calling user terminal UE1 in step 401, and informs the UE1 that the voice call is currently established; wherein, in this step, the voice call is successfully established; In the 180 response, the SDP Answer is carried, so as to complete the Offer/Answer matching process with the SDP Offer in the INVITE message sent by the calling user terminal UE1 in step 401;
步骤 407〜步骤 408 : 所述主叫 AS 向主叫用户终端 UE1 发送更新 ( UPDATE )请求, 在该请求中携带 SDP Offer, 以指明广告音视频媒体流的 编解码以及媒体流的发送端口, 所述 UE1 收到所述更新请求后, 向所述主叫 AS返回响应消息 200, 在该 200响应中携带有该 UE1的语音能力描述和视频 媒体能力描述,所述主叫 AS收到该响应,根据其中所携带的终端 UE1的媒体 能力描述, 确定该终端具备视频播放能力, 从而完成主叫用户终端 UE1 与该 主叫 AS之间的广告媒体协商;类似的 , 当需要在被叫用户终端 UE2上实现广 告业务时,所述被叫 AS与被叫用户终端 UE2之间也需执行步骤 407〜步骤 408 的类似步骤,从而完成被叫 AS与被叫用户终端 UE2之间的广告媒体内容协商; 其中, 主叫方进行媒体协商与被叫方进行媒体协商无先后顺序关系,且主被叫 放的媒体协商也可以同时进行, 并不影响本发明实施例的实现;  Step 407 to step 408: The calling AS sends an update (UPDATE) request to the calling user terminal UE1, and carries the SDP Offer in the request to indicate the codec of the advertisement audio and video media stream and the sending port of the media stream. After receiving the update request, the UE1 returns a response message 200 to the calling AS, where the 200 response carries the voice capability description and the video media capability description of the UE1, and the calling AS receives the response. Determining, according to the media capability description of the terminal UE1 carried in the terminal, that the terminal has the video playing capability, thereby completing the advertising media negotiation between the calling user terminal UE1 and the calling AS; similarly, when the called user terminal UE2 is required When the advertisement service is implemented, the similar steps of steps 407 to 408 are also performed between the called AS and the called user terminal UE2, so that the advertisement media content negotiation between the called AS and the called user terminal UE2 is completed. Among them, the mediation of the calling party and the mediation of the called party have no prioritized relationship, and the media negotiation of the main called party can also enter simultaneously. , It does not affect the implementation of the embodiments of the present invention;
步骤 409: 被叫用户摘机应答, 被叫用户终端 UE2向被叫 AS返回 200响 应消息,在该响应消息中携带音频媒体描述,表明此次主被叫之间的通话只包 括音频内容, 不包括视频内容; 为了描述简便, 将携带有音频媒体描述的 200 响应消息表示为: 200(A1); Step 409: The called user picks up the phone and the called user terminal UE2 returns 200 rings to the called AS. The message carries an audio media description in the response message, indicating that the call between the calling and the called party only includes the audio content, and does not include the video content; for the convenience of description, the 200 response message carrying the audio media description is expressed as: 200 (A1);
步骤 410: 所述被叫 AS将接收到的 200响应消息 200(A1)转发给所述主 叫 AS,;  Step 410: The called AS forwards the received 200 response message 200 (A1) to the calling AS.
步骤 411 : 所述主叫 AS将所述 200 响应消息转发给所述主叫用户终端 UE1 , 以告知该 UE 1被叫用户摘机应答;  Step 411: The calling AS forwards the 200 response message to the calling user terminal UE1 to notify the UE 1 that the called user picks up the call.
步骤 412: 所述主叫 AS 据收到的所述 200响应消息中仅携带音频媒体 描述, 判断得到此次主被叫通话没有视频内容,且主叫用户终端具备播放广告 视频的能力, 决定向所述主叫用户终端 UE1播放广告视频媒体流, 在本发明 优选实施例中, 为了不影响主被叫之间的语音通话,仅决定播放广告视频媒体 流, 而不播放广告音频;  Step 412: The calling AS receives only the audio media description in the received 200 response message, and determines that the main called party has no video content, and the calling user terminal has the capability of playing the advertisement video, and determines the The calling user terminal UE1 plays the advertisement video media stream. In the preferred embodiment of the present invention, in order not to affect the voice call between the calling party and the called party, only the advertisement video media stream is played without playing the advertisement audio;
步骤 413: 所述主叫 AS向主叫用户终端 UE1发送重邀请 ( relNVITE )消 息,在该消息中,在主被叫终端之间已经协商的语音媒体描述的基础上再增加 广告视频的媒体描述; 为了描述方便,将携带有语音媒体描述和广告视频媒体 描述的 relNVITE消息表示为: reINVITE(Al/V广告);  Step 413: The calling AS sends a re-invitation (relNVITE) message to the calling user terminal UE1, where the media description of the advertising video is added based on the voice media description already negotiated between the calling and the called terminal. For convenience of description, the relNVITE message carrying the voice media description and the advertisement video media description is expressed as: reINVITE (Al/V advertisement);
在具体应用中, 为了将广告视频和视频通话加以区分, 可以在所述主叫 AS向所述主叫用户终端 UE1所发送的 relNVITE消息中增加指示信息, 以便 终端 UE1根据该指示信息对广告视频和视频通话进行不同的处理; 在本发明 优选实施例中, 主叫用户终端 UE1在根据所述指示信息判断得到当前要进行 广告视频的媒体协商时, 则可以直接执行后续步骤 414, 对所述 relNVITE消 息自动应答, 如果根据指示信息判断得到所述 relNVITE消息为一个因对端用 户启动视频通话而产生请求消息, 则可进一步提示本端用户是否接受视频通 话, 并根据本端用户的选择, 执行与视频通话相关的后续步骤;  In a specific application, in order to distinguish between the advertisement video and the video call, the indication information may be added to the relNVITE message sent by the calling AS to the calling user terminal UE1, so that the terminal UE1 can view the advertisement video according to the indication information. In the preferred embodiment of the present invention, the calling user terminal UE1 may directly perform the subsequent step 414 when determining that the media negotiation of the advertisement video is to be performed according to the indication information. The relNVITE message is automatically replied. If the relNVITE message is determined to be a request message for the peer user to initiate a video call according to the indication information, the local user may be further prompted to accept the video call, and according to the selection of the local user, Next steps related to video calls;
步骤 414: 所述主叫用户终端 UE1 收到 relNVITE消息后, 向所述主叫 Step 414: After the calling user terminal UE1 receives the relNVITE message, the calling party
AS返回 200响应消息,在该响应消息中携带该主叫用户终端 UE1的音频及视 频媒体能力描述, 以便主叫 AS根据主叫用户终端 UE1的媒体能力,完成媒体 协商; 为描述方便, 将该 200响应消息表示为 200 ( A1/V ); The AS returns a 200 response message, and carries the audio and video media capability description of the calling user terminal UE1 in the response message, so that the calling AS completes the media negotiation according to the media capability of the calling user terminal UE1; The 200 response message is represented as 200 (A1/V);
步骤 415: 所述主叫 AS根据主叫用户终端 UE1上报的媒体能力, 进行广 告媒体协商, 协商成功后, 向所述主叫用户终端 UE1播放相应的广告视频; 为了不影响主被叫用户之间正常的音频通话, 所述主叫 AS向主叫用户终端所 播放的广告仅包括视频内容而不包括音频内容。此时主叫用户在与被叫用户语 音通话的同时, 可以看到自己喜欢的广告视频。 Step 415: The calling AS performs wide according to the media capability reported by the calling user terminal UE1. After the negotiation is successful, the corresponding advertisement video is played to the calling user terminal UE1; in order not to affect the normal audio call between the calling and called users, the advertisement played by the calling AS to the calling user terminal Includes only video content and no audio content. At this time, the calling user can see the advertisement video that he likes while talking with the called user.
步骤 413〜步骤 415为向主叫用户终端播放广告视频的具体实现,相应的, 可以通过步骤 416〜步骤 418, 实现被叫 AS向被叫用户终端播放广告视频, 其 具体实现过程与步骤 413〜步骤 415相类似。需要注意的是,步骤 413〜步骤 415 同步骤 416〜步骤 418之间没有执行的先后顺序, 并且, 为主叫用户终端播放 广告可以与为被叫用户终端播放广告同时执行。 二、 在进行视频播放后, 可进一步对视频播放进行控制, 下面, 介绍相应 的控制视频播放的方法:  Steps 413 to 415 are specific implementations of playing the advertisement video to the calling user terminal. Correspondingly, the called AS can play the advertisement video to the called user terminal through steps 416 to 418. The specific implementation process and step 413 are performed. Step 415 is similar. It should be noted that there is no order of execution between steps 413 and 415 and steps 416 to 418, and the playing of the advertisement for the calling user terminal can be performed simultaneously with playing the advertisement for the called user terminal. Second, after the video is played, the video playback can be further controlled. Next, the corresponding method for controlling the video playback is introduced:
在通话建立后, 如果主被叫用户终端之间建立的是语音通话, 则 AS可以 在用户通话过程中,向用户终端播放广告视频,用户可以一边通话一边看广告, 并且, 基于用户的需要, 该用户可以对广告的播放进行控制, 该控制包括: 取 消通话过程中播放的广告、恢复在通话过程中播放广告、 当用户从音频通话切 换到音视频通话时, 自动停止广告播放。在用户终端上相应的提供有进行所述 控制操作的界面, 以便接收用户的控制命令, 并进行与所述控制命令相关的操 作。  After the call is established, if a voice call is established between the calling and called user terminals, the AS can play an advertisement video to the user terminal during the user's call, and the user can watch the advertisement while talking, and based on the user's needs, The user can control the playing of the advertisement, and the control includes: canceling the advertisement played during the call, restoring the advertisement during the call, and automatically stopping the advertisement when the user switches from the audio call to the audio and video call. An interface for performing the control operation is provided correspondingly on the user terminal to receive a control command of the user and perform an operation related to the control command.
下面, 结合图 5对控制视频播放的方法加以详细说明。  Next, a method of controlling video playback will be described in detail with reference to FIG.
参见图 5, 主被叫用户之间进行音频通话, AS向主叫用户终端 UE1播放 广告视频, 在此情况下, 用户对广告播放的控制包括以下步骤:  Referring to FIG. 5, an audio call is made between the calling and called users, and the AS plays an advertisement video to the calling user terminal UE1. In this case, the user's control of the advertisement playing includes the following steps:
步骤 501 : 所述主叫用户终端 UE1选择进行取消广告视频播放的操作; 步骤 502〜步骤 503:所述终端 UE1经由 SIP服务器向所述 AS发送重邀请 ( relNVITE ) 消息, 在该消息中携带广告指示, 并且该消息中 SDP的媒体描 述中的视频媒体行接收端口为 0, 以通知所述 AS取消广告业务的视频媒体播 放, 而主被叫用户之间的音视频通话并不加以改变; 为了描述简便, 将该 relNVITE消息表示为 reINVITE(Al/V0);  Step 501: The calling user terminal UE1 selects an operation for canceling the advertisement video playback; Step 502 to Step 503: The terminal UE1 sends a re-invitation (relNVITE) message to the AS via the SIP server, and carries the advertisement in the message. Instructing, and the video media line receiving port in the media description of the SDP in the message is 0, to notify the AS to cancel the video media playing of the advertising service, and the audio and video calls between the calling and called users are not changed; The description is simple, and the relNVITE message is represented as reINVITE(Al/V0);
步骤 504〜步骤 506: 所述 AS收到所述 relNVITE消息后, 根据其中的广 告指示,确定当前需要对广告业务进行媒体协商, 并根据该消息中的视频媒体 描述, 确定主叫用户终端 UE1当前选择停止播放广告视频, 从而, 该 AS停止 向所述终端 UE1播放广告视频 , 并构造一个 SDP Answer, 通过响应消息 200 携带该 SDP Answer经由所述 SIP服务器返回给所述终端 UE1; Step 504 to step 506: after the AS receives the relNVITE message, according to the wide The indication indicates that the media negotiation is currently required for the advertisement service, and according to the video media description in the message, it is determined that the calling user terminal UE1 currently selects to stop playing the advertisement video, so that the AS stops playing the advertisement video to the terminal UE1. And constructing an SDP Answer, carrying the SDP Answer through the response message 200, returning to the terminal UE1 via the SIP server;
至此完成了取消广告视频播放的操作; 在实际应用中, 用户在取消广告视 频播放后,还可进一步恢复广告视频的播放, 恢复广告视频播放具体包括以下 步骤:  At this point, the operation of canceling the advertisement video playback is completed; in the actual application, after the user cancels the advertisement video playback, the user can further resume the playback of the advertisement video, and the restoration of the advertisement video playback specifically includes the following steps:
步骤 507: 所述主叫用户终端 UE1选择恢复广告视频的播放;  Step 507: The calling user terminal UE1 selects to resume playback of the advertisement video;
步骤 508〜步骤 509: 所述终端 UE1 经由 SIP服务器向所述 AS发送 relNVITE消息, 在该消息中携带广告指示, 并且该消息中 SDP的媒体描述中 的视频媒体行接收端口为有效值, 以通知所述 AS恢复广告业务的视频媒体播 放, 而主被叫用户之间的音视频通话并不加以改变; 为了描述简便, 将该 relNVITE消息表示为 reINVITE(Al/Vl);  Step 508 to step 509: The terminal UE1 sends a relNVITE message to the AS via the SIP server, and carries an advertisement indication in the message, and the video media line receiving port in the media description of the SDP in the message is a valid value, to notify The AS resumes the video media playing of the advertising service, and the audio and video calls between the calling and called users are not changed; for convenience of description, the relNVITE message is represented as reINVITE (Al/Vl);
步骤 510: 所述 AS收到所述 relNVITE消息后, 根据其中的广告指示, 确定当前需要对广告业务进行媒体协商, 并根据该消息中的视频媒体描述,确 定主叫用户终端 UE1当前选择恢复广告视频的播放,从而,该 AS开始重新向 所述终端 UE1播放广告视频; 在具体应用中 , 所述 AS可以为所述终端 UE1 顺序播放下一个广告,也可以在存储的广告列表中选择通话态广告列表, 并从 该列表中选择相应的广告为所述终端 UE1播放;  Step 510: After receiving the relNVITE message, the AS determines, according to the advertisement indication therein, that media negotiation is currently required for the advertisement service, and determines, according to the video media description in the message, that the calling user terminal UE1 currently selects to resume the advertisement. The playback of the video, so that the AS starts to replay the advertisement video to the terminal UE1; in a specific application, the AS may sequentially play the next advertisement for the terminal UE1, or may select the call state in the stored advertisement list. Advertising list, and selecting a corresponding advertisement from the list to play for the terminal UE1;
步骤 511〜步骤 512: 所述 AS向所述终端 UE1播放广告后, 相应的构造 一个 SDP Answer携带广告视频媒体描述, 通过响应消息 200携带该 SDP Answer经由所述 SIP服务器返回给所述终端 UE1 , 以告知该 UE1当前恢复广 告视频播放成功。  Step 511 to step 512: After the AS plays the advertisement to the terminal UE1, the SDP Answer carries an advertisement video media description, and the SDP Answer is returned to the terminal UE1 via the SIP server by using the response message 200. In order to inform the UE1 that the currently resumed advertisement video is successfully played.
在具体应用中, 用户除了可以取消广告之外,还可以通过操作界面由音频 通话切换到音视频通话, 一旦切换到音视频通话成功, 则为了不影响用户之间 正常的音视频通话, 需要停止广告的播放, 此时, 停止广告播放具体包括以下 步骤:  In the specific application, in addition to canceling the advertisement, the user can also switch from the audio call to the audio and video call through the operation interface. Once the audio/video call is successfully switched, the user needs to stop in order not to affect the normal audio and video call between the users. The playback of the advertisement, at this time, stopping the advertisement to play specifically includes the following steps:
步骤 513:所述主叫用户终端 UE1执行将音频通话切换到音视频通话的操 作; 步骤 514〜步骤 515:所述终端 UE1经由 SIP服务器向所述 AS发送重邀请 relNVITE 消息, 在该消息中并不携带广告指示, 并且在该消息中携带该终端 UE1的音频媒体能力描述和视频媒体能力描述, 以告知所述 AS当前将用户终 端之间的通话切换至音视频通话; 为了描述简便, 将所述 relNVITE消息表示 为 reINVITE(Al/Vl); Step 513: The calling user terminal UE1 performs an operation of switching an audio call to an audio-video call. Step 514 to step 515: The terminal UE1 sends a re-invitation relNVITE message to the AS via the SIP server, does not carry an advertisement indication in the message, and carries the audio media capability description and video media of the terminal UE1 in the message. Capability description, to inform the AS to currently switch the call between the user terminals to the audio and video call; for simplicity of description, the relNVITE message is represented as reINVITE (Al/Vl);
步骤 516〜步骤 518: 所述 AS收到所述 relNVITE消息后 , 由于该消息中 并未携带广告指示,因此确定得到当前所进行的媒体协商为主被叫用户之间的 媒体协商, 从而将收到的所述 relNVITE消息经由所述 SIP服务器透传至被叫 用户终端 UE2, 以告知被叫用户终端: 主叫用户当前请求进行音视频通话; 步骤 519〜步骤 520: 所述被叫用户终端 UE2收到所述 relNVITE消息后, 选择是否接受视频通话, 并将媒体匹配结果携带在响应消息 200中, 经由所述 SIP服务器返回给所述 AS;  Step 516 to step 518: After receiving the relNVITE message, the AS does not carry the advertisement indication, so it is determined that the current media negotiation is the media negotiation between the primary and the called user, and thus the receiving The relNVITE message is transparently transmitted to the called user terminal UE2 via the SIP server to notify the called user terminal: the calling user currently requests to perform an audio and video call; Step 519 to Step 520: The called user terminal UE2 After receiving the relNVITE message, selecting whether to accept the video call, and carrying the media matching result in the response message 200, returning to the AS via the SIP server;
步骤 521 : 所述 AS根据所述被叫用户终端 UE2所返回的响应消息, 对主 被叫用户进行音视频匹配结果的检查,如果匹配结果中包括视频, 则可确定主 被叫用户终端间的通话将包括视频通话,停止向主叫用户终端播放广告,如果 匹配结果中不包括视频, 则可确定当前主被叫间的通话并不包括视频通话, 继 续向主叫用户终端播放广告视频。  Step 521: The AS checks the audio and video matching result of the calling party and the called user according to the response message returned by the called user terminal UE2. If the matching result includes a video, the AS may determine the content between the calling and called user terminals. The call will include a video call to stop playing the advertisement to the calling user terminal. If the matching result does not include the video, it can be determined that the current call between the primary and the called party does not include the video call, and the advertisement video is continuously played to the calling user terminal.
步骤 522〜步骤 524: 所述 AS将接收到的 200响应消息经过 SIP服务器路 由至所述主叫用户终端 UE1 , 以告知该终端当前通话成功切换至音视频通话, 所述主叫用户终端 UE1和被叫用户终端 UE2之间进行音视频通话。  Step 522 to step 524: The AS routes the received 200 response message to the calling user terminal UE1 through the SIP server to notify the terminal that the current call is successfully switched to the audio and video call, and the calling user terminal UE1 and The called user terminal UE2 performs an audio and video call.
步骤 513〜步骤 524为用户将音频通话切换到音视频通话时, 停止播放广 告视频的操作, 在本发明其它实施例中, 还可采用图 5-1所示的方法实现上述 操作; 该实施例应用的场景为: 主叫 AS和被叫 AS分别向主叫用户终端 UE1 和被叫用户终端 UE2播放视频广告, 终端 UE1进行切换到音视频通话的操作 后, 实现停止播放广告视频具体包括:  Step 513 to step 524 are operations for stopping the advertisement of the advertisement video when the user switches the audio call to the audio and video call. In other embodiments of the present invention, the foregoing operation may also be implemented by using the method shown in FIG. 5-1. The application scenario is as follows: The calling AS and the called AS play the video advertisement to the calling user terminal UE1 and the called user terminal UE2 respectively, and after the terminal UE1 performs the operation of switching to the audio and video call, the implementation of stopping the playing of the advertising video includes:
步骤 525: 主叫用户终端 UE 1向主叫 AS发送 relNVITE消息, 该消息中 携带该终端 UE1 的音频媒体能力描述和视频媒体能力描述, 以告知所述 AS 当前将用户终端之间的通话切换至音视频通话, 并且, 由于主叫 AS正在向主 叫用户终端 UE1播放广告, 因此在该消息中还携带广告媒体描述; 为了描述 简便, 将所述 relNVITE消息表示为 reINVITE(Al/V广告/ VI); Step 525: The calling user terminal UE 1 sends a relNVITE message to the calling AS, where the message carries the audio media capability description and the video media capability description of the terminal UE1, so that the AS currently switches the call between the user terminals to Audio and video call, and, since the calling AS is playing an advertisement to the calling user terminal UE1, the message media description is also carried in the message; Conveniently, the relNVITE message is represented as reINVITE (Al/V advertisement / VI);
步骤 526: 所述主叫 AS向被叫 AS转发所述 relNVITE消息, 由于仅在 AS和用户终端之间播放广告视频, 因此, 所转发的 relNVITE消息中并不包 括广告的媒体描述;  Step 526: The calling AS forwards the relNVITE message to the called AS. Since the advertisement video is played only between the AS and the user terminal, the forwarded relNVITE message does not include the media description of the advertisement.
步骤 527: 所述被叫 AS向被叫用户终端转发所述 relNVITE消息, 由于 被叫 AS正在向被叫用户终端 UE2播放广告, 因此, 被叫 AS向被叫用户终端 发送的 relNVITE消息中包括广告的媒体描述;  Step 527: The called AS forwards the relNVITE message to the called user terminal, because the called AS is playing an advertisement to the called user terminal UE2, and therefore, the called relNVITE message sent by the called AS to the called user terminal includes an advertisement. Media description;
步骤 528: 被叫用户终端 UE2根据收到的 relNVITE消息获知主叫用户当 前切换到音视频通话, 将广告的媒体行接收端口设置为 0, 并向被叫 AS返回 200响应消息, 该消息中携带有音视频媒体描述, 还携带有接收端口为 0的广 告媒体描述, 该响应消息表示为 200 ( A1/V1/V0 );  Step 528: The called user terminal UE2 learns that the calling user currently switches to the audio and video call according to the received relNVITE message, sets the media line receiving port of the advertisement to 0, and returns a 200 response message to the called AS, where the message carries There is an audio and video media description, and also carries an advertisement media description with a receiving port of 0, and the response message is represented as 200 (A1/V1/V0);
步骤 529: 被叫 AS根据收到的 relNVITE消息, 根据该消息中所携带的 媒体描述判断得到通话中包括视频,停止向被叫用户终端 UE2播放广告视频; 步骤 530: 被叫 AS向主叫 AS返回 200响应消息, 该消息中携带有音视 频媒体描述;  Step 529: The called AS determines, according to the received relNVITE message, that the video included in the call includes the video and stops playing the advertisement video to the called user terminal UE2. Step 530: The called AS sends the advertisement to the calling AS. Returning a 200 response message, which carries an audio and video media description;
步骤 531 : 主叫 AS根据收到的响应消息, 判断得到通话中包括视频, 停 止向主叫用户终端播放广告视频;  Step 531: The calling AS determines, according to the received response message, that the video is included in the call, and stops playing the advertisement video to the calling user terminal.
步骤 532: 主叫 AS向主叫用户终端 UE1返回 200响应消息, 该消息中所 携带的广告媒体行的接收端口为 0。  Step 532: The calling AS returns a 200 response message to the calling user terminal UE1, where the receiving port of the advertising media line carried in the message is 0.
通过上述步骤 525〜步骤 532, 实现了停止播放广告视频的操作,该实施例 中, 主叫 AS和被叫 AS分别向主被叫用户终端播放广告视频, 在本发明其它 实施例中,也存在仅有主叫 AS或被叫 AS向其对应终端播放广告视频的情况, 此时, 进行广告视频播放的用户终端与 AS之间所传输的 relNVITE消息中携 带有广告媒体描述,在确定切换到的通话中包括视频后, 则在返回的响应消息 中携带接收端口为 0的广告媒体描述。  Through the above steps 525 to 532, the operation of stopping the playing of the advertisement video is realized. In this embodiment, the calling AS and the called AS respectively play the advertisement video to the calling user terminal, and in other embodiments of the present invention, Only the calling AS or the called AS plays an advertisement video to its corresponding terminal. At this time, the relNVITE message transmitted between the user terminal and the AS that performs the advertisement video playback carries the advertisement media description, and is determined to be switched. After the video is included in the call, the returned response message carries an advertisement media description with the receiving port being 0.
综上所述,在终端当前正在接收广告视频时, 用户可以在所述终端上进行 取消广告操作; 在终端当前正在与对方终端进行视频通话时, 用户可以进行取 消视频操作,进而可以进一步进行恢复广告的操作; 在终端当前没有接收任何 视频时, 则用户可以在该终端上进行启动广告视频或者启动视频通话的操作。 需要注意的是: 在实际应用中, 上述取消广告视频、 恢复广告视频、 以及 停止广告视频的控制过程可以分别独立进行, 另外,上述三个控制过程也没有 先后顺序的限制, 以上实施例仅是为描述方便所举的一个优选实施例, 不应认 为是对本发明实施例的限制。 In summary, when the terminal is currently receiving the advertisement video, the user can perform the cancel advertisement operation on the terminal; when the terminal is currently performing a video call with the counterpart terminal, the user can cancel the video operation, and further can be restored. Operation of the advertisement; When the terminal does not currently receive any video, the user can perform an operation of starting an advertisement video or starting a video call on the terminal. It should be noted that in the actual application, the above control process of canceling the advertisement video, restoring the advertisement video, and stopping the advertisement video may be separately performed separately. In addition, the above three control processes are not limited in sequence, and the above embodiment is only A preferred embodiment for the convenience of description is not to be construed as limiting the embodiments of the invention.
上述的实施例是以主叫用户终端以及与之对应的 AS为例, 说明如何进行 对视频播放的控制,在本发明其它实施例中, 当然也可以通过被叫用户终端和 与之对应的 AS完成上述控制操作, 具体实现过程与上述实施例所描述的过程 类似, 在此不再赞述。  The foregoing embodiment uses the calling user terminal and the AS corresponding thereto as an example to describe how to perform video playback control. In other embodiments of the present invention, the called user terminal and the AS corresponding thereto may also be used. The above control operation is completed, and the specific implementation process is similar to the process described in the foregoing embodiment, and is not mentioned here.
此外, 上述实施例所描述的控制过程是在通话建立之后, 当然, 也可以在 通话建立时进行取消广告视频以及恢复广告视频的操作,其具体实现过程与上 述实施例所描述的过程一致。  In addition, the control process described in the foregoing embodiment is performed after the call is established. Of course, the operation of canceling the advertisement video and restoring the advertisement video may also be performed when the call is established, and the specific implementation process is consistent with the process described in the above embodiments.
在以上各个方法实施例中, 为了描述简洁,省略了一些和本发明实施例具 体实现场景不太相关的 SIP消息, 例如确认消息(ACK )等, 还省略的某些非 关键的网络实体,本领域技术人员根据上述实施例的描述能够显而易见的确定 实现上述方法所需要的相关消息以及网络实体。 三、 本发明实施例所提供的播放视频的装置:  In the above various method embodiments, for the sake of brevity, some SIP messages that are not related to the specific implementation scenarios of the embodiments of the present invention, such as an acknowledgement message (ACK), etc., and some non-critical network entities that are omitted are also omitted. The related art and network entities required to implement the above method can be clearly determined by those skilled in the art from the description of the above embodiments. The device for playing video provided by the embodiment of the present invention:
参见图 6, 本发明实施例所提供的播放视频的装置包括:  Referring to FIG. 6, the apparatus for playing video provided by the embodiment of the present invention includes:
通话状态确定单元 601, 用于在触发视频业务后, 确定当前的通话状态; 判断单元 602, 用于判断所述当前通话状态是否满足视频播放条件, 并将 判断结果告知媒体协商单元 603;  The call state determining unit 601 is configured to determine a current call state after the video service is triggered; the determining unit 602 is configured to determine whether the current call state meets a video playing condition, and notify the media negotiation unit 603 of the determination result;
媒体协商单元 603 , 用于在获知所述当前通话状态满足视频播放条件时, 与终端进行媒体协商;  The media negotiating unit 603 is configured to perform media negotiation with the terminal when the current call state is satisfied that the video playing condition is met;
视频业务播放单元 604, 用于在确定所述媒体协商单元 603进行所述媒体 协商成功后, 向终端播放视频。  The video service playing unit 604 is configured to play a video to the terminal after determining that the media negotiation unit 603 performs the media negotiation successfully.
在本发明优选实施例中, 为了实现对视频播放的控制, 所述装置还可进一 步包括:  In a preferred embodiment of the present invention, in order to implement control of video playback, the apparatus may further include:
停止视频业务播放单元,用于在判断单元 602告知其当前不再满足视频播 放条件时, 控制所述视频业务播放单元停止播放视频业务, 和 /或, 取消视频业务播放单元, 用于: 接收终端发送来的重邀请消息, 根据该重 邀请消息中携带的视频业务指示以及非激活态的视频业务媒体描述,取消所述 视频业务的播放; 和 /或, Stopping the video service playing unit, when the determining unit 602 informs that the video playing condition is no longer satisfied, controlling the video service playing unit to stop playing the video service, and/or, The canceling the video service playing unit is configured to: receive the re-invitation message sent by the terminal, cancel the playing of the video service according to the video service indication carried in the re-invitation message and the inactive video service media description; and/or ,
恢复视频业务播放单元, 用于: 接收终端发送来的重邀请消息, 根据该重 邀请消息中携带的视频业务指示以及激活态的视频业务媒体描述,恢复所述视 频业务的播放。  The video service playback unit is configured to: receive a re-invitation message sent by the terminal, and resume playback of the video service according to the video service indication carried in the re-invitation message and the video service media description in an active state.
在具体应用中, 所述播放视频的装置可以为视频业务服务器, 当然, 也可 以采用其它具有相应功能的网络侧设备作为所述播放视频的装置 ,并不影响本 发明实施例的实现; 针对广告视频业务, 所述播放视频的装置则可以为广告服 务器。 四、 本发明实施例所提供的播放视频的系统:  In a specific application, the device for playing a video may be a video service server. Of course, other network side devices having corresponding functions may be used as the device for playing video, which does not affect the implementation of the embodiment of the present invention; The video service, the device for playing the video may be an advertisement server. The system for playing video provided by the embodiment of the present invention:
参见图 7, 本发明实施例所提供的播放视频的系统包括视频业务服务器 701和 SIP服务器 702, 其中:  Referring to FIG. 7, a system for playing video provided by an embodiment of the present invention includes a video service server 701 and a SIP server 702, where:
所述视频业务服务器 701用于:在触发视频业务后,确定当前的通话状态, 并在所确定的通话状态满足视频播放条件时, 与终端进行媒体协商, 和, 在协 商成功后, 向终端播放视频;  The video service server 701 is configured to determine a current call state after triggering the video service, and perform media negotiation with the terminal when the determined call state meets the video play condition, and play the terminal to the terminal after the negotiation succeeds. Video
所述 SIP服务器 702用于: 进行视频业务的注册及触发, 在视频业务服务 器与终端进行媒体协商时进行消息路由。  The SIP server 702 is configured to: perform registration and triggering of a video service, and perform message routing when the video service server performs media negotiation with the terminal.
在具体应用中 , 需要根据相应的视频业务策略来为用户播放视频 ,在此情 况下, 本发明实施例所提供的系统可进一步包括:  In a specific application, the video needs to be played for the user according to the corresponding video service policy. In this case, the system provided by the embodiment of the present invention may further include:
视频业务策略管理单元, 用于实现视频业务策略的设置、 修改和 /或删除, 以及为视频业务服务器提供视频业务策略。  The video service policy management unit is configured to implement setting, modifying, and/or deleting of a video service policy, and providing a video service policy for the video service server.
对于播放视频的系统来说,还需要采用相应的装置来接收用户或运营商上 传的视频, 此时, 所述系统还可进一步包括:  For the system for playing the video, the corresponding device is also required to receive the video uploaded by the user or the operator. In this case, the system may further include:
视频内容管理单元, 用于接收并保存上传的视频文件、以及为视频业务服 务器提供播放的视频。  The video content management unit is configured to receive and save the uploaded video file and provide the video for the video service server to play.
进一步的, 为了实现对视频内容进行管理, 所述视频内容管理单元还可进 一步用于对视频文件进行审查和 /或删除、 查询视频文件。 针对于本发明优选实施例,上述系统实施例中所述的视频业务可以为广告 视频业务, 相应的, 所述视频为广告视频。 Further, in order to implement management of the video content, the video content management unit may be further configured to review and/or delete the video file and query the video file. For the preferred embodiment of the present invention, the video service described in the foregoing system embodiment may be an advertisement video service, and correspondingly, the video is an advertisement video.
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通 技术人员来说, 在不脱离本发明原理的前提下, 还可以做出若干改进和润饰, 这些改进和润饰也应视为本发明的保护范围。  The above is only a preferred embodiment of the present invention, and it should be noted that those skilled in the art can also make several improvements and retouchings without departing from the principles of the present invention. It should be considered as the scope of protection of the present invention.

Claims

权 利 要 求 Rights request
1、 一种播放视频的方法, 其特征在于, 该方法包括:  A method for playing a video, the method comprising:
在触发视频业务后, 网络侧设备确定当前通话状态;  After the video service is triggered, the network side device determines the current call state.
所述网络侧设备在确定当前通话状态满足视频播放条件时,与终端进行媒 体协商, 并在协商成功后, 向终端播放视频; 其中, 所述网络侧设备是为本侧 的所述终端提供所述视频业务的网络侧设备。  When the network side device determines that the current call state meets the video playing condition, performs media negotiation with the terminal, and after the negotiation succeeds, the video is played to the terminal; wherein the network side device is provided by the terminal of the current side. The network side device of the video service.
2、 根据权利要求 1所述的方法, 其特征在于, 所述网络侧设备确定当前 通话状态的具体实现为:  2. The method according to claim 1, wherein the specific implementation of the network side device determining the current call state is:
所述网络侧设备接收到主叫用户终端发送的通话建立请求后,将该请求路 由至被叫用户终端;  After receiving the call setup request sent by the calling user terminal, the network side device routes the request to the called user terminal;
所述网络侧设备接收所述被叫用户终端返回的响应消息,由该响应消息获 知被叫用户当前处于等待摘机状态。  The network side device receives the response message returned by the called user terminal, and the response message indicates that the called user is currently waiting for the off-hook state.
3、 根据权利要求 2所述的方法, 其特征在于, 所述网络侧设备根据当前 通话状态为等待摘机状态确定得到当前满足视频播放条件,所述与终端进行媒 体协商的具体实现为:  The method according to claim 2, wherein the network side device determines that the video playback condition is currently satisfied according to the current call state and waits for the off-hook state, and the specific implementation of the media negotiation with the terminal is:
所述网络侧设备向终端发送携带有视频业务的媒体描述的更新请求; 所述网络侧设备接收到所述终端返回的携带有该终端音视频媒体能力描 述的响应消息 , 根据该终端的音视频媒体能力描述进行媒体协商。  The network side device sends an update request carrying the media description of the video service to the terminal; the network side device receives the response message that is returned by the terminal and carries the audio and video media capability description of the terminal, according to the audio and video of the terminal Media capability description for media negotiation.
4、 根据权利要求 2所述的方法, 其特征在于, 所述网络侧设备根据当前 通话状态为等待摘机状态确定得到当前满足视频播放条件,所述与终端进行媒 体协商的具体实现为:  The method according to claim 2, wherein the network side device determines that the video playback condition is currently satisfied according to the current call state, and the specific implementation of the media negotiation with the terminal is:
所述网络侧设备从所述主叫用户终端发送的通话建立请求中获得该终端 的音视频能力;  The network side device obtains the audio and video capability of the terminal from the call setup request sent by the calling user terminal;
所述网络侧设备通过所述通话建立请求的响应消息 ,将视频业务的媒体描 述发送给所述主叫用户终端。  The network side device sends a media description of the video service to the calling user terminal by using a response message of the call setup request.
5、 根据权利要求 1所述的方法, 其特征在于, 所述网络侧设备确定通话 状态的具体实现为:  The method according to claim 1, wherein the specific implementation of the network side device determining the call state is:
在用户摘机应答后 ,所述网络侧设备根据接收到的被叫用户终端所返回的 响应消息, 确定当前处于被叫用户摘机应答状态; 其中, 所述响应消息中携带 有媒体描述。 After the user picks up the call, the network side device determines that the called user is in the off-hook response state according to the received response message returned by the called user terminal, where the response message carries There is a media description.
6、 根据权利要求 5所述的方法, 其特征在于, 当所述响应消息携带的媒 体描述中不包括激活的视频媒体描述时,所述网络侧设备确定得到当前通话状 态满足视频播放条件, 所述与终端进行媒体协商的具体实现为:  The method according to claim 5, wherein when the media description carried in the response message does not include the activated video media description, the network side device determines that the current call state satisfies the video playing condition, The specific implementation of media negotiation with the terminal is as follows:
所述网络侧设备向所述终端发送重邀请消息 ,在该消息中携带视频业务的 媒体描述;  Sending, by the network side device, a re-invitation message to the terminal, where the message carries a media description of the video service;
所述网络侧设备接收到所述终端返回的携带有该终端音视频媒体能力描 述的响应消息 , 根据该终端的音视频媒体能力描述进行媒体协商。  The network side device receives a response message that is returned by the terminal and carries the capability description of the audio and video media of the terminal, and performs media negotiation according to the audio and video media capability description of the terminal.
7、 根据权利要求 3或 6所述的方法, 其特征在于, 所述终端为主叫用户 终端和 /或被叫用户终端。  The method according to claim 3 or 6, wherein the terminal is a calling user terminal and/or a called user terminal.
8、 根据权利要求 1所述的方法, 其特征在于, 该方法进一步包括: 当判断得到当前通话状态不再满足视频播放条件时,所述网络侧设备停止 向终端播放视频。  The method according to claim 1, wherein the method further comprises: when it is determined that the current call state no longer satisfies the video playing condition, the network side device stops playing the video to the terminal.
9、 根据权利要求 8所述的方法, 其特征在于, 所述判断当前通话状态不 再满足视频播放条件的具体实现为:  The method according to claim 8, wherein the specific implementation of determining that the current call state no longer satisfies the video playing condition is:
在所述终端上进行从音频通话切换到音视频通话的操作后 ,所述网络侧设 备接收所述终端发送来的重邀请消息,其中,该消息中携带音视频通话的媒体 描述为激活态;  After the operation of switching from the audio call to the audio and video call is performed on the terminal, the network side device receives the re-invitation message sent by the terminal, where the media description of the audio and video call in the message is an active state;
所述网络侧设备根据所述重邀请消息中携带的音视频通话的媒体描述,获 知当前需要将音频通话切换至音视频通话,将所述重邀请消息转发至另一侧终 端;  The network side device learns that the audio call is currently switched to the audio and video call according to the media description of the audio and video call carried in the re-invitation message, and the re-invitation message is forwarded to the other terminal;
所述网络侧设备根据所述另一侧终端返回的响应消息 ,确定该另一侧终端 是否接受视频通话, 如果是, 则判断得到当前不再满足视频播放条件。  The network side device determines, according to the response message returned by the other side terminal, whether the other side terminal accepts the video call, and if yes, determines that the video playing condition is no longer satisfied.
10、根据权利要求 8所述的方法, 其特征在于, 所述判断当前通话状态不 再满足视频播放条件的具体实现为:  The method according to claim 8, wherein the specific implementation of determining that the current call state no longer satisfies the video playing condition is:
在所述终端上进行从音频通话切换到音视频通话的操作后 ,所述网络侧设 备接收所述终端发送来的重邀请消息,其中,该消息中携带有激活态的音频媒 体描述、 广告媒体描述以及视频媒体描述;  After the operation of switching from the audio call to the audio and video call is performed on the terminal, the network side device receives the re-invitation message sent by the terminal, where the message carries the activated audio media description and the advertising medium. Description and video media description;
所述网络侧设备根据所述重邀请消息中携带的音视频通话的媒体描述,获 知当前需要将音频通话切换至音视频通话,将所述重邀请消息转发至另一侧终 端; The network side device obtains according to the media description of the audio and video call carried in the re-invitation message. Knowing that the audio call needs to be switched to the audio and video call, and the re-invitation message is forwarded to the other terminal;
所述网络侧设备根据所述另一侧终端返回的响应消息 ,确定该另一侧终端 是否接受视频通话, 如果是, 则判断得到当前不再满足视频播放条件。  The network side device determines, according to the response message returned by the other side terminal, whether the other side terminal accepts the video call, and if yes, determines that the video playing condition is no longer satisfied.
11、 根据权利要求 1所述的方法, 其特征在于, 该方法进一步包括: 在所述终端上进行取消视频业务的操作后 ,所述网络侧设备接收所述终端 发送来的重邀请消息, 其中, 该消息中携带有视频业务指示, 且携带的视频业 务媒体描述为非激活态;  The method according to claim 1, wherein the method further comprises: after performing the operation of canceling the video service on the terminal, the network side device receives a re-invitation message sent by the terminal, where The message carries the video service indication, and the carried video service medium is described as inactive.
所述网络侧设备根据所述重邀请消息中携带的视频业务指示以及视频业 务媒体描述, 取消所述视频业务的播放。  The network side device cancels the playing of the video service according to the video service indication and the video service media description carried in the re-invitation message.
12、 根据权利要求 11所述的方法, 其特征在于, 在取消所述视频业务的 播放之后, 该方法进一步包括:  The method according to claim 11, wherein after canceling the playing of the video service, the method further comprises:
在所述终端上进行恢复视频业务的操作后 ,所述网络侧设备接收所述终端 发送来的重邀请消息, 其中, 该消息中携带有视频业务指示, 且携带的视频业 务媒体描述为激活态;  After the operation of restoring the video service on the terminal, the network side device receives the re-invitation message sent by the terminal, where the message carries the video service indication, and the carried video service media description is activated. ;
所述网络侧设备根据所述重邀请消息中携带的视频业务指示以及视频业 务媒体描述, 恢复所述视频业务的播放。  The network side device resumes playing of the video service according to the video service indication and the video service media description carried in the re-invitation message.
13、 一种播放视频的装置, 其特征在于, 该装置包括:  13. A device for playing a video, the device comprising:
通话状态确定单元, 用于在触发视频业务后, 确定当前的通话状态; 判断单元, 用于判断所述当前通话状态是否满足视频播放条件, 并将判断 结果告知媒体协商单元;  a call state determining unit, configured to determine a current call state after the video service is triggered; the determining unit, configured to determine whether the current call state meets a video playing condition, and notify the media negotiation unit of the determination result;
媒体协商单元, 用于在获知所述当前通话状态满足视频播放条件时, 与终 端进行媒体协商;  a media negotiating unit, configured to perform media negotiation with the terminal when it is known that the current call state meets a video playing condition;
视频业务播放单元,用于在确定所述媒体协商单元进行所述媒体协商成功 后, 向终端播放视频。  And a video service playing unit, configured to play a video to the terminal after determining that the media negotiation unit performs the media negotiation successfully.
14、 根据权利要求 13所述的装置, 其特征在于, 该装置进一步包括停止 视频业务播放单元,用于在从所述判断单元获知当前通话状态不再满足视频播 放条件时, 控制所述视频业务播放单元停止播放视频业务。  The device according to claim 13, wherein the device further comprises: a stop video service playing unit, configured to control the video service when it is learned from the determining unit that the current call state no longer satisfies the video playing condition The playback unit stops playing the video service.
15、 根据权利要求 13所述的装置, 其特征在于, 该装置进一步包括: 取消视频业务播放单元, 用于: 接收终端发送来的重邀请消息, 根据该重 邀请消息中携带的视频业务指示以及非激活态的视频业务媒体描述,取消所述 视频业务的播放; 和 /或, The device according to claim 13, wherein the device further comprises: The canceling the video service playing unit is configured to: receive the re-invitation message sent by the terminal, cancel the playing of the video service according to the video service indication carried in the re-invitation message and the inactive video service media description; and/or ,
恢复视频业务播放单元, 用于: 接收终端发送来的重邀请消息, 根据该重 邀请消息中携带的视频业务指示以及激活态的视频业务媒体描述,恢复所述视 频业务的播放。  The video service playback unit is configured to: receive a re-invitation message sent by the terminal, and resume playback of the video service according to the video service indication carried in the re-invitation message and the video service media description in an active state.
16、 一种播放视频的系统, 其特征在于, 该系统包括视频业务服务器和 SIP服务器, 其中:  16. A system for playing video, characterized in that the system comprises a video service server and a SIP server, wherein:
所述视频业务服务器用于: 在触发视频业务后, 确定当前的通话状态, 并 在所确定的通话状态满足视频播放条件时, 与终端进行媒体协商, 和, 在协商 成功后, 向终端播放视频;  The video service server is configured to: after triggering the video service, determine a current call state, and perform media negotiation with the terminal when the determined call state meets the video play condition, and play the video to the terminal after the negotiation succeeds. ;
所述 SIP服务器用于: 进行视频业务的注册及触发, 在视频业务服务器与 终端进行媒体协商时进行消息路由。  The SIP server is configured to: perform registration and triggering of a video service, and perform message routing when the video service server performs media negotiation with the terminal.
17、 根据权利要求 16所述的系统, 其特征在于, 该系统进一步包括视频 业务策略管理单元, 用于实现视频业务策略的设置、 修改和 /或删除, 以及为 视频业务服务器提供视频业务策略。  The system according to claim 16, wherein the system further comprises a video service policy management unit, configured to implement setting, modifying, and/or deleting of a video service policy, and providing a video service policy for the video service server.
PCT/CN2008/073296 2007-12-04 2008-12-02 A method, a device and a system for playing video WO2009076847A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200710193852.7A CN101184194B (en) 2007-12-04 2007-12-04 Method, system and device for playing video
CN200710193852.7 2007-12-04

Publications (1)

Publication Number Publication Date
WO2009076847A1 true WO2009076847A1 (en) 2009-06-25

Family

ID=39449247

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2008/073296 WO2009076847A1 (en) 2007-12-04 2008-12-02 A method, a device and a system for playing video

Country Status (2)

Country Link
CN (1) CN101184194B (en)
WO (1) WO2009076847A1 (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101651855B (en) * 2008-08-15 2012-06-06 华为技术有限公司 Method, device and system for receiving and transmitting media service, terminal and server thereof
US20100211446A1 (en) * 2009-02-16 2010-08-19 Qualcomm Incrporated Methods and apparatus for advertisement mixingi n a communication system
CN102811335B (en) * 2011-06-03 2016-02-24 腾讯科技(深圳)有限公司 Set up the method, apparatus and system of video session
CN103491063A (en) * 2012-06-08 2014-01-01 北京千橡网景科技发展有限公司 Information providing method and device
EP2874418A4 (en) * 2012-07-31 2015-07-01 Huawei Tech Co Ltd Advertisement insertion method, device, and system
CN106162034B (en) * 2015-03-31 2020-01-17 上海秀我数字广告传媒有限公司 Method and system for inserting video during call
CN105656917B (en) * 2016-02-02 2018-11-16 广州华多网络科技有限公司 Control the method and device that online direct broadcast band starts broadcasting
CN106210810B (en) * 2016-08-16 2020-06-05 王晚丁 Advertisement information processing method and device
CN111049995A (en) * 2018-10-12 2020-04-21 华为技术有限公司 Method and related device for controlling video color ring in call
CN111031273A (en) * 2020-01-09 2020-04-17 翟长斌 Voice and video call advertisement management system of mobile terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060007359A1 (en) * 2004-07-06 2006-01-12 Phanthavong Douangphachanh Method and system for switching between video modes in consumer electronics
CN1801856A (en) * 2004-12-31 2006-07-12 华为技术有限公司 System and method for realizing video color ring service
CN1845569A (en) * 2006-05-17 2006-10-11 中国移动通信集团公司 Method for realizing video color ring broadcast
CN1909646A (en) * 2006-08-11 2007-02-07 华为技术有限公司 Video communication method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060007359A1 (en) * 2004-07-06 2006-01-12 Phanthavong Douangphachanh Method and system for switching between video modes in consumer electronics
CN1801856A (en) * 2004-12-31 2006-07-12 华为技术有限公司 System and method for realizing video color ring service
CN1845569A (en) * 2006-05-17 2006-10-11 中国移动通信集团公司 Method for realizing video color ring broadcast
CN1909646A (en) * 2006-08-11 2007-02-07 华为技术有限公司 Video communication method and system

Also Published As

Publication number Publication date
CN101184194B (en) 2010-08-18
CN101184194A (en) 2008-05-21

Similar Documents

Publication Publication Date Title
WO2009076847A1 (en) A method, a device and a system for playing video
US8401005B2 (en) Session initiation protocol message content processing method and network
CN105659576B (en) The method of continuous voice call in hybrid network
US7565159B2 (en) Methods and arrangement for implementing an active call handover by employing a switching component
CN102148775B (en) Webpage call service gateway, call service system and method
WO2009082945A1 (en) Multi-terminal communication method, system and apparatus
WO2007006201A1 (en) A method for playing audio/video files
JP2009246994A (en) Method for providing early-media service based on session initiation protocol, and application server for providing early-media service based on session initiation protocol
WO2009015525A1 (en) A method for switching the session control path of ip multimedia core network subsystem centralized service
WO2010045812A1 (en) Method, apparatus and system for call switching
WO2012113237A1 (en) Method, system and device for realizing multimedia coloring ring back tone (crbt) service
US20080273671A1 (en) Method, system and application server for preventing crosstalk of color ring back tone
CN103716299A (en) Method carrying out session based on SIP, terminal and call business server
WO2010069176A1 (en) A method for calling a conference when hard terminals have been bound to pc clients, a login server thereof, a conference server thereof and a pc client thereof
CN102291415B (en) Media stream processing method and system and home gateway
WO2011050744A1 (en) Method for playing multimedia ring tone during conversation period, server and terminal device thereof
WO2011038613A1 (en) System and method for switching ringing state session with customized alerting tone
WO2008000121A1 (en) Method for transmitting the service state of the voice call continuity service
WO2014111060A1 (en) Method, apparatus and system for group session
WO2009086758A1 (en) Method for realizing online color ringback tone and multimedia ringback tone service
WO2009089797A1 (en) Method for implementing color ringback tone and/or multimedia ringback tone service and producing early-media sdp request
CN102378355A (en) IMS multimedia conferencing terminal switching method and apparatus thereof
WO2013082894A1 (en) Operator call forwarding method and switchboard service application server
CN101232649B (en) Communication system, application server and method for implementing same group answer replacing business
CN102664863B (en) Method, device, and system for realizing call waiting by user equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 08862802

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 08862802

Country of ref document: EP

Kind code of ref document: A1