WO2016192253A1 - Method and device for pre-loading media file - Google Patents

Method and device for pre-loading media file Download PDF

Info

Publication number
WO2016192253A1
WO2016192253A1 PCT/CN2015/090391 CN2015090391W WO2016192253A1 WO 2016192253 A1 WO2016192253 A1 WO 2016192253A1 CN 2015090391 W CN2015090391 W CN 2015090391W WO 2016192253 A1 WO2016192253 A1 WO 2016192253A1
Authority
WO
WIPO (PCT)
Prior art keywords
media file
frequency
loading
preloaded
frequency table
Prior art date
Application number
PCT/CN2015/090391
Other languages
French (fr)
Chinese (zh)
Inventor
李宇
Original Assignee
深圳Tcl数字技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳Tcl数字技术有限公司 filed Critical 深圳Tcl数字技术有限公司
Publication of WO2016192253A1 publication Critical patent/WO2016192253A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Definitions

  • the present invention relates to the field of media playback technologies, and in particular, to a method and an apparatus for preloading a media file.
  • the multimedia playing application can play the multimedia file while loading the multimedia file.
  • the video playing application can play the loaded video resource while loading the video resource, wherein the time for downloading the initial video resource is preloaded. time.
  • the more pre-loaded video resources the less chance the user needs to buffer the video while watching, and the smoother the playback.
  • the video playback application after the video playback application is started, some of the latest video resources are automatically downloaded, and the latest video resources are not necessarily intended to be viewed by the user, and have certain blindness. Therefore, if the user selects the video to watch, When these are not the latest video resources, they still need time to download after clicking and playing, and the playback experience is poor.
  • the main purpose of the present invention is to provide a method and device for preloading a media file, which aims to solve the technical problem that the media file loaded by the terminal before the media file is played is relatively blind.
  • the present invention provides a method for preloading a media file, and the method for preloading a media file includes the following steps:
  • the media file frequency table is not empty, obtaining frequency information of characters in the media file frequency table, and acquiring a preloaded media file according to the frequency information;
  • the method further includes:
  • the name of the played media file is decomposed into a single character, and the corresponding number of the single characters is calculated;
  • the frequency information of the characters in the media file frequency table is updated and stored according to the corresponding number of the single characters.
  • the step of acquiring the preloaded media file according to the frequency information includes:
  • the step of loading the preloaded media file includes:
  • the step includes:
  • the loading list stored on the terminal is obtained, and the media file in the loading list is obtained as the preloaded media file.
  • the step of acquiring the preloaded media file according to the frequency information includes:
  • the frequency of the media file is not empty, obtain the frequency information of the characters in the frequency table of the media file, obtain the media file in the loading list, and obtain the location according to the frequency information and the media file in the loading list. Preload the media file.
  • the present invention further provides an apparatus for loading a media file, where the apparatus for loading a media file includes:
  • a judging module configured to obtain a media file frequency table stored on the terminal after the terminal is powered on, and determine whether the media file frequency table is empty;
  • a first acquiring module configured to acquire frequency information of characters in the frequency table of the media file if the frequency of the media file is not empty, and obtain a preloaded media file according to the frequency information
  • the device for loading a media file further includes:
  • a decomposition module configured to: after the media file is played by the terminal, decompose the name of the played media file into a single character, and calculate a corresponding number of the single characters;
  • an update module configured to update and store frequency information of characters in the media file frequency table according to the corresponding number of the single characters.
  • the first obtaining module comprises:
  • a calculating unit configured to acquire frequency information of a character in the frequency table of the media file, and calculate a playing frequency of the media file according to the frequency information
  • an obtaining unit configured to acquire the media file whose playing frequency is greater than a preset frequency as the preloaded media file.
  • the device for loading a media file further includes:
  • Adding a module configured to add the preloaded media file to a load list stored on the terminal and save the file
  • a second obtaining module configured to acquire the loading list stored on the terminal, and obtain a media file in the loading list as the preloading media file, if the media file frequency table is empty.
  • the first obtaining module is specifically configured to: if the media file frequency table is not empty, acquire frequency information of characters in the media file frequency table, and obtain a media file in the loading list, according to the frequency The information and the media files in the load list obtain the preloaded media file.
  • the method and device for preloading a media file after the terminal is powered on, first obtain a stored media file frequency table.
  • the media file frequency table can be obtained from the media file frequency table.
  • the preloaded media file can be obtained according to the character and the frequency corresponding to the character.
  • the preloaded media file is the media file that the user is watching recently, or the media file that the user is watching recently.
  • the most relevant media files, which are closest to the user's recent viewing interest, that is, the preloaded media file is the media file that the user wants to watch most. In this way, the media file that the user wants to watch most accurately can be predicted.
  • the media file After the terminal is powered on, the media file is not blindly loaded, but the media file that the user wants to watch is loaded, so that when the user clicks to view the preloaded file, the user does not need to wait for the preloading to complete, but clicks. You can watch it directly, and the loading time of media files is rationalized. Loads purpose, can greatly improve the user experience.
  • FIG. 1 is a schematic flowchart of a first embodiment of a method for preloading a media file according to the present invention
  • FIG. 2 is a schematic flowchart of a second embodiment of a method for preloading a media file according to the present invention
  • step S102 in FIG. 1 is a schematic flowchart of the refinement of step S102 in FIG. 1;
  • FIG. 4 is a schematic flowchart of a third embodiment of a method for preloading a media file according to the present invention.
  • FIG. 5 is a schematic diagram of functional modules of a first embodiment of an apparatus for loading a media file according to the present invention
  • FIG. 6 is a schematic diagram of functional modules of a second embodiment of an apparatus for loading a media file according to the present invention.
  • FIG. 7 is a schematic diagram of a refinement function module of the first acquisition module in FIG. 5;
  • FIG. 8 is a schematic diagram of functional modules of a third embodiment of an apparatus for loading a media file according to the present invention.
  • the present invention provides a method for preloading a media file.
  • the method for preloading a media file includes:
  • Step S101 After the terminal is powered on, obtain a media file frequency table stored on the terminal, and determine whether the media file frequency table is empty.
  • the media file may be a video file or an audio file or the like.
  • the terminal When the terminal is powered on, the user can play games, watch TV, etc., and the terminal obtains the stored media file frequency table in the background (Rate Table), the media file frequency table stores the names of all the media files recently viewed by the user, each character corresponding to the name, and the frequency of each character, for example, the name of the movie and the TV drama stored in the user history are stored. The frequency of each character.
  • the character may be a Chinese character or a non-Chinese character.
  • one Chinese character is one character; in the non-Chinese character, in the case of English or German, each word is one character.
  • the frequency of each Chinese character in the movie is 1, and if the user clicks to watch for the second time, the frequency is performed. Accumulatively, the frequency of each Chinese character in the movie in the media file frequency table is 2.
  • the media file frequency table stored on the terminal is emptied every predetermined time, for example every other one. Empty for month.
  • the terminal After the terminal is powered on, it is determined whether the obtained media file frequency table is empty. If it is not empty, the following operations are performed.
  • Step S102 If the media file frequency table is not empty, obtain frequency information of characters in the media file frequency table, and obtain a preloaded media file according to the frequency information;
  • the characters in the media file frequency table and the frequency corresponding to the characters may be obtained, and the playing frequency of the media file in the playing history may be calculated according to the characters and the frequency corresponding to the characters. And then obtaining a media file with a high playing frequency as a preloaded media file, that is, a media file that the user is watching recently, or a media file most relevant to the media file that the user is watching recently, and the media files are the most Close to the user's recent viewing interest, the media file that the user wants to watch is accurately predicted, so the pre-loaded media file is considered to be the media file that the user wants to watch most.
  • the media file frequency table includes, in addition to the name of the media file, each character corresponding to the name, and the frequency of each character, character type information, and the character is identified as a Chinese character or a non-Chinese character, wherein the media file
  • the table of the frequency table uses id, mdata, and num, and the three fields correspond to the frequencies corresponding to the id, characters, and characters.
  • the characters in the name of the played media file are obtained, it is determined whether the characters in the media file frequency table include these characters, and if so, the num corresponding to one character is added to the frequency in the media file frequency table by one, two The num corresponding to the same character is added to the frequency of the media file frequency table by 2, and if the media file frequency table does not include one of the characters, the character is added to the media file frequency table, and then Num is set to 1.
  • the frequency of the Chinese characters included in the movie name increases with the number of times the user clicks to watch, and the terminal automatically loads the latest episode of the movie when the terminal is next turned on, or When the movie does not have the latest episode, the user is likely to watch other videos related to the name of the movie. For example, after watching the movie "Changsha Defend", the user may also want to watch a similar movie "War Changsha”.
  • this embodiment analyzes the frequency of characters in the name of the movie according to the name of the movie that has been viewed in the history of the user, and can obtain the movie that the user is most likely to watch in the future, with these
  • the movie is a preloaded media file that is automatically loaded after the terminal is powered on.
  • Step S103 loading the preloaded media file.
  • the terminal automatically loads the pre-loaded media file after analyzing the media file frequency table in the background. Since the terminal automatically loads the pre-loaded media file when the terminal is turned on, the terminal accurately predicts the media file that the user wants to watch. In this way, when the user clicks on the preloaded media file that has been loaded, the terminal does not need to preload it, but can play directly, and the user does not need to wait for the preloading to complete the viewing, thereby improving the user experience.
  • the stored media file frequency table is first obtained.
  • the media file frequency table may be obtained from the media file recently viewed by the user.
  • the character and the frequency corresponding to the character, the preloaded media file can be obtained according to the character and the frequency corresponding to the character, and the preloaded media file is also the media file that the user is watching recently, or is most relevant to the media file that the user is watching recently.
  • Media files, these media files are closest to the user's recent viewing interest, that is, the pre-loaded media files are the media files that the user wants to watch most. In this way, the media files that the user wants to watch most can be accurately predicted.
  • the method further includes:
  • Step S104 after the terminal plays the media file, the name of the played media file is decomposed into a single character, and the corresponding number of the single characters is calculated;
  • Step S105 Update and store the frequency information of the characters in the frequency table of the media file according to the corresponding number of the single characters.
  • the terminal decomposes the name of the played media file into a single character, and then determines whether the character is included in the media file frequency table. If included, the num corresponding to one character is incremented by 1 on the basis of the frequency in the media file frequency table, and the num corresponding to the two identical characters is added to the frequency in the frequency table of the media file by 2, if the frequency of the media file If the table does not contain one of these characters, the character is added to the media file frequency table and then set to 1 in its num.
  • the foregoing step S102 includes:
  • Step S1021 Acquire frequency information of characters in the media file frequency table, and calculate a play frequency of the media file according to the frequency information;
  • Step S1022 Acquire a media file whose playing frequency is greater than a preset frequency as the preloaded media file.
  • the characters in the frequency table of the media file and the frequency corresponding to the characters are obtained, and the playing frequency of the media file in the playing history can be calculated according to the characters and the frequency corresponding to the characters, and the playing frequency can indicate that the corresponding media file is in the near future.
  • the frequency of user viewing Considering that the number of media files viewed by the user may be relatively large, the embodiment only obtains a media file whose playback frequency is greater than the preset frequency as a preloaded media file.
  • the latest media file can be preferentially obtained as a preloaded media file.
  • the method further includes:
  • Step S106 Add the preloaded media file to the loading list stored on the terminal and save it;
  • the method further includes:
  • Step S107 Acquire the loading list stored on the terminal, and obtain a media file in the loading list as the preloaded media file.
  • this embodiment when the terminal is powered on for the first time, the media file frequency table is empty, indicating that the information in the media file frequency table has been cleared.
  • this embodiment can obtain a loading list stored on the terminal, where the loading list stores a preloaded media file loaded by the user when the user last turned on, and therefore, the terminal obtains the loading list. After that, information about the media file in the loading list can be obtained, and the related media file is obtained as a preloaded file according to the information. For example, if you watched the serial drama Tiger Mom and Dad last 10 episodes, the list will be kept in the loading list, and the Tiger Mom Cat Dad will keep the data of 10 episodes. After emptying, open the opportunity to download the 11 episodes of Tiger Mom Cat Dad.
  • the frequency information of the characters in the frequency table of the media file is obtained, and the loading list may be further obtained.
  • the media file based on the media file in the load list, is used to analyze the frequency information of the characters in the media file frequency table, so that the speed of the analysis can be accelerated, so that the preloaded media file can be quickly obtained.
  • the present invention also provides an apparatus for loading a media file.
  • the apparatus for loading a media file includes:
  • the determining module 101 is configured to obtain a media file frequency table stored on the terminal after the terminal is powered on, and determine whether the media file frequency table is empty.
  • the media file may be a video file or an audio file or the like.
  • the terminal When the terminal is powered on, the user can play games, watch TV, etc., and the terminal obtains the stored media file frequency table in the background (Rate Table), the media file frequency table stores the names of all the media files recently viewed by the user, each character corresponding to the name, and the frequency of each character, for example, the name of the movie and the TV drama stored in the user history are stored. The frequency of each character.
  • the character may be a Chinese character or a non-Chinese character.
  • one Chinese character is one character; in the non-Chinese character, in the case of English or German, each word is one character.
  • the frequency of each Chinese character in the movie is 1, and if the user clicks to watch for the second time, the frequency is performed. Accumulatively, the frequency of each Chinese character in the movie in the media file frequency table is 2.
  • the media file frequency table stored on the terminal is emptied every predetermined time, for example every other one. Empty for month.
  • the terminal After the terminal is powered on, it is determined whether the obtained media file frequency table is empty. If it is not empty, the following operations are performed.
  • the first obtaining module 102 is configured to obtain frequency information of characters in the frequency table of the media file if the frequency of the media file is not empty, and obtain a preloaded media file according to the frequency information;
  • the characters in the media file frequency table and the frequency corresponding to the characters may be obtained, and the playing frequency of the media file in the playing history may be calculated according to the characters and the frequency corresponding to the characters. And then obtaining a media file with a high playing frequency as a preloaded media file, that is, a media file that the user is watching recently, or a media file most relevant to the media file that the user is watching recently, and the media files are the most Close to the user's recent viewing interest, the media file that the user wants to watch is accurately predicted, so the pre-loaded media file is considered to be the media file that the user wants to watch most.
  • the media file frequency table includes, in addition to the name of the media file, each character corresponding to the name, and the frequency of each character, character type information, and the character is identified as a Chinese character or a non-Chinese character, wherein the media file
  • the table of the frequency table uses id, mdata, and num, and the three fields correspond to the frequencies corresponding to the id, characters, and characters.
  • the characters in the name of the played media file are obtained, it is determined whether the characters in the media file frequency table include these characters, and if so, the num corresponding to one character is added to the frequency in the media file frequency table by one, two The num corresponding to the same character is added to the frequency of the media file frequency table by 2, and if the media file frequency table does not include one of the characters, the character is added to the media file frequency table, and then Num is set to 1.
  • the frequency of the Chinese characters included in the movie name increases with the number of times the user clicks to watch, and the terminal automatically loads the latest episode of the movie when the terminal is next turned on, or When the movie does not have the latest episode, the user is likely to watch other videos related to the name of the movie. For example, after watching the movie "Changsha Defend", the user may also want to watch a similar movie "War Changsha”.
  • this embodiment analyzes the frequency of characters in the name of the movie according to the name of the movie that has been viewed in the history of the user, and can obtain the movie that the user is most likely to watch in the future, with these
  • the movie is a preloaded media file that is automatically loaded after the terminal is powered on.
  • the loading module 103 is configured to load the preloaded media file.
  • the terminal automatically loads the pre-loaded media file after analyzing the media file frequency table in the background. Since the terminal automatically loads the pre-loaded media file when the terminal is turned on, the terminal accurately predicts the media file that the user wants to watch. In this way, when the user clicks on the preloaded media file that has been loaded, the terminal does not need to preload it, but can play directly, and the user does not need to wait for the preloading to complete the viewing, thereby improving the user experience.
  • the stored media file frequency table is first obtained.
  • the media file frequency table may be obtained from the media file recently viewed by the user.
  • the character and the frequency corresponding to the character, the preloaded media file can be obtained according to the character and the frequency corresponding to the character, and the preloaded media file is also the media file that the user is watching recently, or is most relevant to the media file that the user is watching recently.
  • Media files, these media files are closest to the user's recent viewing interest, that is, the pre-loaded media files are the media files that the user wants to watch most. In this way, the media files that the user wants to watch most can be accurately predicted.
  • the apparatus for loading a media file further includes:
  • the decomposition module 104 is configured to, after the terminal plays the media file, decompose the name of the played media file into a single character, and calculate a corresponding number of the single characters;
  • the updating module 105 is configured to update and store frequency information of characters in the media file frequency table according to the corresponding number of the single characters.
  • the terminal decomposes the name of the played media file into a single character, and then determines whether the character is included in the media file frequency table. If included, the num corresponding to one character is incremented by 1 on the basis of the frequency in the media file frequency table, and the num corresponding to the two identical characters is added to the frequency in the frequency table of the media file by 2, if the frequency of the media file If the table does not contain one of these characters, the character is added to the media file frequency table and then set to 1 in its num.
  • the first obtaining module 102 includes:
  • the calculating unit 1021 is configured to acquire frequency information of characters in the media file frequency table, and calculate a playing frequency of the media file according to the frequency information;
  • the obtaining unit 1022 is configured to obtain, as the preloaded media file, a media file whose playing frequency is greater than a preset frequency.
  • the characters in the frequency table of the media file and the frequency corresponding to the characters are obtained, and the playing frequency of the media file in the playing history can be calculated according to the characters and the frequency corresponding to the characters, and the playing frequency can indicate that the corresponding media file is in the near future.
  • the frequency of user viewing Considering that the number of media files viewed by the user may be relatively large, the embodiment only obtains a media file whose playback frequency is greater than the preset frequency as a preloaded media file.
  • the latest media file can be preferentially obtained as a preloaded media file.
  • the apparatus for loading a media file further includes:
  • the adding module 106 is configured to add the preloaded media file to a loading list stored on the terminal and save the storage file;
  • the second obtaining module 107 is configured to acquire the loading list stored on the terminal, and obtain a media file in the loading list as the preloading media file, if the media file frequency table is empty.
  • the embodiment when the terminal is powered on for the first time, the media file frequency table is empty, indicating that the information in the media file frequency table has been cleared.
  • the embodiment may obtain a loading list stored on the terminal, where the loading list stores a preloaded media file loaded by the user when the user last turned on, and therefore, the terminal obtains the loading list. After that, information about the media file in the loading list can be obtained, and the related media file is obtained as a preloaded file according to the information.
  • the frequency information of the characters in the media file frequency table is obtained, and the loading list may be further obtained.
  • the media file based on the media file in the load list, is used to analyze the frequency information of the characters in the media file frequency table, so that the speed of the analysis can be accelerated, so that the preloaded media file can be quickly obtained.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A method and device for pre-loading a media file. The method for pre-loading a media file comprises the following steps: after a terminal is booted up, acquiring a media file frequency table stored on the terminal, and determining whether the media file frequency table is empty (S101); if not, acquiring frequency information of a character in the media file frequency table, and acquiring, according to the frequency information, a media file to be pre-loaded (S102); and loading the media file to be pre-loaded (S103). The present invention accurately predicts a media file a user most wants to watch. After being booted up, the terminal will load the media file the user most wants to watch rather than a random media file, and the user can watch the media file before the completion of pre-loading thereof. Accordingly, loading time of a media file is reasonable, and loading is targeted, thereby greatly improving user experience.

