技术领域technical field
本发明涉及电子应用技术领域,特别涉及一种播放记录装置、系统和方法。The invention relates to the technical field of electronic applications, in particular to a playback and recording device, system and method.
背景技术Background technique
机顶盒是一个连接电视机与外部信号源的设备,它可以将压缩的数字信号转成电视内容,并在播放设备上显示出来。目前,用户主要通过依次察看各个频道来确定自己想看的频道,例如:目前电视节目处于频道1,而用户不清楚其想要观看的节目对应的频道号,那么,用户需要从频道1开始依次浏览各个频道,来找到要观看的节目对应的频道号,导致用户查找频道的效率较低。A set-top box is a device that connects a TV set to an external signal source. It can convert compressed digital signals into TV content and display it on the playback device. At present, the user mainly determines the channel he wants to watch by viewing each channel in turn. For example, if the TV program is currently on channel 1, but the user does not know the channel number corresponding to the program he wants to watch, then the user needs to start from channel 1. Browse various channels to find the channel number corresponding to the program to watch, resulting in low efficiency for users to search for channels.
发明内容Contents of the invention
本发明提供一种播放记录装置、系统和方法,有效地提高用户查找频道的效率。The invention provides a playback and recording device, system and method, which can effectively improve the efficiency of users searching for channels.
一种播放记录装置,应用于机顶盒,包括:A playback recording device, applied to a set-top box, comprising:
第一设置单元,用于设置时间阈值;a first setting unit, configured to set a time threshold;
读取单元,用于当当前频道的播放时间达到所述第一设置单元设置的时间阈值时,读取所述当前频道对应的频道数组;A reading unit, configured to read the channel array corresponding to the current channel when the playing time of the current channel reaches the time threshold set by the first setting unit;
生成单元,用于根据所述读取单元读取到的频道数组,生成对应的索引;A generating unit, configured to generate a corresponding index according to the channel array read by the reading unit;
提供单元,用于提供所述读取单元读取的所有频道数组中的频道号或频道标识给外设的播放设备,当接收到对目标频道号或目标频道标识的触发时,根据所述生成单元生成的索引,提供目标频道数据流。The providing unit is used to provide the channel numbers or channel identifiers in all the channel arrays read by the reading unit to the peripheral playback device, and when receiving a trigger on the target channel number or target channel identifier, according to the generated The index generated by the unit, providing the target channel data stream.
优选地,上述播放记录装置,进一步包括:记录列表单元,其中,Preferably, the above playing and recording device further includes: a recording list unit, wherein,
所述记录列表单元,用于以当前日期为表头生成记录列表,并将所述读取单元读取的当前频道对应的频道数组中的频道号或频道标识插入所述记录列表;The record list unit is used to generate a record list with the current date as the header, and insert the channel number or channel identifier in the channel array corresponding to the current channel read by the reading unit into the record list;
所述提供单元,用于提供具有频道号或频道标识的记录列表给外设的播放设备。The providing unit is used for providing the recording list with the channel number or the channel identification to the peripheral playback device.
优选地,所述读取单元,进一步用于读取频道数据流,并将所述频道数组和频道数据流存储于外设的数据库;Preferably, the reading unit is further configured to read the channel data stream, and store the channel array and the channel data stream in the database of the peripheral device;
所述提供单元,用于从所述外设的数据库中获取所述目标频道号或目标频道标识对应的目标频道数据流,并提供所述目标频道数据流。The providing unit is configured to acquire the target channel data stream corresponding to the target channel number or target channel identifier from the database of the peripheral device, and provide the target channel data stream.
优选地,上述播放记录装置,进一步包括:排序单元,其中,Preferably, the above playback and recording device further includes: a sorting unit, wherein,
所述记录列表单元,进一步用于判断所述读取单元读取的当前频道对应的频道数组中的频道号或频道标识是否存在于所述记录列表中,如果是,则触发所述排序单元,否则,执行所述将所述读取单元读取的当前频道对应的频道数组中的频道号或频道标识插入所述记录列表;The record list unit is further configured to judge whether the channel number or channel identifier in the channel array corresponding to the current channel read by the reading unit exists in the record list, and if so, trigger the sorting unit, Otherwise, perform the step of inserting the channel number or channel identifier in the channel array corresponding to the current channel read by the reading unit into the record list;
所述排序单元,用于在接收到所述记录列表单元的触发时,根据播放时间,对所述当前日期的记录列表中已经存在的频道号或频道标识进行排序。The sorting unit is configured to sort the channel numbers or channel identifiers that already exist in the record list of the current date according to the playing time when the trigger of the record list unit is received.
优选地,上述播放记录装置,进一步包括:第二设置单元和直播接口,其中,Preferably, the above playback and recording device further includes: a second setting unit and a live interface, wherein,
所述第二设置单元,用于为所述读取单元读取的所有频道数组中的频道号或频道标识设置录播选项和直播选项;The second setting unit is used to set recording and broadcast options and live broadcast options for the channel numbers or channel identifiers in all channel arrays read by the reading unit;
所述提供单元,进一步用于当接收到对目标频道号或目标频道标识的触发时,提供所述第二设置单元设置的目标频道号或目标频道标识对应的录播选项和直播选项,当接收到对所述录播选项的触发时,执行所述从所述外设的数据库中获取所述目标频道号或目标频道标识对应的目标频道数据流,并提供所述目标频道数据流,当接收到对所述直播选项的触发时,触发所述直播接口;The providing unit is further configured to provide the recording option and the live broadcast option corresponding to the target channel number or target channel ID set by the second setting unit when receiving a trigger on the target channel number or target channel ID. When the recording option is triggered, execute the acquisition of the target channel data stream corresponding to the target channel number or target channel identifier from the database of the peripheral device, and provide the target channel data stream. When the live broadcast option is triggered, trigger the live broadcast interface;
所述直播接口,用于在接收到所述提供单元的触发时,提供所述目标频道号或目标频道标识对应的直播数据流给外设的播放设备。The live interface is configured to provide the live data stream corresponding to the target channel number or target channel identifier to the peripheral playback device when receiving the trigger from the providing unit.
一种播放记录系统,上述任一所述的包含播放记录装置的机顶盒和播放设备,其中,A playback and recording system, any of the set-top boxes and playback equipment that include playback and recording devices described above, wherein,
所述播放设备,用于获取所述播放记录装置提供的频道号或频道标识,并对所述频道号或频道标识中的目标频道号或目标频道标识进行触发,并获取所述目标频道号或目标频道标识对应的目标频道数据流。The playback device is configured to acquire the channel number or channel ID provided by the playback recording device, trigger the target channel number or target channel ID in the channel number or channel ID, and acquire the target channel number or The target channel identifier corresponds to the target channel data stream.
优选地,上述系统,进一步包括:数据库,用于存储所述播放记录装置中的播放记录装置读取的频道数组和频道数据流。Preferably, the above system further includes: a database for storing the channel array and the channel data stream read by the playback recording device in the playback recording device.
优选地,所述播放设备,用于获取所述播放记录装置提供的具有频道号或频道标识的记录列表。Preferably, the playback device is configured to acquire a recording list with a channel number or a channel identifier provided by the playback recording device.
优选地,所述播放设备,进一步用于获取所述播放记录装置设置的目标频道号或目标频道标识对应的录播选项和直播选项,并触发所述录播选项或直播选项。Preferably, the playback device is further configured to obtain the recording and broadcasting options and live broadcasting options corresponding to the target channel number or target channel ID set by the playing and recording device, and trigger the recording and broadcasting options or the live broadcasting options.
一种播放记录方法,应用于机顶盒,包括:A method for playing and recording, applied to a set-top box, comprising:
设置时间阈值;set the time threshold;
当当前频道的播放时间达到所述设置的时间阈值时,读取所述当前频道对应的频道数组;When the playing time of the current channel reaches the set time threshold, read the channel array corresponding to the current channel;
根据所述频道数组,生成对应的索引;Generate a corresponding index according to the channel array;
提供所有频道号或频道标识给播放设备;Provide all channel numbers or channel identifications to playback devices;
当接收到对目标频道号或目标频道标识的触发时,根据所述索引,提供目标频道数据流。When a trigger on the target channel number or target channel identifier is received, the target channel data stream is provided according to the index.
优选地,上述方法,进一步包括:以当前日期为表头生成记录列表;Preferably, the above method further includes: generating a record list with the current date as the header;
在所述读取所述当前频道对应的频道数组之后,在所述生成对应的索引之前,进一步包括:将所述当前频道对应的频道数组中的频道号或频道标识插入所述记录列表;After reading the channel array corresponding to the current channel and before generating the corresponding index, it further includes: inserting the channel number or the channel identifier in the channel array corresponding to the current channel into the record list;
所述提供所有频道号或频道标识给播放设备,包括:提供具有频道号或频道标识的记录列表给播放设备。The providing all channel numbers or channel IDs to the playback device includes: providing a record list with channel numbers or channel IDs to the playback device.
优选地,在所述读取所述当前频道对应的频道数组之后,在所述生成对应的索引之前,进一步包括:读取频道数据流,并将所述频道数组和频道数据流存储于数据库;Preferably, after reading the channel array corresponding to the current channel, before generating the corresponding index, further comprising: reading the channel data stream, and storing the channel array and the channel data stream in a database;
所述提供目标频道数据流,包括:从所述数据库中获取所述目标频道号或目标频道标识对应的目标频道数据流,并提供所述目标频道数据流。The providing the target channel data stream includes: obtaining the target channel data stream corresponding to the target channel number or target channel identifier from the database, and providing the target channel data stream.
优选地,在所述读取所述当前频道对应的频道数组之后,在所述将所述当前频道对应的频道数组中的频道号或频道标识插入所述记录列表之前,进一步包括:Preferably, after reading the channel array corresponding to the current channel, before inserting the channel number or channel identifier in the channel array corresponding to the current channel into the record list, further comprising:
判断所述当前频道对应的频道号或频道标识是否存在于所述记录列表中,如果是,则根据播放时间,对所述当前日期的记录列表中已经存在的频道号或频道标识进行排序,否则,执行所述将所述当前频道对应的频道号或频道标识直接插入所述记录列表。Judging whether the channel number or channel ID corresponding to the current channel exists in the record list, if yes, sorting the existing channel numbers or channel IDs in the record list of the current date according to the playing time, otherwise , performing the directly inserting the channel number or channel identifier corresponding to the current channel into the recording list.
优选地,在所述生成对应的索引之后,在所述提供所有频道号或频道标识给播放设备之前,进一步包括:Preferably, after said generating the corresponding index, before said providing all channel numbers or channel identifiers to the playback device, it further includes:
为所述频道数组中的频道号或频道标识设置录播选项和直播选项;Set recording and broadcast options and live broadcast options for the channel numbers or channel identifiers in the channel array;
所述提供目标频道数据流,包括:提供所述目标频道号或目标频道标识对应的录播选项和直播选项,当接收到对所述录播选项的触发时,执行所述从所述数据库中获取所述目标频道号或目标频道标识对应的目标频道数据流,并提供所述目标频道数据流,当接收到对所述直播选项的触发时,提供所述目标频道号或目标频道标识对应的直播数据流给播放设备。The provision of the target channel data stream includes: providing the recording and broadcasting option and the live broadcasting option corresponding to the target channel number or the target channel identifier, and when a trigger for the recording and broadcasting option is received, execute the Obtain the target channel data stream corresponding to the target channel number or target channel ID, and provide the target channel data stream, and provide the target channel number or target channel ID corresponding to the The live data stream is sent to the playback device.
本发明实施例提供了一种播放记录装置、系统和方法,该播放记录装置,应用于机顶盒,包括:第一设置单元,用于设置时间阈值;读取单元,用于当当前频道的播放时间达到所述第一设置单元设置的时间阈值时,读取所述当前频道对应的频道数组,通过该读取单元实现了对用户浏览过的频道的记录;生成构建单元,用于根据所述读取单元读取到的频道数组,生成对应的索引;由于该单元建立的索引,使得用户能够通过提供单元提供的频道号或频道标识直接进入到用户想看的频道,即提供单元,用于提供所述读取单元读取的所有频道数组中的频道号或频道标识给外设的播放设备,当接收到对目标频道号或目标频道标识的触发时,根据所述生成单元生成的索引,提供目标频道数据流,通过上述各个单元的协同工作,使得用户能够通过提供单元获取到用户播放过的频道号或频道标识,通过该频道号或频道标识,用户能够直接进入到相应的频道观看节目,有效地提高了用户查找频道的效率。Embodiments of the present invention provide a playback and recording device, system and method. The playback and recording device is applied to a set-top box and includes: a first setting unit for setting a time threshold; a reading unit for when the playback time of the current channel When the time threshold set by the first setting unit is reached, read the channel array corresponding to the current channel, and realize the recording of the channels browsed by the user through the reading unit; generate a construction unit for according to the read Get the channel array read by the unit and generate the corresponding index; due to the index established by the unit, the user can directly enter the channel that the user wants to watch through the channel number or channel ID provided by the providing unit, that is, the providing unit is used to provide The channel numbers or channel identifiers in all the channel arrays read by the reading unit are given to the peripheral playback device, and when a trigger on the target channel number or target channel identifier is received, according to the index generated by the generating unit, provide The target channel data stream, through the cooperative work of the above-mentioned units, enables the user to obtain the channel number or channel ID that the user has played through the providing unit, and through the channel number or channel ID, the user can directly enter the corresponding channel to watch the program. Effectively improve the efficiency of users searching for channels.
附图说明Description of drawings
图1为本发明实施例提供的一种播放记录装置的结构示意图;FIG. 1 is a schematic structural diagram of a playback and recording device provided by an embodiment of the present invention;
图2为本发明另一实施例提供的一种播放记录装置的结构示意图;Fig. 2 is a schematic structural diagram of a playback and recording device provided by another embodiment of the present invention;
图3为本发明实施例提供的一种播放记录系统的结构示意图;FIG. 3 is a schematic structural diagram of a playback and recording system provided by an embodiment of the present invention;
图4为本发明实施例提供的一种播放记录方法的流程图;FIG. 4 is a flow chart of a playback and recording method provided by an embodiment of the present invention;
图5为本发明另一实施例提供的一种播放记录方法的流程图。FIG. 5 is a flow chart of a playback and recording method provided by another embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Apparently, the described embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
如图1所示,本发明实施例提供一种播放记录装置,应用于机顶盒,包括:As shown in Figure 1, an embodiment of the present invention provides a playback and recording device, which is applied to a set-top box, including:
第一设置单元101,用于设置时间阈值;A first setting unit 101, configured to set a time threshold;
读取单元102,用于当当前频道的播放时间达到第一设置单元101设置的时间阈值时,读取当前频道对应的频道数组;The reading unit 102 is used to read the channel array corresponding to the current channel when the playing time of the current channel reaches the time threshold set by the first setting unit 101;
生成单元103,用于根据读取单元102读取到的频道数组,生成对应的索引;A generating unit 103, configured to generate a corresponding index according to the channel array read by the reading unit 102;
提供单元104,用于提供读取单元102读取的所有频道数组中的频道号或频道标识给外设的播放设备,当接收到对目标频道号或目标频道标识的触发时,根据生成单元103生成的索引,提供目标频道数据流。The providing unit 104 is used to provide the channel numbers or channel identifications in the array of all channels read by the reading unit 102 to the external playback device. The generated index, providing the target channel data stream.
如图2所示,在本发明另一实施例中,上述播放记录装置,进一步包括:记录列表单元201,其中,As shown in FIG. 2, in another embodiment of the present invention, the above-mentioned playback and recording device further includes: a recording list unit 201, wherein,
记录列表单元201,用于以当前日期为表头生成记录列表,并将读取单元102读取的当前频道对应的频道数组中的频道号或频道标识插入记录列表;The record list unit 201 is used to generate a record list with the current date as the header, and insert the channel number or channel identifier in the channel array corresponding to the current channel read by the reading unit 102 into the record list;
提供单元104,用于提供具有频道号或频道标识的记录列表给外设的播放设备。The providing unit 104 is configured to provide a recording list with a channel number or a channel identifier to an external playback device.
通过上述记录列表单元和提供单元,能够为用户提供如下表所示的记录列表:Through the above record list unit and providing unit, the record list shown in the following table can be provided to the user:
用户通过在该记录列表中直接选择目标频道号,能够更加快速的定位想要观看的频道号,一方面通过记录列表记录已观看频道的频道号,使得记录管理更加规范,另一方面,有效地提高了用户查找频道的效率。By directly selecting the target channel number in the record list, users can locate the channel number they want to watch more quickly. On the one hand, the channel number of the channel that has been watched is recorded through the record list, which makes the record management more standardized. On the other hand, it effectively Improve the efficiency of users to find channels.
在本发明另一实施例中,读取单元102,进一步用于读取频道数据流,并将频道数组和频道数据流存储于外设的数据库;In another embodiment of the present invention, the reading unit 102 is further configured to read the channel data stream, and store the channel array and the channel data stream in the database of the peripheral device;
提供单元104,用于从外设的数据库中获取目标频道号或目标频道标识对应的目标频道数据流,并提供目标频道数据流。The providing unit 104 is configured to acquire the target channel data stream corresponding to the target channel number or the target channel identifier from the database of the peripheral device, and provide the target channel data stream.
在该实施例中,由于将频道数据流一并存储到数据库中,使得用户能够观看录播节目,例如:用户在11月26号观看过频道1的节目a,而在11月30号那一天,该用户想重新观看11月26号的节目a,则只需要通过本发明实施例提供的记录列表找到11月26号对应的频道1即可。In this embodiment, since the channel data stream is stored in the database together, the user can watch the recorded program, for example: the user watched program a of channel 1 on November 26, and on November 30 , the user wants to watch program a on November 26 again, and only needs to find the channel 1 corresponding to November 26 through the record list provided by the embodiment of the present invention.
在本发明另一实施例中,上述播放记录装置,进一步包括:排序单元(图中未示出),其中,In another embodiment of the present invention, the above playback and recording device further includes: a sorting unit (not shown in the figure), wherein,
记录列表单元201,进一步用于判断读取单元102读取的当前频道对应的频道数组中的频道号或频道标识是否存在于所述记录列表中,如果是,则触发排序单元,否则,执行将读取单元102读取的当前频道对应的频道数组中的频道号或频道标识插入记录列表;The record list unit 201 is further used to judge whether the channel number or the channel identifier in the channel array corresponding to the current channel read by the reading unit 102 exists in the record list, if yes, trigger the sorting unit, otherwise, execute the The channel number or channel identifier in the channel array corresponding to the current channel read by the reading unit 102 is inserted into the record list;
排序单元,用于在接收到记录列表单元201的触发时,根据播放时间,对当前日期的记录列表中已经存在的频道号或频道标识进行排序。The sorting unit is configured to sort the existing channel numbers or channel IDs in the record list of the current date according to the playing time when the trigger of the record list unit 201 is received.
该排序单元实现了对同一天观看的频道的排序,例如可以按照观看频率或者观看时长排序,一个频道观看频率比较高,说明用户经常观看该频道,可以将该频道放在记录列表的前面,以方便用户查找该频道。The sorting unit realizes the sorting of the channels watched on the same day, for example, it can be sorted according to the viewing frequency or the viewing duration. If a channel has a high viewing frequency, it means that the user often watches the channel, and the channel can be placed in front of the record list to Make it easier for users to find the channel.
在本发明又一实施例中,上述播放记录装置,进一步包括:第二设置单元和直播接口(图中未示出),其中,In yet another embodiment of the present invention, the above playback and recording device further includes: a second setting unit and a live interface (not shown in the figure), wherein,
第二设置单元,用于为读取单元102读取的所有频道数组中的频道号或频道标识设置录播选项和直播选项;The second setting unit is used to set recording and broadcasting options and live broadcasting options for the channel numbers or channel identifiers in all channel arrays read by the reading unit 102;
提供单元104,进一步用于当接收到对目标频道号或目标频道标识的触发时,提供第二设置单元设置的目标频道号或目标频道标识对应的录播选项和直播选项,当接收到对录播选项的触发时,执行从所述外设的数据库中获取目标频道号或目标频道标识对应的目标频道数据流,并提供目标频道数据流,当接收到对直播选项的触发时,触发直播接口;The providing unit 104 is further configured to provide the recording option and the live broadcast option corresponding to the target channel number or the target channel identification set by the second setting unit when receiving a trigger on the target channel number or the target channel identification. When the broadcast option is triggered, the target channel data stream corresponding to the target channel number or target channel identifier is obtained from the database of the peripheral device, and the target channel data stream is provided. When the trigger for the live broadcast option is received, the live broadcast interface is triggered ;
直播接口,用于在接收到提供单元104的触发时,提供目标频道号或目标频道标识对应的直播数据流给外设的播放设备。The live interface is configured to provide the live data stream corresponding to the target channel number or the target channel identifier to the external playback device when the trigger of the providing unit 104 is received.
如图3所示,本发明实施例提供一种播放记录系统,包括:上述任一一种包含播放记录装置3011的机顶盒301和播放设备302,其中,As shown in FIG. 3 , an embodiment of the present invention provides a playback and recording system, including: any one of the above-mentioned set-top boxes 301 including a playback and recording device 3011 and a playback device 302, wherein,
播放设备302,用于获取播放记录装置3011提供的频道号或频道标识,并对频道号或频道标识中的目标频道号或目标频道标识进行触发,并获取目标频道号或目标频道标识对应的目标频道数据流。The playback device 302 is configured to acquire the channel number or channel ID provided by the playback recording device 3011, trigger the target channel number or target channel ID in the channel number or channel ID, and acquire the target channel number or target channel ID corresponding to the target channel number or target channel ID. Channel data stream.
在本发明另一实施例中,上述系统,进一步包括:数据库(图中未示出),用于存储播放记录装置中的播放记录装置读取的频道数组和频道数据流。In another embodiment of the present invention, the above-mentioned system further includes: a database (not shown in the figure), used for storing the channel array and the channel data stream read by the playing and recording device in the playing and recording device.
在本发明又一实施例中,播放设备302,用于获取播放记录装置3011提供的具有频道号或频道标识的记录列表。In yet another embodiment of the present invention, the playback device 302 is configured to acquire a record list with a channel number or a channel identifier provided by the playback recording device 3011 .
在本发明又一实施例中,播放设备302,进一步用于获取播放记录装置3011设置的目标频道号或目标频道标识对应的录播选项和直播选项,并触发录播选项或直播选项。该播放设备可以为电视机等。In yet another embodiment of the present invention, the playback device 302 is further configured to obtain the recording and broadcasting options and live broadcasting options corresponding to the target channel number or target channel ID set by the playback and recording device 3011, and trigger the recording and broadcasting options or the live broadcasting options. The playback device may be a TV set or the like.
如图4所示,本发明实施例提供一种播放记录方法,应用于机顶盒,该方法可以包括如下步骤:As shown in Figure 4, an embodiment of the present invention provides a playback and recording method, which is applied to a set-top box, and the method may include the following steps:
步骤401:设置时间阈值;Step 401: setting a time threshold;
步骤402:当当前频道的播放时间达到设置的时间阈值时,读取当前频道对应的频道数组;Step 402: When the playing time of the current channel reaches the set time threshold, read the channel array corresponding to the current channel;
步骤403:根据频道数组,生成对应的索引;Step 403: Generate a corresponding index according to the channel array;
步骤404:提供所有频道号或频道标识给播放设备;Step 404: providing all channel numbers or channel identifiers to the playback device;
步骤405:当接收到对目标频道号或目标频道标识的触发时,根据索引,提供目标频道数据流。Step 405: When a trigger on the target channel number or target channel identifier is received, provide the target channel data stream according to the index.
在本发明一个实施例中,为了能够使输出的频道号或频道标识比较规范,以更方便用户查找,该方法进一步包括:以当前日期为表头生成记录列表;在步骤402之后,在步骤403之前,进一步包括:将当前频道对应的频道数组中的频道号或频道标识插入记录列表;步骤404的具体实施方式:提供具有频道号或频道标识的记录列表给播放设备。In one embodiment of the present invention, in order to make the output channel number or channel identification more standardized, so as to make it easier for users to find, the method further includes: generating a record list with the current date as the header; after step 402, in step 403 Before, it further includes: inserting the channel number or channel ID in the channel array corresponding to the current channel into the recording list; the specific implementation of step 404: providing the recording list with the channel number or channel ID to the playback device.
在本发明另一实施例中,为了能够快速的为用户提供历史播放节目,在步骤402之后,在步骤403之前,进一步包括:读取频道数据流,并将频道数组和频道数据流存储于数据库;步骤405的具体实施方式:从数据库中获取目标频道号或目标频道标识对应的目标频道数据流,并提供目标频道数据流。In another embodiment of the present invention, in order to quickly provide users with historical broadcast programs, after step 402 and before step 403, it further includes: reading the channel data stream, and storing the channel array and channel data stream in the database ; Specific implementation of step 405: Obtain the target channel data stream corresponding to the target channel number or target channel identifier from the database, and provide the target channel data stream.
在本发明一个实施例中,为了避免在同一日期内对同一频道重复记录,以为用户提供高效的节目列表,在步骤402之后,进一步包括:判断当前频道对应的频道号或频道标识是否存在于记录列表中,如果是,则根据播放时间,对当前日期的记录列表中已经存在的频道号或频道标识进行排序,否则,执行将当前频道对应的频道号或频道标识直接插入记录列表。In one embodiment of the present invention, in order to avoid repeated recording of the same channel on the same date, to provide users with an efficient program list, after step 402, it further includes: judging whether the channel number or channel identifier corresponding to the current channel exists in the record In the list, if yes, sort the existing channel numbers or channel IDs in the record list of the current date according to the playing time; otherwise, directly insert the channel number or channel ID corresponding to the current channel into the record list.
在本发明一个实施例中,为了提高播放节目的灵活性,为用户提供更多的选择,在步骤403之后,在步骤404之前,进一步包括:为频道数组中的频道号或频道标识设置录播选项和直播选项;In one embodiment of the present invention, in order to improve the flexibility of playing programs and provide users with more choices, after step 403 and before step 404, it further includes: setting recording and broadcasting for the channel number or channel ID in the channel array options and live options;
步骤405的具体实施方式:提供目标频道号或目标频道标识对应的录播选项和直播选项,当接收到对录播选项的触发时,执行从外设的数据库中获取所述目标频道号或目标频道标识对应的目标频道数据流,并提供目标频道数据流,当接收到对直播选项的触发时,提供目标频道号或目标频道标识对应的直播数据流给播放设备。The specific implementation of step 405: provide the recording and broadcasting options and live broadcasting options corresponding to the target channel number or the target channel identifier, and when the trigger for the recording and broadcasting option is received, execute the acquisition of the target channel number or target from the database of the peripheral device The target channel data stream corresponding to the channel ID, and provide the target channel data stream, and provide the live data stream corresponding to the target channel number or the target channel ID to the playback device when the trigger for the live broadcast option is received.
如图5所示,本发明实施例提供一种播放记录方法,应用于机顶盒,该方法可以包括如下步骤:As shown in FIG. 5, an embodiment of the present invention provides a method for playing and recording, which is applied to a set-top box. The method may include the following steps:
步骤501:设置时间阈值,以当前日期为表头生成记录列表;Step 501: set a time threshold, and generate a record list with the current date as the header;
例如:可以设置时间阈值为1min,即当频道1的播放时间超过1min时,就可以认为频道1是用户观看的频道,而不是用户切换频道过程中经过的频道。For example: the time threshold can be set to 1 minute, that is, when the playing time of channel 1 exceeds 1 minute, it can be considered that channel 1 is the channel watched by the user, not the channel that the user passes through during channel switching.
步骤502:当当前频道的播放时间达到设置的时间阈值时,读取当前频道对应的频道数组;Step 502: When the playing time of the current channel reaches the set time threshold, read the channel array corresponding to the current channel;
每个频道有其特有的频道数组,该频道数组包括:音频ID、视频ID、频道号、频道标识以及其他参数信息,该频道数组是实现播放对应频道的基础。Each channel has its own channel array. The channel array includes: audio ID, video ID, channel number, channel ID and other parameter information. The channel array is the basis for playing the corresponding channel.
该步骤主要通过下述过程来实现:This step is mainly realized through the following process:
建立文件并将该文件命名为playHistory.txt,在该文件中存储的格式为:Create a file and name the file playHistory.txt, the format stored in this file is:
步骤503:读取频道数据流,并将频道数组和频道数据流存储于数据库;Step 503: Read the channel data stream, and store the channel array and the channel data stream in the database;
通过读取频道数据流,将其存储到数据库中,实现了对节目的录制。By reading the channel data stream and storing it in the database, the recording of the program is realized.
步骤504:判断当前频道对应的频道号或频道标识是否存在于记录列表中,如果是,则执行步骤505;否则,执行步骤506;Step 504: Determine whether the channel number or channel ID corresponding to the current channel exists in the record list, if yes, execute step 505; otherwise, execute step 506;
读取的频道数组中的频道号或频道标识记录在记录列表中,以供用户查看,而本步骤主要是为了避免重复存储同一频道号或频道标识在同一日期的记录列表中,例如:某一用户在上午9点观看过频道1,通过读取频道数组等过程,将该频道1记录在了记录列表中,那么,用户在下午4点再一次观看频道1,此时频道1已经存在于记录列表中,那么通过该步骤可以避免对频道1的重复记录。The channel number or channel ID in the read channel array is recorded in the record list for users to view, and this step is mainly to avoid repeatedly storing the same channel number or channel ID in the record list on the same date, for example: a certain The user watched channel 1 at 9 am, and recorded channel 1 in the record list by reading the channel array and other processes. Then, the user watched channel 1 again at 4 pm. At this time, channel 1 already exists in the record list, then this step can avoid repeated recording of channel 1.
步骤505:根据播放时间,对当前日期的记录列表中已经存在的频道号或频道标识进行排序,并执行步骤507;Step 505: sort the existing channel numbers or channel IDs in the recording list of the current date according to the playing time, and execute step 507;
例如:频道1在上午9点播放过,被排在记录列表的末尾,而在晚上9点再一次被播放时,通过该步骤,频道1被重新排序,排在了记录列表的首位。For example: channel 1 has been played at 9:00 am and is ranked at the end of the record list, and when it is played again at 9 pm, through this step, channel 1 is reordered and placed at the top of the record list.
步骤506:将当前频道对应的频道号或频道标识直接插入记录列表;Step 506: directly insert the channel number or channel ID corresponding to the current channel into the record list;
对于记录列表中没有的频道号或频道标识,可以直接将该频道号或频道标识插入记录列表实现对该频道的记录。For a channel number or a channel ID not in the record list, the channel number or channel ID can be directly inserted into the record list to record the channel.
步骤507:根据频道数组,生成对应的索引;Step 507: Generate a corresponding index according to the channel array;
该索引是实现用户观看记录列表中记录的频道的基础,通过该步骤将记录列表中的频道号或频道标识与数据库中的频道数组等建立起对应关系,当用户选择记录列表中的某一个频道时,通过该步骤得索引可以引导加载该频道对应的频道数组。This index is the basis for the user to watch the channels recorded in the record list. Through this step, the channel number or channel ID in the record list is corresponding to the channel array in the database. When the user selects a certain channel in the record list , the channel array corresponding to the channel can be loaded through the index obtained in this step.
步骤508:为频道数组中的频道号或频道标识设置录播选项和直播选项;Step 508: Set recording and broadcasting options and live broadcasting options for the channel number or channel ID in the channel array;
录播选项即播放数据库中存储的数据流,直播是直接播放通过无线电等获取的数据流。The recording option is to play the data stream stored in the database, and the live broadcast is to directly play the data stream obtained through radio.
步骤509:提供具有频道号或频道标识的记录列表给播放设备;Step 509: providing a record list with channel numbers or channel identifiers to the playback device;
在该步骤中,播放设备上展示出记录列表,用户可以通过控制“上”、“下”、“左”、“右”来选去日期和目标频道。In this step, the record list is displayed on the playback device, and the user can select the date and target channel by controlling "Up", "Down", "Left", and "Right".
步骤510:当接收到对目标频道号或目标频道标识的触发时,根据索引,提供目标频道号或目标频道标识对应的录播选项和直播选项,当接收到对录播选项的触发时,执行步骤511;当接收到对录播选项的触发时,执行步骤512;Step 510: When receiving the trigger for the target channel number or target channel ID, according to the index, provide the recording option and live broadcast option corresponding to the target channel number or target channel ID, and when receiving the trigger for the recording option, execute Step 511; when a trigger for the recording option is received, execute step 512;
步骤511:从数据库中获取目标频道号或目标频道标识对应的目标频道数据流,提供目标频道数据流,并结束当前流程;Step 511: Obtain the target channel data stream corresponding to the target channel number or target channel ID from the database, provide the target channel data stream, and end the current process;
例如:用户选择11月26日频道1的录播项,那么,通过该步骤,播放设备将播放数据库存储的11月26日频道1对应的数据流。For example, if the user selects the recording item of channel 1 on November 26, then, through this step, the playback device will play the data stream corresponding to channel 1 on November 26 stored in the database.
步骤512:提供目标频道号或目标频道标识对应的直播数据流给播放设备。Step 512: Provide the live data stream corresponding to the target channel number or the target channel ID to the playback device.
例如:用户通过记录列表选取中11月26日频道1的直播项,那么,通过该步骤,播放设备将播放当前时间,频道1的直播数据流。For example: the user selects the live broadcast item of channel 1 on November 26 through the record list, then, through this step, the playback device will play the live data stream of channel 1 at the current time.
本发明实施例提供的方案,至少能够达到如下有益效果:The solutions provided by the embodiments of the present invention can at least achieve the following beneficial effects:
1.本发明实施例提供的播放记录装置,应用于机顶盒,包括:第一设置单元,用于设置时间阈值;读取单元,用于当当前频道的播放时间达到所述第一设置单元设置的时间阈值时,读取所述当前频道对应的频道数组,通过该读取单元实现了对用户浏览过的频道的记录;生成构建单元,用于根据所述读取单元读取到的频道数组,生成对应的索引;由于该单元建立的索引,使得用户能够通过提供单元提供的频道号或频道标识直接进入到用户想看的频道,即提供单元,用于提供所述读取单元读取的所有频道数组中的频道号或频道标识给外设的播放设备,当接收到对目标频道号或目标频道标识的触发时,根据所述生成单元生成的索引,提供目标频道数据流,通过上述各个单元的协同工作,使得用户能够通过提供单元获取到用户播放过的频道号或频道标识,通过该频道号或频道标识,用户能够直接进入到相应的频道观看节目,有效地提高了用户查找频道的效率。1. The playback and recording device provided by the embodiment of the present invention is applied to a set-top box, and includes: a first setting unit for setting a time threshold; a reading unit for when the playback time of the current channel reaches the time limit set by the first setting unit. When the time threshold is reached, read the channel array corresponding to the current channel, and realize the recording of the channels browsed by the user through the reading unit; generate a construction unit, which is used to read the channel array according to the reading unit, Generate a corresponding index; due to the index established by the unit, the user can directly enter the channel that the user wants to watch through the channel number or channel identification provided by the providing unit, that is, the providing unit is used to provide all the information read by the reading unit. The channel number or channel ID in the channel array is given to the peripheral playback device, and when a trigger on the target channel number or target channel ID is received, the target channel data stream is provided according to the index generated by the generating unit, and passed through each of the above units The collaborative work enables users to obtain the channel number or channel ID that the user has played through the providing unit. Through the channel number or channel ID, the user can directly enter the corresponding channel to watch the program, which effectively improves the efficiency of the user's channel search .
2.在本发明实施例中,通过为播放记录装置进一步设置记录列表单元,该记录列表单元,用于以当前日期为表头生成记录列表,并将所述读取单元读取的当前频道对应的频道数组中的频道号或频道标识插入所述记录列表;所述提供单元,用于提供具有频道号或频道标识的记录列表给外设的播放设备;通过上述记录列表单元实现了对读取的频道号或频道标识等的规范管理,同时,方便了用户查找频道。2. In the embodiment of the present invention, by further setting a record list unit for the playback recording device, the record list unit is used to generate a record list with the current date as the header, and correspond to the current channel read by the reading unit. The channel number or channel identification in the channel array of the channel array is inserted into the record list; the providing unit is used to provide the recording list with the channel number or channel identification to the playback device of the peripheral device; the reading is realized by the above-mentioned record list unit The standardized management of the channel number or channel logo, etc., and at the same time, it is convenient for users to find channels.
3.通过本发明实施例为播放记录装置设置的读取单元读取频道数据流,并将所述频道数组和频道数据流存储于外设的数据库;所述提供单元,用于从所述外设的数据库中获取所述目标频道号或目标频道标识对应的目标频道数据流,并提供所述目标频道数据流,通过将频道数据流存储到数据库中,实现了对频道节目的录制,通过提供单元为用户提供录制的数据流,实现了对录制节目的播放。3. Read the channel data stream through the reading unit provided for the playback recording device according to the embodiment of the present invention, and store the channel array and the channel data stream in the database of the peripheral device; the providing unit is used to read the channel data stream from the external device Obtain the target channel data stream corresponding to the target channel number or target channel identifier in the database provided, and provide the target channel data stream, and realize the recording of the channel program by storing the channel data stream in the database. The unit provides users with recorded data streams and realizes the playback of recorded programs.
4.根据播放时间,对所述当前日期的记录列表中已经存在的频道号或频道标识进行排序,实现了对已经存在于记录列表中的频道号或频道标识进行排序,使得用户能够更快速的找到自己需要的频道,另外,通过直播接口为用户提供频道的直播,使用户对于频道内部录播和直播间的切换更加快捷、方便。4. According to the playing time, sort the channel numbers or channel IDs that already exist in the record list of the current date, so as to realize the sorting of the channel numbers or channel IDs that already exist in the record list, so that users can more quickly Find the channel you need. In addition, provide users with the live broadcast of the channel through the live broadcast interface, so that users can switch between recording and broadcasting within the channel and live broadcasting more quickly and conveniently.
需要说明的是,在本文中,诸如第一和第二之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同因素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is a relationship between these entities or operations. There is no such actual relationship or sequence. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional same elements in the process, method, article or apparatus comprising said element.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明保护的范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the present invention. within the scope of protection.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510885254.0ACN105516786B (en) | 2015-12-03 | 2015-12-03 | Play recording device, system and method |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510885254.0ACN105516786B (en) | 2015-12-03 | 2015-12-03 | Play recording device, system and method |
| Publication Number | Publication Date |
|---|---|
| CN105516786Atrue CN105516786A (en) | 2016-04-20 |
| CN105516786B CN105516786B (en) | 2019-02-26 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510885254.0AActiveCN105516786B (en) | 2015-12-03 | 2015-12-03 | Play recording device, system and method |
| Country | Link |
|---|---|
| CN (1) | CN105516786B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114051162A (en)* | 2022-01-12 | 2022-02-15 | 飞狐信息技术(天津)有限公司 | Caching method and device based on play records |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1529983A (en)* | 2001-04-20 | 2004-09-15 | �ʼҷ����ֵ�������˾ | Automatic selection of media selections preferred by users of a media presentation device |
| CN101127884A (en)* | 2007-09-12 | 2008-02-20 | 中兴通讯股份有限公司 | Program switching method |
| CN101369858A (en)* | 2008-09-16 | 2009-02-18 | 中兴通讯股份有限公司 | Method for frequency channel arrangement |
| CN103546780A (en)* | 2013-10-28 | 2014-01-29 | 青岛海信传媒网络技术有限公司 | Method and device for program recommendation |
| CN104780399A (en)* | 2015-03-26 | 2015-07-15 | 成都市斯达鑫辉视讯科技有限公司 | Channel ordering method for set top box |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1529983A (en)* | 2001-04-20 | 2004-09-15 | �ʼҷ����ֵ�������˾ | Automatic selection of media selections preferred by users of a media presentation device |
| CN101127884A (en)* | 2007-09-12 | 2008-02-20 | 中兴通讯股份有限公司 | Program switching method |
| CN101369858A (en)* | 2008-09-16 | 2009-02-18 | 中兴通讯股份有限公司 | Method for frequency channel arrangement |
| CN103546780A (en)* | 2013-10-28 | 2014-01-29 | 青岛海信传媒网络技术有限公司 | Method and device for program recommendation |
| CN104780399A (en)* | 2015-03-26 | 2015-07-15 | 成都市斯达鑫辉视讯科技有限公司 | Channel ordering method for set top box |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114051162A (en)* | 2022-01-12 | 2022-02-15 | 飞狐信息技术(天津)有限公司 | Caching method and device based on play records |
| Publication number | Publication date |
|---|---|
| CN105516786B (en) | 2019-02-26 |
| Publication | Publication Date | Title |
|---|---|---|
| CN110913241B (en) | Video retrieval method and device, electronic equipment and storage medium | |
| US20120315014A1 (en) | Audio fingerprinting to bookmark a location within a video | |
| CN100542240C (en) | Video recording reservation device and video recording reservation method | |
| JP2004128779A (en) | Broadcast system, recording apparatus, recording method, program, and record medium | |
| US20130291033A1 (en) | Program identification using a portable communication device | |
| KR20090059923A (en) | Multimedia providing method for providing content related to a search term and a multimedia device applying the same | |
| US20160044388A1 (en) | Generation and delivery of a stream representing audiovisual content | |
| US9729912B2 (en) | Method, computer program, electronic device, and system | |
| US8824867B2 (en) | System and method for recording related programs comprising media content related data | |
| JP2012114710A (en) | Program recommendation apparatus | |
| WO2017008498A1 (en) | Method and device for searching program | |
| CN105306974A (en) | Automatic extraction method and apparatus for switching video broadcast to video-on-demand and play device | |
| CN105516786A (en) | Play recording device, system and method | |
| CN106572369B (en) | EPG-based video playing method and TV set | |
| CN101577802A (en) | Mobile terminal program recording method and system, as well as mobile terminal | |
| EP2587829A1 (en) | Video analysis information upload apparatus and video viewing system and method | |
| KR101178167B1 (en) | Method and apparatus of switching channels being broadcasting preferred programs | |
| JP2014075052A (en) | Video recording and reproducing device and program retrieval method | |
| CN101228782A (en) | Electronic device and method of creating a sequence of content items | |
| CN101540887A (en) | Method for realizing the prompting of user preferred program information as well as front end and terminal thereof | |
| CN101902591B (en) | Digital television receiving system for automatically retrieving television program information | |
| CN101262585B (en) | Information inquiry method and device for digital TV programs | |
| CN112866793A (en) | Media mode switching method, device, equipment and storage medium | |
| JP6775454B2 (en) | Recording reservation device, recording playback device and recording reservation method | |
| CN101026467A (en) | Download system and method |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right | Effective date of registration:20200528 Address after:250100 Inspur Science Park, No. 1036, Inspur Road, high tech Zone, Jinan City, Shandong Province Patentee after:Inspur Software Technology Co., Ltd Address before:250100 Ji'nan science and Technology Development Zone, Shandong Branch Road No. 2877 Patentee before:INSPUR GROUP Co.,Ltd. | |
| TR01 | Transfer of patent right |