CN106201734B - File sharing method and device - Google Patents

File sharing method and device Download PDF

Info

Publication number
CN106201734B
CN106201734B CN201610460629.3A CN201610460629A CN106201734B CN 106201734 B CN106201734 B CN 106201734B CN 201610460629 A CN201610460629 A CN 201610460629A CN 106201734 B CN106201734 B CN 106201734B
Authority
CN
China
Prior art keywords
multimedia file
application program
format
cache
sharing
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
CN201610460629.3A
Other languages
Chinese (zh)
Other versions
CN106201734A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610460629.3A priority Critical patent/CN106201734B/en
Publication of CN106201734A publication Critical patent/CN106201734A/en
Application granted granted Critical
Publication of CN106201734B publication Critical patent/CN106201734B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues

Abstract

The disclosure relates to a file sharing method and device, wherein the method comprises the following steps: searching the multimedia file in the cache of the first application program when receiving an instruction for sharing the multimedia file in the first application program to the second application program; when the multimedia file is found, judging whether the format of the multimedia file accords with the format supported by the second application program; when the format of the multimedia file accords with the format supported by the second application program, acquiring the multimedia file from the cache; sharing the multimedia file to the second application. According to the technical scheme, the multimedia files are directly searched from the cache of the first application program and are shared, and the multimedia files are not required to be stored in the terminal and then shared, so that the occupation of the storage space of the terminal can be reduced, the bandwidth and the flow of a network are saved, the file sharing efficiency is improved, the time of a user is saved, and the use experience of the user is improved.

Description

