WO2014187421A1 - 一种iptv的频道切换方法和装置、终端 - Google Patents

一种iptv的频道切换方法和装置、终端 Download PDF

Info

Publication number
WO2014187421A1
WO2014187421A1 PCT/CN2014/079882 CN2014079882W WO2014187421A1 WO 2014187421 A1 WO2014187421 A1 WO 2014187421A1 CN 2014079882 W CN2014079882 W CN 2014079882W WO 2014187421 A1 WO2014187421 A1 WO 2014187421A1
Authority
WO
WIPO (PCT)
Prior art keywords
data stream
channel
original
target
receiving
Prior art date
Application number
PCT/CN2014/079882
Other languages
English (en)
French (fr)
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 中兴通讯股份有限公司
Publication of WO2014187421A1 publication Critical patent/WO2014187421A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving encoded video stream packets from an IP network
    • H04N21/4383Accessing a communication channel
    • H04N21/4384Accessing a communication channel involving operations to reduce the access time, e.g. fast-tuning for reducing channel switching latency
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • H04L65/611Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for multicast or broadcast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • H04N21/64322IP

Definitions

  • IPTV Internet Protocol Television
  • IPTV Internet Protocol Television
  • BACKGROUND OF THE INVENTION Internet Protocol Television (IPTV) is a technology that provides a variety of interactive services, including digital television, to a home user by using a broadband cable television network, and integrates technologies such as Internet, multimedia, and communication. Integral, with the inherent advantages of symmetric interaction of IP networks, programs can be sent to users through broadcast, multicast, unicast and other methods. Users can enjoy IPTV services through computers, network set-top boxes and ordinary TV sets, mobile terminals, etc. at home, and select specific channels to watch programs.
  • the connection between the video image of the previous program and the video image to be played is often not smooth enough, and problems such as black screen, image jitter, signal interruption, etc. often occur, which seriously affects the user experience.
  • One solution to the prior art is to retain the last frame of the previous channel, the last image, during channel switching until a new channel program is acquired. In this way, the user perceives that when the channel is switched, it stays in the last image for a few seconds, and then starts to play the program screen of the new channel, which causes the user to wait, which is easy to cause people to get bored, thereby reducing the user experience.
  • the present invention provides a channel switching method and apparatus and terminal for IPTV, so as to at least solve the problem that the picture is stagnant or the quality is low and the user experience is poor during channel switching in the prior art.
  • the present invention provides a channel switching method for an IPTV, including: receiving a channel switching instruction of a user, where the channel switching instruction carries first target channel information; according to the channel switching instruction Receiving, by the first target channel, the first target data stream, while continuing to receive and play the original data stream from the original channel; if the key frame first packet data is found in the received first target data stream, stopping from the original The channel receives and plays the original data stream, and starts playing the first target data stream.
  • the method further includes: starting a timing portion; if the key frame first packet data is found in the received first target data stream, stopping receiving and playing the original data stream from the original channel, Starting to play the first target data stream includes: if the key frame first packet data is found in the received first target data stream before the timing portion times out, stopping receiving and playing from the original channel The original data stream starts playing the first target data stream; causing the timing unit to stop timing.
  • the method further includes: The timing unit times out to stop receiving and playing the original data stream from the original channel.
  • the receiving, according to the channel switching instruction, the first target data stream from the first target channel, while continuing to receive and play the original data stream from the original channel includes: establishing, according to the channel switching instruction, the terminal and the The session of the first target channel receives the first target data stream through the established session while retaining the session of the terminal with the original channel, and continues to receive the original data stream through the reserved session.
  • the stopping receiving and playing the original data stream from the original channel, starting to play the first target data stream comprises: releasing a session of the terminal with the original channel, stopping stopping the original data stream to a decoding driver Transmitting, transmitting the first target data stream to the decoding driver.
  • the method further includes: receiving a channel switching instruction of the user again, where the channel switching instruction carries the second target channel information; forcibly stopping from the original Receiving and playing the original data stream by the channel; receiving the second target data stream from the second target channel according to the channel switching instruction received again, while continuing to receive and play the first from the first target channel Target data stream; if the key frame first packet data is found in the received second target data stream, stopping receiving and playing the first target data stream from the first channel, starting to play the second target data flow.
  • the present invention further provides an IPTV channel switching apparatus, including: an instruction receiving unit, configured to receive a channel switching instruction of a user, where the channel switching instruction carries first target channel information; and a receiving and maintaining unit is set to Receiving, according to the channel switching instruction received by the instruction receiving unit, the first target data stream from the first target channel, and continuing to receive and play the original data stream from the original channel; a search unit, configured to search for key frame first packet data in the first target data stream received by the receiving and maintaining unit; and a playback conversion unit configured to: if the search unit is found to find the key frame first packet data, stop from The original channel receives and plays the original data stream, and starts playing the first target data stream.
  • an instruction receiving unit configured to receive a channel switching instruction of a user, where the channel switching instruction carries first target channel information
  • a receiving and maintaining unit is set to Receiving, according to the channel switching instruction received by the instruction receiving unit, the first target data stream from the first target channel, and continuing to receive and play the original data stream from the original
  • the device further includes: a timing activation unit configured to activate a timing portion; the playback conversion unit configured to: if the timing portion of the timing activation unit is timed out before the timeout expires, the searching unit finds The key frame first packet data stops receiving and playing the original data stream from the original channel, and starts playing the first target data stream; and the timing stop unit is configured to stop the timing portion from timing.
  • the play conversion unit is further configured to: stop receiving and playing the original data stream from the original channel if the timing unit initiated by the timing start unit times out.
  • the receiving and maintaining unit is configured to establish a session of the terminal with the first target channel according to the channel switching instruction, and receive the first target data stream by using the established session, while retaining the terminal and the original The session of the channel continues to receive the original data stream through the reserved session.
  • the play conversion unit is configured to release the session between the terminal and the original channel, stop transmitting the original data stream to the decoding driver, and send the first target data stream to the decoding driver.
  • the command receiving unit is further configured to receive a channel switching instruction of the user again, where the channel switching instruction carries the second target channel information;
  • the device further includes a forced stop unit, and is further configured to receive according to the instruction The channel switching instruction received by the unit again forcibly stops receiving and playing the original data stream from the original channel;
  • the receiving and maintaining unit is further configured to receive the channel switching instruction received according to the instruction receiving unit again.
  • the present invention provides a terminal, including the IPTV channel switching apparatus according to any one of the present invention.
  • the method and device for switching the channel of the IPTV provided by the embodiment of the present invention, when receiving the channel switching instruction of the user, can receive the first target data stream from the new channel, that is, the first target channel, according to the channel switching instruction.
  • the original data stream of the old channel that is, the original channel.
  • the original data stream is stopped and played from the original channel, and the received first target data stream is started to be played.
  • the program picture of the original channel can continue to be of high quality.
  • the user can also see the normally played program screen during the channel switching, thereby effectively reducing the annoyance that is easy to occur during the user waiting process, and effectively improving the user experience.
  • FIG. 1 is a flowchart of a channel switching method for an IPTV according to an embodiment of the present invention
  • FIG. 2 is a flowchart of session establishment in a channel switching method for an IPTV according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a channel switching apparatus of an IPTV according to an embodiment of the present invention
  • FIG. 5 is a schematic diagram of a structure of a channel switching apparatus of an IPTV according to an embodiment of the present invention. Another embodiment of the channel switching device of the IPTV provided by the embodiment.
  • DETAILED DESCRIPTION OF THE INVENTION The present invention will be further described in detail below with reference to the accompanying drawings.
  • an embodiment of the present invention provides a channel switching method for an IPTV, including the following steps:
  • S11 receiving a channel switching instruction of the user, where the channel switching instruction carries the first target channel information
  • S12 receiving, according to the channel switching instruction, the first target data stream from the first target channel, and continuing from the original channel Receiving and playing the original data stream
  • S13 If the key frame first packet data is found in the received first target data stream, stopping receiving and playing the original data stream from the original channel, and starting to play the first target data stream.
  • the channel switching method of the IPTV when receiving the channel switching instruction of the user, can receive the first target data stream from the new channel, that is, the first target channel, according to the channel switching instruction, and is not immediately Stop receiving and playing the original data stream of the old channel, that is, the original channel, and stop receiving and playing the original channel when the key frame first packet data is found in the received first target data stream.
  • the original data stream is described, and the received first target data stream is started to be played. In this way, during the channel switching process, the data stream of the original channel and the data stream of the target channel are received in parallel for a period of time, and when the data stream of the target channel is not ready for playback, the program picture of the original channel can continue to be of high quality.
  • a message from an input device such as a touch screen, a mouse, or a keyboard may be received by means of a query or an interruption, thereby obtaining information about a new channel (ie, a target channel) selected by the user.
  • the processor After receiving the user's channel switching instruction, the processor performs a series of operations to achieve reception and playback of the original channel's original data stream and reception and playback of the target channel's target data stream.
  • the manner of receiving and playing may be unicast, multicast, or broadcast, which is not limited by the present invention.
  • the IPTV terminal needs to establish a communication protocol with the server separately.
  • the IPTV terminal needs to join the multicast group or the broadcast group of the program.
  • receiving a data stream from a specific channel of a server is a cyclical process. Specifically, when a new channel is switched to a channel, not all the received data is sent to the decoder for decoding and playing in order, but the key frame first packet data is first searched in the received data stream. The key frame first packet data begins to be sent to the decoder for playback.
  • the key frame data includes the complete information of one frame of image, and the image can be completely and accurately displayed without relying on the data of other frames.
  • the image displayed only by the non-key frame data may be garbled.
  • the original data stream of the original channel and the first target data stream of the first target channel are received in parallel for a period of time, and the key is found in the newly received first target data stream.
  • the first packet data is framed, the original data stream is stopped and played.
  • the time for receiving the original data stream and the first target data stream in parallel may be limited, if the received time is received within the defined time Finding the key frame first packet data in the first target data stream, stopping receiving and playing the original data stream from the original channel, and starting to play the first target data stream; if, after exceeding the limited time, If the first packet data of the key frame is not found, the reception and playback from the original channel are directly stopped.
  • the original data stream thereby avoiding the situation that the original data stream of the original channel is continuously received and played when the first target data stream is received or the data packet is searched, thereby effectively improving the stability of the IPTV terminal system.
  • the timing unit includes a timer.
  • the method may further include the step of activating the timing portion. That is to say, after receiving the channel switching instruction of the user, the timing unit starts counting down. Then, in step S12, according to the channel switching instruction, the first target data stream is received from the first target channel while continuing to receive and play the original data stream from the original channel.
  • the step S13 may specifically include: if the key frame first packet data is found in the received first target data stream before the timeout portion expires, stopping receiving and playing the original channel from the original channel a data stream, starting to play the first target data stream; causing the timing portion to stop timing. It can be seen that when the first target data stream can be normally received and searched, the role of the timing portion is not significant. However, in this embodiment, the timing unit is set in consideration of the fact that the first target data stream cannot be normally received and searched, and the stability of data stream reception can be improved. That is, after step S12, the method may further include: stopping receiving and playing the original data stream from the original channel if the timing portion times out.
  • the data stream can be received from the channel by establishing a session with the specific channel of the server and associating the data stream receiving thread with the session.
  • receiving the first target data stream from the first target channel according to the channel switching instruction, and continuing to receive and play the original data stream from the original channel may include: establishing, according to the channel switching instruction, The session of the terminal with the first target channel and the first target data stream is received through the established session, while retaining the session of the terminal with the original channel and continuing to receive the original data stream through the reserved session.
  • step S13 if the key frame first packet data is found in the received first target data stream, stopping receiving and playing the original data stream from the original channel, starting to play the first target data stream
  • the method may include: if the key frame first packet data is found in the received first target data stream, releasing a session between the terminal and the original channel, and stopping sending the original data stream to the decoding driver, where The first target data stream is sent to the decoding driver.
  • the decoding driver stops playing the original data stream of the original channel and then plays the first target data stream of the first target channel.
  • the original data stream when the original data stream is time-limited in step S12 by the timing unit, if the timing unit times out, the original data stream may be stopped from being sent to the decoding driver by releasing the session between the terminal and the original channel. Terminate the reception and playback of the original data stream. If the user is in the process of changing channels, he accidentally clicks on a channel and then immediately recognizes the error and re-clicks the correct channel. In this case, if the processor has not proceeded to step S12 at this time, and does not start receiving the data stream of the channel that is mistakenly clicked, the correct channel that is re-clicked overwrites the channel that was previously clicked. Perform the next steps with the re-clicked channel as the first target channel.
  • step S12 The method may further include the steps of: receiving a channel switching instruction of the user again, the channel switching instruction carrying the second target channel information; forcibly stopping receiving and playing the original data stream from the original channel; Receiving the channel switching instruction, receiving a second target data stream from the second target channel while continuing to receive and play the first target data stream from the first target channel; Finding the key frame first packet data in the two target data streams, stopping receiving and playing the first target data stream from the first channel, and starting to play the second target data stream.
  • the processor when the processor receives the channel switching instruction of the user while receiving the first target data stream, the processor forcibly stops receiving and playing the data stream from the earliest channel, thereby saving system resources. , so that the switching channel operation can maintain high efficiency.
  • the flow of establishing and releasing a session and the channel switching method of the IPTV provided by the present invention are described in detail below with reference to the accompanying drawings.
  • the establishment and release of the session can be explained in detail by the flow shown in FIG. 2.
  • the processor determines whether it is necessary to establish a session or release a session by maintaining a number of functional modules and corresponding states. As shown in FIG.
  • Step 201 Determine whether the session A exists by checking the corresponding flag bit, if yes, perform step 207, and if not, perform step 202.
  • Step 202 Create a new session according to the address and port information carried in the play command, and join the corresponding multicast group, and go to step 203.
  • Step 203 The identification data receiving thread A needs to re-find the first packet of the key frame, that is, put a flag bit. Go to step 204.
  • Step 204 Perform session operation between the session A and the data receiving thread A. Go to step 205.
  • Step 205 Set the flag position of the session A to "present”. Go to step 206.
  • Step 206 The flag position of the session to be released is "B", and the new channel play instruction processing flow ends.
  • Step 207 Determine whether the session B associated with the data receiving thread B exists. If yes, go to step 213. If not, go to step 208.
  • Step 208 similar to step 202, proceeds to step 209.
  • Step 209 similar to step 203, proceeds to step 210.
  • Step 210, similar to step 204 proceeds to step 211.
  • Step 212 Similar to step 206, the new channel play instruction processing flow ends.
  • Step 213 Determine whether the flag value to be released is one. If yes, go to step 214.
  • Step 214 Disassociate the session A from the data receiving thread A, and proceed to step 215.
  • Step 215 Force the session to be released. If the user's channel switching instruction is received again, it is also possible to proceed to step 202 to create a new session.
  • Step 216 Determine whether the flag bit of the session that needs to be released is "B", and if yes, go to step 217. Step 217 is similar to step 214. Go to step 218. Step 218 is similar to step 215. If the user's channel switching instruction is received again, it is also possible to proceed to step 215 to create a new session 8.
  • FIG. 3 is a detailed flowchart of a channel switching method for an IPTV according to an embodiment of the present invention.
  • Step 301 Listen to the data, and proceed to step 302.
  • Step 302 Determine whether the data stream has been received. If not, go to step 301, and if yes, go to step 303.
  • Step 303 Determine whether the data receiving thread B has identified that the first key packet is found for the first time, and determine whether the flag value to be released is A. If both conditions are met, go to step 312, otherwise go to step 304.
  • Step 304 Acquire audio and video data of the source, for example, may be acquired by using a Poll function, and the process proceeds to step 305.
  • Step 305 Take the audio and video data packet of the source, and go to step 306.
  • Step 306 Determine whether it is necessary to re-find the key frame first packet. If not, go to step 309, if necessary, go to step 307.
  • Step 307 Determine whether it is the first time to find the key frame first packet, if not, go to step 305, and if yes, go to step 308.
  • Step 308 The key frame first packet has been found in the identification data receiving thread A, and the key frame first packet does not need to be re-searched, and the process proceeds to step 309.
  • Step 309 The data stream is sent to the driver for decoding and playing, and the process proceeds to step 310.
  • Step 310 Whether the data packet is empty. If it is not empty, go to step 305. If it is empty, go to step 304.
  • Step 311 Disassociate the session A from the data receiving thread A, and proceeds to step 312.
  • Step 313 Session A is set to not exist, and the process proceeds to step 301.
  • the present invention further provides a channel switching device for IPTV. As shown in FIG.
  • the device includes: an instruction receiving unit 11 configured to receive a channel switching instruction of a user, the channel The switching instruction carries the first target channel information; the receiving and maintaining unit 12 is configured to receive the first target data stream from the first target channel according to the channel switching instruction received by the instruction receiving unit 11, and continue to receive from the original channel. And playing the original data stream;
  • the searching unit 13 is configured to search for the key frame first packet data in the first target data stream received by the receiving and maintaining unit 12;
  • the play converting unit 14 is configured to: if the searching unit 13 finds the key frame first packet data, Stop receiving and playing the original data stream from the original channel, and start playing the first target data stream.
  • the channel switching device of the IPTV provided by the embodiment of the present invention, when the command receiving unit 11 receives the channel switching instruction of the user, the receiving and maintaining unit 12 can receive the first channel from the new channel, that is, the first target channel, according to the channel switching instruction.
  • the target data stream does not immediately stop receiving and playing the original data stream of the old channel, that is, the original channel.
  • the search unit 13 finds the key frame first packet data in the received first target data stream,
  • the playback conversion unit 14 stops receiving and playing the original data stream from the original channel, and starts playing the received first target data stream.
  • the data stream of the original channel and the data stream of the target channel are received in parallel for a period of time, and when the data stream of the target channel is not ready for playback, the program picture of the original channel can continue to be of high quality.
  • the user can also see the normally played program screen during the channel switching, thereby effectively reducing the annoyance that is easy to occur during the user waiting process, and effectively improving the user experience.
  • FIG. 1 In order to enhance the stability of the operation of the device, preferably, as shown in FIG.
  • the device may further include: a timing activation unit 15 configured to activate a timing portion; and a playback conversion unit 14 configured to activate the unit 15 at the timing Before the timing of the startup is timed out, the searching unit 13 finds the key frame first packet data, stops receiving and playing the original data stream from the original channel, and starts playing the first target data stream; 16, set to stop the timing of the timing.
  • the play conversion unit 14 is further arranged to stop receiving and playing the original data stream from the original channel if the timing portion activated by the timing activation unit 15 times out.
  • the data stream can be received from the channel by establishing a session with the specific channel of the server and associating the data stream receiving thread with the session.
  • the receiving and maintaining unit 12 may be configured to establish a session of the terminal with the first target channel according to the channel switching instruction, and receive the first target data stream through the established session, while retaining the session between the terminal and the original channel. And continuing to receive the original data stream through the reserved session.
  • the play conversion unit 13 is configured to release the session between the terminal and the original channel, stop transmitting the original data stream to the decoding driver, and send the first target data stream to the decoding driver. If the user is in the process of changing channels, he accidentally clicks on a channel and then immediately recognizes the error and re-clicks the correct channel. In this case, the command receiving unit 11 is further configured to receive the frequency of the user again.
  • the apparatus further includes a forced stop unit 17 configured to forcibly stop receiving and playing from the original channel according to the channel switching instruction received by the instruction receiving unit 11 again The original data stream.
  • the receiving maintaining unit 12 is further configured to receive the second target data stream from the second target channel according to the channel switching instruction received again by the instruction receiving unit 11, while continuing to receive and play the first target channel from the The first target data stream.
  • the play conversion unit 14 is further configured to stop receiving and playing the first target data stream from the first channel if the key frame first packet data is found in the second target data stream received by the receiving and maintaining unit 12 , starting to play the second target data stream.
  • the embodiment of the present invention further provides a terminal, where the mobile terminal is provided with any channel switching device of the IPTV provided by the foregoing embodiment, so that corresponding beneficial technical effects can also be achieved, and the foregoing has been detailed. Description, no longer repeat here. While the preferred embodiments of the present invention have been disclosed for purposes of illustration, those skilled in the art will recognize that various modifications, additions and substitutions are possible, and the scope of the invention should not be limited to the embodiments described above.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种IPTV的频道切换方法和装置、终端,涉及通信技术领域,能够解决现有技术中频道切换期间画面停滞或质量不高,用户体验差的问题。所述方法包括:接收用户的频道切换指令,所述频道切换指令中携带第一目标频道信息;根据所述频道切换指令从所述第一目标频道接收第一目标数据流,同时继续从原频道接收和播放原数据流;如果在接收到的所述第一目标数据流中查找到关键帧首包数据,停止从所述原频道接收和播放所述原数据流,开始播放所述第一目标数据流。本发明适用于各种可使用网际协议电视的终端。