Description

预加载媒体文件的方法及装置  Method and device for preloading media files
技术领域Technical field
本发明涉及媒体播放技术领域,尤其涉及一种预加载媒体文件的方法及装置。The present invention relates to the field of media playback technologies, and in particular, to a method and an apparatus for preloading a media file.
背景技术Background technique
目前,在多媒体播放时,多媒体播放应用可以在加载多媒体文件的同时播放多媒体文件,例如视频播放应用在加载视频资源的同时可以播放正在加载的视频资源,其中,下载初始视频资源的时间为预加载的时间。预加载的视频资源越多,则用户在观看时视频需要缓冲的几率就越小,播放越流畅。现有技术中,视频播放应用在启动后,会自动下载最新的一些视频资源,而这些最新的视频资源并不一定是用户想要观看,具有一定的盲目性,因此,用户如果选择观看的视频不是这些最新的视频资源时,在点击播放后仍然需要时间下载,播放体验较差。At present, in the multimedia playing, the multimedia playing application can play the multimedia file while loading the multimedia file. For example, the video playing application can play the loaded video resource while loading the video resource, wherein the time for downloading the initial video resource is preloaded. time. The more pre-loaded video resources, the less chance the user needs to buffer the video while watching, and the smoother the playback. In the prior art, after the video playback application is started, some of the latest video resources are automatically downloaded, and the latest video resources are not necessarily intended to be viewed by the user, and have certain blindness. Therefore, if the user selects the video to watch, When these are not the latest video resources, they still need time to download after clicking and playing, and the playback experience is poor.
上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。The above content is only used to assist in understanding the technical solutions of the present invention, and does not constitute an admission that the above is prior art.
发明内容Summary of the invention
本发明的主要目的在于提供一种预加载媒体文件的方法及装置,旨在解决终端在播放媒体文件前加载的媒体文件较盲目的技术问题。The main purpose of the present invention is to provide a method and device for preloading a media file, which aims to solve the technical problem that the media file loaded by the terminal before the media file is played is relatively blind.
为实现上述目的,本发明提供一种预加载媒体文件的方法,所述预加载媒体文件的方法包括以下步骤:To achieve the above object, the present invention provides a method for preloading a media file, and the method for preloading a media file includes the following steps:
当终端开机后,获取所述终端上存储的媒体文件频率表,判断所述媒体文件频率表是否为空;After the terminal is powered on, obtaining a media file frequency table stored on the terminal, and determining whether the media file frequency table is empty;
若所述媒体文件频率表不为空,获取所述媒体文件频率表中字符的频率信息,根据所述频率信息获取预加载媒体文件;If the media file frequency table is not empty, obtaining frequency information of characters in the media file frequency table, and acquiring a preloaded media file according to the frequency information;
加载所述预加载媒体文件。Loading the preloaded media file.
优选地,所述加载所述预加载媒体文件的步骤之后还包括:Preferably, after the step of loading the preloaded media file, the method further includes:
在所述终端播放媒体文件后,将所播放的媒体文件的名称分解为单个字符,计算所述单个字符的对应数量;After the media file is played by the terminal, the name of the played media file is decomposed into a single character, and the corresponding number of the single characters is calculated;
根据所述单个字符的对应数量对所述媒体文件频率表中字符的频率信息进行更新并存储。The frequency information of the characters in the media file frequency table is updated and stored according to the corresponding number of the single characters.
优选地,所述若所述媒体文件频率表不为空,获取所述媒体文件频率表中的字符的频率信息,根据所述频率信息获取预加载媒体文件的步骤包括:Preferably, if the media file frequency table is not empty, the frequency information of the characters in the media file frequency table is obtained, and the step of acquiring the preloaded media file according to the frequency information includes:
获取所述媒体文件频率表中的字符的频率信息,根据所述频率信息计算媒体文件的播放频率;Obtaining frequency information of characters in the media file frequency table, and calculating a playing frequency of the media file according to the frequency information;
获取所述播放频率大于预设频率的媒体文件作为所述预加载媒体文件。Obtaining, as the preloaded media file, a media file whose playing frequency is greater than a preset frequency.
优选地,所述加载所述预加载媒体文件的步骤之前包括:Preferably, the step of loading the preloaded media file includes:
将所述预加载媒体文件添加至终端上存储的加载列表中并保存;Adding the preloaded media file to a load list stored on the terminal and saving the file;
所述当终端开机后,获取所述终端上存储的媒体文件频率表,判断所述媒体文件频率表是否为空的步骤之后包括:After the terminal is powered on, obtaining the media file frequency table stored on the terminal, and determining whether the media file frequency table is empty, the step includes:
若所述媒体文件频率表为空,获取所述终端上存储的所述加载列表,并获取所述加载列表中的媒体文件作为所述预加载媒体文件。If the media file frequency table is empty, the loading list stored on the terminal is obtained, and the media file in the loading list is obtained as the preloaded media file.
优选地,所述若所述媒体文件频率表不为空,获取所述媒体文件频率表中字符的频率信息,根据所述频率信息获取预加载媒体文件的步骤包括:Preferably, if the media file frequency table is not empty, the frequency information of the characters in the frequency table of the media file is obtained, and the step of acquiring the preloaded media file according to the frequency information includes:
若所述媒体文件频率表不为空,获取所述媒体文件频率表中字符的频率信息、获取所述加载列表中的媒体文件,根据所述频率信息及所述加载列表中的媒体文件获取所述预加载媒体文件。If the frequency of the media file is not empty, obtain the frequency information of the characters in the frequency table of the media file, obtain the media file in the loading list, and obtain the location according to the frequency information and the media file in the loading list. Preload the media file.
此外,为实现上述目的,本发明还提供一种加载媒体文件的装置,所述加载媒体文件的装置包括:In addition, in order to achieve the above object, the present invention further provides an apparatus for loading a media file, where the apparatus for loading a media file includes:
判断模块,用于当终端开机后,获取所述终端上存储的媒体文件频率表,判断所述媒体文件频率表是否为空;a judging module, configured to obtain a media file frequency table stored on the terminal after the terminal is powered on, and determine whether the media file frequency table is empty;
第一获取模块,用于若所述媒体文件频率表不为空,获取所述媒体文件频率表中字符的频率信息,根据所述频率信息获取预加载媒体文件;a first acquiring module, configured to acquire frequency information of characters in the frequency table of the media file if the frequency of the media file is not empty, and obtain a preloaded media file according to the frequency information;
加载模块,用于加载所述预加载媒体文件。Loading a module for loading the preloaded media file.
优选地,所述加载媒体文件的装置还包括:Preferably, the device for loading a media file further includes:
分解模块,用于在所述终端播放媒体文件后,将所播放的媒体文件的名称分解为单个字符,计算所述单个字符的对应数量;a decomposition module, configured to: after the media file is played by the terminal, decompose the name of the played media file into a single character, and calculate a corresponding number of the single characters;
更新模块,用于根据所述单个字符的对应数量对所述媒体文件频率表中字符的频率信息进行更新并存储。And an update module, configured to update and store frequency information of characters in the media file frequency table according to the corresponding number of the single characters.
优选地,所述第一获取模块包括:Preferably, the first obtaining module comprises:
计算单元,用于获取所述媒体文件频率表中的字符的频率信息,根据所述频率信息计算媒体文件的播放频率;a calculating unit, configured to acquire frequency information of a character in the frequency table of the media file, and calculate a playing frequency of the media file according to the frequency information;
获取单元,用于获取所述播放频率大于预设频率的媒体文件作为所述预加载媒体文件。And an obtaining unit, configured to acquire the media file whose playing frequency is greater than a preset frequency as the preloaded media file.
优选地,所述加载媒体文件的装置还包括:Preferably, the device for loading a media file further includes:
添加模块,用于将所述预加载媒体文件添加至终端上存储的加载列表中并保存;Adding a module, configured to add the preloaded media file to a load list stored on the terminal and save the file;
第二获取模块,用于若所述媒体文件频率表为空,获取所述终端上存储的所述加载列表,并获取所述加载列表中的媒体文件作为所述预加载媒体文件。And a second obtaining module, configured to acquire the loading list stored on the terminal, and obtain a media file in the loading list as the preloading media file, if the media file frequency table is empty.
优选地,所述第一获取模块具体用于若所述媒体文件频率表不为空,获取所述媒体文件频率表中字符的频率信息、获取所述加载列表中的媒体文件,根据所述频率信息及所述加载列表中的媒体文件获取所述预加载媒体文件。Preferably, the first obtaining module is specifically configured to: if the media file frequency table is not empty, acquire frequency information of characters in the media file frequency table, and obtain a media file in the loading list, according to the frequency The information and the media files in the load list obtain the preloaded media file.
本发明一种预加载媒体文件的方法及装置,在终端开机后,首先获取存储的媒体文件频率表,当媒体文件频率表不为空,可以从媒体文件频率表获取到用户近期观看的媒体文件的名称中的字符以及字符对应的频率,根据字符以及字符对应的频率可以得到预加载媒体文件,该预加载媒体文件也就是用户近期在观看的媒体文件,或者是与用户近期在观看的媒体文件最相关的媒体文件,这些媒体文件最接近用户近期的观看兴趣所在,即预加载媒体文件是用户最想观看的媒体文件,通过这种方式,能够对用户最想观看的媒体文件进行准确的预计,终端开机后不会盲目加载媒体文件,而是加载用户最想观看的媒体文件,这样,在用户点击观看这些预加载文件时,不需要用户等待其预加载完成方可观看,而是点击后即可直接观看,媒体文件的加载时间合理化、且加载具有目的性,能够大大提升用户体验。The method and device for preloading a media file, after the terminal is powered on, first obtain a stored media file frequency table. When the media file frequency table is not empty, the media file frequency table can be obtained from the media file frequency table. The character in the name and the frequency corresponding to the character. The preloaded media file can be obtained according to the character and the frequency corresponding to the character. The preloaded media file is the media file that the user is watching recently, or the media file that the user is watching recently. The most relevant media files, which are closest to the user's recent viewing interest, that is, the preloaded media file is the media file that the user wants to watch most. In this way, the media file that the user wants to watch most accurately can be predicted. After the terminal is powered on, the media file is not blindly loaded, but the media file that the user wants to watch is loaded, so that when the user clicks to view the preloaded file, the user does not need to wait for the preloading to complete, but clicks. You can watch it directly, and the loading time of media files is rationalized. Loads purpose, can greatly improve the user experience.
附图说明DRAWINGS
图1为本发明预加载媒体文件的方法第一实施例的流程示意图;1 is a schematic flowchart of a first embodiment of a method for preloading a media file according to the present invention;
图2为本发明预加载媒体文件的方法第二实施例的流程示意图;2 is a schematic flowchart of a second embodiment of a method for preloading a media file according to the present invention;
图3为图1中步骤S102的细化流程示意图;3 is a schematic flowchart of the refinement of step S102 in FIG. 1;
图4为本发明预加载媒体文件的方法第三实施例的流程示意图;4 is a schematic flowchart of a third embodiment of a method for preloading a media file according to the present invention;
图5为本发明加载媒体文件的装置第一实施例的功能模块示意图;5 is a schematic diagram of functional modules of a first embodiment of an apparatus for loading a media file according to the present invention;
图6为本发明加载媒体文件的装置第二实施例的功能模块示意图;6 is a schematic diagram of functional modules of a second embodiment of an apparatus for loading a media file according to the present invention;
图7为图5中第一获取模块的细化功能模块示意图;7 is a schematic diagram of a refinement function module of the first acquisition module in FIG. 5;
图8为本发明加载媒体文件的装置第三实施例的功能模块示意图。FIG. 8 is a schematic diagram of functional modules of a third embodiment of an apparatus for loading a media file according to the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明提供一种预加载媒体文件的方法,参照图1,在第一实施例中,该预加载媒体文件的方法包括:The present invention provides a method for preloading a media file. Referring to FIG. 1, in the first embodiment, the method for preloading a media file includes:
步骤S101,当终端开机后,获取所述终端上存储的媒体文件频率表,判断所述媒体文件频率表是否为空;Step S101: After the terminal is powered on, obtain a media file frequency table stored on the terminal, and determine whether the media file frequency table is empty.
本实施例中,媒体文件可以是视频文件或者音频文件等。当终端开机后,用户可以玩游戏、看电视等,终端在后台获取存储的媒体文件频率表(Rate Table),该媒体文件频率表中存储有用户近期观看的所有媒体文件的名称、该名称中对应的每一个字符以及每一个字符的频率,例如存储有用户历史上观看的影片及电视剧的名称对应的每一个字符的频率。In this embodiment, the media file may be a video file or an audio file or the like. When the terminal is powered on, the user can play games, watch TV, etc., and the terminal obtains the stored media file frequency table in the background (Rate Table), the media file frequency table stores the names of all the media files recently viewed by the user, each character corresponding to the name, and the frequency of each character, for example, the name of the movie and the TV drama stored in the user history are stored. The frequency of each character.
本实施例中,字符可以是汉字或者非汉字,在汉字的字符中,一个汉字即为一个字符;在非汉字的字符中,以英语或德语为例,则每一个单词为一个字符。In this embodiment, the character may be a Chinese character or a non-Chinese character. In the character of the Chinese character, one Chinese character is one character; in the non-Chinese character, in the case of English or German, each word is one character.
本实施例中,用户点击观看一次某一影片,例如点击观看“大话西游之月光宝盒”,则该影片中的每一个汉字计其频率为1,如果用户第二次点击观看,则频率进行累加,媒体文件频率表中对应该影片中的每一个汉字的频率则为2。In this embodiment, when the user clicks to watch a certain movie once, for example, clicks to watch the "moonlight treasure box of the Westward Journey", the frequency of each Chinese character in the movie is 1, and if the user clicks to watch for the second time, the frequency is performed. Accumulatively, the frequency of each Chinese character in the movie in the media file frequency table is 2.
其中,考虑到字符的数量会比较多,且用户观看的媒体文件会随着时间的变化而变化,因此该存储在终端上的媒体文件频率表每隔预定的时间会进行清空,例如每隔一个月进行清空。Wherein, considering that the number of characters is relatively large, and the media file viewed by the user changes with time, the media file frequency table stored on the terminal is emptied every predetermined time, for example every other one. Empty for month.
由此,在终端开机后,会判断所获取的媒体文件频率表是否为空,如果不为空,则执行以下的操作。Therefore, after the terminal is powered on, it is determined whether the obtained media file frequency table is empty. If it is not empty, the following operations are performed.
步骤S102,若所述媒体文件频率表不为空,获取所述媒体文件频率表中字符的频率信息,根据所述频率信息获取预加载媒体文件;Step S102: If the media file frequency table is not empty, obtain frequency information of characters in the media file frequency table, and obtain a preloaded media file according to the frequency information;
本实施例中,如果媒体文件频率表不为空,则可以获取到媒体文件频率表中的字符以及字符对应的频率,根据字符以及字符对应的频率可以计算媒体文件的在播放历史上的播放频率,然后获取播放频率高的媒体文件作为预加载媒体文件,该预加载媒体文件也就是用户近期在观看的媒体文件,或者是与用户近期在观看的媒体文件最相关的媒体文件,这些媒体文件最接近用户近期的观看兴趣所在,对用户最想观看的媒体文件进行准确的预计,故认为预加载媒体文件是用户最想观看的媒体文件。In this embodiment, if the media file frequency table is not empty, the characters in the media file frequency table and the frequency corresponding to the characters may be obtained, and the playing frequency of the media file in the playing history may be calculated according to the characters and the frequency corresponding to the characters. And then obtaining a media file with a high playing frequency as a preloaded media file, that is, a media file that the user is watching recently, or a media file most relevant to the media file that the user is watching recently, and the media files are the most Close to the user's recent viewing interest, the media file that the user wants to watch is accurately predicted, so the pre-loaded media file is considered to be the media file that the user wants to watch most.
具体地,媒体文件频率表中除了包含媒体文件的名称、该名称中对应的每一个字符以及每一个字符的频率外,还包含字符类型信息,标识该字符为汉字或者非汉字,其中,媒体文件频率表的表格中使用id、mdata、num,三个字段对应表示id、字符和字符对应的频率。Specifically, the media file frequency table includes, in addition to the name of the media file, each character corresponding to the name, and the frequency of each character, character type information, and the character is identified as a Chinese character or a non-Chinese character, wherein the media file The table of the frequency table uses id, mdata, and num, and the three fields correspond to the frequencies corresponding to the id, characters, and characters.
当获取到播放的媒体文件的名称中的字符时,判断媒体文件频率表中是否包含这些字符,如果包含,则一个字符对应的num在媒体文件频率表中的频率的基础上加1,两个相同的字符对应的num在媒体文件频率表中的频率的基础上加2,如果媒体文件频率表中不包含这些字符中的某一字符,则在媒体文件频率表中增加该字符,然后在其num置为1。When the characters in the name of the played media file are obtained, it is determined whether the characters in the media file frequency table include these characters, and if so, the num corresponding to one character is added to the frequency in the media file frequency table by one, two The num corresponding to the same character is added to the frequency of the media file frequency table by 2, and if the media file frequency table does not include one of the characters, the character is added to the media file frequency table, and then Num is set to 1.
以用户观看影片及电视剧等视频文件为例:Take video files such as videos and TV shows as examples:
当用户近期多次点击观看某个影片,则该影片名称包含的汉字的频率随着用户的点击观看的次数而增加,在终端下次开机时,终端会自动加载该影片的最新剧集,或者当该影片没有最新剧集时,用户极有可能会观看与该影片的名称相关的另一些影片,如用户在看完影片“长沙保卫战”后,可能还想观看类似的影片“战长沙”或者“长沙保卫战2”,因此,本实施例根据用户历史上点击观看过的影片的名称,分析影片的名称中的字符的频率,可以得到用户在将来时最有可能观看的影片,以这些影片作为终端开机后自动进行加载的预加载媒体文件。When the user clicks on a certain movie in the recent multiple times, the frequency of the Chinese characters included in the movie name increases with the number of times the user clicks to watch, and the terminal automatically loads the latest episode of the movie when the terminal is next turned on, or When the movie does not have the latest episode, the user is likely to watch other videos related to the name of the movie. For example, after watching the movie "Changsha Defend", the user may also want to watch a similar movie "War Changsha". Or "Changsha Defend 2", therefore, this embodiment analyzes the frequency of characters in the name of the movie according to the name of the movie that has been viewed in the history of the user, and can obtain the movie that the user is most likely to watch in the future, with these The movie is a preloaded media file that is automatically loaded after the terminal is powered on.
步骤S103,加载所述预加载媒体文件。Step S103, loading the preloaded media file.
本实施例中,终端自动在后台加载分析媒体文件频率表后的到的预加载媒体文件,由于终端在开机时即自动加载预加载媒体文件,对用户最想观看的媒体文件进行准确的预计,这样,当用户点击已经加载的预加载媒体文件时,终端已不需要对其进行预加载,而是能够直接播放,用户不需要等待其预加载完成方可观看,提升用户体验。In this embodiment, the terminal automatically loads the pre-loaded media file after analyzing the media file frequency table in the background. Since the terminal automatically loads the pre-loaded media file when the terminal is turned on, the terminal accurately predicts the media file that the user wants to watch. In this way, when the user clicks on the preloaded media file that has been loaded, the terminal does not need to preload it, but can play directly, and the user does not need to wait for the preloading to complete the viewing, thereby improving the user experience.
与现有技术相比,本实施例在终端开机后,首先获取存储的媒体文件频率表,当媒体文件频率表不为空,可以从媒体文件频率表获取到用户近期观看的媒体文件的名称中的字符以及字符对应的频率,根据字符以及字符对应的频率可以得到预加载媒体文件,该预加载媒体文件也就是用户近期在观看的媒体文件,或者是与用户近期在观看的媒体文件最相关的媒体文件,这些媒体文件最接近用户近期的观看兴趣所在,即预加载媒体文件是用户最想观看的媒体文件,通过这种方式,能够对用户最想观看的媒体文件进行准确的预计,终端开机后不会盲目加载媒体文件,而是加载用户最想观看的媒体文件,这样,在用户点击观看这些预加载文件时,不需要用户等待其预加载完成方可观看,而是点击后即可直接观看,媒体文件的加载时间合理化、且加载具有目的性,能够大大提升用户体验。Compared with the prior art, in this embodiment, after the terminal is powered on, the stored media file frequency table is first obtained. When the media file frequency table is not empty, the media file frequency table may be obtained from the media file recently viewed by the user. The character and the frequency corresponding to the character, the preloaded media file can be obtained according to the character and the frequency corresponding to the character, and the preloaded media file is also the media file that the user is watching recently, or is most relevant to the media file that the user is watching recently. Media files, these media files are closest to the user's recent viewing interest, that is, the pre-loaded media files are the media files that the user wants to watch most. In this way, the media files that the user wants to watch most can be accurately predicted. After that, the media files will not be loaded blindly, but the media files that the user wants to watch will be loaded. Thus, when the user clicks to view these pre-loaded files, the user does not need to wait for the pre-loading to complete, but can click directly after clicking. Watch, media file loading time is rationalized, and loading has a purpose Can greatly enhance the user experience.
在第二实施例中,如图2所示,在上述图1的第一实施例的基础上,在上述步骤S103之后还包括:In the second embodiment, as shown in FIG. 2, based on the first embodiment of FIG. 1 above, after the step S103, the method further includes:
步骤S104,在所述终端播放媒体文件后,将所播放的媒体文件的名称分解为单个字符,计算所述单个字符的对应数量;Step S104, after the terminal plays the media file, the name of the played media file is decomposed into a single character, and the corresponding number of the single characters is calculated;
步骤S105,根据所述单个字符的对应数量对所述媒体文件频率表中字符的频率信息进行更新并存储。Step S105: Update and store the frequency information of the characters in the frequency table of the media file according to the corresponding number of the single characters.
本实施例中,在终端加载完媒体文件后,用户点击进行播放,在终端播放媒体文件时,终端对所播放的媒体文件的名称分解为单个字符,然后判断媒体文件频率表中是否包含该字符,如果包含,则一个字符对应的num在媒体文件频率表中的频率的基础上加1,两个相同的字符对应的num在媒体文件频率表中的频率的基础上加2,如果媒体文件频率表中不包含这些字符中的某一字符,则在媒体文件频率表中增加该字符,然后在其num置为1。In this embodiment, after the terminal loads the media file, the user clicks to play, and when the terminal plays the media file, the terminal decomposes the name of the played media file into a single character, and then determines whether the character is included in the media file frequency table. If included, the num corresponding to one character is incremented by 1 on the basis of the frequency in the media file frequency table, and the num corresponding to the two identical characters is added to the frequency in the frequency table of the media file by 2, if the frequency of the media file If the table does not contain one of these characters, the character is added to the media file frequency table and then set to 1 in its num.
本实施例中,在将用户本次开机所播放所有媒体文件的名称分解为单个的字符,并根据单个字符的数量更新媒体文件频率表中的字符的频率后,将其进行存储,以便在下次开机时获取到最新的媒体文件频率表。In this embodiment, after the name of all the media files played by the user at this power-on is decomposed into a single character, and the frequency of the characters in the frequency table of the media file is updated according to the number of single characters, it is stored for the next time. Get the latest media file frequency table at boot time.
优选地,如图3所示,在上述图1的第一实施例的基础上,上述步骤S102包括:Preferably, as shown in FIG. 3, based on the first embodiment of FIG. 1 above, the foregoing step S102 includes:
步骤S1021,获取所述媒体文件频率表中的字符的频率信息,根据所述频率信息计算媒体文件的播放频率;Step S1021: Acquire frequency information of characters in the media file frequency table, and calculate a play frequency of the media file according to the frequency information;
步骤S1022,获取所述播放频率大于预设频率的媒体文件作为所述预加载媒体文件。Step S1022: Acquire a media file whose playing frequency is greater than a preset frequency as the preloaded media file.
本实施例中,获取媒体文件频率表中的字符以及字符对应的频率,根据字符以及字符对应的频率可以计算媒体文件的在播放历史上的播放频率,该播放频率能够表明对应的媒体文件在近期用户观看的频繁度。考虑到用户观看的媒体文件的数量会出现比较多的情况,因此本实施例只获取播放频率大于预设频率的媒体文件作为预加载媒体文件。In this embodiment, the characters in the frequency table of the media file and the frequency corresponding to the characters are obtained, and the playing frequency of the media file in the playing history can be calculated according to the characters and the frequency corresponding to the characters, and the playing frequency can indicate that the corresponding media file is in the near future. The frequency of user viewing. Considering that the number of media files viewed by the user may be relatively large, the embodiment only obtains a media file whose playback frequency is greater than the preset frequency as a preloaded media file.
另外,如果播放频率相同的两个媒体文件,可以优先获取最新的媒体文件作为预加载媒体文件。In addition, if two media files of the same frequency are played, the latest media file can be preferentially obtained as a preloaded media file.
在第三实施例中,如图4所示,在上述图1的第一实施例的基础上,在上述步骤S103之前还包括:In the third embodiment, as shown in FIG. 4, based on the first embodiment of FIG. 1 above, before step S103, the method further includes:
步骤S106,将预加载媒体文件添加至终端上存储的加载列表中并保存;Step S106: Add the preloaded media file to the loading list stored on the terminal and save it;
在上述步骤S101之后还包括:After the above step S101, the method further includes:
步骤S107,获取所述终端上存储的所述加载列表,并获取所述加载列表中的媒体文件作为所述预加载媒体文件。Step S107: Acquire the loading list stored on the terminal, and obtain a media file in the loading list as the preloaded media file.
本实施例中,在终端首次开机时,媒体文件频率表为空,则说明媒体文件频率表中的信息已经被清空。与图1的实施例不同的是,本实施例可以获取终端上存储的加载列表,该加载列表中存储有用户上一次开机时所加载的预加载媒体文件,因此,终端在获取到该加载列表后,可以获取到加载列表中的媒体文件的信息,根据这些信息得到相关的媒体文件作为预加载文件。例如,如果上次看连续剧虎妈猫爸到10集,清空后会加载列表中会保留着虎妈猫爸,10集的数据,清空后开机会下载虎妈猫爸的11集。In this embodiment, when the terminal is powered on for the first time, the media file frequency table is empty, indicating that the information in the media file frequency table has been cleared. Different from the embodiment of FIG. 1 , this embodiment can obtain a loading list stored on the terminal, where the loading list stores a preloaded media file loaded by the user when the user last turned on, and therefore, the terminal obtains the loading list. After that, information about the media file in the loading list can be obtained, and the related media file is obtained as a preloaded file according to the information. For example, if you watched the serial drama Tiger Mom and Dad last 10 episodes, the list will be kept in the loading list, and the Tiger Mom Cat Dad will keep the data of 10 episodes. After emptying, open the opportunity to download the 11 episodes of Tiger Mom Cat Dad.
另外,如果终端是第一次开机,则终端上未存储有任何列表,即未存储有媒体文件频率表及加载列表,则直接加载热门媒体文件或者最新的媒体文件。In addition, if the terminal is powered on for the first time, no list is stored on the terminal, that is, the media file frequency table and the loading list are not stored, and the hot media file or the latest media file is directly loaded.
在一优选的实施例中,在上述图1的实施例的基础上,当体文件频率表不为空时,则获取媒体文件频率表中字符的频率信息的同时,还可以进一步获取加载列表中的媒体文件,优先以加载列表中的媒体文件为基础,来分析媒体文件频率表中字符的频率信息,这样可以加速分析的速度,从而能够快速获取到预加载媒体文件。In a preferred embodiment, on the basis of the foregoing embodiment of FIG. 1, when the body file frequency table is not empty, the frequency information of the characters in the frequency table of the media file is obtained, and the loading list may be further obtained. The media file, based on the media file in the load list, is used to analyze the frequency information of the characters in the media file frequency table, so that the speed of the analysis can be accelerated, so that the preloaded media file can be quickly obtained.
本发明还提供一种加载媒体文件的装置,如图5所示,在第一实施例中,所述加载媒体文件的装置包括:The present invention also provides an apparatus for loading a media file. As shown in FIG. 5, in the first embodiment, the apparatus for loading a media file includes:
判断模块101,用于当终端开机后,获取所述终端上存储的媒体文件频率表,判断所述媒体文件频率表是否为空;The determining module 101 is configured to obtain a media file frequency table stored on the terminal after the terminal is powered on, and determine whether the media file frequency table is empty.
本实施例中,媒体文件可以是视频文件或者音频文件等。当终端开机后,用户可以玩游戏、看电视等,终端在后台获取存储的媒体文件频率表(Rate Table),该媒体文件频率表中存储有用户近期观看的所有媒体文件的名称、该名称中对应的每一个字符以及每一个字符的频率,例如存储有用户历史上观看的影片及电视剧的名称对应的每一个字符的频率。In this embodiment, the media file may be a video file or an audio file or the like. When the terminal is powered on, the user can play games, watch TV, etc., and the terminal obtains the stored media file frequency table in the background (Rate Table), the media file frequency table stores the names of all the media files recently viewed by the user, each character corresponding to the name, and the frequency of each character, for example, the name of the movie and the TV drama stored in the user history are stored. The frequency of each character.
本实施例中,字符可以是汉字或者非汉字,在汉字的字符中,一个汉字即为一个字符;在非汉字的字符中,以英语或德语为例,则每一个单词为一个字符。In this embodiment, the character may be a Chinese character or a non-Chinese character. In the character of the Chinese character, one Chinese character is one character; in the non-Chinese character, in the case of English or German, each word is one character.
本实施例中,用户点击观看一次某一影片,例如点击观看“大话西游之月光宝盒”,则该影片中的每一个汉字计其频率为1,如果用户第二次点击观看,则频率进行累加,媒体文件频率表中对应该影片中的每一个汉字的频率则为2。In this embodiment, when the user clicks to watch a certain movie once, for example, clicks to watch the "moonlight treasure box of the Westward Journey", the frequency of each Chinese character in the movie is 1, and if the user clicks to watch for the second time, the frequency is performed. Accumulatively, the frequency of each Chinese character in the movie in the media file frequency table is 2.
其中,考虑到字符的数量会比较多,且用户观看的媒体文件会随着时间的变化而变化,因此该存储在终端上的媒体文件频率表每隔预定的时间会进行清空,例如每隔一个月进行清空。Wherein, considering that the number of characters is relatively large, and the media file viewed by the user changes with time, the media file frequency table stored on the terminal is emptied every predetermined time, for example every other one. Empty for month.
由此,在终端开机后,会判断所获取的媒体文件频率表是否为空,如果不为空,则执行以下的操作。Therefore, after the terminal is powered on, it is determined whether the obtained media file frequency table is empty. If it is not empty, the following operations are performed.
第一获取模块102,用于若所述媒体文件频率表不为空,获取所述媒体文件频率表中字符的频率信息,根据所述频率信息获取预加载媒体文件;The first obtaining module 102 is configured to obtain frequency information of characters in the frequency table of the media file if the frequency of the media file is not empty, and obtain a preloaded media file according to the frequency information;
本实施例中,如果媒体文件频率表不为空,则可以获取到媒体文件频率表中的字符以及字符对应的频率,根据字符以及字符对应的频率可以计算媒体文件的在播放历史上的播放频率,然后获取播放频率高的媒体文件作为预加载媒体文件,该预加载媒体文件也就是用户近期在观看的媒体文件,或者是与用户近期在观看的媒体文件最相关的媒体文件,这些媒体文件最接近用户近期的观看兴趣所在,对用户最想观看的媒体文件进行准确的预计,故认为预加载媒体文件是用户最想观看的媒体文件。In this embodiment, if the media file frequency table is not empty, the characters in the media file frequency table and the frequency corresponding to the characters may be obtained, and the playing frequency of the media file in the playing history may be calculated according to the characters and the frequency corresponding to the characters. And then obtaining a media file with a high playing frequency as a preloaded media file, that is, a media file that the user is watching recently, or a media file most relevant to the media file that the user is watching recently, and the media files are the most Close to the user's recent viewing interest, the media file that the user wants to watch is accurately predicted, so the pre-loaded media file is considered to be the media file that the user wants to watch most.
具体地,媒体文件频率表中除了包含媒体文件的名称、该名称中对应的每一个字符以及每一个字符的频率外,还包含字符类型信息,标识该字符为汉字或者非汉字,其中,媒体文件频率表的表格中使用id、mdata、num,三个字段对应表示id、字符和字符对应的频率。Specifically, the media file frequency table includes, in addition to the name of the media file, each character corresponding to the name, and the frequency of each character, character type information, and the character is identified as a Chinese character or a non-Chinese character, wherein the media file The table of the frequency table uses id, mdata, and num, and the three fields correspond to the frequencies corresponding to the id, characters, and characters.
当获取到播放的媒体文件的名称中的字符时,判断媒体文件频率表中是否包含这些字符,如果包含,则一个字符对应的num在媒体文件频率表中的频率的基础上加1,两个相同的字符对应的num在媒体文件频率表中的频率的基础上加2,如果媒体文件频率表中不包含这些字符中的某一字符,则在媒体文件频率表中增加该字符,然后在其num置为1。When the characters in the name of the played media file are obtained, it is determined whether the characters in the media file frequency table include these characters, and if so, the num corresponding to one character is added to the frequency in the media file frequency table by one, two The num corresponding to the same character is added to the frequency of the media file frequency table by 2, and if the media file frequency table does not include one of the characters, the character is added to the media file frequency table, and then Num is set to 1.
以用户观看影片及电视剧等视频文件为例:Take video files such as videos and TV shows as examples:
当用户近期多次点击观看某个影片,则该影片名称包含的汉字的频率随着用户的点击观看的次数而增加,在终端下次开机时,终端会自动加载该影片的最新剧集,或者当该影片没有最新剧集时,用户极有可能会观看与该影片的名称相关的另一些影片,如用户在看完影片“长沙保卫战”后,可能还想观看类似的影片“战长沙”或者“长沙保卫战2”,因此,本实施例根据用户历史上点击观看过的影片的名称,分析影片的名称中的字符的频率,可以得到用户在将来时最有可能观看的影片,以这些影片作为终端开机后自动进行加载的预加载媒体文件。When the user clicks on a certain movie in the recent multiple times, the frequency of the Chinese characters included in the movie name increases with the number of times the user clicks to watch, and the terminal automatically loads the latest episode of the movie when the terminal is next turned on, or When the movie does not have the latest episode, the user is likely to watch other videos related to the name of the movie. For example, after watching the movie "Changsha Defend", the user may also want to watch a similar movie "War Changsha". Or "Changsha Defend 2", therefore, this embodiment analyzes the frequency of characters in the name of the movie according to the name of the movie that has been viewed in the history of the user, and can obtain the movie that the user is most likely to watch in the future, with these The movie is a preloaded media file that is automatically loaded after the terminal is powered on.
加载模块103,用于加载所述预加载媒体文件。The loading module 103 is configured to load the preloaded media file.
本实施例中,终端自动在后台加载分析媒体文件频率表后的到的预加载媒体文件,由于终端在开机时即自动加载预加载媒体文件,对用户最想观看的媒体文件进行准确的预计,这样,当用户点击已经加载的预加载媒体文件时,终端已不需要对其进行预加载,而是能够直接播放,用户不需要等待其预加载完成方可观看,提升用户体验。In this embodiment, the terminal automatically loads the pre-loaded media file after analyzing the media file frequency table in the background. Since the terminal automatically loads the pre-loaded media file when the terminal is turned on, the terminal accurately predicts the media file that the user wants to watch. In this way, when the user clicks on the preloaded media file that has been loaded, the terminal does not need to preload it, but can play directly, and the user does not need to wait for the preloading to complete the viewing, thereby improving the user experience.
与现有技术相比,本实施例在终端开机后,首先获取存储的媒体文件频率表,当媒体文件频率表不为空,可以从媒体文件频率表获取到用户近期观看的媒体文件的名称中的字符以及字符对应的频率,根据字符以及字符对应的频率可以得到预加载媒体文件,该预加载媒体文件也就是用户近期在观看的媒体文件,或者是与用户近期在观看的媒体文件最相关的媒体文件,这些媒体文件最接近用户近期的观看兴趣所在,即预加载媒体文件是用户最想观看的媒体文件,通过这种方式,能够对用户最想观看的媒体文件进行准确的预计,终端开机后不会盲目加载媒体文件,而是加载用户最想观看的媒体文件,这样,在用户点击观看这些预加载文件时,不需要用户等待其预加载完成方可观看,而是点击后即可直接观看,媒体文件的加载时间合理化、且加载具有目的性,能够大大提升用户体验。Compared with the prior art, in this embodiment, after the terminal is powered on, the stored media file frequency table is first obtained. When the media file frequency table is not empty, the media file frequency table may be obtained from the media file recently viewed by the user. The character and the frequency corresponding to the character, the preloaded media file can be obtained according to the character and the frequency corresponding to the character, and the preloaded media file is also the media file that the user is watching recently, or is most relevant to the media file that the user is watching recently. Media files, these media files are closest to the user's recent viewing interest, that is, the pre-loaded media files are the media files that the user wants to watch most. In this way, the media files that the user wants to watch most can be accurately predicted. After that, the media files will not be loaded blindly, but the media files that the user wants to watch will be loaded. Thus, when the user clicks to view these pre-loaded files, the user does not need to wait for the pre-loading to complete, but can click directly after clicking. Watch, media file loading time is rationalized, and loading has a purpose Can greatly enhance the user experience.
在第二实施例中,如图6所示,在上述图5的第一实施例的基础上,所述加载媒体文件的装置还包括:In the second embodiment, as shown in FIG. 6, on the basis of the first embodiment of FIG. 5, the apparatus for loading a media file further includes:
分解模块104,用于在所述终端播放媒体文件后,将所播放的媒体文件的名称分解为单个字符,计算所述单个字符的对应数量;The decomposition module 104 is configured to, after the terminal plays the media file, decompose the name of the played media file into a single character, and calculate a corresponding number of the single characters;
更新模块105,用于根据所述单个字符的对应数量对所述媒体文件频率表中字符的频率信息进行更新并存储。The updating module 105 is configured to update and store frequency information of characters in the media file frequency table according to the corresponding number of the single characters.
本实施例中,在终端加载完媒体文件后,用户点击进行播放,在终端播放媒体文件时,终端对所播放的媒体文件的名称分解为单个字符,然后判断媒体文件频率表中是否包含该字符,如果包含,则一个字符对应的num在媒体文件频率表中的频率的基础上加1,两个相同的字符对应的num在媒体文件频率表中的频率的基础上加2,如果媒体文件频率表中不包含这些字符中的某一字符,则在媒体文件频率表中增加该字符,然后在其num置为1。In this embodiment, after the terminal loads the media file, the user clicks to play, and when the terminal plays the media file, the terminal decomposes the name of the played media file into a single character, and then determines whether the character is included in the media file frequency table. If included, the num corresponding to one character is incremented by 1 on the basis of the frequency in the media file frequency table, and the num corresponding to the two identical characters is added to the frequency in the frequency table of the media file by 2, if the frequency of the media file If the table does not contain one of these characters, the character is added to the media file frequency table and then set to 1 in its num.
本实施例中,在将用户本次开机所播放所有媒体文件的名称分解为单个的字符,并根据单个字符的数量更新媒体文件频率表中的字符的频率后,将其进行存储,以便在下次开机时获取到最新的媒体文件频率表。In this embodiment, after the name of all the media files played by the user at this power-on is decomposed into a single character, and the frequency of the characters in the frequency table of the media file is updated according to the number of single characters, it is stored for the next time. Get the latest media file frequency table at boot time.
优选地,如图7所示,在上述图5的第一实施例的基础上,所述第一获取模块102包括:Preferably, as shown in FIG. 7, on the basis of the first embodiment of FIG. 5, the first obtaining module 102 includes:
计算单元1021,用于获取所述媒体文件频率表中的字符的频率信息,根据所述频率信息计算媒体文件的播放频率;The calculating unit 1021 is configured to acquire frequency information of characters in the media file frequency table, and calculate a playing frequency of the media file according to the frequency information;
获取单元1022,用于获取所述播放频率大于预设频率的媒体文件作为所述预加载媒体文件。The obtaining unit 1022 is configured to obtain, as the preloaded media file, a media file whose playing frequency is greater than a preset frequency.
本实施例中,获取媒体文件频率表中的字符以及字符对应的频率,根据字符以及字符对应的频率可以计算媒体文件的在播放历史上的播放频率,该播放频率能够表明对应的媒体文件在近期用户观看的频繁度。考虑到用户观看的媒体文件的数量会出现比较多的情况,因此本实施例只获取播放频率大于预设频率的媒体文件作为预加载媒体文件。In this embodiment, the characters in the frequency table of the media file and the frequency corresponding to the characters are obtained, and the playing frequency of the media file in the playing history can be calculated according to the characters and the frequency corresponding to the characters, and the playing frequency can indicate that the corresponding media file is in the near future. The frequency of user viewing. Considering that the number of media files viewed by the user may be relatively large, the embodiment only obtains a media file whose playback frequency is greater than the preset frequency as a preloaded media file.
另外,如果播放频率相同的两个媒体文件,可以优先获取最新的媒体文件作为预加载媒体文件。In addition, if two media files of the same frequency are played, the latest media file can be preferentially obtained as a preloaded media file.
在第三实施例中,如图8所示,在上述图5的第一实施例的基础上,所述加载媒体文件的装置还包括:In the third embodiment, as shown in FIG. 8, on the basis of the first embodiment of FIG. 5, the apparatus for loading a media file further includes:
添加模块106,用于将所述预加载媒体文件添加至终端上存储的加载列表中并保存;The adding module 106 is configured to add the preloaded media file to a loading list stored on the terminal and save the storage file;
第二获取模块107,用于若所述媒体文件频率表为空,获取所述终端上存储的所述加载列表,并获取所述加载列表中的媒体文件作为所述预加载媒体文件。The second obtaining module 107 is configured to acquire the loading list stored on the terminal, and obtain a media file in the loading list as the preloading media file, if the media file frequency table is empty.
本实施例中,在终端首次开机时,媒体文件频率表为空,则说明媒体文件频率表中的信息已经被清空。与图5的实施例不同的是,本实施例可以获取终端上存储的加载列表,该加载列表中存储有用户上一次开机时所加载的预加载媒体文件,因此,终端在获取到该加载列表后,可以获取到加载列表中的媒体文件的信息,根据这些信息得到相关的媒体文件作为预加载文件。In this embodiment, when the terminal is powered on for the first time, the media file frequency table is empty, indicating that the information in the media file frequency table has been cleared. Different from the embodiment of FIG. 5, the embodiment may obtain a loading list stored on the terminal, where the loading list stores a preloaded media file loaded by the user when the user last turned on, and therefore, the terminal obtains the loading list. After that, information about the media file in the loading list can be obtained, and the related media file is obtained as a preloaded file according to the information.
另外,如果终端是第一次开机,则终端上未存储有任何列表,即未存储有媒体文件频率表及加载列表,则直接加载热门媒体文件或者最新的媒体文件。In addition, if the terminal is powered on for the first time, no list is stored on the terminal, that is, the media file frequency table and the loading list are not stored, and the hot media file or the latest media file is directly loaded.
在一优选的实施例中,在上述图5的实施例的基础上,当体文件频率表不为空时,则获取媒体文件频率表中字符的频率信息的同时,还可以进一步获取加载列表中的媒体文件,优先以加载列表中的媒体文件为基础,来分析媒体文件频率表中字符的频率信息,这样可以加速分析的速度,从而能够快速获取到预加载媒体文件。In a preferred embodiment, on the basis of the foregoing embodiment of FIG. 5, when the body file frequency table is not empty, the frequency information of the characters in the media file frequency table is obtained, and the loading list may be further obtained. The media file, based on the media file in the load list, is used to analyze the frequency information of the characters in the media file frequency table, so that the speed of the analysis can be accelerated, so that the preloaded media file can be quickly obtained.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。 The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.