File sharing method and device
Technical Field
The disclosure relates to the technical field of file sharing, and in particular relates to a file sharing method and device.
Background
Today social software, especially WeChat, is rapidly developed, and many other software needs to be promoted and used by virtue of the sharing function of social software. Sharing is typically performed using a software development kit customized by social software, such as a WeChat sharing software development kit. However, the sharing software development kit of WeChat does not support sharing of the picture uniform resource locator, and only supports sharing of the uploaded picture file. Thus, for some applications, the pictures are downloaded each time and uploaded to the WeChat software development kit for sharing, which is very troublesome.
Disclosure of Invention
The embodiment of the disclosure provides a file sharing method and device, comprising the following technical schemes:
according to a first aspect of an embodiment of the present disclosure, there is provided a file sharing method, including:
when an instruction for sharing the multimedia file in the first application program to the second application program is received, searching the multimedia file in a cache of the first application program;
when the multimedia file is found, judging whether the format of the multimedia file accords with the format supported by the second application program;
when the format of the multimedia file accords with the format supported by the second application program, acquiring the multimedia file from the cache;
sharing the multimedia file to the second application program.
In one embodiment, the method further comprises:
when the format of the multimedia file does not accord with the format supported by the second application program, converting the format of the multimedia file into the format supported by the second application program, and acquiring the multimedia file with the converted format from the cache;
and sharing the multimedia file after the format conversion to the second application program.
In one embodiment, said searching the cache of the first application for the multimedia file includes:
and searching the multimedia file in the cache through the uniform resource locator of the multimedia file.
In one embodiment, the obtaining the multimedia file from the cache includes:
and calling a cache interface to read the multimedia file from the cache.
In one embodiment, the multimedia file includes at least one of:
picture files, video files, and audio files.
According to a second aspect of an embodiment of the present disclosure, there is provided a file sharing device, including:
the searching module is used for searching the multimedia file in the cache of the first application program when receiving an instruction for sharing the multimedia file in the first application program to the second application program;
the judging module is used for judging whether the format of the multimedia file accords with the format supported by the second application program when the searching module searches the multimedia file;
the acquisition module is used for acquiring the multimedia file from the cache when the judgment module judges that the format of the multimedia file accords with the format supported by the second application program;
and the sharing module is used for sharing the multimedia file acquired by the acquisition module to the second application program.
In one embodiment, the apparatus further comprises:
the conversion module is used for converting the format of the multimedia file into the format supported by the second application program when the judgment module judges that the format of the multimedia file does not accord with the format supported by the second application program, and acquiring the multimedia file with the converted format from the cache;
the sharing module is further configured to:
and sharing the multimedia file after the format conversion to the second application program.
In one embodiment, the lookup module includes:
and the searching sub-module is used for searching the multimedia file in the cache through the uniform resource locator of the multimedia file.
In one embodiment, the acquiring module is configured to:
and calling a cache interface to read the multimedia file from the cache.
In one embodiment, the multimedia file includes at least one of:
picture files, video files, and audio files.
According to a third aspect of the embodiments of the present disclosure, there is provided a file sharing device, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when an instruction for sharing the multimedia file in the first application program to the second application program is received, searching the multimedia file in a cache of the first application program;
when the multimedia file is found, judging whether the format of the multimedia file accords with the format supported by the second application program;
when the format of the multimedia file accords with the format supported by the second application program, acquiring the multimedia file from the cache;
sharing the multimedia file to the second application program.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
according to the technical scheme, when the multimedia files in the first application program are required to be shared into the second application program, the multimedia files are directly searched from the cache of the first application program and shared, and the multimedia files are not required to be stored in the terminal first and then shared, so that occupation of storage space of the terminal can be reduced, bandwidth and flow of a network are saved, file sharing efficiency is improved, time of a user is saved, and use experience of the user is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart illustrating a method of file sharing according to an exemplary embodiment.
FIG. 2 is a flow chart illustrating another method of file sharing according to an exemplary embodiment.
FIG. 3 is a flowchart illustrating yet another file sharing method according to an exemplary embodiment.
FIG. 4 is a flowchart illustrating yet another method of file sharing according to an exemplary embodiment.
Fig. 5 is a block diagram illustrating a file sharing apparatus according to an exemplary embodiment.
Fig. 6 is a block diagram illustrating another file sharing apparatus according to an exemplary embodiment.
FIG. 7 is a block diagram illustrating a lookup module in a file sharing device according to an exemplary embodiment.
Fig. 8 is a block diagram illustrating a file sharing apparatus according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
The embodiment of the disclosure provides a file sharing method, which can be used in a terminal device, as shown in fig. 1, and includes steps S101-S104:
in step S101, when an instruction for sharing the multimedia file in the first application program to the second application program is received, searching the multimedia file in the cache of the first application program;
when a user wants to share a multimedia file in a first application to a second application, the multimedia file may not be downloaded to the terminal locally, but if it is already viewed in the first application, the multimedia file is likely to exist in the cache, so that the multimedia file can be found in the cache of the first application.
In step S102, when the multimedia file is found, determining whether the format of the multimedia file conforms to the format supported by the second application program;
different applications, which support different file formats. For example, for a Webp application program, the picture formats supported by the Webp application program when sharing pictures are pictures in jpeg and png formats, but the picture formats such as webp and gif are not supported.
In step S103, when the format of the multimedia file conforms to the format supported by the second application program, acquiring the multimedia file from the cache;
in step S104, the multimedia file is shared with the second application.
In this embodiment, when the user wants to share the multimedia file in the first application program to the second application program, the user directly searches the cache of the first application program for the multimedia file and shares the multimedia file, without storing the multimedia file in the terminal first and then sharing the multimedia file, so that not only can the occupation of the storage space of the terminal be reduced, but also the bandwidth and the flow of the network are saved, the file sharing efficiency is improved, the time of the user is saved, and the use experience of the user is improved. And meanwhile, before sharing the multimedia file, judging whether the second application program is supported in the format of the multimedia file, thereby ensuring that the second application program can normally open the multimedia file and further improving the use experience of a user.
In one embodiment, the multimedia file includes at least one of:
picture files, video files, and audio files.
Because the storage space occupied by the picture files, the video files, the audio files and the like is larger, and direct sharing through the uniform resource locator may not be supported, the method disclosed by the application can be adopted, so that the occupation of the storage space of the terminal is reduced, the bandwidth and the flow of a network are saved, the file sharing efficiency is improved, the time of a user is saved, and the use experience of the user is improved.
As shown in fig. 2, in one embodiment, the method may further include steps S201 to S202:
in step S201, when the format of the multimedia file does not conform to the format supported by the second application program, converting the format of the multimedia file into the format supported by the second application program, and obtaining the format-converted multimedia file from the cache;
in step S202, the multimedia file after the conversion format is shared to the second application.
In this embodiment, when the format of the multimedia file does not conform to the format supported by the second application program, the format of the multimedia file is first converted into the format supported by the second application program, so that the multimedia file after the format conversion is shared to the second application program, and the second application program is ensured to normally open the multimedia file, thereby ensuring that the user can normally view the multimedia file through the second application program, and improving the use experience of the user.
As shown in fig. 3, in one embodiment, step S101 includes step S301:
in step S301, when an instruction for sharing the multimedia file in the first application program to the second application program is received, the multimedia file is searched in the cache through the uniform resource locator of the multimedia file.
In this embodiment, when the multimedia file is stored in the cache, the uniform resource locator of the multimedia file may be used as a keyword to store the multimedia file, so that when the subsequent search is performed, the search is performed directly through the uniform resource locator, thereby facilitating the quick search of the multimedia file.
As shown in fig. 4, in one embodiment, the step S103 may include a step S401:
in step S401, when the format of the multimedia file conforms to the format supported by the second application program, the cache interface is invoked to read the multimedia file from the cache.
In this embodiment, when the format of the multimedia file accords with the format supported by the second application program, the cache interface is directly called to read the multimedia file from the cache, and the multimedia file does not need to be stored in the terminal first and then shared, so that not only can the occupation of the storage space of the terminal be reduced, but also the bandwidth and the flow of the network are saved, the file sharing efficiency is improved, the time of the user is saved, and the use experience of the user is improved. And meanwhile, before sharing the multimedia file, judging whether the second application program is supported in the format of the multimedia file, thereby ensuring that the second application program can normally open the multimedia file and further improving the use experience of a user.
The following are device embodiments of the present disclosure that may be used to perform method embodiments of the present disclosure.
Fig. 5 is a block diagram illustrating a file sharing apparatus according to an exemplary embodiment, which may be implemented as part or all of a terminal device through software, hardware, or a combination of both. As shown in fig. 5, the file sharing device includes:
the searching module 51 is configured to search the multimedia file in the cache of the first application program when receiving an instruction for sharing the multimedia file in the first application program to the second application program;
a judging module 52 configured to judge whether the format of the multimedia file conforms to the format supported by the second application program when the searching module 51 searches the multimedia file;
an obtaining module 53 configured to obtain the multimedia file from the cache when the judging module 52 judges that the format of the multimedia file conforms to the format supported by the second application;
the sharing module 54 is configured to share the multimedia file acquired by the acquiring module 53 to the second application.
In this embodiment, when the user wants to share the multimedia file in the first application program to the second application program, the user directly searches the cache of the first application program for the multimedia file and shares the multimedia file, without storing the multimedia file in the terminal first and then sharing the multimedia file, so that not only can the occupation of the storage space of the terminal be reduced, but also the bandwidth and the flow of the network are saved, the file sharing efficiency is improved, the time of the user is saved, and the use experience of the user is improved. And meanwhile, before sharing the multimedia file, judging whether the second application program is supported in the format of the multimedia file, thereby ensuring that the second application program can normally open the multimedia file and further improving the use experience of a user.
In one embodiment, the multimedia file includes at least one of:
picture files, video files, and audio files.
Because the storage space occupied by the picture files, the video files, the audio files and the like is larger, and direct sharing through the uniform resource locator may not be supported, the method disclosed by the application can be adopted, so that the occupation of the storage space of the terminal is reduced, the bandwidth and the flow of a network are saved, the file sharing efficiency is improved, the time of a user is saved, and the use experience of the user is improved.
As shown in fig. 6, in one embodiment, the apparatus further includes:
a conversion module 61 configured to convert the format of the multimedia file into a format supported by the second application program and acquire the format-converted multimedia file from the cache when the determination module 52 determines that the format of the multimedia file does not conform to the format supported by the second application program;
the sharing module 54 is further configured to:
sharing the multimedia file after the conversion format to the second application program.
In this embodiment, when the format of the multimedia file does not conform to the format supported by the second application program, the format of the multimedia file is first converted into the format supported by the second application program, so that the multimedia file after the format conversion is shared to the second application program, and the second application program is ensured to normally open the multimedia file, thereby ensuring that the user can normally view the multimedia file through the second application program, and improving the use experience of the user.
As shown in fig. 7, in one embodiment, the lookup module 51 includes:
the searching sub-module 71 is configured to search the cache for the multimedia file by means of a uniform resource locator of the multimedia file.
In this embodiment, when the multimedia file is stored in the cache, the uniform resource locator of the multimedia file may be used as a keyword to store the multimedia file, so that when the subsequent search is performed, the search is performed directly through the uniform resource locator, thereby facilitating the quick search of the multimedia file.
In one embodiment, the acquisition module is to:
and calling a cache interface to read the multimedia file from the cache.
In this embodiment, when the format of the multimedia file accords with the format supported by the second application program, the cache interface is directly called to read the multimedia file from the cache, and the multimedia file does not need to be stored in the terminal first and then shared, so that not only can the occupation of the storage space of the terminal be reduced, but also the bandwidth and the flow of the network are saved, the file sharing efficiency is improved, the time of the user is saved, and the use experience of the user is improved. And meanwhile, before sharing the multimedia file, judging whether the second application program is supported in the format of the multimedia file, thereby ensuring that the second application program can normally open the multimedia file and further improving the use experience of a user.
According to a third aspect of the embodiments of the present disclosure, there is provided a file sharing device, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when an instruction for sharing the multimedia file in the first application program to the second application program is received, searching the multimedia file in a cache of the first application program;
when the multimedia file is found, judging whether the format of the multimedia file accords with the format supported by the second application program;
when the format of the multimedia file accords with the format supported by the second application program, acquiring the multimedia file from the cache;
sharing the multimedia file to the second application program.
The processor may be further configured to:
when the format of the multimedia file does not accord with the format supported by the second application program, converting the format of the multimedia file into the format supported by the second application program, and acquiring the multimedia file with the converted format from the cache;
and sharing the multimedia file after the format conversion to the second application program.
The processor may be further configured to:
the searching the multimedia file in the cache of the first application program comprises the following steps:
and searching the multimedia file in the cache through the uniform resource locator of the multimedia file.
The processor may be further configured to:
the obtaining the multimedia file from the cache includes:
and calling a cache interface to read the multimedia file from the cache.
The processor may be further configured to:
the multimedia file includes at least one of:
picture files, video files, and audio files.
Fig. 8 is a block diagram illustrating a device for picture photographing, which is adapted to a terminal apparatus, according to an exemplary embodiment. For example, apparatus 800 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
The apparatus 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the apparatus 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interactions between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phonebook data, messages, pictures, videos, and the like. The memory 804 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 806 provides power to the various components of the device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen between the device 800 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. The front camera and/or the rear camera may receive external multimedia data when the apparatus 800 is in an operational mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 further includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of the apparatus 800. For example, the sensor assembly 814 may detect an on/off state of the device 800, a relative positioning of the components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, an orientation or acceleration/deceleration of the device 800, and a change in temperature of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communication between the apparatus 800 and other devices, either in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 804 including instructions executable by processor 820 of apparatus 800 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
A non-transitory computer readable storage medium, which when executed by a processor of apparatus 800, causes apparatus 800 to perform the above-described file sharing method, the method comprising:
when an instruction for sharing the multimedia file in the first application program to the second application program is received, searching the multimedia file in a cache of the first application program;
when the multimedia file is found, judging whether the format of the multimedia file accords with the format supported by the second application program;
when the format of the multimedia file accords with the format supported by the second application program, acquiring the multimedia file from the cache;
sharing the multimedia file to the second application program.
In one embodiment, the method further comprises:
when the format of the multimedia file does not accord with the format supported by the second application program, converting the format of the multimedia file into the format supported by the second application program, and acquiring the multimedia file with the converted format from the cache;
and sharing the multimedia file after the format conversion to the second application program.
In one embodiment, said searching the cache of the first application for the multimedia file includes:
and searching the multimedia file in the cache through the uniform resource locator of the multimedia file.
In one embodiment, the obtaining the multimedia file from the cache includes:
and calling a cache interface to read the multimedia file from the cache.
In one embodiment, the multimedia file includes at least one of:
picture files, video files, and audio files.
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 application is intended to cover any adaptations, 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 is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (7)