Description

一种 IPTV的频道切换方法和装置、 终端 技术领域 本发明涉及网际协议电视 (IPTV) 技术领域, 特别是涉及一种 IPTV的频道切换 方法和装置、 终端。 背景技术 网际协议电视(Internet Protocol television, 简称为 IPTV)是一种利用宽带有线电 视网向家庭用户提供包括数字电视在内的多种交互式服务的技术, 其集互联网、 多媒 体、 通讯等技术于一体, 具有 IP网的对称交互先天优势, 可以通过广播, 组播, 单播 等多种方式将节目发送给用户。 用户在家可以通过计算机、 网络机顶盒配合普通电视 机、 移动终端等方式享受 IPTV服务, 选择特定频道收看节目。 在用户进行频道切换时, 上一个节目的视频图像和即将播放的视频图像之间的衔 接经常不够流畅, 并且常常出现黑屏、 图像抖动、 信号中断等问题, 严重影响用户的 体验。 现有技术的一种解决方法是, 在频道切换时保留上一个频道的最后一帧即最后一 幅图像, 直到获取新频道节目。 这样在用户感知上的体现就是频道切换时会停留在最 后一幅图像数秒, 才开始播放新的频道的节目画面, 这就造成用户等待, 容易使人产 生厌烦情绪, 从而降低了用户体验。 发明内容 本发明提供了一种 IPTV的频道切换方法和装置、 终端, 以至少解决现有技术中 频道切换期间画面停滞或质量不高, 用户体验差的问题。 为解决上述技术问题, 一方面, 本发明提供一种 IPTV的频道切换方法, 包括: 接收用户的频道切换指令, 所述频道切换指令中携带第一目标频道信息; 根据所述频 道切换指令从所述第一目标频道接收第一目标数据流, 同时继续从原频道接收和播放 原数据流; 如果在接收到的所述第一目标数据流中查找到关键帧首包数据, 停止从所 述原频道接收和播放所述原数据流, 开始播放所述第一目标数据流。 优选地, 所述在接收用户的频道切换指令之后, 且在所述根据所述频道切换指令 从所述第一目标频道接收第一目标数据流, 同时继续从原频道接收和播放原数据流之 前, 所述方法还包括: 启动定时部; 所述如果在接收到的所述第一目标数据流中查找 到关键帧首包数据, 停止从所述原频道接收和播放所述原数据流, 开始播放所述第一 目标数据流包括: 如果在所述定时部超时前, 在接收到的所述第一目标数据流中查找 到关键帧首包数据, 则停止从所述原频道接收和播放所述原数据流, 开始播放所述第 一目标数据流; 使所述定时部停止计时。 优选地, 所述根据所述频道切换指令从所述第一目标频道接收第一目标数据流, 同时继续从所述原频道接收和播放所述原数据流之后, 所述方法还包括: 如果所述定 时部超时, 停止从所述原频道接收和播放所述原数据流。 优选地, 所述根据所述频道切换指令从所述第一目标频道接收第一目标数据流, 同时继续从原频道接收和播放原数据流包括: 根据所述频道切换指令, 建立终端与所 述第一目标频道的会话并通过建立的所述会话接收第一目标数据流, 同时保留终端与 所述原频道的会话, 并通过保留的所述会话继续接收原数据流。 优选地, 所述停止从所述原频道接收和播放所述原数据流, 开始播放所述第一目 标数据流包括: 释放终端与所述原频道的会话,停止将所述原数据流向解码驱动发送, 将所述第一目标数据流向所述解码驱动发送。 优选地, 在根据所述频道切换指令从所述第一目标频道接收第一目标数据流, 同 时继续从原频道接收和播放原数据流之后, 且在所述停止从所述原频道接收和播放所 述原数据流, 开始播放所述第一目标数据流之前, 所述方法还包括: 再次接收用户的 频道切换指令, 所述频道切换指令中携带第二目标频道信息; 强制停止从所述原频道 接收和播放所述原数据流; 根据再次接收的所述频道切换指令, 从所述第二目标频道 接收第二目标数据流,同时继续从所述第一目标频道接收和播放所述第一目标数据流; 如果在接收到的所述第二目标数据流中查找到关键帧首包数据, 停止从所述第一频道 接收和播放所述第一目标数据流, 开始播放所述第二目标数据流。 另一方面, 本发明还提供一种 IPTV的频道切换装置, 包括: 指令接收单元, 设置为接收用户的频道切换指令, 所述频道切换指令中携带第一 目标频道信息; 接收维持单元, 设置为根据所述指令接收单元接收的所述频道切换指令, 从所述 第一目标频道接收第一目标数据流, 同时继续从原频道接收和播放原数据流; 查找单元, 设置为在所述接收维持单元接收到的所述第一目标数据流中查找关键 帧首包数据; 播放转换单元, 设置为如果所示查找单元查找到关键帧首包数据, 停止从原频道 接收和播放原数据流, 开始播放所述第一目标数据流。 优选地, 所述装置, 还包括: 定时启动单元, 设置为启动定时部; 所述播放转换单元, 设置为如果在所述定时 启动单元启动的所述定时部超时前, 所述查找单元查找到所述关键帧首包数据, 停止 从所述原频道接收和播放所述原数据流, 开始播放所述第一目标数据流; 定时停止单 元, 设置为使所述定时部停止计时。 优选地, 所述播放转换单元还设置为: 如果所述定时启动单元启动的所述定时部 超时, 停止从所述原频道接收和播放所述原数据流。 优选地, 所述接收维持单元, 设置为根据所述频道切换指令, 建立终端与所述第 一目标频道的会话并通过建立的所述会话接收第一目标数据流, 同时保留终端与所述 原频道的会话并通过保留的所述会话继续接收原数据流。 优选地, 所述播放转换单元, 设置为释放终端与所述原频道的会话, 停止将所述 原数据流向解码驱动发送, 将所述第一目标数据流向所述解码驱动发送。 优选地, 所述指令接收单元, 还设置为再次接收用户的频道切换指令, 所述频道 切换指令中携带第二目标频道信息; 所述装置还包括强制停止单元, 还设置为根据所 述指令接收单元再次接收的频道切换指令, 强制停止从所述原频道接收和播放所述原 数据流; 所述接收维持单元, 还设置为根据所述指令接收单元再次接收的所述频道切 换指令, 从所述第二目标频道接收第二目标数据流, 同时继续从所述第一目标频道接 收和播放所述第一目标数据流; 所述播放转换单元, 还设置为如果在所述接收维持单 元接收到的所述第二目标数据流中查找到关键帧首包数据, 停止从所述第一频道接收 和播放所述第一目标数据流, 开始播放所述第二目标数据流。 另一方面, 本发明还提供一种终端, 包括本发明提供的任一项所述 IPTV频道切 换装置。 本发明实施例提供的 IPTV的频道切换方法和装置、 终端, 在接收到用户的频道 切换指令时, 能够根据该频道切换指令, 从新频道、 即所述第一目标频道接收第一目 标数据流, 同时并不立即停止对老频道、 即原频道的原数据流的接收和播放, 当在接 收到的所述第一目标数据流中查找到关键帧首包数据时, 才停止从所述原频道接收和 播放所述原数据流, 并开始播放接收到的第一目标数据流。这样, 在频道切换过程中, 原频道的数据流和目标频道的数据流在一段时间内并行接收, 在目标频道的数据流还 没有准备好进行播放时, 原频道的节目画面还可以继续高质量地播放, 用户在频道切 换期间还能够看到正常播放的节目画面, 从而有效减轻了用户等待过程中容易产生的 厌烦情绪, 有效提升了用户体验。 附图说明 图 1 是本发明的实施例提供的 IPTV的频道切换方法的一种流程图; 图 2 是本发明实施例提供的 IPTV的频道切换方法中的会话建立的一种流程图; 图 3 是本发明的实施例提供的 IPTV的频道切换方法中, 数据流接收的一种流程 图; 图 4 是本发明的实施例提供的 IPTV的频道切换装置的一种结构示意图; 图 5 是本发明的实施例提供的 IPTV的频道切换装置的另一种结构示意图。 具体实施方式 以下结合附图, 对本发明进行进一步详细说明。 应当理解, 此处所描述的具体实 施例仅仅用以解释本发明, 并不限定本发明。 在观看 IPTV节目时, 人们常常遇到在节目播放中需要切换频道, 使播放窗口的 画面由原频道切换到目标频道的情况。 而且, 由于误操作或者用户改变观看意愿, 这 种频道切换还可能频繁发生。 为了描述方便, 以下实施例中, 将用户正在观看的频道 定义为原频道, 将第一次频道切换的目标频道称为第一目标频道, 将第二次频道切换 的目标频道称为第二目标频道, 以此类推。 第一目标频道和第二目标频道等统称目标 频道。 如图 1所示, 本发明的实施例提供一种 IPTV的频道切换方法, 包括以下步骤:
S11 , 接收用户的频道切换指令, 所述频道切换指令中携带第一目标频道信息; S12, 根据所述频道切换指令, 从所述第一目标频道接收第一目标数据流, 同时继 续从原频道接收和播放原数据流; S13,如果在接收到的所述第一目标数据流中查找到关键帧首包数据,停止从所述 原频道接收和播放所述原数据流, 开始播放所述第一目标数据流。 本发明实施例提供的 IPTV的频道切换方法, 在接收到用户的频道切换指令时, 能够根据该频道切换指令, 从新频道、 即所述第一目标频道接收第一目标数据流, 同 时并不立即停止对老频道、 即原频道的原数据流的接收和播放, 当在接收到的所述第 一目标数据流中查找到关键帧首包数据时, 才停止从所述原频道接收和播放所述原数 据流, 并开始播放接收到的第一目标数据流。 这样, 在频道切换过程中, 原频道的数 据流和目标频道的数据流在一段时间内并行接收, 在目标频道的数据流还没有准备好 进行播放时, 原频道的节目画面还可以继续高质量地播放, 用户在频道切换期间还能 够看到正常播放的节目画面, 从而有效减轻了用户等待过程中容易产生的厌烦情绪, 有效提升了用户体验。 具体的, 在步骤 S11中, 可以通过查询或中断等方式接收来自触摸屏、 鼠标或键 盘等输入设备的消息, 从而获知用户选择的新频道 (即目标频道) 的有关信息。 在接 收到用户的频道切换指令之后, 处理器会进行一系列的操作去实现对原频道的原数据 流的接收和播放以及对目标频道的目标数据流的接收和播放。 接收和播放的方式可以 是单播、 组播或广播, 本发明对此不做限定。 当通过单播方式接收和播放节目时, 需 要将 IPTV终端与服务器单独建立通信协议, 当通过组播或广播方式接收和播放节目 时, 需要使 IPTV终端加入该节目的组播组或广播组。 需要说明的是, 在 IPTV中, 终端从服务器的特定频道接收数据流是一个循环持 续的过程。 具体的, 当新切换到一个频道时, 并不是将所有接收到的数据都按顺序发 送到解码器进行解码播放, 而是首先在所接收到的数据流中查找关键帧首包数据, 从 该关键帧首包数据开始发送到解码器播放。 这是因为, 关键帧数据包括一帧图像的完 整信息, 无需依赖其他帧的数据就能将图像完整准确的显示出来。 而非关键帧, 由于 其需要依靠关键帧的数据来正常显示图像, 因此,在没有找到其对应的关键帧数据时, 只依靠非关键帧数据显示的图像会出现乱码。 本实施例中, 在频道切换过程中, 有一段时间是原频道的原数据流和第一目标频 道的第一目标数据流并行接收的, 当在新接收的第一目标数据流中查找到关键帧首包 数据时, 才停止接收和播放原数据流。 但是, 本发明不限于此, 在本发明的其他实施 例中, 还可以对并行接收原数据流和第一目标数据流的时间进行限定, 在所限定的时 间内, 如果在接收到的所述第一目标数据流中查找到关键帧首包数据, 停止从所述原 频道接收和播放所述原数据流, 开始播放所述第一目标数据流; 相反, 如果超过该限 定的时间后, 还没有查找到该关键帧首包数据, 则直接停止从所述原频道接收和播放 所述原数据流, 从而避免了当第一目标数据流接收或数据包查找等出现错误时, 原频 道的原数据流会持续不断地接收和播放的情况, 有效提高了 IPTV终端系统的稳定性。 具体的, 可以通过定时部来实现上述对时间的限定。 该定时部中包含定时器。 例 如, 在本发明的一个实施例中, 步骤 S11和 S12之间, 该方法还可以包括启动定时部 的步骤。 也就是说, 在接收到用户的频道切换指令后, 定时部开始倒计时。 然后, 步 骤 S12中, 根据所述频道切换指令, 从所述第一目标频道接收第一目标数据流, 同时 继续从原频道接收和播放原数据流。 此时, 步骤 S13具体可以包括: 如果在所述定时 部超时前, 在接收到的所述第一目标数据流中查找到关键帧首包数据, 停止从所述原 频道接收和播放所述原数据流, 开始播放所述第一目标数据流; 使所述定时部停止计 时。 可以看出, 当第一目标数据流能够被正常接收和查找的情况下, 定时部的作用并 不显著。 但, 本实施例中, 定时部是考虑到第一目标数据流无法被正常接收和查找的 情况而设置的, 可以提高数据流接收的稳定性。 即, 在步骤 S12之后, 所述方法还可 包括: 如果所述定时部超时, 停止从所述原频道接收和播放所述原数据流。 具体的, 可以通过使终端与服务器的特定频道建立会话, 将数据流接收线程与该 会话关联, 来实现从该频道接收数据流。 例如, 在步骤 S12中, 根据所述频道切换指 令从所述第一目标频道接收第一目标数据流, 同时继续从原频道接收和播放原数据流 具体可以包括: 根据所述频道切换指令, 建立终端与所述第一目标频道的会话并通过 建立的所述会话接收第一目标数据流, 同时保留终端与所述原频道的会话并通过保留 的所述会话继续接收原数据流。 在步骤 S13中, 如果在接收到的所述第一目标数据流中查找到关键帧首包数据, 停止从所述原频道接收和播放所述原数据流, 开始播放所述第一目标数据流具体可以 包括: 如果在接收到的所述第一目标数据流中查找到关键帧首包数据, 则释放终端与 所述原频道的会话, 停止将所述原数据流向解码驱动发送, 将所述第一目标数据流向 所述解码驱动发送。 这样, 解码驱动就停止了对原频道的原数据流的播放转而对第一 目标频道的第一目标数据流进行播放。 同样的, 当通过定时部来对步骤 S12中接收原数据流进行时间限定时, 如果定时 部超时, 也可以通过释放终端与所述原频道的会话, 停止将所述原数据流向解码驱动 发送来终止对原数据流的接收和播放。 如果用户在换台时, 由于操作不慎, 误点击了一个频道, 而后又马上意识到错误, 重新点击了正确的频道。 在这种情况下, 如果此时处理器还没有进行步骤 S12, 没有 开始接收误点击的频道的数据流,则重新点击的正确的频道覆盖掉之前误点击的频道, 以重新点击的频道为第一目标频道执行后面的步骤。 如果此时处理器已经开始执行步 骤 S12, 即已经在从所述第一目标频道接收第一目标数据流, 同时继续从原频道接收 和播放原数据流了, 那么, 在步骤 12之后, 步骤 S13之前, 所述方法还可包括如下步 骤: 再次接收用户的频道切换指令, 所述频道切换指令中携带第二目标频道信息; 强制停止从所述原频道接收和播放所述原数据流; 根据再次接收的所述频道切换指令, 从所述第二目标频道接收第二目标数据流, 同时继续从所述第一目标频道接收和播放所述第一目标数据流; 如果在接收到的所述第二目标数据流中查找到关键帧首包数据, 停止从所述第一 频道接收和播放所述第一目标数据流, 开始播放所述第二目标数据流。 也就是说, 本实施例中, 当处理器在接收第一目标数据流的同时, 又收到用户的 频道切换指令时, 处理器会强行停止从最早的频道接收和播放数据流,节约系统资源, 从而使切换频道操作能够保持较高的效率。 下面参照附图, 通过具体的实施例详细说明会话的建立和释放的流程以及本发明 提供的 IPTV的频道切换方法。 关于会话的建立和释放可以通过图 2所示的流程来详细说明。 处理器通过维护若 干个功能模块以及相应的状态为来确定是否需要进行建立会话、 或释放会话的操作。 如图 2所示, 会话 A和会话 B分别是终端与不同的频道建立的会话, 其中, 会话 A 与数据接收线程 A相关联,会话 B与数据接收线程 B相关联。该过程可以包括以下步 骤: 步骤 201、 通过查看相应的标志位来确定会话 A是否存在, 如果存在, 则执行步 骤 207, 如果不存在则执行步骤 202。 步骤 202、 根据播放指令中携带的地址和端口信息建立新的会话并加入相应的组 播组, 转入步骤 203。 步骤 203、 标识数据接收线程 A需要重新查找关键帧首包, 即置上一个标志位。 转入步骤 204。 步骤 204、 将会话 A和数据接收线程 A进行关联操作。 转入步骤 205。 步骤 205、 将会话 A的标志位置为 "存在"。 转入步骤 206。 步骤 206、 将需要释放的会话的标志位置为 "B", 新的频道播放指令处理流程结 束。 步骤 207、 确定与数据接收线程 B关联的会话 B是否存在, 如果存在, 转入步骤 213 , 如果不存在, 转入步骤 208。 步骤 208、 类似于步骤 202, 转入步骤 209。 步骤 209、 类似于步骤 203, 转入步骤 210。 步骤 210、 类似于步骤 204, 转入步骤 211。 步骤 211、 类似于步骤 205, 转入步骤 212。 步骤 212、 类似于步骤 206, 新的频道播放指令处理流程结束。 步骤 213、 判断需要释放的标志值是否为一, 如果是, 转入步骤 214, 如果不是, 转入步骤 216。 步骤 214、 将会话 A与数据接收线程 A解除关联关系, 转入步骤 215。 步骤 215、 强制释放掉会话 。 如果再次接收到用户的频道切换指令, 则还可以 转入步骤 202, 新建会话 。 步骤 216、 判断需要释放的会话的标志位是否为 "B ", 如果是, 转入步骤 217。 步骤 217、 类似于步骤 214。 转入步骤 218。 步骤 218、类似于步骤 215。如果再次接收到用户的频道切换指令, 则还可以转入 步骤 215, 新建会话8。 图 3所示为本发明的实施例提供的 IPTV的频道切换方法的一个详细的流程图。 如图 3所示, 假设该线程是基于处理目标频道的数据流的, 终端与该目标频道建立的 会话为会话 B, 会话 B与数据接收线程 B相关联。 而终端与原频道建立的会话为会话 A, 会话 A与数据接收线程 A相关联。 该方法主要包括以下步骤: 步骤 301、 侦听数据, 转入步骤 302。 步骤 302、 判断是否已经接收到数据流, 如果没有, 转入步骤 301, 如果有, 转入 步骤 303。 步骤 303、 判断数据接收线程 B中是否已经标识第一次找到关键帧首包, 判断需 要释放的标志值是否为 A, 如果两个条件都满足, 转入步骤 312, 否则转入步骤 304。 步骤 304、 获取源的音视频数据, 例如可以通过 Poll函数获取, 转入步骤 305。 步骤 305、 取源的音视频数据包, 转入步骤 306。 步骤 306、 确定是否需要重新查找关键帧首包, 如果不需要, 转入步骤 309, 如果 需要, 转入步骤 307。 步骤 307、确定是否是第一次查找到关键帧首包,如果否,转入步骤 305,如果是, 转入步骤 308。 步骤 308、 标识数据接收线程 A中已经找到关键帧首包, 不需要重新查找关键帧 首包, 转入步骤 309。 步骤 309、 下发数据流给驱动进行解码播放, 转入步骤 310。 步骤 310、 数据包是否为空, 如果不为空, 转入步骤 305, 如果为空, 转入步骤 304。 步骤 311、 将会话 A与数据接收线程 A解除关联, 转入步骤 312。 步骤 312、 强制释放掉会话 A, 转入步骤 313。 步骤 313、 会话 A置为不存在, 转入步骤 301。 与前述的 IPTV的频道切换方法相对应,本发明还提供一种 IPTV的频道切换装置, 如图 4所示, 该装置包括: 指令接收单元 11, 设置为接收用户的频道切换指令, 所述频道切换指令中携带第 一目标频道信息; 接收维持单元 12, 设置为根据指令接收单元 11接收的所述频道切换指令, 从所 述第一目标频道接收第一目标数据流, 同时继续从原频道接收和播放原数据流; 查找单元 13, 设置为在所述接收维持单元 12接收到的所述第一目标数据流中查 找关键帧首包数据; 播放转换单元 14, 设置为如果查找单元 13查找到关键帧首包数据, 停止从原频 道接收和播放原数据流, 开始播放所述第一目标数据流。 本发明实施例提供的 IPTV的频道切换装置, 在指令接收单元 11接收到用户的频 道切换指令时, 接收维持单元 12能够根据该频道切换指令, 从新频道、 即所述第一目 标频道接收第一目标数据流, 同时并不立即停止对老频道、 即原频道的原数据流的接 收和播放, 当查找单元 13 在接收到的所述第一目标数据流中查找到关键帧首包数据 时,播放转换单元 14才停止从所述原频道接收和播放所述原数据流, 并开始播放接收 到的第一目标数据流。 这样, 在频道切换过程中, 原频道的数据流和目标频道的数据 流在一段时间内并行接收, 在目标频道的数据流还没有准备好进行播放时, 原频道的 节目画面还可以继续高质量地播放, 用户在频道切换期间还能够看到正常播放的节目 画面, 从而有效减轻了用户等待过程中容易产生的厌烦情绪, 有效提升了用户体验。 为了增强该装置工作的稳定性, 优选的, 如图 5所示, 该装置还可包括: 定时启动单元 15, 设置为启动定时部; 播放转换单元 14, 设置为如果在所述定时启动单元 15启动的所述定时部超时前, 查找单元 13 查找到所述关键帧首包数据, 停止从所述原频道接收和播放所述原数据 流, 开始播放所述第一目标数据流; 定时停止单元 16, 设置为使所述定时部停止计时。 播放转换单元 14还设置为如果所述定时启动单元 15启动的所述定时部超时, 停 止从所述原频道接收和播放所述原数据流。 具体而言, 可以通过使终端与服务器的特定频道建立会话, 将数据流接收线程与 该会话关联, 来实现从该频道接收数据流。 接收维持单元 12, 可以设置为根据所述频 道切换指令, 建立终端与所述第一目标频道的会话并通过建立的所述会话接收第一目 标数据流, 同时保留终端与所述原频道的会话并通过保留的所述会话继续接收原数据 流。 播放转换单元 13, 设置为释放终端与所述原频道的会话, 停止将所述原数据流向 解码驱动发送, 将所述第一目标数据流向所述解码驱动发送。 如果用户在换台时, 由于操作不慎, 误点击了一个频道, 而后又马上意识到错误, 重新点击了正确的频道。 这种情况下, 指令接收单元 11, 还设置为再次接收用户的频 道切换指令, 所述频道切换指令中携带第二目标频道信息; 该装置还包括强制停止单 元 17, 设置为根据指令接收单元 11再次接收的频道切换指令, 强制停止从所述原频 道接收和播放所述原数据流。 接收维持单元 12, 还设置为根据指令接收单元 11再次接收的所述频道切换指令, 从所述第二目标频道接收第二目标数据流, 同时继续从所述第一目标频道接收和播放 所述第一目标数据流。 播放转换单元 14, 还设置为如果在接收维持单元 12接收到的所述第二目标数据 流中查找到关键帧首包数据, 停止从所述第一频道接收和播放所述第一目标数据流, 开始播放所述第二目标数据流。 相应地, 本发明的实施例还提供一种终端, 该移动终端上设置有前述实施例提供 的任一种 IPTV的频道切换装置, 因此也能实现相应的有益技术效果, 前文已经进行 了详细的说明, 此处不再赘述。 尽管为示例目的, 已经公开了本发明的优选实施例, 本领域的技术人员将意识到 各种改进、 增加和取代也是可能的, 因此, 本发明的范围应当不限于上述实施例。

