Data processing method, server, terminal and storage medium
By identifying the available channels for the terminal using device identification and version information, the server automatically divides and maintains the range of audio and video data, solving the problem of low efficiency in the division and maintenance of acquisition range caused by differences in vehicle models and software versions, and achieving efficient and accurate acquisition of audio and video data.
Patent Information
- Application Number
- CN202111388661.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-22
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2041-11-22
AI Technical Summary
The differences in vehicle models and audio/video software versions lead to low efficiency in the division and maintenance of audio/video data acquisition scope, resulting in resource waste and duplicate acquisition.
The available channels for the terminal are determined by the device identifier and version information. The server automatically divides and maintains the range of audio and video data, and uses a mapping table to update and correct information, ensuring the accuracy and efficiency of data acquisition.
It improves the accuracy and efficiency of audio and video data processing, reduces resource waste, and enables one-to-one acquisition of audio and video data from different terminal versions.
Smart Images

Figure CN114297416B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of vehicle communication, in particular to a data processing method, a server, a terminal and a storage medium. BACKGROUND
[0002] Taking a small passenger vehicle is one of the main travel ways, and through vehicle communication technology, audio and video data can be played to improve the riding experience of the vehicle.
[0003] The playing of audio and video data can be directly obtained through different audio and video copyright companies. Due to the uneven distribution of copyrights, the vehicle needs to obtain the audio and video data access rights of different copyright companies respectively, and there is often a phenomenon of repeated acquisition of audio and video data, causing waste of resources of users to which the vehicle belongs. To solve the above problems, the vehicle can purchase a variety of audio and video data resources integrated by a third-party company to reduce the waste of user resources.
[0004] However, there are differences in the audio and video copyright companies cooperated by different models of vehicles, and there are also differences in the versions of the audio and video software installed in the same model of vehicle, resulting in differences in the audio and video acquisition data range purchased through different versions of audio and video software installed in different models of vehicles. A large amount of time needs to be invested by staff to divide and maintain different audio and video data acquisition ranges, resulting in the problem of low efficiency of dividing and maintaining the audio and video data acquisition range. SUMMARY
[0005] The present application provides a data processing method, a server, a terminal and a storage medium to solve the problem of low efficiency of dividing and maintaining audio and video acquisition services.
[0006] In a first aspect, the present application provides a data processing method, which is applied to a server and includes:
[0007] Receiving a first data acquisition request sent by a terminal, wherein the first data acquisition request includes a device identifier of the terminal and first version information of an application program, and the first data acquisition request is generated by the terminal when starting the application program;
[0008] Obtaining attribute information of original audio and video data associated with at least one available channel corresponding to the device identifier, and selecting attribute information of available audio and video data from the attribute information of the original audio and video data associated with the at least one available channel using the first version information;
[0009] Sending the attribute information of the available audio and video data to the terminal.
[0010] Optionally, obtaining the attribute information of the original audio and video data associated with the at least one available channel corresponding to the device identifier specifically includes:
[0011] obtaining service support states of each channel corresponding to the device identifier;
[0012] determining attribute information of the original audio and video data associated with the at least one available channel according to the service support states of each channel.
[0013] Optionally, the determining of the attribute information of the original audio and video data associated with the at least one available channel according to the service support states of each channel specifically comprises:
[0014] determining the at least one available channel according to the service support states of each channel;
[0015] obtaining attribute information of the original audio and video data associated with each available channel, and integrating and de-redundant processing attribute information of the original audio and video data associated with all available channels to obtain attribute information of the original audio and video data associated with the at least one available channel.
[0016] Optionally, the selecting of the attribute information of the available audio and video data from the attribute information of the original audio and video data associated with the at least one available channel using the first version information specifically comprises:
[0017] obtaining the second version information according to the first version information and the version mapping table;
[0018] selecting the attribute information of the available audio and video data from the attribute information of the original audio and video data associated with the at least one available channel using the second version information and the locally stored first mapping table;
[0019] The first mapping table is used to represent a corresponding relationship between the attribute information of the original audio and video data and the second version information.
[0020] In the above embodiment, the server obtains the device identifier and the first version information in the first data acquisition request, obtains the corresponding second version information in the server according to the first version information, limits from all audio and video data corresponding to all channels available to the server using the device identifier and the second version information, and obtains available audio and video data corresponding to available channels, so as to realize automatic division and maintenance of audio and video data available to different device identifiers and different first version information application programs installed in the device by the server, and improve the accuracy and efficiency of audio and video data processing.
[0021] Optionally, before obtaining the attribute information of the original audio and video data associated with the at least one available channel corresponding to the device identifier, the method further comprises:
[0022] receiving copyright change information of the original audio and video data of each service channel sent by each channel server;
[0023] updating a plurality of locally stored second mapping tables representing attributes of original audio and video data associated with service channels according to the copyright change information;
[0024] obtaining the attributes of the original audio and video data associated with each available channel, specifically including:
[0025] determining the second mapping table corresponding to each available channel from the plurality of locally stored second mapping tables representing attributes of original audio and video data associated with service channels;
[0026] obtaining the attributes of the original audio and video data associated with each available channel according to the second mapping table corresponding to each available channel.
[0027] In the above embodiment, the server updates the locally stored second mapping table according to the copyright change information generated when the copyright of the original audio and video data in the channel server changes, thereby ensuring the consistency of the information in the server. After the information is updated, the attributes of the original audio and video data associated with the available channels are obtained, and the accuracy of the user obtaining the audio and video data is realized.
[0028] Optionally, after sending the attributes of the available audio and video data to the terminal, the method further includes:
[0029] obtaining data exception information, wherein the data exception information includes exception audio and video data;
[0030] generating a copyright verification request according to the exception audio and video data, and sending the copyright verification request to the corresponding channel server;
[0031] receiving the copyright verification result sent by the channel server, and updating the second mapping table using the copyright verification result.
[0032] Optionally, obtaining the data exception information specifically includes:
[0033] receiving a second data acquisition request sent by the terminal, wherein the second data acquisition request is generated by the terminal according to the attribute data of the available audio and video data;
[0034] obtaining a query result by searching a third mapping table according to the attribute data of the available audio and video data, and generating data exception information when the query result indicates that the query fails;
[0035] wherein the third mapping table represents the corresponding relationship between the attribute data of the available audio and video data and the available audio and video data.
[0036] In the above embodiment, the server performs copyright verification in the corresponding channel server according to the data exception information generated by the user when the available audio and video data obtained through the server is abnormal, and updates the third mapping table and the second mapping table after verification to obtain new corresponding relationship, so as to realize the correction of the related information of the audio and video data stored in the server, and ensure the accuracy of the user to obtain the audio and video data.
[0037] In a second aspect, the application provides a data processing method, the method is applied to a terminal, and the method comprises:
[0038] generating a first data acquisition request according to the device identifier of the terminal and the first version information of the application when starting the application;
[0039] sending the first data acquisition request to the server, the first data acquisition request being used to make the server acquire original audio and video data associated with at least one available channel corresponding to the device identifier, and select available audio and video data from the original audio and video data associated with the at least one available channel using the first version information;
[0040] receiving the available audio and video data sent by the server.
[0041] Optionally, the method further comprises:
[0042] acquiring a playing instruction of the available audio data;
[0043] generating a second data acquisition request according to the playing instruction, and sending the second data acquisition request to the server, the second data acquisition request being used to make the server find a query result from the third mapping table according to the available audio data, and generate data exception information when the query result indicates that the query fails;
[0044] The third mapping table represents the corresponding relationship between the attribute data of the available audio and video data and the available audio data.
[0045] In the above embodiment, the terminal generates a first data acquisition request according to the device identifier and the version information of the application, and sends it to the server, so as to acquire available audio and video data corresponding to the device identifier and the version information, and improve the fineness of the range of available audio and video data that each terminal can acquire. In addition, the terminal can acquire corresponding audio and video data through a second data acquisition request, and generate data exception information when an exception occurs, so as to ensure the timeliness and data content accuracy of the correction of the server to the exception data.
[0046] In a third aspect, the application provides a server, comprising a processor and a memory connected with the processor in communication;
[0047] The memory stores computer execution instructions;
[0048] The processor executes computer-executed instructions stored in the memory to implement the data processing method of the first aspect.
[0049] In a fourth aspect, the present application provides a terminal, comprising: a processor and a memory connected with the processor in communication;
[0050] The memory stores computer-executed instructions.
[0051] The processor executes computer-executed instructions stored in the memory to implement the data processing method of the second aspect.
[0052] In a fifth aspect, the present application provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed by a processor, the data processing method of the first aspect or the second aspect is implemented.
[0053] The data processing method, server, terminal and storage medium provided by the present application can automatically determine the available channel through which the terminal can obtain audio and video data and the attribute information of the available audio and video data in the available channel according to the device identifier and the first version information obtained by the server through the first data acquisition request sent by the terminal, so that the attribute information of the available audio and video data can be obtained by the application program of different versions installed in different terminals one by one. In the present application, the server determines the available channel of the terminal by using the device identifier, divides the available range of the audio and video data in the available channel through the first version information, and dynamically maintains the available range of the audio and video data in the available channel according to the determination, thereby improving the efficiency of dividing and maintaining the data range. BRIEF DESCRIPTION OF DRAWINGS
[0054] The accompanying drawings, which are incorporated into and form part of the specification, illustrate embodiments consistent with the present application and, together with the specification, serve to explain the principles of the application.
[0055] Figure 1 The application scenario of the data processing method provided by an embodiment of the present application is shown in the figure;
[0056] Figure 2 The flowchart of the data processing method provided by an embodiment of the present application is shown in the figure;
[0057] Figure 3 The flowchart of the data processing method provided by another embodiment of the present application is shown in the figure;
[0058] Figure 4 The flowchart of the data processing method provided by another embodiment of the present application is shown in the figure;
[0059] Figure 5 The flowchart of the data processing method provided by another embodiment of the present application is shown in the figure;
[0060] Figure 6 A flowchart of a data processing method according to another embodiment of the present application is provided.
[0061] Figure 7 A structural diagram of a server according to an embodiment of the present application is provided.
[0062] Figure 8 A structural diagram of a terminal according to another embodiment of the present application is provided.
[0063] The specific embodiments of the present application have been shown through the above-described drawings, and will be described in more detail hereinafter. The drawings and the written description are not intended to restrict the scope of the present application by any means, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0064] The exemplary embodiments will be described in detail herein with reference to the attached drawings. The following description is made with reference to the accompanying drawings in which like reference numerals represent like elements, unless the context of use indicates otherwise. The following exemplary embodiments described are not representative of all embodiments consistent with the present application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the present application as detailed in the appended claims.
[0065] Riding in a small passenger vehicle is the mainstream way of travel, and through vehicle-mounted communication technology, audio and video data can be played, thereby improving the riding experience of the vehicle.
[0066] Audio and video data can be directly obtained through different audio and video copyright companies. Due to the uneven distribution of copyrights, the vehicle needs to obtain the audio and video data access rights of different copyright companies respectively, and there is often a phenomenon of repeated acquisition of audio and video data, causing waste of resources of users to which the vehicle belongs. To solve the above problems, the vehicle can purchase a variety of audio and video data resources integrated by a third-party company to reduce the waste of user resources.
[0067] However, there are differences in the audio and video copyright companies cooperating with different models of vehicles, and there are also differences in the versions of the audio and video software installed in the same model of vehicle, resulting in differences in the range of audio and video acquisition data purchased through different versions of audio and video software installed in different models of vehicles. A large amount of time needs to be invested by staff to divide and maintain different audio and video data acquisition ranges, resulting in the problem of low efficiency of dividing and maintaining the range of audio and video data acquisition.
[0068] To address the aforementioned technical problems, this application provides a data processing method, server, terminal, and storage medium, aiming to solve the problem of low efficiency in dividing and maintaining the acquisition range of audio and video data. The technical concept of this application is: to determine the available channels of the terminal using device identifiers, to divide the available range of audio and video data in the available channels using first version information, and to dynamically maintain the available range of audio and video data in the determined available channels, thereby improving the efficiency of dividing and maintaining the data range.
[0069] Figure 1 This is a schematic diagram illustrating an application scenario of the data processing method provided in an embodiment of this application, such as... Figure 1 As shown, it includes channel server 10, server 11, and terminal 12. There can be one or more channel servers 10. Figure 1 In the illustrated embodiment, there are two channel servers 10, including a first channel server 101 and a second channel server 102, and the audio and video data contained in the two channel servers are not completely identical; there are one or more terminals 12. Figure 1 In the illustrated embodiment, there are three terminals 12, including a first terminal 121, a second terminal 122, and a third terminal 123. The device identifiers of the first terminal 121 and the second terminal 122 are the same, while the device identifiers of the first terminal 121 and the third terminal 123 are different. Each in-vehicle system has an application (APP) installed to play audio and video data. Specifically, the first terminal 121 has a first APP 124 installed, the second terminal 122 has a second APP 125 installed, and the third terminal 123 has a third APP 126 installed. The version numbers of the three APPs are all different.
[0070] When a user opens an APP installed in a terminal, the terminal sends a first data acquisition request containing a device identifier and a version number of the APP to the server 11, the server 11 generates a corresponding audio / video data list according to the received request and returns the list to the corresponding terminal, wherein the server divides the audio / video data list range according to the device identifier and the version number. For example, the device identifiers of the first terminal 121 and the second terminal 122 are the same, so the two terminals can call and acquire the same channel server of the audio / video data, which is the first channel server 101 and the second channel server 102; the device identifiers of the first terminal 121 and the third terminal 123 are different, so the two terminals can call and acquire different channel servers of the multimedia data, and the channel server corresponding to the third terminal 123 is the second channel server 102. The version number of the first APP 124 installed in the first terminal 121 is 1.3, the version number of the second APP 125 installed in the second terminal 122 is 1.4, and the version number of the third APP 126 installed in the third terminal 123 is 1.0. Since the version numbers of the APPs are different, the total amount of audio / video data that the first terminal 121 can acquire in the channel server it can call is different from the total amount of audio / video data that the second terminal 122 can acquire in the channel server it can call; the third terminal 123 cannot call the same channel server as the version number of the APP it installs, so the total amount of multimedia data that the terminal can acquire is also different from the other two terminals.
[0071] When a user selects an audio / video data identifier in the returned audio / video list range for playing through the APP, the terminal generates a playing instruction and sends it to the server, the server queries corresponding audio / video related data in the mapping table stored locally, in an embodiment, the audio / video related data is playable data, the server directly returns the playable data to the terminal, and the terminal plays the received data; in another embodiment, the audio / video related data is interface data of the channel server 10, the server transmits the interface data back to the terminal, the terminal calls the interface data to send a resource acquisition request to the channel server, the channel server finds corresponding playable data in the data stored locally according to the request, and returns the playable data to the terminal.
[0072] Figure 2 A flowchart of a data processing method provided by an embodiment of the application is shown in FIG. 1. Figure 2 As shown in FIG. 1, the data processing method provided by the application comprises the following steps:
[0073] S201, the server receives a first data acquisition request sent by a terminal.
[0074] In this step, the first data acquisition request includes a device identifier of the terminal and first version information of an application program, and the first data acquisition request is generated by the terminal when starting the application program.
[0075] The device identifier includes a vehicle model identifier of a terminal installation, and the first version information of the application program represents current version information of an application program installed on the device. The first acquisition request is to acquire a list of original audio and video data that can be acquired by the application program of the version installed on the terminal.
[0076] S202, the server acquires attribute information of original audio and video data associated with at least one available channel corresponding to the device identifier, and selects attribute information of available audio and video data from the attribute information of original audio and video data associated with at least one available channel using the first version information.
[0077] In this step, the device identifier and the first version information are acquired from step S201.
[0078] Different device identifiers are associated with different at least one available channel, and the server determines at least one available channel through the device identifier, thereby acquiring attribute information of original audio and video data associated with the available channel.
[0079] The attribute data refers to data related to the audio and video data, including but not limited to information related to the attribute data itself and channel information for acquiring the audio and video data.
[0080] The original audio and video data refers to all audio and video data stored in the channel server. The available audio and video data refers to the usable audio and video data provided by the channel server for the application program corresponding to the first version information corresponding to the device identifier. The range of available audio and video data is not greater than the range of original audio and video data.
[0081] Different first version information and available audio and video data determined in the original audio and video data corresponding to different channels have a one-to-one correspondence. The attribute information of the available audio and video data corresponding to the available audio and video data range is determined through the first version information.
[0082] S203, the server sends the attribute information of the available audio and video data to the terminal.
[0083] In this step, the attribute information of the available audio and video data is acquired from step S202. The server integrates the attribute information of the available audio and video data, generates a corresponding data list according to a preset rule, and sends the data list to the terminal. The preset rule includes but is not limited to audio and video types, artists corresponding to audio and video, audio and video release time, and channel information for acquiring audio and video data.
[0084] In the technical solution, the server obtains the device identifier and the first version information by receiving the first data acquisition request sent by the terminal, automatically determines the available channel through which the terminal can acquire the audio and video data, and determines the attribute information of the available audio and video data in the available channel through the first version information, so that the application programs of different versions installed in different terminals can one-to-one correspondingly acquire the attribute information of the available audio and video data, thereby improving the efficiency of dividing and maintaining the audio and video data.
[0085] Figure 3 A flowchart of a data processing method provided for another embodiment of the application is shown in the figure. The execution subject of the data processing method is a server. As shown in the figure, the data processing method provided by the application comprises the following steps. Figure 3
[0086] S301, receiving a first data acquisition request sent by a terminal.
[0087] The first acquisition request is a request generated by the terminal when the APP is started and sent to the server.
[0088] The first data acquisition request has been explained in detail in step S201, and will not be repeated here.
[0089] S302, obtaining the service support state of each channel corresponding to the device identifier.
[0090] In this step, the server obtains the service support relationship of each channel corresponding to the device identifier by querying the service support relationship table. The service support relationship table represents the one-to-one service support relationship between each channel and each device identifier.
[0091] The service support state refers to the permission state of the current device to acquire the audio and video data provided by the channel server, including two states of "support" and "not support". The server obtains the device identifier corresponding to the terminal, and queries the identifier in the service support relationship table stored locally to determine the service support state of the multiple channels to the device identifier. If the service support state is "support", step S303 is entered, otherwise, the current flow is ended, and the terminal is returned information that the service state is not supported.
[0092] S303, determining the attribute information of the original audio and video data associated with at least one available channel according to the service support state of each channel.
[0093] In this step, the service support state is obtained from step S302.
[0094] The available channel refers to the channel cooperating with the vehicle brand and the corresponding model corresponding to the device identifier, that is, the channel server corresponding to the available channel allows the terminal corresponding to the device identifier to acquire the data information stored in the channel server through the calling interface.
[0095] The attribute information of the original audio and video data associated with the available channels refers to the attribute information of all audio and video data that the available multimedia channels can provide. The attribute information of each audio and video data includes, but is not limited to: the audio and video data number (Identity document, abbreviated as ID), artist ID, album ID, channel information, and device identification information supported by the channel.
[0096] The attribute information of the original audio and video data associated with at least one available channel is determined based on the service support status of each channel. This means that the number of available channels obtained based on the device identifier is at least one, and the attribute information of all original audio and video data that can be obtained from all channels is determined based on the service support status of each channel.
[0097] The process of determining the acquisition of attribute information of raw audio and video data associated with at least one available channel specifically includes steps S3031 to S3032:
[0098] S3031. Determine at least one available channel based on the service support status of each channel.
[0099] In this step, determining at least one available channel based on the service support status of each channel means that the number of available channels corresponding to the audio and video data that the terminal corresponding to the device identifier can obtain is at least one.
[0100] S3032. Obtain the attribute information of the original audio and video data associated with each available channel, and integrate and de-redundant process the attribute information of the original audio and video data associated with all available channels to obtain the attribute information of the original audio and video data associated with at least one available channel.
[0101] In this step, the attribute information of the raw audio and video data associated with each available channel is obtained by the server querying a second mapping table stored locally.
[0102] The integration process involves extracting and merging the raw audio and video data associated with all available channels. The integrated data includes first raw audio and video data associated with each available channel and second raw audio and video data associated with multiple available channels. During the integration process, the second raw audio and video data associated with multiple available channels needs to be repeatedly acquired, the number of times matching the number of available channels, thus causing redundancy in the integrated data.
[0103] Redundancy removal refers to filtering the duplicated second-generation original audio and video data in the integrated data according to preset criteria, retaining only the second-generation original audio and video data associated with one usable channel. The preset criteria include at least one of the following: the service duration available from the channel and the purchase price of the audio and video data.
[0104] S304, obtaining the second version information according to the first version information and the version mapping table.
[0105] In this step, the first version information refers to the version information of the APP installed on the car machine;
[0106] The version mapping table indicates the correspondence between the first version information and the second version information. The number of the first version information corresponding to one second version information is at least one.
[0107] The second version information is the version information stored in the server, which provides corresponding available audio and video data for the APP applied with the first version information. The second version information is determined by querying the first version information in the mapping table.
[0108] When the server receives the first data acquisition request sent by the terminal, the first version information of the APP installed on the terminal is obtained from the request, and the server queries the first version information in the version mapping table stored locally to obtain the second version information. The available audio and video data corresponding to the second version information is the same as the available audio and video data corresponding to the first version information.
[0109] For example, the version number of the first version information 1.0.1.2 corresponds to the version number 1.0.1 of the second version information in the version mapping table, and the version number of the first version information 1.0.1.5 also corresponds to the version number 1.0.1 of the second version information in the version mapping table. Therefore, the available audio and video data obtained by the first user on the first terminal through the APP of the first version information with the version number 1.0.1.2 and the audio and video data obtained by the second user on the second terminal through the APP of the first version information with the version number 1.0.1.5 are both the available audio and video data obtained by the server according to the second version information with the version number 1.0.1 from the corresponding channel server.
[0110] The available audio and video data has been explained in detail in step S202, which will not be repeated here.
[0111] S305, using the second version information and the first mapping table stored locally to select the attribute information of the available audio and video data from the attribute information of the original audio and video data associated with at least one available channel.
[0112] In this step, the attribute information of the original audio and video data and the available audio and video data contains the content which has been explained in detail in step S303, which will not be repeated here.
[0113] The attribute information of the original audio and video data and the available audio and video data also includes the second version information corresponding to the audio and video data.
[0114] In each available channel, the second version information corresponding to the APP is different, the available audio and video data corresponding to the second version information and the attribute information corresponding to the data are different, that is, the attribute information of the available audio and video data corresponding to the second version information is different.
[0115] The first mapping table is used to represent the correspondence between the attribute information of the original audio and video data and the second version information. Each second version information corresponds to the attribute information of a plurality of audio and video data in the original audio and video data, and the attribute information of the plurality of audio and video data constitutes the attribute information of the available audio and video data available for the second version information.
[0116] For example, the audio data associated with channel A has 10,000 songs, the number of available audio data of channel A corresponding to the second version information 1.0 is 8,000 songs, and the number of available audio data of channel A corresponding to the second version information 1.1 is 9,500 songs. Then, the second version information 1.0 can obtain the attribute information of 8,000 corresponding available audio and video data according to the first mapping table, and the second version information 1.1 can obtain the attribute information of 9,500 corresponding available audio and video data according to the first mapping table.
[0117] The attribute information of the original audio and video data and the attribute information of the available audio and video data have been explained in detail in step S202, and will not be repeated here.
[0118] In the above technical solution, the server obtains the device identifier and the first version information in the first data acquisition request, obtains the corresponding second version information in the server according to the first version information, limits from all audio and video data corresponding to all channels available to the server by using the device identifier and the second version information, and obtains the available audio and video data corresponding to the available channel, so as to realize automatic division and maintenance of the audio and video data available to different device identifiers and different first version information applications installed in the device by the server, and improve the accuracy and efficiency of audio and video data processing.
[0119] Figure 4 The flowchart of the data processing method provided by another embodiment of the application is shown in the figure. The execution subject of the data processing method is a server. As shown in the figure, the data processing method provided by the application comprises the following steps. Figure 4 As shown in the figure, the data processing method provided by the application comprises the following steps.
[0120] S401, receiving the copyright change information of the original audio and video data of each service channel sent by each channel server.
[0121] In this step, the copyright change information of the original audio and video data of each service channel refers to the copyright change information generated when the audio and video data and related information in each channel server change, and the copyright change information includes data change information and corresponding interface data.
[0122] The data change information includes at least one of data increase information, data decrease information and data replacement information.
[0123] S402, updating the second mapping table locally stored and representing the attribute information of the original audio and video data associated with the service channel according to the copyright change information.
[0124] In this step, the copyright change information is obtained from step S401.
[0125] The second mapping table locally stored and representing the attribute information of the original audio and video data associated with the service channel means that the server stores a plurality of second mapping tables, and the number of the second mapping tables is the same as the number of all service channels that the server can obtain. Each second mapping table includes a service channel corresponding to the second mapping table, attribute information of the original audio and video data that the service channel can provide to the server call, and a corresponding relationship between the single service channel and the attribute information of the original audio and video data that the service channel can provide to the server call, wherein the number relationship between the service channel and the corresponding attribute information of the original audio and video data is one-to-many.
[0126] The server updates the second mapping table locally stored according to the data change information in the copyright change information of the service channel, which means that the server supplements and / or replaces the attribute information of the original audio and video data corresponding to the data change information in the channel server to the corresponding position of the second mapping table locally stored in the server according to the data change information in the copyright change information of the service channel.
[0127] S403, determining the second mapping table corresponding to each available channel from the second mapping table locally stored and representing the attribute information of the original audio and video data associated with the service channel.
[0128] In this step, the second mapping table locally stored and representing the attribute information of the original audio and video data associated with the service channel means that the server locally stores the second mapping table corresponding to all service channels. The second mapping table is obtained after the updating according to the copyright change information in step S402.
[0129] When the server obtains the first data acquisition request sent by the terminal, the service support state of each channel is determined according to the device identifier, the second mapping table corresponding to the service channel with the "support" service state is determined as the channel that the terminal can access and use, so as to obtain the second mapping table corresponding to each available channel.
[0130] S404, obtaining the attribute information of the original audio and video data associated with each available channel according to the second mapping table corresponding to each available channel.
[0131] In this step, the second mapping table corresponding to each available channel is obtained from step S403.
[0132] The attribute information of the original audio and video data contained in the second mapping table corresponding to the channel includes an audio and video data ID, an artist ID, an album ID, and state information corresponding to each ID. For example, the state information corresponding to the audio and video data ID includes but is not limited to an audio and video data name, an audio and video data cover, and an audio and video data duration; the state information corresponding to the artist ID includes but is not limited to an artist name, an artist photo, and an artist gender; and the state information corresponding to the album ID includes but is not limited to an album name, an album cover, and an issue time.
[0133] In the above technical solution, when the copyright of the original audio and video data in the channel server is changed, the server acquires the copyright change information and updates the locally stored second mapping table according to the information, thereby ensuring the consistency of the information in the server. After the information is updated, the attribute information of the original audio and video data associated with the available channel is acquired again, thereby realizing the accuracy of the user in acquiring the audio and video data.
[0134] Figure 5 A flowchart of a data processing method provided by another embodiment of the application is shown in FIG. 4. The execution subject of the data processing method is a server. As shown in FIG. 4, the data processing method provided by the application includes the following steps. Figure 5
[0135] S501, acquiring data exception information.
[0136] In this step, the data exception information is information generated by the terminal or the server when an exception occurs in the process of the terminal acquiring the audio and video data. The data exception information includes audio and video data exception information and multiple audio and video data corresponding relationship exception information. The data exception information further includes a calling parameter of the exception audio and video data. The data exception information refers to information generated when the audio and video data corresponding to the calling parameter returned by the server does not match the audio and video data request information sent by the terminal to the server or the audio and video data is empty. The multiple audio and video data corresponding relationship exception information refers to a situation that the corresponding relationship of multiple audio and video data stored in the server does not match the corresponding relationship stored in the channel server or the corresponding relationship is empty. For example, a first audio and video data is an album, a second audio and video data is a song A, and a third audio and video data is a song B. The data corresponding relationship stored in the server is that the album includes the song A but does not include the song B. However, the data corresponding relationship in the channel server is that the album includes the song A and the song B, resulting in a problem of inconsistent corresponding relationship. Or, because the copyright of the song A is limited, the album is empty, the server fails to delete the first audio and video data corresponding to the album in time, and the corresponding relationship is empty.
[0137] The process of obtaining the data exception information specifically includes S5011-S5012:
[0138] S5011, receiving a second data acquisition request sent by a terminal.
[0139] In this step, the second data acquisition request is generated by the terminal according to the attribute data of the available audio and video data to generate a play instruction.
[0140] The attribute data of the available audio and video data is obtained from the second mapping table in step S404.
[0141] S5012, according to the attribute data of the available audio and video data, find the third mapping table to obtain the query result, and generate the data exception information when the query result indicates that the query fails.
[0142] In this step, the third mapping table represents the corresponding relationship between the attribute data of the available audio and video data and the available audio and video data, which includes but is not limited to: interface information of calling available audio and video data, storage location of available audio and video data in the server, etc.
[0143] The attribute data of the available audio and video data is parsed from the second data acquisition request obtained in step S5011.
[0144] S502, generating a copyright verification request according to the abnormal audio and video data, and sending the copyright verification request to the corresponding channel server.
[0145] In this step, the abnormal audio and video data is obtained from step S501.
[0146] The copyright verification request refers to a request to obtain the corresponding relationship between the attribute data of the available audio data and the abnormal audio and video data set in the channel server.
[0147] S503, receiving the copyright verification result sent by the channel server, and updating the second mapping table using the copyright verification result.
[0148] In this step, receiving the copyright verification result sent by the channel server refers to obtaining the corresponding relationship between the attribute data of the available audio and video data and the abnormal audio and video data set in the channel server.
[0149] After the server obtains the corresponding relationship sent by the channel server, it verifies whether the corresponding relationship of the abnormal audio and video data in the third mapping table stored locally in the server is consistent with the calling relationship set in the channel server.
[0150] If the corresponding relationship changes, the third mapping table is updated by replacing the corresponding relationship stored in the third mapping table with the newly acquired corresponding relationship; if the corresponding relationship disappears, i.e., the channel server loses the copyright of the audio and video, the corresponding relationship in the third mapping table is deleted. After the third mapping table is updated, update information of the third mapping table is generated.
[0151] According to the update information of the third mapping table, change information of attribute information of the original audio and video data associated with the corresponding service channel is determined, and the second mapping table is updated according to the change information.
[0152] In the above technical solution, when the user encounters an exception in acquiring available audio and video data through the server, the server acquires data exception information and performs copyright verification in the corresponding channel server according to the data exception information, and updates the third mapping table with the new corresponding relationship obtained after the verification, and determines change information of attribute information of the original audio and video data associated with the corresponding service channel using the information in the updated third mapping table, and further updates the second mapping table according to the change information, thereby realizing correction of the related information of the audio and video data stored in the server and ensuring the accuracy of the user in acquiring audio and video data.
[0153] Figure 6 A flowchart of a data processing method provided by another embodiment of the application is shown in FIG. 6. The execution subject of the data processing method is a terminal. As shown in FIG. 6, the data processing method provided by the application comprises the following steps. Figure 6
[0154] S601, generating a first data acquisition request according to the device identifier of the terminal stored locally and the first version information of the application when starting the application.
[0155] The terminal device identifier and the first version information of the application have been explained in detail in step S201, and will not be repeated here.
[0156] The first data acquisition request includes a device identifier, version information that can be read by the server, and a list request for acquiring audio and video data in a plurality of channel servers that can be acquired by the terminal.
[0157] S602, sending the first data acquisition request to the server, the first data acquisition request being used to make the server acquire the original audio and video data associated with at least one available channel corresponding to the device identifier, and select available audio and video data from the original audio and video data associated with the at least one available channel using the first version information.
[0158] In this step, the first data acquisition request is acquired from step S602.
[0159] The server queries a service support relationship table through the device identifier parsed from the first data acquisition request to obtain at least one available channel that can provide audio and video data calling services for the terminal corresponding to the device identifier.
[0160] The server calculates second version information using the first version information parsed from the first data acquisition request, and then selects available audio and video data from original audio and video data associated with the at least one available channel through the second version information.
[0161] The acquisition of available audio and video data from the at least one available channel according to the device identifier and the first version information has been explained in detail in steps S301 to S305, and will not be repeated here.
[0162] S603, receiving available audio and video data sent by the server.
[0163] The available audio and video data is obtained in step S603.
[0164] S604, obtaining a playing instruction of the available audio and video data.
[0165] In this step, the playing instruction of the available audio and video data refers to a playing instruction generated after the user selects or searches in the available audio and video data list of the application. The playing instruction includes but is not limited to a single audio and video data playing instruction, an album playing instruction, and a playlist playing instruction.
[0166] S605, generating a second data acquisition request according to the playing instruction and sending the second data acquisition request to the server, the second data acquisition request being used to make the server find a third mapping table according to attribute data of the available audio and video data to obtain a query result, and generating data exception information when the query result indicates a query failure.
[0167] In this step, the third mapping table represents a corresponding relationship between the attribute data of the available audio and video data and the available audio and video data, which includes but is not limited to interface information for calling the available audio and video data and storage locations of the available audio and video data in the server.
[0168] The second data acquisition request is an instruction sent by the terminal to the server to acquire available audio and video data, which includes attribute data of the audio and video data, so as to make the server query the attribute data in the third mapping table stored locally, and return the available audio and video data stored in the server or interface information of the available audio and video data in the corresponding service channel to the terminal. The audio and video data correspond to the playing instruction obtained in step S605.
[0169] The server looks up the third mapping table according to the attribute data of the available audio data to obtain a query result, which means that the state of the corresponding audio / video data is determined according to the attribute information of the available audio / video data, and the audio / video data is acquired when the state is normal. The process of looking up the third mapping table according to the attribute information of the audio / video data to obtain a query result and generating data exception information when the query fails has been explained in detail in step S5012, and will not be repeated here.
[0170] In the technical solution described above, the terminal generates a first data acquisition request according to the device identifier and the version information of the application program, and sends the first data acquisition request to the server, so that the corresponding available audio / video data is acquired according to the device identifier and the version information, and the fineness of the range of available audio / video data that can be acquired by each terminal is improved. In addition, the terminal can acquire the corresponding audio / video data through a second data acquisition request, and generate data exception information when an exception occurs, so as to ensure the timeliness and data content accuracy of the correction of the server to the exception data.
[0171] As shown in Figure 7 An embodiment of the present application provides a server 700, which comprises a memory 701 and a processor 702.
[0172] The memory 701 is used for storing computer instructions executable by the processor.
[0173] The processor 702 realizes each step in the data processing method with the server as the execution subject when executing the computer instructions. For details, refer to the related description in the foregoing data processing method embodiments.
[0174] Optionally, the memory 701 can be independent or integrated with the processor 702. When the memory 701 is independently arranged, the server further comprises a bus for connecting the memory 701 and the processor 702.
[0175] As shown in Figure 8 An embodiment of the present application provides a terminal 800, which comprises a memory 801 and a processor 802.
[0176] The memory 801 is used for storing computer instructions executable by the processor.
[0177] The processor 802 realizes each step in the data processing method with the terminal as the execution subject when executing the computer instructions. For details, refer to the related description in the foregoing data processing method embodiments.
[0178] Optionally, the memory 801 can be independent or integrated with the processor 802. When the memory 801 is independently arranged, the server further comprises a bus for connecting the memory 801 and the processor 802.
[0179] The embodiment of the present application further provides a computer readable storage medium, and the computer readable storage medium stores computer instructions. When a processor executes the computer instructions, each step in the data processing method in the above embodiment is implemented.
[0180] The embodiment of the present application further provides a computer program product, and the computer program product comprises computer instructions. When a processor executes the computer instructions, each step in the data processing method in the above embodiment is implemented.
[0181] Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. It is intended that the specification and examples be considered as exemplary only, with the true scope and spirit of the application being indicated by the following claims.
[0182] It should be understood that the application is not limited to the precise construction that has been described above and shown in the accompanying drawings, and that various modifications and changes can be made by those skilled in the art without departing from the scope of the application. The scope of the application is limited only by the appended claims.
Claims
1. A data processing method, characterized by, The method is applied to a server, and comprises: receiving a first data acquisition request sent by a terminal, wherein the first data acquisition request comprises a device identifier of the terminal and first version information of an application program, the first data acquisition request is generated by the terminal when starting the application program, and the first data acquisition request is used to acquire a list of original audio and video data that can be acquired by the application program installed in the terminal and having the first version information; acquiring attribute information of original audio and video data associated with at least one available channel corresponding to the device identifier, and selecting attribute information of available audio and video data from the attribute information of the original audio and video data associated with the at least one available channel by using the first version information; the original audio and video data refer to all audio and video data stored in a channel server, and the available audio and video data refer to audio and video data that can be used by the application program corresponding to the first version information and provided by the channel server corresponding to the device identifier; sending the attribute information of the available audio and video data to the terminal; acquiring data exception information, wherein the data exception information comprises exception audio and video data; generating a copyright verification request according to the exception audio and video data, and sending the copyright verification request to a corresponding channel server; receiving a copyright verification result sent by the channel server, and updating a second mapping table by using the copyright verification result; the second mapping table is used to indicate attribute information of original audio and video data associated with a service channel; the acquiring of the data exception information specifically comprises: receiving a second data acquisition request sent by the terminal, wherein the second data acquisition request is generated by the terminal according to the attribute data of the available audio and video data to generate a playing instruction; finding a third mapping table according to the attribute data of the available audio and video data to obtain a query result, and generating the data exception information when the query result indicates a query failure; wherein the third mapping table indicates a corresponding relationship between the attribute data of the available audio and video data and the available audio and video data.
2. The method of claim 1, wherein, The acquiring of the attribute information of the original audio and video data associated with the at least one available channel corresponding to the device identifier specifically comprises: acquiring service support states of respective channels corresponding to the device identifier; determining attribute information of original audio and video data associated with at least one available channel according to the service support states of the respective channels.
3. The method of claim 2, wherein, The determining of the attribute information of the original audio and video data associated with the at least one available channel according to the service support states of the respective channels specifically comprises: determining at least one available channel according to the service support states of the respective channels; acquiring attribute information of original audio and video data associated with each available channel, and integrating and de-redundant processing attribute information of original audio and video data associated with all available channels to obtain attribute information of original audio and video data associated with the at least one available channel.
4. The method of claim 1, wherein, The selecting of the attribute information of the available audio and video data from the attribute information of the original audio and video data associated with the at least one available channel by using the first version information specifically comprises: obtaining second version information according to the first version information and a version mapping table; select attribute information of available audio and video data from attribute information of original audio and video data associated with the at least one available channel using the second version information and the locally stored first mapping table; The first mapping table is used to represent a correspondence between the attribute information of the original audio and video data and the second version information.
5. The method of claim 3, wherein, Before obtaining the attribute information of the original audio and video data associated with the at least one available channel corresponding to the device identifier, the method further comprises: receiving copyright change information of the original audio and video data of each service channel sent by each channel server; updating a plurality of locally stored second mapping tables used to represent attribute information of the original audio and video data associated with the service channel according to the copyright change information.
6. The method of claim 5, wherein, The obtaining of the attribute information of the original audio and video data associated with each available channel specifically comprises: determining a second mapping table corresponding to each available channel from a plurality of locally stored second mapping tables used to represent attribute information of the original audio and video data associated with the service channel; obtaining attribute information of the original audio and video data associated with each available channel according to the second mapping table corresponding to each available channel.
7. A data processing method, characterized by, The method is applied to a terminal, and the method comprises: generating a first data acquisition request according to a device identifier of the terminal and first version information of an application program when starting the application program; the first data acquisition request is used to acquire a list of original audio and video data that can be acquired by the application program of the first version information installed on the terminal; sending the first data acquisition request to a server, the first data acquisition request being used to make the server acquire original audio and video data associated with at least one available channel corresponding to the device identifier and select available audio and video data from the original audio and video data associated with the at least one available channel using the first version information; the original audio and video data refers to all audio and video data stored in a channel server, and the available audio and video data refers to audio and video data that can be used by the channel server corresponding to the device identifier for the application program corresponding to the first version information; receiving the available audio and video data sent by the server; acquiring a playing instruction of the available audio and video data; generating a second data acquisition request according to the playing instruction and sending the second data acquisition request to the server, the second data acquisition request being used to make the server find a third mapping table according to attribute data of the available audio and video data to obtain a query result, and generating data exception information when the query result indicates that the query fails; The third mapping table represents a corresponding relationship between the attribute data of the available audio and video data and the available audio and video data.
8. A server, characterized by comprise: a processor and a memory connected with the processor in communication; the memory stores computer execution instructions; the processor executes the computer execution instructions stored in the memory to implement the data processing method in any one of claims 1 to 6.
9. A terminal, characterized by comprising: comprise: a processor and a memory connected with the processor in communication; the memory stores computer execution instructions; The processor executes computer-executed instructions stored in the memory to implement the data processing method of claim 7.
10. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer instructions, and the computer instructions are executed by the processor to implement the data processing method of any one of claims 1 to 6, or any one of claim 7.
Citation Information
Patent Citations
Application login method and terminal
CN106899574A
Media resource playing method and device, media resource transmission method and device, storage medium and electronic device
CN110351387A