[go: up one dir, main page]

WO2010096966A1 - Method for switching channel, terminal equipment and channel switching server - Google Patents

Method for switching channel, terminal equipment and channel switching server Download PDF

Info

Publication number
WO2010096966A1
WO2010096966A1 PCT/CN2009/070578 CN2009070578W WO2010096966A1 WO 2010096966 A1 WO2010096966 A1 WO 2010096966A1 CN 2009070578 W CN2009070578 W CN 2009070578W WO 2010096966 A1 WO2010096966 A1 WO 2010096966A1
Authority
WO
WIPO (PCT)
Prior art keywords
channel
information
data stream
new
current
Prior art date
Application number
PCT/CN2009/070578
Other languages
French (fr)
Chinese (zh)
Inventor
邸佩云
邹子轩
刘欣
许阳坡
胡昌启
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2009/070578 priority Critical patent/WO2010096966A1/en
Priority to CN200980157123.3A priority patent/CN102356615A/en
Publication of WO2010096966A1 publication Critical patent/WO2010096966A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/80Responding to QoS

Definitions

  • the embodiments of the present invention relate to the field of communications technologies, and in particular, to a channel switching method, a terminal device, and a channel switching server. Background technique
  • the QoE evaluates the quality of a service from the perspective of common user experience.
  • the speed of channel switching is an important indicator that affects QoE.
  • the channel switching time is from the user to issue a channel switching command to the user to watch the new. The time of the channel.
  • the STB sends a channel switching request to the server providing the channel switching service, and after receiving the user's request, the server responds to the user's request and proceeds to the unicast form.
  • the user provides the service of the new channel.
  • the multicast server provides the user with the service of the channel.
  • the client device and the server providing the channel switching service need to perform some information interaction, and the interaction of the information takes a certain time. In order to complete, and because the IP network itself has packet loss, there will be data damage during the interaction and data transmission between the client device and the server providing the channel switching service.
  • the client first sends a fast channel switching request to the server, and after receiving the request, the server sends the channel description information to the server in the form of unicast, and then (or ) Send load description information and load information of the data stream.
  • the client sends an IGMP request to the multicast server to request to join the multicast group.
  • the multicast group sends the multicast stream of the channel to the client.
  • the client receives the multicast stream.
  • the serial number information of the first RTP packet is sent to the channel switching unicast server, and the server determines whether to stop the transmission of the unicast stream according to the serial number information of the first RTP packet of the received multicast stream.
  • the inventor has found that the prior art has at least the following disadvantages: If the user issues a channel switching instruction again, the client separately sends the request message leaving the unicast and requests the new channel request message, that is, the client.
  • the terminal needs to interact with the server twice, which increases the bandwidth of the uplink.
  • the client and the server must process two packets continuously. If the client needs to issue multiple channel switching requests, the server needs to perform with the client. Multiple interactions require more bandwidth, and the time interval between two messages affects the speed of fast channel switching.
  • the embodiment of the invention provides a channel switching method, a terminal device and a channel switching server to improve the speed of channel switching.
  • a method for switching a channel including:
  • Transmitting a handover request message to the channel switching server so that the channel switching server stops or continues to send the data stream of the current channel according to the handover request message, and causes the channel switching server to send a data stream of the new channel, where
  • the handover request message includes at least channel information of the new channel and processing information of the channel.
  • a method for switching a channel including:
  • Parsing the handover request message obtaining at least channel information of the new channel and processing information of the channel; stopping or continuing to send the data stream of the channel to the terminal device according to the processing information of the channel, and transmitting according to the channel information of the new channel
  • the data of the new channel flows to the terminal device.
  • a terminal device including: a behavior detecting module, configured to detect whether the switching channel information of the user is received;
  • a switching processing module configured to: when the behavior detecting module detects the switching channel information of the user, send a switching request message to the channel switching server, so that the channel switching server stops or continues to send the current according to the switching request message. a data stream of the channel, and causing the channel switching server to send a data stream of the new channel, wherein the handover request message includes at least channel information of the new channel and processing information of the channel. .
  • a channel switching server including:
  • a message processing module configured to receive a handover request message sent by the terminal device, and parse the handover request message, to obtain at least channel information of the new channel and processing information of the channel;
  • a sending module configured to stop or continue to send the data stream of the channel to the terminal device according to the processing information of the channel, and send the data stream of the new channel to the terminal device according to the channel information of the new channel.
  • the data stream is sent to the terminal device, and the new channel data stream is sent to the terminal device, which can shorten the information interaction time and the information processing time in the channel switching process, and improve the channel switching speed.
  • FIG. 1 is a schematic diagram of an application environment of a terminal device applied to channel switching according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a terminal device and a channel switching server applied to channel switching according to Embodiment 1 of the present invention
  • FIG. 3 is a schematic structural diagram of a terminal device and a channel switching server applied to channel switching according to Embodiment 2 of the present invention
  • FIG. 4 is a schematic structural diagram of a terminal device and a channel switching server applied to channel switching according to Embodiment 3 of the present invention
  • FIG. 5 is a flowchart of a method for switching a channel according to Embodiment 1 of the present invention.
  • FIG. 6 is a flowchart of a method for switching a channel according to Embodiment 2 of the present invention.
  • FIG. 7 is a flowchart of a method for switching a channel according to Embodiment 3 of the present invention.
  • FIG. 1 is an application environment diagram of a terminal device applied to channel switching according to an embodiment of the present invention.
  • the multicast server 10 is connected to the channel switching server 20 and the terminal device 30, and the channel switching server 20 is configured to send the unicast data stream of the switched channel to the channel switching request of the terminal device 30.
  • the multicast server 10 is configured to receive the request for joining the multicast group sent by the terminal device 30 after receiving the unicast data stream sent by the channel switching server 20 for a period of time, and send the multicast data stream to the terminal device 30,
  • the multicast data stream is sent to the channel switching server 20 for storage.
  • the terminal device 30 can be a set top box.
  • the terminal device 30 receives the unicast data stream transmitted by the channel server 20.
  • the channel switching server 20 includes a channel switching data storage module 200, a media key information acquiring module 210, a sending module 220, and a message processing module 230.
  • the terminal device 30 includes a data receiving module 300, a data stream monitoring module 310, a switching processing module 320, and a behavior detecting module 330.
  • the data receiving module 300 is configured to receive a multicast data stream and/or a unicast data stream that satisfies a user playing channel.
  • the unicast data stream sent by the channel switching server 20 is received first, and after receiving the unicast data stream for a period of time, the multicast data stream sent by the multicast server 10 is received.
  • the unicast data stream is still received, mainly to synchronize the data streams of the same channel sent by the switching channel server 20 and the multicast server 10, and after a period of time, that is, after the synchronization is reached, the channel switching server 20
  • the terminal device 30 receives the multicast data stream sent by the multicast server 10, but the channel switching server 20 still sends some data about other services or services of the channel, for example, when When there is an erroneous data stream in the multicast data stream of the channel transmitted by the multicast server 10, the channel switching server 20 can be notified to resend part of the data stream related to the channel.
  • the data flow monitoring module 310 is configured to monitor the data received in the data receiving module 300, that is, whether the data stream received by the monitoring data receiving module 300 is a unicast data stream or a multicast data stream, and data of the received data stream. Rate and so on. In the present embodiment, the data stream monitoring module 310 detects that the unicast data stream is received in the data receiving module 300.
  • the current channel of the user may be one or multiple channels. There are several cases of switching channel information: If the current channel is one, the user can stop the current channel, or To retain the current channel, add one or more channels to be played, and then add one or more new channels. If the current channel is multiple, the user can stop the current multiple channels. One or more, also retain one or more of the current multiple channels, or you can add one or more channels to play.
  • the behavior detecting module 330 is configured to detect whether user-generated switching channel information is received.
  • the switching processing module 320 is configured to: when the behavior detecting module 330 detects the switching channel information generated by the user, acquire a plurality of channel information from the data receiving module 300 according to the switching channel information, and send a switching request message to the channel switching server 20, so as to enable the The channel switching server 20 stops or continues to transmit the data stream of the current channel, and causes the channel switching server 20 to transmit the data stream of the new channel.
  • the handover processing module 320 sends a handover request to the channel switching server, and the handover request message includes at least channel information of the new channel and processing information of the channel.
  • the handover request message when the current channel is one, if the current channel is stopped, the handover request message includes channel information of the new channel and processing information of the channel, and the processing information of the channel includes stopping the transmission of the data stream of the current channel. If the current channel is stopped and one or more channels to be played are added, the switching request message includes channel information of the new channel and processing information of the channel, and the processing information of the channel includes stopping the transmission of the data stream of the current channel.
  • the switch request message includes the channel information of the new channel and The processing information of the channel, the processing information of the channel includes information for retaining the data stream of the current channel, in this case, the channel switching server 20 defaults to add one or more to be played when receiving the channel information of the new channel. Channel.
  • the handover request message includes the frequency of the current channel.
  • Channel information, channel information of the new channel, and processing information of the channel the processing information of the channel includes information of the data stream of the stop channel, or information of the data stream of the reserved channel, and the switching request message may also include channel information of the current channel.
  • the channel information of the new channel and the processing information of the channel, the processing information of the channel includes the information of the data stream of the stop channel and the information of the data stream for starting the new channel, or the information of the data stream of the reserved channel and the data for starting the new channel.
  • the switching request message includes channel information of the current channel
  • the channel information of the new channel and the processing information of the channel includes information of the data stream of the stop channel, or information of the data stream of the reserved channel
  • the switching request message may also include channel information of the current channel, new Channel information of the channel and processing information of the channel, the processing information of the channel includes stopping the channel According to the data flow information and start a new information channel data stream information, or leave the channel data stream and start a new channel of information flow.
  • the channel information includes an identification of a channel (SSRC).
  • the switching processing module 320 is further configured to send a handover request message to the channel switching server 20 according to the data received in the data receiving module 300 detected by the data flow monitoring module 310.
  • the handover request message includes channel information of the new channel and the processing information of the channel, the channel information includes an identifier of the channel, and the processing information of the channel includes information for stopping the transmission of the data stream of the current channel, the channel information including the channel Logo.
  • the data receiving module 300 is further configured to receive a data stream of a new channel sent by the channel switching server.
  • the switching request message includes the channel information of the new channel and the processing information of the channel, where the channel information includes the identifier of the channel, and the processing information of the channel includes the information of the data stream that retains the current channel
  • the data receiving module 300 Also used to continue receiving the channel switching server 20 to send The data stream of the current channel is received and the data stream of the new channel transmitted by the channel switching server 20 is received.
  • the processing information of the channel includes information of stopping a data stream of the channel, or retaining information of a data stream of the channel, or
  • the handover request message includes channel information of a current channel, channel information of a new channel, and processing information of a channel
  • the processing information of the channel includes information of a data stream of the stop channel and information of a data stream for starting a new channel, or a reserved channel.
  • the data receiving module 300 is further configured to continue to receive the data stream of the current channel that needs to be reserved sent by the channel switching server 20, and receive the channel switching, when the information of the data stream is started and the information of the data stream of the new channel is started.
  • the data stream of the new channel sent by the server 20 is further configured to continue to receive the data stream of the current channel that needs to be reserved sent by the channel switching server 20, and receive the channel switching, when the information of the data stream is started and the information of the data stream of the new channel is started.
  • the data stream of the new channel sent by the server 20 is further configured to continue to receive
  • the handover request message may be represented by a different message format, which is described below:
  • the handover request message can be represented by the following message format: I header:
  • media source ID is the channel information of the new channel. If the media source ID field in the current packet has a data value, it indicates that the current channel needs to be stopped. And start a new channel, which is equivalent to carrying the channel information of the new channel, the processing information of the current channel and the new channel.
  • the handover request message can be represented by the following message format: +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+-+-+-+-+ I header
  • the media source ID (current) indicates the channel information of the stop channel in the current channel
  • the media source ID (new) indicates the channel information of the new channel.
  • the current channel when there is a data value in the field of the media source ID (new), indicates that the new channel is activated, that is, the message carries the channel information of the new channel, the processing information of the current channel and the new channel.
  • the RTCP packet is described as follows:
  • the rtcp header is the rfc4585 message format, and the extensions field is an extension field.
  • the rtcp header can be expressed in the following format:
  • SSRC of packet sender indicates the sender of the current message, that is, the identifier of the terminal device 30, compared with the first or second type of message.
  • the field corresponds to the use ID field in the first or second type of message;
  • the SSRC of media source indicates the channel information of the new channel, and the SSRC of media source field corresponds to the media source ID field in the first type of message.
  • SSRC is ⁇
  • Synchronization source P sync source
  • the description is still made in the RTCP packet, and the RTCP packet has several cases, which are respectively described below:
  • SSRC of media source indicates the channel information of the stop channel in the current channel
  • SSRC of Media source indicates the channel information of the new channel.
  • SSRC of Media source indicates the channel information of the new channel.
  • SSRC of media source indicates the channel information of the reserved channel in the current channel
  • SSRC of media source indicates the channel information of the new channel.
  • the current channel when there is a data value in the SSRC of media source (new) field, indicates that the new channel is activated, that is, the message carries the channel information of the new channel and the processing information of the current channel and the new channel.
  • the SSRC of media source can represent the channel information of the channel
  • the media mark represents the processing information of the channel
  • the media mark can be marked with 0 or 1, if the media mark field is 010101...0101, wherein, starting from left to right,
  • the first digit, that is, 0, corresponds to the first SSRC of media source field in the third RTCP packet, and assuming 0 indicates that the channel corresponding to the channel information in the SSRC of media source field is stopped, and may also be represented by 0.
  • the channel corresponding to the channel information in the SSRC of media source field is reserved or enabled
  • the second digit corresponds to the second SSRC of media source field in the third RTCP packet, and so on.
  • the message carrying the channel information of the new channel, the current channel, and the processing of the new channel are carried out by using 1 as the channel corresponding to the channel information in the SSRC of media source field. information.
  • the fourth type of RTCP packet is the fourth type of RTCP packet.
  • length of current media indicates that the processing information of the current channel needs to be stopped, or the processing information of the current channel is retained, and length of new mdeia indicates the processing information of the new channel, that is,
  • the length of new media field indicates that the channel corresponding to the channel information in the N SSRC of media source fields in the fourth RTCP packet is stopped or reserved, N is a value of length of current media, and the length of new media field indicates that the fourth is enabled.
  • M is the value of length of new media
  • the N SSRC of media source fields are ranked in length of current media
  • the M SSRC of media source fields include the N+1 SSRC of media source field of the N+1th media source field.
  • the length of new media field indicates that the fourth RTCP is enabled.
  • the length of current media field indicates that the channel corresponding to the channel information in the N SSRC of media source fields in the fourth RTCP message is stopped or reserved.
  • the N SSRC of media source fields include the N+M SSRC of media source fields of the M+1th SSRC of media source field, which is equivalent to the channel information of the new channel carrying the message and Channel processing information.
  • the length of current media may be defaulted, then the length of new media field indicates that the channel corresponding to the channel information in the M SSRC of media source fields in the fourth RTCP message is enabled, and the remaining SSRC of media The channel corresponding to the channel information in the source field is reserved or stopped.
  • length of new media may be defaulted, then the length of current media field indicates that the channel corresponding to the channel information in the N SSRC of media source fields in the fourth RTCP message is stopped or reserved, and the remaining The channel information corresponding to the channel information in the SSRC of media source field is equivalent to the processing information of the new channel, that is, the message carries the channel information of the new channel and the processing information of the current channel and the new channel.
  • the length of current media field and the length of new media field have no precedence order, or, when the length of current media field and the length of new media field are used as one field, this field and SSRC of media
  • the source field has no precedence order.
  • the channel switching data storage module 200 is configured to store the multicast data stream sent by the multicast server 10 and the key information of the media of the data stream.
  • the media key information obtaining module 210 is configured to acquire description information of key information of the media of the multicast data stream stored by the channel switching data storage module 200.
  • the description information of the key information of the media may include, but is not limited to, the following: the location of the random access point of the channel of the media, the location of the description information required for the normal play of the channel, where the channel of the media is random
  • the location of the access point can be the starting packet of the data stream to be sent when the random access point is located.
  • the serial number, the description information required for the normal play of the channel may be the identifier of all the data contained in the channel and the type of the data stream, and may also analyze various parameter information required by the data stream, and the various data in the channel are required for synchronization. Information.
  • the message processing module 230 is configured to receive a handover request message sent by the terminal device 30, and parse the handover request message to obtain at least channel information of the new channel and processing information of the channel. That is, when the message processing module 230 parses the switching request message to include the channel information of the new channel and the processing information of the channel, the processing information of the channel includes the information of stopping the transmission of the data stream of the current channel, or retaining the information of the data stream of the current channel.
  • the notification sending module 220 stops transmitting the unicast data stream of one or more current channels, or continues to transmit the unicast data stream of one or more current channels, and starts transmitting the unicast data stream of one or more new channels.
  • the sending module 220 is further configured to: when the message processing module 230 parses the switching request message, the channel information including the new channel and the processing information of the current channel, and the processing information of the channel.
  • the message processing module 230 parses the switching request message, the channel information including the new channel and the processing information of the current channel, and the processing information of the channel.
  • the data stream of the current channel is stopped, or the information of the data stream of the current channel is retained, the data stream of the current channel is stopped according to the information of stopping the data stream of the current channel, or the current channel is reserved according to the
  • the information of the data stream continues to transmit the data stream of the current channel, and the description information of the media key information of the new channel in the media key information obtaining module 210 is obtained according to the channel information of the new channel, and according to the description
  • the information about the key information of the new channel and the data stream information of the random access point in the channel switching data storage module 200 are sent to the terminal device 30 through the unicast data stream.
  • the multicast data stream stored in the channel switching data storage module 200 is a transport stream (TS)
  • the data stream information includes audio, video, data, etc.
  • the key information of the new channel includes the PSI of the channel. Random access point location for information and channels, IDR frame position or I frame position, and channel decoding parameters Number set SPS, PPS, etc.
  • the sending module 220 is further configured to: when the message processing module 230 obtains channel information of the current channel, channel information of the new channel, and processing information of the channel, the processing information of the channel includes stopping the data flow of the channel. Information, or information about the channel's data stream. In this embodiment, if it is necessary to stop one or more of the current channels, the channel information of the current channel includes the channel information of the current channel that needs to be stopped, or the channel information of the current channel that needs to be reserved.
  • the key information of the new channel and the data stream information of the random access point are transmitted to the terminal device 30 through the unicast data stream.
  • the sending module 220 is further configured to: when the message processing module 230 obtains channel information of the current channel, channel information of the new channel, and processing information of the channel, the processing information of the channel includes information of stopping the data flow of the channel and starting the data flow of the new channel.
  • the information, or the information of the data stream of the reserved channel and the information of the data stream of the new channel stop transmitting the data stream of the stop channel according to the information of the data stream of the stop channel and the channel information of the current channel.
  • the information of the data stream of the reserved channel and the channel information of the current channel continue to transmit the data stream of the reserved channel, and acquire the media key information acquiring module 210 according to the channel information of the new channel and the information of the data stream for starting the new channel.
  • FIG. 3 is a schematic structural diagram of a terminal device and a channel switching server applied to channel switching according to Embodiment 2 of the present invention.
  • the terminal device 30 receives the unicast data stream sent by the channel switching server 20 and the multicast data stream sent by the multicast server 10, that is, in the embodiment, the data stream monitoring module 310 detects the data receiving module 300.
  • the unicast data stream and the group multicast data stream are received mainly for synchronizing the data streams of the same channel transmitted by the switching channel server 20 and the multicast server 10.
  • the information about the switching channel is generated, and the terminal device 30 sends the information of the switching channel to the channel switching server 20 on the one hand, which is the same as the method of FIG. 2, and will not be described in detail here.
  • the information of the multicast data stream that needs to be switched to the current channel is sent to the multicast server 10 to cause the multicast server 10 to stop transmitting the current channel multicast data stream.
  • FIG. 4 is a schematic structural diagram of a terminal device and a channel switching server applied to channel switching according to Embodiment 3 of the present invention.
  • the difference between FIG. 4 and FIG. 3 is that after the data flow of the same channel sent by the switching channel server 20 and the multicast server 10 is synchronized, the terminal device 30 receives the multicast data stream sent by the multicast server 10, The unicast data stream sent by the channel switching server 20 is not received, but the channel switching server 20 still sends some data about other services or services of the channel, for example, when there is an error in the multicast data stream of the channel sent by the multicast server 10.
  • the channel switching server 20 can be notified to resend part of the data stream for the channel.
  • the data stream monitoring module 310 detects that the multicast data stream is received in the data receiving module 300.
  • the terminal device 30 also sends the information of the switching channel to the channel switching server 20 on the one hand, which is the same as the method of FIG. 2, and will not be described in detail here.
  • the current channel that needs to be switched is needed. And/or continue to send the data stream of the current channel that does not need to be switched to send a data stream related to the error or the lost data; on the other hand, the transmission disconnects the information of the multicast stream of the current channel to the multicast service.
  • the device 10 switches the current channel multicast data stream so that the multicast server 10 stops transmitting.
  • the terminal device When performing channel switching, the terminal device provided by the embodiment of the present invention sends a handover request message to the channel switching server, that is, sends a handover request message to the channel switching server, where the handover request message includes at least the channel information of the new channel and the current channel. Processing the information to notify the channel switching server to stop or continue to send the data stream of the current channel, and cause the channel switching server to send the data stream of the new channel, that is, in a handover request message, the channel switching server needs to stop sending the data of the current channel.
  • Streaming, and transmitting the data stream of the new channel, or continuing to send the data stream of the current channel and transmitting the data stream of the new channel can shorten the information interaction time and information processing time in the channel switching process, and improve the channel switching speed, and Compared with the prior art, the request message leaving the unicast is sent separately from the request for the new channel request message, because the bandwidth of the link is increased due to the prior art, and the instance of the present invention is sent out at one time to reduce the interaction. The number of times, thereby reducing the interaction To the information, make the bandwidth without increasing the uplink, and also reduces the header overhead in the transmission information of the channel switching.
  • FIG. 5 is a flowchart of a method for switching a channel according to Embodiment 1 of the present invention.
  • the method of fast channel is applied to the case where only a unicast data stream is received.
  • Step S500 detecting whether there is switching channel information of the user.
  • the current channel of the user may be one or multiple channels. There are several situations in which the channel information is switched: If the current channel is one, the user can stop the current channel, or the current channel can be reserved, and one or more channels to be played are added, and one more is added. Or multiple new channels; if there are multiple current channels, the user can stop one or more of the current multiple channels, and also retain one or more of the current multiple channels, or add one or more The channel to play.
  • Step S502 when detecting the switching channel information of the user, sending according to the switching channel information Switching the request message to the channel switching server, the switching request message includes at least channel information of the new channel and processing information of the channel.
  • a handover request message is sent to the channel switching server. If the current channel is stopped, the handover request message includes channel information of the new channel and processing information of the channel, and the processing information of the channel includes information for stopping the transmission of the data stream of the current channel; if the current channel is stopped, one or more new channels are added.
  • the switching request message includes channel information of the new channel and processing information of the channel, and the processing information of the channel includes information for stopping the transmission of the data stream of the current channel, and adding one or more channels to be played, Also, as a new channel; if one or more channels to be played are added when the current channel is reserved, the switching request message includes channel information of the new channel and processing information of the channel, and the processing information of the channel includes stopping or retaining the current The information of the data stream of the channel.
  • the channel switching server defaults to add one or more channels to be played when receiving the channel information of the new channel.
  • the handover request message includes channel information of the current channel
  • the channel information of the new channel and the processing information of the channel, the processing information of the channel includes the information of the data stream of the stop channel, or the information of the data stream of the reserved channel
  • the switching request message may also include the channel information of the current channel, the new channel.
  • the channel information and the processing information of the channel, the processing information of the channel includes information of the data stream of the stop channel and information of the data stream for starting the new channel, or information of the data stream of the reserved channel and information of the data stream for starting the new channel.
  • the handover request message includes channel information of the current channel, and a new channel.
  • Channel information and processing information of the channel the processing information of the channel includes information of stopping the data flow of the channel, or Data stream of information channels
  • the handover request message may also include channel information of a current channel, a new channel frequency channels Processing information of the channel, the processing information of the channel includes information of the data stream of the stop channel and information of the data stream for starting the new channel, or information of the data stream of the reserved channel and information of the data stream for starting the new channel.
  • Step S504 parsing the handover request message, and obtaining at least channel information of the new channel and processing information of the channel;
  • Step S506 Stop or continue to send the data stream of the channel to the terminal device according to the processing information of the channel, and send the data stream of the new channel to the terminal device according to the channel information of the new channel.
  • step S506 includes the following situations:
  • the processing information of the channel includes the information of stopping the data stream of the current channel, or the information of the data stream of the current channel is retained, and the data of the current channel is stopped according to the stopping.
  • the streamed information stops transmitting the data stream of the current channel or continues to transmit the data stream of the current channel according to the information of the data stream retaining the current channel; and acquiring the media key information of the new channel according to the channel information of the new channel.
  • the processing information of the channel includes the information of the data stream of the stop channel, or the information of the data stream of the reserved channel, according to the stop channel
  • the information of the data stream and the channel information of the current channel stop transmitting the data stream of the stop channel, or continue to transmit the data stream of the reserved channel according to the information of the data stream of the reserved channel and the channel information of the current channel; according to the new channel
  • the channel information acquires description information of the media key information of the new channel; acquires key information of the new channel according to the description information, and randomly
  • the data stream information of the access point is sent to the terminal device through the unicast data stream.
  • the processing information of the channel includes information of stopping the data stream of the channel and information of starting the data stream of the new channel, or retaining the data stream of the channel. And transmitting information of the data stream of the new channel and the channel information of the current channel to stop transmitting the data stream of the stop channel according to the information of the data stream of the stop channel, or according to the information of the data stream of the reserved channel;
  • the channel information of the current channel continues to transmit the data stream of the reserved channel;
  • the description information of the media key information of the new channel is obtained according to the channel information of the new channel and the information of the data stream that starts the new channel; and the description information is obtained according to the description information.
  • the key information of the new channel and the data stream information of the random access point are sent to the terminal device through the unicast data stream.
  • the key information of the new channel and the data flow information of the random access are obtained according to the description information, and are sent to the terminal device through a unicast data stream.
  • FIG. 6 is a flowchart of a method for switching a channel according to Embodiment 2 of the present invention.
  • the difference between Fig. 5 and Fig. 6 is applied to the case where the unicast data stream and the multicast data stream are received.
  • steps S600, S604, and S606 in FIG. 6 are the same as steps S500, S504, and S506 in FIG. 5, and the description thereof will not be repeated here.
  • FIG. 6 is applied to the case where the unicast data stream and the multicast data stream are received, the difference between step S602 in FIG. 6 and step S502 in FIG. 5 is that, in step S602, the disconnected multicast data stream needs to be sent again. Request to the multicast server to cause the multicast server to disconnect the multicast data stream.
  • the information of the disconnected multicast data stream is information for disconnecting the multicast data stream that needs to switch the current channel.
  • FIG. 7 is a flowchart of a method for switching a channel according to Embodiment 3 of the present invention.
  • FIG. 7 is applied to receive a multicast data stream of a relevant channel, and receives data of other services or services related to the channel, for example, in a multicast data stream.
  • steps S700, S702, S704, and S706 in FIG. 7 are the same as steps S600, S602, S604, and S606 in FIG. 6, and the description thereof will not be repeated here.
  • Step S706 in FIG. 7 is different from step S606 in FIG. 6 in that, in step S706 in FIG. 7, the data stream of the current channel that needs to be switched is stopped, and the data of the current channel that does not need to be switched is continuously transmitted.
  • the stream is a stream of data about errors or missing data.
  • the method for switching a channel provided by the embodiment of the present invention sends a handover request message to the channel switching server, that is, sends a handover request message to the channel switching server, where the handover request message includes at least the channel information of the new channel and the processing information of the current channel.
  • Notifying the channel switching server to stop or continue to send the data stream of the current channel, and causing the channel switching server to send the data stream of the new channel, that is, in a handover request message, informing the channel switching server that the data stream of the current channel needs to be stopped, and Sending the data stream of the new channel, or continuing to send the data stream of the current channel and transmitting the data stream of the new channel, can shorten the information interaction time and information processing time in the channel switching process, improve the channel switching speed, and Compared with the request for sending a new channel request message separately from the unicast request message, the technology increases the bandwidth of the link due to the prior art, and the inventive example is sent out at one time to reduce the number of interactions. Thereby reducing the need for interaction The information does not increase the bandwidth of the uplink, and also reduces the overhead of header information when transmitting information in channel switching.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
  • ROM read-only memory
  • RAM random access memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A method for switching channel is disclosed in the embodiments of the present invention, which includes the steps of: sending a switching request message to a channel switching server to make the channel switching server to stop or continue sending data stream of a current channel according to the switching request message, and make the channel switching server to send data stream of a new channel, wherein the switching request message at least includes channel information on the new channel and channel process information. The terminal equipment and the channel switching server are disclosed in the embodiments of the present invention, they can shorten information interactivity time and information processing time during the process of channel switching, so increase the speed of channel switching.

