CN110769072A - Multimedia resource acquisition method, device and storage medium - Google Patents

Multimedia resource acquisition method, device and storage medium Download PDF

Info

Publication number
CN110769072A
CN110769072A CN201911055764.XA CN201911055764A CN110769072A CN 110769072 A CN110769072 A CN 110769072A CN 201911055764 A CN201911055764 A CN 201911055764A CN 110769072 A CN110769072 A CN 110769072A
Authority
CN
China
Prior art keywords
resource
detected
address
unique identifier
detection terminal
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.)
Pending
Application number
CN201911055764.XA
Other languages
Chinese (zh)
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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology 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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN201911055764.XA priority Critical patent/CN110769072A/en
Publication of CN110769072A publication Critical patent/CN110769072A/en
Pending legal-status Critical Current

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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms
    • H04L67/108Resource delivery mechanisms characterised by resources being split in blocks or fragments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context

Abstract

The present disclosure provides a multimedia resource acquisition method, an apparatus and a storage medium, which are used to solve the problems of different multimedia resource interfaces and low cross-region acquisition speed in the prior art, and relate to the technical field of resource acquisition. In the method, if the resource identifier contains information indicating that the resource to be detected is the identifier of the third-party resource, the resource to be detected is stored in a resource pool. According to the method, the third-party resources are stored in the resource pool, so that a detector does not need to access the server of each third-party resource through a plurality of interfaces when detecting the resources to be detected, and can access the resource pool through the unified interface, thereby avoiding the problem that the multimedia resources cannot be quickly obtained due to the fact that the access interfaces of the multimedia resources are different and the obtaining logic is disordered in the related technology.

Description

