Summary of the invention
The main technical problem to be solved in the present invention is, a kind of direct broadcast service supplying method and system of mobile flow medium is provided, and can avoid the unnecessary consumption of bandwidth, improves the performance of streaming server.
For solving the problems of the technologies described above, the present invention has adopted following technical scheme:
A direct broadcast service supplying method for mobile flow medium, comprising:
Intermediary's streaming media server is set, in Gai intermediary streaming media server, utilizes multicast address to create direct broadcast band;
When other streaming media servers of needs provide direct broadcast service, by described intermediary streaming media server, from live source, obtain direct broadcast service code stream, multicast group when described other streaming media servers add described intermediary streaming media server to create direct broadcast band is to obtain described direct broadcast service code stream.
In a kind of embodiment of the method for the invention, the idiographic flow that direct broadcast service provides comprises:
Service enabler is according to the direct broadcast service request of subscriber equipment, and whether the request content of searching subscriber equipment is present in streaming media server, in this way, selects streaming media server to provide direct broadcast service to subscriber equipment.
In a kind of embodiment of the method for the invention, by load balancing, select streaming media server to provide direct broadcast service to subscriber equipment.
In a kind of embodiment of the method for the invention, also comprise: service enabler determines that according to the hardware parameter of streaming media server and actual concurrent fluxion streaming media server is whether for subscriber equipment provides direct broadcast service.
In a kind of embodiment of the method for the invention, the idiographic flow that direct broadcast service provides comprises:
Subscriber equipment is by the WAP door of wireless network access mobile flow medium;
WAP door by mobile flow medium content revealing to subscriber equipment;
It is live that subscriber equipment selects interested channel to carry out, and to service enabler, sends direct broadcast service request;
Whether the request content that service enabler is searched subscriber equipment is present in streaming media server, in this way, and has available streaming media server, selects streaming media server and to subscriber equipment, returns to the results messages that comprises streaming media server network address;
Subscriber equipment, according to the streaming media server network address in the results messages of receiving, is initiated service request to streaming media server;
Intermediary's streaming media server obtains direct broadcast service code stream from live source, to subscriber equipment, provides direct broadcast service; Or the direct broadcast service code stream that multicast group when other streaming media servers add intermediary's streaming media server to create direct broadcast band obtains from live source to obtain intermediary's streaming media server, provides direct broadcast service to subscriber equipment.
In a kind of embodiment of the method for the invention, described subscriber equipment sends direct broadcast service request with the GET request of HTTP form to service enabler.
In a kind of embodiment of the method for the invention, described subscriber equipment is initiated service request with real-time streaming protocol to service enabler.
In a kind of embodiment of the method for the invention, described WAP door with tabular form by mobile flow medium content revealing on the page and return to subscriber equipment.
The present invention also provides a kind of direct broadcast service of mobile flow medium that system is provided, comprise: utilize multicast address to create intermediary's streaming media server of direct broadcast band, described intermediary streaming media server is when other streaming media servers need to provide direct broadcast service, and the multicast group while joining its establishment direct broadcast band for other streaming media servers is to obtain the direct broadcast service code stream being obtained from live source by it.
In a kind of embodiment of system of the present invention, described streaming media server provides direct broadcast service by load balancing to subscriber equipment.
The present invention is by arranging intermediary's streaming media server, You Gai intermediary streaming media server utilizes multicast address to create channel, other streaming media servers provide service by adding multicast group to obtain direct broadcast service code stream, thereby Zhi Xuyou intermediary streaming media server is from live source La Yi road code stream, avoid the unnecessary consumption of bandwidth, also improved the handling property of streaming media server.
Embodiment
Below by embodiment, by reference to the accompanying drawings the present invention is described in further detail.
The invention provides a kind of direct broadcast service supplying method and system of mobile flow medium, it is mainly to adopt in node to support the mode of multicast to realize the function that SS provides direct broadcast service, thereby can reduce the consumption of bandwidth, and solution SS repeats the poor performance problem of drawing code stream to cause from live source.Comprise: intermediary's streaming media server is set, in Gai intermediary streaming media server, utilizes multicast address to create direct broadcast band; When other streaming media servers of needs provide direct broadcast service, by intermediary's streaming media server, from live source, obtain direct broadcast service code stream, multicast group when other streaming media servers add intermediary's streaming media server to create direct broadcast band is to obtain direct broadcast service code stream.By such design, make Zhi Xu intermediary streaming media server from live source La Yi road code stream, avoided the unnecessary consumption of bandwidth, improved the handling property of SS.
As shown in Figure 1, mobile stream media system networking mainly comprises service enabler and streaming media server, and streaming media server can be one or more.
The operation flow of system when Fig. 2 is the live media services of user terminal requests, comprising:
Step 201, subscriber equipment is initiated direct broadcast service request to service enabler;
Step 202, whether the content that service enabler is searched user's request in the database of self exists on streaming media server;
Step 203, according to the lookup result in step 202, and determines whether to provide service in conjunction with situations such as the hardware parameter of streaming media server and actual concurrent fluxions, also determines that whether streaming media server is available;
Step 204, if can provide service for user, selects certain streaming media server that direct broadcast service is provided;
Step 205, if intermediary's streaming media server, use multicast address to create channel, from live source, obtain medium living broadcast code stream and carry out direct broadcast service, if selecteed streaming media server Bu Shi intermediary streaming media server, before automatically adding, intermediary's streaming media server creates channel multicast group used and sends medium living broadcast code stream to subscriber equipment, starts direct broadcast service flow process;
Step 206, if there is not the content satisfying condition, streaming media server is refused to provide direct broadcast service for subscriber equipment.
As shown in Figure 3, while there is the content that user accesses on streaming media server, streaming media server provides direct broadcast service by following flow process for user:
In figure, UE is subscriber equipment (User Equipment), refers generally to cell phone terminal;
WAP refers to WAP (Wireless Access Protocol, WAP (wireless access protocol)) door, provides the list of program entrance, in actual applications on door, subscriber equipment is first accessed WAP door, selects an interested content to conduct interviews to trigger live flow process on the page;
SS is streaming media server, is deployed in network, is responsible for subscriber's local access, and the program request of Streaming Media, the service such as live are provided;
SE is service enabler (Service Engine), with streaming media server jointly for user provides mobile stream medium service.
Operation flow step is:
Step 301, subscriber equipment is by the WAP door of wireless network access mobile stream media system;
Step 302, by the audio-video frequency media file in mobile stream media system, the mode with list is presented on the page WAP door, returns to subscriber equipment;
Step 303, it is live that user selects interested channel to carry out, and to SE, sends direct broadcast service request, and this message is the GET request of a HTTP (HyperText Transfer Protocol, HTML (Hypertext Markup Language)) form;
Step 304, SE retrieves in the content record table of database, whether the content of searching user's request exists on streaming media server, if existed, and has available streaming media server, select certain SS, results messages is returned with the form of HTTP bag, and in HTTP message header, result code is in 200, HTTP message body, to have comprised result url (the Uniform/Universal Resource Locator that SE generates, URL(uniform resource locator), also referred to as web page address);
Step 305, subscriber equipment is received after the response of SE, takes out the url in response message, with RTSP (Real-time Streaming Protocol, real-time streaming protocol), to SS, initiates service request;
Step 306, SS (if not the stream media server S S10 of intermediary) receives after subscriber equipment RTSP request, the multicast group while automatically adding previous SS10 to create channel, the SS10 using from establishment channel obtains direct-broadcasting code stream.
Step 307, sends direct-broadcasting code stream data to subscriber equipment, and direct broadcast service is provided.
The direct broadcast service of the mobile flow medium in the embodiment of the present invention provides system, mainly comprise the intermediary's streaming media server that utilizes multicast address to create direct broadcast band, intermediary's streaming media server is when other streaming media servers need to provide direct broadcast service, for other streaming media servers, add multicast group to obtain direct broadcast service code stream, multicast group when multicast group is intermediary's streaming media server establishment direct broadcast band, the media main broadcaster code stream that direct broadcast service code stream Ji Shi intermediary streaming media server obtains from live source.
In practical application, be all generally to adopt CDN (Content Delivery Network, content distributing network) to carry out distribution and the service of media content.Its process is mainly: when the content synchronization module of interface message processor (IMP) receives after the content issue request message that Content Management side CMS sends, analyzing XML file, notifies CDN to issue corresponding contents, finally returns to issue result to CMS.If there is channel in issue request, interface message processor (IMP) will notify CDN-> SS10 (intermediary's streaming media server) to use multicast IP automatically to create channel so.While having the live request of terminal use if follow-up for this channel, by SS10, be its service.If number of request is too much, CDN will distribute all the other SS (such as SS1, SS2...) that service is provided according to load balancing, now, and other SS that these provide service, the multicast group of using while adding SS10 to create channel.Like this, only need SS10 from live source La Yi road code stream, all the other SS1, SS2... receives the code stream of SS10, then to terminal use, provides service, has not only avoided the unnecessary consumption of bandwidth, has also improved the service performance of SS10.
Can find out, the present invention adopts in node and supports the mode of multicast to realize the function that SS provides direct broadcast service, has both reduced the consumption of bandwidth, has solved again SS and from live source, has repeated the poor performance problem of drawing code stream to cause.
Above content is in conjunction with concrete execution mode further description made for the present invention, can not assert that specific embodiment of the invention is confined to these explanations.For general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, can also make some simple deduction or replace, all should be considered as belonging to protection scope of the present invention.