Description

一种频道的切换方法、 终端设备及频道切换服务器 技术领域  Channel switching method, terminal device and channel switching server
本发明实施例涉及通信技术领域,特别是涉及一种频道的切换方法、终端 设备及频道切换服务器。 背景技术  The embodiments of the present invention relate to the field of communications technologies, and in particular, to a channel switching method, a terminal device, and a channel switching server. Background technique
QoE是从普通用户体验的角度出发来评价一种服务的质量,在 IPTV服务 当中, 频道切换的速度是影响 QoE的一个重要指标, 频道切换的时间是从用 户发出频道切换指令到用户观看到新的频道的时间。在用户向客户端设备发出 频道切换指令后, STB 向提供频道切换服务的服务器发送一个频道切换的请 求, 该服务器接收到用户的请求后, 对用户的请求做出响应, 通过单播的形式 向用户提供新频道的服务,在用户接入单播一段时间后, 再由多播服务器为用 户提供该频道的服务。从客户端设备发出频道切换请求命令到客户端设备接收 到新频道的信息这段时间内,客户端设备和提供频道切换服务的服务器需要进 行一些信息的交互,这些信息的交互都需要一定的时间才能完成,而且由于 IP 网络本身有丟包,在客户端设备和提供频道切换服务的服务器进行交互和数据 传输的过程中会有数据损伤。  QoE evaluates the quality of a service from the perspective of common user experience. In IPTV service, the speed of channel switching is an important indicator that affects QoE. The channel switching time is from the user to issue a channel switching command to the user to watch the new. The time of the channel. After the user sends a channel switching instruction to the client device, the STB sends a channel switching request to the server providing the channel switching service, and after receiving the user's request, the server responds to the user's request and proceeds to the unicast form. The user provides the service of the new channel. After the user accesses the unicast for a period of time, the multicast server provides the user with the service of the channel. During the period from the time when the client device issues a channel switching request command to the time when the client device receives the information of the new channel, the client device and the server providing the channel switching service need to perform some information interaction, and the interaction of the information takes a certain time. In order to complete, and because the IP network itself has packet loss, there will be data damage during the interaction and data transmission between the client device and the server providing the channel switching service.
为了缩短频道切换的时间并且保证频道切换的质量,现有技术首先客户端 向服务器发送一个快速频道切换请求,服务器接收到请求后, 以单播的形式给 服务器发送频道的描述信息, 接着 (或者 )发送数据流的负载描述信息和负载 信息。一段时间之后,客户端向多播服务器发送 IGMP请求,请求加入多播组, 多播组向客户端发送频道的多播流,客户端收到多播流后,将接收的多播流的 第一个 RTP 包的序列号信息发送给频道切换单播服务器, 该服务器根据收到 的多播流的第一个 RTP包的序列号信息判断是否要停止单播流的发送。 In order to shorten the time of channel switching and ensure the quality of channel switching, in the prior art, the client first sends a fast channel switching request to the server, and after receiving the request, the server sends the channel description information to the server in the form of unicast, and then (or ) Send load description information and load information of the data stream. After a period of time, the client sends an IGMP request to the multicast server to request to join the multicast group. The multicast group sends the multicast stream of the channel to the client. After the client receives the multicast stream, the client receives the multicast stream. The serial number information of the first RTP packet is sent to the channel switching unicast server, and the server determines whether to stop the transmission of the unicast stream according to the serial number information of the first RTP packet of the received multicast stream.
发明人在实现本发明的过程中,发现现有技术至少存在以下缺点: 如果用 户再次发出频道切换指令,客户端会分开发送离开单播的请求报文和请求新的 频道请求报文, 即客户端需与服务器进行两次交互,从而会增加上行链路的带 宽, 并且客户端和服务器都要连续处理两个报文, 如果客户端需要发出多次频 道切换请求时, 服务器需要与客户端进行多次的交互, 就需要更多的带宽, 而 且两个报文之间的时间间隔影响快速频道切换的速度。  In the process of implementing the present invention, the inventor has found that the prior art has at least the following disadvantages: If the user issues a channel switching instruction again, the client separately sends the request message leaving the unicast and requests the new channel request message, that is, the client. The terminal needs to interact with the server twice, which increases the bandwidth of the uplink. The client and the server must process two packets continuously. If the client needs to issue multiple channel switching requests, the server needs to perform with the client. Multiple interactions require more bandwidth, and the time interval between two messages affects the speed of fast channel switching.
发明内容 Summary of the invention
本发明实施例提供一种频道的切换方法、终端设备及频道切换服务器, 以 提高频道切换的速度。  The embodiment of the invention provides a channel switching method, a terminal device and a channel switching server to improve the speed of channel switching.
根据本发明的一方面, 提供一种频道的切换方法, 包括:  According to an aspect of the present invention, a method for switching a channel is provided, including:
发送切换请求消息至频道切换服务器,以使所述频道切换服务器根据所述 切换请求消息停止或继续发送当前频道的数据流,并使所述频道切换服务器发 送新频道的数据流, 其中, 所述切换请求消息至少包括新频道的频道信息及频 道的处理信息。  Transmitting a handover request message to the channel switching server, so that the channel switching server stops or continues to send the data stream of the current channel according to the handover request message, and causes the channel switching server to send a data stream of the new channel, where The handover request message includes at least channel information of the new channel and processing information of the channel.
根据本发明的另一方面, 还提供一种频道的切换方法, 包括:  According to another aspect of the present invention, a method for switching a channel is also provided, including:
接收终端设备发送的一条切换请求消息;  Receiving a handover request message sent by the terminal device;
解析所述切换请求消息, 至少获得新频道的频道信息及频道的处理信息; 根据所述频道的处理信息停止或继续发送频道的数据流至所述终端设备, 根据所述新频道的频道信息发送新频道的数据流至所述终端设备。  Parsing the handover request message, obtaining at least channel information of the new channel and processing information of the channel; stopping or continuing to send the data stream of the channel to the terminal device according to the processing information of the channel, and transmitting according to the channel information of the new channel The data of the new channel flows to the terminal device.
根据本发明的另一方面, 还提供一种终端设备, 包括: 行为检测模块, 用于检测是否接收到用户的切换频道信息; According to another aspect of the present invention, a terminal device is further provided, including: a behavior detecting module, configured to detect whether the switching channel information of the user is received;
切换处理模块,用于当所述行为检测模块检测到所述用户的切换频道信息 时,发送切换请求消息至频道切换服务器, 以使所述频道切换服务器根据所述 切换请求消息停止或继续发送当前频道的数据流,并使所述频道切换服务器发 送新频道的数据流, 其中, 所述切换请求消息至少包括新频道的频道信息及频 道的处理信息。。  a switching processing module, configured to: when the behavior detecting module detects the switching channel information of the user, send a switching request message to the channel switching server, so that the channel switching server stops or continues to send the current according to the switching request message. a data stream of the channel, and causing the channel switching server to send a data stream of the new channel, wherein the handover request message includes at least channel information of the new channel and processing information of the channel. .
根据本发明的另一方面, 还提供一种频道切换服务器, 包括:  According to another aspect of the present invention, a channel switching server is further provided, including:
消息处理模块, 用于接收终端设备发送的一条切换请求消息, 并解析所述 切换请求消息, 至少获得新频道的频道信息及频道的处理信息;  a message processing module, configured to receive a handover request message sent by the terminal device, and parse the handover request message, to obtain at least channel information of the new channel and processing information of the channel;
发送模块,用于根据所述频道的处理信息停止或继续发送频道的数据流至 所述终端设备,根据所述新频道的频道信息发送新频道的数据流至所述终端设 备。  And a sending module, configured to stop or continue to send the data stream of the channel to the terminal device according to the processing information of the channel, and send the data stream of the new channel to the terminal device according to the channel information of the new channel.
釆用上述提供的频道的切换方法、终端设备及频道切换服务器, 将包括新 频道的频道信息及当前频道的处理信息的切换请求消息发送至频道切换服务 器以通知频道切换服务器停止或继续发送当前频道的数据流至所述终端设备, 并发送新频道数据流至所述终端设备,可以缩短频道切换过程中的信息交互时 间和信息处理时间, 提高了频道切换的速度。  Transmitting the switching request message including the channel information of the new channel and the processing information of the current channel to the channel switching server to notify the channel switching server to stop or continue to transmit the current channel by using the switching method of the channel provided above, the terminal device, and the channel switching server. The data stream is sent to the terminal device, and the new channel data stream is sent to the terminal device, which can shorten the information interaction time and the information processing time in the channel switching process, and improve the channel switching speed.
附图说明 DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描 述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲, 在不 付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。 图 1为本发明实施例的应用于频道切换的终端设备的应用环境图; 图 2 为本发明实施例一的应用于频道切换的终端设备和频道切换服务器 的结构示意图; In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor. 1 is a schematic diagram of an application environment of a terminal device applied to channel switching according to an embodiment of the present invention; FIG. 2 is a schematic structural diagram of a terminal device and a channel switching server applied to channel switching according to Embodiment 1 of the present invention;
图 3 为本发明实施例二的应用于频道切换的终端设备和频道切换服务器 的结构示意图;  3 is a schematic structural diagram of a terminal device and a channel switching server applied to channel switching according to Embodiment 2 of the present invention;
图 4 为本发明实施例三的应用于频道切换的终端设备和频道切换服务器 的结构示意图;  4 is a schematic structural diagram of a terminal device and a channel switching server applied to channel switching according to Embodiment 3 of the present invention;
图 5为本发明实施例一的频道的切换方法的流程图;  FIG. 5 is a flowchart of a method for switching a channel according to Embodiment 1 of the present invention; FIG.
图 6为本发明实施例二的频道的切换方法的流程图;  6 is a flowchart of a method for switching a channel according to Embodiment 2 of the present invention;
图 7为本发明实施例三的频道的切换方法的流程图。  FIG. 7 is a flowchart of a method for switching a channel according to Embodiment 3 of the present invention.
具体实施方式 detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。基于本发明中的实施例, 本领域普通技术人员在没有作出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。  BRIEF DESCRIPTION OF THE DRAWINGS The technical solutions in the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative work are within the scope of the present invention.
图 1为本发明实施例的应用于频道切换的终端设备的应用环境图。在本实 施例中, 组播服务器 10分别与频道切换服务器 20及终端设备 30通信相连, 频道切换服务器 20用于根据终端设备 30的频道切换请求,将切换后的频道的 单播数据流发送至终端设备 30。 组播服务器 10用于当终端设备 30接收频道 切换服务器 20发送的单播数据流一段时间后,接收终端设备 30发送的加入多 播组的请求, 并将多播数据流发送至终端设备 30 , 并将多播数据流发送至频 道切换服务器 20进行存储。 在本实施例中, 终端设备 30可以为机顶盒。 图 2 为本发明实施例一的应用于频道切换的终端设备和频道切换服务器 的结构示意图。在本实施例中, 终端设备 30接收频道服务器 20发送的单播数 据流。 频道切换服务器 20 包括频道切换数据存储模块 200、 媒体关键信息获 取模块 210、 发送模块 220、 消息处理模块 230。 终端设备 30包括数据接收模 块 300、 数据流监测模块 310、 切换处理模块 320、 行为检测模块 330。 FIG. 1 is an application environment diagram of a terminal device applied to channel switching according to an embodiment of the present invention. In this embodiment, the multicast server 10 is connected to the channel switching server 20 and the terminal device 30, and the channel switching server 20 is configured to send the unicast data stream of the switched channel to the channel switching request of the terminal device 30. Terminal device 30. The multicast server 10 is configured to receive the request for joining the multicast group sent by the terminal device 30 after receiving the unicast data stream sent by the channel switching server 20 for a period of time, and send the multicast data stream to the terminal device 30, The multicast data stream is sent to the channel switching server 20 for storage. In this embodiment, the terminal device 30 can be a set top box. FIG. 2 is a schematic structural diagram of a terminal device and a channel switching server applied to channel switching according to Embodiment 1 of the present invention. In the present embodiment, the terminal device 30 receives the unicast data stream transmitted by the channel server 20. The channel switching server 20 includes a channel switching data storage module 200, a media key information acquiring module 210, a sending module 220, and a message processing module 230. The terminal device 30 includes a data receiving module 300, a data stream monitoring module 310, a switching processing module 320, and a behavior detecting module 330.
在本实施例中,数据接收模块 300用于接收满足用户播放频道的多播数据 流和 /或单播数据流。 在本实施例中, 当终端设备 30切换频道后, 先是接收频 道切换服务器 20发送的单播数据流, 当接收单播数据流一段时间后, 再接收 组播服务器 10发送的多播数据流, 此时, 依然会接收单播数据流, 主要是为 了使切换频道服务器 20和组播服务器 10发送的同一频道的数据流达到同步, 再过一段时间后, 即达到同步后, 由于频道切换服务器 20中止发送该频道的 单播数据流后, 此时终端设备 30接收组播服务器 10发送的多播数据流,但频 道切换服务器 20依然会发送一些有关频道的其他服务或业务的数据, 比如, 当组播服务器 10发送的频道的多播数据流中有错误的数据流时, 可通知频道 切换服务器 20重新发送有关该频道的部分数据流。  In this embodiment, the data receiving module 300 is configured to receive a multicast data stream and/or a unicast data stream that satisfies a user playing channel. In this embodiment, after the terminal device 30 switches channels, the unicast data stream sent by the channel switching server 20 is received first, and after receiving the unicast data stream for a period of time, the multicast data stream sent by the multicast server 10 is received. At this time, the unicast data stream is still received, mainly to synchronize the data streams of the same channel sent by the switching channel server 20 and the multicast server 10, and after a period of time, that is, after the synchronization is reached, the channel switching server 20 After the unicast data stream of the channel is suspended, the terminal device 30 receives the multicast data stream sent by the multicast server 10, but the channel switching server 20 still sends some data about other services or services of the channel, for example, when When there is an erroneous data stream in the multicast data stream of the channel transmitted by the multicast server 10, the channel switching server 20 can be notified to resend part of the data stream related to the channel.
数据流监测模块 310用于监测数据接收模块 300中接收到的数据情况,即 监测数据接收模块 300中接收到的数据流是单播数据流还是多播数据流,及接 收到的数据流的数据码率等等。在本实施例中,数据流监测模块 310检测数据 接收模块 300中接收到单播数据流。  The data flow monitoring module 310 is configured to monitor the data received in the data receiving module 300, that is, whether the data stream received by the monitoring data receiving module 300 is a unicast data stream or a multicast data stream, and data of the received data stream. Rate and so on. In the present embodiment, the data stream monitoring module 310 detects that the unicast data stream is received in the data receiving module 300.
在本实施例中, 当用户需要切换当前的频道时, 会产生切换频道的消息。 在本实施例中, 用户当前的频道可以为一个也可以为多个频道。切换频道信息 存在以下几种情况: 若当前的频道为一个时, 用户可以停止当前的频道, 也可 以保留当前的频道,再新增一个或多个需播放的频道,在此基础上再增加一个 或多个新的频道; 若当前的频道为多个时, 用户可以停止当前多个频道中的一 个或多个, 也保留当前多个频道中的一个或多个, 也可以新增一个或多个需播 放的频道。 In this embodiment, when the user needs to switch the current channel, a message for switching channels is generated. In this embodiment, the current channel of the user may be one or multiple channels. There are several cases of switching channel information: If the current channel is one, the user can stop the current channel, or To retain the current channel, add one or more channels to be played, and then add one or more new channels. If the current channel is multiple, the user can stop the current multiple channels. One or more, also retain one or more of the current multiple channels, or you can add one or more channels to play.
在本实施例中,行为检测模块 330用于检测是否接收到用户产生的切换频 道信息。切换处理模块 320用于当行为检测模块 330检测到用户产生的切换频 道信息时,根据切换频道信息从数据接收模块 300中获取多个频道信息,发送 切换请求消息至频道切换服务器 20 , 以使所述频道切换服务器 20停止或继续 发送当前频道的数据流, 并使所述频道切换服务器 20发送新频道的数据流。 在本实施例中,切换处理模块 320发送一条切换请求至频道切换服务器, 该切 换请求消息至少包括新频道的频道信息及频道的处理信息。  In this embodiment, the behavior detecting module 330 is configured to detect whether user-generated switching channel information is received. The switching processing module 320 is configured to: when the behavior detecting module 330 detects the switching channel information generated by the user, acquire a plurality of channel information from the data receiving module 300 according to the switching channel information, and send a switching request message to the channel switching server 20, so as to enable the The channel switching server 20 stops or continues to transmit the data stream of the current channel, and causes the channel switching server 20 to transmit the data stream of the new channel. In this embodiment, the handover processing module 320 sends a handover request to the channel switching server, and the handover request message includes at least channel information of the new channel and processing information of the channel.
在本实施例中, 针对当前的频道为一个时, 若停止当前的频道, 该切换请 求消息包括新频道的频道信息及频道的处理信息,该频道的处理信息包括停止 发送当前频道的数据流的信息; 若停止当前的频道, 并新增一个或多个需播放 的频道时, 该切换请求消息包括新频道的频道信息及频道的处理信息, 该频道 的处理信息包括停止发送当前频道的数据流的信息,新增一个或多个需播放的 频道, 也是作为新频道; 若保留当前的频道时, 新增一个或多个需播放的频道 时, 该包括切换请求消息包括新频道的频道信息及频道的处理信息, 该频道的 处理信息包括保留当前频道的数据流的信息,在这种情况下, 频道切换服务器 20默认当接收该新频道的频道信息时, 为新增一个或多个需播放的频道。  In this embodiment, when the current channel is one, if the current channel is stopped, the handover request message includes channel information of the new channel and processing information of the channel, and the processing information of the channel includes stopping the transmission of the data stream of the current channel. If the current channel is stopped and one or more channels to be played are added, the switching request message includes channel information of the new channel and processing information of the channel, and the processing information of the channel includes stopping the transmission of the data stream of the current channel. Information, adding one or more channels to be played, also as a new channel; if one or more channels to be played are added when the current channel is reserved, the switch request message includes the channel information of the new channel and The processing information of the channel, the processing information of the channel includes information for retaining the data stream of the current channel, in this case, the channel switching server 20 defaults to add one or more to be played when receiving the channel information of the new channel. Channel.
在本实施例中,针对当前的频道为多个时, 若停止当前的频道中的一个或 多个,保留当前多个频道中的一个或多个, 该切换请求消息包括当前频道的频 道信息、新频道的频道信息及频道的处理信息, 所述频道的处理信息包括停止 频道的数据流的信息,或保留频道的数据流的信息, 该切换请求消息也可以包 括当前频道的频道信息、新频道的频道信息及频道的处理信息, 所述频道的处 理信息包括停止频道的数据流的信息和启动新频道的数据流的信息,或保留频 道的数据流的信息和启动新频道的数据流的信息;若停止当前的频道中的一个 或多个,保留当前多个频道中的一个或多个, 并新增一个或多个需播放的频道 时,切换请求消息包括当前频道的频道信息、新频道的频道信息及频道的处理 信息, 所述频道的处理信息包括停止频道的数据流的信息,或保留频道的数据 流的信息, 该切换请求消息也可以包括当前频道的频道信息、新频道的频道信 息及频道的处理信息,所述频道的处理信息包括停止频道的数据流的信息和启 动新频道的数据流的信息,或保留频道的数据流的信息和启动新频道的数据流 的信息。 In this embodiment, when there are multiple current channels, if one or more of the current channels are stopped, one or more of the current multiple channels are reserved, and the handover request message includes the frequency of the current channel. Channel information, channel information of the new channel, and processing information of the channel, the processing information of the channel includes information of the data stream of the stop channel, or information of the data stream of the reserved channel, and the switching request message may also include channel information of the current channel. The channel information of the new channel and the processing information of the channel, the processing information of the channel includes the information of the data stream of the stop channel and the information of the data stream for starting the new channel, or the information of the data stream of the reserved channel and the data for starting the new channel. Streaming information; if one or more of the current channels are stopped, one or more of the current plurality of channels are reserved, and one or more channels to be played are added, the switching request message includes channel information of the current channel The channel information of the new channel and the processing information of the channel, the processing information of the channel includes information of the data stream of the stop channel, or information of the data stream of the reserved channel, and the switching request message may also include channel information of the current channel, new Channel information of the channel and processing information of the channel, the processing information of the channel includes stopping the channel According to the data flow information and start a new information channel data stream information, or leave the channel data stream and start a new channel of information flow.
在本实施例中, 该频道信息包括频道的标识(SSRC )。 在本实施例中, 切 换处理模块 320还用于根据数据流监测模块 310检测的数据接收模块 300中接 收到的数据情况, 将切换请求消息发送至频道切换服务器 20。  In this embodiment, the channel information includes an identification of a channel (SSRC). In this embodiment, the switching processing module 320 is further configured to send a handover request message to the channel switching server 20 according to the data received in the data receiving module 300 detected by the data flow monitoring module 310.
即,切换请求消息包括新频道的频道信息及频道的处理信息, 所述频道信 息包括频道的标识,所述频道的处理信息包括停止发送当前频道的数据流的信 息时, 所述频道信息包括频道的标识。  That is, the handover request message includes channel information of the new channel and the processing information of the channel, the channel information includes an identifier of the channel, and the processing information of the channel includes information for stopping the transmission of the data stream of the current channel, the channel information including the channel Logo.
所述数据接收模块 300 还用于接收所述频道切换服务器发送的新频道的 数据流。 当所述切换请求消息包括新频道的频道信息及频道的处理信息, 所述 频道信息包括频道的标识,所述频道的处理信息包括保留当前频道的数据流的 信息时, 所述数据接收模块 300还用于继续接收所述频道切换服务器 20发送 的当前频道的数据流,并接收所述频道切换服务器 20发送的新频道的数据流。 当所述切换请求消息包括当前频道的频道信息、新频道的频道信息及频道 的处理信息, 所述频道的处理信息包括停止频道的数据流的信息,或保留频道 的数据流的信息时, 或所述切换请求消息包括当前频道的频道信息、新频道的 频道信息及频道的处理信息,所述频道的处理信息包括停止频道的数据流的信 息和启动新频道的数据流的信息,或保留频道的数据流的信息和启动新频道的 数据流的信息时,所述数据接收模块 300还用于继续接收所述频道切换服务器 20发送的需要保留的当前频道的数据流, 并接收所述频道切换服务器 20发送 的新频道的数据流。 The data receiving module 300 is further configured to receive a data stream of a new channel sent by the channel switching server. When the switching request message includes the channel information of the new channel and the processing information of the channel, where the channel information includes the identifier of the channel, and the processing information of the channel includes the information of the data stream that retains the current channel, the data receiving module 300 Also used to continue receiving the channel switching server 20 to send The data stream of the current channel is received and the data stream of the new channel transmitted by the channel switching server 20 is received. When the handover request message includes channel information of a current channel, channel information of a new channel, and processing information of a channel, the processing information of the channel includes information of stopping a data stream of the channel, or retaining information of a data stream of the channel, or The handover request message includes channel information of a current channel, channel information of a new channel, and processing information of a channel, and the processing information of the channel includes information of a data stream of the stop channel and information of a data stream for starting a new channel, or a reserved channel. The data receiving module 300 is further configured to continue to receive the data stream of the current channel that needs to be reserved sent by the channel switching server 20, and receive the channel switching, when the information of the data stream is started and the information of the data stream of the new channel is started. The data stream of the new channel sent by the server 20.
在本实施例中,切换请求消息可以有不同的报文格式来表示, 以下分别进 行描述:  In this embodiment, the handover request message may be represented by a different message format, which is described below:
第一种, 切换请求消息可以用如下的报文格式来表示: I header: |  First, the handover request message can be represented by the following message format: I header: |
I user: ID |  I user: ID |
I media source ID | 其中, user ID用来表示当前用户的 ID , media source ID表示新频道的频 道信息,若当前报文中的这个 media source ID字段有数据值时,则表示需要停 止当前的频道, 并启动新频道, 即相当于报文同时携带了新频道的频道信息、 当前频道和新频道的处理信息。  I media source ID | where user ID is used to indicate the ID of the current user, and media source ID is the channel information of the new channel. If the media source ID field in the current packet has a data value, it indicates that the current channel needs to be stopped. And start a new channel, which is equivalent to carrying the channel information of the new channel, the processing information of the current channel and the new channel.
第二种, 切换请求消息可以用如下的报文格式来表示: +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ I header | Second, the handover request message can be represented by the following message format: +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+ I header |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+
I user ID |  I user ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+
I media source ID ( current ) |  I media source ID ( current ) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+
I media source ID ( new ) |  I media source ID ( new ) |
+-+ -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+  +-+ -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+
其中, media source ID(current)表示当前频道中停止频道的频道信息, media source ID(new)表示新频道的频道信息,当 media source ID(current)的字段中有 数据值时, 则表示需要停止当前频道, 当 media source ID(new)的字段中有数 据值时, 则表示启动新频道, 即相当于报文同时携带了新频道的频道信息、 当 前频道和新频道的处理信息。 在本实施例中 , 以 RTCP的报文进行说明 , 如下:  The media source ID (current) indicates the channel information of the stop channel in the current channel, and the media source ID (new) indicates the channel information of the new channel. When there is a data value in the field of the media source ID (current), it indicates that the channel needs to be stopped. The current channel, when there is a data value in the field of the media source ID (new), indicates that the new channel is activated, that is, the message carries the channel information of the new channel, the processing information of the current channel and the new channel. In this embodiment, the RTCP packet is described as follows:
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+
I rtcp header |  I rtcp header |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+
I Extens ions |  I Extens ions |
+-+ -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+  +-+ -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+
上述的 RTCP报文中, rtcp header 为 rfc4585的报文格式, extensions字 段为一个扩展字段, 其中, rtcp header可以用以下格式来表示:  In the above RTCP message, the rtcp header is the rfc4585 message format, and the extensions field is an extension field. The rtcp header can be expressed in the following format:
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+
I V=2 I P I FMT I PT | l e ngt h |I V=2 I P I FMT I PT | l e ngt h |
I S S RC o f packet s e nde r |I S S RC o f packet s e nde r |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+
I S S RC o f me di a s o u rce |I S S RC o f me di a s o u rce |
+-+-+-+-+-+-+-+-+-+-+-+-+ -+- +-+ -+- +-+ -+- +-+ -+- +-+ -+- +-+ -+- +-+ -+- + 其中, SSRC of packet sender表示当前报文的发送方, 即终端设备 30的 标识, 与第一种或第二种报文相比, 该字段与第一种或第二种报文中的 use ID 字段相对应; SSRC of media source表示新频道的频道信息, 该 SSRC of media source字段与第一种报文中的 media source ID字段相对应,或包括第二种报文 中的 media source ID(current)或 media source ID(new)字段 , SSRC 为 ― +-+-+-+-+-+-+-+-+-+-+-+-+ -+- +-+ -+- +-+ -+- +-+ -+- +-+ - +- +-+ -+- +-+ -+- + where SSRC of packet sender indicates the sender of the current message, that is, the identifier of the terminal device 30, compared with the first or second type of message. The field corresponds to the use ID field in the first or second type of message; the SSRC of media source indicates the channel information of the new channel, and the SSRC of media source field corresponds to the media source ID field in the first type of message. Or include the media source ID (current) or media source ID (new) field in the second packet, SSRC is ―
Synchronization source , P同步源、 。  Synchronization source, P sync source, .
在本实施例中,仍以 RTCP报文中进行说明,该 RTCP报文也有几种情况, 以下分别进行描述:  In this embodiment, the description is still made in the RTCP packet, and the RTCP packet has several cases, which are respectively described below:
第一种 RTCP报文:
Figure imgf000012_0001
The first type of RTCP message:
Figure imgf000012_0001
1  1
+ -+- + -+- ■+- ■+- +- ■+- ■+- ■+-+-+- ■ +一 +一 +一 +一 +一 +一 +一 +一 +一 +一 +一 +一 +_ ■+- ■+- ■+- ■+- ■+- ■+- ■+- ■+ + -+- + -+- ■+- ■+- +- ■+- ■+- ■+-+-+- ■ + one + one + one + one + one + one + one + one + one + one +一+一+ _ ■+- ■+- ■+- ■+- ■+- ■+- ■+- ■+
1 SSRC of media source ( cuuuen ) 1  1 SSRC of media source ( cuuuen ) 1
+ -+- + -+- ■+- ■+- +- ■+- ■+- ■+-+-+- ■ +一 +一 +一 +一 +一 +一 +一 +一 +一 +一 +一 +一 +_ ■+- ■+- ■+- ■+- ■+- ■+- ■+- ■+ + -+- + -+- ■+- ■+- +- ■+- ■+- ■+-+-+- ■ + one + one + one + one + one + one + one + one + one + one +一+一+ _ ■+- ■+- ■+- ■+- ■+- ■+- ■+- ■+
1 SSRC of media source ( new) 1  1 SSRC of media source ( new) 1
+ -+- + -+- ■+- ■+- +- ■+- ■+- ■+-+-+- ■ +一 +一 +一 +一 +一 +一 +一 +一 +一 +一 +一 +一 +_ ■+- ■+- ■+- ■+- ■+- ■+- ■+- ■+ + -+- + -+- ■+- ■+- +- ■+- ■+- ■+-+-+- ■ + one + one + one + one + one + one + one + one + one + one +一+一+ _ ■+- ■+- ■+- ■+- ■+- ■+- ■+- ■+
1 Extens ions 1  1 Extens ions 1
+ -+- + -+- ■+- ■+- +- ■+- ■+- ■+-+-+- ■ +一 +一 +一 +一 +一 +一 +一 +一 +一 +一 +一 +一 +一 ■+- ■+- ■+- ■+- ■+- ■+- ■+- ■+ 其中, SSRC of media source (current)表示当前频道中停止频道的频道信 息, SSRC of media source (new)表示新频道的频道信息, 当 SSRC of media source (current)字段中有数据值时, 则表示需要停止当前频道, 当 SSRC of media source (new)字段中有数据值时, 则表示启动新频道, 即相当于报文同时 携带了新频道的频道信息、 当前频道和新频道的处理信息。  + -+- + -+- ■+- ■+- +- ■+- ■+- ■+-+-+- ■ + one + one + one + one + one + one + one + one + one + one +一+一+一■+- ■+- ■+- ■+- ■+- ■+- ■+- ■+ where SSRC of media source (current) indicates the channel information of the stop channel in the current channel, SSRC of Media source (new) indicates the channel information of the new channel. When there is a data value in the SSRC of media source (current) field, it means that the current channel needs to be stopped. When there is a data value in the SSRC of media source (new) field, It means that the new channel is activated, which means that the message carries the channel information of the new channel, the processing information of the current channel and the new channel.
 Or
SSRC of media source (current)表示当前频道中保留频道的频道信息, SSRC of media source (new)表示新频道的频道信息, 当 SSRC of media source (current)字段中有数据值时, 则表示需要保留当前频道, 当 SSRC of media source (new)字段中有数据值时, 则表示启动新频道, 即相当于报文同时携带 了新频道的频道信息当前频道和新频道的处理信息。 第二种 RTCP报文: +- +- +- +- +- +- +- +- +- +-+-+-■ +一 +一 +一 +一 +一 +一 +一 +一 +一 +一 +一 +一 +一 +- +- +- +- +- +-■+-■+ 1 SSRC of packet sender: 1 SSRC of media source (current) indicates the channel information of the reserved channel in the current channel, and SSRC of media source (new) indicates the channel information of the new channel. When there is a data value in the SSRC of media source (current) field, it indicates that it needs to be reserved. The current channel, when there is a data value in the SSRC of media source (new) field, indicates that the new channel is activated, that is, the message carries the channel information of the new channel and the processing information of the current channel and the new channel. The second type of RTCP packet: +- +- +- +- +- +- +- +- +- +-+-+-■ + one + one + one + one + one + one + one + one + one + one + one + one + One +- +- +- +- +- +-■+-■+ 1 SSRC of packet sender: 1
+- +- +- +- +- +- +- +- +- +-+-+- ■ +一 +一 +一 +一 +一 +一 +一 +一 +一 +一 +一 +一 +一 +- +- +- +- +- +- ■+- ■+  +- +- +- +- +- +- +- +- +- +-+-+- ■ + one + one + one + one + one + one + one + one + one + one + one + one + One +- +- +- +- +- +- ■+- ■+
1 SSRC of media source ( new) 1  1 SSRC of media source ( new) 1
+- +- +- +- +- +- +- +- +- +-+-+- ■ +一 +一 +一 +一 +一 +一 +一 +一 +一 +一 +一 +一 +一 +- +- +- +- +- +- ■+- ■+  +- +- +- +- +- +- +- +- +- +-+-+- ■ + one + one + one + one + one + one + one + one + one + one + one + one + One +- +- +- +- +- +- ■+- ■+
1 SSRC of media source ( cuuuen ) 1  1 SSRC of media source ( cuuuen ) 1
+- +- +- +- +- +- +- +- +- +-+-+- ■ +一 +一 +一 +一 +一 +一 +一 +一 +一 +一 +一 +一 +一 +- +- +- +- +- +- ■+- ■+  +- +- +- +- +- +- +- +- +- +-+-+- ■ + one + one + one + one + one + one + one + one + one + one + one + one + One +- +- +- +- +- +- ■+- ■+
1 Extens ions 1  1 Extens ions 1
+- +- +- +- +- +- +- +- +- +-+-+- +- +- +- +- +- +- ■+- ■+  +- +- +- +- +- +- +- +- +- +-+-+- +- +- +- +- +- +- ■+- ■+
其中 , SSRC of media source (current)字段与 SSRC of media source (new)  Where SSRC of media source (current) field and SSRC of media source (new)
+  +
字段的顺序可以互换。 The order of the fields can be interchanged.
第三种 RTCP报文:  The third type of RTCP message:
+ +
Figure imgf000013_0001
Figure imgf000013_0001
其中, SSRC of media source可以表示频道的频道信息, media mark表示 频道的处理信息, media mark可以用 0或 1来标示, 若 media mark字段为 010101...0101,其中, 从左到右开始, 第一位数, 即 0, 对应于第三种 RTCP报 文中的第一个 SSRC of media source字段, 假设 0表示停止 SSRC of media source字段中的频道信息对应的频道, 也可以用 0来表示保留或开启 SSRC of media source字段中的频道信息对应的频道, 第二位数对应于第三种 RTCP报 文中的第二个 SSRC of media source字段, 依次类推, 当然, 也可以用 1来表 示保留或开启 SSRC of media source字段中的频道信息对应的频道, 也可以定 义用 1来表示停止 SSRC of media source字段中的频道信息对应的频道, 在本 发明实施例中, 没有限制, 即相当于报文同时携带了新频道的频道信息、 当前 频道和新频道的处理信息。 Wherein, the SSRC of media source can represent the channel information of the channel, the media mark represents the processing information of the channel, and the media mark can be marked with 0 or 1, if the media mark field is 010101...0101, wherein, starting from left to right, The first digit, that is, 0, corresponds to the first SSRC of media source field in the third RTCP packet, and assuming 0 indicates that the channel corresponding to the channel information in the SSRC of media source field is stopped, and may also be represented by 0. The channel corresponding to the channel information in the SSRC of media source field is reserved or enabled, and the second digit corresponds to the second SSRC of media source field in the third RTCP packet, and so on. Keep or turn on the channel corresponding to the channel information in the SSRC of media source field. In the embodiment of the present invention, there is no limitation, that is, the message carrying the channel information of the new channel, the current channel, and the processing of the new channel are carried out by using 1 as the channel corresponding to the channel information in the SSRC of media source field. information.
第四种 RTCP报文:  The fourth type of RTCP packet:
+-+ -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-+ -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+
I V=2 I P | FHT I PT | length |  I V=2 I P | FHT I PT | length |
+-+ -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+  +-+ -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+
I SSRC of packet sender: |  I SSRC of packet sender: |
+-+ -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+  +-+ -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+
I length of current media | length of new media |  I length of current media | length of new media |
+-+ -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+  +-+ -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+
I SSRC of media source |  I SSRC of media source |
+-+ -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+  +-+ -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+
I SSRC of media source |  I SSRC of media source |
+-+ -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+  +-+ -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+
+-+ -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+  +-+ -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+
I Extens ions |  I Extens ions |
+-+ -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 其中, length of current media表示需要停止当前频道的处理信息, 或保留 当前频道的处理信息, length of new mdeia表示新频道的处理信息,即 length of current media字段表示停止或保留第四种 RTCP报文中的 N个 SSRC of media source字段中的频道信息对应的频道, N为 length of current media的值, length of new media字段表示开启第四种 RTCP报文中的 M个 SSRC of media source 字段中的频道信息对应的频道, M为 length of new media的值,需要说明的是, 当该 N个 SSRC of media source字段排在 length of current media字段和 length of new media字段后时,这 M个 SSRC of media source字段包括第 N+l个 SSRC of media source字段 第 N+M个 SSRC of media source字段。 在本实施例 中, 当该 N个 SSRC of media source字段排在 length of current media字段和 length of new media字段后时, length of new media字段表示开启第四种 RTCP 报文中的 M个 SSRC of media source字段中的频道信息对应的频道, length of current media字段表示停止或保留第四种 RTCP报文中的 N个 SSRC of media source字段中的频道信息对应的频道, 需要说明的是, 这 N个 SSRC of media source字段包括第 M+1个 SSRC of media source字段 第 N+M个 SSRC of media source字段, 即相当于报文同时携带了新频道的频道信息和频道的处理 信息。在该实施例中, length of current media可以缺省 ,那么 length of new media 字段表示开启第四种 RTCP报文中的 M个 SSRC of media source字段中的频道 信息对应的频道, 剩余的 SSRC of media source字段中的频道信息对应的频道 保留或者停止。或者在该实施例中, length of new media可以缺省, 那么 length of current media字段表示停止或者保留第四种 RTCP报文中的 N个 SSRC of media source字段中的频道信息对应的频道, 剩余的 SSRC of media source字 段中的频道信息对应的开启新频道的处理信息,即相当于报文同时携带了新频 道的频道信息和、 当前频道和新频道的处理信息。 +-+ -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+ where length of current media indicates that the processing information of the current channel needs to be stopped, or the processing information of the current channel is retained, and length of new mdeia indicates the processing information of the new channel, that is, The length of new media field indicates that the channel corresponding to the channel information in the N SSRC of media source fields in the fourth RTCP packet is stopped or reserved, N is a value of length of current media, and the length of new media field indicates that the fourth is enabled. The channel corresponding to the channel information in the M SSRC of media source fields in the RTCP message, M is the value of length of new media, it should be noted that when the N SSRC of media source fields are ranked in length of current media When the field and the length of new media field are followed, the M SSRC of media source fields include the N+1 SSRC of media source field of the N+1th media source field. In this embodiment, when the N SSRC of media source fields are ranked after the length of current media field and the length of new media field, the length of new media field indicates that the fourth RTCP is enabled. The channel corresponding to the channel information in the M SSRC of media source fields in the message, the length of current media field indicates that the channel corresponding to the channel information in the N SSRC of media source fields in the fourth RTCP message is stopped or reserved. It should be noted that the N SSRC of media source fields include the N+M SSRC of media source fields of the M+1th SSRC of media source field, which is equivalent to the channel information of the new channel carrying the message and Channel processing information. In this embodiment, the length of current media may be defaulted, then the length of new media field indicates that the channel corresponding to the channel information in the M SSRC of media source fields in the fourth RTCP message is enabled, and the remaining SSRC of media The channel corresponding to the channel information in the source field is reserved or stopped. Or in this embodiment, length of new media may be defaulted, then the length of current media field indicates that the channel corresponding to the channel information in the N SSRC of media source fields in the fourth RTCP message is stopped or reserved, and the remaining The channel information corresponding to the channel information in the SSRC of media source field is equivalent to the processing information of the new channel, that is, the message carries the channel information of the new channel and the processing information of the current channel and the new channel.
另夕卜, 在本实施例中, length of current media字段和 length of new media 字段没有前后顺序, 或, 将 length of current media字段和 length of new media 字段作为一个字段时, 这个字段与 SSRC of media source字段没有前后顺序。  In addition, in this embodiment, the length of current media field and the length of new media field have no precedence order, or, when the length of current media field and the length of new media field are used as one field, this field and SSRC of media The source field has no precedence order.
在本实施例中, 频道切换数据存储模块 200用于存储组播服务器 10发送 的多播数据流及数据流的媒体的关键信息。媒体关键信息获取模块 210用于获 取频道切换数据存储模块 200 存储的多播数据流的媒体的关键信息的描述信 息。 在本实施例中, 媒体的关键信息的描述信息可以包括但不限以下内容: 媒 体的频道的随机接入点的位置,频道正常播放所需要的描述信息的位置,其中, 媒体的频道的随机接入点的位置可以是随机接入点时,要发送数据流的起始包 的序列号,频道正常播放所需要的描述信息可以是该频道所包含的所有数据的 标识和数据流的类型,也可以解析数据流所需要的各种参数信息, 频道中各种 数据同步所需要的信息。 In this embodiment, the channel switching data storage module 200 is configured to store the multicast data stream sent by the multicast server 10 and the key information of the media of the data stream. The media key information obtaining module 210 is configured to acquire description information of key information of the media of the multicast data stream stored by the channel switching data storage module 200. In this embodiment, the description information of the key information of the media may include, but is not limited to, the following: the location of the random access point of the channel of the media, the location of the description information required for the normal play of the channel, where the channel of the media is random The location of the access point can be the starting packet of the data stream to be sent when the random access point is located. The serial number, the description information required for the normal play of the channel may be the identifier of all the data contained in the channel and the type of the data stream, and may also analyze various parameter information required by the data stream, and the various data in the channel are required for synchronization. Information.
消息处理模块 230用于接收终端设备 30发送的一条切换请求消息, 并解 析所述切换请求消息, 至少获得新频道的频道信息及频道的处理信息。 即, 当 消息处理模块 230 解析该切换请求消息包括新频道的频道信息及频道的处理 信息, 所述频道的处理信息包括停止发送当前频道的数据流的信息, 或保留当 前频道的数据流的信息时,通知发送模块 220停止发送一个或多个当前频道的 单播数据流, 或继续发送一个或多个当前频道的单播数据流,及开始发送一个 或多个新频道的单播数据流。  The message processing module 230 is configured to receive a handover request message sent by the terminal device 30, and parse the handover request message to obtain at least channel information of the new channel and processing information of the channel. That is, when the message processing module 230 parses the switching request message to include the channel information of the new channel and the processing information of the channel, the processing information of the channel includes the information of stopping the transmission of the data stream of the current channel, or retaining the information of the data stream of the current channel. At this time, the notification sending module 220 stops transmitting the unicast data stream of one or more current channels, or continues to transmit the unicast data stream of one or more current channels, and starts transmitting the unicast data stream of one or more new channels.
在本实施例中,针对当前的频道为一个时,发送模块 220还用于当消息处 理模块 230 解析该切换请求消息为包括新频道的频道信息及当前频道的处理 信息, 所述频道的处理信息包括停止发送当前频道的数据流的信息, 或保留当 前频道的数据流的信息时,根据所述停止发送当前频道的数据流的信息停止发 送所述当前频道的数据流或根据所述保留当前频道的数据流的信息继续发送 当前频道的数据流,并根据所述新频道的频道信息获取所述媒体关键信息获取 模块 210中的所述新频道的媒体关键信息的描述信息,及根据所述描述信息获 取所述频道切换数据存储模块 200 中的所述新频道的关键信息及随机接入点 的数据流信息, 通过单播数据流发送至所述终端设备 30。 在本实施例中, 频 道切换数据存储模块 200中存储的多播数据流为传输流( transport stream, TS ), 该数据流信息包括音频, 视频, 数据等, 新频道的关键信息包括频道的 PSI 信息和频道的随机接入点点位置, IDR帧位置或者 I帧位置, 及频道的解码参 数集 SPS, PPS等。 In this embodiment, when the current channel is one, the sending module 220 is further configured to: when the message processing module 230 parses the switching request message, the channel information including the new channel and the processing information of the current channel, and the processing information of the channel. When the information of the data stream of the current channel is stopped, or the information of the data stream of the current channel is retained, the data stream of the current channel is stopped according to the information of stopping the data stream of the current channel, or the current channel is reserved according to the The information of the data stream continues to transmit the data stream of the current channel, and the description information of the media key information of the new channel in the media key information obtaining module 210 is obtained according to the channel information of the new channel, and according to the description The information about the key information of the new channel and the data stream information of the random access point in the channel switching data storage module 200 are sent to the terminal device 30 through the unicast data stream. In this embodiment, the multicast data stream stored in the channel switching data storage module 200 is a transport stream (TS), the data stream information includes audio, video, data, etc., and the key information of the new channel includes the PSI of the channel. Random access point location for information and channels, IDR frame position or I frame position, and channel decoding parameters Number set SPS, PPS, etc.
针对当前的频道为多个时,发送模块 220还用于当消息处理模块 230获得 当前频道的频道信息、新频道的频道信息及频道的处理信息, 所述频道的处理 信息包括停止频道的数据流的信息,或保留频道的数据流的信息。 在本实施例 中, 如果需要停止当前频道中的一个或几个时, 当前频道的频道信息包括, 需 要停止的当前频道的频道信息, 或需要保留的当前频道的频道信息。根据所述 停止频道的数据流的信息和当前频道的频道信息停止发送所述停止频道的数 据流或根据所述保留频道的数据流的信息和当前频道的频道信息继续发送保 留频道的数据流,根据所述新频道的频道信息获取所述媒体关键信息获取模块 210中的所述新频道的媒体关键信息的描述信息, 及根据所述描述信息获取所 述频道切换数据存储模块 200 中的所述新频道的关键信息及随机接入点的数 据流信息, 通过单播数据流发送至所述终端设备 30。  When the current channel is multiple, the sending module 220 is further configured to: when the message processing module 230 obtains channel information of the current channel, channel information of the new channel, and processing information of the channel, the processing information of the channel includes stopping the data flow of the channel. Information, or information about the channel's data stream. In this embodiment, if it is necessary to stop one or more of the current channels, the channel information of the current channel includes the channel information of the current channel that needs to be stopped, or the channel information of the current channel that needs to be reserved. Stop transmitting the data stream of the stop channel according to the information of the data stream of the stop channel and the channel information of the current channel or continue to transmit the data stream of the reserved channel according to the information of the data stream of the reserved channel and the channel information of the current channel, Acquiring the description information of the media key information of the new channel in the media key information acquiring module 210 according to the channel information of the new channel, and acquiring the channel in the channel switching data storage module 200 according to the description information. The key information of the new channel and the data stream information of the random access point are transmitted to the terminal device 30 through the unicast data stream.
发送模块 220还用于当消息处理模块 230获得当前频道的频道信息、新频 道的频道信息及频道的处理信息,所述频道的处理信息包括停止频道的数据流 的信息和启动新频道的数据流的信息,或保留频道的数据流的信息和启动新频 道的数据流的信息时,根据所述停止频道的数据流的信息和当前频道的频道信 息停止发送所述停止频道的数据流或根据所述保留频道的数据流的信息和当 前频道的频道信息继续发送保留频道的数据流,并根据所述新频道的频道信息 及启动新频道的数据流的信息获取所述媒体关键信息获取模块 210 中的所述 新频道的媒体关键信息的描述信息,及根据所述描述信息获取所述频道切换数 据存储模块 200中的所述新频道的关键信息及随机接入点的数据流信息,通过 单播数据流发送至所述终端设备 30。 图 3 为本发明实施例二的应用于频道切换的终端设备和频道切换服务器 的结构示意图。在本实施例中, 终端设备 30接收频道切换服务器 20发送的单 播数据流及组播服务器 10发送的多播数据流, 即在本实施例中, 数据流监测 模块 310检测数据接收模块 300中接收到单播数据流和组多播数据流,主要是 为了使切换频道服务器 20和组播服务器 10发送的同一频道的数据流达到同 步。 当用户需要切换当前的频道时, 会产生切换频道的信息时, 终端设备 30 一方面发送切换频道的信息至频道切换服务器 20, 此时与图 2的做法一样, 此处不再详细描述,另一方面发送断开需要切换当前频道的多播数据流的信息 至组播服务器 10以使组播服务器 10停止发送该需要切换当前频道多播数据 流。 The sending module 220 is further configured to: when the message processing module 230 obtains channel information of the current channel, channel information of the new channel, and processing information of the channel, the processing information of the channel includes information of stopping the data flow of the channel and starting the data flow of the new channel. The information, or the information of the data stream of the reserved channel and the information of the data stream of the new channel, stop transmitting the data stream of the stop channel according to the information of the data stream of the stop channel and the channel information of the current channel. The information of the data stream of the reserved channel and the channel information of the current channel continue to transmit the data stream of the reserved channel, and acquire the media key information acquiring module 210 according to the channel information of the new channel and the information of the data stream for starting the new channel. The description information of the media key information of the new channel, and the key information of the new channel and the data flow information of the random access point in the channel switching data storage module 200 according to the description information, by unicast The data stream is sent to the terminal device 30. FIG. 3 is a schematic structural diagram of a terminal device and a channel switching server applied to channel switching according to Embodiment 2 of the present invention. In this embodiment, the terminal device 30 receives the unicast data stream sent by the channel switching server 20 and the multicast data stream sent by the multicast server 10, that is, in the embodiment, the data stream monitoring module 310 detects the data receiving module 300. The unicast data stream and the group multicast data stream are received mainly for synchronizing the data streams of the same channel transmitted by the switching channel server 20 and the multicast server 10. When the user needs to switch the current channel, the information about the switching channel is generated, and the terminal device 30 sends the information of the switching channel to the channel switching server 20 on the one hand, which is the same as the method of FIG. 2, and will not be described in detail here. On the one hand, the information of the multicast data stream that needs to be switched to the current channel is sent to the multicast server 10 to cause the multicast server 10 to stop transmitting the current channel multicast data stream.
图 4 为本发明实施例三的应用于频道切换的终端设备和频道切换服务器 的结构示意图。 在本实施例中, 图 4与图 3的区别在于, 切换频道服务器 20 和组播服务器 10发送的同一频道的数据流达到同步后 ,终端设备 30接收组播 服务器 10发送的多播数据流, 不接收频道切换服务器 20发送的单播数据流, 但频道切换服务器 20依然会发送一些有关频道的其他服务或业务的数据, 比 如, 当组播服务器 10发送的频道的多播数据流中有错误的数据流时, 可通知 频道切换服务器 20重新发送有关该频道的部分数据流。 即在本实施例中, 数 据流监测模块 310检测数据接收模块 300中接收到多播数据流。在本实施例中, 终端设备 30一方面也是发送切换频道的信息至频道切换服务器 20 , 此时与图 2 的做法一样, 此处不再详细描述, 在本实施例中, 需要切换的当前频道和 / 或继续发送不需要切换的当前频道的数据流为发送有关错误或者丟失数据的 数据流;另一方面发送断开需要切换当前频道的多播数据流的信息至组播服务 器 10以使组播服务器 10停止发送该需要切换当前频道多播数据流。 本发明实施例提供的终端设备在进行频道切换时,将一条切换请求消息发 送至频道切换服务器, 即发送一条切换请求消息至频道切换服务器,切换请求 消息至少包括新频道的频道信息及当前频道的处理信息,以通知频道切换服务 器停止或继续发送当前频道的数据流,并使所述频道切换服务器发送新频道的 数据流,即在一条切换请求消息中告知频道切换服务器需要停止发送当前频道 的数据流, 并发送新频道的数据流, 或继续发送当前频道的数据流并发送新频 道的数据流, 可以缩短一次频道切换过程中的信息交互时间和信息处理时间, 提高了频道切换的速度,并且跟现有技术的需分开发送离开单播的请求报文和 请求新的频道请求报文相比, 由于现有技术会所造成增加链路的带宽, 而本发 明实例一次性发完, 以减少交互的次数, 从而减少了交互所需要的信息, 尽而 不会增加上行链路的带宽,并且也减小了在频道切换中发送信息时的头信息开 销。 FIG. 4 is a schematic structural diagram of a terminal device and a channel switching server applied to channel switching according to Embodiment 3 of the present invention. In this embodiment, the difference between FIG. 4 and FIG. 3 is that after the data flow of the same channel sent by the switching channel server 20 and the multicast server 10 is synchronized, the terminal device 30 receives the multicast data stream sent by the multicast server 10, The unicast data stream sent by the channel switching server 20 is not received, but the channel switching server 20 still sends some data about other services or services of the channel, for example, when there is an error in the multicast data stream of the channel sent by the multicast server 10. At the time of the data stream, the channel switching server 20 can be notified to resend part of the data stream for the channel. That is, in this embodiment, the data stream monitoring module 310 detects that the multicast data stream is received in the data receiving module 300. In this embodiment, the terminal device 30 also sends the information of the switching channel to the channel switching server 20 on the one hand, which is the same as the method of FIG. 2, and will not be described in detail here. In this embodiment, the current channel that needs to be switched is needed. And/or continue to send the data stream of the current channel that does not need to be switched to send a data stream related to the error or the lost data; on the other hand, the transmission disconnects the information of the multicast stream of the current channel to the multicast service. The device 10 switches the current channel multicast data stream so that the multicast server 10 stops transmitting. When performing channel switching, the terminal device provided by the embodiment of the present invention sends a handover request message to the channel switching server, that is, sends a handover request message to the channel switching server, where the handover request message includes at least the channel information of the new channel and the current channel. Processing the information to notify the channel switching server to stop or continue to send the data stream of the current channel, and cause the channel switching server to send the data stream of the new channel, that is, in a handover request message, the channel switching server needs to stop sending the data of the current channel. Streaming, and transmitting the data stream of the new channel, or continuing to send the data stream of the current channel and transmitting the data stream of the new channel, can shorten the information interaction time and information processing time in the channel switching process, and improve the channel switching speed, and Compared with the prior art, the request message leaving the unicast is sent separately from the request for the new channel request message, because the bandwidth of the link is increased due to the prior art, and the instance of the present invention is sent out at one time to reduce the interaction. The number of times, thereby reducing the interaction To the information, make the bandwidth without increasing the uplink, and also reduces the header overhead in the transmission information of the channel switching.
图 5为本发明实施例一的频道的切换方法的流程图。  FIG. 5 is a flowchart of a method for switching a channel according to Embodiment 1 of the present invention.
在本实施例中, 快速频道的方法应用于只接收单播数据流的情况下。 步骤 S500 , 检测是否有用户的切换频道信息。 在本实施例中, 用户当前 的频道可以为一个也可以为多个频道。切换频道信息存在以下几种情况: 若当 前的频道为一个时, 用户可以停止当前的频道, 也可以保留当前的频道, 再新 增一个或多个需播放的频道,在此基础上再增加一个或多个新的频道; 若当前 的频道为多个时, 用户可以停止当前多个频道中的一个或多个, 也保留当前多 个频道中的一个或多个, 也可以新增一个或多个需播放的频道。  In the present embodiment, the method of fast channel is applied to the case where only a unicast data stream is received. Step S500, detecting whether there is switching channel information of the user. In this embodiment, the current channel of the user may be one or multiple channels. There are several situations in which the channel information is switched: If the current channel is one, the user can stop the current channel, or the current channel can be reserved, and one or more channels to be played are added, and one more is added. Or multiple new channels; if there are multiple current channels, the user can stop one or more of the current multiple channels, and also retain one or more of the current multiple channels, or add one or more The channel to play.
步骤 S502 , 当检测到用户的切换频道信息时, 根据该切换频道信息发送 切换请求消息至频道切换服务器,该切换请求消息至少包括新频道的频道信息 及频道的处理信息。在本实施例中,发送一条切换请求消息至频道切换服务器。 若停止当前的频道, 该切换请求消息包括新频道的频道信息及频道的处理信 息, 该频道的处理信息包括停止发送当前频道的数据流的信息; 若停止当前的 频道, 并新增一个或多个需播放的频道时, 该切换请求消息包括新频道的频道 信息及频道的处理信息,该频道的处理信息包括停止发送当前频道的数据流的 信息,新增一个或多个需播放的频道,也是作为新频道;若保留当前的频道时, 新增一个或多个需播放的频道时,该切换请求消息包括新频道的频道信息及频 道的处理信息, 该频道的处理信息包括停止或保留当前频道的数据流的信息, 在这种情况下, 频道切换服务器默认当接收该新频道的频道信息时, 为新增一 个或多个需播放的频道。 Step S502, when detecting the switching channel information of the user, sending according to the switching channel information Switching the request message to the channel switching server, the switching request message includes at least channel information of the new channel and processing information of the channel. In this embodiment, a handover request message is sent to the channel switching server. If the current channel is stopped, the handover request message includes channel information of the new channel and processing information of the channel, and the processing information of the channel includes information for stopping the transmission of the data stream of the current channel; if the current channel is stopped, one or more new channels are added. When the channel to be played is selected, the switching request message includes channel information of the new channel and processing information of the channel, and the processing information of the channel includes information for stopping the transmission of the data stream of the current channel, and adding one or more channels to be played, Also, as a new channel; if one or more channels to be played are added when the current channel is reserved, the switching request message includes channel information of the new channel and processing information of the channel, and the processing information of the channel includes stopping or retaining the current The information of the data stream of the channel. In this case, the channel switching server defaults to add one or more channels to be played when receiving the channel information of the new channel.
在本实施例中,针对当前的频道为多个时, 若停止当前的频道中的一个或 多个,保留当前多个频道中的一个或多个, 该切换请求消息包括当前频道的频 道信息、新频道的频道信息及频道的处理信息, 所述频道的处理信息包括停止 频道的数据流的信息,或保留频道的数据流的信息, 该切换请求消息也可以包 括当前频道的频道信息、新频道的频道信息及频道的处理信息, 所述频道的处 理信息包括停止频道的数据流的信息和启动新频道的数据流的信息,或保留频 道的数据流的信息和启动新频道的数据流的信息;若停止当前的频道中的一个 或多个,保留当前多个频道中的一个或多个, 并新增一个或多个需播放的频道 时,切换请求消息包括当前频道的频道信息、新频道的频道信息及频道的处理 信息, 所述频道的处理信息包括停止频道的数据流的信息,或保留频道的数据 流的信息, 该切换请求消息也可以包括当前频道的频道信息、新频道的频道信 息及频道的处理信息,所述频道的处理信息包括停止频道的数据流的信息和启 动新频道的数据流的信息,或保留频道的数据流的信息和启动新频道的数据流 的信息。 In this embodiment, when there are multiple current channels, if one or more of the current channels are stopped, one or more of the current multiple channels are reserved, and the handover request message includes channel information of the current channel, The channel information of the new channel and the processing information of the channel, the processing information of the channel includes the information of the data stream of the stop channel, or the information of the data stream of the reserved channel, and the switching request message may also include the channel information of the current channel, the new channel. The channel information and the processing information of the channel, the processing information of the channel includes information of the data stream of the stop channel and information of the data stream for starting the new channel, or information of the data stream of the reserved channel and information of the data stream for starting the new channel. If one or more of the current channels are stopped, one or more of the current plurality of channels are reserved, and one or more channels to be played are added, the handover request message includes channel information of the current channel, and a new channel. Channel information and processing information of the channel, the processing information of the channel includes information of stopping the data flow of the channel, or Data stream of information channels, the handover request message may also include channel information of a current channel, a new channel frequency channels Processing information of the channel, the processing information of the channel includes information of the data stream of the stop channel and information of the data stream for starting the new channel, or information of the data stream of the reserved channel and information of the data stream for starting the new channel.
步骤 S504 , 解析所述切换请求消息, 至少获得新频道的频道信息及频道 的处理信息;  Step S504, parsing the handover request message, and obtaining at least channel information of the new channel and processing information of the channel;
步骤 S506 , 根据所述频道的处理信息停止或继续发送频道的数据流至所 述终端设备, 根据所述新频道的频道信息发送新频道的数据流至所述终端设 备。  Step S506: Stop or continue to send the data stream of the channel to the terminal device according to the processing information of the channel, and send the data stream of the new channel to the terminal device according to the channel information of the new channel.
在本实施例中, 步骤 S506包括以下几种情况:  In this embodiment, step S506 includes the following situations:
当获得新频道的频道信息及频道的处理信息,所述频道的处理信息包括停 止发送当前频道的数据流的信息, 或保留当前频道的数据流的信息时,根据所 述停止发送当前频道的数据流的信息停止发送所述当前频道的数据流或根据 所述保留当前频道的数据流的信息继续发送当前频道的数据流;根据所述新频 道的频道信息获取所述新频道的媒体关键信息的描述信息;根据所述描述信息 获取所述新频道的关键信息及随机接入点的数据流信息,通过单播数据流发送 至所述终端设备。  When the channel information of the new channel and the processing information of the channel are obtained, the processing information of the channel includes the information of stopping the data stream of the current channel, or the information of the data stream of the current channel is retained, and the data of the current channel is stopped according to the stopping. The streamed information stops transmitting the data stream of the current channel or continues to transmit the data stream of the current channel according to the information of the data stream retaining the current channel; and acquiring the media key information of the new channel according to the channel information of the new channel The information is obtained, and the key information of the new channel and the data stream information of the random access point are obtained according to the description information, and are sent to the terminal device through a unicast data stream.
当获得当前频道的频道信息、新频道的频道信息及频道的处理信息, 所述 频道的处理信息包括停止频道的数据流的信息,或保留频道的数据流的信息 时,根据所述停止频道的数据流的信息和当前频道的频道信息停止发送所述停 止频道的数据流,或根据所述保留频道的数据流的信息和当前频道的频道信息 继续发送保留频道的数据流;根据所述新频道的频道信息获取所述新频道的媒 体关键信息的描述信息;根据所述描述信息获取所述新频道的关键信息及随机 接入点的数据流信息, 通过单播数据流发送至所述终端设备。 When the channel information of the current channel, the channel information of the new channel, and the processing information of the channel are obtained, the processing information of the channel includes the information of the data stream of the stop channel, or the information of the data stream of the reserved channel, according to the stop channel The information of the data stream and the channel information of the current channel stop transmitting the data stream of the stop channel, or continue to transmit the data stream of the reserved channel according to the information of the data stream of the reserved channel and the channel information of the current channel; according to the new channel The channel information acquires description information of the media key information of the new channel; acquires key information of the new channel according to the description information, and randomly The data stream information of the access point is sent to the terminal device through the unicast data stream.
当获得当前频道的频道信息、新频道的频道信息及频道的处理信息, 所述 频道的处理信息包括停止频道的数据流的信息和启动新频道的数据流的信息, 或保留频道的数据流的信息和启动新频道的数据流的信息时,根据所述停止频 道的数据流的信息和当前频道的频道信息停止发送所述停止频道的数据流,或 根据所述保留频道的数据流的信息和当前频道的频道信息继续发送保留频道 的数据流;根据所述新频道的频道信息及启动新频道的数据流的信息获取所述 新频道的媒体关键信息的描述信息;根据所述描述信息获取所述新频道的关键 信息及随机接入点的数据流信息,通过单播数据流发送至所述终端设备。根据 所述描述信息获取所述新频道的关键信息及随机接入的数据流信息,通过单播 数据流发送至所述终端设备。  When the channel information of the current channel, the channel information of the new channel, and the processing information of the channel are obtained, the processing information of the channel includes information of stopping the data stream of the channel and information of starting the data stream of the new channel, or retaining the data stream of the channel. And transmitting information of the data stream of the new channel and the channel information of the current channel to stop transmitting the data stream of the stop channel according to the information of the data stream of the stop channel, or according to the information of the data stream of the reserved channel; The channel information of the current channel continues to transmit the data stream of the reserved channel; the description information of the media key information of the new channel is obtained according to the channel information of the new channel and the information of the data stream that starts the new channel; and the description information is obtained according to the description information. The key information of the new channel and the data stream information of the random access point are sent to the terminal device through the unicast data stream. The key information of the new channel and the data flow information of the random access are obtained according to the description information, and are sent to the terminal device through a unicast data stream.
图 6为本发明实施例二的频道的切换方法的流程图。  FIG. 6 is a flowchart of a method for switching a channel according to Embodiment 2 of the present invention.
在本实施例中, 图 5与图 6的区别在, 图 6应用于接收到单播数据流和多 播数据流的情况下。 在本实施例中, 图 6中的步骤 S600、 S604、 S606与图 5 中的步骤 S500、 S504、 S506相同, 此处不再重复描述。 由于图 6应用于接收 到单播数据流和多播数据流的情况下,图 6中的步骤 S602与图 5中的步骤 S502 的区别在于, 在步骤 S602 , 还需要发送断开多播数据流的请求至组播服务器, 以使组播服务器断开发送多播数据流。在本实施例中, 该断开多播数据流的信 息为断开需要切换当前频道的多播数据流的信息。  In the present embodiment, the difference between Fig. 5 and Fig. 6 is applied to the case where the unicast data stream and the multicast data stream are received. In this embodiment, steps S600, S604, and S606 in FIG. 6 are the same as steps S500, S504, and S506 in FIG. 5, and the description thereof will not be repeated here. Since FIG. 6 is applied to the case where the unicast data stream and the multicast data stream are received, the difference between step S602 in FIG. 6 and step S502 in FIG. 5 is that, in step S602, the disconnected multicast data stream needs to be sent again. Request to the multicast server to cause the multicast server to disconnect the multicast data stream. In this embodiment, the information of the disconnected multicast data stream is information for disconnecting the multicast data stream that needs to switch the current channel.
图 7为本发明实施例三的频道的切换方法的流程图。  FIG. 7 is a flowchart of a method for switching a channel according to Embodiment 3 of the present invention.
在本实施例中, 图 7与图 6的区别在, 图 7应用于接收有关频道的多播数 据流, 而接收部分有关频道的其他服务或业务的数据, 比如, 当多播数据流中 有错误或丟失的数据时, 需要重新发送有关此错误或丟失的数据的单播数据 流。 在本实施例中, 图 7中的步骤 S700、 S702、 S704、 S706与图 6中的步骤 S600、 S602、 S604、 S606相同, 此处不再重复描述。 图 7中的步骤 S706与图 6中的步骤 S606的区别在于, 图 7中的步骤 S706中的停止发送所述需要切换 的当前频道的数据流及继续发送所述不需要切换的当前频道的数据流为有关 错误或丟失数据的数据流。 In the present embodiment, the difference between FIG. 7 and FIG. 6 is that FIG. 7 is applied to receive a multicast data stream of a relevant channel, and receives data of other services or services related to the channel, for example, in a multicast data stream. When there is an error or missing data, you need to resend the unicast data stream for this error or missing data. In this embodiment, steps S700, S702, S704, and S706 in FIG. 7 are the same as steps S600, S602, S604, and S606 in FIG. 6, and the description thereof will not be repeated here. Step S706 in FIG. 7 is different from step S606 in FIG. 6 in that, in step S706 in FIG. 7, the data stream of the current channel that needs to be switched is stopped, and the data of the current channel that does not need to be switched is continuously transmitted. The stream is a stream of data about errors or missing data.
本发明实施例提供的频道的切换方法,将一条切换请求消息发送至频道切 换服务器, 即发送一条切换请求消息至频道切换服务器, 切换请求消息至少包 括新频道的频道信息及当前频道的处理信息,以通知频道切换服务器停止或继 续发送当前频道的数据流, 并使所述频道切换服务器发送新频道的数据流, 即 在一条切换请求消息中告知频道切换服务器需要停止发送当前频道的数据流, 并发送新频道的数据流, 或继续发送当前频道的数据流并发送新频道的数据 流, 可以缩短一次频道切换过程中的信息交互时间和信息处理时间,提高了频 道切换的速度,并且跟现有技术的需分开发送离开单播的请求报文和请求新的 频道请求报文相比, 由于现有技术会所造成增加链路的带宽, 而本发明实例一 次性发完, 以减少交互的次数, 从而减少了交互所需要的信息, 尽而不会增加 上行链路的带宽, 并且也减小了在频道切换中发送信息时的头信息开销。  The method for switching a channel provided by the embodiment of the present invention sends a handover request message to the channel switching server, that is, sends a handover request message to the channel switching server, where the handover request message includes at least the channel information of the new channel and the processing information of the current channel. Notifying the channel switching server to stop or continue to send the data stream of the current channel, and causing the channel switching server to send the data stream of the new channel, that is, in a handover request message, informing the channel switching server that the data stream of the current channel needs to be stopped, and Sending the data stream of the new channel, or continuing to send the data stream of the current channel and transmitting the data stream of the new channel, can shorten the information interaction time and information processing time in the channel switching process, improve the channel switching speed, and Compared with the request for sending a new channel request message separately from the unicast request message, the technology increases the bandwidth of the link due to the prior art, and the inventive example is sent out at one time to reduce the number of interactions. Thereby reducing the need for interaction The information does not increase the bandwidth of the uplink, and also reduces the overhead of header information when transmitting information in channel switching.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程 , 是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算 机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。 其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory, ROM )或随机存储记忆体(Random Access Memory, RAM )等。 最后应说明的是:以上实施例仅用以说明本发明的技术方案而非对其进行 限制,尽管参照较佳实施例对本发明进行了详细的说明, 本领域的普通技术人 员应当理解: 其依然可以对本发明的技术方案进行修改或者等同替换, 而这些 修改或者等同替换亦不能使修改后的技术方案脱离本发明技术方案的精神和 范围。 A person skilled in the art can understand that all or part of the process of implementing the above embodiment method can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium, the program When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM). It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to be limiting, although the present invention will be described in detail with reference to the preferred embodiments. The technical solutions of the present invention may be modified or equivalently substituted, and the modified technical solutions may not deviate from the spirit and scope of the technical solutions of the present invention.

