WO2017016248A1 - Data output method and apparatus - Google Patents

Data output method and apparatus Download PDF

Info

Publication number
WO2017016248A1
WO2017016248A1 PCT/CN2016/079894 CN2016079894W WO2017016248A1 WO 2017016248 A1 WO2017016248 A1 WO 2017016248A1 CN 2016079894 W CN2016079894 W CN 2016079894W WO 2017016248 A1 WO2017016248 A1 WO 2017016248A1
Authority
WO
WIPO (PCT)
Prior art keywords
download
historical
media data
history
output
Prior art date
Application number
PCT/CN2016/079894
Other languages
French (fr)
Chinese (zh)
Inventor
傅鸿城
梁柱
周国金
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2017016248A1 publication Critical patent/WO2017016248A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/306User profiles

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a data output method and apparatus.
  • the embodiment of the invention provides a data output method and device, which can realize the historical download media data associated with the communication account after the communication account is registered by the client of different platforms, which is convenient for the user to use and has strong practicability.
  • a first aspect of the present invention provides a data output method, which may include:
  • a second aspect of the present invention provides a data output apparatus, which may include:
  • a receiving module configured to receive a media data acquisition request sent by the client after the communication account is logged in, the acquiring request carrying the communication account;
  • An obtaining module configured to acquire, according to the obtaining request, historical download media data to be output that is associated with the communication account
  • a third aspect of the present invention provides a data output apparatus, which may include: a processing component and a memory;
  • a memory is for storing instructions executable by the processing component, the processing component being configured to execute instructions to perform the data output method described above.
  • the client receives the media data acquisition request sent by the client, and the acquisition request carries the communication account, and obtains the historical download media data to be output associated with the communication account according to the acquisition request.
  • the obtained historical download media data to be output is returned to the client for output, which can realize the historical download media data associated with the communication account after the communication account is logged in by the client of different platforms, which is convenient for the user to use. , practical.
  • FIG. 1 is a flowchart of a data output method according to an embodiment of the present invention
  • FIG. 3 is a flowchart of still another data output method according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a terminal display interface according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a data output system according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a data output apparatus according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of an acquiring module according to an embodiment of the present disclosure.
  • FIG. 8 is a block diagram of a data output device 800, according to an exemplary embodiment.
  • FIG. 1 is a flowchart of a data output method according to an embodiment of the present invention; the method may include the following steps S100-S102.
  • the client After the communication account is logged in, the client receives the media data acquisition request sent by the client, where the acquisition request carries the communication account.
  • the client may be a media client, such as various music clients and video clients; after installing the client, the user can use the communication account to freely download various multimedia on the client.
  • Files such as audio and video files, etc.
  • the client sends the media data to the server.
  • the sending, by the client, the obtaining request to the server may be sent through a Common Gateway Interface (CGI), and the server may be a webpage web server, as shown in FIG. 5, that is, the client sends the media data to the web server.
  • CGI Common Gateway Interface
  • CGI is an interface standard between an external application and a web server, and is a procedure for transferring information between an external application and a web server.
  • the media data may be attribute information of the multimedia file, such as a name, an author, a creation time, and the like of the multimedia file, and may also be audio and video data of the multimedia file, and the like.
  • the client that is logged in to the communication account does not belong to the terminal platform. As long as the communication account is logged in to the client of the terminal platform, the media data acquisition request is sent to obtain the historical download media data.
  • the server parses the communication account carried in the acquisition request according to the acquisition request sent by the client, and obtains historical download media data to be output associated with the communication account, and the history to be output associated with the communication account.
  • the downloading media data is media data of the multimedia file downloaded by the communication account in each terminal platform history, and the media data of the multimedia file may be attribute information of the multimedia file, for example, if the multimedia file is a song, the media data may include a song name, a song. Albums and lyrics, etc.
  • the client displays the name of each song downloaded by the communication account history and the singer of the song.
  • the historical download media data to be output may be the media data of all the multimedia files of the download history associated with the account, or may be the media data of a part of the multimedia file of the download history associated with the communication account.
  • the historical download media data to be output is the media data of the historical download song
  • the historical download media data to be output may be the name and singer of all the songs downloaded by the communication account history, or may be the communication account history download.
  • the part of the song may refer to a song downloaded within a preset time period, such as a song downloaded within a week or a month. Of course, it can also be a certain number of songs, such as 10 or 15 songs, so that they can be displayed on the same page for easy viewing.
  • the CGI obtains the historical download media data to be output associated with the communication account from the Cloud Key Value (CKV).
  • the historical download media data may be encapsulated by the application layer protocol, and when the historical download media data to be output associated with the communication account is obtained, the historical download media data encapsulated by the application layer protocol is decoded to obtain each history. The specific media data is downloaded, and the requested historical download media data to be output is returned to the client.
  • the server returns the obtained historical download media data to be output to the client for output, and the specific output manner may be determined according to the existence form of the historical download media data, for example, if the historical download media data is multimedia The attribute information (song name and singer) of the file, the client displays the history to download the media data. If the historical download media data is audio and video data of the multimedia file, the client plays the historical download media data. In this way, the pass can be The historical download media data of the multimedia file downloaded by the user on different terminal platforms is outputted, so that the user can quickly learn the download history of the communication account, thereby further operating the multimedia data of the download history, for example, Download, share, bookmark, play, and more.
  • the download history may be marked according to the terminal that performs the download operation, such as when a certain song is downloaded using the current login terminal, a certain song is downloaded by using another terminal, and the like, thereby preventing the user from repeatedly downloading the song.
  • the client when the client outputs the historical download media data, the client may output the information according to the paging mechanism. For example, if the historical download media data to be output is song information of a plurality of songs, the song information may be displayed in pagination, and the terminal screen may display song information of a plurality of songs in one page.
  • the client receives the media data acquisition request sent by the client, and the acquisition request carries the communication account, and obtains the historical download media data to be output associated with the communication account according to the acquisition request.
  • the obtained historical download media data to be output is returned to the client for output, which can realize the historical download media data associated with the communication account after the communication account is logged in by the client of different platforms, which is convenient for the user to use. , practical.
  • FIG. 2 is a flowchart of a data output method according to an embodiment of the present invention; the method may include the following steps S200-S203.
  • the client After the communication account is logged in, the client receives the media data acquisition request sent by the client, where the acquisition request carries the communication account;
  • step S200 of the embodiment of the present invention refer to the step S100 of the embodiment of FIG. 1 , and details are not described herein again.
  • the historical download media data identified by the data identifier of each historical download record in the plurality of historical download records in the historical download record corresponding to the communication account is read from the storage system.
  • the client transmits the communication account and the data identifier of the audio and video file to the background service program of the server, as shown in FIG. 5 . That is, the background server that passes the communication account and data identifier to the web server.
  • the client can pass the communication account and the data identifier to the background service program through the CGI.
  • the server's background server program adds the data identifier to the history download list associated with the communication account.
  • the history download list stores all history download records of the communication account.
  • One history download record includes two fields, and one field storage directory. Data identifier of downloaded audio and video files (for example, song identification), another field stores the download time.
  • a history download record is generated each time a download is made using the communication account.
  • the history download list associated with the communication account is stored in the CKV, and the download list is stored in the CKV, and the history download list associated with each communication account is stored.
  • the download list stores up to 10,000 historical download records.
  • Tlist which is a component provided by Tencent Cloud Platform. It is a general-purpose list storage system that provides flexible list operation interfaces (sorting, classification filtering), unlimited support for list length, and self-built index and other list application peripheral functions.
  • the historical download list associated with each communication account may be encapsulated by an application layer protocol.
  • the communication account encapsulated by the application layer protocol is first used.
  • the associated history download list is decoded to obtain specific information of the history download list, thereby further obtaining historical download media data to be output.
  • the historical download media data of various audio and video files is stored in the storage system of the server.
  • various song information is stored in the storage system, and the song information application server is based on the data identifier.
  • the corresponding song information is obtained in the storage system.
  • the data identifier of the audio and video file is usually used to identify the historical download media data of the audio and video file in the storage system. Therefore, as long as the data identifier is obtained, the historical download media data can be obtained from the storage system of the server, that is, the data identifier identified in the history download list stored in the CKV can obtain the history identified by the data identifier from the storage system of the server. Download media data. The user can download the media data from the history to obtain information about the audio and video files downloaded by the history.
  • the historical download media data to be output includes historical download media data identified by data identifiers of all historical download records in the history download list;
  • the background download program associated with the communication account is read from the download list memory of the server by the background application of the server, and the data of each historical download record in the history download list is downloaded.
  • the identifier acquires historical download media data to be output, and the media data may be a name, an author, a creation time, and the like of the audio and video file.
  • step S202 of the embodiment of the present invention refer to step S102 of the embodiment of FIG. 1 , and details are not described herein again.
  • the server in order to enable the user to quickly know the number of historical download records, the server counts the total number of records of the historical download records in the history download list, and returns the sum of the records to the client, and the client receives the number. After the total number of records is recorded, the output can be performed, and the output mode can be displayed.
  • the client receives the media data acquisition request sent by the client, and the acquisition request carries the communication account, and obtains the historical download media data to be output associated with the communication account according to the acquisition request.
  • the obtained historical download media data to be output is returned to the client for output, which can realize the historical download media data associated with the communication account after the communication account is logged in by the client of different platforms, which is convenient for the user to use. , practical.
  • FIG. 3 is a flowchart of a data output method according to an embodiment of the present invention.
  • the method may include the following steps S300-S303.
  • step S300 of the embodiment of the present invention refer to the step S100 of the embodiment of FIG. 1 , and details are not described herein again.
  • the obtaining request includes a target number of historically downloaded media data that is pre-output by the client;
  • the historical download media data to be output that is associated with the communication account including:
  • the historical download list is followed.
  • the downloading time of each historical download record is sequentially sorted, and the historical download records are sorted, and the historical download records that are farther away from the current time are sorted, and the historical download records that are closer to the current time are sorted.
  • the obtaining request includes historical download media data of a target time period pre-output by the client;
  • the historical download media data to be output that is associated with the communication account including:
  • the media data acquisition request includes historical download media data of a target time period pre-output by the client, for example, the client pre-outputs on June 11, 2015, 12:00-June 13, 2015, 12:00
  • the target history download record whose download time belongs to the preset time period is selected from the history download list, and the target history download record may include multiple history download records, or may include only one history download record.
  • the historical download media data to be output is obtained from the storage system according to the data identifier in the target history download record. For example, if the data identifier is a song identifier, the song information identified by the song identifier is obtained from the storage system.
  • step S302 of the embodiment of the present invention refer to step S102 of the embodiment of FIG. 1 , and details are not described herein again.
  • the operation instruction when receiving an operation instruction sent by the client, the operation instruction carries a target data identifier, and searches for a history download record matching the target data identifier from the history download list, and according to the operation instruction The historical download record matching the target data identifier is operated.
  • the user can perform operations on the historical download media data through the client, for example, delete, download, share, play, and collect.
  • the client sends an operation instruction to the server, where the operation instruction carries the target data identifier for performing the operation, and searches for the historical download record matching the target data identifier from the history download list associated with the communication account, and then according to the operation Directed in the directive
  • the illustrated operation operates on a historical download record that matches the target data identifier. For example, if it is a delete operation, all history download records in the history download list that match the target data identifier are deleted.
  • the client receives the media data acquisition request sent by the client, and the acquisition request carries the communication account, and obtains the historical download media data to be output associated with the communication account according to the acquisition request.
  • the obtained historical download media data to be output is returned to the client for output, which can realize the historical download media data associated with the communication account after the communication account is logged in by the client of different platforms, which is convenient for the user to use. , practical.
  • a data output device according to an embodiment of the present invention will be described in detail below with reference to FIG. 6 to FIG.
  • FIG. 6 is a schematic structural diagram of a data output apparatus according to an embodiment of the present invention.
  • the apparatus may include: a receiving module 100, an obtaining module 101, and a returning module 102;
  • the receiving module 100 is configured to receive a media data acquisition request sent by the client after the communication account is logged in, the acquiring request carrying the communication account;
  • the client may be a media client, such as various music clients and video clients; after installing the client, the user can use the communication account to freely download various multimedia on the client.
  • Files such as audio and video files, etc.
  • the client sends the media data to the server.
  • the sending, by the client, the obtaining request to the server may be sent through a Common Gateway Interface (CGI), and the server may be a webpage web server, as shown in FIG. 5, that is, the client sends the media data to the web server.
  • CGI Common Gateway Interface
  • CGI is an interface standard between an external application and a web server, and is a procedure for transferring information between an external application and a web server.
  • the media data may be a name, an author, a creation time, audio and video data of the multimedia file, and the like of the multimedia file.
  • the client that is logged in to the communication account does not belong to the terminal platform. As long as the communication account is logged in to the client of the terminal platform, the media data acquisition request is sent to obtain the historical download media data.
  • the obtaining module 101 is configured to acquire, according to the obtaining request, a to-be-connected association with the communication account Download historical media data;
  • the server obtaining module 101 parses the communication account carried in the acquisition request according to the acquisition request sent by the client, and acquires historical download media data to be output associated with the communication account, and is associated with the communication account.
  • the output history data is the media data of the multimedia file downloaded by the communication account in each terminal platform history.
  • the media data of the multimedia file may be attribute information of the multimedia file. For example, if the multimedia file is a song, the media data may include a song. Name, song album and lyrics, etc. As shown in FIG. 4, the client displays the name of each song downloaded by the communication account history and the singer of the song.
  • the historical download media data to be output may be the media data of all the multimedia files of the download history associated with the account, or may be the media data of a part of the multimedia file of the download history associated with the communication account.
  • the historical download media data to be output is the media data of the historical download song
  • the historical download media data to be output may be the name and singer of all the songs downloaded by the communication account history, or may be the communication account history download. Part of the song's song name and singer.
  • the CGI obtains the historical download media data to be output associated with the communication account from the Cloud Key Value (CKV).
  • the historical download media data may be encapsulated by the application layer protocol, and when the historical download media data to be output associated with the communication account is obtained, the historical download media data encapsulated by the application layer protocol is decoded to obtain each history. The specific media data is downloaded, and the requested historical download media data to be output is returned to the client.
  • the obtaining module 101 obtains historical download media data to be output. There are three alternative implementation modes:
  • the historical download media data to be output includes historical download media data identified by data identifiers of all historical download records in the history download list;
  • the obtaining module 101 is specifically configured to read the historical download 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 from the storage system.
  • the client transmits the data identifier of the communication account and the audio and video file to the background of the server.
  • the service program is the background server that passes the communication account and data identification to the web server.
  • the client can pass the communication account and the data identifier to the background service program through the CGI.
  • the server's background server program adds the data identifier to the history download list associated with the communication account.
  • the history download list stores all history download records of the communication account.
  • One history download record includes two fields, and one field storage directory.
  • the data ID of the downloaded audio and video file (such as the song ID), and the other field stores the download time.
  • a history download record is generated each time a download is made using the communication account.
  • the history download list associated with the communication account is stored in the CKV, and the download list is stored in the CKV, and the history download list associated with each communication account is stored.
  • the download list stores up to 10,000 historical download records.
  • Tlist which is a component provided by Tencent Cloud Platform. It is a general-purpose list storage system that provides flexible list operation interfaces (sorting, classification filtering), unlimited support for list length, and self-built index and other list application peripheral functions.
  • the historical download list associated with each communication account may be encapsulated by an application layer protocol.
  • the communication account encapsulated by the application layer protocol is first used.
  • the associated history download list is decoded to obtain specific information of the history download list, thereby further obtaining historical download media data to be output.
  • the historical download media data of various audio and video files is stored in the storage system of the server.
  • various song information is stored in the storage system, and the song information application server is based on the data identifier.
  • the corresponding song information is obtained in the storage system.
  • the data identifier of the audio and video file is usually used to identify the historical download media data of the audio and video file in the storage system. Therefore, as long as the data identifier is obtained, the historical download media data can be obtained from the storage system of the server, that is, the data identifier identified in the history download list stored in the CKV can obtain the history identified by the data identifier from the storage system of the server. Download media data. The user can download the media data from the history to obtain information about the audio and video files downloaded by the history.
  • the obtaining module 101 When receiving the media data acquisition request of the client, the obtaining module 101 reads the history download list associated with the communication account from the download list memory of the server through the background application of the server, and downloads each history through the history download list.
  • the recorded data identifier acquires historical download media data to be output, and the media data may be a name, an author, a creation time, and the like of the audio and video file.
  • the obtaining module 101 includes:
  • the sorting unit 1010 is configured to sort the historical download records according to the download time sequence of each historical download record in the history download list, and obtain a target history download record sorted by the last target number;
  • the obtaining unit 1011 is configured to obtain the historical download media data to be output from the storage system according to the data identifier in the target history download record.
  • the sorting unit 1010 downloads each history according to the history download list.
  • the downloading time of the records is sequenced, and the historical download records are sorted, and the historical download records that are farther away from the current time are sorted, and the historical download records that are closer to the current time are sorted.
  • the history of downloading media data is sorted in the last target number, that is, a preset number of target history download records that are closest to the current time.
  • the obtaining request includes historical download media data of a target time period pre-output by the client;
  • the obtaining module 101 is specifically configured to select, from the history download list, a target history download record whose download time belongs to the preset time period, and obtain a location from the storage system according to the data identifier in the target history download record.
  • the history of the output is downloaded to download media data.
  • the media data acquisition request includes historical download media data of a target time period pre-output by the client, for example, the client pre-outputs on June 11, 2015, 12:00-June 13, 2015, 12:00
  • the history downloading media data is obtained, and the obtaining module 101 selects, from the history download list, a target history download record whose download time belongs to the preset time period, and the target history download record may include multiple history download records, or may include only one history. Download the record.
  • the historical download media data to be output is obtained from the storage system according to the data identifier in the target history download record. For example, if the data identifier is a song identifier, the song information identified by the song identifier is obtained from the storage system.
  • the returning module 102 is configured to return the historical download media data to be output to the client for output.
  • the server returning module 102 returns the obtained historical download media data to be output to the client for output, and the specific output manner may be determined according to the existence form of the historical download media data, for example, if the historical download media
  • the data is the attribute information (song name and singer) of the multimedia file
  • the client displays the history download media data.
  • the historical download media data is audio and video data of the multimedia file
  • the client plays the historical download media data.
  • the multimedia data is manipulated, for example, downloaded, shared, bookmarked, played, and the like.
  • the client when the client outputs the historical download media data, the client may output the information according to the paging mechanism. For example, if the historical download media data to be output is song information of a plurality of songs, the song information may be displayed in pagination, and the terminal screen may display song information of a plurality of songs in one page.
  • the device further includes a statistics module 103;
  • the statistics module 103 is configured to collect a total of the number of records of the plurality of historical download records in the history download list, and return the sum of the number of records to the client for output.
  • the server statistics module 103 counts the total number of records of the historical download records in the history download list, and returns the sum of the records to the client, the client. After receiving the sum of the number of records, the output can be performed, and the output mode can be displayed.
  • the device further includes an operation module 104;
  • the operation module 104 is configured to: when receiving an operation instruction sent by the client, the operation instruction carries a target data identifier, and the historical download record matching the target data identifier is searched from the history download list, and according to the The operation instruction operates on the historical download record that matches the target data identifier.
  • the user can perform operations on the historical download media data through the client, for example, delete, download, share, play, and collect.
  • the client sends an operation instruction to the server, where the operation instruction carries the target data identifier for performing the operation, and the operation module 104 searches for the history download record matching the target data identifier from the history download list associated with the communication account. Then according to the operation The operation indicated in the instruction operates on the history download record matching the target data identifier. For example, if it is a delete operation, all history download records in the history download list that match the target data identifier are deleted.
  • the client receives the media data acquisition request sent by the client, and the acquisition request carries the communication account, and obtains the historical download media data to be output associated with the communication account according to the acquisition request.
  • the obtained historical download media data to be output is returned to the client for output, which can realize the historical download media data associated with the communication account after the communication account is logged in by the client of different platforms, which is convenient for the user to use. , practical.
  • FIG. 6 The program corresponding to the module of the data output device shown in FIG. 7 can be stored in a readable storage medium of the data output device and executed by at least one processor in the data output device to implement the above data output method, the method
  • the processes described in the various method embodiments of Figures 1 through 2 are included.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
  • FIG. 8 is a block diagram of a data output device 800, according to an exemplary embodiment.
  • device 800 can be provided as a server.
  • apparatus 800 includes a processing component 822 that further includes one or more processors, and memory resources represented by memory 832 for storing instructions executable by processing component 822, such as an application.
  • An application stored in memory 832 may include one or more modules each corresponding to a set of instructions.
  • processing component 822 is configured to execute instructions to perform the data output method described above.
  • Device 800 may also include a power supply component 826 configured to perform power management of device 800, a wired or wireless network interface 850 configured to connect device 800 to the network, and an input/output (I/O) interface 858.
  • Device 800 may operate based on an operating system stored in the memory 832, for example, Windows Server TM, Mac OS X TM , Unix TM, Linux TM, FreeBSD TM or the like.
  • a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Provided are a data output method and apparatus. The method may comprise: after a communication account is logged in at a client, receiving a media data acquisition request sent by the client, wherein the acquisition request carries the communication account; acquiring historical download media data to be output and associated with the communication account according to the acquisition request; and returning the historical download media data to be output to the client for output. By means of the present invention, after a communication account is logged into by clients on different platforms, historical download media data associated with the communication account may be immediately output, thereby facilitating use by the user and having strong practicability.