Claims

权 利 要 求 书 、 一种网际协议电视 IPTV的频道切换方法, 包括: 接收用户的频道切换指令, 所述频道切换指令中携带第一目标频道信息; 根据所述频道切换指令从所述第一目标频道接收第一目标数据流, 同时继 续从原频道接收和播放原数据流;
如果在接收到的所述第一目标数据流中查找到关键帧首包数据, 停止从所 述原频道接收和播放所述原数据流, 开始播放所述第一目标数据流。 、 如权利要求 1所述的方法, 其中, 所述在接收用户的频道切换指令之后, 且在 所述根据所述频道切换指令从所述第一目标频道接收第一目标数据流, 同时继 续从原频道接收和播放原数据流之前, 所述方法还包括:
启动定时部;
所述如果在接收到的所述第一目标数据流中查找到关键帧首包数据, 停止 从所述原频道接收和播放所述原数据流, 开始播放所述第一目标数据流包括: 如果在所述定时部超时前, 在接收到的所述第一目标数据流中查找到关键 帧首包数据, 则停止从所述原频道接收和播放所述原数据流, 开始播放所述第 一目标数据流;
使所述定时部停止计时。 、 如权利要求 2所述的方法, 其中, 所述根据所述频道切换指令从所述第一目标 频道接收第一目标数据流, 同时继续从所述原频道接收和播放所述原数据流之 后, 所述方法还包括:
如果所述定时部超时, 停止从所述原频道接收和播放所述原数据流。 、 如权利要求 1至 3中任一项所述的方法, 其中, 所述根据所述频道切换指令从 所述第一目标频道接收第一目标数据流, 同时继续从原频道接收和播放原数据 流包括:
根据所述频道切换指令, 建立终端与所述第一目标频道的会话并通过建立 的所述会话接收第一目标数据流, 同时保留终端与所述原频道的会话, 并通过 保留的所述会话继续接收原数据流。 、 如权利要求 4所述的方法, 其中, 所述停止从所述原频道接收和播放所述原数 据流, 开始播放所述第一目标数据流包括:
释放终端与所述原频道的会话, 停止将所述原数据流向解码驱动发送, 将 所述第一目标数据流向所述解码驱动发送。 、 如权利要求 1所述的方法, 其中, 在根据所述频道切换指令从所述第一目标频 道接收第一目标数据流, 同时继续从原频道接收和播放原数据流之后, 且在所 述停止从所述原频道接收和播放所述原数据流, 开始播放所述第一目标数据流 之前, 所述方法还包括:
再次接收用户的频道切换指令, 所述频道切换指令中携带第二目标频道信 息;
强制停止从所述原频道接收和播放所述原数据流;
根据再次接收的所述频道切换指令, 从所述第二目标频道接收第二目标数 据流, 同时继续从所述第一目标频道接收和播放所述第一目标数据流;
如果在接收到的所述第二目标数据流中查找到关键帧首包数据, 停止从所 述第一频道接收和播放所述第一目标数据流, 开始播放所述第二目标数据流。 、 一种网际协议电视 IPTV的频道切换装置, 包括:
指令接收单元, 设置为接收用户的频道切换指令, 所述频道切换指令中携 带第一目标频道信息;
接收维持单元, 设置为根据所述指令接收单元接收的所述频道切换指令, 从所述第一目标频道接收第一目标数据流, 同时继续从原频道接收和播放原数 据流;
查找单元, 设置为在所述接收维持单元接收到的所述第一目标数据流中查 找关键帧首包数据;
播放转换单元, 设置为如果所示查找单元查找到关键帧首包数据, 停止从 原频道接收和播放原数据流, 开始播放所述第一目标数据流。 、 如权利要求 7所述的装置, 其中, 还包括: 定时启动单元, 设置为启动定时部; 所述播放转换单元, 设置为如果在所述定时启动单元启动的所述定时部超 时前, 所述查找单元查找到所述关键帧首包数据, 停止从所述原频道接收和播 放所述原数据流, 开始播放所述第一目标数据流;
定时停止单元, 设置为使所述定时部停止计时。 、 如权利要求 8所述的装置, 其中, 所述播放转换单元还设置为: 如果所述定时启动单元启动的所述定时部超时, 停止从所述原频道接收和 播放所述原数据流。 0、 如权利要求 7至 9中任一项所述的装置, 其中, 所述接收维持单元, 设置为根 据所述频道切换指令, 建立终端与所述第一目标频道的会话并通过建立的所述 会话接收第一目标数据流, 同时保留终端与所述原频道的会话并通过保留的所 述会话继续接收原数据流。 1、 如权利要求 10所述的装置, 其中, 所述播放转换单元, 设置为释放终端与所述 原频道的会话, 停止将所述原数据流向解码驱动发送, 将所述第一目标数据流 向所述解码驱动发送。 、 如权利要求 7所述的装置, 其中, 所述指令接收单元, 还设置为再次接收用户的频道切换指令, 所述频道切 换指令中携带第二目标频道信息;
所述装置还包括强制停止单元, 还设置为根据所述指令接收单元再次接收 的频道切换指令, 强制停止从所述原频道接收和播放所述原数据流;
所述接收维持单元, 还设置为根据所述指令接收单元再次接收的所述频道 切换指令, 从所述第二目标频道接收第二目标数据流, 同时继续从所述第一目 标频道接收和播放所述第一目标数据流;
所述播放转换单元, 还设置为如果在所述接收维持单元接收到的所述第二 目标数据流中查找到关键帧首包数据, 停止从所述第一频道接收和播放所述第 一目标数据流, 开始播放所述第二目标数据流。 3、 一种终端, 包括权利要求 7至 12中任一项所述的网际协议电视 IPTV频道切换 装置。
PCT/CN2014/079882 2013-09-18 2014-06-13 一种iptv的频道切换方法和装置、终端 WO2014187421A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310428720.3 2013-09-18
CN201310428720.3A CN104469541A (zh) 2013-09-18 2013-09-18 一种iptv的频道切换方法和装置、终端