Claims

权 利 要 求 Rights request
1、 一种频道的切换方法, 其特征在于, 包括:  A method for switching a channel, comprising:
发送切换请求消息至频道切换服务器,以使所述频道切换服务器根据所述 切换请求消息停止或继续发送当前频道的数据流,并使所述频道切换服务器发 送新频道的数据流, 其中, 所述切换请求消息至少包括新频道的频道信息及频 道的处理信息。  Transmitting a handover request message to the channel switching server, so that the channel switching server stops or continues to send the data stream of the current channel according to the handover request message, and causes the channel switching server to send a data stream of the new channel, where The handover request message includes at least channel information of the new channel and processing information of the channel.
2、 根据权利要求 1所述的方法, 其特征在于, 还包括:  2. The method according to claim 1, further comprising:
接收所述频道切换服务器发送的频道数据流。  Receiving a channel data stream sent by the channel switching server.
3、 根据权利要求 1所述的方法, 其特征在于, 所述切换请求消息包括新 频道的频道信息及频道的处理信息, 所述频道信息包括频道的标识, 所述频道 的处理信息包括停止发送当前频道的数据流的信息,或保留当前频道的数据流 的信息。  The method according to claim 1, wherein the handover request message includes channel information of a new channel and processing information of a channel, the channel information includes an identifier of the channel, and the processing information of the channel includes stopping sending Information about the current channel's data stream, or information that retains the current channel's data stream.
4、 根据权利要求 1所述的方法, 其特征在于, 所述切换请求消息包括当 前频道的频道信息、新频道的频道信息及频道的处理信息, 所述频道的处理信 息包括停止频道的数据流的信息,或保留频道的数据流的信息, 所述频道信息 包括频道的标识。  The method according to claim 1, wherein the handover request message includes channel information of a current channel, channel information of a new channel, and processing information of a channel, and the processing information of the channel includes a data stream of the stop channel. Information, or information of a data stream of a reserved channel, the channel information including an identification of a channel.
5、 根据权利要求 1所述的方法, 其特征在于, 所述切换请求消息包括当 前频道的频道信息、新频道的频道信息及频道的处理信息, 所述频道的处理信 息包括停止频道的数据流的信息和启动新频道的数据流的信息,或保留频道的 数据流的信息和启动新频道的数据流的信息。  The method according to claim 1, wherein the handover request message includes channel information of a current channel, channel information of a new channel, and processing information of a channel, and the processing information of the channel includes a data stream of the stop channel. The information and information of the data stream that initiates the new channel, or the information of the data stream that holds the channel and the information stream that initiates the new channel.
6、 一种频道的切换方法, 其特征在于, 包括:  6. A channel switching method, characterized in that:
接收终端设备发送的一条切换请求消息; 解析所述切换请求消息, 至少获得新频道的频道信息及频道的处理信息; 根据所述频道的处理信息停止或继续发送频道的数据流至所述终端设备, 根据所述新频道的频道信息发送新频道的数据流至所述终端设备。 Receiving a handover request message sent by the terminal device; Parsing the handover request message, obtaining at least channel information of the new channel and processing information of the channel; stopping or continuing to send the data stream of the channel to the terminal device according to the processing information of the channel, and transmitting according to the channel information of the new channel The data of the new channel flows to the terminal device.
7、 根据权利要求 6所述的方法, 其特征在于, 所述解析所述切换请求消 息, 至少获得新频道的频道信息及频道的处理信息的步骤包括:  The method according to claim 6, wherein the step of parsing the handover request message to obtain at least channel information of a new channel and processing information of a channel comprises:
获得新频道的频道信息及频道的处理信息,所述频道的处理信息包括停止 发送当前频道的数据流的信息, 或保留当前频道的数据流的信息, 所述频道信 息包括频道的标识。  The channel information of the new channel and the processing information of the channel are obtained. The processing information of the channel includes information for stopping the transmission of the data stream of the current channel, or retaining the information of the data stream of the current channel, the channel information including the identifier of the channel.
8、 根据权利要求 7所述的方法, 其特征在于, 所述根据所述频道的处理 信息停止或继续发送频道的数据流至所述终端设备,根据所述新频道的频道信 息发送新频道的数据流至所述终端设备的步骤包括:  The method according to claim 7, wherein the stopping or continuing to transmit the data stream of the channel to the terminal device according to the processing information of the channel, and transmitting the new channel according to the channel information of the new channel. The step of streaming data to the terminal device includes:
根据所述停止发送当前频道的数据流的信息停止发送所述当前频道的数 据流, 或根据所述保留当前频道的数据流的信息继续发送当前频道的数据流; 根据所述新频道的频道信息获取所述新频道的媒体关键信息的描述信息; 根据所述描述信息获取所述新频道的关键信息及随机接入点的数据流信 息, 通过单播数据流发送至所述终端设备。  Stop transmitting the data stream of the current channel according to the information of stopping the data stream of the current channel, or continuing to send the data stream of the current channel according to the information of the data stream retaining the current channel; according to the channel information of the new channel Obtaining the description information of the media key information of the new channel; acquiring the key information of the new channel and the data stream information of the random access point according to the description information, and transmitting the data to the terminal device by using a unicast data stream.
9、 根据权利要求 6所述的方法, 其特征在于, 所述解析所述切换请求消 息, 至少获得新频道的频道信息及频道的处理信息的步骤包括:  The method according to claim 6, wherein the step of parsing the handover request message to obtain at least channel information of a new channel and processing information of a channel comprises:
获得当前频道的频道信息、新频道的频道信息及频道的处理信息, 所述频 道的处理信息包括停止频道的数据流的信息,或保留频道的数据流的信息, 所 述频道信息包括频道的标识。  Obtaining channel information of the current channel, channel information of the new channel, and processing information of the channel, the processing information of the channel includes information of a data stream of the stop channel, or information of a data stream of the reserved channel, where the channel information includes an identifier of the channel .
10、 根据权利要求 9所述的方法, 其特征在于, 所述根据所述频道的处理 信息停止或继续发送频道的数据流至所述终端设备,根据所述新频道的频道信 息发送新频道的数据流至所述终端设备的步骤包括: 10. The method according to claim 9, wherein the processing according to the channel The information stops or continues to send the data stream of the channel to the terminal device, and the step of transmitting the data stream of the new channel to the terminal device according to the channel information of the new channel includes:
根据所述停止频道的数据流的信息和当前频道的频道信息停止发送所述 停止频道的数据流,或根据所述保留频道的数据流的信息和当前频道的频道信 息继续发送保留频道的数据流;  Stop transmitting the data stream of the stop channel according to the information of the data stream of the stop channel and the channel information of the current channel, or continue to transmit the data stream of the reserved channel according to the information of the data stream of the reserved channel and the channel information of the current channel. ;
根据所述新频道的频道信息获取所述新频道的媒体关键信息的描述信息; 根据所述描述信息获取所述新频道的关键信息及随机接入点的数据流信 息, 通过单播数据流发送至所述终端设备。  Obtaining description information of the media key information of the new channel according to the channel information of the new channel; acquiring key information of the new channel and data flow information of the random access point according to the description information, and sending the data through the unicast data stream To the terminal device.
11、 根据权利要求 8所述的方法, 其特征在于, 所述解析所述切换请求消 息, 至少获得新频道的频道信息及频道的处理信息的步骤包括:  The method according to claim 8, wherein the step of parsing the handover request message to obtain at least channel information of a new channel and processing information of a channel comprises:
获得当前频道的频道信息、新频道的频道信息及频道的处理信息, 所述频 道的处理信息包括停止频道的数据流的信息和启动新频道的数据流的信息,或 保留频道的数据流的信息和启动新频道的数据流的信息,所述频道信息包括频 道的标识。  Obtaining channel information of the current channel, channel information of the new channel, and processing information of the channel, the processing information of the channel includes information of stopping the data stream of the channel and information of the data stream for starting the new channel, or information of the data stream of the reserved channel And information for initiating a data stream of the new channel, the channel information including an identification of the channel.
12、 根据权利要求 11所述的方法, 其特征在于, 所述根据所述频道的处 理信息停止或继续发送频道的数据流至所述终端设备,根据所述新频道的频道 信息发送新频道的数据流至所述终端设备的步骤包括:  The method according to claim 11, wherein the data flow of the channel is stopped or continued according to the processing information of the channel to the terminal device, and the new channel is sent according to the channel information of the new channel. The step of streaming data to the terminal device includes:
根据所述停止频道的数据流的信息和当前频道的频道信息停止发送所述 停止频道的数据流,或根据所述保留频道的数据流的信息和当前频道的频道信 息继续发送保留频道的数据流;  Stop transmitting the data stream of the stop channel according to the information of the data stream of the stop channel and the channel information of the current channel, or continue to transmit the data stream of the reserved channel according to the information of the data stream of the reserved channel and the channel information of the current channel. ;
根据所述新频道的频道信息及启动新频道的数据流的信息获取所述新频 道的媒体关键信息的描述信息; 根据所述描述信息获取所述新频道的关键信息及随机接入点的数据流信 息,通过单播数据流发送至所述终端设备。根据所述描述信息获取所述新频道 的关键信息及随机接入的数据流信息, 通过单播数据流发送至所述终端设备。 Obtaining, according to the channel information of the new channel and the information of the data stream that starts the new channel, the description information of the media key information of the new channel; And acquiring the key information of the new channel and the data stream information of the random access point according to the description information, and sending the data to the terminal device by using a unicast data stream. And acquiring the key information of the new channel and the data flow information of the random access according to the description information, and sending the data to the terminal device by using a unicast data stream.
13、 一种终端设备, 其特征在于, 包括:  13. A terminal device, comprising:
行为检测模块, 用于检测是否接收到用户的切换频道信息;  a behavior detecting module, configured to detect whether the switching channel information of the user is received;
切换处理模块,用于当所述行为检测模块检测到所述用户的切换频道信息 时,发送切换请求消息至频道切换服务器, 以使所述频道切换服务器根据所述 切换请求消息停止或继续发送当前频道的数据流,并使所述频道切换服务器发 送新频道的数据流, 其中, 所述切换请求消息至少包括新频道的频道信息及频 道的处理信息。  a switching processing module, configured to: when the behavior detecting module detects the switching channel information of the user, send a switching request message to the channel switching server, so that the channel switching server stops or continues to send the current according to the switching request message. a data stream of the channel, and causing the channel switching server to send a data stream of the new channel, wherein the handover request message includes at least channel information of the new channel and processing information of the channel.
14、 根据权利要求 13所述的终端设备, 其特征在于, 还包括:  The terminal device according to claim 13, further comprising:
数据接收模块, 用于接收所述频道切换服务器发送的频道数据流。  And a data receiving module, configured to receive a channel data stream sent by the channel switching server.
15、 根据权利要求 13所述的终端设备, 其特征在于, 切换请求消息包括 新频道的频道信息及频道的处理信息, 所述频道信息包括频道的标识, 所述频 道的处理信息包括停止发送当前频道的数据流的信息,或保留当前频道的数据 流的信息。  The terminal device according to claim 13, wherein the handover request message includes channel information of the new channel and processing information of the channel, the channel information includes an identifier of the channel, and the processing information of the channel includes stopping sending the current Information about the channel's data stream, or information that retains the current channel's data stream.
16、 根据权利要求 13所述的终端设备, 其特征在于, 所述切换请求消息 包括当前频道的频道信息、新频道的频道信息及频道的处理信息, 所述频道的 处理信息包括停止频道的数据流的信息,或保留频道的数据流的信息, 所述频 道信息包括频道的标识。  The terminal device according to claim 13, wherein the handover request message includes channel information of a current channel, channel information of a new channel, and processing information of a channel, and the processing information of the channel includes data of a stop channel. The information of the stream, or the information of the data stream of the reserved channel, the channel information including the identifier of the channel.
17、 根据权利要求 13所述的终端设备, 其特征在于, 所述切换请求消息 包括当前频道的频道信息、新频道的频道信息及频道的处理信息, 所述频道的 处理信息包括停止频道的数据流的信息和启动新频道的数据流的信息,或保留 频道的数据流的信息和启动新频道的数据流的信息。 The terminal device according to claim 13, wherein the handover request message includes channel information of a current channel, channel information of a new channel, and processing information of a channel, where The processing information includes information for stopping the data stream of the channel and information for starting the data stream of the new channel, or information for retaining the data stream of the channel and information for starting the data stream of the new channel.
18、 一种频道切换服务器, 其特征在于, 包括:  18. A channel switching server, comprising:
消息处理模块, 用于接收终端设备发送的一条切换请求消息, 并解析所述 切换请求消息, 至少获得新频道的频道信息及频道的处理信息;  a message processing module, configured to receive a handover request message sent by the terminal device, and parse the handover request message, to obtain at least channel information of the new channel and processing information of the channel;
发送模块,用于根据所述频道的处理信息停止或继续发送频道的数据流至 所述终端设备,根据所述新频道的频道信息发送新频道的数据流至所述终端设 备。  And a sending module, configured to stop or continue to send the data stream of the channel to the terminal device according to the processing information of the channel, and send the data stream of the new channel to the terminal device according to the channel information of the new channel.
19、 根据权利要求 18所述的频道切换服务器, 其特征在于, 还包括: 频道切换数据存储模块, 用于存储频道数据流及数据流的媒体的关键信 息;  The channel switching server according to claim 18, further comprising: a channel switching data storage module, configured to store key information of the channel data stream and the media of the data stream;
媒体关键信息获取模块,用于获取所述频道切换数据存储模块中的数据流 的媒体的关键信息的描述信息, 其中, 所述媒体的关键信息的描述信息包括: 媒体的频道的随机接入点的位置, 频道正常播放所需要的描述信息的位置, 所 述媒体的频道的随机接入点的位置可以是随机接入点时,要发送数据流的起始 包的序列号,所述频道正常播放所需要的描述信息为所述频道所包含的所有数 据的标识和数据流的类型,解析数据流所需要的各种参数信息, 频道中各种数 据同步所需要的信息。  The media key information obtaining module is configured to obtain description information of the key information of the media of the data stream in the channel switching data storage module, where the description information of the key information of the media includes: a random access point of the channel of the media Position, the location of the description information required for the normal play of the channel, the location of the random access point of the channel of the media may be the serial number of the start packet of the data stream to be sent when the random access point is located, the channel is normal The description information required for playback is the identification of all data included in the channel and the type of data stream, various parameter information required for parsing the data stream, and information required for synchronization of various data in the channel.
20、 根据权利要求 18所述的频道切换服务器, 其特征在于, 所述发送模 块还用于当所述消息处理模块获得新频道的频道信息及频道的处理信息 ,所述 频道的处理信息包括停止发送当前频道的数据流的信息,或保留当前频道的数 据流的信息时, 所述频道信息包括频道的标识,根据所述停止发送当前频道的 数据流的信息停止发送所述当前频道的数据流或根据所述保留当前频道的数 据流的信息继续发送当前频道的数据流,并根据所述新频道的频道信息获取所 述媒体关键信息获取模块中的所述新频道的媒体关键信息的描述信息,及根据 所述描述信息获取所述频道切换数据存储模块中的所述新频道的关键信息及 随机接入点的数据流信息, 通过单播数据流发送至所述终端设备。 The channel switching server according to claim 18, wherein the sending module is further configured to: when the message processing module obtains channel information of a new channel and processing information of a channel, the processing information of the channel includes stopping When transmitting information of a data stream of a current channel or retaining information of a data stream of a current channel, the channel information includes an identifier of a channel, and according to the stop sending the current channel The information of the data stream stops transmitting the data stream of the current channel or continues to send the data stream of the current channel according to the information of the data stream that retains the current channel, and acquires the media key information acquiring module according to the channel information of the new channel. Decoding information of the media key information of the new channel, and acquiring key information of the new channel and data flow information of the random access point in the channel switching data storage module according to the description information, by using unicast The data stream is sent to the terminal device.
21、 根据权利要求 18所述的频道切换服务器, 其特征在于, 所述发送模 块还用于当所述消息处理模块获得当前频道的频道信息、新频道的频道信息及 频道的处理信息, 所述频道的处理信息包括停止频道的数据流的信息,或保留 频道的数据流的信息时, 所述频道信息包括频道的标识,根据所述停止频道的 数据流的信息和当前频道的频道信息停止发送所述停止频道的数据流或根据 所述保留频道的数据流的信息和当前频道的频道信息继续发送保留频道的数 据流,并根据所述新频道的频道信息获取所述媒体关键信息获取模块中的所述 新频道的媒体关键信息的描述信息,及根据所述描述信息获取所述频道切换数 据存储模块中的所述新频道的关键信息及随机接入点的数据流信息,通过单播 数据流发送至所述终端设备。  The channel switching server according to claim 18, wherein the sending module is further configured to: when the message processing module obtains channel information of a current channel, channel information of a new channel, and processing information of a channel, When the processing information of the channel includes the information of the data stream of the stop channel or the information of the data stream of the reserved channel, the channel information includes the identifier of the channel, and stops sending according to the information of the data stream of the stop channel and the channel information of the current channel. And stopping the data flow of the reserved channel according to the information of the data stream of the reserved channel and the channel information of the current channel, and acquiring the media key information acquiring module according to the channel information of the new channel. The description information of the media key information of the new channel, and acquiring the key information of the new channel and the data stream information of the random access point in the channel switching data storage module according to the description information, by using unicast data The stream is sent to the terminal device.
22、 根据权利要求 18所述的频道切换服务器, 其特征在于, 所述发送模 块还用于当所述消息处理模块获得当前频道的频道信息、新频道的频道信息及 频道的处理信息,所述频道的处理信息包括停止频道的数据流的信息和启动新 频道的数据流的信息,或保留频道的数据流的信息和启动新频道的数据流的信 息时, 所述频道信息包括频道的标识,根据所述停止频道的数据流的信息和当 前频道的频道信息停止发送所述停止频道的数据流或根据所述保留频道的数 据流的信息和当前频道的频道信息继续发送保留频道的数据流,并根据所述新 频道的频道信息及启动新频道的数据流的信息获取所述媒体关键信息获取模 块中的所述新频道的媒体关键信息的描述信息,及根据所述描述信息获取所述 频道切换数据存储模块中的所述新频道的关键信息及随机接入点的数据流信 息, 通过单播数据流发送至所述终端设备。 The channel switching server according to claim 18, wherein the sending module is further configured to: when the message processing module obtains channel information of a current channel, channel information of a new channel, and processing information of a channel, The processing information of the channel includes information of the data stream of the stop channel and information of the data stream for starting the new channel, or information of the data stream of the reserved channel and information of the data stream for starting the new channel, the channel information including the identifier of the channel, Stop transmitting the data stream of the stop channel according to the information of the data stream of the stop channel and the channel information of the current channel or continue to transmit the data stream of the reserved channel according to the information of the data stream of the reserved channel and the channel information of the current channel, And according to the new The channel information of the channel and the information of the data stream that starts the new channel are used to obtain the description information of the media key information of the new channel in the media key information acquiring module, and obtain the channel switching data storage module according to the description information. The key information of the new channel and the data stream information of the random access point are sent to the terminal device through a unicast data stream.
23、 一种应用于切换频道的^艮文, 其特征在于, 包括:  23. A method for switching channels, characterized in that:
每个报文至少携带新频道的频道信息和频道的处理信息,所述报文用于请 求停止或继续发送当前频道的数据流, 并请求发送新频道的数据流。  Each message carries at least channel information of the new channel and processing information of the channel for requesting to stop or continue to transmit the data stream of the current channel, and requesting to transmit the data stream of the new channel.
24、 根据权利要求 23所述的报文, 其特征在于, 所述报文携带新频 道的频道信息和频道的处理信息,所述频道的处理信息包括停止发送当前频道 的数据流的信息, 或保留当前频道的数据流的信息。  The message according to claim 23, wherein the message carries channel information of a new channel and processing information of a channel, and the processing information of the channel includes information for stopping sending a data stream of the current channel, or Keep information about the current channel's data stream.
25、 根据权利要求 23所述的报文, 其特征在于, 所述报文携带当前频道 的频道信息、新频道的频道信息及频道的处理信息, 所述频道的处理信息包括 停止频道的数据流的信息,或保留频道的数据流的信息。  The message according to claim 23, wherein the message carries channel information of a current channel, channel information of a new channel, and processing information of a channel, and the processing information of the channel includes a data stream of the stop channel. Information, or information about the channel's data stream.
26、 根据权利要求 23所述的报文, 其特征在于, 所述报文携带当前频道 的频道信息、新频道的频道信息及频道的处理信息, 所述频道的处理信息包括 停止频道的数据流的信息和启动新频道的数据流的信息,或保留频道的数据流 的信息和启动新频道的数据流的信息。  The message according to claim 23, wherein the message carries channel information of a current channel, channel information of a new channel, and processing information of a channel, and the processing information of the channel includes a data stream of the stop channel. The information and information of the data stream that initiates the new channel, or the information of the data stream that holds the channel and the information stream that initiates the new channel.
PCT/CN2009/070578 2009-02-27 2009-02-27 Method for switching channel, terminal equipment and channel switching server WO2010096966A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2009/070578 WO2010096966A1 (en) 2009-02-27 2009-02-27 Method for switching channel, terminal equipment and channel switching server
CN200980157123.3A CN102356615A (en) 2009-02-27 2009-02-27 Method for switching channel, terminal equipment and channel switching server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2009/070578 WO2010096966A1 (en) 2009-02-27 2009-02-27 Method for switching channel, terminal equipment and channel switching server