Description

一种数据输出方法及装置Data output method and device
本申请要求于2015年7月30日提交中国专利局、申请号为2015104602067、发明名称为“一种数据输出方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 2015104602067, entitled "A Data Output Method and Apparatus", filed on July 30, 2015, the entire contents of .
技术领域Technical field
本发明涉及通信技术领域,具体涉及一种数据输出方法及装置。The present invention relates to the field of communications technologies, and in particular, to a data output method and apparatus.
背景技术Background technique
随着通信技术的发展,各种客户端应运而生,例如各种音乐客户端、视频客户端,用户可以利用自己的通信账号在各种平台的客户端登录后实现各种操作,例如用户可以利用自己的通信账号在手机的音乐客户端下载音频,也可以利用自己的通信账号在个人电脑的音乐客户端下载音频。但是现有技术中,用户在某一个平台的客户端利用该通信账号下载音视频后,在其它平台的客户端上无法看到该通信账号的历史下载媒体数据。With the development of communication technology, various clients have emerged. For example, various music clients and video clients, users can use their own communication accounts to perform various operations after logging in on various platforms, for example, users can Use your own communication account to download audio on your phone's music client, or you can use your own communication account to download audio on your PC's music client. However, in the prior art, after the user downloads the audio and video by using the communication account on the client of a certain platform, the historical download media data of the communication account cannot be seen on the client of the other platform.
发明内容Summary of the invention
本发明实施例提供一种数据输出方法及装置,可实现通信账号在不同平台的客户端登录后即可输出与该通信账号关联的历史下载媒体数据,方便用户使用,实用性强。The embodiment of the invention provides a data output method and device, which can realize the historical download media data associated with the communication account after the communication account is registered by the client of different platforms, which is convenient for the user to use and has strong practicability.
本发明第一方面提供一种数据输出方法,可包括:A first aspect of the present invention provides a data output method, which may include:
当通信账号在客户端登录后,接收所述客户端发送的媒体数据获取请求,所述获取请求携带所述通信账号;Receiving, by the client, the media data acquisition request sent by the client, the acquisition request carrying the communication account;
根据所述获取请求,获取与所述通信账号关联的待输出的历史下载媒体数据;Acquiring, according to the obtaining request, historical download media data to be output that is associated with the communication account;
将所述待输出的历史下载媒体数据返回至所述客户端进行输出。 Returning the historical download media data to be output to the client for output.
本发明第二方面提供一种数据输出装置,可包括:A second aspect of the present invention provides a data output apparatus, which may include:
接收模块,用于当通信账号在客户端登录后,接收所述客户端发送的媒体数据获取请求,所述获取请求携带所述通信账号;a receiving module, configured to receive a media data acquisition request sent by the client after the communication account is logged in, the acquiring request carrying the communication account;
获取模块,用于根据所述获取请求,获取与所述通信账号关联的待输出的历史下载媒体数据;An obtaining module, configured to acquire, according to the obtaining request, historical download media data to be output that is associated with the communication account;
返回模块,用于将所述待输出的历史下载媒体数据返回至所述客户端进行输出。And returning a module, configured to return the historical download media data to be output to the client for output.
本发明第三方面提供一种数据输出装置,可包括:处理组件和存储器;A third aspect of the present invention provides a data output apparatus, which may include: a processing component and a memory;
存储器用于存储可由所述处理组件执行的指令,处理组件被配置为执行指令,以执行上述数据输出方法。A memory is for storing instructions executable by the processing component, the processing component being configured to execute instructions to perform the data output method described above.
实施本发明实施例,具有如下有益效果:Embodiments of the present invention have the following beneficial effects:
本发明实施例,当通信账号在客户端登录后,接收客户端发送的媒体数据获取请求,该获取请求携带该通信账号,根据获取请求,获取与通信账号关联的待输出的历史下载媒体数据,将所获取的待输出的历史下载媒体数据返回至客户端进行输出,这种方式可实现通信账号在不同平台的客户端登录后即可输出与该通信账号关联的历史下载媒体数据,方便用户使用,实用性强。In the embodiment of the present invention, after the communication account is logged in, the client receives the media data acquisition request sent by the client, and the acquisition request carries the communication account, and obtains the historical download media data to be output associated with the communication account according to the acquisition request. The obtained historical download media data to be output is returned to the client for output, which can realize the historical download media data associated with the communication account after the communication account is logged in by the client of different platforms, which is convenient for the user to use. , practical.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图1为本发明实施例提供的一种数据输出方法的流程图;FIG. 1 is a flowchart of a data output method according to an embodiment of the present invention;
图2为本发明实施例提供的另一种数据输出方法的流程图;2 is a flowchart of another data output method according to an embodiment of the present invention;
图3为本发明实施例提供的又一种数据输出方法的流程图;FIG. 3 is a flowchart of still another data output method according to an embodiment of the present invention;
图4为本发明实施例提供的一种终端显示界面示意图;4 is a schematic diagram of a terminal display interface according to an embodiment of the present invention;
图5为本发明实施例提供的一种数据输出系统框架图;FIG. 5 is a schematic diagram of a data output system according to an embodiment of the present invention; FIG.
图6为本发明实施例提供的一种数据输出装置的结构示意图; FIG. 6 is a schematic structural diagram of a data output apparatus according to an embodiment of the present disclosure;
图7为本发明实施例提供的一种获取模块的结构示意图;FIG. 7 is a schematic structural diagram of an acquiring module according to an embodiment of the present disclosure;
图8是根据一示例性实施例示出的一种数据输出装置800的框图。FIG. 8 is a block diagram of a data output device 800, according to an exemplary embodiment.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope 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 the accompanying drawings.
请参照图1,为本发明实施例提供的一种数据输出方法的流程图;该方法可包括以下步骤S100-步骤S102。FIG. 1 is a flowchart of a data output method according to an embodiment of the present invention; the method may include the following steps S100-S102.
S100,当通信账号在客户端登录后,接收所述客户端发送的媒体数据获取请求,所述获取请求携带所述通信账号;S100. After the communication account is logged in, the client receives the media data acquisition request sent by the client, where the acquisition request carries the communication account.
具体实施例中,客户端可以为媒体客户端,例如各种音乐客户端、视频客户端;各种终端在安装了客户端后,用户可以使用自己的通信账号在客户端自由的下载各种多媒体文件,例如音视频文件等等,为了使得用户在各种终端登录通信账号后都可以看到历史下载的多媒体文件的媒体数据,当通信账号在客户端登录后,客户端即向服务器发送媒体数据获取请求,该获取请求中携带通信账号。可选的,客户端向服务器发送获取请求可以是通过公共网关接口(Common Gateway Interface,CGI)发送,服务器可以是网页Web服务器,如图5所示,即是客户端向Web服务器发送媒体数据获取请求;CGI是外部应用程序与Web服务器之间的接口标准,是在外部应用程序和Web服务器之间传递信息的规程。In a specific embodiment, the client may be a media client, such as various music clients and video clients; after installing the client, the user can use the communication account to freely download various multimedia on the client. Files, such as audio and video files, etc., in order to enable the user to view the media data of the historically downloaded multimedia file after logging in to the communication account by various terminals, when the communication account is logged in at the client, the client sends the media data to the server. Obtain a request, and the acquisition request carries a communication account. Optionally, the sending, by the client, the obtaining request to the server may be sent through a Common Gateway Interface (CGI), and the server may be a webpage web server, as shown in FIG. 5, that is, the client sends the media data to the web server. Request; CGI is an interface standard between an external application and a web server, and is a procedure for transferring information between an external application and a web server.
本发明实施例中,媒体数据可以为多媒体文件的属性信息,如多媒体文件的名称、作者、创作时间等,还可以为多媒体文件的音视频数据等等。此处通信账号所登录的客户端不分终端平台,只要通信账号在终端平台的客户端登录后,即发送媒体数据获取请求用于获取历史下载媒体数据。In the embodiment of the present invention, the media data may be attribute information of the multimedia file, such as a name, an author, a creation time, and the like of the multimedia file, and may also be audio and video data of the multimedia file, and the like. The client that is logged in to the communication account does not belong to the terminal platform. As long as the communication account is logged in to the client of the terminal platform, the media data acquisition request is sent to obtain the historical download media data.
S101,根据所述获取请求,获取与所述通信账号关联的待输出的历史下载 媒体数据;S101. Acquire, according to the obtaining request, a history download to be output that is associated with the communication account. Media data;
具体实施例中,服务器根据客户端发送的获取请求,解析出获取请求中所携带的通信账号,获取与该通信账号关联的待输出的历史下载媒体数据,与该通信账号关联的待输出的历史下载媒体数据为该通信账号在各个终端平台历史下载的多媒体文件的媒体数据,多媒体文件的媒体数据可以为该多媒体文件的属性信息,例如若多媒体文件为歌曲,则媒体数据可以包括歌曲名称,歌曲专辑以及歌词等等。如图4所示,该客户端所展示的即是该通信账号历史下载的各个歌曲的名称以及歌曲的演唱者。In a specific embodiment, the server parses the communication account carried in the acquisition request according to the acquisition request sent by the client, and obtains historical download media data to be output associated with the communication account, and the history to be output associated with the communication account. The downloading media data is media data of the multimedia file downloaded by the communication account in each terminal platform history, and the media data of the multimedia file may be attribute information of the multimedia file, for example, if the multimedia file is a song, the media data may include a song name, a song. Albums and lyrics, etc. As shown in FIG. 4, the client displays the name of each song downloaded by the communication account history and the singer of the song.
本发明实施例中,待输出的历史下载媒体数据可以是该账号关联的下载历史的所有多媒体文件的媒体数据,也可以是该通信账号关联的下载历史的一部分多媒体文件的媒体数据。例如,若需要输出的历史下载媒体数据为历史下载歌曲的媒体数据,则待输出的历史下载媒体数据可以是该通信账号历史下载的所有歌曲的名称和演唱者,也可以是该通信账号历史下载的一部分歌曲的歌曲名称和演唱者,以避免对流量的浪费,也可以相应提高媒体数据的实时性。例如,该一部分歌曲可以是指预设时间段内所下载的歌曲,如一周内或一个月内所下载的歌曲等。当然,也可以是一定数目歌曲,比如10首或15首,以便显示于同一页面,便于查看。In the embodiment of the present invention, the historical download media data to be output may be the media data of all the multimedia files of the download history associated with the account, or may be the media data of a part of the multimedia file of the download history associated with the communication account. For example, if the historical download media data to be output is the media data of the historical download song, the historical download media data to be output may be the name and singer of all the songs downloaded by the communication account history, or may be the communication account history download. Part of the song's song name and singer to avoid wasting traffic, and can also improve the real-time nature of the media data. For example, the part of the song may refer to a song downloaded within a preset time period, such as a song downloaded within a week or a month. Of course, it can also be a certain number of songs, such as 10 or 15 songs, so that they can be displayed on the same page for easy viewing.
可选的,若客户端是通过CGI向服务器发送媒体数据获取请求,则CGI从云分布式存储(Cloud Key Value,CKV)获取该通信账号所关联的待输出的历史下载媒体数据。历史下载媒体数据可以是通过应用层协议进行封装,则获取该通信账号所关联的待输出的历史下载媒体数据时,即是将通过应用层协议封装的历史下载媒体数据进行解码,获得每次历史下载的具体媒体数据,再将所请求的待输出的历史下载媒体数据返回至客户端。Optionally, if the client sends a media data acquisition request to the server through the CGI, the CGI obtains the historical download media data to be output associated with the communication account from the Cloud Key Value (CKV). The historical download media data may be encapsulated by the application layer protocol, and when the historical download media data to be output associated with the communication account is obtained, the historical download media data encapsulated by the application layer protocol is decoded to obtain each history. The specific media data is downloaded, and the requested historical download media data to be output is returned to the client.
S102,将所述待输出的历史下载媒体数据返回至所述客户端进行输出。S102. Return the historical download media data to be output to the client for output.
具体实施例中,服务器将所获取的待输出的历史下载媒体数据返回至客户端进行输出,具体的输出方式可以是根据历史下载媒体数据的存在形式进行确定,例如,若历史下载媒体数据为多媒体文件的属性信息(歌曲名称以及演唱者),则客户端显示历史下载媒体数据。若历史下载媒体数据为多媒体文件的音视频数据,则客户端播放该历史下载媒体数据。采用这种方式,可以将该通 信账号所关联的,用户在不同终端平台所下载的多媒体文件的历史下载媒体数据进行输出,从而让用户快速获知该通信账号的下载历史,从而可以进一步对下载历史的多媒体数据进行操作,例如,再次下载、分享、收藏、播放等等。当然,可以根据执行下载操作的终端对下载历史进行标注,如某一首歌曲是使用当前登录终端下载的,某一首歌曲是使用另一终端下载的,等等,避免用户重复下载歌曲所造成的时间和流量的浪费。In a specific embodiment, the server returns the obtained historical download media data to be output to the client for output, and the specific output manner may be determined according to the existence form of the historical download media data, for example, if the historical download media data is multimedia The attribute information (song name and singer) of the file, the client displays the history to download the media data. If the historical download media data is audio and video data of the multimedia file, the client plays the historical download media data. In this way, the pass can be The historical download media data of the multimedia file downloaded by the user on different terminal platforms is outputted, so that the user can quickly learn the download history of the communication account, thereby further operating the multimedia data of the download history, for example, Download, share, bookmark, play, and more. Of course, the download history may be marked according to the terminal that performs the download operation, such as when a certain song is downloaded using the current login terminal, a certain song is downloaded by using another terminal, and the like, thereby preventing the user from repeatedly downloading the song. The waste of time and traffic.
需要说明的是,客户端在对历史下载媒体数据进行输出时,可以是以分页机制进行输出。例如,若待输出的历史下载媒体数据为多个歌曲的歌曲信息,则可以以分页显示歌曲信息,终端屏幕可以展示一页中多个歌曲的歌曲信息。It should be noted that when the client outputs the historical download media data, the client may output the information according to the paging mechanism. For example, if the historical download media data to be output is song information of a plurality of songs, the song information may be displayed in pagination, and the terminal screen may display song information of a plurality of songs in one page.
本发明实施例,当通信账号在客户端登录后,接收客户端发送的媒体数据获取请求,该获取请求携带该通信账号,根据获取请求,获取与通信账号关联的待输出的历史下载媒体数据,将所获取的待输出的历史下载媒体数据返回至客户端进行输出,这种方式可实现通信账号在不同平台的客户端登录后即可输出与该通信账号关联的历史下载媒体数据,方便用户使用,实用性强。In the embodiment of the present invention, after the communication account is logged in, the client receives the media data acquisition request sent by the client, and the acquisition request carries the communication account, and obtains the historical download media data to be output associated with the communication account according to the acquisition request. The obtained historical download media data to be output is returned to the client for output, which can realize the historical download media data associated with the communication account after the communication account is logged in by the client of different platforms, which is convenient for the user to use. , practical.
请参照图2,为本发明实施例提供的一种数据输出方法的流程图;该方法可包括以下步骤S200-步骤S203。FIG. 2 is a flowchart of a data output method according to an embodiment of the present invention; the method may include the following steps S200-S203.
S200,当通信账号在客户端登录后,接收所述客户端发送的媒体数据获取请求,所述获取请求携带所述通信账号;S200: After the communication account is logged in, the client receives the media data acquisition request sent by the client, where the acquisition request carries the communication account;
本发明实施例步骤S200请参照图1的实施例步骤S100,在此不再赘述。For the step S200 of the embodiment of the present invention, refer to the step S100 of the embodiment of FIG. 1 , and details are not described herein again.
S201,从存储系统中读取所述通信账号对应的历史下载列表中的所述多个历史下载记录中每个历史下载记录的数据标识所标识的历史下载媒体数据。S201. The historical download media data identified by the data identifier of each historical download record in the plurality of historical download records in the historical download record corresponding to the communication account is read from the storage system.
具体实施例中,当用户在终端的客户端通过自己的通信账号下载音视频文件后,客户端即将该通信账号和该音视频文件的数据标识传递给服务器的后台服务程序,如图5所示,即是将通信账号和数据标识传递给Web服务器的后台server。可选的,客户端可以通过CGI将该通信账号和该数据标识传递后台服务程序。服务器的后台服务程序server将该数据标识添加至该通信账号关联的历史下载列表中,该历史下载列表中存储该通信账号的所有历史下载记录,一个历史下载记录包括两个字段,一个字段存储所下载的音视频文件的数据标识 (例如歌曲标识),另一个字段存储下载时间。利用该通信账号每进行一次下载即产生一个历史下载记录。如图5所示,该通信账号关联的历史下载列表存储在CKV里面,在CKV里面进行下载列表存储,存储了各个通信账号所关联的历史下载列表,目前在CKV里面控制每个通信账号的历史下载列表中最多存储一万条历史下载记录,当超过一万条历史下载记录时,会把离当前时刻最远的历史下载记录迁移存储至Tlist,Tlist是腾讯云平台提供的一个组件。是一种通用列表存储系统,提供灵活的列表操作接口(排序、分类过滤),可无限支持列表长度,提供自建索引等列表应用外围功能。In a specific embodiment, after the user downloads the audio and video file through the communication account of the terminal, the client transmits the communication account and the data identifier of the audio and video file to the background service program of the server, as shown in FIG. 5 . That is, the background server that passes the communication account and data identifier to the web server. Optionally, the client can pass the communication account and the data identifier to the background service program through the CGI. The server's background server program adds the data identifier to the history download list associated with the communication account. The history download list stores all history download records of the communication account. One history download record includes two fields, and one field storage directory. Data identifier of downloaded audio and video files (for example, song identification), another field stores the download time. A history download record is generated each time a download is made using the communication account. As shown in FIG. 5, the history download list associated with the communication account is stored in the CKV, and the download list is stored in the CKV, and the history download list associated with each communication account is stored. Currently, the history of each communication account is controlled in the CKV. The download list stores up to 10,000 historical download records. When there are more than 10,000 historical download records, the historical download records farthest from the current time are migrated to Tlist, which is a component provided by Tencent Cloud Platform. It is a general-purpose list storage system that provides flexible list operation interfaces (sorting, classification filtering), unlimited support for list length, and self-built index and other list application peripheral functions.
可选的,各个通信账号所关联的历史下载列表可以通过应用层协议进行封装,当需要获取该通信账号所关联的待输出的历史下载媒体数据时,首先将利用应用层协议封装的该通信账号所关联的历史下载列表进行解码,获得历史下载列表的具体信息,从而进一步获取待输出的历史下载媒体数据。Optionally, the historical download list associated with each communication account may be encapsulated by an application layer protocol. When the historical download media data to be output associated with the communication account needs to be acquired, the communication account encapsulated by the application layer protocol is first used. The associated history download list is decoded to obtain specific information of the history download list, thereby further obtaining historical download media data to be output.
本发明实施例中,在服务器的存储系统中存储了各种音视频文件的历史下载媒体数据,如图5所示,存储系统中存储了各种歌曲信息,歌曲信息应用程序server根据数据标识从存储系统中获取相应的歌曲信息。通常采用音视频文件的数据标识来标识存储系统中该音视频文件的历史下载媒体数据。因此只要获得数据标识即可从服务器的存储系统中获得历史下载媒体数据,即是通过CKV里面所存储的历史下载列表中的数据标识即可从服务器的存储系统中获得该数据标识所标识的历史下载媒体数据。用户可以从历史下载媒体数据获知历史下载的音视频文件的相关信息。In the embodiment of the present invention, the historical download media data of various audio and video files is stored in the storage system of the server. As shown in FIG. 5, various song information is stored in the storage system, and the song information application server is based on the data identifier. The corresponding song information is obtained in the storage system. The data identifier of the audio and video file is usually used to identify the historical download media data of the audio and video file in the storage system. Therefore, as long as the data identifier is obtained, the historical download media data can be obtained from the storage system of the server, that is, the data identifier identified in the history download list stored in the CKV can obtain the history identified by the data identifier from the storage system of the server. Download media data. The user can download the media data from the history to obtain information about the audio and video files downloaded by the history.
可选的,若所述待输出的历史下载媒体数据包括所述历史下载列表中所有历史下载记录的数据标识所标识的历史下载媒体数据;Optionally, if the historical download media data to be output includes historical download media data identified by data identifiers of all historical download records in the history download list;
当接收到客户端的媒体数据获取请求时,即通过服务器的后台应用程序从服务器的下载列表存储器中读取该通信账号所关联的历史下载列表,并通过历史下载列表中每个历史下载记录的数据标识获取待输出的历史下载媒体数据,该媒体数据可以为音视频文件的名称、作者以及创作时间等等。When receiving the media data acquisition request of the client, the background download program associated with the communication account is read from the download list memory of the server by the background application of the server, and the data of each historical download record in the history download list is downloaded. The identifier acquires historical download media data to be output, and the media data may be a name, an author, a creation time, and the like of the audio and video file.
S202,将所述待输出的历史下载媒体数据返回至所述客户端进行输出。S202. Return the historical download media data to be output to the client for output.
本发明实施例步骤S202请参照图1的实施例步骤S102,在此不再赘述。For the step S202 of the embodiment of the present invention, refer to step S102 of the embodiment of FIG. 1 , and details are not described herein again.
S203,统计所述历史下载列表中所述多个历史下载记录的记录个数总和, 并将所述记录个数总和返回至所述客户端进行输出。S203. Count the total number of records of the plurality of historical download records in the history download list. And returning the sum of the records to the client for output.
具体实施例中,为了能够让用户快速获知历史下载记录的个数,服务器统计历史下载列表中历史下载记录的记录个数总和,并将该记录个数总和返回至客户端,客户端接收到该记录个数总和后,即可以进行输出,输出方式可以是进行显示。In a specific embodiment, in order to enable the user to quickly know the number of historical download records, the server counts the total number of records of the historical download records in the history download list, and returns the sum of the records to the client, and the client receives the number. After the total number of records is recorded, the output can be performed, and the output mode can be displayed.
本发明实施例,当通信账号在客户端登录后,接收客户端发送的媒体数据获取请求,该获取请求携带该通信账号,根据获取请求,获取与通信账号关联的待输出的历史下载媒体数据,将所获取的待输出的历史下载媒体数据返回至客户端进行输出,这种方式可实现通信账号在不同平台的客户端登录后即可输出与该通信账号关联的历史下载媒体数据,方便用户使用,实用性强。In the embodiment of the present invention, after the communication account is logged in, the client receives the media data acquisition request sent by the client, and the acquisition request carries the communication account, and obtains the historical download media data to be output associated with the communication account according to the acquisition request. The obtained historical download media data to be output is returned to the client for output, which can realize the historical download media data associated with the communication account after the communication account is logged in by the client of different platforms, which is convenient for the user to use. , practical.
请参照图3,为本发明实施例提供的一种数据输出方法的流程图;该方法可包括以下步骤S300-步骤S303。Please refer to FIG. 3, which is a flowchart of a data output method according to an embodiment of the present invention; the method may include the following steps S300-S303.
S300,当通信账号在客户端登录后,接收所述客户端发送的媒体数据获取请求,所述获取请求携带所述通信账号;S300, after the communication account is logged in to the client, receiving a media data acquisition request sent by the client, where the acquisition request carries the communication account;
本发明实施例步骤S300请参照图1的实施例步骤S100,在此不再赘述。For the step S300 of the embodiment of the present invention, refer to the step S100 of the embodiment of FIG. 1 , and details are not described herein again.
S301,根据所述获取请求,获取与所述通信账号关联的待输出的历史下载媒体数据;S301. Acquire, according to the obtaining request, historical output media data to be output that is associated with the communication account.
可选的,若所述获取请求包括所述客户端预输出的历史下载媒体数据的目标个数;Optionally, if the obtaining request includes a target number of historically downloaded media data that is pre-output by the client;
所述根据所述获取请求,获取与所述通信账号关联的待输出的历史下载媒体数据,包括:Acquiring, according to the obtaining request, the historical download media data to be output that is associated with the communication account, including:
按照所述历史下载列表中各个历史下载记录的下载时间先后顺序,将所述各个历史下载记录进行排序,并获取排序在最后的所述目标个数的目标历史下载记录;And sorting, according to a download time sequence of each historical download record in the history download list, sorting the historical download records, and acquiring a target history download record sorted by the last target number;
根据所述目标历史下载记录中的数据标识从存储系统中获取所述待输出的历史下载媒体数据。Obtaining the historical download media data to be output from the storage system according to the data identifier in the target history download record.
具体实施例中,若媒体数据获取请求中包括客户端预输出的历史下载媒体数据的目标个数(例如,包括预输出的音乐曲目个数),则按照历史下载列表 中各个历史下载记录的下载时间先后顺序,将各个历史下载记录进行排序,排序在前的为离当前时刻较远的历史下载记录,排序在后的为离当前时刻较近的历史下载记录。获取排序在最后的目标个数的目标历史下载记录,即是离当前时刻最近的预设个数的目标历史下载记录,根据目标历史下载记录中的数据标识从存储系统中获取待输出的历史下载媒体数据。In a specific embodiment, if the media data acquisition request includes the target number of historically downloaded media data pre-outputted by the client (for example, including the number of pre-outputted music tracks), the historical download list is followed. The downloading time of each historical download record is sequentially sorted, and the historical download records are sorted, and the historical download records that are farther away from the current time are sorted, and the historical download records that are closer to the current time are sorted. Obtaining a target history download record sorted at the last target number, that is, a preset history download record of the preset number closest to the current time, and obtaining a history download to be output from the storage system according to the data identifier in the target history download record Media data.
可选的,若所述获取请求包括所述客户端预输出的目标时间段的历史下载媒体数据;Optionally, if the obtaining request includes historical download media data of a target time period pre-output by the client;
所述根据所述获取请求,获取与所述通信账号关联的待输出的历史下载媒体数据,包括:Acquiring, according to the obtaining request, the historical download media data to be output that is associated with the communication account, including:
从所述历史下载列表中选取下载时间属于所述预设时间段内的目标历史下载记录,并根据所述目标历史下载记录中的数据标识从存储系统中获取所述待输出的历史下载媒体数据。Selecting, from the history download list, a target history download record whose download time belongs to the preset time period, and acquiring the historical download media data to be output from the storage system according to the data identifier in the target history download record. .
具体实施例中,若媒体数据获取请求中包括客户端预输出的目标时间段的历史下载媒体数据,例如客户端预输出2015年6月11日12:00-2015年6月13日12:00内的历史下载媒体数据,则从历史下载列表中选取下载时间属于该预设时间段内的目标历史下载记录,目标历史下载记录可以包括多个历史下载记录,也可以只包括一个历史下载记录。根据目标历史下载记录中的数据标识从存储系统中获取待输出的历史下载媒体数据,例如若数据标识为歌曲标识,则从存储系统中获取该歌曲标识所标识的歌曲信息。In a specific embodiment, if the media data acquisition request includes historical download media data of a target time period pre-output by the client, for example, the client pre-outputs on June 11, 2015, 12:00-June 13, 2015, 12:00 If the history data is downloaded, the target history download record whose download time belongs to the preset time period is selected from the history download list, and the target history download record may include multiple history download records, or may include only one history download record. The historical download media data to be output is obtained from the storage system according to the data identifier in the target history download record. For example, if the data identifier is a song identifier, the song information identified by the song identifier is obtained from the storage system.
S302,将所述待输出的历史下载媒体数据返回至所述客户端进行输出。S302. Return the historical download media data to be output to the client for output.
本发明实施例步骤S302请参照图1的实施例步骤S102,在此不再赘述。For the step S302 of the embodiment of the present invention, refer to step S102 of the embodiment of FIG. 1 , and details are not described herein again.
S303,当接收到客户端发送的操作指令时,所述操作指令携带目标数据标识,从所述历史下载列表中查找与所述目标数据标识匹配的历史下载记录,并根据所述操作指令对所述与所述目标数据标识匹配的历史下载记录进行操作。S303, when receiving an operation instruction sent by the client, the operation instruction carries a target data identifier, and searches for a history download record matching the target data identifier from the history download list, and according to the operation instruction The historical download record matching the target data identifier is operated.
具体实施例中,将待输出的历史下载媒体数据返回至客户端输出之后,用户可以通过客户端对历史下载媒体数据进行操作,例如,进行删除、下载、分享、播放以及收藏等等操作。当用户进行操作时,客户端向服务器发送操作指令,该操作指令携带进行操作的目标数据标识,从该通信账号所关联的历史下载列表中查找与目标数据标识匹配的历史下载记录,然后根据操作指令中所指 示的操作对目标数据标识匹配的历史下载记录进行操作。例如,若为删除操作,则将历史下载列表中与目标数据标识匹配的所有历史下载记录删除。In a specific embodiment, after the historical download media data to be output is returned to the client output, the user can perform operations on the historical download media data through the client, for example, delete, download, share, play, and collect. When the user performs an operation, the client sends an operation instruction to the server, where the operation instruction carries the target data identifier for performing the operation, and searches for the historical download record matching the target data identifier from the history download list associated with the communication account, and then according to the operation Directed in the directive The illustrated operation operates on a historical download record that matches the target data identifier. For example, if it is a delete operation, all history download records in the history download list that match the target data identifier are deleted.
本发明实施例,当通信账号在客户端登录后,接收客户端发送的媒体数据获取请求,该获取请求携带该通信账号,根据获取请求,获取与通信账号关联的待输出的历史下载媒体数据,将所获取的待输出的历史下载媒体数据返回至客户端进行输出,这种方式可实现通信账号在不同平台的客户端登录后即可输出与该通信账号关联的历史下载媒体数据,方便用户使用,实用性强。In the embodiment of the present invention, after the communication account is logged in, the client receives the media data acquisition request sent by the client, and the acquisition request carries the communication account, and obtains the historical download media data to be output associated with the communication account according to the acquisition request. The obtained historical download media data to be output is returned to the client for output, which can realize the historical download media data associated with the communication account after the communication account is logged in by the client of different platforms, which is convenient for the user to use. , practical.
下面将结合附图6-附图7,对本发明实施例提供的一种数据输出装置进行详细介绍。A data output device according to an embodiment of the present invention will be described in detail below with reference to FIG. 6 to FIG.
请参阅图6,为本发明实施例提供的一种数据输出装置的结构示意图;该装置可包括:接收模块100、获取模块101以及返回模块102;FIG. 6 is a schematic structural diagram of a data output apparatus according to an embodiment of the present invention; the apparatus 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 the client after the communication account is logged in, the acquiring request carrying the communication account;
具体实施例中,客户端可以为媒体客户端,例如各种音乐客户端、视频客户端;各种终端在安装了客户端后,用户可以使用自己的通信账号在客户端自由的下载各种多媒体文件,例如音视频文件等等,为了使得用户在各种终端登录通信账号后都可以看到历史下载的多媒体文件的媒体数据,当通信账号在客户端登录后,客户端即向服务器发送媒体数据获取请求,该获取请求中携带通信账号。可选的,客户端向服务器发送获取请求可以是通过公共网关接口(Common Gateway Interface,CGI)发送,服务器可以是网页Web服务器,如图5所示,即是客户端向Web服务器发送媒体数据获取请求;CGI是外部应用程序与Web服务器之间的接口标准,是在外部应用程序和Web服务器之间传递信息的规程。In a specific embodiment, the client may be a media client, such as various music clients and video clients; after installing the client, the user can use the communication account to freely download various multimedia on the client. Files, such as audio and video files, etc., in order to enable the user to view the media data of the historically downloaded multimedia file after logging in to the communication account by various terminals, when the communication account is logged in at the client, the client sends the media data to the server. Obtain a request, and the acquisition request carries a communication account. Optionally, the sending, by the client, the obtaining request to the server may be sent through a Common Gateway Interface (CGI), and the server may be a webpage web server, as shown in FIG. 5, that is, the client sends the media data to the web server. Request; CGI is an interface standard between an external application and a web server, and is a procedure for transferring information between an external application and a web server.
本发明实施例中,媒体数据可以为多媒体文件的名称、作者、创作时间、多媒体文件的音视频数据等等。此处通信账号所登录的客户端不分终端平台,只要通信账号在终端平台的客户端登录后,即发送媒体数据获取请求用于获取历史下载媒体数据。In the embodiment of the present invention, the media data may be a name, an author, a creation time, audio and video data of the multimedia file, and the like of the multimedia file. The client that is logged in to the communication account does not belong to the terminal platform. As long as the communication account is logged in to the client of the terminal platform, the media data acquisition request is sent to obtain the historical download media data.
获取模块101,用于根据所述获取请求,获取与所述通信账号关联的待输 出的历史下载媒体数据;The obtaining module 101 is configured to acquire, according to the obtaining request, a to-be-connected association with the communication account Download historical media data;
具体实施例中,服务器获取模块101根据客户端发送的获取请求,解析出获取请求中所携带的通信账号,获取与该通信账号关联的待输出的历史下载媒体数据,与该通信账号关联的待输出的历史下载媒体数据为该通信账号在各个终端平台历史下载的多媒体文件的媒体数据,多媒体文件的媒体数据可以为该多媒体文件的属性信息,例如若多媒体文件为歌曲,则媒体数据可以包括歌曲名称,歌曲专辑以及歌词等等。如图4所示,该客户端所展示的即是该通信账号历史下载的各个歌曲的名称以及歌曲的演唱者。In a specific embodiment, the server obtaining module 101 parses the communication account carried in the acquisition request according to the acquisition request sent by the client, and acquires historical download media data to be output associated with the communication account, and is associated with the communication account. The output history data is the media data of the multimedia file downloaded by the communication account in each terminal platform history. The media data of the multimedia file may be attribute information of the multimedia file. For example, if the multimedia file is a song, the media data may include a song. Name, song album and lyrics, etc. As shown in FIG. 4, the client displays the name of each song downloaded by the communication account history and the singer of the song.
本发明实施例中,待输出的历史下载媒体数据可以是该账号关联的下载历史的所有多媒体文件的媒体数据,也可以是该通信账号关联的下载历史的一部分多媒体文件的媒体数据。例如,若需要输出的历史下载媒体数据为历史下载歌曲的媒体数据,则待输出的历史下载媒体数据可以是该通信账号历史下载的所有歌曲的名称和演唱者,也可以是该通信账号历史下载的一部分歌曲的歌曲名称和演唱者。In the embodiment of the present invention, the historical download media data to be output may be the media data of all the multimedia files of the download history associated with the account, or may be the media data of a part of the multimedia file of the download history associated with the communication account. For example, if the historical download media data to be output is the media data of the historical download song, the historical download media data to be output may be the name and singer of all the songs downloaded by the communication account history, or may be the communication account history download. Part of the song's song name and singer.
可选的,若客户端是通过CGI向服务器发送媒体数据获取请求,则CGI从云分布式存储(Cloud Key Value,CKV)获取该通信账号所关联的待输出的历史下载媒体数据。历史下载媒体数据可以是通过应用层协议进行封装,则获取该通信账号所关联的待输出的历史下载媒体数据时,即是将通过应用层协议封装的历史下载媒体数据进行解码,获得每次历史下载的具体媒体数据,再将所请求的待输出的历史下载媒体数据返回至客户端。Optionally, if the client sends a media data acquisition request to the server through the CGI, the CGI obtains the historical download media data to be output associated with the communication account from the Cloud Key Value (CKV). The historical download media data may be encapsulated by the application layer protocol, and when the historical download media data to be output associated with the communication account is obtained, the historical download media data encapsulated by the application layer protocol is decoded to obtain each history. The specific media data is downloaded, and the requested historical download media data to be output is returned to the client.
获取模块101获取待输出的历史下载媒体数据可以有三种可选的实施方式:The obtaining module 101 obtains historical download media data to be output. There are three alternative implementation modes:
在第一种可选的实施方式中,若所述待输出的历史下载媒体数据包括所述历史下载列表中所有历史下载记录的数据标识所标识的历史下载媒体数据;In a first optional implementation, if the historical download media data to be output includes historical download media data identified by data identifiers of all historical download records in the history download list;
所述获取模块101具体用于从存储系统中读取所述通信账号对应的历史下载列表中的所述多个历史下载记录中每个历史下载记录的数据标识所标识的历史下载媒体数据。The obtaining module 101 is specifically configured to read the historical download 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 from the storage system.
具体实施例中,当用户在终端的客户端通过自己的通信账号下载音视频文件后,客户端即将该通信账号和该音视频文件的数据标识传递给服务器的后台 服务程序,如图5所示,即是将通信账号和数据标识传递给Web服务器的后台server。可选的,客户端可以通过CGI将该通信账号和该数据标识传递后台服务程序。服务器的后台服务程序server将该数据标识添加至该通信账号关联的历史下载列表中,该历史下载列表中存储该通信账号的所有历史下载记录,一个历史下载记录包括两个字段,一个字段存储所下载的音视频文件的数据标识(例如歌曲标识),另一个字段存储下载时间。利用该通信账号每进行一次下载即产生一个历史下载记录。如图5所示,该通信账号关联的历史下载列表存储在CKV里面,在CKV里面进行下载列表存储,存储了各个通信账号所关联的历史下载列表,目前在CKV里面控制每个通信账号的历史下载列表中最多存储一万条历史下载记录,当超过一万条历史下载记录时,会把离当前时刻最远的历史下载记录迁移存储至Tlist,Tlist是腾讯云平台提供的一个组件。是一种通用列表存储系统,提供灵活的列表操作接口(排序、分类过滤),可无限支持列表长度,提供自建索引等列表应用外围功能。In a specific embodiment, after the user downloads the audio and video file through the communication account of the terminal, the client transmits the data identifier of the communication account and the audio and video file to the background of the server. The service program, as shown in Figure 5, is the background server that passes the communication account and data identification to the web server. Optionally, the client can pass the communication account and the data identifier to the background service program through the CGI. The server's background server program adds the data identifier to the history download list associated with the communication account. The history download list stores all history download records of the communication account. One history download record includes two fields, and one field storage directory. The data ID of the downloaded audio and video file (such as the song ID), and the other field stores the download time. A history download record is generated each time a download is made using the communication account. As shown in FIG. 5, the history download list associated with the communication account is stored in the CKV, and the download list is stored in the CKV, and the history download list associated with each communication account is stored. Currently, the history of each communication account is controlled in the CKV. The download list stores up to 10,000 historical download records. When there are more than 10,000 historical download records, the historical download records farthest from the current time are migrated to Tlist, which is a component provided by Tencent Cloud Platform. It is a general-purpose list storage system that provides flexible list operation interfaces (sorting, classification filtering), unlimited support for list length, and self-built index and other list application peripheral functions.
可选的,各个通信账号所关联的历史下载列表可以通过应用层协议进行封装,当需要获取该通信账号所关联的待输出的历史下载媒体数据时,首先将利用应用层协议封装的该通信账号所关联的历史下载列表进行解码,获得历史下载列表的具体信息,从而进一步获取待输出的历史下载媒体数据。Optionally, the historical download list associated with each communication account may be encapsulated by an application layer protocol. When the historical download media data to be output associated with the communication account needs to be acquired, the communication account encapsulated by the application layer protocol is first used. The associated history download list is decoded to obtain specific information of the history download list, thereby further obtaining historical download media data to be output.
本发明实施例中,在服务器的存储系统中存储了各种音视频文件的历史下载媒体数据,如图5所示,存储系统中存储了各种歌曲信息,歌曲信息应用程序server根据数据标识从存储系统中获取相应的歌曲信息。通常采用音视频文件的数据标识来标识存储系统中该音视频文件的历史下载媒体数据。因此只要获得数据标识即可从服务器的存储系统中获得历史下载媒体数据,即是通过CKV里面所存储的历史下载列表中的数据标识即可从服务器的存储系统中获得该数据标识所标识的历史下载媒体数据。用户可以从历史下载媒体数据获知历史下载的音视频文件的相关信息。In the embodiment of the present invention, the historical download media data of various audio and video files is stored in the storage system of the server. As shown in FIG. 5, various song information is stored in the storage system, and the song information application server is based on the data identifier. The corresponding song information is obtained in the storage system. The data identifier of the audio and video file is usually used to identify the historical download media data of the audio and video file in the storage system. Therefore, as long as the data identifier is obtained, the historical download media data can be obtained from the storage system of the server, that is, the data identifier identified in the history download list stored in the CKV can obtain the history identified by the data identifier from the storage system of the server. Download media data. The user can download the media data from the history to obtain information about the audio and video files downloaded by the history.
当接收到客户端的媒体数据获取请求时,获取模块101即通过服务器的后台应用程序从服务器的下载列表存储器中读取该通信账号所关联的历史下载列表,并通过历史下载列表中每个历史下载记录的数据标识获取待输出的历史下载媒体数据,该媒体数据可以为音视频文件的名称、作者以及创作时间等等。 When receiving the media data acquisition request of the client, the obtaining module 101 reads the history download list associated with the communication account from the download list memory of the server through the background application of the server, and downloads each history through the history download list. The recorded data identifier acquires historical download media data to be output, and the media data may be a name, an author, a creation time, and the like of the audio and video file.
在第二种可选的实施方式中,若所述获取请求包括所述客户端预输出的历史下载媒体数据的目标个数;如图7所示,所述获取模块101包括:In the second optional implementation, if the obtaining request includes the target number of the historically downloaded media data that is pre-outputted by the client; as shown in FIG. 7, the obtaining module 101 includes:
排序单元1010,用于按照所述历史下载列表中各个历史下载记录的下载时间先后顺序,将所述各个历史下载记录进行排序,并获取排序在最后的所述目标个数的目标历史下载记录;The sorting unit 1010 is configured to sort the historical download records according to the download time sequence of each historical download record in the history download list, and obtain a target history download record sorted by the last target number;
获取单元1011,用于根据所述目标历史下载记录中的数据标识从存储系统中获取所述待输出的历史下载媒体数据。The obtaining unit 1011 is configured to obtain the historical download media data to be output from the storage system according to the data identifier in the target history download record.
具体实施例中,若媒体数据获取请求中包括客户端预输出的历史下载媒体数据的目标个数(例如,包括预输出的音乐曲目个数),排序单元1010则按照历史下载列表中各个历史下载记录的下载时间先后顺序,将各个历史下载记录进行排序,排序在前的为离当前时刻较远的历史下载记录,排序在后的为离当前时刻较近的历史下载记录。获取排序在最后的目标个数的目标历史下载记录,即是离当前时刻最近的预设个数的目标历史下载记录,获取单元1011根据目标历史下载记录中的数据标识从存储系统中获取待输出的历史下载媒体数据。In a specific embodiment, if the media data acquisition request includes the target number of historically downloaded media data pre-outputted by the client (for example, including the number of pre-outputted music tracks), the sorting unit 1010 downloads each history according to the history download list. The downloading time of the records is sequenced, and the historical download records are sorted, and the historical download records that are farther away from the current time are sorted, and the historical download records that are closer to the current time are sorted. Obtaining a target history download record that is sorted in the last target number, that is, a preset number of target history download records that are closest to the current time, and the obtaining unit 1011 obtains the output to be output from the storage system according to the data identifier in the target history download record. The history of downloading media data.
在第三种可选的实施方式中,若所述获取请求包括所述客户端预输出的目标时间段的历史下载媒体数据;In a third optional implementation, if the obtaining request includes historical download media data of a target time period pre-output by the client;
所述获取模块101具体用于从所述历史下载列表中选取下载时间属于所述预设时间段内的目标历史下载记录,并根据所述目标历史下载记录中的数据标识从存储系统中获取所述待输出的历史下载媒体数据。The obtaining module 101 is specifically configured to select, from the history download list, a target history download record whose download time belongs to the preset time period, and obtain a location from the storage system according to the data identifier in the target history download record. The history of the output is downloaded to download media data.
具体实施例中,若媒体数据获取请求中包括客户端预输出的目标时间段的历史下载媒体数据,例如客户端预输出2015年6月11日12:00-2015年6月13日12:00内的历史下载媒体数据,获取模块101则从历史下载列表中选取下载时间属于该预设时间段内的目标历史下载记录,目标历史下载记录可以包括多个历史下载记录,也可以只包括一个历史下载记录。根据目标历史下载记录中的数据标识从存储系统中获取待输出的历史下载媒体数据,例如若数据标识为歌曲标识,则从存储系统中获取该歌曲标识所标识的歌曲信息。In a specific embodiment, if the media data acquisition request includes historical download media data of a target time period pre-output by the client, for example, the client pre-outputs on June 11, 2015, 12:00-June 13, 2015, 12:00 The history downloading media data is obtained, and the obtaining module 101 selects, from the history download list, a target history download record whose download time belongs to the preset time period, and the target history download record may include multiple history download records, or may include only one history. Download the record. The historical download media data to be output is obtained from the storage system according to the data identifier in the target history download record. For example, if the data identifier is a song identifier, the song information identified by the song identifier is obtained from the storage system.
返回模块102,用于将所述待输出的历史下载媒体数据返回至所述客户端进行输出。 The returning module 102 is configured to return the historical download media data to be output to the client for output.
具体实施例中,服务器返回模块102将所获取的待输出的历史下载媒体数据返回至客户端进行输出,具体的输出方式可以是根据历史下载媒体数据的存在形式进行确定,例如,若历史下载媒体数据为多媒体文件的属性信息(歌曲名称以及演唱者),则客户端显示历史下载媒体数据。若历史下载媒体数据为多媒体文件的音视频数据,则客户端播放该历史下载媒体数据。采用这种方式,可以将该通信账号所关联的,用户在不同终端平台所下载的多媒体文件的历史下载媒体数据进行输出,从而让用户快速获知该通信账号的下载历史,从而可以进一步对下载历史的多媒体数据进行操作,例如,再次下载、分享、收藏、播放等等。In a specific embodiment, the server returning module 102 returns the obtained historical download media data to be output to the client for output, and the specific output manner may be determined according to the existence form of the historical download media data, for example, if the historical download media The data is the attribute information (song name and singer) of the multimedia file, and the client displays the history download media data. If the historical download media data is audio and video data of the multimedia file, the client plays the historical download media data. In this way, the historical download media data of the multimedia file downloaded by the user on different terminal platforms can be outputted by the communication account, so that the user can quickly know the download history of the communication account, thereby further downloading the history. The multimedia data is manipulated, for example, downloaded, shared, bookmarked, played, and the like.
需要说明的是,客户端在对历史下载媒体数据进行输出时,可以是以分页机制进行输出。例如,若待输出的历史下载媒体数据为多个歌曲的歌曲信息,则可以以分页显示歌曲信息,终端屏幕可以展示一页中多个歌曲的歌曲信息。It should be noted that when the client outputs the historical download media data, the client may output the information according to the paging mechanism. For example, if the historical download media data to be output is song information of a plurality of songs, the song information may be displayed in pagination, and the terminal screen may display song information of a plurality of songs in one page.
可选的,所述装置还包括统计模块103;Optionally, the device further includes a statistics module 103;
统计模块103,用于统计所述历史下载列表中所述多个历史下载记录的记录个数总和,并将所述记录个数总和返回至所述客户端进行输出。The statistics module 103 is configured to collect a total of the number of records of the plurality of historical download records in the history download list, and return the sum of the number of records to the client for output.
具体实施例中,为了能够让用户快速获知历史下载记录的个数,服务器统计模块103统计历史下载列表中历史下载记录的记录个数总和,并将该记录个数总和返回至客户端,客户端接收到该记录个数总和后,即可以进行输出,输出方式可以是进行显示。In a specific embodiment, in order to enable the user to quickly know the number of historical download records, the server statistics module 103 counts the total number of records of the historical download records in the history download list, and returns the sum of the records to the client, the client. After receiving the sum of the number of records, the output can be performed, and the output mode can be displayed.
可选的,所述装置还包括操作模块104;Optionally, the device further includes an operation module 104;
操作模块104,用于当接收到客户端发送的操作指令时,所述操作指令携带目标数据标识,从所述历史下载列表中查找与所述目标数据标识匹配的历史下载记录,并根据所述操作指令对所述与所述目标数据标识匹配的历史下载记录进行操作。The operation module 104 is configured to: when receiving an operation instruction sent by the client, the operation instruction carries a target data identifier, and the historical download record matching the target data identifier is searched from the history download list, and according to the The operation instruction operates on the historical download record that matches the target data identifier.
具体实施例中,将待输出的历史下载媒体数据返回至客户端输出之后,用户可以通过客户端对历史下载媒体数据进行操作,例如,进行删除、下载、分享、播放以及收藏等等操作。当用户进行操作时,客户端向服务器发送操作指令,该操作指令携带进行操作的目标数据标识,操作模块104从该通信账号所关联的历史下载列表中查找与目标数据标识匹配的历史下载记录,然后根据操 作指令中所指示的操作对目标数据标识匹配的历史下载记录进行操作。例如,若为删除操作,则将历史下载列表中与目标数据标识匹配的所有历史下载记录删除。In a specific embodiment, after the historical download media data to be output is returned to the client output, the user can perform operations on the historical download media data through the client, for example, delete, download, share, play, and collect. When the user performs an operation, the client sends an operation instruction to the server, where the operation instruction carries the target data identifier for performing the operation, and the operation module 104 searches for the history download record matching the target data identifier from the history download list associated with the communication account. Then according to the operation The operation indicated in the instruction operates on the history download record matching the target data identifier. For example, if it is a delete operation, all history download records in the history download list that match the target data identifier are deleted.
本发明实施例,当通信账号在客户端登录后,接收客户端发送的媒体数据获取请求,该获取请求携带该通信账号,根据获取请求,获取与通信账号关联的待输出的历史下载媒体数据,将所获取的待输出的历史下载媒体数据返回至客户端进行输出,这种方式可实现通信账号在不同平台的客户端登录后即可输出与该通信账号关联的历史下载媒体数据,方便用户使用,实用性强。In the embodiment of the present invention, after the communication account is logged in, the client receives the media data acquisition request sent by the client, and the acquisition request carries the communication account, and obtains the historical download media data to be output associated with the communication account according to the acquisition request. The obtained historical download media data to be output is returned to the client for output, which can realize the historical download media data associated with the communication account after the communication account is logged in by the client of different platforms, which is convenient for the user to use. , practical.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,附图6-附图7所示数据输出装置的模块对应的程序可存储在数据输出装置的可读存储介质内,并被该数据输出装置中的至少一个处理器执行,以实现上述数据输出方法,该方法包括图1至图2中各方法实施例所述的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。A person skilled in the art can understand that all or part of the process of implementing the above embodiments can be completed by computer program related hardware, and the program can be stored in a computer readable storage medium, FIG. 6 The program corresponding to the module of the data output device shown in FIG. 7 can be stored in a readable storage medium of the data output device and executed by at least one processor in the data output device to implement the above data output method, the method The processes described in the various method embodiments of Figures 1 through 2 are included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
图8是根据一示例性实施例示出的一种数据输出装置800的框图。例如,装置800可以被提供为一服务器。参照图8,装置800包括处理组件822,其进一步包括一个或多个处理器,以及由存储器832所代表的存储器资源,用于存储可由处理组件822的执行的指令,例如应用程序。存储器832中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件822被配置为执行指令,以执行上述数据输出方法。FIG. 8 is a block diagram of a data output device 800, according to an exemplary embodiment. For example, device 800 can be provided as a server. Referring to Figure 8, apparatus 800 includes a processing component 822 that further includes one or more processors, and memory resources represented by memory 832 for storing instructions executable by processing component 822, such as an application. An application stored in memory 832 may include one or more modules each corresponding to a set of instructions. Additionally, processing component 822 is configured to execute instructions to perform the data output method described above.
装置800还可以包括一个电源组件826被配置为执行装置800的电源管理,一个有线或无线网络接口850被配置为将装置800连接到网络,和一个输入输出(I/O)接口858。装置800可以操作基于存储在存储器832的操作系统,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM或类似。 Device 800 may also include a power supply component 826 configured to perform power management of device 800, a wired or wireless network interface 850 configured to connect device 800 to the network, and an input/output (I/O) interface 858. Device 800 may operate based on an operating system stored in the memory 832, for example, Windows Server TM, Mac OS X TM , Unix TM, Linux TM, FreeBSD TM or the like.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。A person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium. The storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的 精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 The above is only the preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles are intended to be included within the scope of the present invention.