Multimedia resource acquisition method, device and storage medium
Technical Field
The present disclosure relates to the field of resource acquisition technologies, and in particular, to a method, an apparatus, and a storage medium for acquiring multimedia resources.
Background
In the related art, when detecting multimedia resources, the multimedia resources need to be acquired, the multimedia resources may come from a Content Delivery Network (CDN), a video cloud, an external Network link, an internal storage resource, and the like, and the locations of the multimedia resources may also be in different countries.
For the above reasons, the acquisition of multimedia resources in the related art has the following problems: when external multimedia resources, especially cross-region resources are obtained, the problems of slow network speed, overtime obtaining and unstable network exist. Moreover, the access interfaces of the multimedia resources are different, the acquisition logic is disordered, and the multimedia resources cannot be acquired quickly.
Disclosure of Invention
In order to solve the above problem, the present disclosure provides a multimedia resource acquisition method, apparatus, and storage medium.
In a first aspect, the present disclosure provides a multimedia resource obtaining method, including:
receiving a resource identifier of a resource to be detected;
and if the resource identifier contains information indicating that the resource to be detected is a third-party resource, storing the resource to be detected in a resource pool, wherein the resource pool is provided with a uniform access interface, so that each detection terminal for detecting the resource acquires the resource from the resource pool through the uniform access interface of the resource pool to detect the resource.
Optionally, after storing the resource to be detected in the resource pool, the method further includes:
generating a global unique identifier of the resource to be detected;
sending the resource to be detected and the global unique identifier to each regional server; and each area server is used for providing resources to be detected for the detection terminal in the corresponding area.
Optionally, storing the resource to be detected in a resource pool, including:
if the data volume of the resource to be detected is larger than or equal to a preset threshold value, the resource to be detected is partitioned;
and storing the fragmentation result of the resource to be detected and the fragmentation identification corresponding to each fragmentation result.
Optionally, after the resource to be detected and the global unique identifier are sent to each regional server, the method further includes:
receiving a downloading request of the resource to be detected sent by a detection terminal, wherein the downloading request carries a global unique identifier of the resource to be detected;
determining a fragment identifier corresponding to the global unique identifier carried in the download request according to the corresponding result of the global unique identifier and the fragment identifier;
acquiring the determined fragmentation result of the resource to be detected corresponding to the fragmentation identification according to the corresponding relation between the fragmentation identification and the fragmentation result;
synthesizing the obtained slicing results into complete resources to be detected according to a preset sequence;
and returning the complete resource to be detected to the detection terminal.
Optionally, after the resource to be detected and the global unique identifier are sent to each regional server, the method further includes:
receiving a browsing request of the resource to be detected sent by a detection terminal, wherein the browsing request carries a global unique identifier of the resource to be detected and initial time information of a fragment to be browsed of the resource to be detected; if the starting time information is a first specified value, the browsing request is automatically triggered by the detection terminal, and if the starting time information is a second specified value, the browsing request is triggered by the operation of the detection terminal user;
acquiring a resource path of the resource to be detected according to the global unique identifier;
under the resource path, acquiring a fragmentation result corresponding to the starting time information carried in the browsing request according to the corresponding relation between the starting time information of the resource to be detected and the fragmentation result of the resource to be detected;
and returning the acquired fragmentation result to the detection terminal.
Optionally, the generated global unique identifier includes a storage state and a resource address, and the resource address is obtained from the resource identifier of the resource to be detected in advance; if the resource to be detected is successfully stored in the resource pool, the storage state is stored, and if the resource to be detected is not successfully stored in the resource pool, the storage state is not stored;
acquiring the resource path of the resource to be detected according to the global unique identifier, including:
if the storage state is stored, generating a resource path of the resource to be detected according to the global unique identifier and the storage path of the resource to be detected;
and if the storage state is not stored, acquiring the resource address in the global unique identifier as a resource path of the resource to be detected.
Optionally, generating a resource path of the resource to be detected according to the global unique identifier and the storage path of the resource to be detected includes:
determining a geographical area where the IP address of the publishing equipment of the resource to be detected is located, and determining a geographical area where the IP address of the detection terminal is located;
if the geographic area where the IP address of the releasing equipment is located is the same as the geographic area where the IP address of the detecting terminal is located, determining whether the geographic area where the IP address of the detecting terminal is located is provided with the CDN or not according to the pre-stored corresponding relation between the CDN and the geographic area where the IP address of the detecting terminal is located;
if a CDN is deployed, generating a CDN address of the resource to be detected according to the global unique identifier, and taking the CDN address as a resource path of the resource to be detected;
if the CDN is not deployed, generating a first Uniform Resource Locator (URL) address of the resource to be detected according to the global unique identifier, and taking the first URL address as a resource path of the resource to be detected; and the first URL address is used for pointing to the resource pool or the area server where the detection terminal is located.
Optionally, the method further includes:
if the geographic area where the IP address of the publishing equipment of the resource to be detected is located is different from the geographic area where the IP address of the detection terminal is located, determining whether the geographic area where the IP address of the detection terminal is located is provided with a regional server;
if a regional server is deployed in a geographic region where the IP address of the detection terminal is located, generating a second URL address of the resource to be detected according to the global unique identifier, and taking the second URL address as a resource path of the resource to be detected; the second URL address is used for pointing to a region server where the detection terminal is located;
if the geographic area where the IP address of the detection terminal is located is not provided with an area server, generating a third URL address of the resource to be detected according to the global unique identifier, and taking the third URL address as a resource path of the resource to be detected; and the third URL address is used for pointing to the resource pool, so that the resource pool receives a resource acquisition request which is sent by the detection terminal and carries the third URL address through the unified access interface.
Optionally, before storing the resource to be detected in the resource pool, the method further includes:
performing first duplicate checking detection on the resource to be detected according to a message digest algorithm and the resource identifier to obtain a first duplicate checking result;
if the same resource is not found in the first duplicate checking result, downloading the resource to be detected;
performing secondary duplicate checking detection on the resource to be detected according to a message digest algorithm and the downloaded resource content of the resource to be detected to obtain a secondary duplicate checking result; and determining that the same resource is not found in the secondary duplicate checking detection result.
Optionally, downloading the resource to be detected includes:
if the downloading fails, the resource to be detected is downloaded again at intervals of gradient time;
and if the re-downloading fails in the last gradient time, sending information indicating that the resource to be detected is unavailable to a third-party server corresponding to the resource to be detected.
Optionally, after the resource to be detected is acquired, the method further includes:
and converting the format of the resource to be detected into an expected format.
In a second aspect, the present disclosure also provides a multimedia resource acquiring apparatus, including:
a first receiving unit configured to perform receiving a resource identifier of a resource to be detected;
and the storage unit is configured to store the resource to be detected into a resource pool if the resource identifier contains information indicating that the resource to be detected is a third-party resource, wherein the resource pool is provided with a uniform access interface, so that each detection terminal for detecting the resource acquires the resource from the resource pool through the uniform access interface of the resource pool to perform detection.
Optionally, the apparatus further comprises:
the generation unit is configured to generate a global unique identifier of the resource to be detected after the resource to be detected is stored in a resource pool;
the sending unit is configured to send the resource to be detected and the global unique identifier to each regional server; and each area server is used for providing resources to be detected for the detection terminal in the corresponding area.
Optionally, the storage unit is specifically configured to perform:
if the data volume of the resource to be detected is larger than or equal to a preset threshold value, the resource to be detected is partitioned;
and storing the fragmentation result of the resource to be detected and the fragmentation identification corresponding to each fragmentation result.
Optionally, the apparatus further comprises:
the second receiving unit is configured to receive a download request of the resource to be detected sent by a detection terminal after the resource to be detected and the global unique identifier are sent to each regional server, wherein the download request carries the global unique identifier of the resource to be detected;
the determining unit is configured to determine the fragment identifier corresponding to the global unique identifier carried in the download request according to the corresponding result of the global unique identifier and the fragment identifier;
the second obtaining unit is configured to execute the corresponding relation between the fragment identification and the fragment result to obtain the fragment result of the resource to be detected corresponding to the determined fragment identification;
the synthesis unit is configured to synthesize the acquired segmentation results into a complete resource to be detected according to a preset sequence;
and the first returning unit is configured to execute returning the complete resource to be detected to the detection terminal.
Optionally, the apparatus further comprises:
a third receiving unit, configured to execute sending the resource to be detected and the global unique identifier to each regional server, and then receive a browsing request of the resource to be detected sent by a detection terminal, where the browsing request carries the global unique identifier of the resource to be detected and start time information of a fragment to be browsed of the resource to be detected; if the starting time information is a first specified value, the browsing request is automatically triggered by the detection terminal, and if the starting time information is a second specified value, the browsing request is triggered by the operation of the detection terminal user;
a first obtaining unit configured to obtain a resource path of the resource to be detected according to the global unique identifier;
the first obtaining unit is further configured to obtain, in the resource path, a fragmentation result corresponding to the start time information carried in the browsing request according to a correspondence between the start time information of the resource to be detected and the fragmentation result of the resource to be detected;
and the second returning unit is configured to execute returning the slicing result corresponding to the position to the detection terminal.
Optionally, the generated global unique identifier includes a storage state and a resource address, and the resource address is obtained from the resource identifier of the resource to be detected in advance; if the resource to be detected is successfully stored in the resource pool, the storage state is stored, and if the resource to be detected is not successfully stored in the resource pool, the storage state is not stored;
the first obtaining unit is specifically configured to perform:
if the cache state is cached, generating a resource path of the resource to be detected according to the global unique identifier and the storage path of the resource to be detected;
and if the cache state is not cached, acquiring the resource address in the global unique identifier as the resource path of the resource to be detected.
Optionally, the first obtaining unit is specifically configured to perform:
determining a geographical area where the IP address of the publishing equipment of the resource to be detected is located, and determining a geographical area where the IP address of the detection terminal is located;
if the geographic area where the IP address of the releasing equipment is located is the same as the geographic area where the IP address of the detecting terminal is located, determining whether the geographic area where the IP address of the detecting terminal is located is provided with the CDN or not according to the pre-stored corresponding relation between the CDN and the geographic area where the IP address of the detecting terminal is located;
if a CDN is deployed, generating a CDN address of the resource to be detected according to the global unique identifier, and taking the CDN address as a resource path of the resource to be detected;
if the CDN is not deployed, generating a first Uniform Resource Locator (URL) address of the resource to be detected according to the global unique identifier, and taking the first URL address as a resource path of the resource to be detected; and the first URL address is used for pointing to the resource pool or the area server where the detection terminal is located.
Optionally, the first obtaining unit is further configured to perform:
if the geographic area where the IP address of the publishing equipment of the resource to be detected is located is different from the geographic area where the IP address of the detection terminal is located, determining whether the geographic area where the IP address of the detection terminal is located is provided with a regional server;
if a regional server is deployed in a geographic region where the IP address of the detection terminal is located, generating a second URL address of the resource to be detected according to the global unique identifier, and taking the second URL address as a resource path of the resource to be detected; the second URL address is used for pointing to a region server where the detection terminal is located;
if the geographic area where the IP address of the detection terminal is located is not provided with an area server, generating a third URL address of the resource to be detected according to the global unique identifier, and taking the third URL address as a resource path of the resource to be detected; and the third URL address is used for pointing to the resource pool, so that the resource pool receives a resource acquisition request which is sent by the detection terminal and carries the third URL address through the unified access interface.
Optionally, the apparatus further comprises:
the first duplicate checking and detecting unit is configured to perform first duplicate checking and detecting on the resource to be detected according to a message digest algorithm and the resource identifier before the resource to be detected is stored in a resource pool, so as to obtain a first duplicate checking result;
the downloading unit is configured to download the resource to be detected if the same resource is not found in the first duplicate checking result;
the second duplicate checking and detecting unit is configured to execute second duplicate checking and detecting on the resource to be detected according to a message digest algorithm and the resource content of the resource to be detected, so as to obtain a second duplicate checking result; and determining that the same resource is not found in the secondary duplicate checking detection result.
Optionally, the downloading unit is specifically configured to perform:
if the downloading fails, the resource to be detected is downloaded again at intervals of gradient time;
and if the re-downloading fails in the last gradient time, sending information indicating that the resource to be detected is unavailable to a third-party server corresponding to the resource to be detected.
Optionally, the apparatus further comprises:
and the format conversion unit is configured to convert the format of the resource to be detected into an expected format after acquiring the resource to be detected.
In a third aspect, another embodiment of the present disclosure also provides an electronic device, including at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute any multimedia resource acquisition method provided by the embodiment of the disclosure.
In a fourth aspect, another embodiment of the present disclosure further provides a computer storage medium, where the computer storage medium stores computer-executable instructions, and the computer-executable instructions are configured to cause a computer to execute any multimedia resource acquisition method in the embodiments of the present disclosure.
In a fifth aspect, the present disclosure also provides a program product, which includes program code for causing a computer device to execute any one of the multimedia resource acquisition methods in the embodiments of the present disclosure when the program product runs on the computer device.
According to the multimedia resource acquisition method, the multimedia resource acquisition device and the multimedia resource acquisition storage medium, the third-party resources are stored in the resource pool, so that a detector does not need to access servers of the third-party resources through a plurality of interfaces when detecting the resources to be detected, the resource pool can be accessed through the unified interface, and the efficiency of accessing the resources to be detected is improved.
Additional features and advantages of the disclosure will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the disclosure. The objectives and other advantages of the disclosure may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments of the present invention will be briefly described below, and it is obvious that the drawings described below are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of a multimedia resource acquisition method in an exemplary embodiment of the present disclosure;
fig. 2 is a flowchart illustrating a multimedia resource acquisition method in an exemplary embodiment of the disclosure;
fig. 3 is another flow chart illustrating a multimedia resource acquisition method in an exemplary embodiment of the disclosure;
fig. 4 is a schematic diagram of a multimedia resource acquiring apparatus in an exemplary embodiment of the present disclosure;
fig. 5 is an electronic device in an exemplary embodiment of the disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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.
In the related art, when external multimedia resources, especially cross-region resources are acquired, the problems of slow network speed, overtime acquisition and unstable network exist. Moreover, the access interfaces of the multimedia resources are different, the acquisition logic is disordered, and the multimedia resources cannot be quickly acquired. In addition, when acquiring the cross-region resources, the problem of overtime of acquiring the multimedia resources due to slow network speed is solved.
In view of the above, the present disclosure provides a multimedia resource acquiring method. In the method, a resource identifier of a resource to be detected is received. And if the resource identifier contains information indicating that the resource to be detected is the identifier of the third-party resource, storing the resource to be detected in a resource pool. And generating a global unique identifier for the resource to be detected, and sending the resource to be detected and the corresponding global unique identifier to each regional server, so that a detection person can access the resource to be detected through the regional server through a detection terminal.
According to the method, the third-party resources are stored in the resource pool, so that a detector does not need to access the server of each third-party resource through a plurality of interfaces when detecting the resources to be detected, and can access the resource pool through the unified interface, thereby avoiding the problem that the multimedia resources cannot be quickly obtained due to the fact that the access interfaces of the multimedia resources are different and the obtaining logic is disordered in the related technology. Moreover, in the embodiment of the disclosure, since the resource to be detected is sent to each regional server, the inspector can access the resource to be detected through each regional server, thereby avoiding the problem of slow acquisition speed or overtime acquisition caused by acquiring the multimedia resource across regions.
Fig. 1 is a schematic view of an application scenario of a multimedia resource obtaining method according to an exemplary embodiment of the present disclosure. The scene comprises the following steps: control center 101, resource pool 102, and regional server 103. The control center may be implemented by at least one server, and is configured to manage content of the resource pool, including downloading and other processing of the multimedia resource, and the control center 101 may further process a request of the detection terminal to download the multimedia resource.
In the embodiment of the present disclosure, the control center 101 receives a resource identifier of a resource to be detected. If the resource to be detected is determined to be the third-party resource according to the resource identifier, storing the resource to be detected in the resource pool 102, and generating a global unique identifier of the resource to be detected. Then, the control center 101 sends the resource to be detected and the corresponding global unique identifier to each regional server 103, so that the regional server can provide a near service for the detection terminal.
The resource pool 102 and the area server 103 may be a server cluster or a cloud computing center composed of one server or several servers.
Other embodiments of the present disclosure will be described below in conjunction with the drawings for the sake of understanding.
Referring to fig. 2, a flowchart of a multimedia resource obtaining method according to an exemplary embodiment of the disclosure may include the following steps:
step 201: and receiving a resource identifier of the resource to be detected.
In specific implementation, the resource identifier may include a resource address of the resource to be detected. The resource address may be an address pointing to a resource pool, or may also be an address pointing to a third party server. Or the resource identifier can also comprise the type of the resource to be detected, such as pictures, videos, audios and the like, so that the classified storage can be realized during the storage.
Step 202: determining whether the resource identifier contains information indicating that the resource to be detected is an identifier of a third-party resource, if so, executing step 203; otherwise, go to step 205.
Step 203: and storing the resource to be detected in a resource pool, and continuing to execute the step 204.
Step 204: and generating a global unique identifier of the resource to be detected, and continuing to execute the step 205.
Step 205: sending the resource to be detected and the global unique identifier to each regional server; and each area server is used for providing resources to be detected for the detection terminal in the corresponding area.
According to the method, the third-party resources are stored in the resource pool, so that the inspector does not need to access the server of each third-party resource through a plurality of interfaces when detecting the resources to be detected, and can access the resource pool through the uniform interfaces. And the resource to be detected is sent to the regional server, so that a detector can access the resource to be detected nearby through the regional server, and the access speed of the resource to be detected is improved.
When an inspector accesses to-be-detected resources, if the to-be-detected resources are too large, problems such as crash of a detection terminal and the like can be caused. For example, insufficient memory cannot be handled. In order to solve the above problem, the resource to be detected may be fragmented when the step 203 is executed.
In an optional embodiment, if the data volume of the resource to be detected is greater than or equal to a preset threshold, the resource to be detected is fragmented; and then storing the fragmentation result of the resource to be detected and the fragmentation identification corresponding to each fragmentation result. The preset threshold may be set by itself, for example, may be set to 200M, or 300M, etc. When the slices are divided, the number of the slices may be set, for example, the number of the slices is set to 10, 15, or the like. Then the resources to be detected may be evenly fragmented. For example, if the data volume of the resource to be detected is 300M and the number of the fragments is 15, the resource to be detected is divided into 15 fragments, and the data volume of each fragment result is 20M. Alternatively, the data size of each segment result may be set, for example, 15M or 20M. For example, the data volume of the resource to be detected is 200M, the data volume of each fragmentation result is 20M, and during fragmentation, the resource to be detected is divided into 10 fragments, and the data volume of each fragmentation result is 20M.
After the resource to be detected is fragmented, a fragmentation identifier may be allocated to each fragmentation result. And generating a global unique identifier of the resource to be detected according to the fragment identifier. For example, the resource to be detected is divided into 3 pieces, and the piece identifiers are respectively assigned as A1, a2 and A3, and then the globally unique identifier generated according to the piece identifiers is a 123. Where 123 can represent the number of slices simultaneously.
Or, a globally unique identifier a of the resource to be detected may be generated according to the fragment identifiers a1, a2, and A3.
According to the method, when the data volume of the resource to be detected is larger than the preset threshold value, the resource to be detected is fragmented, when the detection terminal accesses the resource to be detected, fragmentation access can be performed, all the resource to be detected does not need to be returned to the detection terminal, the problem that the detection terminal is crashed due to overlarge access resource is avoided, and the stability of the server is guaranteed.
Due to the fact that the storage resources of the resource pool are limited, in order to avoid repeated storage of the resources to be detected, duplicate checking detection can be carried out on the resources to be detected before the global unique identification is generated. In order to improve the accuracy of duplicate checking, the duplicate checking detection can be carried out on the resource to be detected for multiple times based on different methods. This will be explained below by taking two duplicate checks as an example.
Firstly, when the duplicate checking is carried out for the first time, the duplicate checking is carried out on the resource to be detected according to the message digest algorithm and the resource identification. It may be implemented to generate a digest of the resource identification according to the message digest algorithm MD 5. And searching the generated abstract of the resource identification in the abstract of the resource identification of the stored resource. If the same resource is found, determining that the duplicate checking detection result is that the same resource is found. And at the moment, acquiring the global unique identifier of the resource to be detected, and sending the global unique identifier and the resource to be detected to each regional server. If the same resource is not found, determining that the duplicate checking result is that the same resource is not found. And at the moment, downloading the resource to be detected according to the resource identifier, and performing second duplicate checking on the resource to be detected. Optionally, in implementation, a summary of the resource content of the resource to be detected may be generated according to MD 5. And searching the generated abstract of the resource content in the abstract of the resource content of the stored resource.
If the same resource is found, determining the secondary duplicate checking result as the same resource is found. And at the moment, acquiring the global unique identifier of the resource to be detected, and sending the global unique identifier and the resource to be detected to each regional server.
If the same resource is not found, determining that the same resource is not found as a secondary duplicate checking result. At this time, the resource to be detected is stored in the resource pool. Specifically, when the resource to be detected is stored, the format of the resource to be detected may be converted into an expected format. The desired format may be, for example, a format supported by the detection terminal such as MP 4. In a specific implementation, the desired format may be set as needed, for example, set to MP3, etc., and the disclosure is not limited in particular.
According to the method, the duplicate checking detection is carried out on the resources to be detected, so that the waste of the storage resources of the resource pool can be avoided. If the duplicate checking and detecting are performed on the resources to be detected, the duplicate checking and detecting are performed according to the content of the resources, which may result in an excessive calculation amount. Therefore, firstly, the resource to be detected is subjected to the first duplicate checking detection through the resource identifier, and whether the second duplicate checking detection is performed on the resource to be detected is determined according to the result of the first duplicate checking detection, so that the accuracy of the duplicate checking result can be ensured while the calculation amount in the duplicate checking process is reduced. In addition, the resources to be detected are converted into the expected format during storage, so that the problem that the multimedia resources cannot be displayed and frames cannot be extracted due to the format problem can be solved.
And after the first re-check is finished, when the resource to be detected is downloaded, if the downloading fails, the resource to be detected is downloaded again at intervals of gradient time. Alternatively, the number of gradient times may be set by itself, for example, to 5, 6, etc. when implemented. Further, the gradients may be set to be sequentially increased or may be set to be sequentially decreased. That is, the step-up time may be 1s, 2s, and 3s in sequence, and the step-down time may be set to 4s, 3s, and 2s, and the like, and the disclosure is not particularly limited.
And if the re-downloading fails in the last gradient time, sending information indicating that the resource to be detected is unavailable to a third-party server corresponding to the resource to be detected.
For example, the gradient time is 1s, 3s, and 5s, if the downloading is failed again in the last gradient time of 5s, it indicates that the resource to be detected is unavailable, and at this time, information indicating that the resource to be detected is unavailable is sent to the third-party server.
According to the method, when the downloading of the resource to be detected fails, the resource to be detected can be automatically retried, and the normal downloading of the resource to be detected is ensured. When the information cannot be normally downloaded, the third-party server is notified so that the third-party server can know the information, and a resource manager of the third party can timely perform corresponding processing so as to complete detection of the resource to be detected.
After an exemplary processing method of the resource to be detected of the present disclosure is introduced, a method for the detection terminal to access the resource to be detected is introduced next.
Referring to fig. 3, another flow diagram of a multimedia resource acquiring method in an exemplary embodiment of the present disclosure is shown, where the flow diagram is used to explain how to return a corresponding multimedia resource in response to a request of a detection terminal, and the method may include the following steps:
step 301: and receiving a browsing request of the resource to be detected, which is sent by a detection terminal, wherein the browsing request carries the global unique identifier of the resource to be detected and the start time information of the fragment to be browsed of the resource to be detected.
Specifically, if the start time information is a first specified value, the browsing request is automatically triggered by the detection terminal, and if the start time information is a second specified value, the browsing request is triggered by the operation of the detection terminal user.
The start time information here may be time, for example, 15s, 10s, or the like, or may also be start time information indicating a location of the resource, for example, indicating that the location of the resource is 20M, and the fragmentation result is a fragmentation result corresponding to 20M. Also, the first specified value may be time, e.g., the first specified value may be set to 0s, 10s, etc., or the first specified value may be a value indicating the location of the resource, e.g., the first specified value may be set to 0M, 10M, etc. Likewise, the second specified value may be a time greater than the first specified value, such as 15s, 20s, etc. Or the second specified value may be a value indicating the location of the resource that is greater than the first specified value, e.g., the second specified value may be set to 20M, 30M, etc.
In specific implementation, if the resource to be detected in the resource pool is stored in a fragmentation mode, fragmentation access is required when the resource to be detected is accessed. And the fragment access requires the inspector to send a plurality of browsing requests, which affects the inspector's inspection of the resource to be inspected. As such, the present disclosure employs HTTP range (Hyper Text Transfer Protocol request header) to mask the logic of the fragments. That is, after the server of the detection terminal accesses a piece of data of the resource to be detected, the inspector automatically sends a request for continuing to browse the next piece of data.
For example, the browsing request carries the global unique identifier a123, and the start time information is 15s, it can be known that the resource to be detected with the global unique identifier a needs to be acquired after the browsing request is received, and according to the start time information and the rule of the fragment, it can be known that the fragment result with the fragment identifier a2 needs to be acquired. And returns the slicing result with the slicing identification of A2 to the detection terminal.
For another example, the browsing request carries the global unique identifier B1234, and the start time information is 30M, it is known that the resource to be detected of the global unique identifier B needs to be acquired after the browsing request is received, and according to the start time information and the rule of fragmentation, it is known that the fragmentation result of the fragmentation identifier B3 needs to be acquired, and the fragmentation result of the fragmentation identifier B3 is returned to the detection terminal.
Step 302: and acquiring a resource path of the resource to be detected according to the global unique identifier.
Specifically, the generated global unique identifier includes a storage state and a resource address, and the resource address is obtained from the resource identifier of the resource to be detected in advance; and if the resource to be detected is successfully stored in the resource pool, the storage state is stored, and if the resource to be detected is not successfully stored in the resource pool, the storage state is not stored.
For example, if the storage status is stored, it may indicate that the resource to be detected is a third-party resource, and therefore, the resource address included in the resource identifier of the resource to be detected is the address of the third-party server. Therefore, a resource path of the resource to be detected in the local resource pool needs to be generated. In specific implementation, a URL (Uniform resource locator) path of the resource to be detected may be generated.
And if the storage state is not stored, acquiring the resource address in the global unique identifier as the resource path of the resource to be detected.
For example, if the storage status is not stored, it may indicate that the resource to be detected is a non-third-party resource, i.e., a resource of the resource pool. Therefore, the resource address included in the resource identifier of the resource to be detected is an address pointing to the resource pool.
Step 303: and under the resource path, acquiring the fragmentation result corresponding to the start time information carried in the browsing request according to the corresponding relation between the start time information of the resource to be detected and the fragmentation result of the resource to be detected.
Step 304: and returning the acquired fragmentation result to the detection terminal.
According to the method, the resource path pointing to the resource pool is generated for the third-party resource, and the purpose of providing a uniform interface for the terminal to be detected is achieved. In addition, the start time information is carried in the browsing request, so that the required data can be conveniently returned in a slicing mode, and the crash caused by insufficient memory of the detection terminal is avoided.
In specific implementation, when the resource path of the resource to be detected is generated according to the global unique identifier and the storage path of the resource to be detected, a Content Delivery Network (CDN) address or a first URL address may be generated. And the first URL address is used for pointing to the resource pool or the area server where the detection terminal is located.
Optionally, determining a geographical area where the IP address of the publishing device of the resource to be detected is located, and determining a geographical area where the IP address of the detection terminal is located; if the geographic area where the IP address of the issuing equipment of the resource to be detected is located is the same as the geographic area where the IP address of the detection terminal is located, CDM is likely to be deployed in the area, and whether CDN is deployed in the geographic area where the IP address of the detection terminal is located can be further determined according to the corresponding relation between CDN and the geographic area where the IP address of the detection terminal is located. If a CDN is deployed, generating a CDN address of the resource to be detected according to the global unique identifier; if the CDN is not deployed, generating a first Uniform Resource Locator (URL) address of the resource to be detected according to the global unique identifier; and the first URL address is used for pointing to the resource pool or the area server where the detection terminal is located.
For example, CDN deployment areas such as city a, city B, city C, etc. The geographic area where the IP address of the resource to be detected is released is A city, and the geographic area where the IP address of the detection terminal is located is A city. Then, the geographic area where the IP address of the issued resource to be detected is the same as the geographic area where the IP address of the detection terminal is. At this time, it is determined that the CDN is deployed in city a, and a CDN address is generated according to the global unique identifier.
For another example, the geographic area where the IP address of the resource to be detected is released is city D, and the geographic area where the IP address of the detection terminal is located is city D. Then, the geographic area where the IP address of the issued resource to be detected is the same as the geographic area where the IP address of the detection terminal is. At this time, if it is determined that the CDN is not deployed in city D, the first URL address is generated according to the global unique identifier.
Optionally, in implementation, if the D city deploys the regional server, the first URL address points to the regional server. If the D city does not deploy the regional server, the first URL address is an address pointing to the resource pool.
If the geographic area where the IP address of the resource to be detected is issued is different from the geographic area where the IP address of the detection terminal is, whether the detection terminal is served by a corresponding regional server is further confirmed, and whether the regional server is deployed in the geographic area where the IP address of the detection terminal is can be determined.
If a regional server is deployed in the geographic region where the IP address of the detection terminal is located, generating a second URL address of the resource to be detected according to the global unique identifier, wherein the second URL address is used for pointing to the regional server where the detection terminal is located; and if the geographic area where the IP address of the detection terminal is located is not provided with an area server, generating a third URL address of the resource to be detected according to the global unique identifier, wherein the third URL address is used for pointing to the resource pool, so that the resource pool receives a resource acquisition request which is sent by the detection terminal and carries the third URL address through the uniform access interface.
For example, a region where a region server is deployed, such as D city, E city, etc., may be stored. The geographic area where the IP address of the resource to be detected is released is city C, and the geographic area where the IP address of the detection terminal is located is city D. Then, the geographic area where the IP address of the issued resource to be detected is different from the geographic area where the IP address of the detection terminal is. At this time, it is determined that the geographic area where the IP address of the detection terminal is located is deployed with the area server, and then the second URL address is generated according to the global unique identifier.
For another example, the geographic area where the IP address of the resource to be detected is released is city C, and the geographic area where the IP address of the detection terminal is located is city F. Then, the geographic area where the IP address of the issued resource to be detected is different from the geographic area where the IP address of the detection terminal is. At this time, it is determined that the geographic area where the IP address of the detection terminal is located does not deploy the regional server, and then a third URL address, that is, an address of the resource pool, is generated according to the global unique identifier.
According to the method, the CDN and the regional server are deployed, so that the detection terminal can access the resource to be detected through the nearby CDN or the regional server, and the access speed of the resource to be detected is improved.
After the exemplary method for browsing the resource to be detected of the present disclosure is introduced, a method for downloading the resource to be detected is introduced next.
In specific implementation, a download request of the resource to be detected sent by a detection terminal is received, wherein the download request carries a globally unique identifier of the resource to be detected. And determining the fragment identifier corresponding to the global unique identifier carried in the downloading request according to the corresponding relation between the global unique identifier and the fragment identifier. And determining the fragmentation result of the resource to be detected corresponding to the acquired fragmentation identification according to the corresponding relation between the fragmentation result and the fragmentation identification. Synthesizing the obtained slicing results into complete resources to be detected according to a preset sequence; and returning the complete resource to be detected to the detection terminal.
In specific implementation, the preset sequence may be a time sequence, or may be a sequence of key values in the segment identifier. Specifically, the resources to be detected can be combined into complete resources according to the sequence of the key values in the fragment identifier.
For example, the download request carries the global unique identifier a 1234. And if the corresponding relation between the global unique identifier and the fragment identifier is that the global unique identifier A corresponds to the fragment identifiers A1, A2, A3 and A4, obtaining each fragment result of the resource to be detected, A1, A2, A3 and A4 according to the global unique identifier A1234, and synthesizing each fragment result into the complete resource to be detected according to the sequence of A1-A4.
According to the method, the resource to be detected does not need to be downloaded in a slicing mode when being downloaded, the resource to be detected can be synthesized into the complete resource to be detected and returned to the detection terminal, and the operation of the detection terminal can be reduced.
Based on the same inventive concept, the disclosure also provides a multimedia resource acquisition device. Fig. 4 is a schematic diagram of a multimedia resource acquiring apparatus according to an exemplary embodiment of the disclosure. The device includes:
a first receiving unit 401 configured to perform receiving a resource identifier of a resource to be detected;
a storing unit 402, configured to store the resource to be detected into a resource pool if the resource identifier includes information indicating that the resource to be detected is a third-party resource, where the resource pool has a uniform access interface, so that each detection terminal that detects the resource acquires the resource from the resource pool through the uniform access interface of the resource pool to perform detection.
Optionally, the apparatus further comprises:
the generation unit is configured to generate a global unique identifier of the resource to be detected after the resource to be detected is stored in a resource pool;
the sending unit is configured to send the resource to be detected and the global unique identifier to each regional server; and each area server is used for providing resources to be detected for the detection terminal in the corresponding area.
Optionally, the storage unit is specifically configured to perform:
if the data volume of the resource to be detected is larger than or equal to a preset threshold value, the resource to be detected is partitioned;
and storing the fragmentation result of the resource to be detected and the fragmentation identification corresponding to each fragmentation result.
Optionally, the apparatus further comprises:
the second receiving unit is configured to receive a download request of the resource to be detected sent by a detection terminal after the resource to be detected and the global unique identifier are sent to each regional server, wherein the download request carries the global unique identifier of the resource to be detected;
the determining unit is configured to determine the fragment identifier corresponding to the global unique identifier carried in the download request according to the corresponding result of the global unique identifier and the fragment identifier;
the second obtaining unit is configured to execute the corresponding relation between the fragment identification and the fragment result to obtain the fragment result of the resource to be detected corresponding to the determined fragment identification;
the synthesis unit is configured to synthesize the acquired segmentation results into a complete resource to be detected according to a preset sequence;
and the first returning unit is configured to execute returning the complete resource to be detected to the detection terminal.
Optionally, the apparatus further comprises:
a third receiving unit, configured to execute sending the resource to be detected and the global unique identifier to each regional server, and then receive a browsing request of the resource to be detected sent by a detection terminal, where the browsing request carries the global unique identifier of the resource to be detected and start time information of a fragment to be browsed of the resource to be detected; if the starting time information is a first specified value, the browsing request is automatically triggered by the detection terminal, and if the starting time information is a second specified value, the browsing request is triggered by the operation of the detection terminal user;
a first obtaining unit configured to obtain a resource path of the resource to be detected according to the global unique identifier;
the first obtaining unit is further configured to obtain, in the resource path, a fragmentation result corresponding to the start time information carried in the browsing request according to a correspondence between the start time information of the resource to be detected and the fragmentation result of the resource to be detected;
and the second returning unit is configured to execute returning the slicing result corresponding to the position to the detection terminal.
Optionally, the generated global unique identifier includes a storage state and a resource address, and the resource address is obtained from the resource identifier of the resource to be detected in advance; if the resource to be detected is successfully stored in the resource pool, the storage state is stored, and if the resource to be detected is not successfully stored in the resource pool, the storage state is not stored;
the first obtaining unit is specifically configured to perform:
if the cache state is cached, generating a resource path of the resource to be detected according to the global unique identifier and the storage path of the resource to be detected;
and if the cache state is not cached, acquiring the resource address in the global unique identifier as the resource path of the resource to be detected.
Optionally, the first obtaining unit is specifically configured to perform:
determining a geographical area where the IP address of the publishing equipment of the resource to be detected is located, and determining a geographical area where the IP address of the detection terminal is located;
if the geographic area where the IP address of the releasing equipment is located is the same as the geographic area where the IP address of the detecting terminal is located, determining whether the geographic area where the IP address of the detecting terminal is located is provided with the CDN or not according to the pre-stored corresponding relation between the CDN and the geographic area where the IP address of the detecting terminal is located;
if a CDN is deployed, generating a CDN address of the resource to be detected according to the global unique identifier, and taking the CDN address as a resource path of the resource to be detected;
if the CDN is not deployed, generating a first Uniform Resource Locator (URL) address of the resource to be detected according to the global unique identifier, and taking the first URL address as a resource path of the resource to be detected; and the first URL address is used for pointing to the resource pool or the area server where the detection terminal is located.
Optionally, the first obtaining unit is further configured to perform:
if the geographic area where the IP address of the publishing equipment of the resource to be detected is located is different from the geographic area where the IP address of the detection terminal is located, determining whether the geographic area where the IP address of the detection terminal is located is provided with a regional server;
if a regional server is deployed in a geographic region where the IP address of the detection terminal is located, generating a second URL address of the resource to be detected according to the global unique identifier, and taking the second URL address as a resource path of the resource to be detected; the second URL address is used for pointing to a region server where the detection terminal is located;
if the geographic area where the IP address of the detection terminal is located is not provided with an area server, generating a third URL address of the resource to be detected according to the global unique identifier, and taking the third URL address as a resource path of the resource to be detected; and the third URL address is used for pointing to the resource pool, so that the resource pool receives a resource acquisition request which is sent by the detection terminal and carries the third URL address through the unified access interface.
Optionally, the apparatus further comprises:
the first duplicate checking and detecting unit is configured to perform first duplicate checking and detecting on the resource to be detected according to a message digest algorithm and the resource identifier before the resource to be detected is stored in a resource pool, so as to obtain a first duplicate checking result;
the downloading unit is configured to download the resource to be detected if the same resource is not found in the first duplicate checking result;
the second duplicate checking and detecting unit is configured to execute second duplicate checking and detecting on the resource to be detected according to a message digest algorithm and the resource content of the resource to be detected, so as to obtain a second duplicate checking result; and determining that the same resource is not found in the secondary duplicate checking detection result.
Optionally, the downloading unit is specifically configured to perform:
if the downloading fails, the resource to be detected is downloaded again at intervals of gradient time;
and if the re-downloading fails in the last gradient time, sending information indicating that the resource to be detected is unavailable to a third-party server corresponding to the resource to be detected.
Optionally, the apparatus further comprises:
and the format conversion unit is configured to convert the format of the resource to be detected into an expected format after acquiring the resource to be detected.
Referring to fig. 5, based on the same technical concept, an embodiment of the present disclosure further provides an electronic device 50, which may include a memory 501 and a processor 502.
The memory 501 is used for storing computer programs executed by the processor 502. The memory 501 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created from the detection of the use of the terminal device information processing apparatus, and the like. The processor 502 may be a Central Processing Unit (CPU), a digital processing unit, or the like. The specific connection medium between the memory 501 and the processor 502 is not limited in the embodiments of the present disclosure. In fig. 5, the memory 501 and the processor 502 are connected by a bus 503, the bus 503 is represented by a thick line in fig. 5, and the connection manner between other components is merely illustrative and not limited. The bus 503 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus.
The memory 501 may be a volatile memory (volatile memory), such as a random-access memory (RAM); the memory 501 may also be a non-volatile memory (non-volatile) such as, but not limited to, a read-only memory (rom), a flash memory (flash memory), a hard disk (HDD) or a solid-state drive (SSD), or the memory 501 is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory 501 may be a combination of the above memories.
A processor 502 for executing the method performed by the device in the embodiment shown in fig. 2 or the method performed by the device in the embodiment shown in fig. 3 when invoking the computer program stored in the memory 501.
In some possible embodiments, various aspects of the methods provided by the present disclosure may also be implemented in the form of a program product including program code for causing a computer device to perform the steps of the methods according to various exemplary embodiments of the present disclosure described above in this specification when the program product is run on the computer device, for example, the computer device may perform the methods performed by the device in the embodiment shown in fig. 2 or the method performed by the device in the embodiment shown in fig. 3.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method for acquiring multimedia resources, the method comprising:
receiving a resource identifier of a resource to be detected;
and if the resource identifier contains information indicating that the resource to be detected is a third-party resource, storing the resource to be detected in a resource pool, wherein the resource pool is provided with a uniform access interface, so that each detection terminal for detecting the resource acquires the resource from the resource pool through the uniform access interface of the resource pool to detect the resource.
2. The method according to claim 1, wherein after storing the resource to be detected in a resource pool, further comprising:
generating a global unique identifier of the resource to be detected;
sending the resource to be detected and the global unique identifier to each regional server; and each area server is used for providing resources to be detected for the detection terminal in the corresponding area.
3. The method of claim 1, wherein storing the resource to be detected to a resource pool comprises:
if the data volume of the resource to be detected is larger than or equal to a preset threshold value, the resource to be detected is partitioned;
and storing the fragmentation result of the resource to be detected and the fragmentation identification corresponding to each fragmentation result.
4. The method according to claim 3, wherein after sending the resource to be detected and the globally unique identifier to each regional server, the method further comprises:
receiving a downloading request of the resource to be detected sent by a detection terminal, wherein the downloading request carries a global unique identifier of the resource to be detected;
determining a fragment identifier corresponding to the global unique identifier carried in the download request according to the corresponding relation between the global unique identifier and the fragment identifier;
acquiring the determined fragmentation result of the resource to be detected corresponding to the fragmentation identification according to the corresponding relation between the fragmentation identification and the fragmentation result;
synthesizing the obtained slicing results into complete resources to be detected according to a preset sequence;
and returning the complete resource to be detected to the detection terminal.
5. The method according to claim 3, wherein after sending the resource to be detected and the globally unique identifier to each regional server, the method further comprises:
receiving a browsing request of the resource to be detected sent by a detection terminal, wherein the browsing request carries a global unique identifier of the resource to be detected and initial time information of a fragment to be browsed of the resource to be detected; if the starting time information is a first specified value, the browsing request is automatically triggered by the detection terminal, and if the starting time information is a second specified value, the browsing request is triggered by the operation of the detection terminal user;
acquiring a resource path of the resource to be detected according to the global unique identifier;
under the resource path, acquiring a fragmentation result corresponding to the starting time information carried in the browsing request according to the corresponding relation between the starting time information of the resource to be detected and the fragmentation result of the resource to be detected;
and returning the acquired fragmentation result to the detection terminal.
6. The method according to claim 5, wherein the generated global unique identifier includes a storage state and a resource address, and the resource address is obtained from the resource identifier of the resource to be detected in advance; if the resource to be detected is successfully stored in the resource pool, the storage state is stored, and if the resource to be detected is not successfully stored in the resource pool, the storage state is not stored;
acquiring the resource path of the resource to be detected according to the global unique identifier, including:
if the storage state is stored, generating a resource path of the resource to be detected according to the global unique identifier and the storage path of the resource to be detected;
and if the storage state is not stored, acquiring the resource address in the global unique identifier as a resource path of the resource to be detected.
7. The method according to claim 6, wherein generating the resource path of the resource to be detected according to the globally unique identifier and the storage path of the resource to be detected comprises:
determining a geographical area where the IP address of the publishing equipment of the resource to be detected is located, and determining a geographical area where the IP address of the detection terminal is located;
if the geographic area where the IP address of the releasing equipment is located is the same as the geographic area where the IP address of the detecting terminal is located, determining whether the geographic area where the IP address of the detecting terminal is located is provided with the CDN or not according to the pre-stored corresponding relation between the CDN and the geographic area where the IP address of the detecting terminal is located;
if a CDN is deployed, generating a CDN address of the resource to be detected according to the global unique identifier, and taking the CDN address as a resource path of the resource to be detected;
if the CDN is not deployed, generating a first Uniform Resource Locator (URL) address of the resource to be detected according to the global unique identifier, and taking the first URL address as a resource path of the resource to be detected; and the first URL address is used for pointing to the resource pool or the area server where the detection terminal is located.
8. The method of claim 7, further comprising:
if the geographic area where the IP address of the publishing equipment of the resource to be detected is located is different from the geographic area where the IP address of the detection terminal is located, determining whether the geographic area where the IP address of the detection terminal is located is provided with a regional server;
if a regional server is deployed in a geographic region where the IP address of the detection terminal is located, generating a second URL address of the resource to be detected according to the global unique identifier, and taking the second URL address as a resource path of the resource to be detected; the second URL address is used for pointing to a region server where the detection terminal is located;
if the geographic area where the IP address of the detection terminal is located is not provided with an area server, generating a third URL address of the resource to be detected according to the global unique identifier, and taking the third URL address as a resource path of the resource to be detected; and the third URL address is used for pointing to the resource pool, so that the resource pool receives a resource acquisition request which is sent by the detection terminal and carries the third URL address through the unified access interface.
9. The method according to claim 1, wherein before storing the resource to be detected in the resource pool, further comprising:
performing first duplicate checking detection on the resource to be detected according to a message digest algorithm and the resource identifier to obtain a first duplicate checking result;
if the same resource is not found in the first duplicate checking result, downloading the resource to be detected;
performing secondary duplicate checking detection on the resource to be detected according to a message digest algorithm and the downloaded resource content of the resource to be detected to obtain a secondary duplicate checking result; and determining that the same resource is not found in the secondary duplicate checking detection result.
10. An apparatus for acquiring multimedia resources, the apparatus comprising:
a first receiving unit configured to perform receiving a resource identifier of a resource to be detected;
and the storage unit is configured to store the resource to be detected into a resource pool if the resource identifier contains information indicating that the resource to be detected is a third-party resource, wherein the resource pool is provided with a uniform access interface, so that each detection terminal for detecting the resource acquires the resource from the resource pool through the uniform access interface of the resource pool to perform detection.
CN201911055764.XA 2019-10-31 2019-10-31 Multimedia resource acquisition method, device and storage medium Pending CN110769072A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911055764.XA CN110769072A (en) 2019-10-31 2019-10-31 Multimedia resource acquisition method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911055764.XA CN110769072A (en) 2019-10-31 2019-10-31 Multimedia resource acquisition method, device and storage medium

