CN114500438A - File sharing method and device, electronic equipment and storage medium - Google Patents

File sharing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114500438A
CN114500438A CN202210026125.6A CN202210026125A CN114500438A CN 114500438 A CN114500438 A CN 114500438A CN 202210026125 A CN202210026125 A CN 202210026125A CN 114500438 A CN114500438 A CN 114500438A
Authority
CN
China
Prior art keywords
target
file
user
multimedia file
comment information
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.)
Granted
Application number
CN202210026125.6A
Other languages
Chinese (zh)
Other versions
CN114500438B (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 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 CN202210026125.6A priority Critical patent/CN114500438B/en
Publication of CN114500438A publication Critical patent/CN114500438A/en
Application granted granted Critical
Publication of CN114500438B publication Critical patent/CN114500438B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/43Querying
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/10Multimedia information
    • 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/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72439User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The disclosure relates to a file sharing method, a file sharing device, an electronic device and a storage medium. The file sharing method comprises the following steps: receiving an input instruction of a first user; wherein the input instruction comprises a target search key; responding to the input instruction, and acquiring a target file corresponding to the target retrieval keyword; the target file comprises target comment information and a target multimedia file, the target multimedia file corresponds to the target comment information, and the target multimedia file comprises at least one of a target video frame and a target video; displaying the target file; receiving a sending instruction of the first user for the target file; and responding to the sending instruction, and sending the target file to a second user. By adopting the file sharing method provided by the embodiment of the disclosure, the diversity of services provided by social software can be improved, so that the user requirements can be better met, and the user experience is effectively improved.

Description

File sharing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer application technologies, and in particular, to a file sharing method and apparatus, an electronic device, and a storage medium.
Background
In the related art, when a user watches a video, comments are often sent, and the electronic device displays the comments in a scrolling manner. For videos that users have sent comments in the past, users usually cannot share the comments sent in the past and corresponding video pictures to other users through social software, and thus the social software cannot meet the user requirements, and user experience is poor.
Disclosure of Invention
The disclosure provides a file sharing method, a file sharing device, electronic equipment and a storage medium, so as to at least solve the problem that comments and corresponding video pictures sent by a user in the past cannot be shared to other users through social software in the related art, which causes poor user experience. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a file sharing method, including:
receiving an input instruction of a first user; wherein the input instruction comprises a target search key;
responding to the input instruction, and acquiring a target file corresponding to the target retrieval keyword; the target file comprises target comment information and a target multimedia file, the target multimedia file corresponds to the target comment information, and the target multimedia file comprises at least one of a target video frame and a target video;
displaying the target file;
receiving a sending instruction of the first user for the target file;
and responding to the sending instruction, and sending the target file to a second user.
In a possible implementation manner, before the receiving the input instruction of the first user, the method further includes:
when detecting that a first user sends first comment information, acquiring a first multimedia file corresponding to the first comment information; wherein the first multimedia file comprises at least one of a video frame when the first comment information is sent and a video containing the video frame;
generating a first retrieval keyword corresponding to the first multimedia file and first multimedia file information corresponding to the first multimedia file; wherein the first search key comprises the target search key, and the first multimedia file information comprises at least one of a URL of the video frame and an ID of the video;
and storing the user ID of the first user, the first search keyword, the first multimedia file, the first comment information and the first multimedia file information in an associated manner.
In one possible embodiment, the first search keyword includes at least one of a video identifier corresponding to the first multimedia file and a comment identifier of the first comment information.
In a possible implementation manner, before the receiving the input instruction of the first user, the method further includes:
acquiring a user ID of the first user;
and acquiring a second search keyword, second comment information and second multimedia file information which are associated with the user ID from the first search keyword, the first comment information and the first multimedia file information.
In a possible implementation manner, the obtaining a target file corresponding to the target search keyword includes:
determining target comment information and target multimedia file information associated with the target retrieval keyword from the second comment information and the second multimedia file information;
acquiring the target comment information;
and acquiring the target multimedia file according to the target multimedia file information.
In one possible embodiment, the target files are one or more;
the sending the target file to a second user in response to the sending instruction comprises:
determining a target shared file from the target files in response to the sending instruction;
and sending the target shared file to the second user.
According to a second aspect of the embodiments of the present disclosure, there is provided a file sharing apparatus including:
the first receiving module is configured to receive an input instruction of a first user; wherein the input instruction comprises a target search key;
a first obtaining module, configured to respond to the input instruction, obtain a target file corresponding to the target search keyword; the target file comprises target comment information and a target multimedia file, the target multimedia file corresponds to the target comment information, and the target multimedia file comprises at least one of a target video frame and a target video;
a display module configured to display the target file;
a second receiving module configured to receive a sending instruction of the first user for the target file;
and the sending module is configured to respond to the sending instruction and send the target file to a second user.
In a possible implementation manner, the file sharing apparatus further includes:
the second obtaining module is configured to obtain a first multimedia file corresponding to first comment information when the first comment information sent by a first user is detected; wherein the first multimedia file comprises at least one of a video frame when the first comment information is sent and a video containing the video frame;
the generating module is configured to generate a first retrieval keyword corresponding to the first multimedia file and first multimedia file information corresponding to the first multimedia file; wherein the first search key comprises the target search key, and the first multimedia file information comprises at least one of a URL of the video frame and an ID of the video;
an association storage module configured to store the user ID of the first user, the first search keyword, the first multimedia file, the first comment information, and the first multimedia file information in association.
In one possible embodiment, the first search keyword includes at least one of a video identifier corresponding to the first multimedia file and a comment identifier of the first comment information.
In a possible implementation manner, the file sharing apparatus further includes:
a third obtaining module configured to obtain a user ID of the first user;
a fourth obtaining module, configured to obtain, from the first search keyword, the first comment information, and the first multimedia file information, a second search keyword, second comment information, and second multimedia file information associated with the user ID.
In a possible implementation, the first obtaining module includes:
a first determining unit configured to determine, among the second comment information and the second multimedia file information, target comment information and target multimedia file information associated with the target search keyword;
a first acquisition unit configured to acquire the target comment information;
a second obtaining unit configured to obtain the target multimedia file according to the target multimedia file information.
In one possible embodiment, the target files are one or more;
the sending module comprises:
a second determination unit configured to determine a target shared file from the target files in response to the transmission instruction;
a sending unit configured to send the target shared file to the second user.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the file sharing method of any of the first aspects.
According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium, wherein instructions that, when executed by a processor of an electronic device, enable the electronic device to perform the file sharing method according to any one of the first aspect.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the file sharing method according to any one of the first aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
in the embodiment of the disclosure, an input instruction including a target retrieval keyword of a first user is received, a target file corresponding to the target retrieval keyword is acquired and displayed, and after a sending instruction of the first user for the target file is received, the target file is sent to a second user. The target file comprises target comment information and a target multimedia file corresponding to the target comment information, and the target multimedia file comprises at least one of a target video frame and a target video. Therefore, the target files corresponding to the target retrieval keywords can be obtained, and the sharing of the target files can be achieved, that is, the sharing of the target comment information sent by the first user and the target video frames and/or the target videos corresponding to the target comment information can be achieved, so that the diversity of services provided by the social software can be improved, the user requirements can be better met, and the user experience can be effectively 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 present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a flowchart illustrating a file sharing method according to an example embodiment.
Fig. 2 is a schematic diagram illustrating a display manner of a target file according to an exemplary embodiment.
FIG. 3 is a schematic diagram illustrating a process for retrieving a target file according to an exemplary embodiment.
FIG. 4 is a schematic diagram illustrating another display of a target file according to an example embodiment.
FIG. 5 is a diagram illustrating a send interface for a target file, according to an example embodiment.
FIG. 6 is a block diagram illustrating a file sharing apparatus according to an example embodiment.
FIG. 7 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
As can be seen from the background art, in the related art, a user cannot share comments and corresponding video pictures sent by the user in the past to other users through social software, and thus, the user experience is poor. Based on this, the embodiments of the present disclosure provide a file sharing method, device, electronic device, and storage medium, which can implement sharing of target comment information sent by a user and a target video frame and a target video corresponding to the target comment information, thereby effectively improving user experience.
The following describes a file sharing method, an apparatus, an electronic device, and a storage medium provided in the embodiments of the present disclosure in detail with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating a file sharing method according to an exemplary embodiment, where the file sharing method may be applied to an electronic device, for example, a mobile phone, a tablet computer, or a computer. As shown in fig. 1, the file sharing method may include the following steps.
In step S101, an input instruction of a first user is received.
The input instruction can include a target retrieval key word, and the target retrieval key word can be used for retrieving comment information which the first user wants to share and a video frame or a video corresponding to the comment information.
In the embodiment of the disclosure, when a user (i.e., a first user) wants to share comment information (for example, pop-up information) sent before the user (i.e., a second user) and a video frame or a video corresponding to the comment information to another user (i.e., a second user), the electronic device may be operated to input a search keyword, i.e., a target search keyword, to the electronic device. For example, a first user may select a second user who wants to share comment information and a video frame or a video corresponding to the comment information in a express application, where the second user may be a certain user or a certain chat group, and then may input a target search keyword in a chat window with the second user. In this way, the electronic device may receive an input instruction input by the first user.
In step S102, in response to an input instruction, a target file corresponding to a target search keyword is acquired.
The target file may include target comment information and a target multimedia file, the target multimedia file may correspond to the target comment information, and the target multimedia file may include at least one of a target video frame and a target video. The target comment information may be comment information corresponding to the target search keyword, and the target multimedia file may be at least one of a video frame (i.e., a target video frame) and a video (i.e., a target video) corresponding to the target comment information.
In the embodiment of the present disclosure, after receiving an input instruction of a first user, in response to the input instruction, the electronic device may determine a file corresponding to a target search keyword, that is, a target file. Specifically, target comment information corresponding to the target search keyword and a target multimedia file corresponding to the target search keyword may be determined, where the target multimedia file corresponding to the target search keyword may actually be the target multimedia file corresponding to the target comment information, that is, the multimedia file when the target comment information is sent. For example, the determining of the target multimedia file corresponding to the target comment information may be determining of a target video frame or a target video corresponding to the target comment information, or determining of a target video frame and a target video corresponding to the target comment information. Taking the target retrieval key word as "666" and the target multimedia file as a target video frame as an example, it may be determined that the comment information corresponding to "666" is the target comment information, and a target video frame corresponding to the target retrieval key word, that is, a video frame when the target comment information is to be sent is the determined target video frame. Then, a target file corresponding to the target search keyword may be obtained, that is, target comment information and a target multimedia file corresponding to the target search keyword may be obtained.
It can be understood that the target video may be a video clip including a target video frame, and the video may use a playing progress corresponding to the target video frame as an initial playing time and use a playing ending time of a video to which the target video frame belongs as a termination playing time; or, the target video may also use the playing progress corresponding to the target video frame as the starting playing time, and use the playing progress at the first preset time after the playing progress as the ending playing time; or, the target video may further use the playing progress before the playing progress corresponding to the target video frame and at the second preset time interval with the playing progress as the initial playing time, and use the playing progress after the playing progress corresponding to the target video frame and at the third preset time interval with the playing progress as the ending playing time. The specific time lengths of the first preset time length, the second preset time length and the third preset time length can be set according to needs, and the specific time lengths can be the same or different.
In step S103, the target file is displayed.
In the embodiment of the disclosure, after acquiring the target file corresponding to the target search keyword, the electronic device may display the target file. For example, fig. 2 shows a display manner of a target file by taking the target retrieval keyword as "666", the second user as user a, and the target multimedia file as a target video frame, as shown in fig. 2, target comment information may be displayed below the corresponding target video frame. Then, the user can visually see the target file to operate the electronic equipment to send the target file as required.
In step S104, a transmission instruction of the first user for the target file is received.
In the embodiment of the disclosure, after the electronic device displays the target file, the user may operate the electronic device to control the electronic device to send the target file, for example, the displayed target file or the target comment information may be clicked. Then, the electronic device may receive a transmission instruction of the first user for the target file.
In step S105, the target file is transmitted to the second user in response to the transmission instruction.
In the embodiment of the disclosure, after receiving a sending instruction of a first user for a target display file, the electronic device may send the target file to a second user in response to the sending instruction, that is, send target comment information and a target multimedia file to the second user. Still referring to fig. 2, taking the target retrieval key word as "666", the second user as user a, and the target multimedia file as the target video frame as an example, after receiving the sending instruction, the electronic device may send the target video frame and the target comment information to user a.
In the embodiment of the disclosure, an input instruction including a target retrieval keyword of a first user is received, a target file corresponding to the target retrieval keyword is acquired and displayed, and after a sending instruction of the first user for the target file is received, the target file is sent to a second user. The target file comprises target comment information and a target multimedia file corresponding to the target comment information, and the target multimedia file comprises at least one of a target video frame and a target video. Therefore, the target files corresponding to the target retrieval keywords can be obtained, and the sharing of the target files can be achieved, that is, the sharing of the target comment information sent by the first user and the target video frames and/or the target videos corresponding to the target comment information can be achieved, so that the diversity of services provided by the social software can be improved, the user requirements can be better met, and the user experience can be effectively improved.
In one possible implementation, the user ID of the first user, the first search keyword, the first multimedia file, the first comment information, and the first multimedia file information may be stored in association in advance. Accordingly, before the step S101, the following steps may be further performed:
when detecting that a first user sends first comment information, acquiring a first multimedia file corresponding to the first comment information;
generating a first retrieval keyword corresponding to a first multimedia file and first multimedia file information corresponding to the first multimedia file;
and storing the user ID of the first user, the first search keyword, the first multimedia file, the first comment information and the first multimedia file information in an associated manner.
The first multimedia file can comprise at least one of a video frame when the first comment information is sent and a video containing the video frame; the first search key may include a target search key, and the first multimedia file information may include at least one of a URL (Uniform Resource Locator) of the video frame, and an ID (Identity document) of the video.
The first search keyword may include at least one of a video identifier corresponding to the first multimedia file and a comment identifier corresponding to the first comment information.
In an embodiment of the present disclosure, before the file sharing method in the above-described embodiment is executed, the electronic device may further detect whether the first user sends comment information, that is, the first comment information. When it is detected that the first user sends the first comment information, the first multimedia file corresponding to the first comment information may be acquired, and specifically, when the first multimedia information is a video frame, the video frame when the first comment information is sent may be acquired (for example, may be intercepted); when the first multimedia information is a video, a video including the video frame may be obtained (for example, may be intercepted), and the video including the video frame may be a video segment including the video frame, and the specific start playing time and the specific end playing time of the video may refer to the start playing time and the end playing time of the target video.
After the first multimedia file corresponding to the first comment information is acquired, a first search keyword corresponding to the first multimedia file may be generated, where the first search keyword may include at least one of a video identifier of a video to which the first multimedia file belongs and a comment identifier corresponding to the first comment information. For example, the comment identification of the first comment information may include the entire content or a part of the content of the first comment information, with the first comment information being "666, too praised! "for example, the comment identification may be" 666 "or" too endorsed "or" 666, too endorsed ", etc.; the video identifier of the video to which the first multimedia file belongs may be the entire content of the video name of the video to which the first multimedia file belongs, a partial content of the video name, or the initial letter of the video name, and for example, the video to which the first multimedia file belongs is "know-no", and the video identifier may be "zfzff" or "know-no".
After the first multimedia file corresponding to the first comment information is acquired, first multimedia file information corresponding to the first multimedia file can be generated, and specifically, when the first multimedia file is a video frame, the first multimedia file information corresponding to the first multimedia file can be a URL of the video frame; when the first multimedia file is a video, the first multimedia file information corresponding to the first multimedia file may be an ID of the video. After generating the first search keyword corresponding to the first multimedia file and the first multimedia file information corresponding to the first multimedia file, the electronic device may further perform associated storage on the user ID of the first user, the first search keyword, the first multimedia file, the first comment information, and the first multimedia file information.
It is understood that the contents of the first search keyword, the first multimedia file, the first comment information, the first multimedia file information, and the like may also be updated periodically.
Therefore, the user ID of the first user, the first search keyword, the first multimedia file, the first comment information and the first multimedia file information are acquired, generated and stored in an associated mode in advance, and data support can be provided for acquiring the target file corresponding to the target search keyword in a subsequent file sharing method.
In a further embodiment, a specific implementation manner of storing the user ID of the first user, the first search keyword, the first multimedia file, the first comment information, and the first multimedia file information in association may include the following steps:
associating the user ID, the first search keyword, the first multimedia file, the first comment information and the first multimedia file information;
storing the associated first multimedia file to a server;
and storing the associated user ID, the first search keyword, the first comment information and the first multimedia file information to the local.
In the embodiment of the disclosure, the electronic device may associate a user ID of the first user, the first search keyword, the first multimedia file, the first comment information, and the first multimedia file information, and may, for example, associate the user ID of the first user with the first comment information, the first multimedia file, the first search keyword, and the first multimedia file information issued by the user ID; and for each first retrieval key word, associating each first retrieval key word with the first comment information, the first multimedia file and the first multimedia file information corresponding to the first retrieval key word. After associating the user ID of the first user, the first search keyword, the first multimedia file, the first comment information, and the first multimedia file information, the associated first multimedia file may be stored in a server, that is, a specific video frame or video may be stored in the server, for example, the associated first multimedia file may be stored in a CDN (Content Delivery Network) server; and storing the associated user ID of the first user, the first search keyword, the first comment information and the first multimedia file information to the local.
It can be understood that the associated user ID of the first user, the first search keyword, the first comment information, and the first multimedia file information may also be stored in the server. When the target multimedia file is acquired, the electronic device may acquire the target multimedia file from the server according to the first multimedia file information.
Therefore, the first multimedia file is stored in the server, and only the text or character string identification content with small occupied space is stored locally, so that the conditions of overhigh occupancy rate of the storage space of the electronic equipment can be avoided, and the conditions of blockage, response failure and the like caused by overhigh occupancy rate of the storage space of the electronic equipment are avoided, thereby improving the file sharing efficiency and further improving the user experience.
In a possible implementation manner, before receiving the input instruction of the first user, relevant data such as a search keyword, comment information, multimedia file information and the like associated with the user ID may be synchronized, and accordingly, as shown in fig. 3, before receiving the input instruction of the first user, the following steps may also be performed:
in step S301, a user ID of the first user is acquired;
in step S302, a second search keyword, second comment information, and second multimedia file information associated with the user ID are acquired from the first search keyword, the first comment information, and the first multimedia file information.
In the embodiment of the disclosure, before receiving an input instruction of the first user, the electronic device may first acquire related content such as a search keyword (i.e., a second search keyword), comment information (i.e., second comment information), multimedia file information (i.e., second multimedia file information), and the like associated with the user ID of the first user. Specifically, the electronic device may first obtain a user ID of the first user, determine, in the first search keyword, the first comment information, and the first multimedia file information, a second search keyword, second comment information, and second multimedia file information that are associated with the user ID of the first user, and obtain the second search keyword, the second comment information, and the second multimedia file information. It will be appreciated that the above steps may be performed each time the first user launches the social software or successfully logs in to the user ID, and as such, a synchronized update of the relevant data may be achieved each time the user launches the social software or successfully logs in to the user ID.
Therefore, synchronous updating of relevant data such as the second retrieval keyword, the second comment information and the second multimedia file information associated with the user ID can be achieved in advance, so that the real-time performance of the data can be improved, and more accurate and real-time data support is provided for subsequent determination of the target comment information and the target multimedia file.
In a further embodiment, referring to fig. 3, correspondingly, the specific implementation manner of obtaining the target file corresponding to the target search keyword may include the following steps:
in step S303, of the second comment information and the second multimedia file information, target comment information and target multimedia file information associated with the target search keyword are determined.
In step S304, target comment information is acquired;
in step S305, a target multimedia file is acquired according to the target multimedia file information.
In the embodiment of the present disclosure, in a case where the second search keyword, the second comment information, and the second multimedia file information associated with the user ID are acquired from the first search keyword, the first comment information, and the first multimedia file information, the target comment information and the target multimedia file information may be determined from the second comment information and the second multimedia file information. Specifically, the electronic device may retrieve, from the second comment information, target comment information associated with the target retrieval keyword; and retrieving target multimedia file information associated with the target retrieval key in the second multimedia file information. Then, the electronic device may obtain the aforementioned second comment information, and may obtain the target multimedia file according to the target multimedia file information. For example, in the case that the target multimedia file is a target video frame, the target multimedia file information is a URL of the target video frame, and the target video frame may be obtained according to the URL; when the target multimedia file is the target video, the target multimedia file information is the ID of the target video, and the target video can be acquired according to the ID.
Therefore, the target comment information and the target multimedia file information are determined based on the more accurate and more real-time second comment information and second multimedia file information, so that the accuracy and the real-time performance of the target comment information and the target multimedia file information can be improved, namely, the accuracy and the real-time performance of the target file can be improved, the acquired target file can better meet the user expectation, the user requirements can be better met, and the user experience is further improved.
In one possible implementation, the target files may be one or more, and the user may select one target file to be shared to the second user. Accordingly, the specific implementation manner for sending the target file to the second user in response to the sending instruction may include the following steps:
in response to the sending instruction, determining a target shared file from the target files;
and sending the target shared file to a second user.
In the embodiment of the disclosure, the user may operate the electronic device to select the displayed target file as the target shared file to be sent to the second user, for example, the user may click the displayed target file, so that the electronic device may receive the sending instruction. After receiving the sending instruction, the electronic device may determine, in response to the sending instruction, the target file corresponding to the sending instruction as a target shared file, and then send the target shared file to the second user. Fig. 4 shows another display mode of the target file by taking the target retrieval keyword as "666", the second user as user a, the number of the target files as 3, the target multimedia file as the target video frame, and the target file sharing file as the target comment information 2 and the target video frame 2 as examples, where each set of the target comment information and the target video frame may be displayed in a control form, and the first user may click any position of the area where the target comment information 2 and the target video frame 2 are located, so that the electronic device may receive a sending instruction of the user for the target comment information 2 and the target video frame 2, and send the target comment information 2 and the target video frame 2 as the target sharing file to the second user, as shown in fig. 5.
It is understood that fig. 4 only shows one display manner of the object files by taking 3 object files as an example, and in practice, more or less object files may be possible. When the target files are more, the electronic equipment can also display the target files in a sliding list mode, and the first user can view the target files hidden and displayed in the sliding list through the sliding list.
Therefore, the user can freely select the target file as the target shared file according to the requirement, so that the service diversity of the social software can be better improved, the user requirement can be better met, and the user experience is further improved.
FIG. 6 is a block diagram illustrating a file sharing apparatus according to an example embodiment. Referring to fig. 6, the file sharing apparatus 600 may include:
a first receiving module 610, which may be configured to receive an input instruction of a first user; wherein the input instruction comprises a target search key;
a first obtaining module 620, configured to obtain a target file corresponding to the target search keyword in response to the input instruction; the target file comprises target comment information and a target multimedia file, the target multimedia file corresponds to the target comment information, and the target multimedia file comprises at least one of a target video frame and a target video;
a display module 630, which may be configured to display the target file;
a second receiving module 640, which may be configured to receive a sending instruction of the first user for the target file;
the sending module 650 may be configured to send the target file to the second user in response to the sending instruction.
In a possible implementation manner, the file sharing apparatus 600 may further include:
the second obtaining module can be configured to obtain a first multimedia file corresponding to first comment information when detecting that a first user sends the first comment information; wherein the first multimedia file comprises at least one of a video frame when the first comment information is sent and a video containing the video frame;
the generating module may be configured to generate a first search keyword corresponding to the first multimedia file and first multimedia file information corresponding to the first multimedia file; wherein the first search keyword comprises the target search keyword, and the first multimedia file information comprises at least one of a URL of the video frame and an ID of the video;
an association storage module configured to store the user ID of the first user, the first search keyword, the first multimedia file, the first comment information, and the first multimedia file information in association.
In one possible embodiment, the first search keyword includes at least one of a video identifier corresponding to the first multimedia file and a comment identifier of the first comment information.
In a possible implementation manner, the file sharing apparatus 600 may further include:
a third obtaining module configured to obtain a user ID of the first user;
a fourth obtaining module, configured to obtain, from the first search keyword, the first comment information, and the first multimedia file information, a second search keyword, second comment information, and second multimedia file information associated with the user ID.
In a possible implementation, the first obtaining module 620 may include:
a first determining unit that may be configured to determine, among the second comment information and the second multimedia file information, target comment information and target multimedia file information associated with the target search keyword;
a first acquisition unit that may be configured to acquire the target comment information;
a second obtaining unit may be configured to obtain the target multimedia file according to the target multimedia file information.
In one possible embodiment, the target files may be one or more;
the sending module 650 may include:
a second determination unit configured to determine a target shared file from the target files in response to the transmission instruction;
a sending unit, which may be configured to send the target shared file to the second user.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 7 illustrates a schematic block diagram of an example electronic device 700 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 7, the electronic device 700 includes a computing unit 701, which may perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM)702 or a computer program loaded from a storage unit 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM702, and the RAM 703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
A number of components in the electronic device 700 are connected to the I/O interface 705, including: an input unit 706 such as a keyboard, a mouse, or the like; an output unit 707 such as various types of displays, speakers, and the like; a storage unit 708 such as a magnetic disk, optical disk, or the like; and a communication unit 709 such as a network card, modem, wireless communication transceiver, etc. The communication unit 709 allows the electronic device 700 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
Computing unit 701 may be a variety of general purpose and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The computing unit 701 executes the respective methods and processes described above, such as a file sharing method. For example, in some embodiments, the file sharing method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 708. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 700 via the ROM702 and/or the communication unit 709. When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the file sharing method described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to perform the file sharing method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, 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.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), the internet, and blockchain networks.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The Server can be a cloud Server, also called a cloud computing Server or a cloud host, and is a host product in a cloud computing service system, so as to solve the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service ("Virtual Private Server", or simply "VPS"). The server may also be a server of a distributed system, or a server incorporating a blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (10)