Publications (1)

Publication Number Publication Date
WO2010096966A1 true WO2010096966A1 (en) 2010-09-02

Family

ID=42665005

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/070578 WO2010096966A1 (en) 2009-02-27 2009-02-27 Method for switching channel, terminal equipment and channel switching server

Country Status (2)

Country Link
CN (1) CN102356615A (en)
WO (1) WO2010096966A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101977288A (en) * 2010-10-27 2011-02-16 中兴通讯股份有限公司 Method, device and system for controlling digital television channel
WO2012163181A1 (en) * 2011-08-08 2012-12-06 华为技术有限公司 Method and device for implementing fast channel change

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1713720A (en) * 2005-07-21 2005-12-28 上海交通大学 Network TV channel push method based on channel switching and ratings model
CN1917628A (en) * 2005-08-16 2007-02-21 美国阿尔卡特资源有限合伙公司 System and method for implementing channel change operations in internet protocol television systems
US20070107024A1 (en) * 2005-11-10 2007-05-10 Scientific-Atlanta, Inc. Atomic channel changes in a switched digital video system
CN101252454A (en) * 2008-03-10 2008-08-27 中国电信股份有限公司 Client end video frequency playing system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1713720A (en) * 2005-07-21 2005-12-28 上海交通大学 Network TV channel push method based on channel switching and ratings model
CN1917628A (en) * 2005-08-16 2007-02-21 美国阿尔卡特资源有限合伙公司 System and method for implementing channel change operations in internet protocol television systems
US20070107024A1 (en) * 2005-11-10 2007-05-10 Scientific-Atlanta, Inc. Atomic channel changes in a switched digital video system
CN101252454A (en) * 2008-03-10 2008-08-27 中国电信股份有限公司 Client end video frequency playing system and method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101977288A (en) * 2010-10-27 2011-02-16 中兴通讯股份有限公司 Method, device and system for controlling digital television channel
WO2012163181A1 (en) * 2011-08-08 2012-12-06 华为技术有限公司 Method and device for implementing fast channel change
US9602869B2 (en) 2011-08-08 2017-03-21 Huawei Technologies Co., Ltd. Method and apparatus for fast channel change

