CN106411975B - Data output method and device and computer readable storage medium - Google Patents

Data output method and device and computer readable storage medium Download PDF

Info

Publication number
CN106411975B
CN106411975B CN201510460206.7A CN201510460206A CN106411975B CN 106411975 B CN106411975 B CN 106411975B CN 201510460206 A CN201510460206 A CN 201510460206A CN 106411975 B CN106411975 B CN 106411975B
Authority
CN
China
Prior art keywords
historical
download
media data
output
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510460206.7A
Other languages
Chinese (zh)
Other versions
CN106411975A (en
Inventor
傅鸿城
梁柱
周国金
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201510460206.7A priority Critical patent/CN106411975B/en
Priority to PCT/CN2016/079894 priority patent/WO2017016248A1/en
Publication of CN106411975A publication Critical patent/CN106411975A/en
Application granted granted Critical
Publication of CN106411975B publication Critical patent/CN106411975B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • 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/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/306User profiles

Abstract

The embodiment of the invention provides a data output method and a device, wherein the method comprises the following steps: after a communication account logs in at a client, receiving a media data acquisition request sent by the client, wherein the acquisition request carries the communication account; acquiring historical downloaded media data to be output, which is associated with the communication account, according to the acquisition request; and returning the historical downloaded media data to be output to the client for output. The invention can realize that the communication account can output the historical downloaded media data associated with the communication account after logging in at the client of different platforms, is convenient for the user to use and has strong practicability.

Description

Data output method and device and computer readable storage medium
Technical Field
The invention relates to the technical field of communication, in particular to a data output method and device.
Background
With the development of communication technology, various clients are developed, such as various music clients and video clients, and a user can use his or her own communication account to log on various platforms of clients to implement various operations, for example, the user can use his or her own communication account to download audio at a music client of a mobile phone or a music client of a personal computer. However, in the prior art, after a user downloads audio and video by using the communication account at a client of a certain platform, the user cannot see historical downloaded media data of the communication account at clients of other platforms.
Disclosure of Invention
The embodiment of the invention provides a data output method and device, which can realize that a communication account can output historical downloaded media data associated with the communication account after logging in clients of different platforms, are convenient for users to use and have strong practicability.
A first aspect of the present invention provides a data output method, which may include:
after a communication account logs in at a client, receiving a media data acquisition request sent by the client, wherein the acquisition request carries the communication account;
acquiring historical downloaded media data to be output, which is associated with the communication account, according to the acquisition request;
and returning the historical downloaded 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:
the receiving module is used for receiving a media data acquisition request sent by a client after a communication account logs in at the client, wherein the acquisition request carries the communication account;
the acquisition module is used for acquiring historical downloaded media data to be output, which is associated with the communication account, according to the acquisition request;
and the return module is used for returning the historical downloaded media data to be output to the client for output.
The embodiment of the invention has the following beneficial effects:
according to the embodiment of the invention, after a communication account logs in at a client, a media data acquisition request sent by the client is received, the acquisition request carries the communication account, historical downloaded media data to be output and associated with the communication account are acquired according to the acquisition request, and the acquired historical downloaded media data to be output are returned to the client for output.
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 description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a data output method according to an embodiment of the present invention;
FIG. 2 is a flow chart of another data output method according to an embodiment of the present invention;
FIG. 3 is a flow chart of 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 block 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 invention;
fig. 7 is a schematic structural diagram of an obtaining module according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The data output method provided by the embodiment of the invention will be described in detail below with reference to fig. 1 to 4.
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 to S102.
S100, after a communication account logs in at a client, receiving a media data acquisition request sent by the client, wherein the acquisition request carries the communication account;
in particular embodiments, the client may be a media client, such as various music clients, video clients; after various terminals are provided with clients, users can freely download various multimedia files, such as audio and video files and the like, at the clients by using own communication accounts, in order to enable the users to see media data of the historically downloaded multimedia files after the users log in the communication accounts at the various terminals, after the communication accounts log in at the clients, the clients send media data acquisition requests to the server, and the acquisition requests carry the communication accounts. Optionally, the sending of the acquisition request by the client to the server may be through a Common Gateway Interface (CGI), and the server may be a Web page Web server, as shown in fig. 5, that is, the client sends the media data acquisition request to the Web server; CGI is an interface standard between an external application and a Web server, and is a procedure for transferring information between the external application and the Web server.
In the embodiment of the present invention, the media data may be a name, an author, creation time, audio/video data of the multimedia file, and the like of the multimedia file. The client terminal logged by the communication account is not divided into terminal platforms, and the media data acquisition request is sent for acquiring historical downloaded media data as long as the communication account logs in at the client terminal of the terminal platform.
S101, acquiring historical downloaded media data to be output, which is associated with the communication account, according to the acquisition request;
in a specific embodiment, the server analyzes a communication account carried in an acquisition request according to the acquisition request sent by the client, acquires historical downloaded media data to be output, which is associated with the communication account, where the historical downloaded media data to be output, which is associated with the communication account, is media data of multimedia files historically downloaded by the communication account on each terminal platform, and the media data of the multimedia files may be attribute information of the multimedia files, for example, if the multimedia files are songs, the media data may include song names, song albums, lyrics, and the like. As shown in fig. 4, what the client side shows is the names of the songs historically downloaded by the communication account and the singers of the songs.
In the embodiment of the present invention, the historical downloaded media data to be output may be media data of all multimedia files of the download history associated with the account, or may be media data of a part of multimedia files of the download history associated with the communication account. For example, if the historical downloaded media data that needs to be output is the media data of the historical downloaded songs, the historical downloaded media data to be output may be the names and artists of all songs historically downloaded by the communication account, or the names and artists of songs historically downloaded by the communication account.
Optionally, if the client sends a media data acquisition request to the server through the CGI, the CGI acquires, from a Cloud Key Value (CKV), historical downloaded media data to be output, which is associated with the communication account. The historical downloaded media data may be encapsulated by an application layer protocol, and when the historical downloaded media data to be output associated with the communication account is acquired, the historical downloaded media data encapsulated by the application layer protocol is decoded to acquire specific media data of each historical download, and then the requested historical downloaded media data to be output is returned to the client.
And S102, returning the historical downloaded media data to be output to the client for output.
In a specific embodiment, the server returns the acquired historical downloaded media data to be output to the client for output, where the specific output mode may be determined according to the existence form of the historical downloaded media data, for example, if the historical downloaded media data is attribute information (song name and artist) of a multimedia file, the client displays the historical downloaded media data. And if the historical downloaded media data is the audio and video data of the multimedia file, the client plays the historical downloaded media data. By adopting the method, historical downloaded media data of the multimedia files which are associated with the communication account and downloaded by the user on different terminal platforms can be output, so that the user can quickly acquire the download history of the communication account, and the historical downloaded multimedia data can be further operated, such as downloading, sharing, collecting, playing and the like again.
It should be noted that, when the client outputs the historical downloaded media data, the client may output the historical downloaded media data by a paging mechanism. For example, if the historical downloaded media data to be output is song information of a plurality of songs, the song information may be displayed in pages, and the terminal screen may show the song information of a plurality of songs in one page.
According to the embodiment of the invention, after a communication account logs in at a client, a media data acquisition request sent by the client is received, the acquisition request carries the communication account, historical downloaded media data to be output and associated with the communication account are acquired according to the acquisition request, and the acquired historical downloaded media data to be output are returned to the client for output.
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 to S203.
S200, after a communication account logs in at a client, receiving a media data acquisition request sent by the client, wherein the acquisition request carries the communication account;
step S200 according to the embodiment of the present invention please refer to step S100 according to the embodiment of fig. 1, which is not described herein again.
S201, reading historical download media data identified by the data identifier of each historical download record in the historical download list corresponding to the communication account from a storage system.
In a specific embodiment, after a user downloads an audio/video file through a communication account of the user at a client of a terminal, the client transmits a data identifier of the communication account and the audio/video file to a background service program of a server, as shown in fig. 5, that is, transmits the communication account and the data identifier to a background server of a Web server. Optionally, the client may transfer the communication account and the data identifier to the backend service program through the CGI. And the background server of the server adds the data identifier to a historical download list associated with the communication account, wherein all historical download records of the communication account are stored in the historical download list, one historical download record comprises two fields, one field stores the data identifier (such as a song identifier) of the downloaded audio and video file, and the other field stores the download time. And generating a historical download record by using the communication account every time downloading is carried out. As shown in fig. 5, the history download list associated with the communication account is stored in the CKV, the download list is stored in the CKV, the history download list associated with each communication account is stored, at most ten thousand history download records are stored in the history download list controlling each communication account in the CKV at present, and when the number of the history download records exceeds ten thousand, the history download record farthest from the current time is migrated and stored to the Tlist, which is a component provided by the Tencent cloud platform. The method is a universal list storage system, provides a flexible list operation interface (sorting and classification filtering), can support the length of a list infinitely, and provides list application peripheral functions such as self-built indexes and the like.
Optionally, the history download list associated with each communication account may be encapsulated by an application layer protocol, and when the history download media data to be output associated with the communication account needs to be acquired, the history download list associated with the communication account encapsulated by the application layer protocol is decoded to acquire specific information of the history download list, so as to further acquire the history download media data to be output.
In the embodiment of the invention, historical downloaded media data of various audio and video files are stored in a storage system of a server, as shown in fig. 5, various song information is stored in the storage system, and a song information application program server acquires corresponding song information from the storage system according to data identification. Data identification of an audio-video file is generally used to identify historical downloaded media data of the audio-video file in a storage system. Therefore, the historical download media data can be obtained from the storage system of the server as long as the data identifier is obtained, that is, the historical download media data identified by the data identifier can be obtained from the storage system of the server through the data identifier in the historical download list stored in the CKV. The user can obtain the relevant information of the audio and video files downloaded in the history from the history downloading media data.
Optionally, if the historical downloaded media data to be output includes the historical downloaded media data identified by the data identifiers of all the historical download records in the historical download list;
when a media data acquisition request of a client is received, a historical download list associated with the communication account is read from a download list memory of the server through a background application program of the server, historical download media data to be output is acquired through a data identifier of each historical download record in the historical download list, and the media data can be the name, author, creation time and the like of an audio and video file.
S202, the historical downloaded media data to be output are returned to the client side for output.
Step S202 in the embodiment of the present invention please refer to step S102 in the embodiment of fig. 1, which is not described herein again.
S203, counting the total number of records of the plurality of historical download records in the historical download list, and returning the total number of records to the client for outputting.
In a specific embodiment, in order to enable a user to quickly know the number of the historical download records, the server counts the total number of the historical download records in the historical download list, and returns the total number of the records to the client, and the client can output the record after receiving the total number of the records, and the output mode can be display.
According to the embodiment of the invention, after a communication account logs in at a client, a media data acquisition request sent by the client is received, the acquisition request carries the communication account, historical downloaded media data to be output and associated with the communication account are acquired according to the acquisition request, and the acquired historical downloaded media data to be output are returned to the client for output.
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 to S303.
S300, after a communication account logs in at a client, receiving a media data acquisition request sent by the client, wherein the acquisition request carries the communication account;
step S300 according to the embodiment of the present invention please refer to step S100 according to the embodiment of fig. 1, which is not described herein again.
S301, acquiring historical downloaded media data to be output, which is associated with the communication account, according to the acquisition request;
optionally, if the obtaining request includes the target number of the historical downloaded media data pre-output by the client;
the acquiring, according to the acquisition request, historical downloaded media data to be output, associated with the communication account, includes:
sequencing the historical download records according to the download time sequence of the historical download records in the historical download list, and acquiring the target historical download records of the final target number;
and acquiring the historical download media data to be output from a storage system according to the data identification in the target historical download record.
In a specific embodiment, if the media data acquisition request includes the target number of the history downloaded media data pre-output by the client (for example, the target number includes the number of music tracks pre-output), the history download records are sorted according to the download time sequence of the history download records in the history download list, the history download record farther from the current time is sorted in the front, and the history download record closer to the current time is sorted in the back. And acquiring the target historical download records with the last target number, namely the target historical download records with the preset number nearest to the current moment, and acquiring historical download media data to be output from the storage system according to the data identification in the target historical download records.
Optionally, if the obtaining request includes historical downloaded media data of a target time period pre-output by the client;
the acquiring, according to the acquisition request, historical downloaded media data to be output, associated with the communication account, includes:
and selecting a target historical download record with the download time belonging to the preset time period from the historical download list, and acquiring the historical download media data to be output from a storage system according to the data identifier in the target historical download record.
In a specific embodiment, if the media data obtaining request includes historical downloaded media data of a target time period pre-output by the client, for example, historical downloaded media data within 11 days 12:00-2015 6 months and 13 days 12:00 pre-output by the client, a target historical download record whose download time belongs to the preset time period is selected from the historical download list, where the target historical download record may include multiple historical download records or only include one historical download record. And acquiring historical download media data to be output from the storage system according to the data identifier in the target historical download record, for example, if the data identifier is a song identifier, acquiring song information identified by the song identifier from the storage system.
S302, the historical downloaded media data to be output are returned to the client side for output.
Step S302 in the embodiment of the present invention please refer to step S102 in the embodiment of fig. 1, which is not described herein again.
S303, when an operation instruction sent by a client is received, the operation instruction carries a target data identifier, a historical download record matched with the target data identifier is searched from the historical download list, and the historical download record matched with the target data identifier is operated according to the operation instruction.
In a specific embodiment, after the historical downloaded media data to be output is returned to the client for output, the user may perform operations on the historical downloaded media data through the client, for example, operations such as deleting, downloading, sharing, playing, and collecting. When a user operates, the client sends an operation instruction to the server, the operation instruction carries a target data identifier for operation, a historical download record matched with the target data identifier is searched from a historical download list associated with the communication account, and then the historical download record matched with the target data identifier is operated according to the operation indicated in the operation instruction. For example, if the operation is a delete operation, all history download records in the history download list matching the target data identifier are deleted.
According to the embodiment of the invention, after a communication account logs in at a client, a media data acquisition request sent by the client is received, the acquisition request carries the communication account, historical downloaded media data to be output and associated with the communication account are acquired according to the acquisition request, and the acquired historical downloaded media data to be output are returned to the client for output.
A data output apparatus according to an embodiment of the present invention will be described in detail with reference to fig. 6 to 7.
Please refer to fig. 6, which 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 a client after a communication account logs in at the client, where the acquisition request carries the communication account;
in particular embodiments, the client may be a media client, such as various music clients, video clients; after various terminals are provided with clients, users can freely download various multimedia files, such as audio and video files and the like, at the clients by using own communication accounts, in order to enable the users to see media data of the historically downloaded multimedia files after the users log in the communication accounts at the various terminals, after the communication accounts log in at the clients, the clients send media data acquisition requests to the server, and the acquisition requests carry the communication accounts. Optionally, the sending of the acquisition request by the client to the server may be through a Common Gateway Interface (CGI), and the server may be a Web page Web server, as shown in fig. 5, that is, the client sends the media data acquisition request to the Web server; CGI is an interface standard between an external application and a Web server, and is a procedure for transferring information between the external application and the Web server.
In the embodiment of the present invention, the media data may be a name, an author, creation time, audio/video data of the multimedia file, and the like of the multimedia file. The client terminal logged by the communication account is not divided into terminal platforms, and the media data acquisition request is sent for acquiring historical downloaded media data as long as the communication account logs in at the client terminal of the terminal platform.
An obtaining module 101, configured to obtain, according to the obtaining request, historical downloaded media data to be output, which is associated with the communication account;
in a specific embodiment, the server obtaining module 101 analyzes a communication account carried in an obtaining request according to the obtaining request sent by a client, obtains historical downloaded media data to be output, which is associated with the communication account, where the historical downloaded media data to be output, which is associated with the communication account, is media data of a multimedia file that is historically downloaded by the communication account on each terminal platform, 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 album, lyrics, and the like. As shown in fig. 4, what the client side shows is the names of the songs historically downloaded by the communication account and the singers of the songs.
In the embodiment of the present invention, the historical downloaded media data to be output may be media data of all multimedia files of the download history associated with the account, or may be media data of a part of multimedia files of the download history associated with the communication account. For example, if the historical downloaded media data that needs to be output is the media data of the historical downloaded songs, the historical downloaded media data to be output may be the names and artists of all songs historically downloaded by the communication account, or the names and artists of songs historically downloaded by the communication account.
Optionally, if the client sends a media data acquisition request to the server through the CGI, the CGI acquires, from a Cloud Key Value (CKV), historical downloaded media data to be output, which is associated with the communication account. The historical downloaded media data may be encapsulated by an application layer protocol, and when the historical downloaded media data to be output associated with the communication account is acquired, the historical downloaded media data encapsulated by the application layer protocol is decoded to acquire specific media data of each historical download, and then the requested historical downloaded media data to be output is returned to the client.
There may be three optional implementations for the obtaining module 101 to obtain the historical downloaded media data to be output:
in a first optional implementation manner, if the historical downloaded media data to be output includes the historical downloaded media data identified by the data identifiers of all the historical download records in the historical download list;
the obtaining module 101 is specifically configured to read, from a storage system, historical download media data identified by a data identifier of each historical download record in the historical download list corresponding to the communication account.
In a specific embodiment, after a user downloads an audio/video file through a communication account of the user at a client of a terminal, the client transmits a data identifier of the communication account and the audio/video file to a background service program of a server, as shown in fig. 5, that is, transmits the communication account and the data identifier to a background server of a Web server. Optionally, the client may transfer the communication account and the data identifier to the backend service program through the CGI. And the background server of the server adds the data identifier to a historical download list associated with the communication account, wherein all historical download records of the communication account are stored in the historical download list, one historical download record comprises two fields, one field stores the data identifier (such as a song identifier) of the downloaded audio and video file, and the other field stores the download time. And generating a historical download record by using the communication account every time downloading is carried out. As shown in fig. 5, the history download list associated with the communication account is stored in the CKV, the download list is stored in the CKV, the history download list associated with each communication account is stored, at most ten thousand history download records are stored in the history download list controlling each communication account in the CKV at present, and when the number of the history download records exceeds ten thousand, the history download record farthest from the current time is migrated and stored to the Tlist, which is a component provided by the Tencent cloud platform. The method is a universal list storage system, provides a flexible list operation interface (sorting and classification filtering), can support the length of a list infinitely, and provides list application peripheral functions such as self-built indexes and the like.
Optionally, the history download list associated with each communication account may be encapsulated by an application layer protocol, and when the history download media data to be output associated with the communication account needs to be acquired, the history download list associated with the communication account encapsulated by the application layer protocol is decoded to acquire specific information of the history download list, so as to further acquire the history download media data to be output.
In the embodiment of the invention, historical downloaded media data of various audio and video files are stored in a storage system of a server, as shown in fig. 5, various song information is stored in the storage system, and a song information application program server acquires corresponding song information from the storage system according to data identification. Data identification of an audio-video file is generally used to identify historical downloaded media data of the audio-video file in a storage system. Therefore, the historical download media data can be obtained from the storage system of the server as long as the data identifier is obtained, that is, the historical download media data identified by the data identifier can be obtained from the storage system of the server through the data identifier in the historical download list stored in the CKV. The user can obtain the relevant information of the audio and video files downloaded in the history from the history downloading media data.
When a media data acquisition request of a client is received, the acquisition module 101 reads a historical download list associated with the communication account from a download list memory of the server through a background application program of the server, and acquires historical download media data to be output through a data identifier of each historical download record in the historical download list, where the media data may be a name, an author, an authoring time, and the like of an audio/video file.
In a second optional implementation manner, if the obtaining request includes a target number of the historical downloaded media data pre-output by the client; as shown in fig. 7, the obtaining module 101 includes:
a sorting unit 1010, configured to sort the historical download records according to the download time sequence of each historical download record in the historical download list, and obtain the target historical download records sorted in the last target number;
an obtaining unit 1011, configured to obtain the historical download media data to be output from a storage system according to the data identifier in the target historical download record.
In a specific embodiment, if the media data obtaining request includes the target number of the history downloaded media data pre-output by the client (for example, the target number includes the number of music tracks pre-output), the sorting unit 1010 sorts the history download records according to the downloading time sequence of the history download records in the history download list, where the history download record farther from the current time is sorted before, and the history download record closer to the current time is sorted after. The obtaining unit 1011 obtains the target historical download records sorted in the last target number, that is, the target historical download records in the preset number closest to the current time, and obtains the historical download media data to be output from the storage system according to the data identifier in the target historical download records.
In a third optional implementation manner, if the obtaining request includes the historical downloaded media data of the target time period pre-output by the client;
the obtaining module 101 is specifically configured to select a target historical download record from the historical download list, where the download time belongs to the preset time period, and obtain the historical downloaded media data to be output from a storage system according to a data identifier in the target historical download record.
In a specific embodiment, if the media data obtaining request includes historical downloaded media data of a target time period pre-output by the client, for example, the client pre-outputs historical downloaded media data within 2015 year 6, month 11, 12:00-2015 year 6, month 13, and 12:00, the obtaining module 101 selects a target historical download record whose download time belongs to the preset time period from the historical download list, where the target historical download record may include multiple historical download records, or may include only one historical download record. And acquiring historical download media data to be output from the storage system according to the data identifier in the target historical download record, for example, if the data identifier is a song identifier, acquiring song information identified by the song identifier from the storage system.
A returning module 102, configured to return the historical downloaded media data to be output to the client for output.
In a specific embodiment, the server returning module 102 returns the acquired historical downloaded media data to be output to the client for output, where a specific output manner may be determined according to the existence form of the historical downloaded media data, for example, if the historical downloaded media data is attribute information (song title and artist) of a multimedia file, the client displays the historical downloaded media data. And if the historical downloaded media data is the audio and video data of the multimedia file, the client plays the historical downloaded media data. By adopting the method, historical downloaded media data of the multimedia files which are associated with the communication account and downloaded by the user on different terminal platforms can be output, so that the user can quickly acquire the download history of the communication account, and the historical downloaded multimedia data can be further operated, such as downloading, sharing, collecting, playing and the like again.
It should be noted that, when the client outputs the historical downloaded media data, the client may output the historical downloaded media data by a paging mechanism. For example, if the historical downloaded media data to be output is song information of a plurality of songs, the song information may be displayed in pages, and the terminal screen may show the song information of a plurality of songs in one page.
Optionally, the apparatus further comprises a statistics module 103;
and the counting module 103 is configured to count a total number of records of the plurality of historical download records in the historical download list, and return the total number of records to the client for output.
In a specific embodiment, in order to enable the user to quickly know the number of the historical download records, the server counting module 103 counts the total number of the historical download records in the historical download list, and returns the total number of the records to the client, and the client can output the record after receiving the total number of the records, and the output mode can be display.
Optionally, the apparatus further comprises an operation module 104;
and the operation module 104 is configured to, when an operation instruction sent by a client is received, search a historical download record matched with the target data identifier from the historical download list, where the operation instruction carries the target data identifier, and operate the historical download record matched with the target data identifier according to the operation instruction.
In a specific embodiment, after the historical downloaded media data to be output is returned to the client for output, the user may perform operations on the historical downloaded media data through the client, for example, operations such as deleting, downloading, sharing, playing, and collecting. When a user operates, the client sends an operation instruction to the server, the operation instruction carries a target data identifier for performing an operation, the operation module 104 searches a historical download record matched with the target data identifier from a historical download list associated with the communication account, and then operates the historical download record matched with the target data identifier according to the operation indicated in the operation instruction. For example, if the operation is a delete operation, all history download records in the history download list matching the target data identifier are deleted.
According to the embodiment of the invention, after a communication account logs in at a client, a media data acquisition request sent by the client is received, the acquisition request carries the communication account, historical downloaded media data to be output and associated with the communication account are acquired according to the acquisition request, and the acquired historical downloaded media data to be output are returned to the client for output.
Those skilled in the art will understand that all or part of the processes in the methods according to the embodiments described above can be implemented by hardware related to computer program instructions, the programs can be stored in a computer readable storage medium, and the programs corresponding to the modules of the data output apparatus shown in fig. 6 to 7 can be stored in the computer readable storage medium of the data output apparatus and executed by at least one processor in the data output apparatus to implement the data output methods described above, where the methods include the processes described in the method embodiments in fig. 1 to 2. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (11)

1. A data output method is used for a music user roaming download history, and is characterized by comprising the following steps:
after a communication account logs in at a client, receiving a media data acquisition request sent by the client, wherein the acquisition request carries the communication account;
acquiring a historical download list associated with the communication account from cloud distributed storage, wherein the historical download list comprises at least one historical download record, the historical download record comprises a data identifier for identifying historical download media data, the historical download media data are stored in a local storage system, and the historical download list is packaged through an application layer protocol;
decoding the packaged historical download list to obtain data identifiers recorded in the historical download list;
acquiring historical download media data to be output, identified by the data identifier, from the storage system according to the data identifier recorded in the historical download list, wherein the historical download media data to be output are media data of multimedia files historically downloaded by the communication account at a plurality of terminals, and the historical download media data to be output are packaged through an application layer protocol;
decoding the packaged historical download media data to be output to obtain decoded historical download media data and returning the decoded historical download media data to the client so that the client executes the following operations: if the decoded historical downloaded media data is the attribute information of the multimedia file, displaying the attribute information of the multimedia file;
if the decoded historical downloaded media data is audio and video data of a multimedia file, playing the audio and video data;
when a deleting instruction sent by a client is received, the deleting instruction carries a target data identifier, a historical downloading record matched with the target data identifier is searched from the historical downloading list, and the historical downloading record matched with the target data identifier is deleted according to the deleting instruction.
2. The method of claim 1, wherein the method further comprises:
and counting the total record number of the at least one historical download record in the historical download list, and returning the total record number to the client for outputting.
3. The method of claim 1, wherein the historical download record further comprises a download time;
if the acquisition request comprises the target number of the historical downloaded media data pre-output by the client;
the acquiring, from the storage system, the historical downloaded media data to be output, identified by the data identifier, according to the data identifier recorded in the historical download list, includes:
sequencing the historical download records according to the download time sequence of the historical download records in the historical download list, and acquiring the target historical download records of the final target number;
and acquiring the historical download media data to be output from a storage system according to the data identification in the target historical download record.
4. The method of claim 1, wherein the historical download record further comprises a download time;
if the acquisition request comprises historical downloaded media data of a target time period pre-output by the client;
the acquiring, from the storage system, the historical downloaded media data to be output, identified by the data identifier, according to the data identifier recorded in the historical download list, includes:
and selecting a target historical download record with the download time belonging to the target time period from the historical download list, and acquiring the historical download media data to be output from a storage system according to the data identifier in the target historical download record.
5. The method of any of claims 1-4, wherein the operations comprise deleting, downloading, sharing, favoring, and playing.
6. A data output apparatus for a music user roaming download history, comprising:
the system comprises a receiving module, a sending module and a processing module, wherein the receiving module is used for receiving a media data acquisition request sent by a client after a communication account logs in the client, the acquisition request carries the communication account, and a historical download list associated with the communication account is acquired from cloud distributed storage and comprises at least one historical download record, the historical download record comprises a data identifier for identifying the historical download media data, the historical download media data is stored in a local storage system, and the historical download list is packaged through an application layer protocol;
an obtaining module, configured to decode the packaged historical download list to obtain a data identifier recorded in the historical download list, and obtain, according to the data identifier recorded in the historical download list, historical download media data to be output, which is identified by the data identifier, from the storage system, where the historical download media data to be output is media data of a multimedia file historically downloaded by the communication account at multiple terminals, and the historical download media data to be output is packaged by an application layer protocol;
a returning module, configured to decode the packaged historical downloaded media data to be output, obtain decoded historical downloaded media data, and return the decoded historical downloaded media data to the client, so that the client performs the following operations: if the decoded historical downloaded media data is the attribute information of the multimedia file, the client displays the attribute information of the multimedia file; if the decoded historical downloaded media data is audio and video data of a multimedia file, the client plays the audio and video data;
and the operation module is used for searching a historical download record matched with the target data identifier from the historical download list when a deletion instruction sent by a client is received, and deleting the historical download record matched with the target data identifier according to the deletion instruction.
7. The apparatus of claim 6, wherein the apparatus further comprises:
and the counting module is used for counting the total number of records of the at least one historical download record in the historical download list and returning the total number of records to the client for outputting.
8. The apparatus of claim 6, wherein the historical download record further comprises a download time;
if the acquisition request comprises the target number of the historical downloaded media data pre-output by the client;
the acquisition module is used for sequencing all the historical download records according to the download time sequence of all the historical download records in the historical download list and acquiring the target historical download records of the number of the targets sequenced at the end;
and acquiring the historical download media data to be output from a storage system according to the data identification in the target historical download record.
9. The apparatus of claim 6, wherein the historical download record further comprises a download time;
if the acquisition request comprises historical downloaded media data of a target time period pre-output by the client;
the acquisition module is used for selecting a target historical download record with the download time belonging to the target time period from the historical download list and acquiring the historical download media data to be output from a storage system according to the data identification in the target historical download record.
10. The apparatus of any of claims 6-9, wherein the operations comprise deleting, downloading, sharing, favoring, and playing.
11. A computer-readable storage medium storing executable instructions for implementing the data output method of any one of claims 1 to 5 when executed by a processor.
CN201510460206.7A 2015-07-30 2015-07-30 Data output method and device and computer readable storage medium Active CN106411975B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510460206.7A CN106411975B (en) 2015-07-30 2015-07-30 Data output method and device and computer readable storage medium
PCT/CN2016/079894 WO2017016248A1 (en) 2015-07-30 2016-04-21 Data output method and apparatus

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN106411975A CN106411975A (en) 2017-02-15
CN106411975B true CN106411975B (en) 2021-07-09

Family

ID=57884080

Family Applications (1)

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

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 (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473501A (en) * 2013-08-22 2013-12-25 北京奇虎科技有限公司 Malware tracking method based on cloud safety

Family Cites Families (6)

* 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
KR101756709B1 (en) * 2011-06-17 2017-07-11 삼성전자주식회사 Data management system and method for displaying data thereof
CN102624913A (en) * 2012-03-20 2012-08-01 深圳世纪华辰科技有限公司 Data pushing method, and terminal device and server employing same
CN102970281B (en) * 2012-10-29 2016-03-02 小米科技有限责任公司 A kind of method, user terminal and server processing multimedia record
CN104092740B (en) * 2014-06-25 2016-05-04 腾讯科技(深圳)有限公司 Application data synchronous method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473501A (en) * 2013-08-22 2013-12-25 北京奇虎科技有限公司 Malware tracking method based on cloud safety

Also Published As

Publication number Publication date
WO2017016248A1 (en) 2017-02-02
CN106411975A (en) 2017-02-15

Similar Documents

Publication Publication Date Title
US10643610B2 (en) Voice interaction based method and apparatus for generating multimedia playlist
CN107967357B (en) Friend pushing method and system and terminal equipment
JP6734946B2 (en) Method and apparatus for generating information
CN107885873B (en) Method and apparatus for outputting information
US10628385B2 (en) Virtual collection of entities in sync process
CN104572952A (en) Identification method and device for live multi-media files
CN103136348A (en) File display method and device
US20150235236A1 (en) Media dissemination system
US20150106717A1 (en) Presenting content related to current media consumption
CN104866560A (en) Method for sharing resource information, and terminal device and server thereof
WO2009052311A1 (en) Method and apparatus for identifying a piece of content
CN104035943B (en) Store the method and respective server of data
KR101713988B1 (en) Method and apparatus for providing content sending metadata extracted from content
CN103530313A (en) Searching method and device of application information
CN102932421A (en) Cloud back-up method and device
CN107679186A (en) The method and device of entity search is carried out based on entity storehouse
CN110852794A (en) Novel recommendation method and device
CN106411975B (en) Data output method and device and computer readable storage medium
US10372754B2 (en) Creating an audio file sample based upon user preferences
CN114461305B (en) Data source determination method and device
KR101684577B1 (en) Method of providing tag-based list of content and apparatus for the same
KR20170027332A (en) Method and apparatus for providing content sending metadata extracted from content
CN108920658B (en) Mobile device desktop moving method and device and electronic device
CN112752165A (en) Subtitle processing method, subtitle processing device, server and computer-readable storage medium
CN110598009A (en) Method and device for searching works, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1232034

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant