Embodiment
Below with reference to accompanying drawing embodiments of the invention are described.
As shown in Figure 1, be the position view of the broadcast agent apparatus in the embodiment of the invention in a media play system.Comprise agent apparatus and two the media play sources (the first video playback source and the second video playback source) of playing in this media play system, simultaneously, the signal IPTV terminal relevant also among the figure with described media play system.
Wherein, play agent apparatus, be used to obtain the Play Control information of medium, and according to described Play Control information, the broadcast of control media content on the media channel of setting up between described broadcast agent apparatus and the internet protocol TV IPTV terminal; The media play source is used for providing described media content to playing agent apparatus, and this media play source can be for one or more.Do not do one by one herein and give an example, but not because of with the situation shown in Fig. 1, and the understanding of the composition of Play System among the present invention is caused any restriction.
Wherein, the IPTV terminal that links to each other with described broadcast agent apparatus can be one or more (as the situations of carrying out video conference).
There is a signaling protocol interface S1 between described broadcast agent apparatus and the IPTV terminal, in order to command transmitting.The S1 interface can be a kind of in Session Initiation Protocol, RTSP agreement, IGMP agreement, the http protocol etc. or some kinds, the S1 interface can be a direct interface, also can be indirect interface, indirect interface be meant the IPTV terminal and plays the intermediate node that also has other between the agent unit.
Also have a medium face interface M1 between broadcast agent unit and the IPTV terminal, with the receiver, video media content, the M1 interface can be a Real-time Transport Protocol etc.
As shown in Figure 2, be to realize above-mentioned functions, the broadcast agent apparatus in the embodiment of the invention comprises: acquiring unit 10 is used to obtain the Play Control information of medium; Playback process unit 20 is used for according to described Play Control information, the broadcast of control media content on the media channel of setting up between described broadcast agent apparatus and the internet protocol TV IPTV terminal.
Described Play Control information can be the playing request that is used to ask to play respective media, carry out channel switch request that channel switches, carry out the distribution control information of distribution of media, the registration message of initiating in the time of also can being the IPTV starting up of terminal, or head of a family's control request etc.
The media object sign and the corresponding play operation information that can comprise corresponding IPTV terminal iidentification, appointment in the described Play Control information.The IPTV terminal iidentification can be the sign of carrying out the terminal of current broadcast, also can be the sign of other relevant IPTV terminals; Specifying the media object sign can be channel identication, media program sign (as movie program sign, TV play program identification), direct broadcast band multicast address etc.; Play operation information can be that indication begins to play, stop broadcast, suspends and plays, and fast-forward play, rollback are play, reservation broadcast etc.
Simultaneously, described Play Control information can be passed through Session initiation Protocol (Session Initiation Protocol, SIP) message, real time streaming transport protocol (Real Time Streaming Protocol, RTSP) message, IGMP message, and HTML (Hypertext Markup Language) (Hypertext Transfer Protocol, HTTP) a certain transmission in the message, concrete condition is relevant with the equipment that sends described Play Control information, Play Control information as described in can carrying by sip message as the IPTV terminal, other situations are not done one by one and are given an example, and should be well known to those skilled in the art.
This Play Control information can have a plurality of sources, as, third party's control end or IPTV terminal can send Play Control information to described broadcast agent apparatus, wherein third party's control end is meant the terminal that can realize control to the media content of playing of removing current IP TV terminal and media play source, IPTV terminal as another user's control, in actual the use, the user that may be current IP TV terminal is the minor in the family, another user is the head of a family in the family, so that realize monitoring or the restriction of the head of a family to the minor's view content in the family.
Also can be that the media play source sends Play Control information to described broadcast agent apparatus, as, the situation of playing request can be initiatively initiated in the media play source according to current all media contents.
Or control produces Play Control information according to the IPTV service logic to play agent apparatus, and is then corresponding, shown in Fig. 3 a, described broadcast agent apparatus also comprises: service logic control module 30, be used to carry out corresponding IPTV service logic control, and generate and send the control result; Play Control information generating module 40 is used for generating corresponding Play Control information according to the control result who receives, and described Play Control information is sent to described acquiring unit 10.
Also can be, shown in Fig. 3 b, described broadcast agent apparatus also comprises: service logic control module 30, be used to carry out corresponding IPTV service logic control, generate the control result, and described control result sent to playback process unit 20, described playback process unit 20 carries out corresponding play operation according to this control result.
Current, described Play Control information can not done one by one herein and be given unnecessary details from other webservers yet.
Shown in Fig. 4 a, described playback process unit 20 comprises:
Indication acquisition module 201 is used for according to described Play Control information acquisition play operation indication.Wherein, when described Play Control information comprised playing request, described play operation comprised: on described media channel the Media Stream that receives is begun to play, stops to play, suspending broadcast, fast-forward play, rollback broadcast etc.When described Play Control information comprised channel switch request, described play operation comprised channel selection etc.When described Play Control information comprised distribution control, described play operation comprised media bridging etc.
Indication operational module 202 is used for controlling transmit corresponding media content on the media channel of setting up between described broadcast agent apparatus and the IPTV terminal according to described play operation indication.
Further, described playback process unit 20 also comprises as in the lower module one or more, shown in Fig. 4 b for comprising the situation of part:
The medium sendaisle is set up module, is used for setting up media channel according to the control and the described IPTV terminal of described indication operational module 202, and described IPTV terminal can be one or more.
Medium receiver module 204 is used for obtaining corresponding media content according to the control of described indication operational module 202 media channel by setting up with described media play source from described media play source.
Medium sending module 205 is used for according to the control of described indication operational module 202 corresponding media content being sent to described IPTV terminal by described media channel.
Medium process module, be used for according to the control of described indication operational module the media content that described medium receiver module receives being carried out playback process, described playback process comprises in synthetic one or more of the conversion of Media Stream coded format, packet encapsulation format conversion and media content.During concrete the execution, if when inconsistent, then realize described media content is carried out format conversion from the media content in media play source and the discernible format of content of IPTV terminal; At least two media contents that maybe will receive synthesize, as for picture-in-picture business and mosaic service.
On the other hand, as shown in Figure 5, described broadcast agent apparatus also can comprise:
Module 50 is set up in session, is used to receive first conversation request from the IPTV terminal, generates and sends the conversation request notice after setting up session according to described first conversation request and described IPTV terminal.Further, described conversation request is set up module, also comprises: the playing request passage is set up submodule, is used for setting up the playing request passage according to first conversation request and the IPTV terminal received, to receive the playing request that the IPTV terminal sends.
Conversation request is transmitted module 60, is used for generating and sending second conversation request according to the described conversation request notice that receives, and described second conversation request can be sip message, RTSP message, a kind of in message and internal interface message or other agreement H.248.
Media channel is set up module 70, is used for according to setting up media channel between second conversation request that receives and the described IPTV terminal, and described IPTV terminal can be one or more.
In above-mentioned three modules, it is optional that conversation request is transmitted module 60, if module 60 is not transmitted in the reply request, then session is set up module 50 and directly session request notice is issued media channel and set up module 70, and media channel is set up module 70 and set up corresponding media channel according to this conversation request notice.
Above-mentioned broadcast agent apparatus can be arranged in a physical equipment, also can be arranged in more than one physical equipment.Set up module and conversation request and transmit module and be put in the service application service such as playing in the agent apparatus session, be put in the media server and will set up module with the media channel that the IPTV terminal is set up media channel.
Shown in Fig. 6 a, form schematic diagram for one when being used to realize that video playback is acted on behalf of for playing agent apparatus among the present invention.As shown in the figure, the video playback agent apparatus comprises: playing request acquisition module, medium receiver module, medium sendaisle are set up module, playing request processing module, play operation module.
Wherein, the medium receiver module is used to receive the Media Stream from the video playback source.
The medium sendaisle is set up module, is used to set up the media channel of playing between agent apparatus and the IPTV terminal.
The playing request acquisition module is used to obtain playing request, and this playing request can also can generate from network control from the IPTV terminal.
The playing request processing module is used to handle described playing request, and described processing comprises receiving described playing request and producing play operation indicates or refuse described playing request.Wherein, described play operation indication comprises: on described media channel the Media Stream that receives is begun to play, stops to play, suspending play operation such as broadcast, fast-forward play, rollback broadcast, this indication is addressed to the play operation module, can be sip message, RTSP message, HTTP message, H.248 message or internal interface message etc.
The play operation module is used for carrying out play operation according to the play operation indication, promptly on described medium sendaisle the Media Stream that receives is begun to play, stops to play, suspending play operation such as broadcast, fast-forward play, rollback broadcast.
Shown in Fig. 6 b, described video playback agent apparatus also can further comprise service logic control module, playing request generation module.Wherein, the service logic control module is used for the control of process IP TV service logic, and will controls result notification playing request generation module; The playing request generation module is used for generating a playing request according to service logic control result, sends to the playing request acquisition module.Perhaps, described service logic control module also can be with the control result treatment submodule of IPTV service logic control result notification playing request processing module, then control the result treatment submodule, according to service logic control result, to the playing request of receiving, produce the play operation indication or refuse described playing request.
Simultaneously, the play operation module also can comprise, the format conversion submodule is used for indicating the Media Stream that receives according to play operation, carries out playing on described medium sendaisle after the format conversion.Wherein, described format conversion comprises media coding format conversion and packet encapsulation form etc., and described broadcast can be meant play operation such as suspending broadcast, fast-forward play; Or, content synthon module, it is synthetic to be used for carrying out content according at least two video media content that play operation indication will receive, and the media content after synthetic is play on described medium sendaisle with content, and this broadcast can be meant play operation such as suspending broadcast, fast-forward play.
Described broadcast agent apparatus can be arranged in a physical equipment, also can be arranged in more than one physical equipment, such as, playing request acquisition module, playing request processing module and service logic control module, playing request generation module, can be arranged in the service application service device, medium receiver module, medium sendaisle are set up module, play operation module, can be arranged in media server.
Simultaneously, shown in Fig. 7 a, be the composition schematic diagram of the broadcast agent apparatus among the present invention when realizing the function of distribution of media, can claim that the broadcast agent apparatus in this example is the distribution of media device this moment.The distribution of media that described distribution of media device is used for receiving from the media play source is given the IPTV terminal, and this device comprises:
The medium receiver module is used to receive the Media Stream from the video playback source.
The medium sending module is used for setting up corresponding medium sendaisle with each IPTV terminal (this example is an IPTV terminal, the 2nd IPTV terminal), sends the Media Stream that receives.
The distribution control module is used to obtain the distribution control information, and produces distribution control indication according to described distribution control information.Comprise IPTV terminal iidentification and object video sign in the described distribution control information, and indication media bridging module bridges to the corresponding Media Stream of object video sign the medium sendaisle of IPTV terminal iidentification correspondence.
The media bridging module, be used for according to described distribution control indication, Media Stream that the medium receiver module is received, object video sign correspondence, bridging to the medium sending module sends, like this, to more than one medium sendaisle, the media bridging module bridges to more than one medium sendaisle with a corresponding Media Stream of object video sign, and is sent by the medium sending module.Such as, the media bridging module can be used common bridge joint resource, as conferencing resource, the medium sendaisle is added meeting, and the medium of receiving are distributed; For another example, the media bridging module also can be used the multicast resource, as sets up the multicast group, and the medium sendaisle is added the multicast group, the medium of receiving are distributed, or the like.
Further, the distribution control module also comprises the judgement submodule, be used to judge that object video identifies corresponding medium receive path and whether sets up,, then indicate the passage of medium receiver module to set up submodule foundation and the corresponding medium receive path of object video sign if do not set up.
Shown in Fig. 7 b,, claim that the broadcast agent apparatus in this example is a channel switching mechanism for the composition schematic diagram of the broadcast agent apparatus among the present invention when realizing the channel handoff functionality.This device comprises:
The channel switch request acquisition module is used to receive the channel switch request from IPTV terminal or network, and this request can be a sip message or RTSP message or IGMP message etc., comprises the object video sign of switching purpose side in the request.
The channel content receiver module is used to first channel content and second channel content in the first video playback source that receives and the second video playback source, i.e. current media content and switching media content.
The channel content sending module is used for setting up corresponding medium sendaisle with the IPTV terminal, sends first channel content, and after the switching indication of receiving the channel selection module, stops to send first channel content and send second channel content.Such as, if the channel content sending module uses the conferencing resource distribution media, then the medium sendaisle leaves first channel content distribution conferencing resource, add second channel content distribution conferencing resource, for another example, if the channel content sending module uses multicast resource distribution media, then the medium sendaisle leaves the first channel multicast group, add the second channel multicast group, or the like.
The channel selection module is used for according to channel switch request, produces to switch indication, selects and switch purpose side's object video to identify corresponding second channel content from the channel content receiver module, and indication channel content sending module sends.
Further, the channel content sending module also comprises content splicing submodule, is used for the splicing of second channel content is sent after first channel content.
Description by above-mentioned specific embodiment as can be known, owing between IPTV terminal and media play source, increased the broadcast agent apparatus that to realize broadcast is carried out professional control, solve the problem of professional control difficulty, improved the professional control ability of whole Play System, improved user experience.
Below, in conjunction with the media playing method in the embodiment of the invention embodiment of the invention is further specified.As shown in Figure 8, the schematic flow sheet of described method comprises:
801, obtain the Play Control information of described medium.
Described Play Control information can be the playing request that is used to ask to play respective media, carry out channel switch request that channel switches, carry out the distribution control information of distribution of media, the registration message of initiating in the time of also can being the IPTV starting up of terminal, or head of a family's control request etc.
The media object sign and the corresponding play operation information that can comprise IPTV terminal iidentification, appointment in the then described Play Control information.The IPTV terminal iidentification can be the sign of carrying out the terminal of current broadcast, also can be the sign of other relevant IPTV terminals; Specifying the media object sign can be channel identication, media program sign (as movie program sign, TV play program identification), direct broadcast band multicast address etc.; Play operation information can be that indication begins to play, stop broadcast, suspends and plays, and fast-forward play, rollback are play, reservation broadcast etc.
Simultaneously, described Play Control information can be by a certain transmission the in sip message, RTSP message, IMGP message and the HTTP message, concrete condition is relevant with the equipment that sends described Play Control information, Play Control information as described in can carrying by sip message as the IPTV terminal, other situations are not done one by one and are given an example, and should be well known to those skilled in the art.
This Play Control information can have a plurality of sources, as, third party's control end or IPTV terminal can send Play Control information to described broadcast agent apparatus, wherein third party's control end is meant the terminal that can realize control to the media content of playing of removing current IP TV terminal and media play source, IPTV terminal as another user's control, in actual the use, the user that may be current IP TV terminal is the minor in the family, another user is the head of a family in the family, so that realize monitoring or the restriction of the head of a family to the minor's view content in the family.
This Play Control information also can be that the media play source sends Play Control information to described broadcast agent apparatus, as, the situation of playing request can be initiatively initiated in the media play source according to current all media contents.
Or, play the agent apparatus Play Control information that control produces according to the IPTV service logic, described IPTV service logic control can be the service logic control of carrying out according to local stored user information, and described local stored user information comprises one or more in IPTV terminal authority information, the IPTV terminal individual information.
Described Play Control information also can be from other the webserver.
802, according to described Play Control information, the broadcast of control media content on the media channel of setting up between described broadcast agent apparatus and the internet protocol TV IPTV terminal.
This step can be divided into for two steps:
A, according to the indication of described Play Control information acquisition play operation.
Wherein, can carry out alternately,, specifically comprise to obtain the play operation indication according to described Play Control information and described IPTV terminal:
1, plays agent apparatus and send the broadcast apply for information to the IPTV terminal according to described Play Control information.
2, after described IPTV terminal is made the broadcast selection according to described broadcast apply for information, send the broadcast selection result to described broadcast agent apparatus.
3, described broadcast agent apparatus obtains the play operation indication according to described broadcast selection result.
Also can be by professional control logic described Play Control information to be carried out professional control logic to handle and obtain corresponding play operation indication, as authentication process etc.
On the other hand, when described Play Control information comprised playing request, described play operation comprised: on described media channel the Media Stream that receives is begun broadcast, stops to play, suspends broadcast, fast-forward play, rollback broadcast, delay broadcast etc.
When described Play Control information comprised channel switch request, described play operation comprised channel selection, promptly on the media channel of setting up between described broadcast agent apparatus and the IPTV terminal described at least two media contents was selected broadcast etc.
When described Play Control information comprises when control distribution, described play operation is included on the media channel of setting up between described broadcast agent apparatus and the IPTV terminal distributes broadcast to described media content, as media bridging etc.
B, on the media channel of setting up between described broadcast agent apparatus and the IPTV terminal, transmit corresponding media content according to the indication of described play operation.Specifically can comprise: obtain corresponding media content from described media play source and carry out playback process described according to the indication of described play operation, described playback process comprises in synthetic one or both of format conversion, content; The media content that will advance after the described playback process transmits on the media channel of setting up between described broadcast agent apparatus and the IPTV terminal.
Simultaneously, also comprised before execution in step B: described broadcast agent apparatus receives that setting up conversation request sets up session; After described broadcast agent apparatus is set up session, set up media channel with described IPTV terminal.
Also can comprise before execution in step B: media channel is set up in described broadcast agent apparatus and described media play source, and described media play source can be one or more; Described broadcast agent apparatus obtains corresponding media content by the media channel with the foundation of described media play source from described media play source
For the above-mentioned flow process of clearer explanation, be described with some specific embodiments respectively below.
As shown in Figure 9, for the IPTV terminal just at the program of broadcasting channel A, user's switching channels selects to watch the situation of the program of channel B.Flow process is explained as follows:
901, the IPTV terminal sends the playing request to television channel A.Specifically can be that the IPTV terminal is carried described playing request by sending the SIP INVITE, comprises the channel identication of channel A in the playing request.
902, after the broadcast agent apparatus is received this SIP INVITE, obtain play operation according to playing request and be designated as the program of playing television channel A.Therefore, play agent apparatus and IPTV terminal and set up the SIP session, and set up media channel by the SIP session.
903, joining request of the multicast group 1 of IPTV terminal initiation channel A sends member's report that the IGMP multicast adds, request adding multicast group 1.
904, play agent apparatus and receive that this multicast adds report, judge whether to receive Media Stream,, then send this multicast and add report,, then enter 906 if receive if do not receive from multicast group 1.
905, play agent apparatus and add multicast group 1, receive Media Stream 1 from multicast group 1.
906, playing agent apparatus will be from the Media Stream 1 of multicast group 1, to and the IPTV terminal between the media channel set up send.After the IPTV terminal receives this Media Stream 1, promptly can play the media content of television channel A.
907, user's switching channels selects to play television channel B;
908, the IPTV terminal is initiated the request of leaving of the multicast group 1 of channel A, sends member's report that the IGMP multicast is left, and multicast group 1 is left in request.
909, play agent apparatus and receive that this multicast leaves report, the media channel that does not stop immediately having set up between the IPTV terminal sends Media Stream 1, but stops after postponing one suitable period sending again.
910, joining request of the multicast group 2 of IPTV terminal initiation channel B sends member's report that the IGMP multicast adds, request adding multicast group 2.
911, play agent apparatus and receive that this multicast adds report, judge whether to receive Media Stream,, then send this multicast and add report if do not receive from multicast group 2, so that and set up the origin media channel between the multicast group 2 of television channel B; If receive, then enter 913.
912, play the Media Stream 2 of agent apparatus reception from multicast group 2.
913, play agent apparatus stop to and the IPTV terminal between the media channel set up send Media Stream 1, and will send to this media channel from the Media Stream 2 of multicast group 2; After the IPTV terminal receives this Media Stream 2, promptly can play the media content of television channel B.
In this step, further, play agent apparatus and can use the frame of video splicing, Media Stream 2 and Media Stream 1 seamless spliced back are sent to the IPTV terminal by media channel, promptly first frame of the last frame of Media Stream 1 and Media Stream is continuous.
In the present embodiment, 908~909 is optional step, and when promptly carrying out the user channel switching, the IPTV terminal can send member's report that multicast is left earlier, but directly sends member's report that multicast adds; Perhaps, the IPTV terminal also can send member's report that the IGMP multicast is left and added; Perhaps, the IPTV terminal also can send member's report that multicast adds earlier, sends member's report that multicast is left again.
In the above-described embodiments, can see, pass through and play the media channel of setting up between the agent apparatus to receive Media Stream because the IPTV terminal is fixing from the different video broadcast source, play agent apparatus can so that different video playback sources to this media channel continuous send Media Stream from the different video broadcast source, and switch to another video playback source from a video playback source without the IPTV terminal, promptly omitted between the IPTV terminal and the second video playback source media channel settling time, shortened the channel time delay for switching, brought preferably to the user and experience.
As shown in figure 10, for the IPTV terminal is being play the program of television channel A, user's switching channels selects to watch the program of television channel B, and the process description of this specific embodiment is as follows:
1001, play the Media Stream 1 of agent apparatus reception from the multicast group 1 of channel A.
In the present embodiment, the broadcast agent apparatus can receive the Media Stream from the different video broadcast source in advance.Such as, play the joining request of multicast group 1 that agent apparatus can be initiated channel A, send member's report that the IGMP multicast adds, request adds multicast group 1; Perhaps, play agent apparatus adds channel A as the multicast node multicast tree; Perhaps, play agent apparatus adds an above television channel as the multicast node multicast tree, the video media content that has comprised an above television channel in this multicast stream, play the Media Stream 1 that agent apparatus therefrom obtains channel A, Deng, other similar concrete conditions should be well known to those of ordinary skill in the art, do not do herein and give unnecessary details.
1002, play the Media Stream 2 of agent apparatus reception from the multicast group 2 of channel B.There is not the difference of strict sequencing between this step and 1001.
1003~1005, the IPTV terminal is by sending the playing request to channel A, and this playing request is carried in the SIP INVITE; Play agent apparatus and receive behind this SIP INVITE and the IPTV terminal is set up the SIP session, will from the Media Stream 1 of multicast group 1 to and the IPTV terminal between the media channel set up send.
1006, user's switching channels is selected television channel B.
1007, the playing request (portability is play in the message in RTSP PLAY) to channel B is initiated in the operation of switching according to users with channel of IPTV terminal, comprises the channel identication of channel B in the playing request.
1008, play agent apparatus stop to and the IPTV terminal between the media channel set up send Media Stream 1, and will send to this media channel from the Media Stream 2 of multicast group 2; After the IPTV terminal receives this Media Stream 2, promptly can play the program of television channel B.
In this step, play agent apparatus and also can send RTSP 200 OK answer codes (not drawing in the diagram) to the IPTV terminal, can send 200 answer codes earlier and send Media Stream 2 again, or transmission Media Stream 2 sends 200 answer codes more earlier, or send Media Stream 2 and 200 answer codes simultaneously.The IPTV terminal can be after receiving 200 answer codes the content of media stream 2 again, also can be before receiving 200 answer codes with regard to the content of media stream 2.
As shown in figure 11, after knowing the IPTV starting up of terminal, network based user's individual preference is judged the program to terminal plays television channel A, the program of user's tuned television channel A; After this, the film that network judgement user orders the in advance time of starting broadcasting arrives, then the film of purchasing in advance to terminal plays.Wherein, the media play source comprises the multicast group 1 of channel A and the multicast group 3 of movie channel in this example.Concrete implementing procedure is described as follows:
1101, play the Media Stream 1 of agent apparatus reception from the multicast group 1 of channel A.
1102, play the Media Stream 3 of agent apparatus reception from the multicast group 3 of movie channel.
1103, IPTV starting up of terminal is initiated SIP REGISTER (registration) message.
1104, after the broadcast agent apparatus is received this SIP REGISTER message,,, play judgement as user's individual preference information according to local stored user information.As, obtain judged result in this example and be program to terminal plays television channel A; Or, the user opens the IPTV terminal at moment 20:00, playing agent apparatus knows according to local stored user information, the statistics of user's individual preference information is presented at this time period, the user generally selects television channel A to watch, and then plays agent apparatus and judges the program of working as forward direction terminal plays television channel A.
In this step, play the result of agent apparatus, generated a playing request to the broadcasting channel A of IPTV terminal transmission according to service logic control.
1105~1107, play agent apparatus to the IPTV terminal send the SIP INVITE so that and set up media channel between the terminal, the IPTV terminal is received behind this SIP INVITE and is play agent apparatus and set up the SIP session, and sets up media channel.After this, play agent apparatus and will be sent to the IPTV terminal by described media channel from the Media Stream 1 of multicast group 1.
1108, playing the film time of starting broadcasting that agent apparatus perception user orders in advance arrives, as, the user has purchased a movie program in advance at movie channel, start broadcasting at 21:00, need play the film of ordering in advance to the user when then playing agent apparatus and being informed in 21:00, play agent apparatus and then obtain corresponding Media Stream 3 to corresponding movie channel multicast group 3 in good time.
In this step, similarly, play the result of agent apparatus, generated a playing request to the broadcasting channel A of IPTV terminal plays according to service logic control.
1109, play agent apparatus stop to and the IPTV terminal between the media channel set up send Media Stream 1, and will send to this media channel from the Media Stream 3 of multicast group 3; After the IPTV terminal receives this Media Stream 3, promptly can play the movie program of forward purchasing.
As shown in figure 12, playing the program of television channel A for the IPTV terminal, network knows that film X puts on the shelf, and judge that according to user's individual preference the user may like watching this film, then notify user's film X to put on the shelf, after the user selected to watch, network requests was to terminal plays film X.The flow process of present embodiment is described below:
1201, the IPTV terminal is being play the program of television channel A.
1202, play agent apparatus and know that New cinema X puts on the shelf, this New cinema X puts information on the shelf from network side, as can be from corresponding media play source.
Play the individual preference information of agent apparatus according to the user, judge that the user may like watching this film, then execution in step 1203..
1203, play agent apparatus and send the broadcast apply for information to the IPTV terminal, prompting user film X puts on the shelf in this message, and whether the inquiry user selects to watch.
1204, the user selects to watch, and then the IPTV terminal is made playing and selected, and sends described broadcast selection result to playing agent apparatus.
1205, playing agent apparatus receives after the described broadcast selection result to providing the media play source (as being the VOD server) of film X to initiate the request of watching to film X accordingly.As, send the SIP INVITE, carry the program identification of film X and the SDP of IPTV terminal (Session DescriptionProtocol, Session Description Protocol) information in the message.
1206, video request program (Video On Demand, VOD) server is received this SIP INVITE, return SIP 606 and do not accept (Not Acceptable) answer code, expression film X does not support the SDP information of IPTV terminal, and the SDP information of carrying film X in SIP 606 answer codes.
1207, play the watch request of agent apparatus initiation, send the SIP INVITE, the SDP information of carrying film X in the message film X.
1208, play agent apparatus and VOD server and set up the SIP session, set up the media channel of playing between agent apparatus and the media play source.
1209, play the Media Stream 4 of agent apparatus reception from the film X of VOD server.
1210, after the broadcast agent apparatus obtained Media Stream 4, judgement need then be carried out the coded format conversion process to Media Stream 4 to carrying out format conversion, to convert the coded format that the IPTV terminal is supported to, conversion back acquisition Media Stream 5.In this step, play agent apparatus and provide answering, judge the not coded format of support media stream 4 of IPTV terminal, therefore need this Media Stream 4 according to aforesaid SDP information, convert the coded format that the IPTV terminal supports to after, send to the IPTV terminal again.
1211, to and the IPTV terminal between the media channel set up send Media Stream 5; After the IPTV terminal receives this Media Stream 5, promptly can movie X program.
In the above-described embodiment, play agent apparatus, will play from the media channel that the video frequency program of video broadcast source is set up by itself and IPTV terminal according to playing request from IPTV terminal or network.
Similarly, the specific embodiment of the invention also is included in EAS (Emergency Alert System, emergence warning system) in the business, play agent apparatus and know the playing request that the emergency alarm video frequency program is arranged of coming automatic network, then situation about will play from the media channel that the video frequency program of urgent channel is set up by itself and IPTV terminal.Idiographic flow is not done herein and is given unnecessary details.
The specific embodiment of the invention also comprises the situation of personalized advertisement business, promptly play agent apparatus the time to programs such as IPTV terminal plays TV play or films, when the commercial breaks time arrives, personalization preferences information according to the user, the video media stream of the advertising programme that user preference is watched is play by media channel that itself and IPTV terminal are set up.
Be included in the situation of picture-in-picture or mosaic service in the concrete enforcement of the present invention, promptly playing agent apparatus to the media content of two video playback sources of major general such as channel A and channel B synthesizes, play by the media channel that itself and IPTV terminal are set up, or the like, give unnecessary details no longer one by one here.In addition, playing agent apparatus and can also handle other multiple play operation, is that it further describes below.
As shown in figure 13, for the IPTV terminal is being play the program of television channel A, user's switching channels selects to watch the program of television channel B, network judges that the user does not watch the authority of television channel B current playing program, and terminal continues to play the program of television channel A.Idiographic flow is described below:
1301~1302, play the Media Stream 1 of agent apparatus reception, play the Media Stream 2 of agent apparatus reception from the multicast group 2 of channel B from the multicast group 1 of channel A.
1303, the IPTV terminal is being play the program of television channel A.
1304, user's switching channels is selected television channel B.
1305, the IPTV terminal is initiated the playing request to channel B, can send by RTSP SETUP (foundation) message, carries the channel identication of channel B in the described playing request.
In the present embodiment, after the broadcast agent apparatus is received the packet that carries multicast member report,, obtain the IP address of IPTV terminal, and further obtain the sign of IPTV terminal by parsing to packet
1306, after the broadcast agent apparatus is received this RTSP SETUP message,, judge that the user does not have authority to watch the current playing program of channel B, promptly refuse the playing request that the IPTV terminal is sent in conjunction with local stored user information.
1307, playing agent apparatus still continues to send Media Stream 1 to the media channel with the former foundation of IPTV terminal.
As shown in figure 14, for user B uploads the video frequency program Y that he is taking when the network implementation, the video frequency program Y that user A request watches this to upload in real time, during this time, user B is when continuing to upload this video frequency program Y, because certain reason selects to suspend the broadcast to this video frequency program Y, the situation that user A watches the picture of video frequency program Y to be suspended.This embodiment flow process is described below:
1401, IPTV terminal 2 (by user B control) and the broadcast agent apparatus session of having set up real-time uploaded videos program Y.
1402, IPTV terminal 2 to and play the Media Stream that the media channel of setting up between the agent apparatus sends program Y.
1403, this video frequency program Y is watched in the user A request of controlling another IPTV terminal (IPTV terminal 1), and IPTV terminal 1 is initiated the playing request of program Y, and this playing request is carried in the SIP INVITE.
1404~1405, play agent apparatus and receive behind this SIP INVITE and IPTV terminal 1 is set up the SIP session, play agent apparatus to and IPTV terminal 1 between the media channel set up send the Media Stream of program Y;
1406~1407, user B initiates the time-out playing request to program Y, and IPTV terminal 2 sends in the RTSPPAUSE suspending message, carries the program identification of program Y in the message.
1408, after the broadcast agent apparatus is received this RTSP PAUSE message,, suspend the Media Stream that sends its program Y that receives in real time to IPTV terminal 1 according to the logic control of content uploading business.
Realized in the present embodiment the Play Control information that IPTV terminal 2 is initiated is changed, and acted on the function of IPTV terminal 1.
As shown in figure 15, for user A (as the child in the family) watches television channel A just at home, user B (as the head of a family in the other places) checks the TV programme that child is watching by mobile phone, the program of the television channel A that the discovery child is watching is not suitable for children and watches, then carrying out channel switches, the program that child is watched switches to the television channel B that suitable children watch, with the function that realizes that third party's control end is controlled.To being described below of this flow process:
1501~1502, play the Media Stream 1 of agent apparatus reception, play the Media Stream 2 of agent apparatus reception from the multicast group 2 of channel B from the multicast group 1 of channel A.
1503, the IPTV terminal 2 of user A use is being play the program of television channel A.
1504, user B initiates head of a family's control request by IPTV terminal 1, and for realizing effective control, the rank of the Play Control request of initiating by user B will be higher than the rank of the Play Control request that user A initiates.
During specific implementation, can be, IPTV terminal 1 can be initiated the SIP INVITE, carry described head of a family's control request in the message, network based preset user data, the counterpart terminal that obtains this head of a family's control request of IPTV terminal 1 binding is an IPTV terminal 2, then this SIP INVITE is routed to the IPTV terminal 2 current broadcast agent apparatus that adhere to; Or, comprising the user ID of corresponding IPTV terminal 2 in described head of a family's control request, network directly routes to the described head of a family's control request IPTV terminal 2 current broadcast agent apparatus that adhere to.
1505~1506, play agent apparatus and receive this head of a family's control request, and set up session between the IPTV terminal 1, and the Media Stream 1 that the corresponding IPTV terminal 2 of this head of a family's control request of IPTV terminal 1 binding is being watched, to and IPTV terminal 1 between the media channel set up send;
1507, IPTV terminal 1 is received Media Stream 1, and user B sees that this program is not suitable for user A and watches, and then switching channels is selected television channel B;
1508, IPTV terminal 1 is initiated the playing request of channel B, and this playing request portability is play in the message in RTSP PLAY, carries the channel identication of channel B in the playing request.
1509, play agent apparatus and receive this RTSP PLAY message, control professional logic control according to the head of a family, to the program of IPTV terminal 2 broadcasting channel B, the playing request that is about to 1 initiation of IPTV terminal is changed, and acts on IPTV terminal 2.
1510~1511, play agent apparatus and send Media Stream 2, send Media Stream 2, make user A and user B all watch the program of channel B to media channel with 1 foundation of IPTV terminal to media channel with 2 foundation of IPTV terminal.
After this, if user A wants the program that IPTV terminal 2 is play is switched back channel A, 2 transmissions of IPTV terminal are to the playing request of channel A, then play agent apparatus can according to logical controlling (as, the control hierarchy of user B is higher than user A), refuse this playing request.
In a specific embodiment of the present invention, when the user when watching TV, carry out the channel handover operation through regular meeting; during this, some channel can be skimmed over fast by the user, does not watch; such as, the user is seeing channel A, wants to watch channel C; but the user does not select directly to press the numerical key of channel D correspondence; but pressing key up and down fast, channel B is skimmed over, when arriving channel C; the user stops key, and watches the program of channel C.Its flow process is described as follows:
The user presses key up and down fast, and the IPTV terminal sends the playing request of channel B, channel C successively; After playing agent apparatus and receiving playing request to channel B, carry out a delay process of specifying duration, in this specifies duration, the broadcast agent apparatus is received the playing request to channel C, then not to and the IPTV terminal between the media channel set up send the Media Stream of channel B, this spline channel B is skimmed over fast; Equally, after playing agent apparatus and receiving playing request to channel C, also carry out a delay process of specifying duration, after this specifies duration overtime, the broadcast agent apparatus is not received the playing request to other, then to and the IPTV terminal between the media channel set up send the Media Stream of channel C, the user watches the program of channel C.
In the scheme that the embodiment of the invention provides, playing agent apparatus can be with the video media from the different video broadcast source, send to the IPTV terminal by a fixing media channel, and can further make various play operation, be applicable to multiple IPTV business, solved the IPTV terminal and between the different video broadcast source, switched the switching slot problem that produces, also made network can initiatively push the video media of appointment to the IPTV terminal; Simultaneously, because the IPTV terminal is not the multicast group that directly adds the video playback source, and then the feasible directly channel switch request of perception IPTV terminal of agent apparatus of playing, the professional control of IPTV is convenient.
Through the above description of the embodiments, the those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better execution mode under a lot of situation.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium that can read, floppy disk as computer, hard disk or CD etc., comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
Above disclosed only is embodiments of the invention, can not limit the present invention's interest field certainly with this, and therefore the equivalent variations of doing according to claim of the present invention still belongs to the scope that the present invention is contained.