CN102131109A - Method, system and device for monitoring stream media broadcast - Google Patents
Method, system and device for monitoring stream media broadcast Download PDFInfo
- Publication number
- CN102131109A CN102131109A CN2010105082796A CN201010508279A CN102131109A CN 102131109 A CN102131109 A CN 102131109A CN 2010105082796 A CN2010105082796 A CN 2010105082796A CN 201010508279 A CN201010508279 A CN 201010508279A CN 102131109 A CN102131109 A CN 102131109A
- Authority
- CN
- China
- Prior art keywords
- channel
- switching command
- broadcasting
- alternate
- streaming media
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
The invention embodiment provides a method, system and device for monitoring stream media broadcast. The method for monitoring stream media broadcast comprises: generating a switching a command when monitoring that a broadcasting channel is abnormal, wherein the switching command comprises information related to the broadcasting channel and an alternative channel; sending the switching command to a stream media server, wherein the switching command is used for instructing the stream media server to switch the broadcasting channel to the alternative channel and add all subscribers in the broadcasting channel into the subscriber in the alternative channel. In the process of stream media broadcast, the broadcasting channel can be monitored by using the embodiment of the invention. Once the broadcasting channel is abnormal, the broadcasting channel can be switched to the alternative channel, and all subscribers in the broadcasting channel can be added in the subscriber in the alternative channel to avoid the influence to the subscriber when the broadcasting channel is in abnormal. The reliability of the stream media broadcast is improved.
Description
Technical field
The present invention relates to stream media technology, relate to the method, system and device that are used for the monitoring flow media play particularly.
Background technology
Along with the continuous development of the communication technology, the application of stream media technology (Streaming Media Technology) is increasingly extensive.Streaming Media (Streaming Media), refer to the continuous time-base media that in network, uses the stream transmission technology, promptly on the internet with the mode real-time release sound of data flow, the medium of video multimedia content, audio frequency, video, animation or other forms of multimedia file all belong to the row of Streaming Media.Streaming Media is under stream media technology is supported, continuous image and acoustic information after handling, are put on the webserver in overcompression, allow the viewer watch, to listen to, and do not need whole multimedia file download by the time to finish the multimedia file that just can watch immediately while downloading.
Summary of the invention
The invention provides the method, system and device that are used for the monitoring flow media play, can monitor and broadcast the abnormal conditions of channel, improve the reliability of streaming media playing.
The embodiment of the invention provides a kind of method that is used for the monitoring flow media play, and this method comprises:
Broadcasting channel when unusual when monitoring, generating switching command, described switching command comprises about in the information of broadcasting channel and alternate channel;
Described switching command is sent to streaming media server, and described switching command is used to indicate described streaming media server to switch to described alternate channel with described broadcasting channel, joins among the user of described alternate channel all users that broadcast channel described.
Another embodiment of the present invention provides a kind of method that is used for the monitoring flow media play, and this method comprises:
Receive supervising device and monitor and broadcasting the switching command that channel generates when unusual, described switching command comprises about in the information of broadcasting channel and alternate channel;
Switch to described alternate channel with described broadcasting channel according to described switching command, join among the user of described alternate channel all users that broadcast channel described.
Another embodiment of the present invention provides a kind of supervising device, and this device comprises:
Command unit is used for broadcasting channel when unusual when monitoring, and generates switching command, and described switching command comprises about in the information of broadcasting channel and alternate channel;
Interactive unit, be used for described switching command is sent to streaming media server, described switching command is used to indicate described streaming media server to switch to described alternate channel with described broadcasting channel, joins among the user of described alternate channel all users that broadcast channel described.
Another embodiment of the present invention provides a kind of streaming media server, and this server comprises:
Receiving element is used to receive supervising device and monitors and broadcasting the switching command that channel generates when unusual, and described switching command comprises about in the information of broadcasting channel and alternate channel;
Switch unit is used for switching to described alternate channel with described broadcasting channel according to described switching command, joins among the user of described alternate channel all users that broadcast channel described.
Another embodiment of the present invention provides a kind of system that is used for the monitoring flow media play, and this system comprises:
Supervising device is used for monitoring and is broadcasting channel, is describedly broadcasting channel when unusual when monitoring, and generates switching command, and described switching command comprises about in the information of broadcasting channel and alternate channel;
Streaming media server is used for behind the described switching command that receives from described supervising device, switches to described alternate channel with described broadcasting channel, joins among the user of described alternate channel all users that broadcast channel described.
Adopt the technical scheme of the embodiment of the invention, can be in the process of streaming media playing, to monitoring broadcasting channel.In case in that to broadcast channel unusual, generate switching command by supervising device, the indication streaming media server will switch to alternate channel broadcasting channel, will join among the user of alternate channel all users that broadcast channel, avoid broadcasting the influence that the unusual situation of channel is watched the user.For example can avoid the violation content play to give the user, also can avoid watching, promote the reliability of streaming media playing the fault effects user who broadcasts channel.Whole handoff procedure is to user transparent, and the user need not operation, can continue to watch, thus assurance user's Experience Degree.
Description of drawings
Fig. 1 illustrates the schematic diagram of mobile flow medium networking in the prior art;
Fig. 2 illustrates the structural representation of the system that is used for the monitoring flow media play in the embodiment of the invention;
Fig. 3 illustrates the structural representation of a kind of execution mode of supervising device in the embodiment of the invention;
Fig. 4 illustrates the structural representation of a kind of execution mode of streaming media server in the embodiment of the invention;
Fig. 5 illustrates the schematic flow sheet of the method that is used for the monitoring flow media play in one embodiment of the invention;
Fig. 6 illustrates the schematic flow sheet that generates a kind of execution mode of switching command in the embodiment of the invention;
Fig. 7 illustrates the schematic flow sheet that generates the another kind of execution mode of switching command in the embodiment of the invention;
Fig. 8 illustrates the schematic flow sheet of the method that is used for the monitoring flow media play in another embodiment of the present invention;
Fig. 9 illustrates in the embodiment of the invention will broadcast the schematic flow sheet that channel switches to a kind of execution mode of alternate channel;
Figure 10 illustrates in the embodiment of the invention will broadcast the schematic flow sheet that channel switches to the another kind of execution mode of alternate channel;
Figure 11 illustrates the schematic flow sheet that starts a kind of execution mode of alternate channel in the embodiment of the invention;
Figure 12 illustrates the schematic flow sheet that is closed in a kind of execution mode of broadcasting channel in the embodiment of the invention.
Embodiment
The method and system that are used for the monitoring flow media play that the embodiment of the invention provides can be applied to the stream media technology in various fields.Wherein, stream media technology is meant continuous image and acoustic information are put on the streaming media server after overcompression is handled, and watches, listens to while allow the user download, and whole compressed file such as do not need to have downloaded the network transmission technology that just can watch.Stream media technology can include but not limited to based on the stream media technology of broadband cable network with based on the stream media technology of mobile communications network, wherein, is called the mobile flow medium technology based on the stream media technology of mobile communications network.Below only be the method and system that the example explanation is used for the monitoring flow media play with the mobile flow medium.
Fig. 1 illustrates the schematic diagram of mobile flow medium networking in the prior art.
Referring to Fig. 1, in the mobile flow medium networking, operator can oneself make streaming medium content and upload to streaming media server 11, also can with (the Content Provider of content supplier, CP)/service provider (Service Provider, SP) 12 cooperations provide streaming medium content by CP/SP to streaming media server.Streaming media server 11 can be by Access Network 14 to receiving terminal 13 playing stream medias.
In the process of streaming media playing, abnormal conditions may take place broadcasting channel.In the embodiment of the invention, channel " unusually " includes but not limited to that channel relates in violation of rules and regulations content or breaks down etc., and wherein, content can include but not limited to unhealthy or other forbid the content play in violation of rules and regulations.At this moment, adopt method and system that are used for the monitoring flow media play that the embodiment of the invention provided directly to control broadcasting channel and switch to alternate channel, will join among the user of alternate channel, do not continue to watch thereby do not influence the user all users that broadcast channel.
Fig. 2 illustrates the structural representation of the system that is used for the monitoring flow media play in the embodiment of the invention.
Referring to Fig. 2, in this embodiment, the system of monitoring flow media play can comprise:
Wherein, supervising device 21 can independently be provided with, and also can be integrated in the streaming media server 22.
In the embodiment of the invention, see also Fig. 3, supervising device can comprise:
In another embodiment of the present invention, owing to there is the administration problem of zones of different, for example, identical channel may belong to different streaming media servers in different regions, therefore, can have the situation of a channel corresponding to a plurality of streaming media servers; In addition, simultaneously a plurality of broadcast that channel need switch also may be corresponding to the situation of a plurality of streaming media servers.Therefore, in the switching command that command unit generates (at single or a plurality ofly unusual broadcasting channel), when when broadcasting channel corresponding to a plurality of streaming media server, interactive unit also is used for parallelly sending described switching command to each streaming media server.In additional embodiments of the present invention, can also generate the multichannel switching command simultaneously for the multi channel switching, allow multichannel to switch and carry out simultaneously, improve the efficient of switching.
In another embodiment of the present invention, command unit 31 can comprise auditing module 311 and monitoring module 312, wherein:
In another embodiment of the present invention, in supervising device, can also comprise database module 33, be used to store Session Description Protocol (Session Description Protocol, the SDP) file of described alternate channel.Wherein, SDP file, description be the initiation parameter of Streaming Media.(Internet Engineering Task Force is IETF) to the description of SDP can (Request For Comments RFC) 2327 finds requesting for comments for the Internet engineering duty group.SDP file can include but not limited to following content: session information and media information.Session information can include but not limited to: the bandwidth that session name and purpose, Session Time, session are used and the user profile of session.Media information can include but not limited to: medium type, for example: video or audio frequency; Host-host protocol, for example: RTP/UDP/IP; Media formats, for example: H.263 video or MPEG video; The contact address and the media delivery port of multicast address and media delivery port (ip multicast session) and IP unicast session.
In one embodiment of this invention, the SDP file of channel can directly be obtained by streaming media server.In another embodiment of the present invention, also can the SDP file of alternate channel be uploaded to streaming media server by supervising device.In one embodiment of this invention, load-on module 34 is set in supervising device, is used for finding out the SDP file of alternate channel, and the SDP file of alternate channel is loaded in the switching command from database module 33.In additional embodiments of the present invention, load-on module 34 is set in supervising device, be used for SDP file, and the SDP file of alternate channel is loaded in the switching command to the independent database lookup alternate channel that is provided with.
In another embodiment of the present invention, server unit 35 can also be set in supervising device, be used to receive switching result from streaming media server.Correspondingly, supervising device can also comprise and report unit 36, is used for the switching result handoff failure reported the monitor broadcasting channel.In additional embodiments of the present invention, report unit further that switching result is added up, with reporting broadcasting sets of channels of handoff failure.The monitor carries out artificial treatment at handoff failure broadcasting channel.
Fig. 4 illustrates the structural representation of a kind of execution mode of streaming media server.
Referring to Fig. 4, among the embodiment of streaming media server of the present invention, streaming media server can comprise:
Receiving element 41 is used for broadcasting channel when unusual when supervising device monitors, and receives the switching command of self-monitoring device.In one embodiment of this invention, switching command has loaded the SDP file of alternate channel, the SDP file of streaming media server alternate channel from switching command.
In another embodiment of the present invention, do not load the SDP file of alternate channel in the switching command, streaming media server obtains the SDP file of alternate channel.In one embodiment of this invention, streaming media server can be searched the SDP file of alternate channel in internal database.Concrete, streaming media server can also comprise: database module 45 is used to store the SDP file of described alternate channel; And search unit 46, be used for searching from database module 45 SDP file of alternate channel according to switching command.In another embodiment of the present invention, streaming media server also can be to the SDP file of the independent database lookup alternate channel that is provided with.Concrete, streaming media server can also comprise searches unit 46, is used for according to the SDP file of switching command from the independent database lookup alternate channel that is provided with.
Switch unit 42 is used for will switching to alternate channel broadcasting channel according to switching command, will join among the user of alternate channel all users that broadcast channel.
In another embodiment of the present invention, streaming media server can also comprise feedback unit 43, is used for to supervising device feedback switching result.Wherein, the situation of handoff failure includes but not limited to: inconsistent and purpose channel does not exist or the like the source channel unread in the switching command by the form of source channel in program request, the switching command and purpose channel.
In one embodiment of this invention, streaming media server can also comprise transmitting element 44, is used for before switching, plays to the user by first session and media communication channel resource and is broadcasting the Streaming Media of channel; After switching, play the Streaming Media of alternate channel to the user by first session and media communication channel resource.In one embodiment of this invention, streaming media server can adopt different sessions and media communication channel resource to user's playing stream media before and after switching; For example, before switching, broadcasting the Streaming Media of channel to user's broadcast by first session and media communication channel resource; After switching, play the Streaming Media of alternate channel to the user by second session and media communication channel resource.In another embodiment of the present invention, for in the abnormal conditions of broadcasting the channel fault, if first session and media communication channel resource can normally use, streaming media server can adopt identical session and media communication channel resource (i.e. first session and media communication channel resource) to user's playing stream media before and after switching, thereby shorten the operating time that channel switches, guarantee that the user watches the Experience Degree of Streaming Media.
In another embodiment of the present invention, switch unit 42 can comprise:
In another embodiment of the present invention, handover module 423 can comprise:
Promoter module 4232 is used for the SDP file according to the alternate channel that loads, and starts alternate channel.Described timestamp at the Streaming Media of broadcasting channel is synchronous with the timestamp that switches the described alternate channel in back for the succession of described sequence number at the Streaming Media of broadcasting channel before keeping switching and the sequence number of the Streaming Media that switches the described alternate channel in back and before keeping switching, and the promoter module also is used to locate the timestamp of Streaming Media of give out a contract for a project position and adjustment alternate channel of the Streaming Media of alternate channel.Wherein, timestamp is in the streaming media playing process, is used for reflecting that (Realtime Transport Protocol, the RTP) sampling instant of first octal number in the packet are to derive from dull, the linear clock that increases to RTP.Timestamp can allow receiving terminal know in the correct time and play data.Sequence number is in the streaming media playing process, increases by one along with each RTP packet, is used for the loss of probe data packet by receiving terminal.Occur owing to may have the situation of packet loss, so receiving terminal adopts the sequence number binding time to stab correct played data.Wherein, and RTP (Realtime Transport Protocol, RTP): be a host-host protocol going up multimedia data stream at Internet, describe RFC1889 in detail referring to the IETF issue.RTP be defined in one to one or the transmission situation of one-to-many under work, its objective is provides temporal information and realizes that stream is synchronously.Because the transmission of Streaming Media needs data to arrive receiving terminal in good time, so that receiving terminal is play and playback.Therefore, RTP provides timestamp, sequence number and other structure to be used to control the broadcast of in good time data.Streaming media server is provided with timestamp according to instant sampling in packet, receiving terminal becomes original in good time data according to timestamp according to correct rate recovery after receiving packet.
Close closed submodule 4233, be used to be closed in and broadcast channel.
One embodiment of the invention can adopt seamless switching to realize and will switch to alternate channel broadcasting channel.So-called seamless switching is meant opens alternate channel earlier, is closed in and broadcasts channel.Broadcast the switching mode that channel is opened alternate channel again with respect to being closed in earlier, seamless switching can guarantee that the user can watch Streaming Media all the time, and has avoided the appearance of situations such as blank screen in the handoff procedure or Hua Ping, strengthens user's Experience Degree.
Fig. 5 illustrates the schematic flow sheet of the method that is used for the monitoring flow media play in one embodiment of the invention.
Referring to Fig. 5, step S501 to monitoring broadcasting channel, when monitoring broadcasting channel when unusual, generates switching command, and switching command comprises the information of relevant source channel and purpose channel, and the source channel is for to broadcast channel, and the purpose channel is an alternate channel.
In the switching command that generates (at single or a plurality ofly unusual broadcasting channel), when when broadcasting channel corresponding to a plurality of streaming media server, supervising device is parallel to send switching command to each streaming media server.
Step S502 sends to streaming media server with switching command, and switching command is used to indicate streaming media server to switch to alternate channel broadcasting channel, will join among the user of alternate channel all users that broadcast channel.
In another embodiment of the present invention, this method can also comprise:
Step S503 receives the switching result from streaming media server.
Step S504 adds up described switching result.
Step S505 reports the monitor with handoff failure in the switching result broadcasting channel.In one embodiment of this invention, can be directly will report the monitor broadcasting channel from handoff failure in the switching result of streaming media server.In another embodiment of the present invention, after also can adding up, handoff failure in the switching result reported the monitor broadcasting sets of channels to switching result.
In another embodiment of the present invention, see also Fig. 6, generating switching command can comprise:
Step S601 is broadcasting channel when unusual when monitoring, and generates switching command.
Step S602 judges whether switching command repeats.For fear of broadcasting the switching command that channel generates two or more at identical, switching command is filtered (judging promptly whether switching command repeats), when finding that switching command repeats, then filter out this switching command.
In another embodiment of the present invention, see also Fig. 7, generating switching command can comprise:
Step S701 when monitoring multichannel in that to broadcast channel unusual, unusual generates a switching command broadcasting channel at each, promptly generates the multichannel switching command.
Step S702 judges whether each switching command in the multichannel switching command repeats.
Step S703 filters out the switching command that repeats in the multichannel switching command, at unduplicated switching command, generates corresponding switching command respectively.The information that comprises relevant source channel and purpose channel in each switching command, the source channel in each switching command are unusual to broadcast channel, and the purpose channel in each switching command is for to broadcast the corresponding alternate channel of channel with unusual.For the unusual situation of multi channel, present embodiment adopts multichannel to switch the mechanism of parallel processing, improves efficiency for monitoring.
In another embodiment of the present invention, can in switching command, load the SDP file of alternate channel.In one embodiment of this invention, can search the SDP file of alternate channel, the SDP file of the alternate channel that finds is loaded in the switching command.
In another embodiment of the present invention, more than the executive agent of each step can be integrated on the supervising device.
Fig. 8 illustrates the schematic flow sheet of the method that is used for the monitoring flow media play in another embodiment of the present invention.
Referring to Fig. 8, step S801 is broadcasting channel when unusual when monitoring, and streaming media server receives the switching command of self-monitoring device.Switching command comprises source channel and purpose channel, and the source channel is for to broadcast channel, and the purpose channel is an alternate channel.
Step S802, streaming media server will switch to alternate channel broadcasting channel according to switching command, will join among the user of alternate channel all users that broadcast channel.In the present embodiment, carry the SDP file of alternate channel in the switching command, streaming media server directly switches according to switching command.In another embodiment of the present invention, do not carry the SDP file of alternate channel in the switching command, streaming media server is searched the SDP file of alternate channel according to switching command, to switch to alternate channel broadcasting channel, will join among the user of alternate channel all users that broadcast channel.In one embodiment of this invention, streaming media server can be searched the SDP file of alternate channel in internal database.In another embodiment of the present invention, streaming media server also can be to the SDP file of the independent database lookup alternate channel that is provided with.
Before and after switching, streaming media server can adopt different sessions and media communication channel resource to the Streaming Media of user's broadcast in the Streaming Media of broadcasting channel and alternate channel.In one embodiment of this invention, before the switching, streaming media server adopts first session and media communication channel resource to play to the user and is broadcasting the Streaming Media of channel; After the switching, streaming media server adopts second session and media communication channel resource to play the Streaming Media of alternate channel to the user.In handoff procedure, carry out the release of first session and media communication channel resource and the foundation of second session and media communication channel resource.In another embodiment of the present invention, before switching, play to the user by first session and media communication channel resource and describedly to broadcast the Streaming Media of channel; After the switching, still play the Streaming Media of described alternate channel to described user, shorten the operating time of switching, make and finish required time to switching and be no more than 3 seconds from initiating switching command by first session and media communication channel resource.
In another embodiment of the present invention, this method can also comprise:
Step S803, streaming media server feeds back switching result to supervising device.What comprise handoff failure in the switching result is broadcasting channel, wherein including but not limited to broadcasting channel of handoff failure: do not have broadcasting channel, broadcasting channel etc. with corresponding alternate channel form is inconsistent broadcasting channel of user's program request.
In another embodiment of the present invention, see also Fig. 9, will switch to alternate channel and can comprise broadcasting channel:
Step S901, streaming media server is according to searching at the SDP file of broadcasting channel and broadcasting the corresponding Hash node of channel.Concrete, streaming media server will obtain cryptographic Hash through Hash operation at the SDP file of broadcasting channel, search in Hash table and will be broadcasting the corresponding Hash node of channel according to the cryptographic Hash that obtains.If find, then expression has that user's program request is described is broadcasting channel, thereby can continue and will switch to alternate channel broadcasting channel.
Step S902 when finding with when broadcasting the corresponding Hash node of channel, according to the SDP file in the SDP file of broadcasting channel and alternate channel, judges in that whether broadcast channel consistent with the form of alternate channel.SDP file has been described the initiation parameter of Streaming Media, and it can comprise session information and media information, carries parameters such as media formats in media information.According to the parameter of in the SDP file of the SDP file of broadcasting channel and alternate channel, carrying, can judge in that whether broadcast channel consistent with the form of alternate channel.If consistent, then can switch; If it is inconsistent then cannot switch.
Step S903 when broadcasting channel when consistent with the form of alternate channel, will switch to alternate channel broadcasting channel, will join among the user of alternate channel all users that broadcast channel.
In another embodiment of the present invention, see also Figure 10, will switch to alternate channel and can comprise broadcasting channel:
Step S1001, the SDP file of loading alternate channel.
Step S1002 according to the SDP file of the alternate channel that loads, starts alternate channel.
Step S1003 is closed in and broadcasts channel.
In another embodiment of the present invention, see also Figure 11, starting alternate channel can comprise:
Step S1101 creates the handle of the Streaming Media be used to receive alternate channel.The media information that carries in the SDP file of alternate channel has the relevant parameter of host-host protocol.Therefore, according to the SDP file of alternate channel, establishment RTP, RTCP handle are used to receive the Streaming Media of alternate channel.
Step S1102 will join among the user of alternate channel all users that broadcast channel.In one embodiment of this invention, will in joining the user of alternate channel, all users that broadcast channel can comprise: will join in the transmission inventory (Send_List) of alternate channel all users that broadcast channel.
In another embodiment of the present invention, starting alternate channel can also comprise:
Step S1103 is provided for monitoring the handle of alternate channel, and then can monitors alternate channel.Wherein, the handle that is used to monitor alternate channel can include but not limited to EPOLL_FD, POLL_FD or SELECT_FD.The difference of EPOLL_FD, POLL_FD and SELECT_FD is: the FD that SELECT_FD monitored is restricted on number, and SELECT_FD needs all FD of poll at every turn simultaneously, and efficient is low; The FD that POLL_FD monitored on number without limits, but POLL_FD still needs all FD of each poll; The FD that EPOLL_FD monitored without limits, no longer needs all FD of poll simultaneously on number.Therefore, EPOLL_FD's is most effective, in the present embodiment, preferably adopts EPOLL_FD.Wherein, (File Descriptor, FD): under linux, all operations all are that file is operated to filec descriptor, and utilize FD to realize to the operation of file.In source code, generally use the sign of FD as filec descriptor.
In another embodiment of the present invention, starting alternate channel can also comprise:
Step S1104, the timestamp of giving out a contract for a project the position and adjusting the Streaming Media of alternate channel of the Streaming Media of location alternate channel, before keeping switching in the succession of the sequence number of the Streaming Media of broadcasting channel and the sequence number of the Streaming Media that switches the back alternate channel and before keeping switching the timestamp of the Streaming Media of broadcasting channel with switch after the timestamp of alternate channel synchronous.Receiving terminal (user) is by sequence number and timestamp playing stream media, and whole handoff procedure is transparent to receiving terminal, the timestamp of giving out a contract for a project the position and adjusting the Streaming Media of alternate channel of the Streaming Media of location alternate channel, sequence number at the sequence number of the Streaming Media of broadcasting channel and the Streaming Media that switches the back alternate channel before make switching keeps succession, and keep synchronously at the timestamp of the Streaming Media of the broadcasting channel timestamp with the Streaming Media that switches the back alternate channel before make switching, can guarantee that receiving terminal correctly plays the Streaming Media of alternate channel.
In another embodiment of the present invention, see also Figure 12, be closed in and broadcast channel and can comprise:
Step S1201 closes the handle that is used to be received in the Streaming Media of broadcasting channel.Stop to be used to be received in RTP (Realtime Transport Protocol, RTP) handle, RTCP Real-time Transport Control Protocol (Realtime Transport Control Protocol, the RTCP) handle of the Streaming Media of broadcasting channel.Wherein, RTP is a host-host protocol going up multimedia data stream at Internet, describes the RFC1889 referring to the IETF issue in detail.RTP be defined in one to one or the transmission situation of one-to-many under work, its objective is provides temporal information and realizes that stream is synchronously.RTCP is used for by exchange of control information between the current application process transmission quality being managed.During the RTP session, each participant periodically transmits the RTCP bag, contains the quantity of data packets that has sent, the statistics of losing such as quantity of data packets in the bag.Therefore, streaming media server can dynamically change transmission rate according to statistics.
In additional embodiments of the present invention, be closed in and broadcast channel and can also comprise:
Step S1202 closes to be used to monitor and is broadcasting the handle of channel.Concrete, can broadcast the handle EPOLL_FD of channel for release is used to monitor.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential hardware platform, can certainly all implement by hardware.Based on such understanding, all or part of can the embodying that technical scheme of the present invention is made contributions to background technology with the form of software product, this computer software product can be stored in the storage medium, as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are used so that a computer equipment (can be personal computer, server or the network equipment etc.) is carried out the described method of some part of each embodiment of the present invention or embodiment.
More than disclosed only be several preferred implementation of the present invention, but protection scope of the present invention is not limited thereto.Various modifications and distortion that any those skilled in the art of being familiar with make the present invention under the teaching of this paper all should be encompassed within protection scope of the present invention.
Claims (15)
1. method that is used for the monitoring flow media play, this method comprises:
Broadcasting channel when unusual when monitoring, generating switching command, described switching command comprises about in the information of broadcasting channel and alternate channel;
Described switching command is sent to streaming media server, and described switching command is used to indicate described streaming media server to switch to described alternate channel with described broadcasting channel, joins among the user of described alternate channel all users that broadcast channel described.
2. method according to claim 1, wherein described when monitoring in that to broadcast channel unusual, generate switching command and comprise:
Describedly broadcast channel when unusual when monitoring, generating switching command;
Judge whether described switching command repeats;
When judging that described switching command does not repeat, generate switching command.
3. method according to claim 1, wherein described when monitoring in that to broadcast channel unusual, generate switching command and comprise:
When monitoring multichannel in that to broadcast channel unusual, generate switching command corresponding to each road respectively broadcasting channel, promptly generate the multichannel switching command;
Judge whether each switching command in the described multichannel switching command repeats;
Corresponding to unduplicated switching command in the described multichannel switching command, generate corresponding switching command respectively, the information that comprises relevant source channel and purpose channel in each switching command, source channel in each switching command is unusual to broadcast channel, and the purpose channel in each switching command is for to broadcast the corresponding alternate channel of channel with unusual.
4. according to each described method of claim 1 to 3, wherein, described generation switching command comprises:
Search the Session Description Protocol file of described alternate channel from database module;
With the Session Description Protocol file load of described alternate channel in described switching command.
5. method according to claim 1, wherein described when monitoring in that to broadcast channel unusual, generate switching command and comprise:
, when broadcasting channel, walk abreast and send described switching command when described to each streaming media server corresponding to a plurality of streaming media server.
6. method that is used for the monitoring flow media play, this method comprises:
Receive supervising device and monitor and broadcasting the switching command that channel generates when unusual, described switching command comprises about in the information of broadcasting channel and alternate channel;
Switch to described alternate channel with described broadcasting channel according to described switching command, join among the user of described alternate channel all users that broadcast channel described.
7. method according to claim 6 wherein, describedly will switch to alternate channel and comprise broadcasting channel according to described switching command:
Judge described in that whether broadcast channel consistent with the form of described alternate channel;
Broadcasting channel when consistent when described, switching to described alternate channel broadcasting channel, joining among the user of described alternate channel all users that broadcast channel described with described with the form of described alternate channel.
8. a supervising device is characterized in that, this device comprises:
Command unit is used for broadcasting channel when unusual when monitoring, and generates switching command, and described switching command comprises about in the information of broadcasting channel and alternate channel;
Interactive unit, be used for described switching command is sent to streaming media server, described switching command is used to indicate described streaming media server to switch to described alternate channel with described broadcasting channel, joins among the user of described alternate channel all users that broadcast channel described.
9. device according to claim 8 is characterized in that, described command unit comprises:
Auditing module is used for describedly broadcasting channel when unusual when monitoring, and generates switching command;
Monitoring module is used to judge whether described switching command repeats; When described switching command does not repeat, generate switching command.
10. device according to claim 8 is characterized in that, described command unit comprises:
Auditing module is used for when monitoring multichannel in that to broadcast channel unusual, generates switching command corresponding to each road respectively broadcasting channel, promptly generates the multichannel switching command;
Monitoring module is used for judging whether each switching command of described multichannel switching command repeats; Corresponding to unduplicated switching command in the described multichannel switching command, generate corresponding switching command respectively, the information that comprises relevant source channel and purpose channel in each switching command, source channel in each switching command is unusual to broadcast channel, and the purpose channel in each switching command is for to broadcast the corresponding alternate channel of channel with unusual.
11. to 10 each described devices, it is characterized in that this device also comprises according to Claim 8:
Database module is used to store the Session Description Protocol file of described alternate channel;
Load-on module is used for searching to described database module the Session Description Protocol file of described alternate channel; And with the Session Description Protocol file load of described alternate channel in described switching command.
12. device according to claim 8 is characterized in that, when described when broadcasting channel corresponding to a plurality of streaming media server,
Described interactive unit, also being used for walking abreast sends described switching command to each streaming media server.
13. a streaming media server is characterized in that, this server comprises:
Receiving element is used to receive supervising device and monitors and broadcasting the switching command that channel generates when unusual, and described switching command comprises about in the information of broadcasting channel and alternate channel;
Switch unit is used for switching to described alternate channel with described broadcasting channel according to described switching command, joins among the user of described alternate channel all users that broadcast channel described.
14. server according to claim 13 is characterized in that, described switch unit comprises:
Judge module is used to judge described in that whether broadcast channel consistent with the form of described alternate channel;
Handover module is used for broadcasting channel when consistent with the form of described alternate channel when described, switches to alternate channel with described broadcasting channel.
15. a system that is used for the monitoring flow media play is characterized in that, this system comprises:
Supervising device is used for monitoring and is broadcasting channel, is describedly broadcasting channel when unusual when monitoring, and generates switching command, and described switching command comprises about in the information of broadcasting channel and alternate channel;
Streaming media server is used for behind the described switching command that receives from described supervising device, switches to described alternate channel with described broadcasting channel, joins among the user of described alternate channel all users that broadcast channel described.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010105082796A CN102131109A (en) | 2010-10-14 | 2010-10-14 | Method, system and device for monitoring stream media broadcast |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010105082796A CN102131109A (en) | 2010-10-14 | 2010-10-14 | Method, system and device for monitoring stream media broadcast |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102131109A true CN102131109A (en) | 2011-07-20 |
Family
ID=44268976
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010105082796A Pending CN102131109A (en) | 2010-10-14 | 2010-10-14 | Method, system and device for monitoring stream media broadcast |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102131109A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013174327A1 (en) * | 2012-08-31 | 2013-11-28 | 中兴通讯股份有限公司 | Media stream transmission method and device |
CN105430490A (en) * | 2015-11-30 | 2016-03-23 | 北京华夏电通科技有限公司 | Flexible control and switching method for live channels |
CN106649580A (en) * | 2016-11-17 | 2017-05-10 | 任子行网络技术股份有限公司 | Stream data processing method and system for massive log query |
CN107690075A (en) * | 2016-08-04 | 2018-02-13 | 创盛视联数码科技(北京)有限公司 | live stream switching method |
CN108965918A (en) * | 2018-07-19 | 2018-12-07 | 腾讯科技(深圳)有限公司 | streaming media processing method, device, system and computer readable storage medium |
CN112565857A (en) * | 2019-09-25 | 2021-03-26 | 海信视像科技股份有限公司 | Display device and television program switching method |
WO2021056932A1 (en) * | 2019-09-25 | 2021-04-01 | 海信视像科技股份有限公司 | Display device and television program switching method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101052115A (en) * | 2006-04-05 | 2007-10-10 | 北京北大方正电子有限公司 | Broad cast TV playing and control method and system |
CN101583049A (en) * | 2009-06-02 | 2009-11-18 | 中兴通讯股份有限公司 | Device for detecting interruption of unicast channel code stream and method thereof |
CN101719990A (en) * | 2009-12-18 | 2010-06-02 | 深圳市融创天下科技发展有限公司 | Method for censoring stream media live programs |
-
2010
- 2010-10-14 CN CN2010105082796A patent/CN102131109A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101052115A (en) * | 2006-04-05 | 2007-10-10 | 北京北大方正电子有限公司 | Broad cast TV playing and control method and system |
CN101583049A (en) * | 2009-06-02 | 2009-11-18 | 中兴通讯股份有限公司 | Device for detecting interruption of unicast channel code stream and method thereof |
CN101719990A (en) * | 2009-12-18 | 2010-06-02 | 深圳市融创天下科技发展有限公司 | Method for censoring stream media live programs |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013174327A1 (en) * | 2012-08-31 | 2013-11-28 | 中兴通讯股份有限公司 | Media stream transmission method and device |
EP2892194A4 (en) * | 2012-08-31 | 2015-08-26 | Zte Corp | Media stream transmission method and device |
CN105430490A (en) * | 2015-11-30 | 2016-03-23 | 北京华夏电通科技有限公司 | Flexible control and switching method for live channels |
CN107690075A (en) * | 2016-08-04 | 2018-02-13 | 创盛视联数码科技(北京)有限公司 | live stream switching method |
CN106649580A (en) * | 2016-11-17 | 2017-05-10 | 任子行网络技术股份有限公司 | Stream data processing method and system for massive log query |
CN108965918A (en) * | 2018-07-19 | 2018-12-07 | 腾讯科技(深圳)有限公司 | streaming media processing method, device, system and computer readable storage medium |
CN112565857A (en) * | 2019-09-25 | 2021-03-26 | 海信视像科技股份有限公司 | Display device and television program switching method |
WO2021056932A1 (en) * | 2019-09-25 | 2021-04-01 | 海信视像科技股份有限公司 | Display device and television program switching method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Montagud et al. | Inter-destination multimedia synchronization: schemes, use cases and standardization | |
KR100870587B1 (en) | Multimedia session management | |
US8839340B2 (en) | Method, system and device for synchronization of media streams | |
CN102131109A (en) | Method, system and device for monitoring stream media broadcast | |
EP2672678B1 (en) | Method, apparatus and terminal device for internet protocol television content sharing | |
US20080151885A1 (en) | On-Demand Multi-Channel Streaming Session Over Packet-Switched Networks | |
US8813160B2 (en) | Method, system and user device for obtaining a key frame in a streaming media service | |
US8873368B2 (en) | Method for processing channel switching failure case, terminal device, and channel switching server | |
CN103096128B (en) | A kind of realize the method for video interactive, server, terminal and system | |
CN101582731A (en) | Method and system for processing bookmark service and triggering, supplying, processing and control devices | |
US20140344854A1 (en) | Method and System for Displaying Speech to Text Converted Audio with Streaming Video Content Data | |
CN102119519A (en) | Fast content switching in a communication system | |
KR20090018673A (en) | System for accessing an ip television service in an ims architecture network | |
JP2012515484A (en) | Managing associated sessions in the network | |
CN101547402B (en) | Method and device for establishing IPTV multicast service | |
Marfil et al. | Synchronization mechanisms for multi-user and multi-device hybrid broadcast and broadband distributed scenarios | |
JP5332303B2 (en) | Service providing method, streaming server, streaming transmission method, and program | |
CN101714977A (en) | Method, system and device for modifying playing streaming media | |
Boronat et al. | The need for inter-destination synchronization for emerging social interactive multimedia applications | |
EP2288108B1 (en) | Method and network equipment for establishing individualized content delivery channel | |
CN108513159A (en) | Multiple terminals synchronous broadcast controlling method, main equipment, apparatus and system | |
US8036141B2 (en) | Apparatus and method for managing a network | |
CN101883333B (en) | Method, system and device for acquiring real-time media play information of designated user | |
CN101340428A (en) | Method and system for providing media stream in process of media server switching | |
CN101616133A (en) | Realize the mthods, systems and devices of shared group service |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20110720 |