1. A method for sharing a file, comprising:
receiving an input instruction of a first user; wherein the input instruction comprises a target search key;
responding to the input instruction, and acquiring a target file corresponding to the target retrieval keyword; the target file comprises target comment information and a target multimedia file, the target multimedia file corresponds to the target comment information, and the target multimedia file comprises at least one of a target video frame and a target video;
displaying the target file;
receiving a sending instruction of the first user for the target file;
and responding to the sending instruction, and sending the target file to a second user.
2. The file sharing method according to claim 1, wherein before receiving the input instruction of the first user, the method further comprises:
when detecting that a first user sends first comment information, acquiring a first multimedia file corresponding to the first comment information; wherein the first multimedia file comprises at least one of a video frame when the first comment information is sent and a video containing the video frame;
generating a first retrieval keyword corresponding to the first multimedia file and first multimedia file information corresponding to the first multimedia file; wherein the first multimedia file information includes at least one of a URL of the video frame and an ID of the video;
and storing the user ID of the first user, the first search keyword, the first multimedia file, the first comment information and the first multimedia file information in an associated manner.
3. The file sharing method according to claim 2, wherein the first search keyword includes at least one of a video identifier corresponding to the first multimedia file and a comment identifier of the first comment information.
4. The file sharing method according to claim 2, wherein before receiving the input instruction of the first user, the method further comprises:
acquiring a user ID of the first user;
and acquiring a second search keyword, second comment information and second multimedia file information which are associated with the user ID from the first search keyword, the first comment information and the first multimedia file information.
5. The file sharing method according to claim 4, wherein the obtaining of the target file corresponding to the target search keyword comprises:
determining target comment information and target multimedia file information associated with the target retrieval keyword from the second comment information and the second multimedia file information;
acquiring the target comment information;
and acquiring the target multimedia file according to the target multimedia file information.
6. The file sharing method according to claim 1, wherein the target file is one or more;
the sending the target file to a second user in response to the sending instruction comprises:
determining a target shared file from the target files in response to the sending instruction;
and sending the target shared file to the second user.
7. A file sharing apparatus, comprising:
the first receiving module is configured to receive an input instruction of a first user; wherein the input instruction comprises a target search key;
a first obtaining module, configured to obtain, in response to the input instruction, a target file corresponding to the target search keyword; the target file comprises target comment information and a target multimedia file, the target multimedia file corresponds to the target comment information, and the target multimedia file comprises at least one of a target video frame and a target video;
a display module configured to display the target file;
a second receiving module configured to receive a sending instruction of the first user for the target file;
and the sending module is configured to respond to the sending instruction and send the target file to a second user.
8. The file sharing apparatus according to claim 7, further comprising:
the second obtaining module is configured to obtain a first multimedia file corresponding to first comment information when the first comment information sent by a first user is detected; wherein the first multimedia file comprises at least one of a video frame when the first comment information is sent and a video containing the video frame;
the generating module is configured to generate a first retrieval keyword corresponding to the first multimedia file and first multimedia file information corresponding to the first multimedia file; wherein the first search key comprises the target search key, and the first multimedia file information comprises at least one of a URL of the video frame and an ID of the video;
an association storage module configured to store the user ID of the first user, the first search keyword, the first multimedia file, the first comment information, and the first multimedia file information in association.
9. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the file sharing method of any of claims 1 to 6.
10. A storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform the file sharing method of any one of claims 1 to 6.
CN202210026125.6A 2022-01-11 2022-01-11 File sharing method and device, electronic equipment and storage medium Active CN114500438B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210026125.6A CN114500438B (en) 2022-01-11 2022-01-11 File sharing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210026125.6A CN114500438B (en) 2022-01-11 2022-01-11 File sharing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114500438A true CN114500438A (en) 2022-05-13
CN114500438B CN114500438B (en) 2023-06-20

