CN107547751B - Media resource saving method, media resource saving device and terminal equipment - Google Patents

Media resource saving method, media resource saving device and terminal equipment Download PDF

Info

Publication number
CN107547751B
CN107547751B CN201710832669.0A CN201710832669A CN107547751B CN 107547751 B CN107547751 B CN 107547751B CN 201710832669 A CN201710832669 A CN 201710832669A CN 107547751 B CN107547751 B CN 107547751B
Authority
CN
China
Prior art keywords
media resource
album
media
names
name
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710832669.0A
Other languages
Chinese (zh)
Other versions
CN107547751A (en
Inventor
汪刚
陈少杰
张文明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tai'an Mount Taishan Network Media Co.,Ltd.
Original Assignee
Wuhan Douyu Network 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201710832669.0A priority Critical patent/CN107547751B/en
Publication of CN107547751A publication Critical patent/CN107547751A/en
Application granted granted Critical
Publication of CN107547751B publication Critical patent/CN107547751B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a media resource storage method, a media resource storage device and terminal equipment, and relates to the technical field of media resource storage. The media resource storage method comprises the following steps: acquiring names of albums in terminal equipment to obtain a plurality of album names; judging whether album names with the same name as the name of the media resource instance corresponding to the media resource needing to be stored exist in the plurality of album names; if the album names have the same name as the name of the media resource instance corresponding to the media resource needing to be stored, acquiring the url address of the media resource needing to be stored; and acquiring the corresponding media resource through the url address, and storing the media resource in an album with the same name as the corresponding media resource instance. By the method, the media resources can be simply and efficiently stored in the album of the terminal equipment.

Description

Media resource saving method, media resource saving device and terminal equipment
Technical Field
The present invention relates to the technical field of media resource saving, and in particular, to a media resource saving method, a media resource saving device, and a terminal device.
Background
Media resources refer to image and video resources, and with the continuous development of information processing technology, media resource storage technology applying the technology is applied more and more. Among them, applications in terminal devices are getting more and more attention from users.
The inventor finds that, in the prior art, if a media resource is written into an album of a terminal device for storage, the terminal device needs to execute a series of complicated process steps, for example, problems such as various types of fault-tolerant exit, authorized management of the album, and memory leakage need to be considered, which further causes the problem of low simplicity and efficiency in the prior art for storing the media resource.
Disclosure of Invention
In view of the above, the present invention provides a media resource saving method, a media resource saving device and a terminal device, which can save media resources in an album of the terminal device simply and efficiently.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
a media resource storage method is applied to terminal equipment. The method comprises the following steps:
acquiring names of albums in terminal equipment to obtain a plurality of album names;
judging whether album names with the same name as the name of the media resource instance corresponding to the media resource needing to be stored exist in the plurality of album names;
if the album names have the same name as the name of the media resource instance corresponding to the media resource needing to be stored, acquiring the url address of the media resource needing to be stored;
and acquiring the corresponding media resource through the url address, and storing the media resource in an album with the same name as the corresponding media resource instance.
In a preferred option of the embodiment of the present invention, in the method for saving media resources, the step of obtaining names of albums in the terminal device to obtain a plurality of album names includes:
generating an enumerator to obtain album resources in the terminal equipment, wherein the album resources comprise a plurality of albums;
and enumerating the names of the albums in the terminal equipment through the enumerator to obtain a plurality of album names.
In a preferred option of the embodiment of the present invention, in the above method for saving a media resource, the step of determining whether there is an album name that is the same as a name of a media resource instance corresponding to a media resource to be saved in the plurality of album names includes:
and sequentially comparing the obtained plurality of album names with the names of the media resource instances corresponding to the media resources needing to be stored through the enumerator.
In a preferred option of the embodiment of the present invention, in the above method for saving media resources, the step of obtaining the corresponding media resource through the url address and saving the media resource in an album with the same name as the corresponding media resource instance includes:
acquiring a corresponding media resource through the url address;
judging whether a media resource instance corresponding to the media resource has the authority of accessing each photo album of the terminal equipment;
and when the media resource instance corresponding to the media resource has the right of accessing each album of the terminal equipment, storing the media resource in the album with the same name as the corresponding media resource instance.
In a preferred option of the embodiment of the present invention, in the method for saving media resources, after saving the media resources in an album with the same name as the corresponding media resource instance, the method further includes:
judging whether the media resources exist in the album or not;
if the media resources exist in the album, generating first prompt information for identifying the successful storage of the media resources;
and if the media resources do not exist in the album, generating second prompt information for identifying the storage failure of the media resources.
In a preferred option of the embodiment of the present invention, in the method for saving media resources, the method further includes:
and if the album name which is the same as the name of the media resource instance corresponding to the media resource needing to be stored does not exist in the plurality of album names, generating an album with the same name as the media resource instance corresponding to the media resource needing to be stored.
The embodiment of the invention also provides a media resource storage device which is applied to the terminal equipment. The media resource saving device comprises:
the album name acquisition module is used for acquiring the name of each album in the terminal equipment to obtain a plurality of album names;
the album name judging module is used for judging whether album names which are the same as the names of the media resource instances corresponding to the media resources needing to be stored exist in the plurality of album names;
a url address obtaining module, configured to obtain a url address of a media resource to be stored if an album name identical to a name of a media resource instance corresponding to the media resource to be stored exists in the plurality of album names;
and the media resource storage module is used for acquiring the corresponding media resource through the url address and storing the media resource in the album with the same name as the corresponding media resource instance.
In a preferred option of the embodiment of the present invention, in the media resource storage device, the album name obtaining module includes:
an enumerator generating unit, configured to generate an enumerator to obtain album resources in the terminal device, where the album resources include a plurality of albums;
and the album name acquisition unit is used for enumerating the names of the albums in the terminal equipment through the enumerator to obtain a plurality of album names.
In a preferred option of the embodiment of the present invention, in the media resource saving device, the media resource saving module includes:
a media resource obtaining unit, configured to obtain a corresponding media resource through the url address;
the access authority judging unit is used for judging whether a media resource instance corresponding to the media resource has the authority of accessing each photo album of the terminal equipment;
and the media resource saving unit is used for saving the media resources in the albums with the same names as the corresponding media resource instances when the media resource instances corresponding to the media resources have the right of accessing the albums of the terminal equipment.
The embodiment of the present invention further provides a terminal device, which includes a processor, a memory, and a program stored in the memory and capable of being executed on the processor, and when the processor executes the program, the processor executes the following steps:
acquiring names of albums in terminal equipment to obtain a plurality of album names;
judging whether album names with the same name as the name of the media resource instance corresponding to the media resource needing to be stored exist in the plurality of album names;
if the album names have the same name as the name of the media resource instance corresponding to the media resource needing to be stored, acquiring the url address of the media resource needing to be stored;
and acquiring the corresponding media resource through the url address, and storing the media resource in an album with the same name as the corresponding media resource instance.
The media resource storing method, the media resource storing device and the terminal device provided by the invention can solve the problems of low conciseness and low efficiency of the existing media resource storing technology while ensuring that the media resources can be effectively stored by simplifying the flow steps of storing the media resources in the album of the terminal device, thereby greatly improving the practicability and reliability of the media resource storing method, the media resource storing device and the terminal device.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
Fig. 1 is a block diagram of a terminal device according to an embodiment of the present invention.
Fig. 2 is a flowchart illustrating a method for saving a media resource according to an embodiment of the present invention.
Fig. 3 is a schematic flowchart of step S110 in fig. 2.
Fig. 4 is a schematic flowchart of step S140 in fig. 2.
Fig. 5 is another flowchart of a method for saving a media resource according to an embodiment of the present invention.
Fig. 6 is a block diagram of a media resource saving device according to an embodiment of the present invention.
Fig. 7 is a block diagram of a structure of an album name obtaining module according to an embodiment of the present invention.
Fig. 8 is a block diagram of a media resource saving module according to an embodiment of the present invention.
Icon: 10-a terminal device; 20-a processor; 30-a memory; 100-media resource saving means; 110-album name obtaining module; 111-enumerator generation unit; 113-album name acquisition unit; 120-album name judging module; 130-url address acquisition module; 140-media resource saving module; 141-media resource acquisition unit; 143-an access right judgment unit; 145-media resource holding unit.
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, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
As shown in fig. 1, an embodiment of the present invention provides a terminal device 10, which includes a processor 20, a memory 30, and a program stored in the memory 30 and operable on the processor 20.
Further, in the present embodiment, the processor 20 executes the program stored in the memory 30 to perform the following steps: acquiring names of albums in the terminal equipment 10 to obtain a plurality of album names; judging whether album names with the same name as the name of the media resource instance corresponding to the media resource needing to be stored exist in the plurality of album names; if the album names have the same name as the name of the media resource instance corresponding to the media resource needing to be stored, acquiring the url address of the media resource needing to be stored; and acquiring the corresponding media resource through the url address, and storing the media resource in an album with the same name as the corresponding media resource instance.
Alternatively, the specific type of the terminal device 10 is not limited, and may be, for example, but not limited to, an electronic device having information processing, receiving and transmitting capabilities, such as a smart phone, a Personal Computer (PC), a tablet PC, a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), and the like.
Optionally, the operating system for controlling the terminal device 10 to run is not limited, and may be set according to actual requirements, and for example, the operating system may include, but is not limited to, operating systems such as Android, BSD, L inux, IOS, OSX, Windows, and the like
Optionally, the specific connection manner between the processor 20 and the memory 30 is not limited, and may be, for example, a direct or indirect electrical connection to achieve data transmission or interaction. Furthermore, these components may be electrically connected to each other via one or more communication buses or signal lines. The memory 30 stores software functional modules stored in the memory 30 in the form of software or firmware (firmware), and the processor 20 executes various functional applications and data processing by running software programs and modules stored in the memory 30, such as the media resource saving device 100 in the embodiment of the present invention, so as to implement the media resource saving method in the embodiment of the present invention.
The processor 20 may be an integrated circuit chip having signal processing capabilities. The Processor 20 may be a general-purpose Processor including a Central Processing Unit (CPU), a Network Processor (NP), and the like. But may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or any conventional processor or the like.
The Memory 30 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory 30 is used for storing a program, and the processor 20 executes the program after receiving the execution instruction. Further, the software programs and modules within the memory 30 may also include an operating system. Which may include various software components and/or drivers for managing system tasks (e.g., memory management, storage device control, power management, etc.) and may communicate with various hardware or software components to provide an operating environment for other software components.
It will be appreciated that the configuration shown in fig. 1 is merely illustrative and that the terminal device 10 may include more or fewer components than shown in fig. 1 or may have a different configuration than shown in fig. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
With reference to fig. 2, an embodiment of the present invention further provides a media resource saving method, which is applied to the terminal device 10. The method steps defined by the method related flows may be implemented by the processor 20. The specific process shown in fig. 2 will be described in detail below.
In step S110, names of albums in the terminal device 10 are obtained, and a plurality of album names are obtained.
Step S120, judging whether the photo album names have the photo album names which are the same as the names of the media resource instances corresponding to the media resources needing to be stored.
Step S130, if there is an album name that is the same as the name of the media resource instance corresponding to the media resource that needs to be stored in the plurality of album names, acquiring the url address of the media resource that needs to be stored.
Step S140, acquiring the corresponding media resource through the url address, and storing the media resource in the album with the same name as the corresponding media resource instance.
Optionally, the specific manner in which the terminal device 10 acquires the names of the albums is not limited, for example, the terminal device 10 may respectively count and store the names of the albums when generating the albums, so that the names of the albums may be directly acquired when needing to be acquired, or may count again when needing to acquire the names of the albums. With reference to fig. 3, in this embodiment, the terminal device 10 may obtain names of albums through an enumerator, that is, step S110 may include step S111 and step S113.
Step S111, generating an enumerator to obtain album resources in the terminal device 10, where the album resources include a plurality of albums.
In step S113, the enumerator enumerates names of albums in the terminal device 10 to obtain a plurality of album names.
Through the setting of the enumerator, the problem that the workload of the processor 20 and the memory 30 of the terminal device 10 is large due to the fact that the terminal device 10 respectively counts and stores the names of the albums when the albums are generated can be avoided, and the simplicity and the practicability of the media resource storage method are effectively improved.
Optionally, the specific manner of determining whether the names are the same in step S120 is not limited, for example, the names of the media resource instances corresponding to the media resources that need to be saved may be simultaneously compared with the albums, or the names of the media resource instances corresponding to the media resources that need to be saved may be sequentially compared with the albums. Considering that the workload of the processor 20 of the terminal device 10 is increased if the names of the media resource instances needing to be saved are compared with the albums, in the embodiment, the names may be determined by the following steps: and sequentially comparing the obtained plurality of album names with the names of the media resource instances corresponding to the media resources needing to be stored through the enumerator. Through the step, when the photo albums with the same name are judged, the comparison operation is stopped and the photo albums are obtained for subsequent steps.
With reference to fig. 4, in this embodiment, step S140 may include step S141, step S143, and step S145 to save the media resource corresponding to the acquired url address.
Step S141, obtaining the corresponding media resource through the url address.
Step S143, determining whether the media resource instance corresponding to the media resource has the right to access each album of the terminal device 10.
Step S145, when the media resource instance corresponding to the media resource has the right to access each album of the terminal device 10, storing the media resource in the album having the same name as the corresponding media resource instance.
By the method, the problem that media resources stored in each album are easily leaked illegally due to the fact that any media resource instance can access each album of the terminal device 10 can be solved, and the safety and the reliability of the media resource storage method are greatly improved.
Optionally, when step S143 is executed to determine whether the media resource instance has the access right, a specific determination manner is not limited, for example, data that whether each media resource instance has the right to access each album is pre-stored in the terminal device 10, or when step S143 is executed, query information that whether each media resource instance has the access right is generated to query the user, and when the query information that the corresponding media resource instance has the right to access each album is received and indicates that the corresponding media resource instance has the right to access each album. In this embodiment, in order to meet different requirements of the user and improve the security of the media resource saving method, when step S143 is executed, query information as to whether the media resource instance has the access right is generated to query the user, and when the query information indicating that the media resource instance has the access right is received, the corresponding media resource instance is determined to have the right to access each album.
With reference to fig. 5, in order to determine whether the media resource required to be saved is successfully saved in the corresponding album, so as to avoid the problem of low user experience caused by media resource loss due to unsuccessful saving, in this embodiment, the method further includes step S150, step S160, and step S170.
And step S150, judging whether the media resources exist in the album.
Step S160, if the media resource exists in the album, generating a first prompt message for identifying that the media resource is successfully stored.
Step S170, if the media resources do not exist in the album, generating a second prompt message for identifying the failure of storing the media resources.
Further, considering that when step S120 is executed, it may be determined that there is no album name in the plurality of album names that is the same as the name of the media resource instance corresponding to the media resource that needs to be saved, for example, the operation of saving the media resource is performed for the media resource instance for the first time, or the corresponding album with the same name is already deleted due to the user' S requirement, in this embodiment, the method further includes: and if the album name which is the same as the name of the media resource instance corresponding to the media resource needing to be stored does not exist in the plurality of album names, generating an album with the same name as the media resource instance corresponding to the media resource needing to be stored.
With reference to fig. 6, an embodiment of the present invention further provides a media resource saving apparatus 100, which is applied to the terminal device 10. The media resource saving device 100 includes an album name obtaining module 110, an album name judging module 120, a url address obtaining module 130, and a media resource saving module 140.
The album name obtaining module 110 is configured to obtain names of albums in the terminal device 10 to obtain a plurality of album names. In this embodiment, step S110 in fig. 2 may be executed by the album name obtaining module 110.
The album name determining module 120 is configured to determine whether an album name identical to the name of the media resource instance corresponding to the media resource to be stored exists in the plurality of album names. In this embodiment, step S120 in fig. 2 may be executed by the album name determining module 120.
The url address obtaining module 130 is configured to obtain the url address of the media resource that needs to be stored if an album name that is the same as the name of the media resource instance corresponding to the media resource that needs to be stored exists in the plurality of album names. In this embodiment, step S130 of fig. 2 may be executed by the url address obtaining module 130.
The media resource saving module 140 is configured to obtain the corresponding media resource through the url address, and save the media resource in an album with the same name as the corresponding media resource instance. In this embodiment, step S140 in fig. 2 may be executed by the media resource saving module 140.
With reference to fig. 7, in this embodiment, the album name acquiring module 110 may include an enumerator generating unit 111 and an album name acquiring unit 113.
The enumerator generating unit 111 is configured to generate an enumerator to obtain album resources in the terminal device 10, where the album resources include a plurality of albums. In this embodiment, step S111 in fig. 3 may be executed by the enumerator generating unit 111.
The album name obtaining unit 113 is configured to enumerate names of albums in the terminal device 10 by the enumerator to obtain a plurality of album names. In this embodiment, step S113 of fig. 3 may be executed by the album name acquisition unit 113.
With reference to fig. 8, in this embodiment, the media resource saving module 140 may include a media resource obtaining unit 141, an access right judging unit 143, and a media resource saving unit 145.
The media resource obtaining unit 141 is configured to obtain a corresponding media resource through the url address. In this embodiment, step S141 of fig. 4 may be executed by the media resource acquiring unit 141.
The access right judging unit 143 is configured to judge whether a media resource instance corresponding to the media resource has a right to access each album of the terminal device 10. In this embodiment, step S143 of fig. 4 may be executed by the access right judging unit 143.
The media resource saving unit 145 is configured to, when a media resource instance corresponding to the media resource has a right to access each album of the terminal device 10, save the media resource in the album with the same name as the corresponding media resource instance. In this embodiment, step S145 in fig. 4 may be executed by the media resource saving unit 145.
In summary, the media resource saving method, the media resource saving device 100 and the terminal device 10 provided by the present invention simplify the procedure of saving the media resource in the album of the terminal device 10, so as to ensure that the media resource can be saved effectively, and at the same time, solve the problem of low simplicity and efficiency of the existing media resource saving technology, and greatly improve the practicability and reliability of the media resource saving method, the media resource saving device 100 and the terminal device 10.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus and method embodiments described above are illustrative only, as the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, an electronic device, or a network device) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes. It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A media resource saving method is applied to terminal equipment, and is characterized in that the method comprises the following steps:
generating an enumerator to obtain album resources in the terminal device, wherein the album resources comprise a plurality of albums, and enumerating names of the albums in the terminal device through the enumerator to obtain a plurality of album names;
judging whether album names with the same name as the name of the media resource instance corresponding to the media resource needing to be stored exist in the plurality of album names;
if the album names have the same name as the name of the media resource instance corresponding to the media resource needing to be stored, acquiring the url address of the media resource needing to be stored;
and acquiring the corresponding media resource through the url address, and storing the media resource in an album with the same name as the corresponding media resource instance.
2. The method according to claim 1, wherein the step of determining whether there is an album name that is the same as the name of the media asset instance corresponding to the media asset to be saved among the plurality of album names comprises:
and sequentially comparing the obtained plurality of album names with the names of the media resource instances corresponding to the media resources needing to be stored through the enumerator.
3. The method according to claim 1 or 2, wherein the step of obtaining the corresponding media resource through the url address and saving the media resource in an album with the same name as the corresponding media resource instance comprises:
acquiring a corresponding media resource through the url address;
judging whether a media resource instance corresponding to the media resource has the authority of accessing each photo album of the terminal equipment;
and when the media resource instance corresponding to the media resource has the right of accessing each album of the terminal equipment, storing the media resource in the album with the same name as the corresponding media resource instance.
4. The media asset saving method according to claim 1 or 2, wherein after saving the media asset in an album having the same name as the corresponding media asset instance, the method further comprises:
judging whether the media resources exist in the album or not;
if the media resources exist in the album, generating first prompt information for identifying the successful storage of the media resources;
and if the media resources do not exist in the album, generating second prompt information for identifying the storage failure of the media resources.
5. The media asset preservation method according to claim 1 or 2, wherein said method further comprises:
and if the album name which is the same as the name of the media resource instance corresponding to the media resource needing to be stored does not exist in the plurality of album names, generating an album with the same name as the media resource instance corresponding to the media resource needing to be stored.
6. A media resource saving device applied to a terminal device is characterized in that the media resource saving device comprises:
the album name acquisition module is used for generating an enumerator to acquire album resources in the terminal equipment, wherein the album resources comprise a plurality of albums, and names of the albums in the terminal equipment are enumerated through the enumerator to obtain a plurality of album names;
the album name judging module is used for judging whether album names which are the same as the names of the media resource instances corresponding to the media resources needing to be stored exist in the plurality of album names;
a url address obtaining module, configured to obtain a url address of a media resource to be stored if an album name identical to a name of a media resource instance corresponding to the media resource to be stored exists in the plurality of album names;
and the media resource storage module is used for acquiring the corresponding media resource through the url address and storing the media resource in the album with the same name as the corresponding media resource instance.
7. The apparatus as claimed in claim 6, wherein the media resource saving module comprises:
a media resource obtaining unit, configured to obtain a corresponding media resource through the url address;
the access authority judging unit is used for judging whether a media resource instance corresponding to the media resource has the authority of accessing each photo album of the terminal equipment;
and the media resource saving unit is used for saving the media resources in the albums with the same names as the corresponding media resource instances when the media resource instances corresponding to the media resources have the right of accessing the albums of the terminal equipment.
8. A terminal device comprising a processor, a memory, and a program stored in the memory and executable on the processor, wherein the processor executes the program to perform the steps of:
generating an enumerator to obtain album resources in the terminal device, wherein the album resources comprise a plurality of albums, and enumerating names of the albums in the terminal device through the enumerator to obtain a plurality of album names;
judging whether album names with the same name as the name of the media resource instance corresponding to the media resource needing to be stored exist in the plurality of album names;
if the album names have the same name as the name of the media resource instance corresponding to the media resource needing to be stored, acquiring the url address of the media resource needing to be stored;
and acquiring the corresponding media resource through the url address, and storing the media resource in an album with the same name as the corresponding media resource instance.
CN201710832669.0A 2017-09-15 2017-09-15 Media resource saving method, media resource saving device and terminal equipment Active CN107547751B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710832669.0A CN107547751B (en) 2017-09-15 2017-09-15 Media resource saving method, media resource saving device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710832669.0A CN107547751B (en) 2017-09-15 2017-09-15 Media resource saving method, media resource saving device and terminal equipment