Claims (21)

  1. 一种数据输出方法,其特征在于,包括:A data output method, comprising:
    当通信账号在客户端登录后,接收所述客户端发送的媒体数据获取请求,所述获取请求携带所述通信账号;Receiving, by the client, the media data acquisition request sent by the client, the acquisition request carrying the communication account;
    根据所述获取请求,获取与所述通信账号关联的待输出的历史下载媒体数据;Acquiring, according to the obtaining request, historical download media data to be output that is associated with the communication account;
    将所述待输出的历史下载媒体数据返回至所述客户端进行输出。Returning the historical download media data to be output to the client for output.
  2. 如权利要求1所述的方法,其特征在于,所述通信账号对应一个历史下载列表,所述历史下载列表中包括多个历史下载记录,所述历史下载记录包括用于在存储系统中标识历史下载媒体数据的数据标识和下载时间,所述待输出的历史下载媒体数据包括所述多个历史下载记录中至少一个历史下载记录的数据标识所标识的历史下载媒体数据。The method of claim 1, wherein the communication account corresponds to a history download list, the history download list includes a plurality of history download records, and the history download record includes a history for identifying the history in the storage system. The data identification and download time of the media data is downloaded, and the historical download media data to be output includes historical download media data identified by the data identifier of at least one of the plurality of historical download records.
  3. 如权利要求2所述的方法,其特征在于,若所述待输出的历史下载媒体数据包括所述历史下载列表中所有历史下载记录的数据标识所标识的历史下载媒体数据;The method according to claim 2, wherein the historical download media data to be output includes historical download media data identified by data identifiers of all historical download records in the history download list;
    所述根据所述获取请求,获取与所述通信账号关联的待输出的历史下载媒体数据,包括:Acquiring, according to the obtaining request, the historical download media data to be output that is associated with the communication account, including:
    从存储系统中读取所述通信账号对应的历史下载列表中的所述多个历史下载记录中每个历史下载记录的数据标识所标识的历史下载媒体数据。The historical download media data identified by the data identifier of each historical download record in the plurality of historical download records in the historical download record corresponding to the communication account is read from the storage system.
  4. 如权利要求3所述的方法,其特征在于,所述方法还包括:The method of claim 3, wherein the method further comprises:
    统计所述历史下载列表中所述多个历史下载记录的记录个数总和,并将所述记录个数总和返回至所述客户端进行输出。And counting the total number of records of the plurality of historical download records in the history download list, and returning the sum of the number of records to the client for output.
  5. 如权利要求2所述的方法,其特征在于,若所述获取请求包括所述客户端预输出的历史下载媒体数据的目标个数; The method of claim 2, wherein the obtaining request comprises a target number of historically downloaded media data that is pre-output by the client;
    所述根据所述获取请求,获取与所述通信账号关联的待输出的历史下载媒体数据,包括:Acquiring, according to the obtaining request, the historical download media data to be output that is associated with the communication account, including:
    按照所述历史下载列表中各个历史下载记录的下载时间先后顺序,将所述各个历史下载记录进行排序,并获取排序在最后的所述目标个数的目标历史下载记录;And sorting, according to a download time sequence of each historical download record in the history download list, sorting the historical download records, and acquiring a target history download record sorted by the last target number;
    根据所述目标历史下载记录中的数据标识从存储系统中获取所述待输出的历史下载媒体数据。Obtaining the historical download media data to be output from the storage system according to the data identifier in the target history download record.
  6. 如权利要求2所述的方法,其特征在于,若所述获取请求包括所述客户端预输出的目标时间段的历史下载媒体数据;The method of claim 2, wherein the obtaining request comprises historical download media data of a target time period pre-output by the client;
    所述根据所述获取请求,获取与所述通信账号关联的待输出的历史下载媒体数据,包括:Acquiring, according to the obtaining request, the historical download media data to be output that is associated with the communication account, including:
    从所述历史下载列表中选取下载时间属于所述预设时间段内的目标历史下载记录,并根据所述目标历史下载记录中的数据标识从存储系统中获取所述待输出的历史下载媒体数据。Selecting, from the history download list, a target history download record whose download time belongs to the preset time period, and acquiring the historical download media data to be output from the storage system according to the data identifier in the target history download record. .
  7. 如权利要求5或6所述的方法,其特征在于,所述方法还包括:The method of claim 5 or claim 6, wherein the method further comprises:
    当接收到客户端发送的操作指令时,所述操作指令携带目标数据标识,从所述历史下载列表中查找与所述目标数据标识匹配的历史下载记录,并根据所述操作指令对所述与所述目标数据标识匹配的历史下载记录进行操作。When receiving an operation instruction sent by the client, the operation instruction carries a target data identifier, and searches for a history download record matching the target data identifier from the history download list, and compares the The target data identifies a matching historical download record to operate.
  8. 一种数据输出装置,其特征在于,包括:A data output device, comprising:
    接收模块,用于当通信账号在客户端登录后,接收所述客户端发送的媒体数据获取请求,所述获取请求携带所述通信账号;a receiving module, configured to receive a media data acquisition request sent by the client after the communication account is logged in, the acquiring request carrying the communication account;
    获取模块,用于根据所述获取请求,获取与所述通信账号关联的待输出的历史下载媒体数据;An obtaining module, configured to acquire, according to the obtaining request, historical download media data to be output that is associated with the communication account;
    返回模块,用于将所述待输出的历史下载媒体数据返回至所述客户端进行输出。 And returning a module, configured to return the historical download media data to be output to the client for output.
  9. 如权利要求8所述的装置,其特征在于,所述通信账号对应一个历史下载列表,所述历史下载列表中包括多个历史下载记录,所述历史下载记录包括用于在存储系统中标识历史下载媒体数据的数据标识和下载时间,所述待输出的历史下载媒体数据包括所述多个历史下载记录中至少一个历史下载记录的数据标识所标识的历史下载媒体数据。The device according to claim 8, wherein the communication account corresponds to a history download list, and the history download list includes a plurality of history download records, the history download record including a history for identifying the history in the storage system. The data identification and download time of the media data is downloaded, and the historical download media data to be output includes historical download media data identified by the data identifier of at least one of the plurality of historical download records.
  10. 如权利要求9所述的装置,其特征在于,若所述待输出的历史下载媒体数据包括所述历史下载列表中所有历史下载记录的数据标识所标识的历史下载媒体数据;The device according to claim 9, wherein the historical download media data to be output includes historical download media data identified by data identifiers of all historical download records in the history download list;
    所述获取模块具体用于从存储系统中读取所述通信账号对应的历史下载列表中的所述多个历史下载记录中每个历史下载记录的数据标识所标识的历史下载媒体数据。The obtaining module is configured to read the historical download 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 from the storage system.
  11. 如权利要求10所述的装置,其特征在于,所述装置还包括:The device of claim 10, wherein the device further comprises:
    统计模块,用于统计所述历史下载列表中所述多个历史下载记录的记录个数总和,并将所述记录个数总和返回至所述客户端进行输出。And a statistic module, configured to collect a total of the number of records of the plurality of historical download records in the history download list, and return the sum of the number of records to the client for output.
  12. 如权利要求9所述的装置,其特征在于,若所述获取请求包括所述客户端预输出的历史下载媒体数据的目标个数;所述获取模块包括:The device according to claim 9, wherein the obtaining request comprises a target number of historically downloaded media data that is pre-outputted by the client; the obtaining module comprises:
    排序单元,用于按照所述历史下载列表中各个历史下载记录的下载时间先后顺序,将所述各个历史下载记录进行排序,并获取排序在最后的所述目标个数的目标历史下载记录;a sorting unit, configured to sort the historical download records according to a download time sequence of each historical download record in the history download list, and obtain a target history download record sorted by the last target number;
    获取单元,用于根据所述目标历史下载记录中的数据标识从存储系统中获取所述待输出的历史下载媒体数据。And an obtaining unit, configured to acquire the historical download media data to be output from the storage system according to the data identifier in the target history download record.
  13. 如权利要求9所述的装置,其特征在于,若所述获取请求包括所述客户端预输出的目标时间段的历史下载媒体数据;The apparatus according to claim 9, wherein the acquisition request comprises historical download media data of a target time period pre-output by the client;
    所述获取模块具体用于从所述历史下载列表中选取下载时间属于所述预设时间段内的目标历史下载记录,并根据所述目标历史下载记录中的数据标识从 存储系统中获取所述待输出的历史下载媒体数据。The obtaining module is specifically configured to select, from the history download list, a target history download record whose download time belongs to the preset time period, and download the data identifier in the record according to the target history. The historical download media data to be output is obtained in the storage system.
  14. 如权利要求12或13所述的装置,其特征在于,所述装置还包括:The device according to claim 12 or 13, wherein the device further comprises:
    操作模块,用于当接收到客户端发送的操作指令时,所述操作指令携带目标数据标识,从所述历史下载列表中查找与所述目标数据标识匹配的历史下载记录,并根据所述操作指令对所述与所述目标数据标识匹配的历史下载记录进行操作。An operation module, configured to: when receiving an operation instruction sent by the client, the operation instruction carries a target data identifier, and the historical download record matching the target data identifier is searched from the history download list, and according to the operation The instruction operates on the historical download record that matches the target data identifier.
  15. 一种数据输出装置,可包括:处理组件和存储器;A data output device can include: a processing component and a memory;
    所述存储器用于存储可由所述处理组件执行的指令,所述处理组件被配置为执行指令,以执行下述操作:The memory is for storing instructions executable by the processing component, the processing component being configured to execute instructions to perform the operations of:
    当通信账号在客户端登录后,接收所述客户端发送的媒体数据获取请求,所述获取请求携带所述通信账号;根据所述获取请求,获取与所述通信账号关联的待输出的历史下载媒体数据;将所述待输出的历史下载媒体数据返回至所述客户端进行输出。Receiving, by the client, the media data acquisition request sent by the client, the obtaining request carrying the communication account; and acquiring, according to the obtaining request, the historical download to be output associated with the communication account Media data; returning the historical download media data to be output to the client for output.
  16. 如权利要求15所述的装置,其特征在于,所述通信账号对应一个历史下载列表,所述历史下载列表中包括多个历史下载记录,所述历史下载记录包括用于在存储系统中标识历史下载媒体数据的数据标识和下载时间,所述待输出的历史下载媒体数据包括所述多个历史下载记录中至少一个历史下载记录的数据标识所标识的历史下载媒体数据。The device according to claim 15, wherein the communication account corresponds to a history download list, and the history download list includes a plurality of history download records, wherein the history download record includes a history for identifying the history in the storage system. The data identification and download time of the media data is downloaded, and the historical download media data to be output includes historical download media data identified by the data identifier of at least one of the plurality of historical download records.
  17. 如权利要求16所述的装置,其特征在于,所述处理组件被配置为执行指令,以执行下述操作:The apparatus of claim 16 wherein said processing component is configured to execute instructions to perform the operations of:
    若所述待输出的历史下载媒体数据包括所述历史下载列表中所有历史下载记录的数据标识所标识的历史下载媒体数据;从存储系统中读取所述通信账号对应的历史下载列表中的所述多个历史下载记录中每个历史下载记录的数据标识所标识的历史下载媒体数据。If the historical download media data to be output includes the historical download media data identified by the data identifiers of all the historical download records in the history download list; and read the history download list corresponding to the communication account from the storage system. The historical download media data identified by the data identifier of each historical download record in the plurality of historical download records.
  18. 如权利要求17所述的装置,其特征在于,所述处理组件被配置为执行 指令,以执行下述操作:The device of claim 17 wherein said processing component is configured to execute Instructions to do the following:
    统计所述历史下载列表中所述多个历史下载记录的记录个数总和,并将所述记录个数总和返回至所述客户端进行输出。And counting the total number of records of the plurality of historical download records in the history download list, and returning the sum of the number of records to the client for output.
  19. 如权利要求16所述的装置,其特征在于,所述处理组件被配置为执行指令,以执行下述操作:The apparatus of claim 16 wherein said processing component is configured to execute instructions to perform the operations of:
    若所述获取请求包括所述客户端预输出的历史下载媒体数据的目标个数;按照所述历史下载列表中各个历史下载记录的下载时间先后顺序,将所述各个历史下载记录进行排序,并获取排序在最后的所述目标个数的目标历史下载记录;If the obtaining request includes the target number of the historical download media data pre-outputted by the client; sorting the historical download records according to the downloading time sequence of each historical download record in the historical download list, and Obtaining a target history download record sorted at the last target number;
    根据所述目标历史下载记录中的数据标识从存储系统中获取所述待输出的历史下载媒体数据。Obtaining the historical download media data to be output from the storage system according to the data identifier in the target history download record.
  20. 如权利要求16所述的装置,其特征在于,所述处理组件被配置为执行指令,以执行下述操作:The apparatus of claim 16 wherein said processing component is configured to execute instructions to perform the operations of:
    若所述获取请求包括所述客户端预输出的目标时间段的历史下载媒体数据;从所述历史下载列表中选取下载时间属于所述预设时间段内的目标历史下载记录,并根据所述目标历史下载记录中的数据标识从存储系统中获取所述待输出的历史下载媒体数据。If the acquisition request includes historical download media data of a target time period pre-outputted by the client, selecting, from the history download list, a target history download record whose download time belongs within the preset time period, and according to the The data identifier in the target history download record acquires the historical download media data to be output from the storage system.
  21. 如权利要求19或20所述的装置,其特征在于,所述处理组件被配置为执行指令,以执行下述操作:The apparatus of claim 19 or 20, wherein the processing component is configured to execute an instruction to perform the operations of:
    当接收到客户端发送的操作指令时,所述操作指令携带目标数据标识,从所述历史下载列表中查找与所述目标数据标识匹配的历史下载记录,并根据所述操作指令对所述与所述目标数据标识匹配的历史下载记录进行操作。 When receiving an operation instruction sent by the client, the operation instruction carries a target data identifier, and searches for a history download record matching the target data identifier from the history download list, and compares the The target data identifies a matching historical download record to operate.
