CN114500438B - 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
CN114500438B
CN114500438B CN202210026125.6A CN202210026125A CN114500438B CN 114500438 B CN114500438 B CN 114500438B CN 202210026125 A CN202210026125 A CN 202210026125A CN 114500438 B CN114500438 B CN 114500438B
Authority
CN
China
Prior art keywords
target
file
user
multimedia file
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.)
Active
Application number
CN202210026125.6A
Other languages
Chinese (zh)
Other versions
CN114500438A (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 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 includes a target retrieval keyword; responding to the input instruction, and acquiring a target file corresponding to the target retrieval key; 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 invention, the diversity of the service provided by the social software can be improved, so that the user requirement 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 disclosure relates to the technical field of computer applications, and in particular relates to a file sharing method, a device, electronic equipment and a storage medium.
Background
In the related art, when a user watches a video, comments are often transmitted, and the electronic device displays the comments in a scrolling manner. For videos of which the user has sent comments in the past, the user cannot share the comments sent in the past and corresponding video pictures to other users through social software, so that the social software cannot meet the user requirements, and the user experience is poor.
Disclosure of Invention
The disclosure provides a file sharing method, a device, an electronic device and a storage medium, which at least solve the problem that in the related art, comments and corresponding video pictures sent in the past cannot be shared to other users through social software, so that user experience is poor. The technical scheme of the present disclosure is as follows:
according to a first aspect of an embodiment of the present disclosure, there is provided a file sharing method, including:
receiving an input instruction of a first user; wherein the input instruction includes a target retrieval keyword;
responding to the input instruction, and acquiring a target file corresponding to the target retrieval key; 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 one possible implementation manner, before receiving the input instruction of the first user, the method further includes:
when first comment information sent by a first user is detected, a first multimedia file corresponding to the first comment information is obtained; wherein the first multimedia file comprises at least one of a video frame and a video containing the video frame when the first comment information is sent;
generating 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 includes the target search keyword, and 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 mode.
In a possible implementation manner, 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 one possible implementation manner, before 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 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 the target file corresponding to the target search keyword includes:
determining target comment information and target multimedia file information associated with the target search keyword in 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 implementation, the target file is one or more;
the responding to the sending instruction, the target file is sent to a second user, and the method comprises the following steps:
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 includes a target retrieval keyword;
the first acquisition module is configured to respond to the input instruction and acquire 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;
a display module configured to display the target file;
the second receiving module is 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 one possible implementation manner, the file sharing device further includes:
the second acquisition module is configured to acquire a first multimedia file corresponding to first comment information when detecting that the first user sends the first comment information; wherein the first multimedia file comprises at least one of a video frame and a video containing the video frame when the first comment information is sent;
The generation module is 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 includes the target search keyword, and the first multimedia file information includes at least one of a URL of the video frame and an ID of the video;
and the association storage module is 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 an associated manner.
In a possible implementation manner, 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 one possible implementation manner, the file sharing device further includes:
a third acquisition module configured to acquire a user ID of the first user;
and a fourth acquisition module configured to acquire a second search keyword, second comment information and second multimedia file information associated with the user ID from the first search keyword, the first comment information and the first multimedia file information.
In one possible implementation manner, the first obtaining module includes:
a first determination unit configured to determine target comment information and target multimedia file information associated with the target search keyword among the second comment information and the second multimedia file information;
a first acquisition unit configured to acquire the target comment information;
and a second acquisition unit configured to acquire the target multimedia file according to the target multimedia file information.
In one possible implementation, the target file is one or more;
the sending module comprises:
a second determining unit configured to determine a target shared file from the target files in response to the transmission instruction;
and a transmitting unit configured to transmit the target shared file to the second user.
According to a third aspect of embodiments of the present disclosure, there is provided 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 the first aspects.
According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium, which when executed by a processor of an electronic device, enables the electronic device to perform the file sharing method as in any one of the first aspects.
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 as in any of the first aspects.
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 of a first user including a target search keyword is received, a target file corresponding to the target search keyword is obtained, the target file is 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 sharing of the target file can be realized by acquiring the target file corresponding to the target search keyword, that is, the target comment information sent by the first user and the target video frame and/or the target video corresponding to the target comment information can be shared, so that the diversity of the service provided by the social software can be improved, the user requirement 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 disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
FIG. 1 is a flow diagram illustrating a method of file sharing according to an exemplary embodiment.
Fig. 2 is a schematic diagram showing a display manner of a target file according to an exemplary embodiment.
Fig. 3 is a flow diagram illustrating a process for obtaining a target file according to an exemplary embodiment.
Fig. 4 is a schematic diagram showing another display manner of a target file according to an exemplary embodiment.
Fig. 5 is a diagram illustrating a transmission interface of a target file according to an exemplary embodiment.
FIG. 6 is a block diagram illustrating a file sharing apparatus according to an example embodiment.
Fig. 7 is a block diagram of an electronic device, according to an example embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of 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 foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. 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.
As known from the background art, in the related art, a user cannot share comments and corresponding video images sent in the past to other users through social software, which may result in poor user experience. Based on the above, the embodiments of the present disclosure provide a file sharing method, apparatus, 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, so that user experience can be effectively improved.
The file sharing method, device, electronic equipment and storage medium provided by the embodiments of the present disclosure are described in detail below 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 may include a target search keyword, where the target search keyword may be used to search comment information that the first user wants to share, and a video frame or 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, bullet screen information) sent before the user to another user (i.e., a second user) and a video frame or video corresponding to the comment information, the electronic device may be operated to input a search keyword, that is, a target search keyword, into the electronic device. For example, a first user may select a second user who wants to share comment information and a video frame or video corresponding to the comment information in the quick-hand 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 entered by the first user.
In step S102, in response to the input instruction, a target file corresponding to the 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 disclosure, after receiving the input instruction of the first user, the electronic device may determine a file corresponding to the target search keyword, that is, a target file, in response to the input instruction. Specifically, the target comment information corresponding to the target search keyword and the 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 transmitted. For example, the target multimedia file corresponding to the target comment information may be determined, or the target video frame or the target video corresponding to the target comment information may be determined. Taking the target search keyword as 666 and the target multimedia file as the target video frame as an example, comment information corresponding to 666 can be determined as target comment information, and the target video frame corresponding to the target search keyword, i.e. the video frame when the target comment information is to be sent, can be determined as the determined target video frame. Then, the target file corresponding to the target search keyword can be obtained, namely, the target comment information and the target multimedia file corresponding to the target search keyword are obtained.
It can be understood that the target video may be a video clip containing a target video frame, where the video may take a playing progress corresponding to the target video frame as a starting playing time and a playing end time of the video to which the target video frame belongs as a terminating playing time; or, the target video may also take the playing progress corresponding to the target video frame as the initial playing time, and take the playing progress at the first preset time after the playing progress as the final playing time; or, the target video may further take the playing progress before the playing progress corresponding to the target video frame and the interval duration between the playing progress and the playing progress as the first preset time as the initial playing time, and take the playing progress after the playing progress corresponding to the target video frame and the interval duration between the playing progress and the playing progress as the second preset time as the final playing time. The specific time length of the first preset time length, the second preset time length and the third preset time length can be set according to the needs, and the three time lengths can be the same or different.
In step S103, the target file is displayed.
In the embodiment of the disclosure, after the electronic device obtains the target file corresponding to the target search keyword, the target file may be displayed. For example, in fig. 2, taking the target search keyword as "666", the second user as user a, and the target multimedia file as the target video frame as an example, a display manner of the target file is shown, and as shown in fig. 2, the target comment information may be displayed below the corresponding target video frame. Then, the user can intuitively see the target file to operate the electronic device as required to send the target file.
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. The electronic device may then receive a send instruction for the target file from the first user.
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 the sending instruction of the first user for the target display file, the electronic device may send the target file to the second user in response to the sending instruction, that is, send the target comment information and the target multimedia file to the second user. Still referring to fig. 2, taking the target search keyword as "666", the second user as user a, and the target multimedia file as the target video frame as an example, the electronic device may send the target video frame and the target comment information to user a after receiving the sending instruction.
In the embodiment of the disclosure, an input instruction of a first user including a target search keyword is received, a target file corresponding to the target search keyword is obtained, the target file is 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 sharing of the target file can be realized by acquiring the target file corresponding to the target search keyword, that is, the target comment information sent by the first user and the target video frame and/or the target video corresponding to the target comment information can be shared, so that the diversity of the service provided by the social software can be improved, the user requirement 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 above step S101, the following steps may be further performed:
when the first comment information sent by the first user is detected, a first multimedia file corresponding to the first comment information is obtained;
generating a first search keyword corresponding to the first multimedia file and first multimedia file information corresponding to the first multimedia file;
the method comprises the steps of storing a user ID of a first user, a first search keyword, a first multimedia file, first comment information and first multimedia file information in an associated mode.
Wherein the first multimedia file may include at least one of a video frame when the first comment information is transmitted, and a video including 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 URL (Uniform Resource Locator ) of the video frame, ID (Identity document, identification) 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 embodiment is performed, the electronic device may further detect whether the first user sends comment information, that is, the first comment information. When the first user is detected to send the first comment information, a first multimedia file corresponding to the first comment information can be obtained, and particularly, when the first multimedia information is a video frame, the video frame when the first comment information is sent can be obtained (e.g. intercepted); when the first multimedia information is a video, a video including the video frame may be obtained (e.g., may be intercepted), where the video including the video frame may be a video clip including the video frame, and specific start playing time and end playing time may refer to a start playing time and 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. The comment identification of the first comment information may include all or part of the content of the first comment information, which is regarded as 666 and endorsed as-! For example, the comment identification may be "666" or "praise" or "666, praise" or the like; the video identifier of the video to which the first multimedia file belongs may be the whole content of the video name of the video to which the first multimedia file belongs, the partial content of the video name, or the first letter of the video name, and taking the video to which the first multimedia file belongs as "know or not" as an example, the video identifier may be "zfzf" or "know or not".
After the first multimedia file corresponding to the first comment information is obtained, first multimedia file information corresponding to the first multimedia file may also be generated, specifically, when the first multimedia file is a video frame, the first multimedia file information corresponding to the first multimedia file may 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 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.
It may be appreciated that the content 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.
In this way, the user ID of the first user, the first search keyword, the first multimedia file, the first comment information, and the pre-acquisition, generation and association storage of the first multimedia file information can provide data support for acquiring the target file corresponding to the target search keyword in the subsequent file sharing method.
In a further embodiment, a specific implementation manner of associating 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 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, a first search keyword, a first multimedia file, first comment information, and first multimedia file information, and by way of example, may 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 that have been published by the user ID; and for each first search keyword, associating each first search keyword with the first comment information, the first multimedia file and the first multimedia file information corresponding to the first search keyword. 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 saved to a server, that is, a specific video frame or video may be saved to the server, for example, the associated first multimedia file may be saved to a CDN (Content Delivery Network ) server; and storing the user ID, the first search keyword, the first comment information and the first multimedia file information of the first user after the association to the local.
It may be appreciated that the user ID, the first search keyword, the first comment information, and the first multimedia file information of the associated first user 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 to the server, and only some text or character string identification type contents with small occupied space are stored locally, so that the situation that the storage space occupancy rate of the electronic equipment is too high can be avoided, the conditions of blocking, response failure and the like caused by the too high storage space occupancy rate of the electronic equipment are avoided, the file sharing efficiency can be improved, and the user experience is further improved.
In a possible implementation manner, before receiving the input instruction of the first user, the related data such as the search keyword, the comment information, the 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 be further performed:
in step S301, a user ID of a first user is acquired;
in step S302, 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.
In an embodiment of the present disclosure, the electronic device may acquire, before receiving the input instruction of the first user, 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, 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 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 initiates social software, or each time the user ID is successfully logged in, and thus, a synchronized update of the relevant data may be achieved each time the user initiates social software, or successfully logs in the user ID.
Therefore, the synchronous updating of the related data such as the second search keyword, the second comment information and the second multimedia file information related to the user ID can be realized 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 the follow-up determination of the target comment information and the target multimedia file.
In a further embodiment, still 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, among the second comment information and the second multimedia file information, the target comment information and the 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 an 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 among 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 based on the second comment information and the second multimedia file information. Specifically, the electronic device may retrieve, from the second comment information, the target comment information associated with the target retrieval keyword; in the second multimedia file information, target multimedia file information associated with the target retrieval key is retrieved. Then, the electronic device may acquire the aforementioned second comment information, and may acquire 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 acquired according to the URL; in the case that the target multimedia file is the target video, the target multimedia file information is the ID of the target video, and the target video may be acquired according to the ID.
Therefore, the target comment information and the target multimedia file information are determined based on the second comment information and the second multimedia file information which are more accurate and more real-time, the accuracy and the real-time of the target comment information and the target multimedia file information can be improved, namely the accuracy and the real-time of the target file can be improved, so that the acquired target file can better meet the user expectation, the user requirement can be better met, and the user experience can be further improved.
In one possible implementation, the target file may be one or more, and the user may select one target file to share to the second user. Accordingly, the specific implementation manner of sending the target file to the second user in response to the sending instruction may include the following steps:
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.
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, e.g., the user may click on the displayed target file, so that the electronic device may receive the sending instruction. After receiving the sending instruction, the electronic device responds to the sending instruction, and can determine the target file corresponding to the sending instruction as a target shared file, and then send the target shared file to the second user. In fig. 4, the target search keyword is "666", the second user is user a, the target files are 3, the target multimedia file is a target video frame, the target file sharing file is target comment information 2 and target video frame 2, which is an example, another display mode of the target file is shown, each group of target comment information and target video frame can be displayed in a control mode, and the first user can click on any position of the area where the target comment information 2 and the target video frame 2 are located, so that the electronic device can 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 will be appreciated that fig. 4 illustrates only 3 object files as an example of a display manner of the object files, and in practice, more or fewer object files are possible. When more target files are displayed, the electronic device can display the target files in the form of a sliding list, and the first user can view the target files which are hidden and displayed in the sliding list through the sliding list.
Therefore, the user can freely select the target file as the target sharing file according to the needs, so that the service diversity of the social software can be better improved, the user needs 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:
the first receiving module 610 may be configured to receive an input instruction of a first user; wherein the input instruction includes a target retrieval keyword;
the first obtaining module 620 may be 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 630, which may be configured to display the target file;
a second receiving module 640, which may be configured to receive a transmission instruction of the first user for the target file;
the sending module 650 may be configured to send the target file to a second user in response to the sending instruction.
In one possible implementation manner, the file sharing apparatus 600 may further include:
the second acquisition module can be configured to acquire a first multimedia file corresponding to first comment information when detecting that the first user sends the first comment information; wherein the first multimedia file comprises at least one of a video frame and a video containing the video frame when the first comment information is sent;
the generation module can 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 includes the target search keyword, and the first multimedia file information includes at least one of a URL of the video frame and an ID of the video;
the association storage module may be 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 a possible implementation manner, 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 one possible implementation manner, the file sharing apparatus 600 may further include:
a third acquisition module may be configured to acquire a user ID of the first user;
the fourth obtaining module may be 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 one possible implementation manner, the first obtaining module 620 may include:
a first determination unit may be configured to determine target comment information and target multimedia file information associated with the target search keyword among the second comment information and the second multimedia file information;
the first obtaining unit may be configured to obtain the target comment information;
the second acquisition unit may be configured to acquire the target multimedia file according to the target multimedia file information.
In one possible implementation, the target file may be one or more;
the transmitting module 650 may include:
a second determining unit configured to determine a target shared file from the target files in response to the transmission instruction;
and a transmitting unit configured to transmit the target shared file to the second user.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
Fig. 7 illustrates a schematic block diagram of an example electronic device 700 that may 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 telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary 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 that can 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 may also be stored. The computing unit 701, the ROM702, and the RAM 703 are connected to each other through a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Various 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, etc.; an output unit 707 such as various types of displays, speakers, and the like; a storage unit 708 such as a magnetic disk, an 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 through a computer network, such as the internet, and/or various telecommunication networks.
The computing unit 701 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of 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, etc. The computing unit 701 performs 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 on 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 circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On 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, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code 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 code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. 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. The 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 pointing device (e.g., a mouse or 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 may 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 input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background 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 background, 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 a client and a server. The client and server are typically 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 that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service ("Virtual Private Server" or simply "VPS") are overcome. The server may also be a server of a distributed system or a server that incorporates a blockchain.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel or sequentially or in a different order, provided that the desired results of the technical solutions of the present disclosure are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (12)

1. A file sharing method, comprising:
receiving an input instruction of a first user; wherein the input instruction includes a target retrieval keyword;
responding to the input instruction, and acquiring a target file corresponding to the target retrieval key; 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;
responding to the sending instruction, and sending the target file to a second user;
before receiving the input instruction of the first user, the method further comprises the following steps:
when first comment information sent by a first user is detected, a first multimedia file corresponding to the first comment information is obtained; wherein the first multimedia file comprises at least one of a video frame and a video containing the video frame when the first comment information is sent;
generating a first search 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 mode.
2. The file sharing method according to claim 1, 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.
3. The file sharing method of claim 1, wherein prior to receiving the input instruction of the first user, further comprising:
acquiring a user ID of the first user;
and acquiring a second search keyword, second comment information and second multimedia file information associated with the user ID from the first search keyword, the first comment information and the first multimedia file information.
4. The method of claim 3, wherein the obtaining the target file corresponding to the target search keyword includes:
determining target comment information and target multimedia file information associated with the target search keyword in 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.
5. The file sharing method of claim 1, wherein the target file is one or more;
the responding to the sending instruction, the target file is sent to a second user, and the method comprises the following steps:
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.
6. A file sharing apparatus, comprising:
the first receiving module is configured to receive an input instruction of a first user; wherein the input instruction includes a target retrieval keyword;
the first acquisition module is configured to respond to the input instruction and acquire 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;
a display module configured to display the target file;
the second receiving module is configured to receive a sending instruction of the first user for the target file;
a transmitting module configured to transmit the target file to a second user in response to the transmission instruction;
wherein, the file sharing device further includes:
the second acquisition module is configured to acquire a first multimedia file corresponding to first comment information when detecting that the first user sends the first comment information; wherein the first multimedia file comprises at least one of a video frame and a video containing the video frame when the first comment information is sent;
The generation module is 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 includes the target search keyword, and the first multimedia file information includes at least one of a URL of the video frame and an ID of the video;
and the association storage module is 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 an associated manner.
7. The file sharing device of claim 6, wherein the first search key comprises at least one of a video identifier corresponding to the first multimedia file and a comment identifier of the first comment information.
8. The file sharing device of claim 6, wherein the file sharing device further comprises:
a third acquisition module configured to acquire a user ID of the first user;
and a fourth acquisition module configured to acquire a second search keyword, second comment information and second multimedia file information associated with the user ID from the first search keyword, the first comment information and the first multimedia file information.
9. The file sharing device of claim 8, wherein the first acquisition module comprises:
a first determination unit configured to determine target comment information and target multimedia file information associated with the target search keyword among the second comment information and the second multimedia file information;
a first acquisition unit configured to acquire the target comment information;
and a second acquisition unit configured to acquire the target multimedia file according to the target multimedia file information.
10. The file sharing device of claim 6, wherein the target file is one or more;
the sending module comprises:
a second determining unit configured to determine a target shared file from the target files in response to the transmission instruction;
and a transmitting unit configured to transmit the target shared file to the second user.
11. 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 5.
12. A storage medium, which when executed by a processor of an electronic device, enables the electronic device to perform the file sharing method of any one of claims 1 to 5.
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 CN114500438A (en) 2022-05-13
CN114500438B true 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 (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112241397A (en) * 2019-07-18 2021-01-19 腾讯科技(深圳)有限公司 Multimedia file sharing method and device, electronic equipment and readable storage medium

Family Cites Families (6)

* 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
US10474717B2 (en) * 2016-07-21 2019-11-12 Twitter, Inc. Live video streaming services with machine-learning based highlight replays
CN109951743A (en) * 2019-03-29 2019-06-28 上海哔哩哔哩科技有限公司 Barrage information processing method, system and computer equipment
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

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112241397A (en) * 2019-07-18 2021-01-19 腾讯科技(深圳)有限公司 Multimedia file sharing method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN114500438A (en) 2022-05-13

Similar Documents

Publication Publication Date Title
US11165739B1 (en) System and method for managing and displaying data messages
CN107622135B (en) Method and apparatus for displaying information
EP2948889B1 (en) Architecture for sharing browsing session histories
US20190166216A1 (en) Information pushing method and device
US7831673B1 (en) Methods and systems for processing offline chat messages
CN108090079B (en) Chat record processing method and device of instant chat tool
CN109413056B (en) Method and apparatus for processing information
CN112965799B (en) Task state prompting method and device, electronic equipment and medium
CN112838980B (en) Message processing method, system, device, electronic equipment and storage medium
US11005797B2 (en) Method, system and server for removing alerts
CN116545905A (en) Service health detection method and device, electronic equipment and storage medium
CN112395297A (en) Method, device and server for synchronizing work information
CN114500438B (en) File sharing method and device, electronic equipment and storage medium
CN112966201B (en) Object processing method, device, electronic equipment and storage medium
CN113656731A (en) Advertisement page processing method and device, electronic equipment and storage medium
CN115168732A (en) Resource recommendation method, device, equipment and storage medium
CN112822089B (en) Method and device for adding friends
CN112752323A (en) Method and device for changing hotspot access state
CN107181772B (en) Method and device for updating client state on line in real time
CN111695059A (en) Information view list processing method and device and display equipment
CN114449031B (en) Information acquisition method, device, equipment and storage medium
CN113032040B (en) Method, apparatus, device, medium, and article for processing tasks
CN113691442B (en) Friend recommendation method, device, equipment, storage medium and program product
CN114237752B (en) Push page display method and device, electronic equipment and storage medium
CN117573267A (en) Application program data display method, system, electronic equipment and storage medium

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