Publications (2)

Publication Number Publication Date
CN107547751A CN107547751A (en) 2018-01-05
CN107547751B true CN107547751B (en) 2020-08-04

Family

ID=60963190

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710832669.0A Active CN107547751B (en) 2017-09-15 2017-09-15 Media resource saving method, media resource saving device and terminal equipment

Country Status (1)

Country Link
CN (1) CN107547751B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103052952A (en) * 2010-08-08 2013-04-17 高通股份有限公司 Apparatus and methods for managing content
CN103390059A (en) * 2013-07-29 2013-11-13 广东欧珀移动通信有限公司 Picture induction processing method and system
KR20160071144A (en) * 2014-12-11 2016-06-21 엘지전자 주식회사 Mobile terminal and method for controlling the same
CN105740454A (en) * 2016-02-04 2016-07-06 北京金山安全软件有限公司 Display method and device of picture folder and electronic equipment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8719341B2 (en) * 2005-12-27 2014-05-06 Qurio Holdings, Inc. System and method for accessing and managing mobile device metadata
CN101452512B (en) * 2007-12-03 2011-03-30 联想(北京)有限公司 Method and apparatus for implementing file safety storage, and file reading apparatus
CN101834738A (en) * 2010-03-24 2010-09-15 无锡天鸿信息技术有限公司 Centralized management method of storage media
CN102523175B (en) * 2011-12-18 2016-01-06 上海量明科技发展有限公司 Instant messaging transmission data carry out the method and system of icon file storage
CN102917126A (en) * 2012-10-11 2013-02-06 中兴通讯股份有限公司 Method and system for processing photos
KR20170016165A (en) * 2015-08-03 2017-02-13 엘지전자 주식회사 Mobile terminal and method for controlling the same
CN106874918A (en) * 2017-02-23 2017-06-20 上海与德信息技术有限公司 A kind of photo store method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103052952A (en) * 2010-08-08 2013-04-17 高通股份有限公司 Apparatus and methods for managing content
CN103390059A (en) * 2013-07-29 2013-11-13 广东欧珀移动通信有限公司 Picture induction processing method and system
KR20160071144A (en) * 2014-12-11 2016-06-21 엘지전자 주식회사 Mobile terminal and method for controlling the same
CN105740454A (en) * 2016-02-04 2016-07-06 北京金山安全软件有限公司 Display method and device of picture folder and electronic equipment

Also Published As

Publication number Publication date
CN107547751A (en) 2018-01-05

Similar Documents

Publication Publication Date Title
CN109743315B (en) Behavior identification method, behavior identification device, behavior identification equipment and readable storage medium for website
CN111343168B (en) Identity authentication method and device, computer equipment and readable storage medium
CN109462601B (en) Multi-platform access method and device based on eSIM
CN110505162B (en) Message transmission method and device and electronic equipment
US11762979B2 (en) Management of login information affected by a data breach
US10282120B2 (en) Method, apparatus and system for inserting disk
CN112039900B (en) Network security risk detection method, system, computer device and storage medium
WO2019084256A1 (en) Method for arranging a user interface
WO2016008415A1 (en) Method and device for acquiring new version information of application software
CN104036194A (en) Vulnerability detection method and device for revealing private data in application program
CN113157315A (en) Method, device, equipment and medium for identifying difference information of different versions of software
CN109639827B (en) Client upgrading method and device
US10185613B2 (en) Error determination from logs
CN108170537B (en) Game API realization method, device, interface server and readable storage medium
CN110457925B (en) Application data isolation method and device in internal and external storage, terminal and storage medium
CN108965108B (en) Message pushing method and related equipment
CN107547751B (en) Media resource saving method, media resource saving device and terminal equipment
CN107608796B (en) Storage resource control method, storage resource control device and processor
CN113162997B (en) Data transmission method and device, electronic equipment and readable storage medium
CN111680334B (en) Disk security access method, device, equipment and medium
CN113378180A (en) Vulnerability detection method and device, computer equipment and readable storage medium
CN107295088B (en) Dotting information monitoring method and device and client
CN107256170B (en) Method and device for activating input method setting items of terminal equipment
CN111950040A (en) Environment sensing method and device of terminal equipment, computer equipment and storage medium
CN114860390B (en) Container data management method, device, program product, medium and electronic equipment

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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20240407

Address after: No. 333, Mount Taishan Street, Tai'an, Shandong 271000

Patentee after: Tai'an Mount Taishan Network Media Co.,Ltd.

Country or region after: China

Address before: 430000 East Lake Development Zone, Wuhan City, Hubei Province, No. 1 Software Park East Road 4.1 Phase B1 Building 11 Building

Patentee before: WUHAN DOUYU NETWORK TECHNOLOGY Co.,Ltd.

Country or region before: China