Publications (1)

Publication Number Publication Date
WO2014187421A1 true WO2014187421A1 (zh) 2014-11-27

Family

ID=51932965

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/079882 WO2014187421A1 (zh) 2013-09-18 2014-06-13 一种iptv的频道切换方法和装置、终端

Country Status (2)

Country Link
CN (1) CN104469541A (zh)
WO (1) WO2014187421A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104768062B (zh) * 2015-04-01 2018-07-24 西藏阅维信息科技有限公司 实时视频流的无缝切换方法
CN105979354A (zh) * 2015-11-30 2016-09-28 乐视致新电子科技(天津)有限公司 一种频道切换方法及装置
CN106231414B (zh) * 2016-08-16 2020-03-31 青岛海信宽带多媒体技术有限公司 基于iptv的播放模式切换的控制方法及装置
CN106686396B (zh) * 2016-12-30 2020-01-10 广州酷狗计算机科技有限公司 一种切换直播间的方法和系统

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101197962A (zh) * 2008-01-03 2008-06-11 Ut斯达康通讯有限公司 Iptv机顶盒快速平滑切换频道的方法
CN101521817A (zh) * 2009-03-17 2009-09-02 中兴通讯股份有限公司 一种用于改善手机电视播放连续性的方法及其终端
CN101521777A (zh) * 2009-03-31 2009-09-02 深圳创维数字技术股份有限公司 一种数字电视的频道切换方法、系统及数字电视接收终端

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1960450B (zh) * 2006-09-05 2010-05-12 中兴通讯股份有限公司 一种多媒体广播的频道切换方法和装置
CN100496120C (zh) * 2006-12-22 2009-06-03 华为技术有限公司 一种数字媒体频道切换方法及系统
CN101123717B (zh) * 2007-09-25 2012-07-04 中兴通讯股份有限公司 一种实现频道快速切换的装置和方法
US8443410B2 (en) * 2008-06-06 2013-05-14 Telefonaktiebolaget Lm Ericsson (Publ) Method and a user equipment for reserving bandwidth
CN101753973B (zh) * 2008-12-12 2013-01-02 华为技术有限公司 一种频道切换方法、装置和系统
CN101854533B (zh) * 2010-06-10 2012-05-23 华为技术有限公司 频道切换方法、装置及系统

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101197962A (zh) * 2008-01-03 2008-06-11 Ut斯达康通讯有限公司 Iptv机顶盒快速平滑切换频道的方法
CN101521817A (zh) * 2009-03-17 2009-09-02 中兴通讯股份有限公司 一种用于改善手机电视播放连续性的方法及其终端
CN101521777A (zh) * 2009-03-31 2009-09-02 深圳创维数字技术股份有限公司 一种数字电视的频道切换方法、系统及数字电视接收终端

Also Published As

Publication number Publication date
CN104469541A (zh) 2015-03-25

Similar Documents

Publication Publication Date Title
US9479584B2 (en) Synchronous media rendering of demuxed media components across multiple devices
JP5363473B2 (ja) 改善されたメディア・セッション管理の方法と装置
US20090265743A1 (en) Video on demand control method, client device and switching control apparatus
US8873368B2 (en) Method for processing channel switching failure case, terminal device, and channel switching server
WO2015096687A1 (zh) 移动通信终端控制智能电视播放视频文件的方法及装置
WO2014089773A1 (zh) 媒体流共享的方法及终端
WO2011153868A1 (zh) 频道切换方法、装置及系统
KR20110080375A (ko) 화상 통화 연결 방법, 그를 이용한 화상 통신 장치 및 디스플레이 장치
WO2010088836A1 (zh) 用户数据报协议传输模式下丢包补偿方法与装置
WO2014000703A1 (zh) 视频处理方法、终端及字幕服务器
WO2012065550A1 (zh) 多媒体终端和ip机顶盒之间的互动方法和系统
WO2010075743A1 (zh) 一种网络电视显示时间的方法及设备
WO2011022994A1 (zh) 组播实时传输协议会话快速接入的方法、装置及系统
WO2014019357A1 (zh) 实现多屏互动的方法和装置
WO2007128194A1 (fr) Procédé, appareil et système pour lire des données audio/vidéo
WO2009067935A1 (fr) Procédé, dispositif et système de mise en œuvre de services de télévision sur ip
WO2008125054A1 (fr) Procédé, système et appareil pour basculer entre des chaînes appartenant à un flux multimédia
WO2014187421A1 (zh) 一种iptv的频道切换方法和装置、终端
WO2011144025A2 (zh) 一种联网方法、服务端设备、客户端设备及网络系统
WO2009143743A1 (zh) 一种媒体播放方法、系统以及播放代理装置
JP2012503917A (ja) 2つの装置間の通信のための方法及び装置
WO2012174956A1 (zh) Iptv频道切换的方法及装置
WO2013083052A1 (zh) 获取组播地址的方法、装置及系统
WO2012163181A1 (zh) 快速频道切换的实现方法和装置
WO2012152137A1 (zh) 业务模式切换方法及装置、互联网协议电视终端

Legal Events

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

Ref document number: 14801536

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: 14801536

Country of ref document: EP

Kind code of ref document: A1