Claims (18)

  1. 一种预加载媒体文件的方法,其特征在于,所述预加载媒体文件的方法包括以下步骤: A method for preloading a media file, characterized in that the method for preloading a media file comprises the following steps:
    当终端开机后,获取所述终端上存储的媒体文件频率表,判断所述媒体文件频率表是否为空;After the terminal is powered on, obtaining a media file frequency table stored on the terminal, and determining whether the media file frequency table is empty;
    若所述媒体文件频率表不为空,获取所述媒体文件频率表中字符的频率信息,根据所述频率信息获取预加载媒体文件;If the media file frequency table is not empty, obtaining frequency information of characters in the media file frequency table, and acquiring a preloaded media file according to the frequency information;
    加载所述预加载媒体文件。Loading the preloaded media file.
  2. 如权利要求1所述的预加载媒体文件的方法,其特征在于,所述加载所述预加载媒体文件的步骤之后还包括:The method of preloading a media file according to claim 1, wherein the step of loading the preloaded media file further comprises:
    在所述终端播放媒体文件后,将所播放的媒体文件的名称分解为单个字符,计算所述单个字符的对应数量;After the media file is played by the terminal, the name of the played media file is decomposed into a single character, and the corresponding number of the single characters is calculated;
    根据所述单个字符的对应数量对所述媒体文件频率表中字符的频率信息进行更新并存储。The frequency information of the characters in the media file frequency table is updated and stored according to the corresponding number of the single characters.
  3. 如权利要求1所述的预加载媒体文件的方法,其特征在于,所述若所述媒体文件频率表不为空,获取所述媒体文件频率表中的字符的频率信息,根据所述频率信息获取预加载媒体文件的步骤包括:The method of preloading a media file according to claim 1, wherein if the media file frequency table is not empty, obtaining frequency information of characters in the media file frequency table, according to the frequency information The steps to get a preloaded media file include:
    获取所述媒体文件频率表中的字符的频率信息,根据所述频率信息计算媒体文件的播放频率;Obtaining frequency information of characters in the media file frequency table, and calculating a playing frequency of the media file according to the frequency information;
    获取所述播放频率大于预设频率的媒体文件作为所述预加载媒体文件。Obtaining, as the preloaded media file, a media file whose playing frequency is greater than a preset frequency.
  4. 如权利要求2所述的预加载媒体文件的方法,其特征在于,所述若所述媒体文件频率表不为空,获取所述媒体文件频率表中的字符的频率信息,根据所述频率信息获取预加载媒体文件的步骤包括:The method of preloading a media file according to claim 2, wherein if the media file frequency table is not empty, obtaining frequency information of characters in the media file frequency table, according to the frequency information The steps to get a preloaded media file include:
    获取所述媒体文件频率表中的字符的频率信息,根据所述频率信息计算媒体文件的播放频率;Obtaining frequency information of characters in the media file frequency table, and calculating a playing frequency of the media file according to the frequency information;
    获取所述播放频率大于预设频率的媒体文件作为所述预加载媒体文件。Obtaining, as the preloaded media file, a media file whose playing frequency is greater than a preset frequency.
  5. 如权利要求3所述的预加载媒体文件的方法,其特征在于,所述若所述媒体文件频率表不为空,获取所述媒体文件频率表中的字符的频率信息,根据所述频率信息获取预加载媒体文件的步骤还包括:The method of preloading a media file according to claim 3, wherein if the media file frequency table is not empty, obtaining frequency information of characters in the media file frequency table, according to the frequency information The steps to get a preloaded media file also include:
    若播放频率相同的两个媒体文件,则获取最新的媒体文件作为预加载媒体文件。If two media files of the same frequency are played, the latest media file is obtained as a preloaded media file.
  6. 如权利要求4所述的预加载媒体文件的方法,其特征在于,所述若所述媒体文件频率表不为空,获取所述媒体文件频率表中的字符的频率信息,根据所述频率信息获取预加载媒体文件的步骤还包括:The method of preloading a media file according to claim 4, wherein if the media file frequency table is not empty, obtaining frequency information of characters in the media file frequency table, according to the frequency information The steps to get a preloaded media file also include:
    若播放频率相同的两个媒体文件,则获取最新的媒体文件作为预加载媒体文件。If two media files of the same frequency are played, the latest media file is obtained as a preloaded media file.
  7. 如权利要求1所述的预加载媒体文件的方法,其特征在于,所述加载所述预加载媒体文件的步骤之前包括:The method of preloading a media file according to claim 1, wherein the step of loading the preloaded media file comprises:
    将所述预加载媒体文件添加至终端上存储的加载列表中并保存;Adding the preloaded media file to a load list stored on the terminal and saving the file;
    所述当终端开机后,获取所述终端上存储的媒体文件频率表,判断所述媒体文件频率表是否为空的步骤之后包括:After the terminal is powered on, obtaining the media file frequency table stored on the terminal, and determining whether the media file frequency table is empty, the step includes:
    若所述媒体文件频率表为空,获取所述终端上存储的所述加载列表,并获取所述加载列表中的媒体文件作为所述预加载媒体文件。If the media file frequency table is empty, the loading list stored on the terminal is obtained, and the media file in the loading list is obtained as the preloaded media file.
  8. 如权利要求7所述的预加载媒体文件的方法,其特征在于,所述若所述媒体文件频率表不为空,获取所述媒体文件频率表中字符的频率信息,根据所述频率信息获取预加载媒体文件的步骤包括:The method of preloading a media file according to claim 7, wherein if the media file frequency table is not empty, the frequency information of the characters in the frequency table of the media file is obtained, and the frequency information is obtained according to the frequency information. The steps to preload the media file include:
    若所述媒体文件频率表不为空,获取所述媒体文件频率表中字符的频率信息、获取所述加载列表中的媒体文件,根据所述频率信息及所述加载列表中的媒体文件获取所述预加载媒体文件。If the frequency of the media file is not empty, obtain the frequency information of the characters in the frequency table of the media file, obtain the media file in the loading list, and obtain the location according to the frequency information and the media file in the loading list. Preload the media file.
  9. 如权利要求1所述的预加载媒体文件的方法,其特征在于,所述媒体文件频率表中包含媒体文件的名称、该名称中对应的每一个字符、每一个字符的频率和字符类型信息。 The method of preloading a media file according to claim 1, wherein the media file frequency table includes a name of the media file, a corresponding character in the name, a frequency of each character, and character type information.
  10. 一种加载媒体文件的装置,其特征在于,所述加载媒体文件的装置包括:An apparatus for loading a media file, the apparatus for loading a media file includes:
    判断模块,用于当终端开机后,获取所述终端上存储的媒体文件频率表,判断所述媒体文件频率表是否为空;a judging module, configured to obtain a media file frequency table stored on the terminal after the terminal is powered on, and determine whether the media file frequency table is empty;
    第一获取模块,用于若所述媒体文件频率表不为空,获取所述媒体文件频率表中字符的频率信息,根据所述频率信息获取预加载媒体文件;a first acquiring module, configured to acquire frequency information of characters in the frequency table of the media file if the frequency of the media file is not empty, and obtain a preloaded media file according to the frequency information;
    加载模块,用于加载所述预加载媒体文件。Loading a module for loading the preloaded media file.
  11. 如权利要求10所述的加载媒体文件的装置,其特征在于,所述加载媒体文件的装置还包括:The device for loading a media file according to claim 10, wherein the device for loading a media file further comprises:
    分解模块,用于在所述终端播放媒体文件后,将所播放的媒体文件的名称分解为单个字符,计算所述单个字符的对应数量;a decomposition module, configured to: after the media file is played by the terminal, decompose the name of the played media file into a single character, and calculate a corresponding number of the single characters;
    更新模块,用于根据所述单个字符的对应数量对所述媒体文件频率表中字符的频率信息进行更新并存储。And an update module, configured to update and store frequency information of characters in the media file frequency table according to the corresponding number of the single characters.
  12. 如权利要求10所述的加载媒体文件的装置,其特征在于,所述第一获取模块包括:The apparatus for loading a media file according to claim 10, wherein the first obtaining module comprises:
    计算单元,用于获取所述媒体文件频率表中的字符的频率信息,根据所述频率信息计算媒体文件的播放频率;a calculating unit, configured to acquire frequency information of a character in the frequency table of the media file, and calculate a playing frequency of the media file according to the frequency information;
    获取单元,用于获取所述播放频率大于预设频率的媒体文件作为所述预加载媒体文件。And an obtaining unit, configured to acquire the media file whose playing frequency is greater than a preset frequency as the preloaded media file.
  13. 如权利要求11所述的加载媒体文件的装置,其特征在于,所述第一获取模块包括:The apparatus for loading a media file according to claim 11, wherein the first obtaining module comprises:
    计算单元,用于获取所述媒体文件频率表中的字符的频率信息,根据所述频率信息计算媒体文件的播放频率;a calculating unit, configured to acquire frequency information of a character in the frequency table of the media file, and calculate a playing frequency of the media file according to the frequency information;
    获取单元,用于获取所述播放频率大于预设频率的媒体文件作为所述预加载媒体文件。And an obtaining unit, configured to acquire the media file whose playing frequency is greater than a preset frequency as the preloaded media file.
  14. 如权利要求12所述的加载媒体文件的装置,其特征在于,若播放频率相同的两个媒体文件,所述获取单元还用于获取最新的媒体文件作为预加载媒体文件。The device for loading a media file according to claim 12, wherein if the two media files having the same frequency are played, the obtaining unit is further configured to acquire the latest media file as the preloaded media file.
  15. 如权利要求13所述的加载媒体文件的装置,其特征在于,若播放频率相同的两个媒体文件,所述获取单元还用于获取最新的媒体文件作为预加载媒体文件。The device for loading a media file according to claim 13, wherein the acquiring unit is further configured to acquire the latest media file as a preloaded media file if two media files of the same frequency are played.
  16. 如权利要求10所述的加载媒体文件的装置,其特征在于,所述加载媒体文件的装置还包括:The device for loading a media file according to claim 10, wherein the device for loading a media file further comprises:
    添加模块,用于将所述预加载媒体文件添加至终端上存储的加载列表中并保存;Adding a module, configured to add the preloaded media file to a load list stored on the terminal and save the file;
    第二获取模块,用于若所述媒体文件频率表为空,获取所述终端上存储的所述加载列表,并获取所述加载列表中的媒体文件作为所述预加载媒体文件。And a second obtaining module, configured to acquire the loading list stored on the terminal, and obtain a media file in the loading list as the preloading media file, if the media file frequency table is empty.
  17. 如权利要求16所述的加载媒体文件的装置,其特征在于,所述第一获取模块具体用于若所述媒体文件频率表不为空,获取所述媒体文件频率表中字符的频率信息、获取所述加载列表中的媒体文件,根据所述频率信息及所述加载列表中的媒体文件获取所述预加载媒体文件。The device for loading a media file according to claim 16, wherein the first obtaining module is configured to: if the media file frequency table is not empty, acquire frequency information of characters in the frequency table of the media file, Obtaining the media file in the loading list, and acquiring the preloaded media file according to the frequency information and the media file in the loading list.
  18. 如权利要求10所述的加载媒体文件的装置,其特征在于,所述媒体文件频率表中包含媒体文件的名称、该名称中对应的每一个字符、每一个字符的频率和字符类型信息。The apparatus for loading a media file according to claim 10, wherein the media file frequency table includes a name of the media file, a corresponding character in the name, a frequency of each character, and character type information.