PCT/CN2016/079894 2015-07-30 2016-04-21 Data output method and apparatus WO2017016248A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510460206.7 2015-07-30
CN201510460206.7A CN106411975B (en) 2015-07-30 2015-07-30 Data output method and device and computer readable storage medium

Publications (1)

Publication Number Publication Date
WO2017016248A1 true WO2017016248A1 (en) 2017-02-02

Family

ID=57884080

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/079894 WO2017016248A1 (en) 2015-07-30 2016-04-21 Data output method and apparatus

Country Status (2)

Country Link
CN (1) CN106411975B (en)
WO (1) WO2017016248A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108512876B (en) * 2017-02-27 2020-11-10 腾讯科技(深圳)有限公司 Data pushing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624913A (en) * 2012-03-20 2012-08-01 深圳世纪华辰科技有限公司 Data pushing method, and terminal device and server employing same
US20120324026A1 (en) * 2011-06-17 2012-12-20 Samsung Electronics Co., Ltd. Data management system and method for displaying data
CN104092740A (en) * 2014-06-25 2014-10-08 腾讯科技(深圳)有限公司 Application data synchronizing method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2378455A3 (en) * 2010-04-18 2016-05-04 CA, Inc. Protected application stack and method and system of utilizing
CN102238223B (en) * 2010-05-06 2012-10-10 清华大学 Networked personal data management method for mobile device
CN102970281B (en) * 2012-10-29 2016-03-02 小米科技有限责任公司 A kind of method, user terminal and server processing multimedia record
CN103473501B (en) * 2013-08-22 2016-05-25 北京奇虎科技有限公司 A kind of Malware method for tracing based on cloud security

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120324026A1 (en) * 2011-06-17 2012-12-20 Samsung Electronics Co., Ltd. Data management system and method for displaying data
CN102624913A (en) * 2012-03-20 2012-08-01 深圳世纪华辰科技有限公司 Data pushing method, and terminal device and server employing same
CN104092740A (en) * 2014-06-25 2014-10-08 腾讯科技(深圳)有限公司 Application data synchronizing method and device