Also Published As

Publication number Publication date
CN102356615A (en) 2012-02-15

Similar Documents

Publication Publication Date Title
JP5363473B2 (en) Method and apparatus for improved media session management
US8873368B2 (en) Method for processing channel switching failure case, terminal device, and channel switching server
KR101841591B1 (en) Session management and control procedures for supporting multiple groups of sink devices in a peer―to―peer wireless display system
JP5930429B2 (en) Distribution of IP broadcast streaming service using file distribution method
US8935736B2 (en) Channel switching method, channel switching device, and channel switching system
CN102415071B (en) Session push transfer
US20130031217A1 (en) Synchronous media rendering of demuxed media components across multiple devices
EP2472799B1 (en) Method, apparatus and system for rapid acquisition of multicast realtime transport protocol sessions
WO2011153868A1 (en) Channel switching method, apparatus and system
WO2010075743A1 (en) Method and device for displaying time of internet protocol television (iptv)
WO2010096966A1 (en) Method for switching channel, terminal equipment and channel switching server
TW202423095A (en) Automatic generation of video content in response to network interruption
WO2009140909A1 (en) Method and system for forcibly transferring multicast message, route apparatus and terminal apparatus
WO2010105550A1 (en) Method and apparatus for switching play modes
US11582125B2 (en) Repair mechanism for adaptive bit rate multicast
CN101998143A (en) Method for multicasting video data, unicast server and client
WO2016101626A1 (en) Channel code stream processing method, device, terminal and system
KR101528268B1 (en) System and method for streaming content to remote locations
JP2022551436A (en) Random Access at Resynchronization Points of DASH Segments

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 200980157123.3

Country of ref document: CN

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

Ref document number: 09840634

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 09840634

Country of ref document: EP

Kind code of ref document: A1