PCT/CN2015/090391 2015-05-29 2015-09-23 Method and device for pre-loading media file WO2016192253A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510288955.6A CN105677381B (en) 2015-05-29 2015-05-29 Preload the method and device of media file
CN201510288955.6 2015-05-29

Publications (1)

Publication Number Publication Date
WO2016192253A1 true WO2016192253A1 (en) 2016-12-08

Family

ID=56946817

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/090391 WO2016192253A1 (en) 2015-05-29 2015-09-23 Method and device for pre-loading media file

Country Status (2)

Country Link
CN (1) CN105677381B (en)
WO (1) WO2016192253A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113569150A (en) * 2021-08-10 2021-10-29 北京字节跳动网络技术有限公司 Media content preloading method, model construction method and related equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109189956B (en) * 2018-08-10 2021-11-02 北京微播视界科技有限公司 Information processing method, information processing device, electronic equipment and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070206247A1 (en) * 2006-03-01 2007-09-06 Intouch Group, Inc. System, apparatus, and method for managing preloaded digital files for preview on a digital media playback apparatus
CN101777028A (en) * 2010-01-21 2010-07-14 北京北大众志微***科技有限责任公司 Realization method and device of mixed secondary storage system
CN102446222A (en) * 2011-12-22 2012-05-09 华为技术有限公司 Method, device and system of webpage content preloading
CN102750174A (en) * 2012-06-29 2012-10-24 Tcl集团股份有限公司 Method and device for loading file
CN103488495A (en) * 2013-08-13 2014-01-01 广东欧珀移动通信有限公司 Method for accelerating startup by dynamically adjusting startup preloaded resources

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2579165B1 (en) * 2010-05-28 2018-08-29 Fujitsu Limited Information generation program, device, method, and information retrieval program, device, method
TWI513286B (en) * 2012-08-28 2015-12-11 Ind Tech Res Inst Method and system for continuous video replay
CN103744905B (en) * 2013-12-25 2018-03-30 新浪网技术(中国)有限公司 Method for judging rubbish mail and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070206247A1 (en) * 2006-03-01 2007-09-06 Intouch Group, Inc. System, apparatus, and method for managing preloaded digital files for preview on a digital media playback apparatus
CN101777028A (en) * 2010-01-21 2010-07-14 北京北大众志微***科技有限责任公司 Realization method and device of mixed secondary storage system
CN102446222A (en) * 2011-12-22 2012-05-09 华为技术有限公司 Method, device and system of webpage content preloading
CN102750174A (en) * 2012-06-29 2012-10-24 Tcl集团股份有限公司 Method and device for loading file
CN103488495A (en) * 2013-08-13 2014-01-01 广东欧珀移动通信有限公司 Method for accelerating startup by dynamically adjusting startup preloaded resources

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113569150A (en) * 2021-08-10 2021-10-29 北京字节跳动网络技术有限公司 Media content preloading method, model construction method and related equipment
CN113569150B (en) * 2021-08-10 2024-04-19 北京字节跳动网络技术有限公司 Media content preloading method, model building method and related equipment