Also Published As

Publication number Publication date
CN106411975A (en) 2017-02-15
CN106411975B (en) 2021-07-09

Similar Documents

Publication Publication Date Title
US10643610B2 (en) Voice interaction based method and apparatus for generating multimedia playlist
JP6621543B2 (en) Automatic update of hybrid applications
JP6482602B2 (en) Predictive storage service
EP3111406B1 (en) Systems and methods for ephemeral eventing
CN108200220A (en) A kind of method of data synchronization, server and storage medium
US10623470B2 (en) Optimizing internet data transfers using an intelligent router agent
US20160259856A1 (en) Consolidating and formatting search results
KR20150004877A (en) Associating a file type with an application in a network storage service
US20150237056A1 (en) Media dissemination system
CN109033360B (en) Data query method, device, server and storage medium
CN102307210A (en) Data downloading system and data management and downloading method thereof
US20140359066A1 (en) System, method and device for offline downloading resource and computer storage medium
CN110928853A (en) Method and device for identifying log
US11882154B2 (en) Template representation of security resources
EP2786271A1 (en) Methods and apparatuses for generating semantic signatures for media content
KR101713988B1 (en) Method and apparatus for providing content sending metadata extracted from content
US20150088646A1 (en) Systems and methods for generating intelligent account reconfiguration offers
CN113312355A (en) Data management method and device
WO2017016248A1 (en) Data output method and apparatus
US10372754B2 (en) Creating an audio file sample based upon user preferences
CN115664736A (en) Method, device, equipment and medium for sharing data
US20140068006A1 (en) Method, apparatus and system for providing content
KR20170027332A (en) Method and apparatus for providing content sending metadata extracted from content
CN112416875A (en) Log management method and device, computer equipment and storage medium
WO2015139202A1 (en) Data processing method, apparatus and system

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

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 1205 DATED 02/07/2018)

122 Ep: pct application non-entry in european phase

Ref document number: 16829615

Country of ref document: EP

Kind code of ref document: A1