1. The file sharing method is characterized by comprising the following steps of:
when an instruction for sharing the multimedia file in the first application program to the second application program is received, searching the multimedia file in a cache of the first application program;
when the multimedia file is found, judging whether the format of the multimedia file accords with the format supported by the second application program;
when the format of the multimedia file accords with the format supported by the second application program, acquiring the multimedia file from the cache;
sharing the multimedia file to the second application program;
the method further comprises the steps of:
when the format of the multimedia file does not accord with the format supported by the second application program, converting the format of the multimedia file into the format supported by the second application program, and acquiring the multimedia file with the converted format from the cache;
sharing the multimedia file after the format conversion to the second application program;
the searching the multimedia file in the cache of the first application program comprises the following steps:
and searching the multimedia file in the cache through the uniform resource locator of the multimedia file.
2. The method of claim 1, wherein the retrieving the multimedia file from the cache comprises:
and calling a cache interface to read the multimedia file from the cache.
3. The method according to claim 1 or 2, wherein the multimedia file comprises at least one of:
picture files, video files, and audio files.
4. A document sharing apparatus, comprising:
the searching module is used for searching the multimedia file in the cache of the first application program when receiving an instruction for sharing the multimedia file in the first application program to the second application program;
the judging module is used for judging whether the format of the multimedia file accords with the format supported by the second application program when the searching module searches the multimedia file;
the acquisition module is used for acquiring the multimedia file from the cache when the judgment module judges that the format of the multimedia file accords with the format supported by the second application program;
the sharing module is used for sharing the multimedia file acquired by the acquisition module to the second application program;
the apparatus further comprises:
the conversion module is used for converting the format of the multimedia file into the format supported by the second application program when the judgment module judges that the format of the multimedia file does not accord with the format supported by the second application program, and acquiring the multimedia file with the converted format from the cache;
the sharing module is further configured to:
sharing the multimedia file after the format conversion to the second application program;
the searching module comprises:
and the searching sub-module is used for searching the multimedia file in the cache through the uniform resource locator of the multimedia file.
5. The apparatus of claim 4, wherein the acquisition module is configured to:
and calling a cache interface to read the multimedia file from the cache.
6. The apparatus of claim 4 or 5, wherein the multimedia file comprises at least one of:
picture files, video files, and audio files.
7. A document sharing apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when an instruction for sharing the multimedia file in the first application program to the second application program is received, searching the multimedia file in a cache of the first application program;
when the multimedia file is found, judging whether the format of the multimedia file accords with the format supported by the second application program;
when the format of the multimedia file accords with the format supported by the second application program, acquiring the multimedia file from the cache;
sharing the multimedia file to the second application program;
when the format of the multimedia file does not accord with the format supported by the second application program, converting the format of the multimedia file into the format supported by the second application program, and acquiring the multimedia file with the converted format from the cache;
sharing the multimedia file after the format conversion to the second application program;
the searching the multimedia file in the cache of the first application program comprises the following steps:
and searching the multimedia file in the cache through the uniform resource locator of the multimedia file.
CN201610460629.3A 2016-06-22 2016-06-22 File sharing method and device Active CN106201734B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610460629.3A CN106201734B (en) 2016-06-22 2016-06-22 File sharing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610460629.3A CN106201734B (en) 2016-06-22 2016-06-22 File sharing method and device

