[go: up one dir, main page]

WO2015117291A1 - Method and device for switching network television program, and television system - Google Patents

Method and device for switching network television program, and television system Download PDF

Info

Publication number
WO2015117291A1
WO2015117291A1 PCT/CN2014/077813 CN2014077813W WO2015117291A1 WO 2015117291 A1 WO2015117291 A1 WO 2015117291A1 CN 2014077813 W CN2014077813 W CN 2014077813W WO 2015117291 A1 WO2015117291 A1 WO 2015117291A1
Authority
WO
WIPO (PCT)
Prior art keywords
program
current
played
network
download
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2014/077813
Other languages
French (fr)
Chinese (zh)
Inventor
岳宗鹤
程菲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Publication of WO2015117291A1 publication Critical patent/WO2015117291A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

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
    • 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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data
    • H04N21/44222Analytics of user selections, e.g. selection of programs or purchase activity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • H04N21/2402Monitoring of the downstream path of the transmission network, e.g. bandwidth available
    • 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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4331Caching operations, e.g. of an advertisement for later insertion during playback
    • 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/61Network physical structure; Signal processing
    • H04N21/6106Network physical structure; Signal processing specially adapted to the downstream path of the transmission network
    • H04N21/6125Network physical structure; Signal processing specially adapted to the downstream path of the transmission network involving transmission via Internet
    • 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

  • the present invention relates to the field of network television applications, and in particular, to a network television program switching method, apparatus, and television system.
  • BACKGROUND OF THE INVENTION At present, the application of network television is more and more widespread, and network television has many advantages over traditional television. Mainly, network television can download program video from a network server through a broadband network and play, so that the user can get rid of the passive acceptance of the current television station. The restrictions of the program being played, the user is free to choose the program that he wants to watch.
  • network television also has shortcomings, that is, when the network television switches programs or videos, it needs to be reconnected, which causes the buffering time of the switch to be too long, which seriously affects the user experience.
  • the present invention is directed to a network television program switching method, apparatus, and television system, in view of the problem that the buffering time of switching existing when a network television switches programs or videos is too long, resulting in a reduced user experience.
  • a method for switching a network television program comprising: pre-downloading an associated program of the current program according to a current program being played and saving to a cache; after the current program is played Determining whether the program to be played is the associated program; if it is determined that the program to be played is the associated program, playing the cached related program.
  • the cached related program is played until the program is successfully switched.
  • the pre-downloading the associated program of the current program and saving to the cache according to the current program being played includes: if it is determined that the currently displayed program is a video-on-demand program, downloading the next video program of the program series and saving To the cache; if it is determined that the current program being played is a live TV channel program, the channel number corresponding to the previous channel number of the currently played channel number and/or the channel number corresponding to the next channel number is downloaded and saved to the cache.
  • the method before the downloading the associated program of the current program and saving to the cache, the method further includes: detecting a broadband usage of the currently played program, determining whether the bandwidth of the current program is satisfied, and determining whether the current broadcast is met; When the bandwidth of the program satisfies the preset condition, it is determined to download the associated program of the current program.
  • the detecting, according to the broadband usage of the currently broadcasted program, determining whether the broadband of the current program meets the preset condition comprises: acquiring a download rate VI required for the currently played program and a current network maximum available rate V2; The ratio of the required download rate VI to the current network maximum available rate V2 is taken as the current network usage rate m; according to the comparison result of the current network usage rate m and the preset network usage threshold, it is determined whether the current network bandwidth meets the preset condition.
  • the determining whether the bandwidth of the current program meets the preset condition comprises: the current network usage rate m is less than a preset network usage threshold, and determining that the bandwidth of the current program to play meets a preset condition.
  • a network television program switching apparatus comprising: a pre-downloading module, a determining module, and a control module.
  • the pre-downloading module is configured to pre-download the associated program of the current program and save it to the cache according to the current program being played;
  • the determining module is configured to determine whether the program to be played is the to-be-played after the current program is played.
  • the control module is configured to control the player to play the cached associated program when determining that the to-be-played program is an associated program.
  • the control module is further configured to: when determining that the to-be-played program is not an associated program, play the cached related program until the program is successfully switched.
  • the pre-download module is configured to: if the current program to be played is determined to be a video-on-demand program, download the next video program of the program series and save to the cache; if it is determined that the current program being played is a real-time television channel program, The channel number corresponding to the previous channel number of the currently played channel number and/or the next channel number is downloaded and saved to the cache.
  • the device further includes a detection module configured to detect a broadband usage of the currently broadcasted program, determine whether the broadband of the current program is satisfied, and determine whether the bandwidth of the current program meets the preset condition, and notify The pre-download module pre-downloads the associated program of the current program according to the current program being played.
  • the detecting module includes an obtaining submodule, a calculating submodule, a judging submodule, and a notification submodule, where the obtaining submodule is configured to obtain a download rate VI required for playing the current program and a current network maximum available rate V2;
  • the calculation submodule is configured to calculate a ratio of a download rate VI required for the currently broadcasted program to a current network maximum available rate V2, and the ratio is used as the current network usage rate m;
  • the determining submodule is set according to the current network usage rate m and the pre
  • the network is configured to use the comparison result of the threshold to determine whether the current network bandwidth meets the preset condition.
  • the notification sub-module is configured to notify the pre-download module according to the current program played when determining that the bandwidth of the current program meets the preset condition. , pre-download the associated program of the current program.
  • the determining sub-module is specifically configured to determine that the current network bandwidth meets a preset condition when the current network usage m is less than a preset network usage threshold.
  • a terminal for playing a network television is provided, the terminal including the above apparatus.
  • a network television system is provided, the network television system comprising the above apparatus.
  • FIG. 1 is a flowchart of a method for switching a network television program according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for switching a network television program according to the first embodiment
  • FIG. 4 is a schematic structural diagram of a network television program switching apparatus according to an embodiment of the present invention.
  • the embodiment of the present invention In order to solve the problem that the network television has a long buffering time when the program is switched, in the embodiment of the present invention, according to the current program and the user's habit of playing, it is determined which programs are related programs of the current program, and when the user watches the program, The streaming media package of the associated program is also downloaded in the background, so that when the user switches the program, the pre-downloaded related program can be viewed, the buffering time of the program switching and the waiting time of the user are reduced, and the user experience is improved.
  • the embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
  • FIG. 1 is a flowchart of a method for switching a network television program according to an embodiment of the present invention.
  • the method shown in FIG. 1 mainly includes the following steps (step S11 - step S12).
  • Step S11 The terminal pre-downloads the associated program of the current program according to the current program being played and saves the cache to the cache. That is to say, in the embodiment of the present invention, the terminal simultaneously connects and downloads a plurality of television programs, and only plays the program currently selected by the user, and the associated program is used as a backup, and only the download is not played.
  • the current program may be a real-time TV channel program or a video-on-demand program.
  • the associated program may be the channel number N-1.
  • the program corresponding to channel number N+1 for example, the user receives channel 4, and the associated program is channel 3 and/or channel 5.
  • the associated program may be the next video program of the program series, for example, the program watched by the user is the fourth episode of a TV drama in the video on demand library, and the associated program may be the TV series. 5 episodes.
  • Step S12 After the current program is played, it is determined whether the program to be played is the related program.
  • Step S13 If it is determined that the to-be-played program is the related program, the related program is played.
  • FIG. 2 is a flowchart of a method for switching a network television program in the embodiment. The method shown in FIG. 2 mainly includes the following steps (step 201-step 213).
  • Step 201 The connection module of the terminal performs identity authentication with the network video server to establish a data connection. The process of establishing a data connection by the connection module is related to the video server. The video server is different, and the corresponding data connection process is different.
  • a TCP connection is established as an example to describe the program switching of the network television in detail.
  • Step 202 The user selects the real-time channel as the current program; the user selects the program to watch through the remote control or the selection button provided by the television body. In this embodiment, the user selects the channel N.
  • Step 203 After the play module of the terminal receives the play command, the current program is played.
  • Step 204 The first buffer module of the terminal buffers the current program, and stores the buffer resource.
  • Step 205 The first determining module of the terminal determines whether the current broadband condition meets the pre-download condition. When the current broadband condition meets the pre-download condition, the process goes to step 206.
  • determining whether the current broadband condition satisfies the pre-download condition is specifically: First, obtain the download rate VI required for the current playback channel N, and then obtain the current network maximum available rate V2, and use the ratio of VI to V2 as the current network usage rate m; then the current network usage rate m and the preset network usage threshold. M compares, if m is less than M, it is determined that there is a surplus of the current network bandwidth. At this time, other program downloads do not affect the normal play of the program N, and then the process proceeds to step 206. If m is not less than M, it is determined that the network occupancy is relatively saturated, and other programs cannot be downloaded any more.
  • the network bandwidth is 10 Mbps
  • the current TV program is played at 0.5 Mbps
  • the network bandwidth is still surplus.
  • downloading other TV programs will not affect the normal playback of the current program.
  • the network bandwidth is 1 Mbps
  • the current TV program is played at 0.7 Mbps
  • the network bandwidth is near saturation.
  • downloading other TV programs is likely to cause the current program to be stuck, therefore, It is not suitable for downloading other TV programs in the background.
  • the network usage threshold is set to ensure that the sum of all download link speeds does not reach the total network bandwidth, otherwise these downloads may affect each other.
  • Step 206 After the connection module connects the related program of the current program in the background, the pre-download module of the terminal pre-downloads the streaming media package of the associated program of the current program into the cache; the method for determining the associated program of the channel N includes but is not limited to: The user watches the real-time TV channel program.
  • the associated program is the channel number N-1 and the channel number N+l.
  • Step 207 The user selects to switch the program.
  • Step 208 The second determining module of the terminal determines that the program to be played is an associated program.
  • Step 209 The reading module of the terminal reads the streaming media package of the associated program from the cache.
  • Step 210 The third determining module of the terminal determines whether the cached streaming media package is expired. If there is a streaming media packet of channel N but the time has expired, step 211 is performed, if there is a program
  • the streaming media packet of N is available at the current time, then go to step 212.
  • the streaming media package of the currently playing program is deleted after playing.
  • the streaming media package of the associated program is stored in the cache and will not be played, but is not always retained.
  • an expiration time is set, for example, 3 seconds, and the streaming media packet before 3 seconds is deleted. This means that the cache only retains the last 3 seconds of program data.
  • Step 211 The deleting module of the terminal deletes the expired streaming media package, and the process proceeds to step 212.
  • the main control module of the terminal connects to the server of the program N through the connection module described above, and the streaming media package of the program N is downloaded into the cache.
  • the streaming media constantly reads the data in the cache for playback during playback, and the data is immediately cleared after the playback, and the new data is stored in the cache.
  • Step 213 The process ends.
  • Step 301 The connection module and the network video server perform identity authentication. , establish a data connection. Internet TV authenticates with a network video server via HTTP to establish a data connection.
  • Step 302 The user selects to view program 1 as the current program. In the embodiment, the program 1 selected by the user to watch is a video on demand program, and the TV series are all stored in a certain order in the server database.
  • Step 304 The control module determines an associated program of the current program.
  • the associated program of the current program defaults to the next program of the program series. For example, the program watched by the user is the fourth episode of a TV drama in the video on demand library, and the related program is the fifth episode of the TV series. If it is the last episode, the process is exited.
  • the associated program can be customized by the user, for example, the user can set the associated program as a MV video, or a relaxed and funny dynamic picture.
  • Step 305 The determining module determines whether the current broadband condition satisfies a pre-download condition.
  • Step 306 The pre-download module downloads the streaming media package of the associated program of the program 1, and stores the streaming media package of the associated program into the cache. If the associated program is the default, it is directly downloaded in the TV drama library. If the associated program is customized by the user, the connection module needs to connect to the database where the associated program is located in the background, and download the associated program.
  • Step 307 The user selects to view the associated program of the program 1.
  • the associated program of program 1 is recorded as program 2, and the network television first checks whether the streaming media package of program 2 already exists in the cache. If it already exists, play program 2 directly; if it does not exist, network TV connects to the server of program 2, downloads the stream package of program 2 into the cache, and when the downloaded stream reaches a certain number, starts to play the downloaded content. . While playing, continue to download the streaming media package to the cache.
  • Step 309 The process ends.
  • the associated program may also be derived according to user viewing habits, and the streaming media package of the associated program is downloaded using the surplus network bandwidth.
  • FIG. 4 is a schematic structural diagram of a network television program switching apparatus according to an embodiment of the present invention.
  • the apparatus shown in FIG. 4 mainly includes a pre-downloading module 41, a determining module 42, and a control module 43.
  • the pre-download module 41 is configured to pre-download the associated program of the current program and save it to the cache according to the current program being played.
  • the pre-download module 41 is specifically configured to download the program if the current program being played is a video-on-demand program.
  • the next video program of the series is saved to the cache; if the current program being played is a live TV channel program, the channel number corresponding to the previous channel number of the currently played channel number and/or the channel number corresponding to the next channel number is downloaded and saved to the cache.
  • the determining module 42 is configured to determine whether the program to be played is the associated program after the current program is played.
  • the control module 43 is configured to control the player to play the associated program when it is determined that the program to be played is an associated program.
  • control module 43 is further configured to play the related program until the program to be broadcasted is successfully switched when it is determined that the to-be-played program is not an associated program.
  • the device may further include: a detecting module 44, configured to: before downloading and storing data of the associated program to the cache, detecting a broadband usage of the currently displayed program, and determining whether the bandwidth of the current program is satisfied, and determining whether the bandwidth of the current program meets the preset condition, When it is determined that the broadband of the current program meets the pre-preset condition, the pre-downloading module is notified to pre-download the associated program of the current program according to the current program being played.
  • the detection module 44 can include: an acquisition sub-module 431, a calculation sub-module 432, a determination sub-module 433, and a notification sub-module 434.
  • the obtaining submodule 431 is configured to obtain a download rate VI required for the currently playing program and a current network maximum available rate V2.
  • the calculation sub-module 432 is configured to calculate a ratio of the download rate VI required for the currently broadcasted program to the current network maximum available rate V2, and use the ratio as the current network usage rate m.
  • the determining sub-module 433 is configured to determine whether the current network bandwidth meets the preset condition according to the comparison result of the current network usage rate m and the preset network usage threshold.
  • the notification sub-module 434 is configured to notify the pre-download module to pre-download the associated program of the current program according to the current program being played when determining that the broadband of the current program meets the pre-preset condition.
  • the determining sub-module 433 is configured to determine that the current network bandwidth meets a preset condition when the current network usage rate m is less than a preset network usage threshold.
  • a terminal for playing a network television comprising the apparatus as shown in FIG. 4, which can be used to implement the above method.
  • a television system comprising the apparatus as shown in FIG.
  • the embodiments of the present invention determine which programs are related programs of the current program according to the current program and user habits played by the user.
  • the streaming media package of the associated program is downloaded in the background, thereby
  • the user switches the program the pre-downloaded related program can be viewed, the buffering time of the program switching and the waiting time of the user are reduced, and the user experience is improved. Therefore, it has industrial applicability.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Social Psychology (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

Proposed are a method and device for switching a network television program, and a television system. The method comprises: according to a current program which is being played, pre-downloading an association program of the current program and saving same in a cache; after the playing of the current program finishes, judging whether a program to be played is the association program; and if it is judged that the program to be played is the association program, playing the association program.

Description

网络电视节目切换方法、 装置和电视系统 技术领域 本发明涉及网络电视应用领域, 尤其涉及一种网络电视节目切换方法、 装置和电 视系统。 背景技术 目前网络电视的应用越来越广泛, 网络电视相比传统电视具有很多优点,主要地, 网络电视可以通过宽带网络从网络服务器下载节目视频并且播放, 从而使得用户摆脱 了被动的接受电视台当前播放的节目的限制, 用户可以自由选择自己想看的节目。 但是网络电视也存在缺点, 即由于网络电视切换节目或者视频的时候, 都需要重 新进行连接, 从而导致切换的缓冲时间过长, 严重影响了用户体验。 发明内容 针对相关技术中网络电视切换节目或视频时存在的切换的缓冲时间过长而导致用 户体验降低的问题, 本发明提出了一种网络电视节目切换方法、 装置和电视系统。 根据本发明的一个方面, 提供了一种网络电视节目切换方法, 所述方法包括: 根 据播放的当前节目, 预下载所述当前节目的关联节目并保存至缓存; 在所述当前节目 播放完毕后, 判断待播放节目是否是所述关联节目; 若判定所述待播放节目是所述关 联节目, 播放缓存的所述关联节目。 可选的, 若判定所述待播放节目不是所述关联节目, 播放缓存的所述关联节目直 至成功切换至所述待播节目。 可选的, 所述根据播放的当前节目, 预下载所述当前节目的关联节目并保存至缓 存包括: 若判定播放的当前节目是视频点播节目, 则下载该节目系列的下一个视频节 目并保存至缓存; 若判定播放的当前节目是实时电视频道节目, 则下载当前播放的频 道号的上一个频道号和 /或下一个频道号对应的频道节目并保存至缓存。 可选的, 所述下载当前节目的关联节目并保存至缓存之前, 所述方法还包括: 检 测播放的当前节目的宽带使用情况, 判断播放当前节目的宽带是否满足预设条件; 当 判定播放当前节目的宽带满足预设条件时, 确定下载当前节目的关联节目。 可选的, 所述检测播放的当前节目的宽带使用情况, 判断播放当前节目的宽带是 否满足预设条件包括: 获取当前播放节目需要的下载速率 VI 和当前网络最大可用速 率 V2; 将当前播放节目需要的下载速率 VI和当前网络最大可用速率 V2的比值作为 当前网络使用率 m; 根据当前网络使用率 m和预设的网络使用阈值的比较结果, 来判 断当前网络带宽是否满足预设条件。 可选的, 所述播放当前节目的宽带是否满足预设条件包括: 当前网络使用率 m小 于预设的网络使用阈值, 判定所述播放当前节目的宽带满足预设条件。 根据本发明另一个方面, 还提供了一种网络电视节目切换装置, 所述装置包括: 预下载模块、 判定模块和控制模块。 其中, 所述预下载模块设置为根据播放的当前节 目, 预下载当前节目的关联节目并保存至缓存; 所述判定模块设置为在所述当前节目 播放完毕后, 判断待播放节目是否是所述关联节目; 所述控制模块设置为在判定所述 待播放节目是关联节目时, 控制播放器播放缓存的所述关联节目。 可选的, 所述控制模块还设置为在判定所述待播放节目不是关联节目时, 播放缓 存的所述关联节目直至成功切换至所述待播节目。 可选的, 所述预下载模块设置为若判定播放的当前节目是视频点播节目, 则下载 该节目系列的下一个视频节目并保存至缓存; 若判定播放的当前节目是实时电视频道 节目,则下载当前播放的频道号的上一个频道号和 /或下一个频道号对应的频道节目并 保存至缓存。 可选的,所述装置还包括检测模块,设置为检测播放的当前节目的宽带使用情况, 判断播放当前节目的宽带是否满足预设条件, 在判断播放当前节目的宽带满足预设条 件时, 通知所述预下载模块根据播放的当前节目, 预下载当前节目的关联节目。 可选的, 所述检测模块包括获取子模块、计算子模块、判断子模块和通知子模块, 所述获取子模块设置为获取播放当前节目需要的下载速率 VI 和当前网络最大可用速 率 V2; 所述计算子模块设置为计算当前播放节目需要的下载速率 VI和当前网络最大 可用速率 V2的比值, 将该比值作为当前网络使用率 m; 所述判断子模块设置为根据 当前网络使用率 m和预设的网络使用阈值的比较结果,判断当前网络带宽是否满足预 设条件; 所述通知子模块设置为在判断播放当前节目的宽带满足预设条件时, 通知所 述预下载模块根据播放的当前节目, 预下载当前节目的关联节目。 可选的,所述判断子模块具体设置为在当前网络使用率 m小于预设的网络使用阈 值时, 判定当前网络带宽满足预设条件。 根据本发明的又一个方面, 提供了一种用于播放网络电视的终端, 所述终端包括 上述装置。 根据本发明的又一个方面, 提供了一种网络电视系统, 所述网络电视系统包含上 述装置。 根据本发明实施例提供的网络电视节目切换方案,在判断当前节目的关联节目后, 预下载当前节目的关联节目的流媒体包放入缓存, 在切换节目时可以直接播放, 解决 在网络电视切换时缓冲时间长的问题。 附图说明 图 1为根据本发明实施例的网络电视节目切换方法的流程图; 图 2为实施例一的网络电视节目切换方法的流程图; 图 3为实施例二的网络电视节目切换方法的流程图; 以及 图 4为根据本发明实施例的网络电视节目切换装置的结构示意图。 具体实施方式 为了解决网络电视在节目切换时会有缓冲时间长的问题, 本发明实施例中, 根据 播放的当前节目和用户习惯来判断哪些节目是当前节目的关联节目, 用户收看节目的 时候, 关联节目的流媒体包也在后台下载, 从而使得在用户切换节目时, 可以观看预 先下载的关联节目,减少了节目切换的缓冲时间及用户等待的时间,提高了用户体验。 为使本发明的目的、 技术方案和优点更加清楚明白, 下文中将结合附图对本发明 的实施例进行详细说明。 需要说明的是, 在不冲突的情况下, 本申请中的实施例及实 施例中的特征可以相互任意组合。 图 1 为本发明实施例的网络电视节目切换方法的流程图, 如图 1所示的方法, 主 要包括以下步骤 (步骤 S11-步骤 S12)。 步骤 S11 : 终端根据播放的当前节目, 预下载所述当前节目的关联节目并保存至 缓存。 也就是说, 在本发明实施例中, 终端同时连接、 下载多个电视节目, 只播放用户 当前选中的节目, 关联节目作为备用, 只下载不播放。 在具体实施过程中, 当前节目可以实时的电视频道节目或者视频点播节目, 可选 地, 如果当前节目是实时电视频道节目, 并且播放的频道号是 N, 则关联节目可以是 频道号 N-1和 /或频道号 N+1对应的节目, 例如用户收到频道 4, 关联节目就是频道 3 和 /或频道 5。 可选地, 如果当前节目是视频点播节目, 则关联节目可以是该节目系列的下一个 视频节目, 例如用户收看的节目是视频点播库中某电视剧第 4集, 则关联节目可以是 该电视剧第 5集。 步骤 S12: 在所述当前节目播放完毕后, 判断待播放节目是否是所述关联节目。 步骤 S13 : 若判定所述待播放节目是所述关联节目, 播放所述关联节目。 实施例一 图 2为本实施例中网络电视节目切换方法的流程图, 如图 2所示的方法, 主要包 括以下步骤 (步骤 201-步骤 213 )。 步骤 201 : 终端的连接模块与网络视频服务器进行身份认证, 建立数据连接。 连接模块建立数据连接的过程跟视频服务器有关, 视频服务器不同, 对应的建立 数据连接过程也不相同,本实施例以建立 TCP连接为例对网络电视的节目切换作详细 的阐述。具体为, 通过 TCP建立连接, 然后发送鉴权信息(用户名密码等)进行认证, 然后请求具体的视频节目播放。 步骤 202: 用户选择实时频道作为当前节目; 用户通过遥控器或者电视机体自带的选择键选择收看的节目, 该实施例中用户选 择频道 N。 步骤 203 : 终端的播放模块接收播放指令后, 播放当前节目。 步骤 204: 终端的第一缓冲模块缓冲当前节目, 并存储缓冲资源; 步骤 205 : 终端的第一判定模块判断当前宽带情况是否满足预下载条件; 当前宽带情况满足预下载条件时, 跳至步骤 206, 当前宽带情况不满足预下载条 件时, 跳至步骤 204。 本实施例中, 判断当前宽带情况是否满足预下载条件具体为: 首先获取当前播放频道 N需要的下载速率 VI,再获取当前网络最大可用速率 V2, 将 VI与 V2的比值作为当前网络使用率 m; 然后将当前网络使用率 m和预设的网络使用率阀值 M进行比较,如果 m小于 M, 则判定为当前网络带宽还有富余, 此时进行其他节目下载不会影响到节目 N的正常播 放, 则跳转至步骤 206。 如果 m不小于 M, 判定为网络占用比较饱和, 则不能再下载 其他节目了。 例如, 网络带宽是 10Mbps, 播放当前电视节目使用了 0.5Mbps, 网络使用率 m为 0.5/10=5%,网络带宽还有富余,此时下载其他电视节目不会影响当前节目的正常播放。 如果网络带宽是 1Mbps, 播放当前电视节目使用了 0.7Mbps, 网络使用率 m 为 0.7/1=70%, 网络带宽已经接近饱和, 此时下载其他电视节目很可能会造成当前节目卡 顿, 因此, 不适合再进行后台下载其他电视节目。 网络使用率阈值的设置是为了保证所有的下载链接速度之和不能到达网络总带 宽, 否则这几个下载可能会互相影响。 例如最多允许同时进行 4个下载, 那么每个下 载链接速度不能超过 25%, 则可以设定网络使用率阈值为 25%, 这样通过设置网络使 用率阈值可以保证当前节目的流畅播放。 步骤 206: 在连接模块在后台连接当前节目的关联节目后, 终端的预下载模块预 下载当前节目的关联节目的流媒体包放入缓存; 判断频道 N的关联节目的方法包括但不限于: 如果用户收看的是实时电视频道节 目, 关联节目就是频道号 N-1和频道号 N+l, 例如用户选择的当前节目频道 N是频道 4, 则关联节目默认为频道 3和频道 5, 也可以根据用户自定义关联节目。 步骤 207: 用户选择切换节目。 步骤 208: 终端的第二判定模块判定待播放节目为关联节目。 步骤 209: 终端的读取模块从缓存读取关联节目的流媒体包。 步骤 210: 终端的第三判定模块判断缓存的流媒体包是否过期。 如果存在频道 N的流媒体包但是时间已经过期, 则执行步骤 211, 如果存在节目The present invention relates to the field of network television applications, and in particular, to a network television program switching method, apparatus, and television system. BACKGROUND OF THE INVENTION At present, the application of network television is more and more widespread, and network television has many advantages over traditional television. Mainly, network television can download program video from a network server through a broadband network and play, so that the user can get rid of the passive acceptance of the current television station. The restrictions of the program being played, the user is free to choose the program that he wants to watch. However, network television also has shortcomings, that is, when the network television switches programs or videos, it needs to be reconnected, which causes the buffering time of the switch to be too long, which seriously affects the user experience. SUMMARY OF THE INVENTION The present invention is directed to a network television program switching method, apparatus, and television system, in view of the problem that the buffering time of switching existing when a network television switches programs or videos is too long, resulting in a reduced user experience. According to an aspect of the present invention, a method for switching a network television program is provided, the method comprising: pre-downloading an associated program of the current program according to a current program being played and saving to a cache; after the current program is played Determining whether the program to be played is the associated program; if it is determined that the program to be played is the associated program, playing the cached related program. Optionally, if it is determined that the to-be-played program is not the related program, the cached related program is played until the program is successfully switched. Optionally, the pre-downloading the associated program of the current program and saving to the cache according to the current program being played includes: if it is determined that the currently displayed program is a video-on-demand program, downloading the next video program of the program series and saving To the cache; if it is determined that the current program being played is a live TV channel program, the channel number corresponding to the previous channel number of the currently played channel number and/or the channel number corresponding to the next channel number is downloaded and saved to the cache. Optionally, before the downloading the associated program of the current program and saving to the cache, the method further includes: detecting a broadband usage of the currently played program, determining whether the bandwidth of the current program is satisfied, and determining whether the current broadcast is met; When the bandwidth of the program satisfies the preset condition, it is determined to download the associated program of the current program. Optionally, the detecting, according to the broadband usage of the currently broadcasted program, determining whether the broadband of the current program meets the preset condition comprises: acquiring a download rate VI required for the currently played program and a current network maximum available rate V2; The ratio of the required download rate VI to the current network maximum available rate V2 is taken as the current network usage rate m; according to the comparison result of the current network usage rate m and the preset network usage threshold, it is determined whether the current network bandwidth meets the preset condition. Optionally, the determining whether the bandwidth of the current program meets the preset condition comprises: the current network usage rate m is less than a preset network usage threshold, and determining that the bandwidth of the current program to play meets a preset condition. According to another aspect of the present invention, a network television program switching apparatus is further provided, the apparatus comprising: a pre-downloading module, a determining module, and a control module. The pre-downloading module is configured to pre-download the associated program of the current program and save it to the cache according to the current program being played; the determining module is configured to determine whether the program to be played is the to-be-played after the current program is played. Correlating the program; the control module is configured to control the player to play the cached associated program when determining that the to-be-played program is an associated program. Optionally, the control module is further configured to: when determining that the to-be-played program is not an associated program, play the cached related program until the program is successfully switched. Optionally, the pre-download module is configured to: if the current program to be played is determined to be a video-on-demand program, download the next video program of the program series and save to the cache; if it is determined that the current program being played is a real-time television channel program, The channel number corresponding to the previous channel number of the currently played channel number and/or the next channel number is downloaded and saved to the cache. Optionally, the device further includes a detection module configured to detect a broadband usage of the currently broadcasted program, determine whether the broadband of the current program is satisfied, and determine whether the bandwidth of the current program meets the preset condition, and notify The pre-download module pre-downloads the associated program of the current program according to the current program being played. Optionally, the detecting module includes an obtaining submodule, a calculating submodule, a judging submodule, and a notification submodule, where the obtaining submodule is configured to obtain a download rate VI required for playing the current program and a current network maximum available rate V2; The calculation submodule is configured to calculate a ratio of a download rate VI required for the currently broadcasted program to a current network maximum available rate V2, and the ratio is used as the current network usage rate m; the determining submodule is set according to the current network usage rate m and the pre The network is configured to use the comparison result of the threshold to determine whether the current network bandwidth meets the preset condition. The notification sub-module is configured to notify the pre-download module according to the current program played when determining that the bandwidth of the current program meets the preset condition. , pre-download the associated program of the current program. Optionally, the determining sub-module is specifically configured to determine that the current network bandwidth meets a preset condition when the current network usage m is less than a preset network usage threshold. According to still another aspect of the present invention, a terminal for playing a network television is provided, the terminal including the above apparatus. According to still another aspect of the present invention, a network television system is provided, the network television system comprising the above apparatus. According to the network television program switching scheme provided by the embodiment of the present invention, after determining the associated program of the current program, the streaming media package of the associated program of the pre-downloaded current program is put into the cache, and can be directly played when switching the program, and the network television switching is solved. The problem of long buffer time. BRIEF DESCRIPTION OF DRAWINGS FIG. 1 is a flowchart of a method for switching a network television program according to an embodiment of the present invention; FIG. 2 is a flowchart of a method for switching a network television program according to the first embodiment; FIG. 4 is a schematic structural diagram of a network television program switching apparatus according to an embodiment of the present invention. In order to solve the problem that the network television has a long buffering time when the program is switched, in the embodiment of the present invention, according to the current program and the user's habit of playing, it is determined which programs are related programs of the current program, and when the user watches the program, The streaming media package of the associated program is also downloaded in the background, so that when the user switches the program, the pre-downloaded related program can be viewed, the buffering time of the program switching and the waiting time of the user are reduced, and the user experience is improved. In order to make the objects, the technical solutions and the advantages of the present invention more clearly, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other. FIG. 1 is a flowchart of a method for switching a network television program according to an embodiment of the present invention. The method shown in FIG. 1 mainly includes the following steps (step S11 - step S12). Step S11: The terminal pre-downloads the associated program of the current program according to the current program being played and saves the cache to the cache. That is to say, in the embodiment of the present invention, the terminal simultaneously connects and downloads a plurality of television programs, and only plays the program currently selected by the user, and the associated program is used as a backup, and only the download is not played. In a specific implementation process, the current program may be a real-time TV channel program or a video-on-demand program. Alternatively, if the current program is a real-time television channel program, and the played channel number is N, the associated program may be the channel number N-1. And the program corresponding to channel number N+1, for example, the user receives channel 4, and the associated program is channel 3 and/or channel 5. Optionally, if the current program is a video on demand program, the associated program may be the next video program of the program series, for example, the program watched by the user is the fourth episode of a TV drama in the video on demand library, and the associated program may be the TV series. 5 episodes. Step S12: After the current program is played, it is determined whether the program to be played is the related program. Step S13: If it is determined that the to-be-played program is the related program, the related program is played. Embodiment 1 FIG. 2 is a flowchart of a method for switching a network television program in the embodiment. The method shown in FIG. 2 mainly includes the following steps (step 201-step 213). Step 201: The connection module of the terminal performs identity authentication with the network video server to establish a data connection. The process of establishing a data connection by the connection module is related to the video server. The video server is different, and the corresponding data connection process is different. In this embodiment, a TCP connection is established as an example to describe the program switching of the network television in detail. Specifically, the connection is established through TCP, and then authentication information (user name password, etc.) is sent for authentication, and then a specific video program is requested to be played. Step 202: The user selects the real-time channel as the current program; the user selects the program to watch through the remote control or the selection button provided by the television body. In this embodiment, the user selects the channel N. Step 203: After the play module of the terminal receives the play command, the current program is played. Step 204: The first buffer module of the terminal buffers the current program, and stores the buffer resource. Step 205: The first determining module of the terminal determines whether the current broadband condition meets the pre-download condition. When the current broadband condition meets the pre-download condition, the process goes to step 206. If the current broadband condition does not satisfy the pre-download condition, skip to step 204. In this embodiment, determining whether the current broadband condition satisfies the pre-download condition is specifically: First, obtain the download rate VI required for the current playback channel N, and then obtain the current network maximum available rate V2, and use the ratio of VI to V2 as the current network usage rate m; then the current network usage rate m and the preset network usage threshold. M compares, if m is less than M, it is determined that there is a surplus of the current network bandwidth. At this time, other program downloads do not affect the normal play of the program N, and then the process proceeds to step 206. If m is not less than M, it is determined that the network occupancy is relatively saturated, and other programs cannot be downloaded any more. For example, the network bandwidth is 10 Mbps, the current TV program is played at 0.5 Mbps, the network usage rate is 0.5/10=5%, and the network bandwidth is still surplus. At this time, downloading other TV programs will not affect the normal playback of the current program. If the network bandwidth is 1 Mbps, the current TV program is played at 0.7 Mbps, the network usage m is 0.7/1=70%, and the network bandwidth is near saturation. At this time, downloading other TV programs is likely to cause the current program to be stuck, therefore, It is not suitable for downloading other TV programs in the background. The network usage threshold is set to ensure that the sum of all download link speeds does not reach the total network bandwidth, otherwise these downloads may affect each other. For example, if up to 4 downloads are allowed at the same time, then the speed of each download link cannot exceed 25%, then the network usage threshold can be set to 25%, so that the smooth use of the current program can be ensured by setting the network usage threshold. Step 206: After the connection module connects the related program of the current program in the background, the pre-download module of the terminal pre-downloads the streaming media package of the associated program of the current program into the cache; the method for determining the associated program of the channel N includes but is not limited to: The user watches the real-time TV channel program. The associated program is the channel number N-1 and the channel number N+l. For example, if the current program channel N selected by the user is channel 4, the associated program defaults to channel 3 and channel 5, and may also be based on User-defined associated programs. Step 207: The user selects to switch the program. Step 208: The second determining module of the terminal determines that the program to be played is an associated program. Step 209: The reading module of the terminal reads the streaming media package of the associated program from the cache. Step 210: The third determining module of the terminal determines whether the cached streaming media package is expired. If there is a streaming media packet of channel N but the time has expired, step 211 is performed, if there is a program

N的流媒体包并且是当前时间可用的, 则跳转至步骤 212。 本实施例中判断缓存的流媒体包是否过期为: 流媒体在播放时不断读取缓存中的 流媒体包中的数据进行播放, 播放完后该数据便被立即清除, 新的数据将存入到缓存 中。 当前播放的节目的流媒体包, 播放完就被删除了。 关联节目的流媒体包, 存储在 缓存中, 不会被播放, 但也不被一直保留, 本实施例中设置一个过期时间, 例如 3秒, 3秒之前的流媒体包都会被删除, 这样就意味着缓存只保留最近 3秒的节目数据。 通过该步骤可以保证缓存不会装满流媒体包, 而一直处于可用状态, 还保证了频 道节目的实时性。 步骤 211 : 终端的删除模块删除过期的流媒体包, 跳转至步骤 212。 在本实施例中, 在该步骤中, 终端的主控模块通过上述的连接模块连接节目 N的 服务器, 下载节目 N的流媒体包放入缓存。 步骤 212: 终端的播放模块播放缓存的节目。 流媒体在播放时不断读取缓存中的数据进行播放,播放完后该数据便被立即清除, 新的数据将存入到缓存中。 步骤 213 : 流程结束。 实施例二 图 3是本实施例中网络电视节目切换方法的流程图, 如图 3所示的方法, 包括以 下步骤 (步骤 301-步骤 309) . 步骤 301 : 连接模块与网络视频服务器进行身份认证, 建立数据连接。 网络电视通过 HTTP与网络视频服务器进行身份认证, 建立数据连接。 步骤 302: 用户选择收看节目 1作为当前节目。; 本实施例中用户选择收看的节目 1是视频点播节目, 并且电视剧全部在服务器数 据库中按一定的次序存放。 步骤 303 : 下载模块下载节目 1的流媒体包放入缓存。 下载的流媒体到达一定数量的时候, 开始播放已下载的这部分内容。播放的同时, 继续下载后边的流媒体包放入缓存。 步骤 304: 控制模块确定当前节目的关联节目。 本实施例中, 当前节目的关联节目默认为该节目系列的下一个节目。 例如用户收 看的节目是视频点播库中某电视剧第 4集, 关联节目就是该电视剧第 5集, 如果是最 后一集, 则退出该流程。 另外, 关联节目可以由用户自定义实现, 例如用户可以设置关联节目为一段 MV 视频、 或者一段轻松的搞笑的动态图片。 步骤 305 : 判定模块判断当前宽带情况是否满足预下载条件。 判定模块在判定模块判断当前宽带情况满足预下载条件时, 跳至步骤 306, 在判 定模块判断当前宽带情况不满足预下载条件, 跳至歩骤 303。 其中, 当前宽带是否富余的判断方法同上述实施例一, 在此不再赘述。 步骤 306: 预下载模块下载节目 1 的关联节目的流媒体包, 并将关联节目的流媒 体包存储到缓存。 如果是关联节目为默认, 则直接在该电视剧库中直接下载, 如果关联节目为用户 自定义, 则连接模块需要在后台连接到关联节目所在的数据库, 并下载关联节目。 步骤 307: 用户选择收看节目 1的关联节目。 节目 1的关联节目记为节目 2, 网络电视首先检查缓存中是否已经存在节目 2的 流媒体包。 如果已经存在, 直接播放节目 2; 如果不存在, 网络电视连接节目 2的服 务器, 下载节目 2的流媒体包放入缓存, 下载的流媒体到达一定数量的时候, 开始播 放已下载的这部分内容。 播放的同时, 继续下载后边的流媒体包放入缓存。 步骤 308: 播放模块从缓存中读取已下载的流媒体包, 直接播放。 步骤 309: 流程结束。 上述实施例中, 关联节目还可以根据用户收视习惯得出, 并且利用富余网络带宽 下载关联节目的流媒体包。 具体包括: 如果用户频繁在两个频道间切换, 则电视系统 记忆这两个频道, 在当前节目为其中一个频道时, 则当前节目的关联节目则将当前频 道的下一个频道或上一个频道替换为这两个频道中的另一个频道。 与上述方法对应, 本发明实施例还提供了一种网络电视节目切换装置。 图 4为根据本发明实施例的网络电视节目切换装置的结构示意图, 如图 4所示的 装置主要包括预下载模块 41、 判定模块 42和控制模块 43。 预下载模块 41设置为根据播放的当前节目,预下载当前节目的关联节目并保存至 缓存; 该实施例中, 预下载模块 41具体设置为若播放的当前节目是视频点播节目, 则 下载该节目系列的下一个视频节目并保存至缓存; 若播放的当前节目是实时电视频道 节目, 则下载当前播放的频道号的上一个频道号和 /或下一个频道号对应的频道节目并 保存至缓存。 判定模块 42设置为在所述当前节目播放完毕后,判断待播放节目是否是所述关联 节目。 控制模块 43设置为在判定所述待播放节目是关联节目时,控制播放器播放所述关 联节目。 可选地,控制模块 43还设置为在判定所述待播放节目不是关联节目时,播放所述 关联节目直至成功切换至所述待播节目。 可选地, 该装置还可以包括: 检测模块 44, 设置为在下载并存储关联节目的数据 至缓存之前, 检测播放的当前节目的宽带使用情况, 判断播放当前节目的宽带是否满 足预设条件, 在判断播放当前节目的宽带满足预预设条件时, 通知所述预下载模块根 据播放的当前节目, 预下载当前节目的关联节目。 在可选实施例中, 检测模块 44包括可以: 获取子模块 431、 计算子模块 432、 判 断子模块 433和通知子模块 434。 其中, 获取子模块 431, 设置为获取当前播放节目需要的下载速率 VI和当前网络 最大可用速率 V2。 计算子模块 432, 设置为计算当前播放节目需要的下载速率 VI和 当前网络最大可用速率 V2的比值,将该比值作为当前网络使用率 m。判断子模块 433, 设置为根据当前网络使用率 m和预设的网络使用阈值的比较结果,判断当前网络带宽 是否满足预设条件。 通知子模块 434, 设置为在判断播放当前节目的宽带满足预预设 条件时, 通知所述预下载模块根据播放的当前节目, 预下载当前节目的关联节目。 可选地,所述判断子模块 433设置为在当前网络使用率 m小于预设的网络使用阈 值时, 判定当前网络带宽满足预设条件。 根据本发明实施例, 还提供了一种用于播放网络电视的终端, 该终端包含如图 4 所示的装置, 可以用于实现上述方法。 根据本发明实施例, 还提供了一种电视系统, 该系统包含如图 4所示的装置。 本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相 关硬件完成, 所述程序可以存储于计算机可读存储介质中, 如只读存储器、 磁盘或光 盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。 相应地, 上述实施例中的各模块可以采用硬件的形式实现, 也可以采用软件功能模块 的形式实现。 本发明不限制于任何特定形式的硬件和软件的结合。 以上仅为本发明的优选实施例, 当然, 本发明还可有其他多种实施例, 在不背离 本发明精神及其实质的情况下, 熟悉本领域的技术人员当可根据本发明作出各种相应 的改变和变形,但这些相应的改变和变形都应属于本发明所附的权利要求的保护范围。 工业实用 '!■生 本发明实施例根据用户播放的当前节目和用户习惯来判断哪些节目是当前节目的 关联节目, 用户收看当前节目的时候, 在后台下载关联节目的流媒体包, 从而使得在 用户切换节目时, 可以观看预先下载的关联节目, 减少了节目切换的缓冲时间及用户 等待的时间, 提高了用户体验。 因此, 具有工业实用性。 If the streaming media packet of N is available at the current time, then go to step 212. In this embodiment, it is determined whether the cached streaming media packet expires: The streaming media continuously reads the data in the cached streaming media package during playback, and the data is immediately cleared after the playback, and the new data is saved. Go to the cache. The streaming media package of the currently playing program is deleted after playing. The streaming media package of the associated program is stored in the cache and will not be played, but is not always retained. In this embodiment, an expiration time is set, for example, 3 seconds, and the streaming media packet before 3 seconds is deleted. This means that the cache only retains the last 3 seconds of program data. Through this step, it can be ensured that the cache will not be filled with the streaming media package, but it is always available, and the real-time performance of the channel program is also guaranteed. Step 211: The deleting module of the terminal deletes the expired streaming media package, and the process proceeds to step 212. In this embodiment, in this step, the main control module of the terminal connects to the server of the program N through the connection module described above, and the streaming media package of the program N is downloaded into the cache. Step 212: The playing module of the terminal plays the cached program. The streaming media constantly reads the data in the cache for playback during playback, and the data is immediately cleared after the playback, and the new data is stored in the cache. Step 213: The process ends. Embodiment 2 FIG. 3 is a flowchart of a method for switching a network television program in the embodiment, and the method shown in FIG. 3 includes the following steps (step 301-step 309). Step 301: The connection module and the network video server perform identity authentication. , establish a data connection. Internet TV authenticates with a network video server via HTTP to establish a data connection. Step 302: The user selects to view program 1 as the current program. In the embodiment, the program 1 selected by the user to watch is a video on demand program, and the TV series are all stored in a certain order in the server database. Step 303: The download module downloads the streaming media package of the program 1 into the cache. When the downloaded streaming media reaches a certain number, the downloaded content will start playing. While playing, continue to download the streaming media package to the cache. Step 304: The control module determines an associated program of the current program. In this embodiment, the associated program of the current program defaults to the next program of the program series. For example, the program watched by the user is the fourth episode of a TV drama in the video on demand library, and the related program is the fifth episode of the TV series. If it is the last episode, the process is exited. In addition, the associated program can be customized by the user, for example, the user can set the associated program as a MV video, or a relaxed and funny dynamic picture. Step 305: The determining module determines whether the current broadband condition satisfies a pre-download condition. When the determining module determines that the current broadband condition meets the pre-download condition, the determining module jumps to step 306, and the determining module determines that the current broadband condition does not satisfy the pre-downloading condition, and skips to step 303. The method for judging whether the current broadband is redundant is the same as the first embodiment, and details are not described herein again. Step 306: The pre-download module downloads the streaming media package of the associated program of the program 1, and stores the streaming media package of the associated program into the cache. If the associated program is the default, it is directly downloaded in the TV drama library. If the associated program is customized by the user, the connection module needs to connect to the database where the associated program is located in the background, and download the associated program. Step 307: The user selects to view the associated program of the program 1. The associated program of program 1 is recorded as program 2, and the network television first checks whether the streaming media package of program 2 already exists in the cache. If it already exists, play program 2 directly; if it does not exist, network TV connects to the server of program 2, downloads the stream package of program 2 into the cache, and when the downloaded stream reaches a certain number, starts to play the downloaded content. . While playing, continue to download the streaming media package to the cache. Step 308: The play module reads the downloaded streaming media package from the cache and plays it directly. Step 309: The process ends. In the above embodiment, the associated program may also be derived according to user viewing habits, and the streaming media package of the associated program is downloaded using the surplus network bandwidth. Specifically, if the user frequently switches between two channels, the television system memorizes the two channels. When the current program is one of the channels, the associated program of the current program replaces the next channel or the previous channel of the current channel. For the other of these two channels. Corresponding to the foregoing method, an embodiment of the present invention further provides a network television program switching apparatus. FIG. 4 is a schematic structural diagram of a network television program switching apparatus according to an embodiment of the present invention. The apparatus shown in FIG. 4 mainly includes a pre-downloading module 41, a determining module 42, and a control module 43. The pre-download module 41 is configured to pre-download the associated program of the current program and save it to the cache according to the current program being played. In this embodiment, the pre-download module 41 is specifically configured to download the program if the current program being played is a video-on-demand program. The next video program of the series is saved to the cache; if the current program being played is a live TV channel program, the channel number corresponding to the previous channel number of the currently played channel number and/or the channel number corresponding to the next channel number is downloaded and saved to the cache. The determining module 42 is configured to determine whether the program to be played is the associated program after the current program is played. The control module 43 is configured to control the player to play the associated program when it is determined that the program to be played is an associated program. Optionally, the control module 43 is further configured to play the related program until the program to be broadcasted is successfully switched when it is determined that the to-be-played program is not an associated program. Optionally, the device may further include: a detecting module 44, configured to: before downloading and storing data of the associated program to the cache, detecting a broadband usage of the currently displayed program, and determining whether the bandwidth of the current program is satisfied, and determining whether the bandwidth of the current program meets the preset condition, When it is determined that the broadband of the current program meets the pre-preset condition, the pre-downloading module is notified to pre-download the associated program of the current program according to the current program being played. In an alternative embodiment, the detection module 44 can include: an acquisition sub-module 431, a calculation sub-module 432, a determination sub-module 433, and a notification sub-module 434. The obtaining submodule 431 is configured to obtain a download rate VI required for the currently playing program and a current network maximum available rate V2. The calculation sub-module 432 is configured to calculate a ratio of the download rate VI required for the currently broadcasted program to the current network maximum available rate V2, and use the ratio as the current network usage rate m. The determining sub-module 433 is configured to determine whether the current network bandwidth meets the preset condition according to the comparison result of the current network usage rate m and the preset network usage threshold. The notification sub-module 434 is configured to notify the pre-download module to pre-download the associated program of the current program according to the current program being played when determining that the broadband of the current program meets the pre-preset condition. Optionally, the determining sub-module 433 is configured to determine that the current network bandwidth meets a preset condition when the current network usage rate m is less than a preset network usage threshold. According to an embodiment of the present invention, there is also provided a terminal for playing a network television, the terminal comprising the apparatus as shown in FIG. 4, which can be used to implement the above method. According to an embodiment of the invention, there is also provided a television system comprising the apparatus as shown in FIG. One of ordinary skill in the art will appreciate that all or a portion of the above steps may be performed by a program to instruct the associated hardware, such as a read only memory, a magnetic disk, or an optical disk. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module in the foregoing embodiment may be implemented in the form of hardware, or may be implemented in the form of a software function module. The invention is not limited to any specific form of combination of hardware and software. The above is only a preferred embodiment of the present invention, and of course, the present invention may be embodied in various other embodiments without departing from the spirit and scope of the invention. Corresponding changes and modifications are intended to be included within the scope of the appended claims. Industrial Applicability The embodiments of the present invention determine which programs are related programs of the current program according to the current program and user habits played by the user. When the user watches the current program, the streaming media package of the associated program is downloaded in the background, thereby When the user switches the program, the pre-downloaded related program can be viewed, the buffering time of the program switching and the waiting time of the user are reduced, and the user experience is improved. Therefore, it has industrial applicability.

Claims

权 利 要 求 书 、 一种网络电视节目切换方法, 包括: 根据播放的当前节目, 预下载所述当前节目的关联节目并保存至缓存; 在所述当前节目播放完毕后, 判断待播放节目是否是所述关联节目; 若判定所述待播放节目是所述关联节目, 播放所述关联节目。 、 如权利要求 1所述的方法, 其中, 所述方法还包括: 若判定所述待播放节目不是所述关联节目, 播放所述关联节目直至成功切 换至所述待播节目。 、 如权利要求 1所述的方法, 其中, 所述根据播放的当前节目, 预下载所述当前 节目的关联节目并保存至缓存包括: The method for switching a network television program includes: pre-downloading the associated program of the current program according to the current program being played and saving to the cache; after the current program is played, determining whether the program to be played is Determining a related program; if it is determined that the program to be played is the related program, playing the related program. The method according to claim 1, wherein the method further comprises: if it is determined that the program to be played is not the associated program, playing the related program until the program is successfully switched. The method of claim 1, wherein the pre-downloading the associated program of the current program and saving to the cache according to the current program being played comprises: 若判定播放的当前节目是视频点播节目, 则下载当前节目所在系列的下一 个视频节目并保存至缓存; 若判定播放的当前节目是实时电视频道节目, 则下载当前播放的频道号的 上一个频道号和 /或下一个频道号对应的频道节目并保存至缓存。 、 如权利要求 1至 3任一项所述的方法, 其中, 在所述下载当前节目的关联节目 并保存至缓存之前, 所述方法还包括:  If it is determined that the currently broadcasted program is a video-on-demand program, the next video program of the series in which the current program is located is downloaded and saved to the cache; if it is determined that the current program being played is a live TV channel program, the previous channel of the currently played channel number is downloaded. The channel program corresponding to the number and/or the next channel number is saved to the cache. The method according to any one of claims 1 to 3, wherein before the downloading the associated program of the current program and saving to the cache, the method further includes: 检测播放的当前节目的宽带使用情况, 判断播放当前节目的宽带是否满足 预设条件; 当判定播放当前节目的宽带满足预设条件时, 确定下载当前节目的 关联节目。 、 如权利要求 4所述的方法, 其中, 所述检测播放的当前节目的宽带使用情况, 判断播放当前节目的宽带是否满足预设条件包括:  Detecting the broadband usage of the currently broadcasted program, determining whether the bandwidth of the current program is satisfied, and determining whether to download the associated program of the current program when it is determined that the broadband of the current program meets the preset condition. The method according to claim 4, wherein the detecting the broadband usage of the currently played program, and determining whether the bandwidth of the current program is played meets the preset condition comprises: 获取播放当前节目需要的下载速率 VI和当前网络最大可用速率 V2; 将当前播放节目需要的下载速率 VI和当前网络最大可用速率 V2的比值作 为当前网络使用率 m;  Obtain the download rate VI required to play the current program and the current network maximum available rate V2; the ratio of the download rate VI required for the currently broadcasted program to the current network maximum available rate V2 as the current network usage rate m; 根据当前网络使用率 m和预设的网络使用阈值的比较结果,来判断当前网 络带宽是否满足预设条件。 、 如权利要求 5所述的方法, 其特征在于, 所述播放当前节目的宽带是否满足预 设条件包括: 当前网络使用率 m小于预设的网络使用阈值, 判定所述播放当前 节目的宽带满足预设条件。 、 一种网络电视节目切换装置, 所述装置包括: 预下载模块, 设置为根据播放的当前节目, 预下载当前节目的关联节目并 保存至缓存; According to the comparison result of the current network usage rate m and the preset network usage threshold, it is determined whether the current network bandwidth meets the preset condition. The method according to claim 5, wherein the playing the bandwidth of the current program meets the preset condition comprises: the current network usage rate m is smaller than a preset network usage threshold, and determining that the broadband of the current program is satisfied Preset conditions. a network television program switching device, the device comprising: a pre-downloading module, configured to pre-download the associated program of the current program according to the current program being played and save to the cache; 判定模块, 设置为在所述当前节目播放完毕后, 判断待播放节目是否是所 述关联节目;  a determining module, configured to determine, after the current program is played, whether the program to be played is the associated program; 控制模块, 设置为在判定所述待播放节目是关联节目时, 控制播放器播放 所述关联节目。 、 如权利要求 7所述的装置, 其中, 所述控制模块还设置为: 在判定所述待播放节目不是关联节目时, 则播放所述关联节目直至成功切 换至所述待播节目。 、 如权利要求 7所述的装置, 其中, 所述预下载模块具体设置为: 若当前节目是视频点播节目, 下载该节目系列的下一个视频节目并保存至 缓存;  And a control module, configured to control the player to play the associated program when determining that the to-be-played program is an associated program. The device according to claim 7, wherein the control module is further configured to: when it is determined that the to-be-played program is not an associated program, play the related program until the program is successfully switched. The device of claim 7, wherein the pre-downloading module is specifically configured to: if the current program is a video-on-demand program, download the next video program of the program series and save to the cache; 若当前节目是实时电视频道节目, 下载当前播放的频道弓的上 个频道弓- 和 /或下一个频道号对应的频道节目并保存至缓存。 0、 如权利要求 7至 9任一项所述的装置, 其中, 所述装置还包括: 检测模块, 设 置为检测播放的当前节目的宽带使用情况, 判断播放当前节目的宽带是否满足 预设条件, 在判断播放当前节目的宽带满足预预设条件时, 通知所述预下载模 块根据播放的当前节目, 预下载当前节目的关联节目。 1、 如权利要求 10所述的装置, 其中, 所述检测模块包括: 获取子模块, 设置为获取当前播放节目需要的下载速率 VI和当前网络最 大可用速率 V2;  If the current program is a live TV channel program, download the channel program corresponding to the previous channel bow of the currently playing channel bow and/or the next channel number and save it to the cache. The device according to any one of claims 7 to 9, wherein the device further comprises: a detecting module configured to detect a broadband usage of the currently broadcasted program, and determine whether the bandwidth of the current program is satisfied. When it is determined that the broadband of the current program meets the pre-preset condition, the pre-downloading module is notified to pre-download the associated program of the current program according to the current program being played. The device of claim 10, wherein the detecting module comprises: an obtaining submodule, configured to obtain a download rate VI required for the currently playing program and a current network maximum available rate V2; 计算子模块, 设置为计算播放当前节目需要的下载速率 VI和当前网络最 大可用速率 V2的比值, 将所述比值作为当前网络使用率 m; 判断子模块,设置为根据当前网络使用率 m和预设的网络使用阈值的比较 结果, 判断当前网络带宽是否满足预设条件; 通知子模块, 设置为在判断播放当前节目的宽带满足预预设条件时, 通知 所述预下载模块根据播放的当前节目, 预下载当前节目的关联节目。 、 如权利要求 11所述的装置,其中,所述判断子模块具体设置为在当前网络使用 率 m小于预设的网络使用阈值时, 判定当前网络带宽满足预设条件。 、 一种用于播放网络电视的终端,所述终端包含权利要求 7至 12任一项所述的装 置。 、 一种网络电视系统, 所述系统包含权利要求 7至 12任一项所述的装置。 The calculation submodule is configured to calculate a ratio of a download rate VI required to play the current program to a current network maximum available rate V2, and use the ratio as the current network usage rate m; the determining submodule is set to be based on the current network usage rate m and the pre The network uses the comparison result of the threshold to determine whether the current network bandwidth meets the preset condition; The notification submodule is configured to notify the pre-download module to pre-download the associated program of the current program according to the current program being played when determining that the broadband of the current program meets the pre-preset condition. The device of claim 11, wherein the determining sub-module is specifically configured to determine that the current network bandwidth meets a preset condition when the current network usage rate m is less than a preset network usage threshold. A terminal for playing a network television, the terminal comprising the apparatus of any one of claims 7 to 12. A network television system, the system comprising the apparatus of any one of claims 7 to 12.
PCT/CN2014/077813 2014-02-10 2014-05-19 Method and device for switching network television program, and television system Ceased WO2015117291A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410046920.7A CN104837056A (en) 2014-02-10 2014-02-10 Method and device for switching network television programs, and television system
CN201410046920.7 2014-02-10

Publications (1)

Publication Number Publication Date
WO2015117291A1 true WO2015117291A1 (en) 2015-08-13

Family

ID=53777127

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/077813 Ceased WO2015117291A1 (en) 2014-02-10 2014-05-19 Method and device for switching network television program, and television system

Country Status (2)

Country Link
CN (1) CN104837056A (en)
WO (1) WO2015117291A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106850629B (en) * 2017-02-09 2020-05-12 Oppo广东移动通信有限公司 Method for processing streaming media data and mobile terminal
CN107509094B (en) * 2017-09-12 2019-07-12 中广热点云科技有限公司 A kind of method of smart television programme televised live association request program
CN109803169B (en) * 2019-01-25 2021-11-30 烽火通信科技股份有限公司 Method and system for realizing multi-path multicast based on network bandwidth
CN110225393A (en) * 2019-05-29 2019-09-10 阿里巴巴集团控股有限公司 Video cache method and device
CN115209184A (en) * 2022-09-14 2022-10-18 深圳市华曦达科技股份有限公司 Automatic downloading method and device for network series dramas

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008044142A2 (en) * 2006-10-13 2008-04-17 Nokia Corporation Approach for channel switch time reduction in ipdc over dvb-h
CN101422036A (en) * 2006-04-18 2009-04-29 索尼爱立信移动通讯有限公司 Method and system for managing video data based on predicted next channel selection
CN101426110A (en) * 2008-11-28 2009-05-06 北京创毅视讯科技有限公司 Method for implementing television channel switch and multimedia broadcast receiving terminal
CN102883208A (en) * 2012-09-27 2013-01-16 深圳市九洲电器有限公司 Method and system for quickly changing programs

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179700B (en) * 2006-12-20 2011-05-11 腾讯科技(深圳)有限公司 Program source switch method and stream media play system
CN101489112A (en) * 2009-01-14 2009-07-22 深圳市同洲电子股份有限公司 Method, server and terminal for associating live broadcasting program with play-on-demand program
CN103533437A (en) * 2013-10-30 2014-01-22 乐视致新电子科技(天津)有限公司 Method and device for switching channels of smart television

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101422036A (en) * 2006-04-18 2009-04-29 索尼爱立信移动通讯有限公司 Method and system for managing video data based on predicted next channel selection
WO2008044142A2 (en) * 2006-10-13 2008-04-17 Nokia Corporation Approach for channel switch time reduction in ipdc over dvb-h
CN101426110A (en) * 2008-11-28 2009-05-06 北京创毅视讯科技有限公司 Method for implementing television channel switch and multimedia broadcast receiving terminal
CN102883208A (en) * 2012-09-27 2013-01-16 深圳市九洲电器有限公司 Method and system for quickly changing programs

Also Published As

Publication number Publication date
CN104837056A (en) 2015-08-12

Similar Documents

Publication Publication Date Title
US10104137B2 (en) Recording of ABR content
US8837586B2 (en) Bandwidth-friendly representation switching in adaptive streaming
US10623785B2 (en) Streaming manifest quality control
US9998775B2 (en) Enforcement of trick-play disablement in adaptive bit rate video content delivery
US7870281B2 (en) Content playback device, content playback method, computer-readable storage medium, and content playback system
US9338206B2 (en) Method and apparatus for playing live content
CN101390393B (en) System and method for enhancing special playback functions
CN103369410B (en) Method, device, and computer-readable storage medium for playing broadcast content
US8005973B2 (en) Method and system for playing video on a mobile device
CN103686342B (en) Method for playing network film and electronic device thereof
US9894366B2 (en) Variant and buffer handling for adaptive bitrate streaming
CN101094378B (en) A time-shifting method and system for interactive network TV
CN109937448A (en) System and method for providing audio content during trick-play playback
WO2015117291A1 (en) Method and device for switching network television program, and television system
WO2012146098A1 (en) Method and corresponding system for storing and playing streaming media
US8230468B2 (en) Dynamically creating trick files to hide latency in streaming networks
CN102550038A (en) Method, terminal, server and system for playing media files
US9516357B2 (en) Recording variable-quality content stream
CN105791987B (en) media data playing method and terminal
TW201436577A (en) Video display system and method based on highlight information
CN106612462B (en) Fast forward and fast backward processing method and terminal
CN102148806A (en) Time shift processing method and system, network equipment and terminal for network television
CN102594773B (en) A kind of method and system for realizing data acquisition
CN102149021B (en) Method, device and system for processing network time shift
CN106231414B (en) Control method and device for playing mode switching based on IPTV

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

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

Country of ref document: EP

Kind code of ref document: A1