Also Published As

Publication number Publication date
CN105677381B (en) 2019-07-12
CN105677381A (en) 2016-06-15

Similar Documents

Publication Publication Date Title
WO2018018681A1 (en) Video programme previewing method and device
WO2019119771A1 (en) Voice interaction method, device and computer readable storage medium
WO2017041538A1 (en) Terminal user interface controlled display method and device
WO2016192254A1 (en) Method and device for online playback of network video
WO2016091011A1 (en) Subtitle switching method and device
WO2017063368A1 (en) Method and device for intercutting video advertisement
WO2017190450A1 (en) Process closing method and apparatus
WO2018036057A1 (en) Method and device for background adaptive upgrading of software
WO2016165556A1 (en) Data processing method, device and system for video stream
WO2017063366A1 (en) Method and system for starting application
WO2017107378A1 (en) Accelerated video data downloading method and device based on hls stream media
WO2015058570A1 (en) Method and device for automatically recognizing network operator to realize data configuration
WO2015144089A1 (en) Application recommending method and apparatus
WO2018126888A1 (en) Method and apparatus for configuring a shortcut for a television function
WO2018053963A1 (en) Method and apparatus for upgrading system of smart television
WO2012028079A1 (en) Method and device for importing backup data of mobile terminal
WO2017121066A1 (en) Application program display method and system
WO2017059686A1 (en) Desktop displaying method and device
WO2017084305A1 (en) Terminal control method and system
WO2017020649A1 (en) Audio/video playback control method and device thereof
WO2014048239A1 (en) Smart television playing method and smart television
WO2017036208A1 (en) Method and system for extracting information in display interface
WO2019051897A1 (en) Terminal operating parameter adjustment method and device, and computer readable storage medium
WO2018121026A1 (en) Method and system for configuring set-top box
WO2016192253A1 (en) Method and device for pre-loading media file

Legal Events

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

Ref document number: 15893905

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 18.04.2018)

122 Ep: pct application non-entry in european phase

Ref document number: 15893905

Country of ref document: EP

Kind code of ref document: A1