Family

ID=81510212

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210026125.6A Active CN114500438B (en) 2022-01-11 2022-01-11 File sharing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114500438B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100306232A1 (en) * 2009-05-28 2010-12-02 Harris Corporation Multimedia system providing database of shared text comment data indexed to video source data and related methods
US20140359465A1 (en) * 2013-05-31 2014-12-04 Nubo Software Ltd. Method and Apparatus for Annotated Electronic File Sharing
US20180025078A1 (en) * 2016-07-21 2018-01-25 Twitter, Inc. Live video streaming services with machine-learning based highlight replays
US20200312327A1 (en) * 2019-03-29 2020-10-01 Shanghai Bilibili Technology Co., Ltd. Method and system for processing comment information
CN112241397A (en) * 2019-07-18 2021-01-19 腾讯科技(深圳)有限公司 Multimedia file sharing method and device, electronic equipment and readable storage medium
CN113065018A (en) * 2021-04-13 2021-07-02 杭州海康威视数字技术股份有限公司 Audio and video index library creating and retrieving method and device and electronic equipment
CN113518264A (en) * 2020-10-29 2021-10-19 腾讯科技(深圳)有限公司 Interaction method, device, terminal and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100306232A1 (en) * 2009-05-28 2010-12-02 Harris Corporation Multimedia system providing database of shared text comment data indexed to video source data and related methods
US20140359465A1 (en) * 2013-05-31 2014-12-04 Nubo Software Ltd. Method and Apparatus for Annotated Electronic File Sharing
US20180025078A1 (en) * 2016-07-21 2018-01-25 Twitter, Inc. Live video streaming services with machine-learning based highlight replays
US20200312327A1 (en) * 2019-03-29 2020-10-01 Shanghai Bilibili Technology Co., Ltd. Method and system for processing comment information
CN112241397A (en) * 2019-07-18 2021-01-19 腾讯科技(深圳)有限公司 Multimedia file sharing method and device, electronic equipment and readable storage medium
CN113518264A (en) * 2020-10-29 2021-10-19 腾讯科技(深圳)有限公司 Interaction method, device, terminal and storage medium
CN113065018A (en) * 2021-04-13 2021-07-02 杭州海康威视数字技术股份有限公司 Audio and video index library creating and retrieving method and device and electronic equipment