Publications (2)

Publication Number Publication Date
CN106201734A CN106201734A (en) 2016-12-07
CN106201734B true CN106201734B (en) 2023-09-01

Family

ID=57461786

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610460629.3A Active CN106201734B (en) 2016-06-22 2016-06-22 File sharing method and device

Country Status (1)

Country Link
CN (1) CN106201734B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107609012B (en) * 2017-07-31 2019-03-29 珠海市魅族科技有限公司 Multimedia file treating method and apparatus, computer installation, readable storage medium storing program for executing
CN107509089B (en) * 2017-09-12 2019-07-05 中广热点云科技有限公司 A kind of method of mobile terminal sharing video frequency segment
CN110704202B (en) * 2018-07-10 2022-08-05 深圳市优必选科技有限公司 Multimedia recording data sharing method and terminal equipment
CN108965430A (en) * 2018-07-16 2018-12-07 深圳鼎盛电脑科技有限公司 Image acquisition method, device, computer equipment and storage medium
CN110059063B (en) * 2019-03-15 2020-08-18 北京字节跳动网络技术有限公司 Multi-format data synchronous sharing method, device, medium and electronic equipment
CN110083321B (en) * 2019-04-17 2021-05-04 北京海益同展信息科技有限公司 Content display method and device, intelligent screen projection terminal and readable storage medium
CN110347979A (en) * 2019-07-18 2019-10-18 网易(杭州)网络有限公司 Information sharing method, device and touch control terminal, storage medium of the split screen across application
CN111651420A (en) * 2020-06-28 2020-09-11 维沃移动通信有限公司 File processing method and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101674446A (en) * 2009-10-22 2010-03-17 中兴通讯股份有限公司 Multimedia file sharing device and method
CN101860591A (en) * 2009-04-08 2010-10-13 北京搜狗科技发展有限公司 Method and device for sharing application program
CN102750174A (en) * 2012-06-29 2012-10-24 Tcl集团股份有限公司 Method and device for loading file
CN103369048A (en) * 2013-07-19 2013-10-23 广州市幸福网络技术有限公司 Content sharing method and system based on dragging operations
CN103825890A (en) * 2014-02-19 2014-05-28 惠州Tcl移动通信有限公司 Mobile terminal and method for achieving cloud streaming media file sharing based on DLNA
CN104010203A (en) * 2013-02-22 2014-08-27 协创立科数码电子(深圳)有限公司 WiFi wireless audio-video sharing equipment
CN104348899A (en) * 2014-06-25 2015-02-11 深圳市天朗时代科技有限公司 Client and server multimedia content sharing method and sharing system
CN104822083A (en) * 2015-03-23 2015-08-05 小米科技有限责任公司 File sharing control method as well as file sharing method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8078686B2 (en) * 2005-09-27 2011-12-13 Siemens Product Lifecycle Management Software Inc. High performance file fragment cache
US8495166B2 (en) * 2010-04-21 2013-07-23 Microsoft Corporation Optimized caching for large data requests
CN102685079B (en) * 2011-03-17 2015-08-05 鸿富锦精密工业(深圳)有限公司 Resource share method
JP2014533850A (en) * 2011-11-18 2014-12-15 インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Machines Corporation Method, computer program and storage system for reading a file stored on a storage system
CN103841451B (en) * 2012-11-28 2017-09-29 腾讯科技(深圳)有限公司 Multi-medium play method, device and terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101860591A (en) * 2009-04-08 2010-10-13 北京搜狗科技发展有限公司 Method and device for sharing application program
CN101674446A (en) * 2009-10-22 2010-03-17 中兴通讯股份有限公司 Multimedia file sharing device and method
CN102750174A (en) * 2012-06-29 2012-10-24 Tcl集团股份有限公司 Method and device for loading file
CN104010203A (en) * 2013-02-22 2014-08-27 协创立科数码电子(深圳)有限公司 WiFi wireless audio-video sharing equipment
CN103369048A (en) * 2013-07-19 2013-10-23 广州市幸福网络技术有限公司 Content sharing method and system based on dragging operations
CN103825890A (en) * 2014-02-19 2014-05-28 惠州Tcl移动通信有限公司 Mobile terminal and method for achieving cloud streaming media file sharing based on DLNA
CN104348899A (en) * 2014-06-25 2015-02-11 深圳市天朗时代科技有限公司 Client and server multimedia content sharing method and sharing system
CN104822083A (en) * 2015-03-23 2015-08-05 小米科技有限责任公司 File sharing control method as well as file sharing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
让媒体分享更高效;刘晖;;电脑迷(15);全文 *