Publications (1)

Publication Number Publication Date
CN110769072A true CN110769072A (en) 2020-02-07

Family

ID=69335344

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911055764.XA Pending CN110769072A (en) 2019-10-31 2019-10-31 Multimedia resource acquisition method, device and storage medium

Country Status (1)

Country Link
CN (1) CN110769072A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113055443A (en) * 2021-02-20 2021-06-29 北京奇艺世纪科技有限公司 Resource data deployment method, device, equipment and storage medium
WO2023051096A1 (en) * 2021-09-29 2023-04-06 华为技术有限公司 Method for accessing resources, and electronic device

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101645928A (en) * 2009-08-26 2010-02-10 成都市华为赛门铁克科技有限公司 Content resource caching method, device and system
CN102088389A (en) * 2009-12-02 2011-06-08 中兴通讯股份有限公司 Distributed content access scheduling device and content reading method
CN104011701A (en) * 2011-12-14 2014-08-27 第三雷沃通讯有限责任公司 Content delivery network
CN105338026A (en) * 2014-07-24 2016-02-17 阿里巴巴集团控股有限公司 Data resource acquisition method, device and system
CN106095796A (en) * 2016-05-30 2016-11-09 中国邮政储蓄银行股份有限公司 Distributed data storage method, Apparatus and system
CN106612456A (en) * 2015-10-26 2017-05-03 中兴通讯股份有限公司 Network video playing method and system, user terminal and home stream service node
CN107749888A (en) * 2017-10-30 2018-03-02 江西博瑞彤芸科技有限公司 A kind of statistical method of user behavior data
CN108023921A (en) * 2016-11-03 2018-05-11 平安科技(深圳)有限公司 The cut-in method and device of a kind of third-party platform
CN108494875A (en) * 2018-04-10 2018-09-04 网宿科技股份有限公司 A kind of method and apparatus of feedback resources file
CN108737500A (en) * 2018-04-20 2018-11-02 青岛海尔科技有限公司 Target resource acquisition, providing method, device, storage medium and computer equipment
CN108737532A (en) * 2018-05-11 2018-11-02 北京大米科技有限公司 A kind of resource acquiring method, client, computer equipment and readable medium
CN109327543A (en) * 2018-11-21 2019-02-12 科大智能电气技术有限公司 A kind of implementation method of internet of things equipment data transmission

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101645928A (en) * 2009-08-26 2010-02-10 成都市华为赛门铁克科技有限公司 Content resource caching method, device and system
CN102088389A (en) * 2009-12-02 2011-06-08 中兴通讯股份有限公司 Distributed content access scheduling device and content reading method
CN104011701A (en) * 2011-12-14 2014-08-27 第三雷沃通讯有限责任公司 Content delivery network
CN105338026A (en) * 2014-07-24 2016-02-17 阿里巴巴集团控股有限公司 Data resource acquisition method, device and system
CN106612456A (en) * 2015-10-26 2017-05-03 中兴通讯股份有限公司 Network video playing method and system, user terminal and home stream service node
CN106095796A (en) * 2016-05-30 2016-11-09 中国邮政储蓄银行股份有限公司 Distributed data storage method, Apparatus and system
CN108023921A (en) * 2016-11-03 2018-05-11 平安科技(深圳)有限公司 The cut-in method and device of a kind of third-party platform
CN107749888A (en) * 2017-10-30 2018-03-02 江西博瑞彤芸科技有限公司 A kind of statistical method of user behavior data
CN108494875A (en) * 2018-04-10 2018-09-04 网宿科技股份有限公司 A kind of method and apparatus of feedback resources file
CN108737500A (en) * 2018-04-20 2018-11-02 青岛海尔科技有限公司 Target resource acquisition, providing method, device, storage medium and computer equipment
CN108737532A (en) * 2018-05-11 2018-11-02 北京大米科技有限公司 A kind of resource acquiring method, client, computer equipment and readable medium
CN109327543A (en) * 2018-11-21 2019-02-12 科大智能电气技术有限公司 A kind of implementation method of internet of things equipment data transmission

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113055443A (en) * 2021-02-20 2021-06-29 北京奇艺世纪科技有限公司 Resource data deployment method, device, equipment and storage medium
WO2023051096A1 (en) * 2021-09-29 2023-04-06 华为技术有限公司 Method for accessing resources, and electronic device

