[go: up one dir, main page]

HK1232034B - Method and apparatus for outputting data, and computer-readable storage medium - Google Patents

Method and apparatus for outputting data, and computer-readable storage medium Download PDF

Info

Publication number
HK1232034B
HK1232034B HK17105455.8A HK17105455A HK1232034B HK 1232034 B HK1232034 B HK 1232034B HK 17105455 A HK17105455 A HK 17105455A HK 1232034 B HK1232034 B HK 1232034B
Authority
HK
Hong Kong
Prior art keywords
historical
media data
download
output
client
Prior art date
Application number
HK17105455.8A
Other languages
Chinese (zh)
Other versions
HK1232034A1 (en
HK1232034A (en
Inventor
傅鸿城
梁柱
周国金
Original Assignee
腾讯科技(深圳)有限公司
Filing date
Publication date
Application filed by 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of HK1232034A1 publication Critical patent/HK1232034A1/en
Publication of HK1232034A publication Critical patent/HK1232034A/en
Publication of HK1232034B publication Critical patent/HK1232034B/en

Links

Description

一种数据输出方法、装置及计算机可读取存储介质Data output method, device and computer-readable storage medium

技术领域Technical Field

本发明涉及通信技术领域,具体涉及一种数据输出方法及装置。The present invention relates to the field of communication technology, and in particular to a data output method and device.

背景技术Background Art

随着通信技术的发展,各种客户端应运而生,例如各种音乐客户端、视频客户端,用户可以利用自己的通信账号在各种平台的客户端登录后实现各种操作,例如用户可以利用自己的通信账号在手机的音乐客户端下载音频,也可以利用自己的通信账号在个人电脑的音乐客户端下载音频。但是现有技术中,用户在某一个平台的客户端利用该通信账号下载音视频后,在其它平台的客户端上无法看到该通信账号的历史下载媒体数据。With the development of communication technology, various client applications have emerged, such as various music and video clients. Users can use their communication accounts to log in to the client applications on various platforms and perform various operations. For example, users can use their communication accounts to download audio from mobile music clients or from personal computer music clients. However, in the prior art, after a user downloads audio or video using a communication account on a client application on a certain platform, the user cannot view the media data downloaded by the communication account on clients on other platforms.

发明内容Summary of the Invention

本发明实施例提供一种数据输出方法及装置,可实现通信账号在不同平台的客户端登录后即可输出与该通信账号关联的历史下载媒体数据,方便用户使用,实用性强。The embodiments of the present invention provide a data output method and device, which can realize outputting historical downloaded media data associated with a communication account after the communication account is logged in to a client on different platforms, which is convenient for users to use and has strong practicality.

本发明第一方面提供一种数据输出方法,可包括:A first aspect of the present invention provides a data output method, which may include:

当通信账号在客户端登录后,接收所述客户端发送的媒体数据获取请求,所述获取请求携带所述通信账号;After the communication account is logged in on the client, a media data acquisition request sent by the client is received, wherein the acquisition request carries the communication account;

根据所述获取请求,获取与所述通信账号关联的待输出的历史下载媒体数据;Acquire, according to the acquisition request, historical downloaded media data to be outputted and associated with the communication account;

将所述待输出的历史下载媒体数据返回至所述客户端进行输出。The historical downloaded media data to be output is returned to the client for output.

本发明第二方面提供一种数据输出装置,可包括:A second aspect of the present invention provides a data output device, which may include:

接收模块,用于当通信账号在客户端登录后,接收所述客户端发送的媒体数据获取请求,所述获取请求携带所述通信账号;a receiving module, configured to receive a media data acquisition request sent by a client after the communication account is logged in on the client, wherein the acquisition request carries the communication account;

获取模块,用于根据所述获取请求,获取与所述通信账号关联的待输出的历史下载媒体数据;an acquisition module, configured to acquire, according to the acquisition request, historical downloaded media data to be outputted and associated with the communication account;

返回模块,用于将所述待输出的历史下载媒体数据返回至所述客户端进行输出。The returning module is used to return the historical downloaded media data to be output to the client for output.

实施本发明实施例,具有如下有益效果:The implementation of the embodiments of the present invention has the following beneficial effects:

本发明实施例,当通信账号在客户端登录后,接收客户端发送的媒体数据获取请求,该获取请求携带该通信账号,根据获取请求,获取与通信账号关联的待输出的历史下载媒体数据,将所获取的待输出的历史下载媒体数据返回至客户端进行输出,这种方式可实现通信账号在不同平台的客户端登录后即可输出与该通信账号关联的历史下载媒体数据,方便用户使用,实用性强。In an embodiment of the present invention, after a communication account logs in to a client, a media data acquisition request sent by the client is received, the acquisition request carries the communication account, and according to the acquisition request, historical downloaded media data to be outputted associated with the communication account is acquired, and the acquired historical downloaded media data to be outputted is returned to the client for output. This method enables the communication account to output historical downloaded media data associated with the communication account after logging in to a client on different platforms, which is convenient for users to use and has strong practicality.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

图1为本发明实施例提供的一种数据输出方法的流程图;FIG1 is a flow chart of a data output method provided by an embodiment of the present invention;

图2为本发明实施例提供的另一种数据输出方法的流程图;FIG2 is a flow chart of another data output method provided by an embodiment of the present invention;

图3为本发明实施例提供的又一种数据输出方法的流程图;FIG3 is a flow chart of another data output method provided by an embodiment of the present invention;

图4为本发明实施例提供的一种终端显示界面示意图;FIG4 is a schematic diagram of a terminal display interface provided by an embodiment of the present invention;

图5为本发明实施例提供的一种数据输出系统框架图;FIG5 is a framework diagram of a data output system provided by an embodiment of the present invention;

图6为本发明实施例提供的一种数据输出装置的结构示意图;FIG6 is a schematic structural diagram of a data output device provided by an embodiment of the present invention;

图7为本发明实施例提供的一种获取模块的结构示意图。FIG7 is a schematic structural diagram of an acquisition module provided by an embodiment of the present invention.

具体实施方式DETAILED DESCRIPTION

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.

下面将结合附图1-附图4,对本发明实施例提供的数据输出方法进行详细介绍。The data output method provided by the embodiment of the present invention will be described in detail below with reference to Figures 1 to 4 .

请参照图1,为本发明实施例提供的一种数据输出方法的流程图;该方法可包括以下步骤S100-步骤S102。Please refer to FIG. 1 , which is a flow chart of a data output method provided by an embodiment of the present invention; the method may include the following steps S100 to S102 .

S100,当通信账号在客户端登录后,接收所述客户端发送的媒体数据获取请求,所述获取请求携带所述通信账号;S100, after a communication account is logged in to a client, receiving a media data acquisition request sent by the client, the acquisition request carrying the communication account;

具体实施例中,客户端可以为媒体客户端,例如各种音乐客户端、视频客户端;各种终端在安装了客户端后,用户可以使用自己的通信账号在客户端自由的下载各种多媒体文件,例如音视频文件等等,为了使得用户在各种终端登录通信账号后都可以看到历史下载的多媒体文件的媒体数据,当通信账号在客户端登录后,客户端即向服务器发送媒体数据获取请求,该获取请求中携带通信账号。可选的,客户端向服务器发送获取请求可以是通过公共网关接口 (Common Gateway Interface,CGI)发送,服务器可以是网页Web服务器,如图5所示,即是客户端向Web服务器发送媒体数据获取请求;CGI是外部应用程序与Web服务器之间的接口标准,是在外部应用程序和Web服务器之间传递信息的规程。In a specific embodiment, the client can be a media client, such as various music clients or video clients. After installing the client on various terminals, users can freely download various multimedia files, such as audio and video files, from the client using their communication accounts. To ensure that users can view the media data of previously downloaded multimedia files after logging into their communication accounts on various terminals, once the communication account is logged into the client, the client sends a media data acquisition request to the server, which carries the communication account. Optionally, the client can send the acquisition request to the server via a Common Gateway Interface (CGI), and the server can be a web server. As shown in FIG5 , the client sends the media data acquisition request to the web server. CGI is an interface standard between external applications and web servers, and is a procedure for transmitting information between external applications and web servers.

本发明实施例中,媒体数据可以为多媒体文件的名称、作者、创作时间、多媒体文件的音视频数据等等。此处通信账号所登录的客户端不分终端平台,只要通信账号在终端平台的客户端登录后,即发送媒体数据获取请求用于获取历史下载媒体数据。In the embodiment of the present invention, the media data may be the name, author, creation time, audio and video data of the multimedia file, etc. The client that the communication account logs into is not limited to the terminal platform. As long as the communication account logs into the client on the terminal platform, a media data acquisition request is sent to obtain historically downloaded media data.

S101,根据所述获取请求,获取与所述通信账号关联的待输出的历史下载媒体数据;S101, acquiring historical downloaded media data to be outputted and associated with the communication account according to the acquisition request;

具体实施例中,服务器根据客户端发送的获取请求,解析出获取请求中所携带的通信账号,获取与该通信账号关联的待输出的历史下载媒体数据,与该通信账号关联的待输出的历史下载媒体数据为该通信账号在各个终端平台历史下载的多媒体文件的媒体数据,多媒体文件的媒体数据可以为该多媒体文件的属性信息,例如若多媒体文件为歌曲,则媒体数据可以包括歌曲名称,歌曲专辑以及歌词等等。如图4所示,该客户端所展示的即是该通信账号历史下载的各个歌曲的名称以及歌曲的演唱者。In a specific embodiment, the server parses the communication account carried in the acquisition request sent by the client and obtains the historical downloaded media data associated with the communication account to be output. The historical downloaded media data associated with the communication account to be output is the media data of multimedia files historically downloaded by the communication account on various terminal platforms. The media data of the multimedia files can be attribute information of the multimedia files. For example, if the multimedia file is a song, the media data may include the song title, song album, and lyrics. As shown in Figure 4, the client displays the titles and artists of each song historically downloaded by the communication account.

本发明实施例中,待输出的历史下载媒体数据可以是该账号关联的下载历史的所有多媒体文件的媒体数据,也可以是该通信账号关联的下载历史的一部分多媒体文件的媒体数据。例如,若需要输出的历史下载媒体数据为历史下载歌曲的媒体数据,则待输出的历史下载媒体数据可以是该通信账号历史下载的所有歌曲的名称和演唱者,也可以是该通信账号历史下载的一部分歌曲的歌曲名称和演唱者。In an embodiment of the present invention, the historical downloaded media data to be output can be the media data of all multimedia files in the download history associated with the account, or the media data of a portion of multimedia files in the download history associated with the communication account. For example, if the historical downloaded media data to be output is the media data of historically downloaded songs, the historical downloaded media data to be output can be the titles and artists of all songs downloaded by the communication account, or the titles and artists of a portion of songs downloaded by the communication account.

可选的,若客户端是通过CGI向服务器发送媒体数据获取请求,则CGI从云分布式存储(Cloud Key Value,CKV)获取该通信账号所关联的待输出的历史下载媒体数据。历史下载媒体数据可以是通过应用层协议进行封装,则获取该通信账号所关联的待输出的历史下载媒体数据时,即是将通过应用层协议封装的历史下载媒体数据进行解码,获得每次历史下载的具体媒体数据,再将所请求的待输出的历史下载媒体数据返回至客户端。Optionally, if the client sends a media data acquisition request to the server via CGI, CGI retrieves the historical downloaded media data to be output associated with the communication account from the cloud distributed storage (Cloud Key Value, CKV). The historical downloaded media data may be encapsulated via an application layer protocol. When obtaining the historical downloaded media data to be output associated with the communication account, the historical downloaded media data encapsulated via the application layer protocol is decoded to obtain the specific media data for each historical download, and the requested historical downloaded media data to be output is then returned to the client.

S102,将所述待输出的历史下载媒体数据返回至所述客户端进行输出。S102: Return the historical downloaded media data to be output to the client for output.

具体实施例中,服务器将所获取的待输出的历史下载媒体数据返回至客户端进行输出,具体的输出方式可以是根据历史下载媒体数据的存在形式进行确定,例如,若历史下载媒体数据为多媒体文件的属性信息(歌曲名称以及演唱者),则客户端显示历史下载媒体数据。若历史下载媒体数据为多媒体文件的音视频数据,则客户端播放该历史下载媒体数据。采用这种方式,可以将该通信账号所关联的,用户在不同终端平台所下载的多媒体文件的历史下载媒体数据进行输出,从而让用户快速获知该通信账号的下载历史,从而可以进一步对下载历史的多媒体数据进行操作,例如,再次下载、分享、收藏、播放等等。In a specific embodiment, the server returns the acquired historical downloaded media data to be output to the client for output. The specific output method can be determined based on the existence form of the historical downloaded media data. For example, if the historical downloaded media data is attribute information of a multimedia file (song title and singer), the client displays the historical downloaded media data. If the historical downloaded media data is audio or video data of the multimedia file, the client plays the historical downloaded media data. In this way, the historical downloaded media data of multimedia files downloaded by the user on different terminal platforms associated with the communication account can be output, allowing the user to quickly learn the download history of the communication account and further operate the multimedia data in the download history, such as re-downloading, sharing, collecting, playing, etc.

需要说明的是,客户端在对历史下载媒体数据进行输出时,可以是以分页机制进行输出。例如,若待输出的历史下载媒体数据为多个歌曲的歌曲信息,则可以以分页显示歌曲信息,终端屏幕可以展示一页中多个歌曲的歌曲信息。It should be noted that when the client outputs the historical downloaded media data, it can be output in a paging mechanism. For example, if the historical downloaded media data to be output is song information of multiple songs, the song information can be displayed in pages, and the terminal screen can display the song information of multiple songs on one page.

本发明实施例,当通信账号在客户端登录后,接收客户端发送的媒体数据获取请求,该获取请求携带该通信账号,根据获取请求,获取与通信账号关联的待输出的历史下载媒体数据,将所获取的待输出的历史下载媒体数据返回至客户端进行输出,这种方式可实现通信账号在不同平台的客户端登录后即可输出与该通信账号关联的历史下载媒体数据,方便用户使用,实用性强。In an embodiment of the present invention, after a communication account logs in to a client, a media data acquisition request sent by the client is received, the acquisition request carries the communication account, and according to the acquisition request, historical downloaded media data to be outputted associated with the communication account is acquired, and the acquired historical downloaded media data to be outputted is returned to the client for output. This method enables the communication account to output historical downloaded media data associated with the communication account after logging in to a client on different platforms, which is convenient for users to use and has strong practicality.

请参照图2,为本发明实施例提供的一种数据输出方法的流程图;该方法可包括以下步骤S200-步骤S203。Please refer to FIG. 2 , which is a flow chart of a data output method provided by an embodiment of the present invention; the method may include the following steps S200 to S203 .

S200,当通信账号在客户端登录后,接收所述客户端发送的媒体数据获取请求,所述获取请求携带所述通信账号;S200, after a communication account is logged in on a client, receiving a media data acquisition request sent by the client, the acquisition request carrying the communication account;

本发明实施例步骤S200请参照图1的实施例步骤S100,在此不再赘述。Please refer to step S100 of the embodiment of FIG. 1 for step S200 of the embodiment of the present invention, and will not be described in detail here.

S201,从存储系统中读取所述通信账号对应的历史下载列表中的所述多个历史下载记录中每个历史下载记录的数据标识所标识的历史下载媒体数据。S201 : Reading historical downloaded media data identified by a data identifier of each historical download record in the plurality of historical download records in the historical download list corresponding to the communication account from a storage system.

具体实施例中,当用户在终端的客户端通过自己的通信账号下载音视频文件后,客户端即将该通信账号和该音视频文件的数据标识传递给服务器的后台服务程序,如图5所示,即是将通信账号和数据标识传递给Web服务器的后台 server。可选的,客户端可以通过CGI将该通信账号和该数据标识传递后台服务程序。服务器的后台服务程序server将该数据标识添加至该通信账号关联的历史下载列表中,该历史下载列表中存储该通信账号的所有历史下载记录,一个历史下载记录包括两个字段,一个字段存储所下载的音视频文件的数据标识(例如歌曲标识),另一个字段存储下载时间。利用该通信账号每进行一次下载即产生一个历史下载记录。如图5所示,该通信账号关联的历史下载列表存储在CKV 里面,在CKV里面进行下载列表存储,存储了各个通信账号所关联的历史下载列表,目前在CKV里面控制每个通信账号的历史下载列表中最多存储一万条历史下载记录,当超过一万条历史下载记录时,会把离当前时刻最远的历史下载记录迁移存储至Tlist,Tlist是腾讯云平台提供的一个组件。是一种通用列表存储系统,提供灵活的列表操作接口(排序、分类过滤),可无限支持列表长度,提供自建索引等列表应用外围功能。In a specific embodiment, after a user downloads an audio or video file through their communication account on a terminal client, the client transmits the communication account and the data identifier of the audio or video file to the server's backend service program. As shown in FIG5 , this means that the communication account and data identifier are transmitted to the web server's backend server. Alternatively, the client can transmit the communication account and data identifier to the backend service program via CGI. The server's backend service program adds the data identifier to a historical download list associated with the communication account. This historical download list stores all historical download records for the communication account. A historical download record includes two fields: one field stores the data identifier of the downloaded audio or video file (e.g., a song ID), and the other field stores the download time. Each download performed using the communication account generates a historical download record. As shown in Figure 5, the download history list associated with each communication account is stored in CKV. CKV stores the download history list associated with each communication account. Currently, CKV stores a maximum of 10,000 download history records per communication account. When the number of download history records exceeds 10,000, the most recent download history records are migrated to Tlist, a component provided by the Tencent Cloud platform. Tlist is a general-purpose list storage system that provides flexible list operation interfaces (such as sorting, classification, and filtering), supports unlimited list length, and offers list application peripherals such as custom indexing.

可选的,各个通信账号所关联的历史下载列表可以通过应用层协议进行封装,当需要获取该通信账号所关联的待输出的历史下载媒体数据时,首先将利用应用层协议封装的该通信账号所关联的历史下载列表进行解码,获得历史下载列表的具体信息,从而进一步获取待输出的历史下载媒体数据。Optionally, the historical download list associated with each communication account can be encapsulated through the application layer protocol. When it is necessary to obtain the historical downloaded media data to be output associated with the communication account, the historical download list associated with the communication account encapsulated by the application layer protocol is first decoded to obtain specific information of the historical download list, thereby further obtaining the historical downloaded media data to be output.

本发明实施例中,在服务器的存储系统中存储了各种音视频文件的历史下载媒体数据,如图5所示,存储系统中存储了各种歌曲信息,歌曲信息应用程序server根据数据标识从存储系统中获取相应的歌曲信息。通常采用音视频文件的数据标识来标识存储系统中该音视频文件的历史下载媒体数据。因此只要获得数据标识即可从服务器的存储系统中获得历史下载媒体数据,即是通过 CKV里面所存储的历史下载列表中的数据标识即可从服务器的存储系统中获得该数据标识所标识的历史下载媒体数据。用户可以从历史下载媒体数据获知历史下载的音视频文件的相关信息。In an embodiment of the present invention, the server's storage system stores historically downloaded media data for various audio and video files. As shown in FIG5 , the storage system stores various song information, and the song information application server retrieves the corresponding song information from the storage system based on the data identifier. The data identifier of an audio or video file is typically used to identify the historically downloaded media data for that audio or video file in the storage system. Therefore, simply obtaining the data identifier allows the historically downloaded media data to be obtained from the server's storage system. Specifically, the historically downloaded media data identified by the data identifier in the historical download list stored in the CKV can be retrieved from the server's storage system. Users can obtain relevant information about the historically downloaded audio or video files from the historically downloaded media data.

可选的,若所述待输出的历史下载媒体数据包括所述历史下载列表中所有历史下载记录的数据标识所标识的历史下载媒体数据;Optionally, if the historical downloaded media data to be output includes the historical downloaded media data identified by the data identifiers of all historical download records in the historical download list;

当接收到客户端的媒体数据获取请求时,即通过服务器的后台应用程序从服务器的下载列表存储器中读取该通信账号所关联的历史下载列表,并通过历史下载列表中每个历史下载记录的数据标识获取待输出的历史下载媒体数据,该媒体数据可以为音视频文件的名称、作者以及创作时间等等。When a media data acquisition request is received from the client, the server's background application reads the historical download list associated with the communication account from the server's download list storage, and obtains the historical download media data to be output through the data identifier of each historical download record in the historical download list. The media data can be the name, author, creation time, etc. of the audio and video file.

S202,将所述待输出的历史下载媒体数据返回至所述客户端进行输出。S202: Return the historical downloaded media data to be output to the client for output.

本发明实施例步骤S202请参照图1的实施例步骤S102,在此不再赘述。For step S202 of the embodiment of the present invention, please refer to step S102 of the embodiment of FIG. 1 , which will not be described in detail here.

S203,统计所述历史下载列表中所述多个历史下载记录的记录个数总和,并将所述记录个数总和返回至所述客户端进行输出。S203: Count the total number of records in the plurality of historical download records in the historical download list, and return the total number of records to the client for output.

具体实施例中,为了能够让用户快速获知历史下载记录的个数,服务器统计历史下载列表中历史下载记录的记录个数总和,并将该记录个数总和返回至客户端,客户端接收到该记录个数总和后,即可以进行输出,输出方式可以是进行显示。In a specific embodiment, in order to enable users to quickly know the number of historical download records, the server counts the total number of historical download records in the historical download list and returns the total number of records to the client. After the client receives the total number of records, it can output it, and the output method can be display.

本发明实施例,当通信账号在客户端登录后,接收客户端发送的媒体数据获取请求,该获取请求携带该通信账号,根据获取请求,获取与通信账号关联的待输出的历史下载媒体数据,将所获取的待输出的历史下载媒体数据返回至客户端进行输出,这种方式可实现通信账号在不同平台的客户端登录后即可输出与该通信账号关联的历史下载媒体数据,方便用户使用,实用性强。In an embodiment of the present invention, after a communication account logs in to a client, a media data acquisition request sent by the client is received, the acquisition request carries the communication account, and according to the acquisition request, historical downloaded media data to be outputted associated with the communication account is acquired, and the acquired historical downloaded media data to be outputted is returned to the client for output. This method enables the communication account to output historical downloaded media data associated with the communication account after logging in to a client on different platforms, which is convenient for users to use and has strong practicality.

请参照图3,为本发明实施例提供的一种数据输出方法的流程图;该方法可包括以下步骤S300-步骤S303。Please refer to FIG. 3 , which is a flow chart of a data output method provided by an embodiment of the present invention. The method may include the following steps S300 to S303 .

S300,当通信账号在客户端登录后,接收所述客户端发送的媒体数据获取请求,所述获取请求携带所述通信账号;S300, after a communication account is logged in on a client, receiving a media data acquisition request sent by the client, the acquisition request carrying the communication account;

本发明实施例步骤S300请参照图1的实施例步骤S100,在此不再赘述。Please refer to step S100 of the embodiment of FIG. 1 for step S300 of the embodiment of the present invention, and will not be described in detail here.

S301,根据所述获取请求,获取与所述通信账号关联的待输出的历史下载媒体数据;S301, acquiring historical downloaded media data to be outputted and associated with the communication account according to the acquisition request;

可选的,若所述获取请求包括所述客户端预输出的历史下载媒体数据的目标个数;Optionally, if the acquisition request includes a target number of historical downloaded media data pre-output by the client;

所述根据所述获取请求,获取与所述通信账号关联的待输出的历史下载媒体数据,包括:The acquiring, according to the acquisition request, historical downloaded media data to be outputted and associated with the communication account, includes:

按照所述历史下载列表中各个历史下载记录的下载时间先后顺序,将所述各个历史下载记录进行排序,并获取排序在最后的所述目标个数的目标历史下载记录;Sorting the historical download records in the historical download list according to the order of their download times, and obtaining the target number of target historical download records that are ranked last;

根据所述目标历史下载记录中的数据标识从存储系统中获取所述待输出的历史下载媒体数据。The historical downloaded media data to be output is acquired from a storage system according to the data identifier in the target historical download record.

具体实施例中,若媒体数据获取请求中包括客户端预输出的历史下载媒体数据的目标个数(例如,包括预输出的音乐曲目个数),则按照历史下载列表中各个历史下载记录的下载时间先后顺序,将各个历史下载记录进行排序,排序在前的为离当前时刻较远的历史下载记录,排序在后的为离当前时刻较近的历史下载记录。获取排序在最后的目标个数的目标历史下载记录,即是离当前时刻最近的预设个数的目标历史下载记录,根据目标历史下载记录中的数据标识从存储系统中获取待输出的历史下载媒体数据。In a specific embodiment, if the media data acquisition request includes a target number of historically downloaded media data pre-output by the client (for example, including the number of pre-output music tracks), the historical download records in the historical download list are sorted in chronological order of their download times, with those in the earlier order being those that are further away from the current time, and those in the later order being those that are closer to the current time. The target number of historical download records ranked last, i.e., the preset number of target historical download records closest to the current time, are acquired, and the historically downloaded media data to be output is acquired from the storage system based on the data identifiers in the target historical download records.

可选的,若所述获取请求包括所述客户端预输出的目标时间段的历史下载媒体数据;Optionally, if the acquisition request includes historical downloaded media data of a target time period pre-output by the client;

所述根据所述获取请求,获取与所述通信账号关联的待输出的历史下载媒体数据,包括:The acquiring, according to the acquisition request, historical downloaded media data to be outputted and associated with the communication account, includes:

从所述历史下载列表中选取下载时间属于所述预设时间段内的目标历史下载记录,并根据所述目标历史下载记录中的数据标识从存储系统中获取所述待输出的历史下载媒体数据。A target historical download record whose download time falls within the preset time period is selected from the historical download list, and the historical download media data to be output is acquired from a storage system according to a data identifier in the target historical download record.

具体实施例中,若媒体数据获取请求中包括客户端预输出的目标时间段的历史下载媒体数据,例如客户端预输出2015年6月11日12:00-2015年6月13 日12:00内的历史下载媒体数据,则从历史下载列表中选取下载时间属于该预设时间段内的目标历史下载记录,目标历史下载记录可以包括多个历史下载记录,也可以只包括一个历史下载记录。根据目标历史下载记录中的数据标识从存储系统中获取待输出的历史下载媒体数据,例如若数据标识为歌曲标识,则从存储系统中获取该歌曲标识所标识的歌曲信息。In a specific embodiment, if the media data acquisition request includes historical downloaded media data pre-output by the client for a target time period, for example, the client pre-outputs historical downloaded media data between 12:00 PM on June 11, 2015, and 12:00 PM on June 13, 2015, a target historical download record with a download time within the preset time period is selected from the historical download list. The target historical download record may include multiple historical download records or only one historical download record. The historical downloaded media data to be output is acquired from the storage system based on the data identifier in the target historical download record. For example, if the data identifier is a song identifier, the song information identified by the song identifier is acquired from the storage system.

S302,将所述待输出的历史下载媒体数据返回至所述客户端进行输出。S302: Return the historical downloaded media data to be output to the client for output.

本发明实施例步骤S302请参照图1的实施例步骤S102,在此不再赘述。For step S302 of the embodiment of the present invention, please refer to step S102 of the embodiment of FIG. 1 , which will not be described in detail here.

S303,当接收到客户端发送的操作指令时,所述操作指令携带目标数据标识,从所述历史下载列表中查找与所述目标数据标识匹配的历史下载记录,并根据所述操作指令对所述与所述目标数据标识匹配的历史下载记录进行操作。S303, when an operation instruction sent by the client is received, the operation instruction carries a target data identifier, searches for a historical download record matching the target data identifier from the historical download list, and operates on the historical download record matching the target data identifier according to the operation instruction.

具体实施例中,将待输出的历史下载媒体数据返回至客户端输出之后,用户可以通过客户端对历史下载媒体数据进行操作,例如,进行删除、下载、分享、播放以及收藏等等操作。当用户进行操作时,客户端向服务器发送操作指令,该操作指令携带进行操作的目标数据标识,从该通信账号所关联的历史下载列表中查找与目标数据标识匹配的历史下载记录,然后根据操作指令中所指示的操作对目标数据标识匹配的历史下载记录进行操作。例如,若为删除操作,则将历史下载列表中与目标数据标识匹配的所有历史下载记录删除。In a specific embodiment, after the historical downloaded media data to be output is returned to the client for output, the user can perform operations on the historical downloaded media data through the client, such as deleting, downloading, sharing, playing, and adding it to favorites. When a user performs an operation, the client sends an operation instruction to the server, which carries the target data identifier for the operation. The server searches the historical download list associated with the communication account for historical download records that match the target data identifier, and then performs the operation indicated in the operation instruction on the historical download records that match the target data identifier. For example, if the operation is a delete operation, all historical download records in the historical download list that match the target data identifier are deleted.

本发明实施例,当通信账号在客户端登录后,接收客户端发送的媒体数据获取请求,该获取请求携带该通信账号,根据获取请求,获取与通信账号关联的待输出的历史下载媒体数据,将所获取的待输出的历史下载媒体数据返回至客户端进行输出,这种方式可实现通信账号在不同平台的客户端登录后即可输出与该通信账号关联的历史下载媒体数据,方便用户使用,实用性强。In an embodiment of the present invention, after a communication account logs in to a client, a media data acquisition request sent by the client is received, the acquisition request carries the communication account, and according to the acquisition request, historical downloaded media data to be outputted associated with the communication account is acquired, and the acquired historical downloaded media data to be outputted is returned to the client for output. This method enables the communication account to output historical downloaded media data associated with the communication account after logging in to a client on different platforms, which is convenient for users to use and has strong practicality.

下面将结合附图6-附图7,对本发明实施例提供的一种数据输出装置进行详细介绍。A data output device provided by an embodiment of the present invention will be described in detail below with reference to FIG6 and FIG7 .

请参阅图6,为本发明实施例提供的一种数据输出装置的结构示意图;该装置可包括:接收模块100、获取模块101以及返回模块102;Please refer to FIG6 , which is a schematic diagram of the structure of a data output device provided by an embodiment of the present invention; the device may include: a receiving module 100 , an obtaining module 101 , and a returning module 102 ;

接收模块100,用于当通信账号在客户端登录后,接收所述客户端发送的媒体数据获取请求,所述获取请求携带所述通信账号;The receiving module 100 is configured to receive a media data acquisition request sent by a client after the communication account is logged in to the client, wherein the acquisition request carries the communication account;

具体实施例中,客户端可以为媒体客户端,例如各种音乐客户端、视频客户端;各种终端在安装了客户端后,用户可以使用自己的通信账号在客户端自由的下载各种多媒体文件,例如音视频文件等等,为了使得用户在各种终端登录通信账号后都可以看到历史下载的多媒体文件的媒体数据,当通信账号在客户端登录后,客户端即向服务器发送媒体数据获取请求,该获取请求中携带通信账号。可选的,客户端向服务器发送获取请求可以是通过公共网关接口 (Common Gateway Interface,CGI)发送,服务器可以是网页Web服务器,如图5所示,即是客户端向Web服务器发送媒体数据获取请求;CGI是外部应用程序与Web服务器之间的接口标准,是在外部应用程序和Web服务器之间传递信息的规程。In a specific embodiment, the client can be a media client, such as various music clients or video clients. After installing the client on various terminals, users can freely download various multimedia files, such as audio and video files, from the client using their communication accounts. To ensure that users can view the media data of previously downloaded multimedia files after logging into their communication accounts on various terminals, once the communication account is logged into the client, the client sends a media data acquisition request to the server, which carries the communication account. Optionally, the client can send the acquisition request to the server via a Common Gateway Interface (CGI), and the server can be a web server. As shown in FIG5 , the client sends the media data acquisition request to the web server. CGI is an interface standard between external applications and web servers, and is a procedure for transmitting information between external applications and web servers.

本发明实施例中,媒体数据可以为多媒体文件的名称、作者、创作时间、多媒体文件的音视频数据等等。此处通信账号所登录的客户端不分终端平台,只要通信账号在终端平台的客户端登录后,即发送媒体数据获取请求用于获取历史下载媒体数据。In the embodiment of the present invention, the media data may be the name, author, creation time, audio and video data of the multimedia file, etc. The client that the communication account logs into is not limited to the terminal platform. As long as the communication account logs into the client on the terminal platform, a media data acquisition request is sent to obtain historically downloaded media data.

获取模块101,用于根据所述获取请求,获取与所述通信账号关联的待输出的历史下载媒体数据;An acquisition module 101 is configured to acquire, according to the acquisition request, historical downloaded media data to be outputted and associated with the communication account;

具体实施例中,服务器获取模块101根据客户端发送的获取请求,解析出获取请求中所携带的通信账号,获取与该通信账号关联的待输出的历史下载媒体数据,与该通信账号关联的待输出的历史下载媒体数据为该通信账号在各个终端平台历史下载的多媒体文件的媒体数据,多媒体文件的媒体数据可以为该多媒体文件的属性信息,例如若多媒体文件为歌曲,则媒体数据可以包括歌曲名称,歌曲专辑以及歌词等等。如图4所示,该客户端所展示的即是该通信账号历史下载的各个歌曲的名称以及歌曲的演唱者。In a specific embodiment, the server acquisition module 101 parses the communication account carried in the acquisition request sent by the client, and obtains the historical downloaded media data associated with the communication account to be output. The historical downloaded media data associated with the communication account to be output is the media data of multimedia files historically downloaded by the communication account on various terminal platforms. The media data of the multimedia files can be attribute information of the multimedia files. For example, if the multimedia file is a song, the media data may include the song title, song album, and lyrics. As shown in Figure 4, the client displays the titles and artists of each song historically downloaded by the communication account.

本发明实施例中,待输出的历史下载媒体数据可以是该账号关联的下载历史的所有多媒体文件的媒体数据,也可以是该通信账号关联的下载历史的一部分多媒体文件的媒体数据。例如,若需要输出的历史下载媒体数据为历史下载歌曲的媒体数据,则待输出的历史下载媒体数据可以是该通信账号历史下载的所有歌曲的名称和演唱者,也可以是该通信账号历史下载的一部分歌曲的歌曲名称和演唱者。In an embodiment of the present invention, the historical downloaded media data to be output can be the media data of all multimedia files in the download history associated with the account, or the media data of a portion of multimedia files in the download history associated with the communication account. For example, if the historical downloaded media data to be output is the media data of historically downloaded songs, the historical downloaded media data to be output can be the titles and artists of all songs downloaded by the communication account, or the titles and artists of a portion of songs downloaded by the communication account.

可选的,若客户端是通过CGI向服务器发送媒体数据获取请求,则CGI从云分布式存储(Cloud Key Value,CKV)获取该通信账号所关联的待输出的历史下载媒体数据。历史下载媒体数据可以是通过应用层协议进行封装,则获取该通信账号所关联的待输出的历史下载媒体数据时,即是将通过应用层协议封装的历史下载媒体数据进行解码,获得每次历史下载的具体媒体数据,再将所请求的待输出的历史下载媒体数据返回至客户端。Optionally, if the client sends a media data acquisition request to the server via CGI, CGI retrieves the historical downloaded media data to be output associated with the communication account from the cloud distributed storage (Cloud Key Value, CKV). The historical downloaded media data may be encapsulated via an application layer protocol. When obtaining the historical downloaded media data to be output associated with the communication account, the historical downloaded media data encapsulated via the application layer protocol is decoded to obtain the specific media data for each historical download, and the requested historical downloaded media data to be output is then returned to the client.

获取模块101获取待输出的历史下载媒体数据可以有三种可选的实施方式:There are three optional implementations for the acquisition module 101 to acquire the historical downloaded media data to be output:

在第一种可选的实施方式中,若所述待输出的历史下载媒体数据包括所述历史下载列表中所有历史下载记录的数据标识所标识的历史下载媒体数据;In a first optional implementation manner, if the historical downloaded media data to be output includes the historical downloaded media data identified by the data identifiers of all historical download records in the historical download list;

所述获取模块101具体用于从存储系统中读取所述通信账号对应的历史下载列表中的所述多个历史下载记录中每个历史下载记录的数据标识所标识的历史下载媒体数据。The acquisition module 101 is specifically configured to read, from a storage system, the historical downloaded media data identified by the data identifier of each historical download record in the plurality of historical download records in the historical download list corresponding to the communication account.

具体实施例中,当用户在终端的客户端通过自己的通信账号下载音视频文件后,客户端即将该通信账号和该音视频文件的数据标识传递给服务器的后台服务程序,如图5所示,即是将通信账号和数据标识传递给Web服务器的后台 server。可选的,客户端可以通过CGI将该通信账号和该数据标识传递后台服务程序。服务器的后台服务程序server将该数据标识添加至该通信账号关联的历史下载列表中,该历史下载列表中存储该通信账号的所有历史下载记录,一个历史下载记录包括两个字段,一个字段存储所下载的音视频文件的数据标识(例如歌曲标识),另一个字段存储下载时间。利用该通信账号每进行一次下载即产生一个历史下载记录。如图5所示,该通信账号关联的历史下载列表存储在CKV 里面,在CKV里面进行下载列表存储,存储了各个通信账号所关联的历史下载列表,目前在CKV里面控制每个通信账号的历史下载列表中最多存储一万条历史下载记录,当超过一万条历史下载记录时,会把离当前时刻最远的历史下载记录迁移存储至Tlist,Tlist是腾讯云平台提供的一个组件。是一种通用列表存储系统,提供灵活的列表操作接口(排序、分类过滤),可无限支持列表长度,提供自建索引等列表应用外围功能。In a specific embodiment, after a user downloads an audio or video file through their communication account on a terminal client, the client transmits the communication account and the data identifier of the audio or video file to the server's backend service program. As shown in FIG5 , this means that the communication account and data identifier are transmitted to the web server's backend server. Alternatively, the client can transmit the communication account and data identifier to the backend service program via CGI. The server's backend service program adds the data identifier to a historical download list associated with the communication account. This historical download list stores all historical download records for the communication account. A historical download record includes two fields: one field stores the data identifier of the downloaded audio or video file (e.g., a song ID), and the other field stores the download time. Each download performed using the communication account generates a historical download record. As shown in Figure 5, the download history list associated with each communication account is stored in CKV. CKV stores the download history list associated with each communication account. Currently, CKV stores a maximum of 10,000 download history records per communication account. When the number of download history records exceeds 10,000, the most recent download history records are migrated to Tlist, a component provided by the Tencent Cloud platform. Tlist is a general-purpose list storage system that provides flexible list operation interfaces (such as sorting, classification, and filtering), supports unlimited list length, and offers list application peripherals such as custom indexing.

可选的,各个通信账号所关联的历史下载列表可以通过应用层协议进行封装,当需要获取该通信账号所关联的待输出的历史下载媒体数据时,首先将利用应用层协议封装的该通信账号所关联的历史下载列表进行解码,获得历史下载列表的具体信息,从而进一步获取待输出的历史下载媒体数据。Optionally, the historical download list associated with each communication account can be encapsulated through the application layer protocol. When it is necessary to obtain the historical downloaded media data to be output associated with the communication account, the historical download list associated with the communication account encapsulated by the application layer protocol is first decoded to obtain specific information of the historical download list, thereby further obtaining the historical downloaded media data to be output.

本发明实施例中,在服务器的存储系统中存储了各种音视频文件的历史下载媒体数据,如图5所示,存储系统中存储了各种歌曲信息,歌曲信息应用程序server根据数据标识从存储系统中获取相应的歌曲信息。通常采用音视频文件的数据标识来标识存储系统中该音视频文件的历史下载媒体数据。因此只要获得数据标识即可从服务器的存储系统中获得历史下载媒体数据,即是通过 CKV里面所存储的历史下载列表中的数据标识即可从服务器的存储系统中获得该数据标识所标识的历史下载媒体数据。用户可以从历史下载媒体数据获知历史下载的音视频文件的相关信息。In an embodiment of the present invention, the server's storage system stores historically downloaded media data for various audio and video files. As shown in FIG5 , the storage system stores various song information, and the song information application server retrieves the corresponding song information from the storage system based on the data identifier. The data identifier of an audio or video file is typically used to identify the historically downloaded media data for that audio or video file in the storage system. Therefore, simply obtaining the data identifier allows the historically downloaded media data to be obtained from the server's storage system. Specifically, the historically downloaded media data identified by the data identifier in the historical download list stored in the CKV can be retrieved from the server's storage system. Users can obtain relevant information about the historically downloaded audio or video files from the historically downloaded media data.

当接收到客户端的媒体数据获取请求时,获取模块101即通过服务器的后台应用程序从服务器的下载列表存储器中读取该通信账号所关联的历史下载列表,并通过历史下载列表中每个历史下载记录的数据标识获取待输出的历史下载媒体数据,该媒体数据可以为音视频文件的名称、作者以及创作时间等等。When receiving a media data acquisition request from the client, the acquisition module 101 reads the historical download list associated with the communication account from the server's download list memory through the server's background application, and obtains the historical download media data to be output through the data identifier of each historical download record in the historical download list. The media data can be the name, author, creation time, etc. of the audio and video file.

在第二种可选的实施方式中,若所述获取请求包括所述客户端预输出的历史下载媒体数据的目标个数;如图7所示,所述获取模块101包括:In a second optional implementation, if the acquisition request includes the target number of historical downloaded media data pre-output by the client, as shown in FIG7 , the acquisition module 101 includes:

排序单元1010,用于按照所述历史下载列表中各个历史下载记录的下载时间先后顺序,将所述各个历史下载记录进行排序,并获取排序在最后的所述目标个数的目标历史下载记录;The sorting unit 1010 is configured to sort the historical download records in the historical download list according to the order of their downloading time, and obtain the target number of target historical download records that are sorted last;

获取单元1011,用于根据所述目标历史下载记录中的数据标识从存储系统中获取所述待输出的历史下载媒体数据。The acquiring unit 1011 is configured to acquire the to-be-output historical downloaded media data from a storage system according to a data identifier in the target historical download record.

具体实施例中,若媒体数据获取请求中包括客户端预输出的历史下载媒体数据的目标个数(例如,包括预输出的音乐曲目个数),排序单元1010则按照历史下载列表中各个历史下载记录的下载时间先后顺序,将各个历史下载记录进行排序,排序在前的为离当前时刻较远的历史下载记录,排序在后的为离当前时刻较近的历史下载记录。获取排序在最后的目标个数的目标历史下载记录,即是离当前时刻最近的预设个数的目标历史下载记录,获取单元1011根据目标历史下载记录中的数据标识从存储系统中获取待输出的历史下载媒体数据。In a specific embodiment, if the media data acquisition request includes a target number of historically downloaded media data pre-output by the client (for example, including the number of pre-output music tracks), the sorting unit 1010 sorts the historical download records in the historical download list according to the chronological order of their download times, with the earlier ones being historical download records that are further away from the current moment and the later ones being historical download records that are closer to the current moment. The target historical download records that are ranked last in the target number are acquired, i.e., the preset number of target historical download records closest to the current moment. The acquisition unit 1011 acquires the historically downloaded media data to be output from the storage system based on the data identifiers in the target historical download records.

在第三种可选的实施方式中,若所述获取请求包括所述客户端预输出的目标时间段的历史下载媒体数据;In a third optional implementation manner, if the acquisition request includes historical downloaded media data of a target time period pre-output by the client;

所述获取模块101具体用于从所述历史下载列表中选取下载时间属于所述预设时间段内的目标历史下载记录,并根据所述目标历史下载记录中的数据标识从存储系统中获取所述待输出的历史下载媒体数据。The acquisition module 101 is specifically configured to select a target historical download record whose download time falls within the preset time period from the historical download list, and acquire the historical download media data to be output from the storage system according to the data identifier in the target historical download record.

具体实施例中,若媒体数据获取请求中包括客户端预输出的目标时间段的历史下载媒体数据,例如客户端预输出2015年6月11日12:00-2015年6月13 日12:00内的历史下载媒体数据,获取模块101则从历史下载列表中选取下载时间属于该预设时间段内的目标历史下载记录,目标历史下载记录可以包括多个历史下载记录,也可以只包括一个历史下载记录。根据目标历史下载记录中的数据标识从存储系统中获取待输出的历史下载媒体数据,例如若数据标识为歌曲标识,则从存储系统中获取该歌曲标识所标识的歌曲信息。In a specific embodiment, if the media data acquisition request includes historical downloaded media data pre-output by the client for a target time period, for example, the client pre-outputs historical downloaded media data between 12:00 PM on June 11, 2015, and 12:00 PM on June 13, 2015, the acquisition module 101 selects a target historical download record whose download time falls within the preset time period from the historical download list. The target historical download record may include multiple historical download records or only one historical download record. The historical downloaded media data to be output is acquired from the storage system based on the data identifier in the target historical download record. For example, if the data identifier is a song identifier, the song information identified by the song identifier is acquired from the storage system.

返回模块102,用于将所述待输出的历史下载媒体数据返回至所述客户端进行输出。The returning module 102 is configured to return the historical downloaded media data to be output to the client for output.

具体实施例中,服务器返回模块102将所获取的待输出的历史下载媒体数据返回至客户端进行输出,具体的输出方式可以是根据历史下载媒体数据的存在形式进行确定,例如,若历史下载媒体数据为多媒体文件的属性信息(歌曲名称以及演唱者),则客户端显示历史下载媒体数据。若历史下载媒体数据为多媒体文件的音视频数据,则客户端播放该历史下载媒体数据。采用这种方式,可以将该通信账号所关联的,用户在不同终端平台所下载的多媒体文件的历史下载媒体数据进行输出,从而让用户快速获知该通信账号的下载历史,从而可以进一步对下载历史的多媒体数据进行操作,例如,再次下载、分享、收藏、播放等等。In a specific embodiment, the server return module 102 returns the acquired historical downloaded media data to be output to the client for output. The specific output method can be determined according to the existence form of the historical downloaded media data. For example, if the historical downloaded media data is the attribute information of the multimedia file (song name and singer), the client displays the historical downloaded media data. If the historical downloaded media data is the audio and video data of the multimedia file, the client plays the historical downloaded media data. In this way, the historical downloaded media data of the multimedia files downloaded by the user on different terminal platforms associated with the communication account can be output, so that the user can quickly learn the download history of the communication account and can further operate the multimedia data in the download history, such as re-downloading, sharing, collecting, playing, etc.

需要说明的是,客户端在对历史下载媒体数据进行输出时,可以是以分页机制进行输出。例如,若待输出的历史下载媒体数据为多个歌曲的歌曲信息,则可以以分页显示歌曲信息,终端屏幕可以展示一页中多个歌曲的歌曲信息。It should be noted that when the client outputs the historical downloaded media data, it can be output in a paging mechanism. For example, if the historical downloaded media data to be output is song information of multiple songs, the song information can be displayed in pages, and the terminal screen can display the song information of multiple songs on one page.

可选的,所述装置还包括统计模块103;Optionally, the device further includes a statistics module 103;

统计模块103,用于统计所述历史下载列表中所述多个历史下载记录的记录个数总和,并将所述记录个数总和返回至所述客户端进行输出。The statistics module 103 is configured to count the total number of records in the plurality of historical download records in the historical download list, and return the total number of records to the client for output.

具体实施例中,为了能够让用户快速获知历史下载记录的个数,服务器统计模块103统计历史下载列表中历史下载记录的记录个数总和,并将该记录个数总和返回至客户端,客户端接收到该记录个数总和后,即可以进行输出,输出方式可以是进行显示。In a specific embodiment, in order to enable users to quickly know the number of historical download records, the server statistics module 103 counts the total number of historical download records in the historical download list and returns the total number of records to the client. After the client receives the total number of records, it can output it, and the output method can be display.

可选的,所述装置还包括操作模块104;Optionally, the device further includes an operating module 104;

操作模块104,用于当接收到客户端发送的操作指令时,所述操作指令携带目标数据标识,从所述历史下载列表中查找与所述目标数据标识匹配的历史下载记录,并根据所述操作指令对所述与所述目标数据标识匹配的历史下载记录进行操作。The operation module 104 is used to, when receiving an operation instruction sent by the client, search for a historical download record matching the target data identifier from the historical download list, and perform an operation on the historical download record matching the target data identifier according to the operation instruction.

具体实施例中,将待输出的历史下载媒体数据返回至客户端输出之后,用户可以通过客户端对历史下载媒体数据进行操作,例如,进行删除、下载、分享、播放以及收藏等等操作。当用户进行操作时,客户端向服务器发送操作指令,该操作指令携带进行操作的目标数据标识,操作模块104从该通信账号所关联的历史下载列表中查找与目标数据标识匹配的历史下载记录,然后根据操作指令中所指示的操作对目标数据标识匹配的历史下载记录进行操作。例如,若为删除操作,则将历史下载列表中与目标数据标识匹配的所有历史下载记录删除。In a specific embodiment, after the historical downloaded media data to be output is returned to the client for output, the user can perform operations on the historical downloaded media data through the client, such as deleting, downloading, sharing, playing, and adding to favorites. When the user performs an operation, the client sends an operation instruction to the server, which carries the target data identifier to be operated on. The operation module 104 searches the historical download list associated with the communication account for historical download records that match the target data identifier, and then performs the operation on the historical download records that match the target data identifier according to the operation instruction. For example, if the operation is a delete operation, all historical download records in the historical download list that match the target data identifier are deleted.

本发明实施例,当通信账号在客户端登录后,接收客户端发送的媒体数据获取请求,该获取请求携带该通信账号,根据获取请求,获取与通信账号关联的待输出的历史下载媒体数据,将所获取的待输出的历史下载媒体数据返回至客户端进行输出,这种方式可实现通信账号在不同平台的客户端登录后即可输出与该通信账号关联的历史下载媒体数据,方便用户使用,实用性强。In an embodiment of the present invention, after a communication account logs in to a client, a media data acquisition request sent by the client is received, the acquisition request carries the communication account, and according to the acquisition request, historical downloaded media data to be outputted associated with the communication account is acquired, and the acquired historical downloaded media data to be outputted is returned to the client for output. This method enables the communication account to output historical downloaded media data associated with the communication account after logging in to a client on different platforms, which is convenient for users to use and has strong practicality.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,附图6-附图7所示数据输出装置的模块对应的程序可存储在数据输出装置的可读存储介质内,并被该数据输出装置中的至少一个处理器执行,以实现上述数据输出方法,该方法包括图1至图2中各方法实施例所述的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。Those skilled in the art will appreciate that all or part of the processes in the above-described method embodiments can be implemented through hardware associated with computer program instructions. The program can be stored in a computer-readable storage medium. The programs corresponding to the modules of the data output device shown in Figures 6 and 7 can be stored in the readable storage medium of the data output device and executed by at least one processor in the data output device to implement the above-described data output method, which includes the processes described in the various method embodiments in Figures 1 and 2. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above disclosure is merely a preferred embodiment of the present invention and certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.

Claims (11)

1.一种数据输出方法,用于音乐用户漫游下载历史,其特征在于,包括:1. A data output method for music users to roam download history, characterized in that it includes: 当通信账号在客户端登录后,接收所述客户端发送的媒体数据获取请求,所述获取请求携带所述通信账号;After the communication account is logged in on the client, it receives a media data acquisition request sent by the client, and the acquisition request carries the communication account. 从云分布式存储中获取与所述通信账号关联的历史下载列表,所述历史下载列表中包括至少一个历史下载记录,所述历史下载记录包括用于标识历史下载媒体数据的数据标识,所述历史下载媒体数据存储于本地的存储系统中,所述历史下载列表通过应用层协议封装;The historical download list associated with the communication account is obtained from the cloud distributed storage. The historical download list includes at least one historical download record. The historical download record includes a data identifier for identifying historically downloaded media data. The historically downloaded media data is stored in the local storage system. The historical download list is encapsulated through an application layer protocol. 将封装的所述历史下载列表进行解码,以获取所述历史下载列表中记录的数据标识;Decode the encapsulated historical download list to obtain the data identifiers recorded in the historical download list; 根据所述历史下载列表中记录的数据标识,从所述存储系统中获取所述数据标识所标识的待输出的历史下载媒体数据,所述待输出的历史下载媒体数据为所述通信账号在多个终端历史下载的多媒体文件的媒体数据,所述待输出的历史下载媒体数据通过应用层协议封装;Based on the data identifier recorded in the historical download list, retrieve the historical download media data to be output identified by the data identifier from the storage system. The historical download media data to be output is the media data of multimedia files historically downloaded by the communication account on multiple terminals. The historical download media data to be output is encapsulated through an application layer protocol. 将封装的所述待输出的历史下载媒体数据进行解码,获得解码后的历史下载媒体数据并返回至所述客户端,以使所述客户端执行以下操作:若所述解码后的历史下载媒体数据为多媒体文件的属性信息,则显示所述多媒体文件的属性信息;The encapsulated historical downloaded media data to be output is decoded to obtain the decoded historical downloaded media data and returned to the client, so that the client performs the following operations: if the decoded historical downloaded media data is the attribute information of a multimedia file, then the attribute information of the multimedia file is displayed; 若所述解码后的历史下载媒体数据为多媒体文件的音视频数据,则播放所述音视频数据;If the decoded historical downloaded media data is audio and video data of a multimedia file, then play the audio and video data; 当接收到客户端发送的删除指令时,所述删除指令携带目标数据标识,从所述历史下载列表中查找与所述目标数据标识匹配的历史下载记录,并根据所述删除指令对所述与所述目标数据标识匹配的历史下载记录进行删除。When a deletion instruction is received from the client, the deletion instruction carries a target data identifier, searches the historical download list for a historical download record that matches the target data identifier, and deletes the historical download record that matches the target data identifier according to the deletion instruction. 2.如权利要求1所述的方法,其特征在于,所述方法还包括:2. The method as described in claim 1, characterized in that the method further comprises: 统计所述历史下载列表中所述至少一个历史下载记录的记录个数总和,并将所述记录个数总和返回至所述客户端进行输出。The total number of records for at least one historical download record in the historical download list is counted, and the total number of records is returned to the client for output. 3.如权利要求1所述的方法,其特征在于,所述历史下载记录还包括下载时间;3. The method as described in claim 1, wherein the historical download records further include download time; 若所述获取请求包括所述客户端预输出的历史下载媒体数据的目标个数;If the acquisition request includes the target number of historical downloaded media data pre-output by the client; 所述根据所述历史下载列表中记录的数据标识,从所述存储系统中获取所述数据标识所标识的待输出的历史下载媒体数据,包括:The step of retrieving the historical download media data to be output, identified by the data identifier recorded in the historical download list, from the storage system includes: 按照所述历史下载列表中各个历史下载记录的下载时间先后顺序,将所述各个历史下载记录进行排序,并获取排序在最后的所述目标个数的目标历史下载记录;According to the download time order of each historical download record in the historical download list, sort the historical download records and obtain the target historical download record that is ranked last. 根据所述目标历史下载记录中的数据标识从存储系统中获取所述待输出的历史下载媒体数据。The historical download media data to be output is obtained from the storage system based on the data identifier in the target historical download record. 4.如权利要求1所述的方法,其特征在于,所述历史下载记录还包括下载时间;4. The method as described in claim 1, wherein the historical download records further include download time; 若所述获取请求包括所述客户端预输出的目标时间段的历史下载媒体数据;If the acquisition request includes historical downloaded media data for the target time period pre-output by the client; 所述根据所述历史下载列表中记录的数据标识,从所述存储系统中获取所述数据标识所标识的待输出的历史下载媒体数据,包括:The step of retrieving the historical download media data to be output, identified by the data identifier recorded in the historical download list, from the storage system includes: 从所述历史下载列表中选取下载时间属于所述目标时间段内的目标历史下载记录,并根据所述目标历史下载记录中的数据标识从存储系统中获取所述待输出的历史下载媒体数据。Select the target historical download record whose download time belongs to the target time period from the historical download list, and obtain the historical download media data to be output from the storage system according to the data identifier in the target historical download record. 5.如权利要求1-4任一项所述的方法,其特征在于,所述操作包括删除、下载、分享、收藏以及播放。5. The method according to any one of claims 1-4, wherein the operation includes deleting, downloading, sharing, adding to favorites, and playing. 6.一种数据输出装置,用于音乐用户漫游下载历史,其特征在于,包括:6. A data output device for music users to roam download history, characterized in that it comprises: 接收模块,用于当通信账号在客户端登录后,接收所述客户端发送的媒体数据获取请求,所述获取请求携带所述通信账号,从云分布式存储中获取与所述通信账号关联的历史下载列表,所述历史下载列表中包括至少一个历史下载记录,所述历史下载记录包括用于标识历史下载媒体数据的数据标识,所述历史下载媒体数据存储于本地的存储系统中,所述历史下载列表通过应用层协议封装;The receiving module is used to receive a media data acquisition request sent by the client after the communication account is logged in on the client. The acquisition request carries the communication account and retrieves the historical download list associated with the communication account from the cloud distributed storage. The historical download list includes at least one historical download record. The historical download record includes a data identifier for identifying historically downloaded media data. The historically downloaded media data is stored in the local storage system. The historical download list is encapsulated through an application layer protocol. 获取模块,用于将封装的所述历史下载列表进行解码,以获取所述历史下载列表中记录的数据标识,根据所述历史下载列表中记录的数据标识,从所述存储系统中获取所述数据标识所标识的待输出的历史下载媒体数据,所述待输出的历史下载媒体数据为所述通信账号在多个终端历史下载的多媒体文件的媒体数据,所述待输出的历史下载媒体数据通过应用层协议封装;The acquisition module is used to decode the encapsulated historical download list to obtain the data identifier recorded in the historical download list, and to obtain the historical download media data to be output identified by the data identifier from the storage system according to the data identifier recorded in the historical download list. The historical download media data to be output is the media data of multimedia files historically downloaded by the communication account on multiple terminals. The historical download media data to be output is encapsulated through an application layer protocol. 返回模块,用于将封装的所述待输出的历史下载媒体数据进行解码,获得解码后的历史下载媒体数据并返回至所述客户端,以使所述客户端执行以下操作:若所述解码后的历史下载媒体数据为多媒体文件的属性信息,则所述客户端显示所述多媒体文件的属性信息;若所述解码后的历史下载媒体数据为多媒体文件的音视频数据,则所述客户端播放所述音视频数据;The return module is used to decode the encapsulated historical downloaded media data to be output, obtain the decoded historical downloaded media data, and return it to the client so that the client can perform the following operations: if the decoded historical downloaded media data is the attribute information of a multimedia file, the client displays the attribute information of the multimedia file; if the decoded historical downloaded media data is the audio and video data of a multimedia file, the client plays the audio and video data. 操作模块,用于当接收到客户端发送的删除指令时,所述删除指令携带目标数据标识,从所述历史下载列表中查找与所述目标数据标识匹配的历史下载记录,并根据所述删除指令对所述与所述目标数据标识匹配的历史下载记录进行删除。The operation module is configured to, when receiving a deletion instruction sent by a client, wherein the deletion instruction carries a target data identifier, search for a historical download record matching the target data identifier in the historical download list, and delete the historical download record matching the target data identifier according to the deletion instruction. 7.如权利要求6所述的装置,其特征在于,所述装置还包括:7. The apparatus of claim 6, wherein the apparatus further comprises: 统计模块,用于统计所述历史下载列表中所述至少一个历史下载记录的记录个数总和,并将所述记录个数总和返回至所述客户端进行输出。The statistics module is used to count the total number of records of at least one historical download record in the historical download list, and return the total number of records to the client for output. 8.如权利要求6所述的装置,其特征在于,所述历史下载记录还包括下载时间;8. The apparatus as described in claim 6, wherein the historical download record further includes download time; 若所述获取请求包括所述客户端预输出的历史下载媒体数据的目标个数;If the acquisition request includes the target number of historical downloaded media data pre-output by the client; 所述获取模块用于按照所述历史下载列表中各个历史下载记录的下载时间先后顺序,将所述各个历史下载记录进行排序,并获取排序在最后的所述目标个数的目标历史下载记录;The acquisition module is used to sort the historical download records according to the download time order of each historical download record in the historical download list, and acquire the target historical download record that is sorted last. 根据所述目标历史下载记录中的数据标识从存储系统中获取所述待输出的历史下载媒体数据。The historical download media data to be output is obtained from the storage system based on the data identifier in the target historical download record. 9.如权利要求6所述的装置,其特征在于,所述历史下载记录还包括下载时间;9. The apparatus as claimed in claim 6, wherein the historical download record further includes download time; 若所述获取请求包括所述客户端预输出的目标时间段的历史下载媒体数据;If the acquisition request includes historical downloaded media data for the target time period pre-output by the client; 所述获取模块,用于从所述历史下载列表中选取下载时间属于所述目标时间段内的目标历史下载记录,并根据所述目标历史下载记录中的数据标识从存储系统中获取所述待输出的历史下载媒体数据。The acquisition module is used to select target historical download records whose download time belongs to the target time period from the historical download list, and to obtain the historical download media data to be output from the storage system according to the data identifier in the target historical download record. 10.如权利要求6-9任一项所述的装置,其特征在于,所述操作包括删除、下载、分享、收藏以及播放。10. The apparatus according to any one of claims 6-9, wherein the operation includes deleting, downloading, sharing, saving, and playing. 11.一种计算机可读取存储介质,其特征在于,存储有可执行指令,用于被处理器执行时,实现权利要求1-5任一项所述的数据输出方法。11. A computer-readable storage medium, characterized in that it stores executable instructions for implementing the data output method according to any one of claims 1-5 when executed by a processor.
HK17105455.8A 2017-06-01 Method and apparatus for outputting data, and computer-readable storage medium HK1232034B (en)

Publications (3)

Publication Number Publication Date
HK1232034A1 HK1232034A1 (en) 2017-12-29
HK1232034A HK1232034A (en) 2017-12-29
HK1232034B true HK1232034B (en) 2021-10-29

Family

ID=

Similar Documents

Publication Publication Date Title
CA2661066C (en) Auto-selection of media files
US7853704B2 (en) Content acquisition method
TWI397858B (en) Method and computer readable medium for multimedia enhanced browser interface
CA2660224C (en) Managing media files from multiple sources
CN101179474B (en) A download method, system and device
CN102349314B (en) Method and apparatus for accessing content based on user's geographic location
US20020026521A1 (en) System and method for managing and distributing associated assets in various formats
US9069771B2 (en) Music recognition method and system based on socialized music server
CN102970281B (en) A kind of method, user terminal and server processing multimedia record
US20110119248A1 (en) Topic identification system, topic identification device, client terminal, program, topic identification method, and information processing method
US20100153393A1 (en) Constructing album data using discrete track data from multiple sources
CN105740393A (en) Method and device for playing music
EP2811399B1 (en) Method and terminal for starting music application
CN102916999B (en) Server unit and information processing unit
KR101713988B1 (en) Method and apparatus for providing content sending metadata extracted from content
US20140068006A1 (en) Method, apparatus and system for providing content
CN111031117A (en) Multimedia file downloading method and related device
CN106411975B (en) A data output method, device and computer readable storage medium
CN105120392A (en) A method for creating a speaker group and a mobile terminal
HK1232034B (en) Method and apparatus for outputting data, and computer-readable storage medium
KR101471522B1 (en) System for providing personal information based on generation and consumption of content
CN114925222B (en) A method for constructing a multi-platform video sample library
CN112584255B (en) Method and device for playing streaming media data, computer equipment and storage medium
KR101407334B1 (en) The method, device and server for providing music service
JP6475744B2 (en) Media content management