Disclosure of Invention
The embodiment of the invention provides a resource transmission method and device, which are used for solving the problem that in the prior art, a user browses multimedia files and simultaneously transmits resources too fussy.
The resource transmission method provided by the embodiment of the invention comprises the following steps:
a first IM client receives a multimedia file sent by a second IM client;
playing the multimedia file;
displaying a resource transmission control in a playing interface for playing the multimedia file;
and when the operation of the user on the resource transmission control is monitored, sending the resource corresponding to the first IM client to the second IM client.
An embodiment of the present invention further provides a resource transmission method, including:
the server receives a multimedia file sent by a second IM client, wherein the multimedia file carries a control display instruction;
generating a resource transmission control according to the control display instruction, and embedding the resource transmission control into the multimedia file;
and forwarding the multimedia file embedded with the resource transmission control to a first IM client corresponding to the second IM client, so that the first IM client displays the resource transmission control in a playing interface for playing the multimedia file, and when the first IM client monitors the operation of a user on the resource transmission control, transmitting the resource corresponding to the first IM client to the second IM client.
An embodiment of the present invention further provides a resource transmission method, including:
the second IM client side determines a multimedia file to be sent;
monitoring the calling operation of a user on a resource transmission function;
when the calling operation is monitored, generating a control display instruction, carrying the control display instruction in a multimedia file to be sent, and sending the control display instruction to a first IM client, so that the first IM client displays a resource transmission control in a playing interface for playing the multimedia file, and when the first IM client monitors the operation of a user on the resource transmission control, sending a resource corresponding to the first IM client to a second IM client;
and receiving the resource sent by the first IM client.
An embodiment of the present invention further provides a resource transmission method, including:
the second IM client side determines a multimedia file to be sent;
monitoring the calling operation of a user on a resource transmission function;
when the calling operation is monitored, generating a resource transmission control, embedding the resource transmission control into a multimedia file to be sent, and sending the resource transmission control to a first IM client, so that the first IM client displays the resource transmission control in a playing interface for playing the multimedia file, and when the first IM client monitors the operation of a user on the resource transmission control, sending a resource corresponding to the first IM client to a second IM client;
and receiving the resource sent by the first IM client.
An embodiment of the present invention further provides a resource transmission method, including:
a first IM client acquires a multimedia file which is issued on a communication platform by a second IM client, wherein the communication platform comprises a plurality of first IM clients which have communication relation with the second IM client;
playing the multimedia file;
displaying a resource transmission control in a playing interface for playing the multimedia file;
and when the operation of the user on the resource transmission control is monitored, sending the resource corresponding to the first IM client to the second IM client.
An embodiment of the present invention further provides a resource transmission method, including:
the second IM client side determines a multimedia file to be sent;
monitoring the calling operation of a user on a resource transmission function;
when the calling operation is monitored, a control display instruction is generated, the control display instruction is carried in a multimedia file to be sent and is issued on a communication platform, so that a first IM client side can acquire the multimedia file issued on the communication platform by a second IM client side, a resource transmission control is displayed in a playing interface for playing the multimedia file, and when the first IM client side monitors the operation of a user on the resource transmission control, a resource corresponding to the first IM client side is sent to the second IM client side, wherein the communication platform comprises a plurality of first IM client sides which have communication relations with the second IM client side;
and receiving the resource sent by the first IM client.
The resource transmission device provided by the embodiment of the invention comprises:
the receiving module is used for receiving the multimedia file sent by the second IM client;
the playing module is used for playing the multimedia file;
the control display module is used for displaying the resource transmission control in a playing interface for playing the multimedia file;
and the resource transmission module is used for sending the resource corresponding to the first IM client to the second IM client when the operation of the user on the resource transmission control is monitored.
An embodiment of the present invention further provides a resource transmission apparatus, including:
the receiving module is used for receiving a multimedia file sent by a second IM client, wherein the multimedia file carries a control display instruction;
the resource control module is used for generating a resource transmission control according to the control display instruction and embedding the resource transmission control into the multimedia file;
and the sending module is used for forwarding the multimedia file embedded with the resource transmission control to a first IM client corresponding to the second IM client, so that the first IM client displays the resource transmission control in a playing interface for playing the multimedia file, and when the first IM client monitors the operation of a user on the resource transmission control, the sending module sends the resource corresponding to the first IM client to the second IM client.
An embodiment of the present invention further provides a resource transmission apparatus, including:
the determining module is used for determining a multimedia file to be sent;
the monitoring module is used for monitoring the calling operation of the user on the resource transmission function;
a control instruction module, configured to generate a control display instruction after the call operation is monitored, carry the control display instruction in a multimedia file to be sent, and send the control display instruction to a first IM client, so that the first IM client displays a resource transmission control in a playing interface where the multimedia file is played, and when the first IM client monitors an operation of a user on the resource transmission control, send a resource corresponding to the first IM client to a second IM client;
and the receiving module is used for receiving the resource sent by the first IM client.
An embodiment of the present invention further provides a resource transmission apparatus, including:
the determining module is used for determining a multimedia file to be sent;
the monitoring module is used for monitoring the calling operation of the user on the resource transmission function;
the control generation module is used for generating a resource transmission control, embedding the resource transmission control into a multimedia file to be sent, and sending the resource transmission control to a first IM client so that the first IM client displays the resource transmission control in a playing interface for playing the multimedia file, and sending a resource corresponding to the first IM client to a second IM client when the first IM client monitors that a user operates the resource transmission control;
and the receiving module is used for receiving the resource sent by the first IM client.
An embodiment of the present invention further provides a resource transmission apparatus, including:
the communication platform comprises a plurality of first IM clients which have communication relation with the second IM client;
the playing module is used for playing the multimedia file;
the control display module is used for displaying the resource transmission control in a playing interface for playing the multimedia file;
and the resource transmission module is used for sending the resource corresponding to the first IM client to the second IM client when the operation of the user on the resource transmission control is monitored.
An embodiment of the present invention further provides a resource transmission apparatus, including:
the determining module is used for determining a multimedia file to be sent;
the monitoring module is used for monitoring the calling operation of the user on the resource transmission function;
the issuing module is used for generating a control display instruction after monitoring the calling operation, carrying the control display instruction in a multimedia file to be sent, issuing the control display instruction on a communication platform so that a first IM client side can acquire the multimedia file issued on the communication platform by a second IM client side, displaying a resource transmission control in a playing interface for playing the multimedia file, and sending a resource corresponding to the first IM client side to the second IM client side when the first IM client side monitors the operation of a user on the resource transmission control, wherein the communication platform comprises a plurality of first IM client sides which have communication relations with the second IM client side;
and the receiving module is used for receiving the resource sent by the first IM client.
The embodiment of the invention provides a resource transmission method and a device, through the method, when a first IM client receives a multimedia file sent by a second IM client and plays the multimedia file, the first IM client displays a resource transmission control in a playing interface for playing the multimedia file, so that if a user using the first IM client wants to initiate a resource transmission operation, interface switching is not needed, and the user only needs to operate the resource transmission control displayed in the current playing interface, so that the resource can be transmitted to the second IM client. Obviously, the method effectively simplifies the operation process and is convenient for the user to operate.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the specific embodiments of the present invention and the accompanying drawings. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As described above, for both parties performing instant messaging, if one of the parties wants to send a corresponding resource to the other party when browsing a file sent by the other party, the sender of the resource needs to perform continuous interface switching on the terminal used by the sender to find the resource transmission function on the terminal, so as to perform resource transmission, and obviously, such a manner is too cumbersome.
Therefore, the resource transmission method provided by the application can effectively improve the convenience of resource transmission under the above conditions. It should be noted that the resources described in the embodiments of the present application are information that can be transmitted, such as multimedia files, address book information, and money amount information. The resources may be stored in the terminal or in an account of the user using the terminal. And are not to be construed as limiting the application herein.
As to the method in the present application, specifically, fig. 1 is a resource transmission process provided in the embodiment of the present invention, and the process specifically includes the following steps:
s101: and the first IM client receives the multimedia file sent by the second IM client.
In this embodiment of the present application, the first IM client and the second IM client are IM applications in terminals used by different users, respectively (for convenience of description, a user using the first IM client is hereinafter referred to as a first user, and a terminal running the first IM application is hereinafter referred to as a first terminal, a user using the second IM client is hereinafter referred to as a second user, and a terminal running the second IM application is hereinafter referred to as a second terminal), and different users can perform instant messaging through the first IM client and the second IM client. The first IM client described herein receives a multimedia file sent by the second IM client, that is, a multimedia file sent by the first user to the second user, and it can be understood that the first IM client described in some parts in this application may refer to the first user, and the second IM client may refer to the second user.
The first terminal and the second terminal include, but are not limited to: mobile terminals such as mobile phones and tablet computers, or computer terminals. Of course, in addition to the above manner of performing instant messaging by the first IM client and the second IM client, as a manner in this embodiment of the application, a user may directly use the first terminal and the second terminal to implement instant messaging (for example, using functions of short messages, multimedia messages, and the like carried by a system in the terminal), and in this manner, instant messaging may be implemented between the first terminal and the second terminal through its own communication function, which does not limit the present application.
The multimedia files include, but are not limited to: video files, motion pictures (e.g., motion pictures in Live Photo format), etc. The multimedia file may be generated by the second user shooting with the second terminal, or may be a video file stored in the second terminal.
S102: and playing the multimedia file.
In practical applications, after the first IM client receives the multimedia file, a first user using the first IM client typically browses the multimedia file, and after the first user sends a corresponding browsing operation to the multimedia file, the first IM client plays the multimedia file.
S103: and displaying a resource transmission control in a playing interface for playing the multimedia file.
As described above, in the prior art, when a first IM client plays a received multimedia file, the multimedia file is played in a corresponding playing interface, and the playing interface usually temporarily covers an instant messaging interface, in such a case, if a first user using the first IM client wants to transmit a resource to a second user sending the multimedia file, the first user needs to switch the interface on the first IM client, find a corresponding resource transmission function, and then transmit the resource to the second IM client, which obviously is inconvenient for the user to operate.
In order to improve the convenience of the user in resource transmission, in the embodiment of the present application, after the first terminal plays the multimedia file, the resource transmission control is displayed in the playing interface of the first terminal. The resource transmission control is associated with a resource transmission component (program) in the first IM client, in other words, through the resource transmission control, a resource transmission function in the first IM client can be called, thereby realizing the transmission of the resource. According to the step S103, the resource transmission control displayed in the playing interface can effectively reduce or avoid interface switching when the user searches for the resource transmission function.
In practical application, the resource transmission control may be displayed in the play interface of the first terminal in a floating layer, a floating button, or the like, which does not limit the present application.
S104: and when the operation of the user on the resource transmission control is monitored, sending the resource corresponding to the first IM client to the second IM client.
If the first user operates the resource transmission control, it indicates that the first user executes the resource transmission operation, so that the first terminal sends the corresponding resource to the second terminal according to the operation of the first user, and the resource transmission is realized. It can be understood that, the sending of the resource corresponding to the first IM client to the second IM client described herein may refer to sending the resource of the first user corresponding to the first IM client to the second user corresponding to the second IM client, and specifically may also refer to transmission of resources between accounts between users, or transmission of other resources.
It should be noted that, if the resource is stored in the terminal (e.g., address book information, multimedia file, etc.), the first IM client may obtain the resource from the first terminal and send the resource to the second IM client; if the resource is stored in the account of the user (such as money amount information, money amount information and the like), the first IM client acquires the resource in the account of the first user and sends the resource to the account of the second user corresponding to the second IM client. And are not to be construed as limiting the application herein. The calling, transmission and the like of the resources in the account can be realized through an instant messaging system, or can be realized through a third-party system, for example, when funds such as money amount in the account are transmitted, the funds can be realized through a third-party payment system, and the like.
In this embodiment of the present application, the resource transmission control may specifically be a control corresponding to a functional component with a resource transmission function integrated in the client, for example, the resource transmission control may be a button, and a user may call the component with the resource transmission function to perform corresponding resource transmission by clicking the button, for example, in a scenario of issuing a red packet, the resource transmission control may specifically point to a red packet issuing functional component (which may be a program component or other functional module component) in the client, and the user may call a functional interface for issuing a red packet by selecting or clicking the control, so that the user may issue the red packet. Alternatively, the control may also point to a corresponding functional component in another client or server, and the embodiment of the present application is not particularly limited.
In the embodiment of the present application, the resource transmission control is operated by the user, and when the resource transmission is performed, the resource transmission may be implemented by calling a third-party system, for example, the resource transmission of the red envelope (fund) in the red envelope issuing scene may be implemented by calling a third-party payment system having a red envelope issuing function, and a specific implementation process of the embodiment of the present application is not particularly limited.
Through the steps, after the first terminal receives and plays the multimedia file sent by the second terminal, the first terminal displays the resource transmission control in the playing interface for playing the multimedia file, so that if a user using the first IM client wants to initiate a resource transmission operation, the user does not need to switch interfaces, and only needs to operate the resource transmission control displayed in the current playing interface, so that the resource can be transmitted to the second IM client. Obviously, the method effectively simplifies the operation process and is convenient for the user to operate.
In practical applications, the first IM client does not display the resource transmission control for all video files received by the first IM client during playing, and only displays the resource transmission control in a playing interface of a specific video file (for example, a video file carrying a control display instruction, or a video file embedded with the resource transmission control, or a video file sent by a specific interface, etc.) during playing. It can be considered that whether a video file received by a first IM client is a particular video file will depend on the second IM client that sent the video file. Specifically, in the embodiment of the present application, in one scenario:
carrying a control display instruction in a multimedia file, and displaying a resource transmission control in a playing interface for playing the multimedia file at the moment, wherein the method specifically comprises the following steps: and displaying a resource transmission control in a playing interface for playing the multimedia file according to the control display instruction in the multimedia file.
In this scenario, the control display instruction may be generated by the second IM client. But may be implemented by a server in an instant messaging system, etc.
In another scenario:
the resource transmission control is embedded in the multimedia file, and at this time, the resource transmission control is displayed in a playing interface for playing the multimedia file, and the method specifically includes: and directly displaying the resource transmission control in a playing interface for playing the multimedia file.
In this scenario, the resource transfer control may be embedded into the multimedia file by the second IM client, or may be embedded into the multimedia file after the instruction of the second IM client is received by the corresponding server.
In other words, the first IM client may receive various video files from the second IM client, and when playing the video files, the resource transmission control is not all displayed, and only for the video file carrying the control display instruction or embedded with the resource transmission control, the resource transmission control is displayed in the playing interface.
For example: assuming that, in this example, the User1 (the first User) and the User2 (the second User) both perform instant messaging through instant messaging applications (i.e., the first IM client and the second IM client) on the terminals (i.e., the first terminal and the second terminal) used by the users, the resource transmitted by the first IM client to the second IM client is an electronic red-envelope style, that is, an interface which can be issued as a red envelope through a video between the first User and the second User.
Where User2 has taken a video using the second terminal and sent the video to the first IM client through a function provided by the second IM client called "red pack video". Accordingly, the first IM client will receive the video. Then, as shown in fig. 2a, the video sent by User2 is displayed in the instant messenger window of the first IM client on the first terminal used by User1 (a preview of the video is shown in fig. 2 a). User1 may click on the video preview to play the video.
Here, it is assumed that a video received by the first IM client carries a control display instruction, and when the first IM client plays the video, the first IM client displays a corresponding resource transmission control according to the control display instruction, specifically, a playing interface of the video is as shown in fig. 2b, and as can be seen from fig. 2b, a control (the control is a resource transmission control) with a word "send a red packet blessing" is displayed at the bottom of the playing interface.
In turn, User1 (the first User) may operate the resource transfer control to effect the transfer of the resource to the second IM client.
Certainly, in practical applications, after the first user operates the resource transmission control, the number of resources to be transmitted by the first user may be determined by himself, so in this embodiment of the present application, before sending the resource corresponding to the first IM client to the second IM client, the method further includes: and the first IM client calls a resource transmission function and displays a resource sending interface comprising a resource quantity input area based on the resource transmission function. Wherein the resource quantity input area is for a user to input a quantity of resources to be sent to the second IM client.
For example: along the above example, after the User1 clicks the "send red package blessing" control shown in fig. 2b, the red package function in the first IM client is called, and under the action of the red package function, a red package setting interface is displayed in the current interface, as shown in fig. 2 c. Wherein, the red-envelope setting interface in fig. 2c includes a credit input area (i.e., a resource quantity input area), so that the User1 can input the corresponding credit in the credit input area (in fig. 2c, the credit inputted by the User1 in the credit input area is 3.00 yuan). The red packet function may be a functional component integrated in the client, or may also be a functional component provided by the server, and when the functional component is provided by the server, the control may specifically correspond to an address of the functional component provided in the server, that is, the control may be an address.
It should be noted that the red packet setting interface shown in fig. 2c may be displayed in a manner of suspension, pop-up window, or the like in practical application, and specifically, the red packet setting interface is set according to the requirement of practical application, and the red packet setting interface is not limited in this application.
By the method, the user can freely set any number of resources for transmission. After the user inputs the corresponding number of resources, the first IM client may further send the corresponding number of resources to the second IM client. In other words, in this embodiment of the present application, sending the resource corresponding to the first IM client to the second IM client specifically includes: and acquiring a corresponding amount of resources from the resources corresponding to the first IM client according to the amount input by the user in the resource amount input area, and sending the acquired resources to the second IM client.
As mentioned above, the resource corresponding to the first IM client may be a resource stored in the first IM client, or a resource in an account of the first user using the first IM client, such as: in the above example, the resource for the first IM client is money in the account of User 1.
The above example is still used: in fig. 2c, User1 can click the button in the red envelope setting interface that is literally "red envelope" to send money with a credit of 3 yuan to User2 in the form of an electronic red envelope.
Of course, in this example, for User1, the electronic red packet it sent to User2 may be displayed as a history in the instant messaging window with User2, i.e., as shown in fig. 2d, the electronic red packet record sent by User1 to User2 is displayed in the instant messaging window of User1 itself.
For User2, in its instant messaging window, an electronic red pack sent by User1 is displayed and User2 can click on the red pack to receive money from it.
For the above example, in one practical application scenario: the User2 may send the spring festival yearly video to the first client of the User1 through the second IM client, and when the User1 views the spring festival yearly video, the User2 may send a yearly red packet through a yearly red packet control displayed in the play interface, and the specific process is consistent with the above-mentioned contents, and will not be described herein in any greater detail. Of course, this scenario does not constitute a limitation of the present application.
The method is not only suitable for the scene of independently carrying out instant messaging among users, but also suitable for the scene of group chat. That is, after receiving the video file sent by the second IM client, the multiple first IM clients in the same group may all send the resource to the second IM client.
Specifically, sending the resource corresponding to the first IM client to the second IM client specifically includes: and determining the publisher information of the multimedia file, and sending the resource corresponding to the first IM client to the second IM client corresponding to the publisher information according to the determined publisher information.
In the embodiment of the present application, the publisher information may be account information, and on the basis of the above example, the publisher information may specifically be account information of a second user using a second IM client. Of course, in some scenarios in practical applications, the issuer information may also be information such as a terminal serial number, a user ID, an IP address, a MAC address, and the like, and this does not constitute a limitation of the present application.
In other words, through the publisher information, each first IM client in the group can be guaranteed to accurately determine the second IM client, and send the resource to the second IM client.
To sum up, the resource transmission method in the embodiment of the present application enables the first user to directly operate the resource transmission control in the playing interface on the first IM client, thereby completing the transmission of the resource to the second IM client, and effectively improving the convenience of the first user in operation.
Based on the content of the first IM client side, in practical applications, the first IM client and the second IM client may perform transmission of multimedia files through the server, and based on this, for the server, the embodiment of the present application also provides a resource transmission method, as shown in fig. 3, which specifically includes:
s301: and the server receives a multimedia file sent by the second IM client, wherein the multimedia file carries a control display instruction.
S302: and generating a resource transmission control according to the control display instruction, and embedding the resource transmission control into the multimedia file.
S303: and forwarding the multimedia file embedded with the resource transmission control to a first IM client corresponding to the second IM client, so that the first IM client displays the resource transmission control in a playing interface for playing the multimedia file, and when the first IM client monitors the operation of a user on the resource transmission control, transmitting the resource corresponding to the first IM client to the second IM client.
Similarly, for the second IM client side, an embodiment of the present application provides a resource transmission method, as shown in fig. 4, which specifically includes:
s401: and the second IM client determines the multimedia file to be sent.
S402: and monitoring the calling operation of the user on the resource transmission function.
S403: and when the calling operation is monitored, generating a control display instruction, carrying the control display instruction in a multimedia file to be sent, and sending the control display instruction to a first IM client, so that the first IM client displays a resource transmission control in a playing interface for playing the multimedia file, and when the first IM client monitors the operation of a user on the resource transmission control, sending a resource corresponding to the first IM client to a second IM client.
S405: and receiving the resource sent by the first IM client.
For the second IM client side, an embodiment of the present application further provides a resource transmission method, as shown in fig. 5, which specifically includes:
s501: and the second IM client determines the multimedia file to be sent.
S502: and monitoring the calling operation of the user on the resource transmission function.
S503: and when the calling operation is monitored, generating a resource transmission control, embedding the resource transmission control into a multimedia file to be sent, and sending the resource transmission control to a first IM client, so that the first IM client displays the resource transmission control in a playing interface for playing the multimedia file, and when the first IM client monitors the operation of a user on the resource transmission control, sending a resource corresponding to the first IM client to a second IM client.
S504: and receiving the resource sent by the first IM client.
In addition, besides the above application in the instant messaging scenario, the method provided in the embodiment of the present application is also applicable to a scenario where resources are obtained on a social platform, such as a friend circle, a life circle, and the like, and specifically, as shown in fig. 6, the method for transmitting resources provided in the embodiment of the present application includes:
s601: the method comprises the steps that a first IM client side obtains a multimedia file which is issued on a communication platform by a second IM client side, wherein the communication platform comprises a plurality of first IM client sides which have communication relations with the second IM client side.
The communication platform can be a friend circle and/or a life circle and the like, and the communication platform comprises first users having communication relations (such as friend relations) with second users. And are not to be construed as limiting the application herein.
S602: and playing the multimedia file.
S603: and displaying a resource transmission control in a playing interface for playing the multimedia file.
S604: and when the operation of the user on the resource transmission control is monitored, sending the resource corresponding to the first IM client to the second IM client.
Steps S602 to S604 are similar to the aforementioned method, and are not described in detail herein.
Based on the method shown in fig. 6, for the second IM client, a resource transmission method provided in this embodiment of the application is shown in fig. 7, and includes:
s701: and the second IM client determines the multimedia file to be sent.
S702: and monitoring the calling operation of the user on the resource transmission function.
S703: and when the calling operation is monitored, generating a control display instruction, carrying the control display instruction in a multimedia file to be sent, and issuing the control display instruction on a communication platform, wherein the communication platform comprises a plurality of first IM client sides which have communication relations with the second IM client sides.
S704: and receiving the resource sent by the first IM client.
In this embodiment, the communication platform may specifically be a platform having an instant messaging function or a social function, and the platform may share user information, for example, the multimedia file is shared on the platform, and after seeing the shared multimedia file, other users may click or select a resource transmission control on the multimedia file when playing to transmit resources, for example, the foregoing red envelope is issued.
Based on the same idea, the embodiment of the present invention further provides a resource transmission apparatus.
As shown in fig. 8, the resource transfer apparatus is disposed on the first IM client side, and includes: a receiving module 801, a playing module 802, a control display module 803, and a resource transmission module 804, wherein,
a receiving module 801, configured to receive a multimedia file sent by a second IM client.
A playing module 802, configured to play the multimedia file.
And a control display module 803, configured to display the resource transmission control in the playing interface for playing the multimedia file.
And the resource transmission module 804 is configured to send the resource corresponding to the first IM client to the second IM client when the operation of the resource transmission control by the user is monitored.
In this embodiment of the application, when the multimedia file carries a control display instruction, the control display module 803 is specifically configured to display a resource transmission control in a playing interface for playing the multimedia file according to the control display instruction in the multimedia file.
When the resource transmission control is embedded in the multimedia file, the control display module 803 is specifically configured to directly display the resource transmission control in a playing interface for playing the multimedia file.
Considering that the user can set the amount of the resource to be transmitted by himself when the resource is transmitted, the apparatus further includes: an interface display module 805, configured to display a resource sending interface including a resource quantity input area. Wherein the resource quantity input area is for a user to input a quantity of resources to be sent to the second IM client.
Further, the resource transmission module 804 is configured to obtain, according to the number input by the user in the resource number input area, a corresponding number of resources from the resources corresponding to the first IM client, and send the obtained resources to the second IM client.
In addition, the resource transmission module 804 is configured to determine publisher information of the multimedia file, and send a resource corresponding to the first IM client to the second IM client corresponding to the publisher information according to the determined publisher information.
In the embodiment of the present application, the multimedia file includes at least one of a video file and a moving picture.
On the server side, an embodiment of the present invention further provides a resource transmission apparatus, as shown in fig. 9, including:
a receiving module 901, configured to receive a multimedia file sent by a second IM client, where the multimedia file carries a control display instruction;
a resource control module 902, configured to generate a resource transmission control according to the control display instruction, and embed the resource transmission control into the multimedia file;
the sending module 903 is configured to forward the multimedia file embedded with the resource transmission control to a first IM client corresponding to the second IM client, so that the first IM client displays the resource transmission control in a playing interface for playing the multimedia file, and sends the resource corresponding to the first IM client to the second IM client when the first IM client monitors that the user operates the resource transmission control.
On the second IM client side, an embodiment of the present invention further provides a resource transmission apparatus, as shown in fig. 10, including:
a determining module 1001, configured to determine a multimedia file to be sent.
The monitoring module 1002 is configured to monitor an invoking operation of a resource transmission function by a user.
A control instruction module 1003, configured to generate a control display instruction after the call operation is monitored, carry the control display instruction in a multimedia file to be sent, and send the control display instruction to a first IM client, so that the first IM client displays a resource transmission control in a playing interface for playing the multimedia file, and when the first IM client monitors an operation of a user on the resource transmission control, send a resource corresponding to the first IM client to a second IM client.
A receiving module 1004, configured to receive the resource sent by the first IM client.
On the second IM client side, an embodiment of the present invention further provides a resource transmission apparatus, as shown in fig. 11, including:
a determining module 1101, configured to determine a multimedia file to be sent.
And a monitoring module 1102, configured to monitor a call operation of the resource transmission function by the user.
A control generating module 1103, configured to generate a resource transfer control, embed the resource transfer control into a multimedia file to be sent, and send the resource transfer control to a first IM client, so that the first IM client displays the resource transfer control in a playing interface for playing the multimedia file, and when the first IM client monitors that a user operates the resource transfer control, sends a resource corresponding to the first IM client to a second IM client.
A receiving module 1104, configured to receive the resource sent by the first IM client.
An embodiment of the present invention further provides a resource transmission apparatus, as shown in fig. 12, including:
an obtaining module 1201, configured to obtain a multimedia file that is issued by a second IM client on a communication platform, where the communication platform includes a plurality of first IM clients that have a communication relationship with the second IM client.
A playing module 1202, configured to play the multimedia file.
A control display module 1203, configured to display a resource transmission control in a playing interface for playing the multimedia file.
And a resource transmission module 1204, configured to send, when it is monitored that the user operates the resource transmission control, the resource corresponding to the first IM client to the second IM client.
An embodiment of the present invention further provides a resource transmission apparatus, as shown in fig. 13, including:
a determining module 1301, configured to determine a multimedia file to be sent.
A monitoring module 1302, configured to monitor a user's invocation operation on a resource transmission function.
The publishing module 1303 is configured to generate a control display instruction after monitoring the calling operation, carry the control display instruction in a multimedia file to be sent, publish the control display instruction on the communication platform, so that the first IM client obtains the multimedia file published on the communication platform by the second IM client, display a resource transmission control in a playing interface for playing the multimedia file, and send a resource corresponding to the first IM client to the second IM client when the first IM client monitors the operation of the resource transmission control by the user, where the communication platform includes a plurality of first IM clients having a communication relationship with the second IM client.
A receiving module 1304, configured to receive the resource sent by the first IM client.
It should be noted that, for the above-mentioned content in the present application, in practical application, the content may be implemented by a physical device, where the physical device includes:
and the memory is used for storing the resource transmission program.
The processor is used for calling the resource transmission program stored in the memory after receiving the multimedia file, and executing the following steps based on the resource transmission program:
and playing the multimedia file, displaying a resource transmission control in a playing interface for playing the multimedia file, and sending the resource corresponding to the first IM client to the second IM client when the operation of the user on the resource transmission control is monitored.
And the transmission interface is used for receiving the multimedia file and sending the resource to the second IM client.
Accordingly, the entity devices described above may be provided on the server side and the second IM client side, and are not described in detail here.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above description is only an example of the present invention, and is not intended to limit the present invention. Various modifications and alterations to this invention will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.