Similar Documents

Publication Publication Date Title
US11734125B2 (en) Tiered cloud storage for different availability and performance requirements
US10732861B2 (en) Generating and providing low-latency cached content
JP6280146B2 (en) Method, system, and server for removing distributed caching objects
CN108234630B (en) Data reading method and device based on distributed consistency protocol
US11729249B2 (en) Network address resolution
CN110401724B (en) File management method, file transfer protocol server and storage medium
CN109818934B (en) Method and device for automatically processing logs and computing equipment
US20130232187A1 (en) Systems and methods for managing data in a networked communication system
CN111385316B (en) Resource refreshing method, access method and device
US9037662B2 (en) Cache control for web application resources
JP6870466B2 (en) Control programs, control methods, controls, and database servers
CN106909595B (en) Data migration method and device
US20170153909A1 (en) Methods and Devices for Acquiring Data Using Virtual Machine and Host Machine
CN111786984B (en) Pod communication connection method and device, electronic equipment and storage medium
CN110769072A (en) Multimedia resource acquisition method, device and storage medium
CN106657182B (en) Cloud file processing method and device
CN105354195B (en) Information searching method and device
CN113821307A (en) Method, device and equipment for quickly importing virtual machine mirror image
CN111367921A (en) Data object refreshing method and device
US11379653B2 (en) Rendering method for on-demand loading of PDF file on network
CN110061864B (en) Method and system for automatically verifying domain name configuration
EP2530586A1 (en) Method for generating software
CN111367860A (en) File refreshing method and device
WO2015085764A1 (en) Method of file access and cloud gateway
CN107704462B (en) Resource metadata maintenance method, equipment and storage device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200207

RJ01 Rejection of invention patent application after publication