Also Published As

Publication number Publication date
CN114500438B (en) 2023-06-20

Similar Documents

Publication Publication Date Title
CN105787077B (en) Data synchronization method and device
US11038975B2 (en) Information pushing method and device
CN112162965B (en) Log data processing method, device, computer equipment and storage medium
CN108090079B (en) Chat record processing method and device of instant chat tool
US10664516B2 (en) Search system, method and apparatus
CN113312512A (en) Training method, recommendation device, electronic equipment and storage medium
CN113138827A (en) Method, device, electronic equipment and medium for displaying data
CN112838980A (en) Message processing method, system, device, electronic equipment and storage medium
CN115454971A (en) Data migration method and device, electronic equipment and storage medium
CN115168732A (en) Resource recommendation method, device, equipment and storage medium
CN114500438B (en) File sharing method and device, electronic equipment and storage medium
CN113656731A (en) Advertisement page processing method and device, electronic equipment and storage medium
CN114880562A (en) Method and device for recommending information
CN112822089B (en) Method and device for adding friends
CN113360693A (en) Method and device for determining image label, electronic equipment and storage medium
EP3289544A1 (en) Insertion of unsaved content via content channel
CN112966201A (en) Object processing method, device, electronic equipment and storage medium
CN107181772B (en) Method and device for updating client state on line in real time
CN112887426A (en) Information flow pushing method and device, electronic equipment and storage medium
CN112752323A (en) Method and device for changing hotspot access state
CN113449230A (en) Method and system for determining exposure element, client and server
CN115203599B (en) Information recommendation method, device, equipment and storage medium
CN110555027A (en) information security processing method and device, storage medium and computing equipment
CN113569144B (en) Method, device, equipment, storage medium and program product for searching promotion content
CN113691442B (en) Friend recommendation method, device, equipment, storage medium and program product

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