Also Published As

Publication number Publication date
CN106201734A (en) 2016-12-07

Similar Documents

Publication Publication Date Title
CN106201734B (en) File sharing method and device
RU2649777C2 (en) Bank transfer processing method and device
CN108496317B (en) Method and device for searching public resource set of residual key system information
CN104462296B (en) File management method and device and terminal
EP3136699A1 (en) Method and device for connecting external equipment
CN107193606B (en) Application distribution method and device
CN109600303B (en) Content sharing method and device and storage medium
EP3026876B1 (en) Method for acquiring recommending information, terminal and server
WO2019000414A1 (en) Method, apparatus, device, and base station for achieving edge computing in cellular network
CN112291631A (en) Information acquisition method, device, terminal and storage medium
CN107179837B (en) Input method and device
CN106447747B (en) Image processing method and device
CN106506808B (en) Method and device for prompting communication message
CN109245992B (en) Request processing method and device, electronic equipment and storage medium
CN111695064A (en) Embedded point loading method and device
CN107885464B (en) Data storage method, device and computer readable storage medium
CN107395724B (en) Network request method and device
CN106027735B (en) Method and device for integrating communication numbers
CN110457084B (en) Loading method and device
CN109981729B (en) File processing method and device, electronic equipment and computer readable storage medium
CN107315590B (en) Notification message processing method and device
CN107682623B (en) Photographing method and device
CN107257384B (en) Service state monitoring method and device
CN106484261B (en) Information acquisition method and device, information transmission method and device, and terminal
CN111259289B (en) Picture loading method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant