CN104837056A - Method and device for switching network television programs, and television system - Google Patents
Method and device for switching network television programs, and television system Download PDFInfo
- Publication number
- CN104837056A CN104837056A CN201410046920.7A CN201410046920A CN104837056A CN 104837056 A CN104837056 A CN 104837056A CN 201410046920 A CN201410046920 A CN 201410046920A CN 104837056 A CN104837056 A CN 104837056A
- Authority
- CN
- China
- Prior art keywords
- program
- current
- played
- download
- module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/438—Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving encoded video stream packets from an IP network
- H04N21/4383—Accessing a communication channel
- H04N21/4384—Accessing a communication channel involving operations to reduce the access time, e.g. fast-tuning for reducing channel switching latency
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/442—Monitoring 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/44213—Monitoring of end-user related data
- H04N21/44222—Analytics of user selections, e.g. selection of programs or purchase activity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/218—Source of audio or video content, e.g. local disk arrays
- H04N21/2187—Live feed
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/24—Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
- H04N21/2402—Monitoring of the downstream path of the transmission network, e.g. bandwidth available
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4331—Caching operations, e.g. of an advertisement for later insertion during playback
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network 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/61—Network physical structure; Signal processing
- H04N21/6106—Network physical structure; Signal processing specially adapted to the downstream path of the transmission network
- H04N21/6125—Network physical structure; Signal processing specially adapted to the downstream path of the transmission network involving transmission via Internet
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network 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/63—Control 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/643—Communication protocols
- H04N21/64322—IP
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
本发明提出一种网络电视节目切换方法、装置和电视系统,所述方法包括根据播放的当前节目,预下载所述当前节目的关联节目并保存至缓存;在所述当前节目播放完毕后,判断待播放节目是否是所述关联节目;若判定所述待播放节目是所述关联节目,播放所述关联节目。
The present invention proposes a network TV program switching method, device and TV system, the method includes pre-downloading the associated program of the current program according to the current program being played and saving it to the cache; after the playing of the current program is completed, judging Whether the program to be played is the associated program; if it is determined that the program to be played is the associated program, play the associated program.
Description
技术领域technical field
本发明涉及网络电视应用领域,尤其涉及一种网络电视节目切换方法、装置和电视系统。The invention relates to the application field of network television, in particular to a network television program switching method, device and television system.
背景技术Background technique
目前网络电视概念非常火爆,各大电视厂商、机顶盒厂商、IPTV厂商和互联网公司都在积极推出自己的网络电视产品。网络电视相比传统电视来说,优点特别明显:网络电视可以通过宽带网络从网络服务器下载节目视频并且播放,这使得用户摆脱了电视台播放什么节目只能看什么节目的情况,用户可以自由选择自己想看的节目。At present, the concept of Internet TV is very popular, and major TV manufacturers, set-top box manufacturers, IPTV manufacturers and Internet companies are actively launching their own Internet TV products. Compared with traditional TV, Internet TV has obvious advantages: Internet TV can download and play program videos from network servers through broadband network, which makes users get rid of the situation that TV stations can only watch which programs they broadcast, and users can freely choose their own program you want to watch.
但是网络电视自身的不足也比较明显,由于网络电视切换节目或者视频的时候,都要重新进行连接,这导致切换的缓冲时间过长,严重影响了用户体验。However, the shortcomings of the Internet TV itself are relatively obvious. When the Internet TV switches programs or videos, the connection must be reconnected, which leads to a long buffer time for switching, which seriously affects the user experience.
发明内容Contents of the invention
本发明就是在这种背景下提出,为了解决在网络电视切换节目或视频时缓冲时间长的问题,本文提出了一种网络电视节目切换方法、装置和电视系统。The present invention is proposed under this background. In order to solve the problem of long buffering time when switching programs or videos in Internet TV, this paper proposes a method, device and TV system for Internet TV program switching.
本发明提供一种网络电视节目切换方法,所述方法包括:根据播放的当前节目,预下载所述当前节目的关联节目并保存至缓存;在所述当前节目播放完毕后,判断待播放节目是否是所述关联节目;若判定所述待播放节目是所述关联节目,播放所述关联节目。The present invention provides a method for switching Internet TV programs. The method includes: according to the current program being played, pre-downloading related programs of the current program and storing them in the cache; is the associated program; if it is determined that the program to be played is the associated program, play the associated program.
进一步的,若判定所述待播放节目不是所述关联节目,播放所述关联节目直至成功切换至所述待播节目。Further, if it is determined that the program to be played is not the associated program, the associated program is played until successfully switched to the program to be played.
具体的,所述根据播放的当前节目,预下载所述当前节目的关联节目并保存至缓存包括:若判定播放的当前节目是视频点播节目,则下载该节目系列的下一个视频节目并保存至缓存;若判定播放的当前节目是实时电视频道节目,则下载当前播放的频道号的上一个频道号和/或下一个频道号对应的频道节目并保存至缓存。Specifically, said pre-downloading the associated program of the current program according to the current program being played and saving it to the cache includes: if it is determined that the current program being played is a video-on-demand program, downloading the next video program of the program series and saving it to Caching; if the current program that is judged to be played is a real-time TV channel program, then download the channel program corresponding to the previous channel number and/or the next channel number of the currently played channel number and save it to the cache.
进一步的,所述下载当前节目的关联节目并保存至缓存之前,所述方法还包括:检测播放的当前节目的宽带使用情况,判断播放当前节目的宽带是否满足预设条件;当判定播放当前节目的宽带满足预设条件时,通知所述预下载模块根据播放的当前节目,下载当前节目的关联节目。Further, before downloading the associated program of the current program and storing it in the cache, the method further includes: detecting the bandwidth usage of the current program being played, and judging whether the broadband for playing the current program meets the preset conditions; When the bandwidth meets the preset condition, the pre-download module is notified to download related programs of the current program according to the current program being played.
进一步的,所述检测播放的当前节目的宽带使用情况,判断播放当前节目的宽带是否满足预设条件包括:获取当前播放节目需要的下载速率V1和当前网络最大可用速率V2;将当前播放节目需要的下载速率V1和当前网络最大可用速率V2的比值作为当前网络使用率m;根据当前网络使用率m和预设的网络使用阈值的比较结果,来判断当前网络带宽是否满足预设条件。Further, the detection of the broadband usage of the current program played, and judging whether the broadband used to play the current program meets the preset conditions include: obtaining the download rate V1 required by the currently played program and the maximum available rate V2 of the current network; The ratio of the download rate V1 of the current network to the maximum available rate V2 of the current network is used as the current network utilization rate m; according to the comparison result of the current network utilization rate m and the preset network usage threshold, it is judged whether the current network bandwidth meets the preset conditions.
进一步的,所述播放当前节目的宽带是否满足预设条件包括:当前网络使用率m小于预设的网络使用阈值,判定所述播放当前节目的宽带满足预设条件。Further, whether the broadband for playing the current program satisfies the preset condition includes: the current network usage rate m is less than a preset network usage threshold, and it is determined that the broadband for playing the current program meets the preset condition.
本发明还公开一种网络电视节目切换装置,所述装置包括预下载模块、判定模块和控制模块,所述预下载模块用于根据播放的当前节目,预下载当前节目的关联节目并保存至缓存;所述判定模块用于在所述当前节目播放完毕后,判断待播放节目是否是所述关联节目;所述控制模块用于在判定所述待播放节目是关联节目时,控制播放器播放所述关联节目。The present invention also discloses an Internet TV program switching device. The device includes a pre-download module, a judgment module and a control module. The pre-download module is used to pre-download the associated program of the current program according to the current program being played and save it to the cache The judging module is used to judge whether the program to be played is the associated program after the current program is played; the control module is used to control the player to play the associated program when it is determined that the program to be played is associated. related programs.
进一步的,所述控制模块还用于在判定所述待播放节目不是关联节目时,则播放所述关联节目直至成功切换至所述待播节目。Further, the control module is further configured to play the associated program until it is successfully switched to the program to be played when it is determined that the program to be played is not an associated program.
具体的,所述预下载模块用于若判定播放的当前节目是视频点播节目,则下载该节目系列的下一个视频节目并保存至缓存;若判定播放的当前节目是实时电视频道节目,则下载当前播放的频道号的上一个频道号和/或下一个频道号对应的频道节目并保存至缓存。Specifically, the pre-download module is used to download the next video program of the program series and save it to the cache if it is determined that the current program played is a video-on-demand program; if it is determined that the current program played is a real-time TV channel program, then download The channel program corresponding to the previous channel number and/or the next channel number of the currently played channel number is saved to the cache.
进一步的,所述装置还包括检测模块,用于在下载并存储待播放节目的数据缓冲包所述数据缓冲包之前,检测播放的当前节目的宽带使用情况,判断播放当前节目的宽带是否满足预设条件,在判断播放当前节目的宽带满足预预设条件时,通知所述预下载模块根据播放的当前节目,预下载当前节目的关联节目。Further, the device also includes a detection module, which is used to detect the broadband usage of the current program being played before downloading and storing the data buffer package of the program to be played, and determine whether the bandwidth for playing the current program meets the predetermined requirements. A condition is set, and when it is judged that the broadband for playing the current program satisfies the preset condition, the pre-download module is notified to pre-download related programs of the current program according to the current program being played.
进一步的,所述检测模块包括获取子模块、计算子模块、判断子模块和通知子模块,所述获取子模块用于获取当前播放节目需要的下载速率V1和当前网络最大可用速率V2;所述计算子模块用于将当前播放节目需要的下载速率V1和当前网络最大可用速率V2的比值作为当前网络使用率m;所述判断子模块用于根据当前网络使用率m和预设的网络使用阈值的比较结果,判断当前网络带宽是否满足预设条件;所述通知子模块用于在判断播放当前节目的宽带满足预预设条件时,通知所述预下载模块根据播放的当前节目,预下载当前节目的关联节目。Further, the detection module includes an acquisition sub-module, a calculation sub-module, a judgment sub-module and a notification sub-module, the acquisition sub-module is used to obtain the download rate V1 required by the current broadcast program and the maximum available rate V2 of the current network; the The calculation sub-module is used to use the ratio of the download rate V1 required by the current broadcast program to the maximum available rate V2 of the current network as the current network usage rate m; the judgment sub-module is used to base the current network usage rate m and the preset network usage threshold The comparison result of the current network is judged whether the current network bandwidth meets the preset condition; the notification submodule is used to notify the pre-download module to pre-download the current The show's associated show.
进一步的,所述判断子模块具体用于在当前网络使用率m小于预设的网络使用阈值时,判定当前网络带宽满足预设条件。Further, the judging sub-module is specifically configured to determine that the current network bandwidth satisfies a preset condition when the current network usage rate m is less than a preset network usage threshold.
本发明还公开一种用于播放网络电视的终端,所述终端包含上述装置。The present invention also discloses a terminal for playing Internet TV, and the terminal includes the above-mentioned device.
本发明还公开一种网络电视系统,所述电视系统包含上述装置。The invention also discloses a network television system, which includes the above-mentioned device.
本发明实施例提供了一种网络电视节目切换方法,在判断当前节目的关联节目后,预下载当前节目的关联节目的流媒体包放入缓存,并在切换节目时可以直接播放,解决在网络电视切换时缓冲时间长的问题。The embodiment of the present invention provides a network TV program switching method. After judging the related program of the current program, the streaming media package of the related program of the current program is pre-downloaded and put into the cache, and can be played directly when the program is switched. The problem of long buffering time when switching TV.
附图说明Description of drawings
图1为本发明方法实施例基本流程图;Fig. 1 is the basic flowchart of the method embodiment of the present invention;
图2为本发明一种方法实施例流程图;Fig. 2 is a flow chart of a method embodiment of the present invention;
图3为本发明另一方法实施例流程图;Fig. 3 is a flowchart of another method embodiment of the present invention;
图4本发明装置实施例结构示意图。Fig. 4 is a schematic structural diagram of an embodiment of the device of the present invention.
具体实施方式Detailed ways
本发明解决了网络电视在节目切换时会有缓冲时间长的问题,根据播放的当前节目和用户习惯来判断哪些节目是当前节目的关联节目,用户收看节目的时候,关联节目的流媒体包也在后台下载。The present invention solves the problem of long buffering time of network TV when programs are switched, and judges which programs are related programs of the current program according to the current program played and user habits, and when the user watches the program, the streaming media package of the related program Download in the background.
为使本发明的目的、技术方案和优点更加清楚明白,下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。In order to make the purpose, technical solution and advantages of the present invention more clear, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other.
图1为本发明方法实施例基本流程图,如图1所示的方法,包括以下步骤,Fig. 1 is the basic flowchart of the method embodiment of the present invention, and the method as shown in Fig. 1 comprises the following steps,
步骤S11:终端根据播放的当前节目,预下载所述当前节目的关联节目并保存至缓存;Step S11: According to the current program being played, the terminal pre-downloads related programs of the current program and saves them in the cache;
这相当于终端同时连接、下载多个电视节目,只播放用户当前选中的这个节目,关联节目作为备用,只下载不播放。This is equivalent to the terminal connecting and downloading multiple TV programs at the same time, only playing the program currently selected by the user, and the associated program as a backup, only downloading but not playing.
当前节目是实时的电视频道节目或者视频点播节目,如果当前节目是实时电视频道节目,并且播放的频道号是N,则关联节目就是频道号N-1和/或频道号N+1对应的节目,例如用户收到频道4,关联节目就是频道3和/或频道5。The current program is a real-time TV channel program or a video-on-demand program. If the current program is a real-time TV channel program and the channel number played is N, then the associated program is the program corresponding to channel number N-1 and/or channel number N+1 , for example the user receives channel 4, the associated programs are channel 3 and/or channel 5.
如果当前节目是视频点播节目,则关联节目是该节目系列的下一个视频节目,例如用户收看的节目是视频点播库中某电视剧第4集,关联节目就是该电视剧第5集。If the current program is a video-on-demand program, the associated program is the next video program of the program series. For example, the program watched by the user is the fourth episode of a TV series in the video-on-demand library, and the associated program is the fifth episode of the TV series.
步骤S12:在所述当前节目播放完毕后,判断待播放节目是否是所述关联节目;Step S12: After the current program is finished playing, determine whether the program to be played is the associated program;
步骤S13:若判定所述待播放节目是所述关联节目,播放所述关联节目。Step S13: If it is determined that the program to be played is the associated program, play the associated program.
方法实施例一Method embodiment one
图2为本发明一种方法实施例流程图,如图2所示的方法,包括以下步骤:Fig. 2 is a flow chart of a method embodiment of the present invention, the method shown in Fig. 2 comprises the following steps:
步骤201:连接模块与网络视频服务器进行身份认证,建立数据连接;Step 201: the connection module performs identity authentication with the network video server, and establishes a data connection;
连接模块建立数据连接的过程跟视频服务器有关,视频服务器不同,对应的建立数据连接过程也不相同,本实施例以建立TCP连接为例对网络电视的节目切换作详细的阐述。具体为,通过TCP建立连接,然后发送鉴权信息(用户名密码等)进行认证,然后请求具体的视频节目播放。The process of establishing a data connection by the connection module is related to the video server, and the corresponding process of establishing a data connection is also different for different video servers. This embodiment takes the establishment of a TCP connection as an example to describe the program switching of Internet TV in detail. Specifically, a connection is established through TCP, and then authentication information (user name and password, etc.) is sent for authentication, and then a specific video program is requested to be played.
步骤202:用户选择实时频道作为当前节目;Step 202: the user selects a real-time channel as the current program;
用户通过遥控器或这电视机体自带的选择键选择收看的节目,该实施例中用户选择频道N。The user selects the program to watch through the remote control or the selection key on the TV body. In this embodiment, the user selects channel N.
步骤203:播放模块接收播放指令后,播放当前节目;Step 203: After the playback module receives the playback instruction, it plays the current program;
步骤204:第一缓冲模块缓冲当前节目,并存储缓冲资源;Step 204: The first buffer module buffers the current program and stores the buffer resources;
步骤205:第一判定模块判断当前宽带情况是否满足预下载条件;Step 205: the first judgment module judges whether the current broadband situation meets the pre-download condition;
当前宽带情况满足预下载条件时,跳至步骤206,当前宽带情况不满足预下载条件时,跳至步骤204。When the current broadband condition satisfies the pre-download condition, skip to step 206, and when the current broadband condition does not satisfy the pre-download condition, skip to step 204.
本实施例中,判断当前宽带情况是否满足预下载条件具体为:In this embodiment, judging whether the current broadband situation satisfies the pre-download condition is specifically as follows:
首先获取当前播放频道N需要的下载速率V1,再获取当前网络最大可用速率V2,将V1与V2的比值作为当前网络使用率m;First obtain the download rate V1 required by the current broadcast channel N, and then obtain the maximum available rate V2 of the current network, and use the ratio of V1 to V2 as the current network utilization rate m;
然后将当前网络使用率m和预设的网络使用率阀值M进行比较,如果m小于M,则判定为当前网络带宽还有富余,此时进行其他节目下载不会影响到节目N的正常播放,则跳转至步骤7。如果m不小于M,判定为网络占用比较饱和,不能在下载其他节目了。Then compare the current network usage rate m with the preset network usage rate threshold value M, if m is less than M, it is determined that the current network bandwidth is still sufficient, and downloading other programs at this time will not affect the normal playback of program N , skip to step 7. If m is not less than M, it is determined that the network usage is relatively saturated, and other programs cannot be downloaded.
如果网络带宽是10Mbps,播放当前电视节目仅使用了0.5Mbps,这说明网络使用率m为0.5/10=5%,网络带宽还有富余,此时下载其他电视节目不会影响当前节目的正常播放。If the network bandwidth is 10Mbps, only 0.5Mbps is used to play the current TV program, which means that the network usage rate m is 0.5/10=5%, and there is still room for network bandwidth. Downloading other TV programs at this time will not affect the normal playback of the current program .
如果网络带宽是1Mbps,播放当前电视节目仅使用了0.7Mbps,这说明网络使用率m为0.7/1=70%,网络带宽已经接近饱和,此时下载其他电视节目很可能会造成当前节目卡顿,此时就不适合再进行后台下载其他电视节目了。If the network bandwidth is 1Mbps, only 0.7Mbps is used to play the current TV program, which means that the network utilization rate m is 0.7/1=70%, and the network bandwidth is close to saturation. Downloading other TV programs at this time is likely to cause the current program to freeze , it is not suitable to download other TV programs in the background at this time.
网络使用率阈值的设置是为了保证所有的下载链接速度之和不能到达网络总带宽,否则这几个下载可能会互相影响。例如最多允许同时进行4个下载,那么每个下载链接速度不能超过25%,则可以设定网络使用率阈值为25%,这样通过设置网络使用率阈值为了保证当前节目的流畅播放。The setting of the network usage threshold is to ensure that the sum of all download link speeds cannot reach the total network bandwidth, otherwise these downloads may affect each other. For example, a maximum of 4 downloads are allowed at the same time, so the speed of each download link cannot exceed 25%, and the network usage threshold can be set to 25%, so that the current program can be played smoothly by setting the network usage threshold.
步骤206:预下载模块在连接模块在后台连接当前节目的关联节目后,预下载当前节目的关联节目的流媒体包放入缓存;Step 206: the pre-downloading module pre-downloads the streaming media package of the associated program of the current program into the cache after the connection module connects the associated program of the current program in the background;
判断频道N的关联节目的方法包括但不限于:The methods for judging the associated programs of channel N include but not limited to:
如果用户收看的是实时电视频道节目,关联节目就是频道号N-1和频道号N+1,例如用户选择的当前节目频道N是频道4,则关联节目默认为频道3和频道5,也可以根据用户自定义关联节目。If the user is watching a real-time TV channel program, the associated program is channel number N-1 and channel number N+1. For example, the current program channel N selected by the user is channel 4, and the associated program defaults to channel 3 and channel 5. Associate programs according to user definition.
步骤207:用户选择切换节目;Step 207: The user chooses to switch programs;
步骤208:第二判定模块判定待播放节目是关联节目;Step 208: the second judging module judges that the program to be played is an associated program;
步骤209:读取模块从缓存读取关联节目的流媒体包;Step 209: The reading module reads the streaming media package of the associated program from the cache;
步骤210:第三判定模块判断缓存的流媒体包是否过期;Step 210: the third judging module judges whether the cached streaming media package has expired;
如果存在频道N的流媒体包但是时间已经过期,步骤211,如果存在节目N的流媒体包并且是当前时间可用的,则跳转至步骤12。If there is a streaming media package of channel N but the time has expired, step 211, if there is a streaming media package of program N and it is available at the current time, then jump to step 12.
本实施例中判断缓存的流媒体包是否过期为:In the present embodiment, it is judged whether the streaming media package of cache expires as:
流媒体在播放时不断读取缓存中的流媒体包中的数据进行播放,播放完后该数据便被立即清除,新的数据将存入到缓存中。当前播放的节目的流媒体包,播放完就被删除了。关联节目的流媒体包,存储在缓存中,不会被播放,但也不被一直保留,本实施例中设置一个过期时间,例如3秒,3秒之前的流媒体包都会被删除,这样就意味着缓存只保留最近3秒的节目数据。When the streaming media is playing, it continuously reads the data in the streaming media package in the cache for playback. After the playback, the data will be cleared immediately, and new data will be stored in the cache. The streaming media package of the currently playing program will be deleted after playing. The streaming media package of the associated program is stored in the cache and will not be played, but it will not be kept all the time. In this embodiment, an expiration time is set, such as 3 seconds, and the streaming media package before 3 seconds will be deleted, so that It means that the cache only keeps the last 3 seconds of program data.
这个步骤是为了使缓存不被装满流媒体包,而一直处于可用状态,还保证了频道节目的实时性。This step is to keep the cache in an available state without being filled with streaming media packages, and also to ensure the real-time performance of the channel programs.
步骤211:删除模块删除过期的流媒体包,跳转至步骤212;Step 211: the deletion module deletes the expired streaming media package, and jumps to step 212;
主控模块通过网络连接模块连接节目N的服务器,下载节目N的流媒体包放入缓存。The main control module is connected to the server of the program N through the network connection module, and the streaming media package of the downloaded program N is put into the cache.
步骤212:播放模块播放缓存的节目。Step 212: The playing module plays the buffered programs.
流媒体在播放时不断读取缓存中的数据进行播放,播放完后该数据便被立即清除,新的数据将存入到缓存中。When the streaming media is playing, it continuously reads the data in the cache for playback. After the playback, the data will be cleared immediately, and new data will be stored in the cache.
步骤213:跳至步骤204;Step 213: skip to step 204;
步骤214:流程结束。Step 214: the process ends.
方法实施例二Method embodiment two
图3是本发明另一个方法实施例流程图,如图3所示的方法,包括以下步骤:Fig. 3 is a flowchart of another method embodiment of the present invention, the method shown in Fig. 3 includes the following steps:
步骤301:连接模块与网络视频服务器进行身份认证,建立数据连接。Step 301: The connection module performs identity authentication with the network video server, and establishes a data connection.
网络电视通过HTTP与网络视频服务器进行身份认证,建立数据连接。The network TV conducts identity authentication with the network video server through HTTP, and establishes a data connection.
步骤302:用户选择收看节目1作为当前节目;Step 302: The user chooses to watch program 1 as the current program;
本实施例中用户选择收看的节目1是视频点播节目,并且电视剧全部在服务器数据库中按一定的次序存放。In this embodiment, the program 1 that the user chooses to watch is a video-on-demand program, and all TV dramas are stored in a certain order in the server database.
步骤303:下载模块下载节目1的流媒体包放入缓存;Step 303: the download module downloads the streaming media package of program 1 and puts it into the cache;
下载的流媒体到达一定数量的时候,开始播放已下载的这部分内容。播放的同时,继续下载后边的流媒体包放入缓存。When the downloaded streaming media reaches a certain amount, start playing the downloaded content. While playing, continue to download the following streaming media package and put it in the cache.
步骤304:控制模块确定当前节目的关联节目;Step 304: the control module determines the associated programs of the current program;
本实施例中,当前节目的关联节目默认为该节目系列的下一个节目。例如用户收看的节目是视频点播库中某电视剧第4集,关联节目就是该电视剧第5集,如果是最后一集,则退出该流程;In this embodiment, the associated program of the current program is by default the next program of the program series. For example, the program that the user watches is the fourth episode of a TV series in the VOD library, and the associated program is the fifth episode of the TV series. If it is the last episode, exit the process;
另外,关联节目可以由用户自定义实现,例如用户可以设置关联节目为一段MV视频、或者一段轻松的搞笑的动态图片。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.
步骤305:判定模块判断当前宽带情况是否满足预下载条件;Step 305: the judging module judges whether the current broadband situation meets the pre-download condition;
判定模块在判定模块判断当前宽带情况满足预下载条件时,跳至步骤306,在判定模块判断当前宽带情况不满足预下载条件,跳至步骤303。The judging module jumps to step 306 when the judging module judges that the current broadband situation meets the pre-downloading condition, and jumps to step 303 when the judging module judges that the current broadband situation does not meet the pre-downloading condition.
其中,当前宽带是否富余的判断方法同上一实施例,在此不再赘述。Wherein, the method for judging whether the current broadband is sufficient is the same as that in the previous embodiment, and will not be repeated here.
步骤306:预下载模块下载节目1的关联节目的流媒体包,并将关联节目的流媒体包存储到缓存;Step 306: the pre-download module downloads the streaming media package of the associated program of program 1, and stores the streaming media package of the associated program in the cache;
如果是关联节目为默认,则直接在该电视剧库中直接下载,如果关联节目为用户自定义,则连接模块需要在后台连接到关联节目所在的数据库,并下载关联节目。If the associated program is the default, it will be directly downloaded in the TV drama library. If the associated program is user-defined, the connection module needs to connect to the database where the associated program is located in the background and download the associated program.
步骤307:用户选择收看节目1的关联节目;Step 307: The user chooses to watch the associated program of program 1;
节目1的关联节目记为节目2,网络电视首先检查缓存中是否已经存在节目2的流媒体包。如果已经存在,直接播放节目2;如果不存在,网络电视连接节目2的服务器,下载节目2的流媒体包放入缓存,下载的流媒体到达一定数量的时候,开始播放已下载的这部分内容。播放的同时,继续下载后边的流媒体包放入缓存。The associated program of program 1 is recorded as program 2, and the IPTV 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, the IPTV connects to the server of program 2, downloads the streaming media package of program 2 and puts it in the cache, and when the downloaded streaming media reaches a certain amount, it starts to play the downloaded content . While playing, continue to download the following streaming media package and put it in the cache.
步骤308:播放模块从缓存中读取已下载的流媒体包,直接播放。Step 308: The playback module reads the downloaded streaming media package from the cache and plays it directly.
步骤309:流程结束。Step 309: the process ends.
上述两个方法实施例中,关联节目还可以根据用户收视习惯得出,并且利用富余网络带宽下载关联节目的流媒体包。具体包括:如果用户频繁在两个频道间切换,则电视系统记忆这两个频道,在当前节目为其中一个频道时,则当前节目的关联节目则将当前频道的下一个频道或上一个频道替换为这两个频道中的另一个频道。In the above two method embodiments, the associated program can also be obtained according to the user's viewing habits, and the streaming media package of the associated program can be downloaded using the surplus network bandwidth. Specifically include: if the user frequently switches between two channels, the TV system will memorize the two channels, and when the current program is one of the channels, the associated program of the current program will replace the next or previous channel of the current channel for the other of the two channels.
图4为本发明装置实施例结构示意图,如图4所示的装置包括预下载模块41、判定模块42和控制模块43,其中,FIG. 4 is a schematic structural diagram of an embodiment of the device of the present invention. The device shown in FIG. 4 includes a pre-download module 41, a determination module 42 and a control module 43, wherein,
预下载模块41用于根据播放的当前节目,预下载当前节目的关联节目并保存至缓存;该实施例中,预下载模块41具体用于若判定播放的当前节目是视频点播节目,则下载该节目系列的下一个视频节目并保存至缓存;The pre-download module 41 is used for pre-downloading the associated program of the current program according to the current program played and saving it to the cache; The next video program of the program series and saved to the cache;
若判定播放的当前节目是实时电视频道节目,则下载当前播放的频道号的上一个频道号和/或下一个频道号对应的频道节目并保存至缓存。If it is determined that the current program played is a real-time TV channel program, the channel program corresponding to the previous channel number and/or the next channel number of the currently played channel number is downloaded and stored in the cache.
判定模块42用于在所述当前节目播放完毕后,判断待播放节目是否是所述关联节目;控制模块43用于在判定所述待播放节目是关联节目时,控制播放器播放所述关联节目。The judging module 42 is used for judging whether the program to be played is the related program after the playing of the current program is finished; the control module 43 is used for controlling the player to play the related program when it is determined that the program to be played is the related program .
控制模块43还用于在判定所述待播放节目不是关联节目时,则播放所述关联节目直至成功切换至所述待播节目。The control module 43 is further configured to play the associated program until it is successfully switched to the program to be played when it is determined that the program to be played is not an associated program.
该装置还包括检测模块44,检测模块44用于在下载并存储待播放节目的数据缓冲包所述数据缓冲包之前,检测播放的当前节目的宽带使用情况,判断播放当前节目的宽带是否满足预设条件,在判断播放当前节目的宽带满足预预设条件时,通知所述预下载模块根据播放的当前节目,预下载当前节目的关联节目,该实施例中,检测模块44包括获取子模块431、计算子模块432、判断子模块433和通知子模块434,其中,The device also includes a detection module 44. The detection module 44 is used to detect the broadband usage of the current program played and judge whether the broadband used for playing the current program meets the predetermined requirements before downloading and storing the data buffer package of the program to be played. Set the condition, when it is judged that the broadband playing the current program satisfies the preset condition, notify the pre-download module to pre-download the associated program of the current program according to the current program played, in this embodiment, the detection module 44 includes an acquisition sub-module 431 , calculation submodule 432, judgment submodule 433 and notification submodule 434, wherein,
获取子模块431,用于获取当前播放节目需要的下载速率V1和当前网络最大可用速率V2;The obtaining sub-module 431 is used to obtain the download rate V1 required by the current broadcast program and the maximum available rate V2 of the current network;
计算子模块432,用于将当前播放节目需要的下载速率V1和当前网络最大可用速率V2的比值作为当前网络使用率m;判断子模块433,用于根据当前网络使用率m和预设的网络使用阈值的比较结果,判断当前网络带宽是否满足预设条件;The calculation sub-module 432 is used to use the ratio of the download rate V1 required by the current broadcast program to the maximum available rate V2 of the current network as the current network usage rate m; the judgment sub-module 433 is used to use the current network usage rate m and the preset network Use the comparison result of the threshold to judge whether the current network bandwidth meets the preset condition;
具体的,所述判断子模块具体用于在当前网络使用率m小于预设的网络使用阈值时,判定当前网络带宽满足预设条件;Specifically, the judging submodule is specifically used to judge that the current network bandwidth meets the preset condition when the current network usage rate m is less than the preset network usage threshold;
通知子模块434,用于在判断播放当前节目的宽带满足预预设条件时,通知所述预下载模块根据播放的当前节目,预下载当前节目的关联节目。The notification sub-module 434 is configured to notify the pre-download module to pre-download related programs of the current program according to the current program played when it is judged that the broadband playing the current program satisfies the preset condition.
一种用于播放网络电视的终端,包含如图4所示的装置。A terminal for playing Internet TV includes the device shown in FIG. 4 .
一种电视系统,包含如图4所示的装置。A television system includes the device shown in FIG. 4 .
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本发明不限制于任何特定形式的硬件和软件的结合。Those skilled in the art can understand that all or part of the steps in the above method can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk or an optical disk, and the like. Optionally, all or part of the steps in the foregoing embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module in the foregoing embodiments may be implemented in the form of hardware, or may be implemented in the form of software function modules. The present invention is not limited to any specific combination of hardware and software.
以上仅为本发明的优选实施例,当然,本发明还可有其他多种实施例,在不背离本发明精神及其实质的情况下,熟悉本领域的技术人员当可根据本发明作出各种相应的改变和变形,但这些相应的改变和变形都应属于本发明所附的权利要求的保护范围。The above are only preferred embodiments of the present invention. Of course, the present invention also has other various embodiments. Without departing from the spirit and essence of the present invention, those skilled in the art can make various Corresponding changes and modifications, but these corresponding changes and modifications should belong to the scope of protection of the appended claims of the present invention.
Claims (14)
Priority Applications (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 |
| PCT/CN2014/077813 WO2015117291A1 (en) | 2014-02-10 | 2014-05-19 | Method and device for switching network television program, and television system |
Applications Claiming Priority (1)
| 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 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN104837056A true CN104837056A (en) | 2015-08-12 |
Family
ID=53777127
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410046920.7A Pending CN104837056A (en) | 2014-02-10 | 2014-02-10 | Method and device for switching network television programs, and television system |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN104837056A (en) |
| WO (1) | WO2015117291A1 (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106850629A (en) * | 2017-02-09 | 2017-06-13 | 广东欧珀移动通信有限公司 | The processing method and mobile terminal of a kind of stream medium data |
| CN107509094A (en) * | 2017-09-12 | 2017-12-22 | 中广热点云科技有限公司 | A kind of method of intelligent television programme televised live association request program |
| CN109803169A (en) * | 2019-01-25 | 2019-05-24 | 烽火通信科技股份有限公司 | The method and system of multichannel multicast are realized 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 (7)
| 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 |
| CN101179700A (en) * | 2006-12-20 | 2008-05-14 | 腾讯科技(深圳)有限公司 | Program source switch method and stream media play system |
| 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 |
| CN101489112A (en) * | 2009-01-14 | 2009-07-22 | 深圳市同洲电子股份有限公司 | Method, server and terminal for associating live broadcasting program with play-on-demand program |
| CN102883208A (en) * | 2012-09-27 | 2013-01-16 | 深圳市九洲电器有限公司 | Method and system for quickly changing programs |
| CN103533437A (en) * | 2013-10-30 | 2014-01-22 | 乐视致新电子科技(天津)有限公司 | Method and device for switching channels of smart television |
-
2014
- 2014-02-10 CN CN201410046920.7A patent/CN104837056A/en active Pending
- 2014-05-19 WO PCT/CN2014/077813 patent/WO2015117291A1/en not_active Ceased
Patent Citations (7)
| 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 |
| CN101179700A (en) * | 2006-12-20 | 2008-05-14 | 腾讯科技(深圳)有限公司 | Program source switch method and stream media play system |
| CN101426110A (en) * | 2008-11-28 | 2009-05-06 | 北京创毅视讯科技有限公司 | Method for implementing television channel switch and multimedia broadcast receiving terminal |
| CN101489112A (en) * | 2009-01-14 | 2009-07-22 | 深圳市同洲电子股份有限公司 | Method, server and terminal for associating live broadcasting program with play-on-demand program |
| CN102883208A (en) * | 2012-09-27 | 2013-01-16 | 深圳市九洲电器有限公司 | Method and system for quickly changing programs |
| CN103533437A (en) * | 2013-10-30 | 2014-01-22 | 乐视致新电子科技(天津)有限公司 | Method and device for switching channels of smart television |
Cited By (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106850629A (en) * | 2017-02-09 | 2017-06-13 | 广东欧珀移动通信有限公司 | The processing method and mobile terminal of a kind of stream medium data |
| WO2018145539A1 (en) * | 2017-02-09 | 2018-08-16 | 广东欧珀移动通信有限公司 | Streaming media data processing method and mobile terminal |
| CN110100424A (en) * | 2017-02-09 | 2019-08-06 | Oppo广东移动通信有限公司 | A kind of processing method and mobile terminal of stream medium data |
| US10992723B2 (en) | 2017-02-09 | 2021-04-27 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Method for processing streaming media data and terminal |
| CN110100424B (en) * | 2017-02-09 | 2021-08-31 | Oppo广东移动通信有限公司 | Method for processing streaming media data and mobile terminal |
| CN107509094A (en) * | 2017-09-12 | 2017-12-22 | 中广热点云科技有限公司 | A kind of method of intelligent television programme televised live association request program |
| CN107509094B (en) * | 2017-09-12 | 2019-07-12 | 中广热点云科技有限公司 | A kind of method of smart television programme televised live association request program |
| CN109803169A (en) * | 2019-01-25 | 2019-05-24 | 烽火通信科技股份有限公司 | The method and system of multichannel multicast are realized based on network bandwidth |
| 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 |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2015117291A1 (en) | 2015-08-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10104137B2 (en) | Recording of ABR content | |
| US10623785B2 (en) | Streaming manifest quality control | |
| US9998775B2 (en) | Enforcement of trick-play disablement in adaptive bit rate video content delivery | |
| US8837586B2 (en) | Bandwidth-friendly representation switching in adaptive streaming | |
| US9338206B2 (en) | Method and apparatus for playing live content | |
| US11431777B2 (en) | Adaptive bitrate streaming techniques | |
| JP7078697B2 (en) | Systems and methods for providing audio content during trick play playback | |
| US10735744B2 (en) | Adaptive bitrate streaming techniques | |
| US10728630B2 (en) | Adaptive bitrate streaming techniques | |
| US11089346B2 (en) | Adaptive bitrate streaming techniques | |
| US11374998B1 (en) | Adaptive bitrate streaming stall mitigation | |
| CN109328384A (en) | System and method for providing variable speed in trick play mode | |
| JP2013192062A (en) | Video distribution system, video distribution apparatus, video distribution method and program | |
| CN104837056A (en) | Method and device for switching network television programs, and television system | |
| US9516357B2 (en) | Recording variable-quality content stream | |
| KR102226095B1 (en) | System and method for adaptive buffering for digital video streaming | |
| US10728588B2 (en) | Adaptive bitrate streaming techniques | |
| CN102148806A (en) | Time shift processing method and system, network equipment and terminal for network television | |
| KR101555792B1 (en) | Communication apparatus for receiving multimedia chunk, control method thereof, and recording medium for recording program for executing the control method | |
| KR101328339B1 (en) | Apparatus and method for managing buffer for playing streaming video | |
| KR101479864B1 (en) | Communication apparatus for receiving multimedia chunk, control method thereof, and recording medium for recording program for executing the control method | |
| KR20140126094A (en) | Method and apparatus for playing contents in multimedia system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150812 |