Method and apparatus for sending live photo in conversation, method and apparatus for receiving live photo in conversation, and device
By generating and embedding dynamic identifiers for live images in instant messaging applications, the problem of difficult live images being sent dynamically is solved, and the dynamic sending and receiving of live images is realized, which improves the interactive experience in the conversation.
Patent Information
- Application Number
- PCT/CN2024/127308
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-12-22
- Filing Date
- 2024-10-25
- Publication Date
- 2025-06-26
AI Technical Summary
When existing instant messaging applications send live pictures in a session, it is difficult to maintain dynamic form, resulting in the receiving user that can only receive static pictures and cannot display them in the form of animations.
Dynamic sending of live pictures is achieved by generating dynamic identifiers during transmission and embedding them in target information. By identifying the dynamic identifier, the receiving user can display the received live pictures in a live form.
It realizes dynamic sending and receiving of live pictures, allowing the receiving user to view live pictures in the form of animations, improving the interactive experience in the conversation.
Smart Images

Figure CN2024127308_26062025_PF_FP_ABST
Abstract
Description
Method for sending, method for receiving, device and equipment for live pictures in conversation
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to the Chinese patent application filed on December 22, 2023, with application number 202311785224.3 and invention name “Method for sending, method for receiving, device and apparatus for live pictures in conversation”. The entire contents of that application are incorporated by reference into this application. Technical Field
[0003] The present disclosure relates to the field of computer technology, and in particular to a method for sending, a method for receiving, an apparatus, and a device for live images in a conversation. Background Art
[0004] With the advancement of computer technology, applications supporting instant messaging have rapidly expanded. Currently, when a target user sends a live image (e.g., a Live Photo captured by a mobile device) in an instant messaging session via an application, it is sent as a static image, making it difficult to display it in the dynamic preview format. Consequently, the target receiving user only receives a standard static image, and cannot display it as an animated image.
[0005] Summary of the Invention
[0006] In view of this, embodiments of the present disclosure provide a method for sending, a method for receiving, an apparatus, and a device for live images in a conversation.
[0007] In a first aspect, an embodiment of the present disclosure provides a method for sending live pictures in a session, comprising: obtaining a target live picture to be sent in a session interface of a target session; generating a dynamic identifier corresponding to the target live picture in response to a live sending operation for the target live picture; generating target information based on the target live picture and the dynamic identifier, and sending the target information to the target session, so that the target receiving user side in the target session displays the target live picture corresponding to the target information in a live form based on the dynamic identifier carried by the target information.
[0008] In a second aspect, an embodiment of the present disclosure provides a method for receiving a live picture in a session, including: receiving target information from a session interface of a target session, where the target information is generated by a target sending user side in the target session based on a target live picture; parsing the target information to determine whether the target information carries a dynamic identifier; when it is determined that the target information carries a dynamic identifier, displaying the target live picture corresponding to the target information in a live form.
[0009] In a third aspect, an embodiment of the present disclosure provides a device for sending live pictures in a session, including: an acquisition module for acquiring a target live picture to be sent in a session interface of a target session; an identification generation module for generating a dynamic identification corresponding to the target live picture in response to a live sending operation for the target live picture; an information sending module for generating target information based on the target live picture and the dynamic identification, and sending the picture to the target session, so that the target receiving user side in the target session displays the target live picture corresponding to the target information in a live form based on the dynamic identification carried by the target information.
[0010] In a fourth aspect, an embodiment of the present disclosure provides a device for receiving live pictures in a session, including: an information receiving module for receiving target information, where the target information is generated by the target sending user side in the target session based on the target live picture; an information parsing module for parsing the target information and determining whether the target information carries a dynamic identifier; and a live display module for displaying the target live picture corresponding to the target information in a live form when it is determined that the target information carries a dynamic identifier.
[0011] In a fifth aspect, an embodiment of the present disclosure provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, computer instructions stored in the memory, and the processor executing the computer instructions to execute the method for sending live pictures in a conversation according to the first aspect or any corresponding embodiment thereof, or to execute the method for receiving live pictures in a conversation according to the second aspect or any corresponding embodiment thereof.
[0012] In a sixth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method for sending live pictures in a conversation of the above-mentioned first aspect or any corresponding embodiment thereof, or to execute the method for receiving live pictures in a conversation of the above-mentioned second aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the specific embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0014] FIG1 is a flow chart of a method for sending a live picture in a conversation according to some embodiments of the present disclosure;
[0015] FIG2 is a flowchart of a method for sending a live picture in another session according to some embodiments of the present disclosure;
[0016] FIG3 is a schematic diagram of a live capture indicator of a capture interface in some embodiments of the present disclosure;
[0017] FIG4 is a schematic diagram of live start in some embodiments of the present disclosure;
[0018] FIG5 is a schematic diagram of an editing interface according to some embodiments of the present disclosure;
[0019] FIG6 is a schematic diagram of an image library display interface according to some embodiments of the present disclosure;
[0020] FIG7 is a flowchart of a method for receiving a live picture in a conversation according to some embodiments of the present disclosure;
[0021] FIG8 is a flowchart of a method for receiving a live picture in another session according to some embodiments of the present disclosure;
[0022] FIG9 is a schematic diagram of a conversation interface according to some embodiments of the present disclosure;
[0023] FIG10 is a structural block diagram of a device for sending a live picture in a conversation according to an embodiment of the present disclosure;
[0024] FIG11 is a structural block diagram of a device for receiving live pictures in a conversation according to an embodiment of the present disclosure;
[0025] FIG12 is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0026] To make the purpose, technical solutions, and advantages of the embodiments of the present disclosure more clear, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative efforts shall fall within the scope of protection of the present disclosure.
[0027] In related technologies, when a sending user sends a live image (e.g., a Live Photo captured by a mobile device) to a receiving user via a private message within an application, it is usually sent as a static image, making it difficult to send it in the dynamic form used during preview. This poses a problem of difficulty in sending live images in a dynamic form. Consequently, the receiving user can only receive a standard static image, and cannot display it in the form of an animated image.
[0028] Based on this, the method for sending live pictures in a conversation provided by the embodiment of the present disclosure, when detecting that a user is sending a target live picture, generates a corresponding dynamic identifier for the target live picture, adds the dynamic identifier to the information for sending the target live picture, generates target information, and enables the target sending user side to send the target live picture in a live sending format. Thus, the target live picture is characterized as a dynamic live picture by the dynamic identifier, thereby realizing the dynamic sending of the target live picture. The method for receiving live pictures in a conversation provided by the embodiment of the present disclosure, by identifying the dynamic identifier carried in the target information, determines whether the information content carried by the target information is the target live picture. When it is determined that the information content carried by the target information is the target live picture, the target receiving user side displays the target live picture in a live format, thereby realizing the dynamic reception and dynamic viewing of the target live picture.
[0029] According to an embodiment of the present disclosure, an embodiment of a method for sending live pictures in a conversation is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0030] In this embodiment, a method for sending a live picture in a conversation is provided, which can be used by a target sending user side. FIG1 is a flow chart of the method for sending a live picture in a conversation according to an embodiment of the present disclosure. As shown in FIG1 , the process includes the following steps:
[0031] Step S101: obtaining a target live picture to be sent in a session interface of a target session.
[0032] The target live picture is a dynamic picture sent by the target sending user to the target receiving user. Specifically, the target live picture consists of dynamic content of a certain duration (for example, a few seconds) and is presented in the form of video and static images. The conversation interface of the target session is the conversation interface used by the target sending user and the target receiving user to communicate.
[0033] Specifically, the target sending user side is equipped with a camera with a dynamic shooting function. The user can use the camera to shoot any object in the real scene. Correspondingly, the target sending user side can respond to the user's shooting operation and call the dynamic shooting function to generate a target live picture of the arbitrary object.
[0034] Specifically, the target sending user side has corresponding image storage space, such as an image library. The user can select the live image of interest from the image library. Accordingly, the target sending user side can respond to the user's selection operation and use the selected live image as the target live image to be sent to the target receiving user side.
[0035] Of course, the target live picture can also be a live picture received by the target sending user side from other devices. The method for obtaining the target live picture is not limited here, and those skilled in the art can determine it according to actual needs.
[0036] Step S102 : In response to a live sending operation on a target live picture, a dynamic identifier corresponding to the target live picture is generated.
[0037] The target live picture has a live flag. When the live flag is on, the target live picture can be sent in a live form; when the live flag is off, the target live picture can be sent in a static form.
[0038] The live send operation refers to the operation of sending the target live image in a live format. The dynamic identifier is a dynamic flag generated for the target live image, which indicates that the resource currently being sent is a live image. Specifically, when a user is detected to be sending the target live image in a live format, the target sending user can respond to the user's live send operation and generate a corresponding dynamic identifier during the process of sending the target live image.
[0039] In step S103, target information is generated based on the target live picture and the dynamic identifier, and the target information is sent to the target session, so that the target receiving user side in the target session displays the target live picture corresponding to the target information in a live form based on the dynamic identifier carried by the target information.
[0040] Target information is information generated based on the communication protocol between the target sending user and the target receiving user. Specifically, the target sending user uses the target live picture as the image information to be sent and encodes the target live picture to generate picture encoding information. The information format and information transmission rules are determined based on the communication protocol between the target sending user and the target receiving user. The picture encoding information is packaged according to the information format and information transmission rules to generate picture transmission information for the target live picture. A dynamic identifier is added to the picture transmission information to generate the target information.
[0041] The target sending user side can send the generated target information to the target receiving user side via a network connection (such as Wi-Fi or mobile network). Correspondingly, the target receiving user side can receive the target information sent by the target sending user side, parse and process the target information to identify whether the target information carries a dynamic identifier. If the target information is identified as carrying a dynamic identifier, the target live image corresponding to the target information is received and displayed in a live format.
[0042] In the method for sending live images in a conversation provided by this embodiment, upon detecting that a user is sending a target live image, the target sending user generates a corresponding dynamic identifier for the target live image. The dynamic identifier is then added to the information for sending the target live image, generating target information. This allows the target sending user to send the target live image in a live format. Thus, the dynamic identifier is used to indicate that the target live image is dynamic, enabling dynamic sending of the target live image.
[0043] In this embodiment, a method for sending a live picture in a conversation is provided, which can be used by a target sending user side. FIG2 is a flow chart of the method for sending a live picture in a conversation according to an embodiment of the present disclosure. As shown in FIG2 , the process includes the following steps:
[0044] Step S201: Obtain a target live picture to be sent in a session interface of a target session.
[0045] Specifically, the above step S201 may include:
[0046] Step S2011: In response to the start operation of the shooting component in the conversation interface, a shooting interface is displayed, where the shooting interface includes a live shooting mark and a target object to be shot.
[0047] The shooting component is a functional component deployed in the session interface of the target session for starting the camera; the live shooting identifier is used to indicate whether live shooting of the target object is adopted; the target object represents the object in the actual scene to be shot by the camera. The target object can be an object, a person, or an environment. There is no specific limitation on the target object to be shot here.
[0048] When a user triggers the capture component to activate the capture function, the capture component in the conversation interface can respond to the user's activation operation, invoke the capture component's capture function, and display a capture interface for capturing the target object. The capture interface displays the target object to be captured, and a function bar is provided in the capture interface, in which a live capture indicator is displayed. As shown in Figure 3, the capture interface displays a doll to be captured, and a live capture indicator is provided in the sidebar of the capture interface displaying the doll.
[0049] Step S2012 , in response to the live shooting operation on the target object, obtaining pre-recorded videos within a preset time period before the live shooting operation is triggered, and a cover image generated when the live shooting operation is triggered.
[0050] The live shooting operation is an operation of live shooting of a target object. The live shooting operation can be triggered by a physical button set on the device where the target sending user is located, or by a virtual button set in the shooting interface, which is not specifically limited here.
[0051] The preset duration is a pre-set pre-recording duration for the target object, such as 3 seconds, 5 seconds, etc.; the pre-recorded video is a recorded video generated for the target object before the shooting operation is triggered; the cover picture is a static picture generated for the target object, and the cover picture is determined as the cover frame of the pre-recorded video.
[0052] Specifically, as shown in Figure 3, a virtual capture button is provided in the shooting interface. Once the shooting angle and shooting environment for the doll are determined, the user can trigger the capture button to obtain a pre-recorded video and cover image of the doll. Accordingly, the capture button can respond to a user-initiated click operation, capturing the 3 seconds of video before clicking the capture button as the pre-recorded video, and using the image of the doll captured when clicking the capture button as the cover image, which is then used as the cover frame of the pre-recorded video.
[0053] Step S2013: Generate a target live picture for the target object based on the pre-recorded video and the cover image.
[0054] The cover screen is used as the cover frame of the pre-recorded video, and the pre-recorded video and the cover screen are merged to generate a target live picture presented in the form of a pre-recorded video and a static cover screen, so that when the user views the target live picture, the pre-recorded video of the target live picture can be automatically played, and the static image corresponding to the cover screen can be displayed after stopping.
[0055] It should be noted that shooting the target object at a fast or slow speed does not affect the use of the live shooting function; when the countdown is turned on, the live shooting function is not effective and the target object is still shot in the normal shooting mode.
[0056] In some optional embodiments, the method may further include: when the live capture indicator is in an off state, generating a target live picture for the target object in response to an on trigger operation for the live capture indicator.
[0057] The live capture flag has an on and off state. When the live capture flag is off, the target sending user can only capture a static image of the target object when calling the capture function. In order to generate a target live image of the target object, the live capture flag needs to be on.
[0058] When a user sees that the live capture indicator is off, they can click on it to switch it back on. Accordingly, the live capture indicator can respond to a user-initiated on-off trigger, switching from off to on. The camera then captures the target object to generate a live image of the target.
[0059] In the above embodiment, the live shooting flag is enabled. When the live shooting flag is in the disabled state, the live shooting flag is enabled to capture a live picture of the target object, thereby achieving flexible generation of the live picture.
[0060] In some optional embodiments, the method may further include: in response to an on / off operation on the live shooting indicator, displaying on / off prompt information of the live shooting indicator on the shooting interface.
[0061] The on / off operation is triggered by the user switching the live capture icon on the capture interface. For example, if the live capture icon is in the off state, clicking it once will turn it on; if the live capture icon is in the on state, clicking it once will turn it off. When a user triggers the on / off operation of the live capture icon, the live capture icon will respond to the user's on / off operation, switching its on / off state and displaying the corresponding on / off prompt information on the capture interface.
[0062] The on / off prompt is used to inform the user of the current on / off status of the live capture indicator. Specifically, this prompt can be color information, such as white for on and black for off; it can also be text information, such as "Live On" or "Live Off". As shown in Figure 4, when the live capture indicator is switched to the on state, "Live On" is displayed at the top of the capture interface.
[0063] In the above embodiment, the on / off status control of the live shooting mark is supported, and the on / off prompt information can be displayed on the shooting interface to remind the user of the current live shooting mark, so as to facilitate the control of the on / off status of the live shooting mark according to actual needs.
[0064] In some optional embodiments, the above method may further include:
[0065] Step a1: Obtain the on / off status of the live shooting indicator during the last shooting process.
[0066] Step a2: determining the target open / close state of the live shooting mark in the current shooting process based on the open / close state.
[0067] Live capture has a memory function, recording the state of the live capture indicator during the user's last capture. Specifically, the target sending user detects the on / off state of the live capture indicator selected by the user during the previous capture process. When entering the current capture process, the on / off state during the previous capture process is used as the target on / off state of the live capture indicator for the current capture process.
[0068] For example, if the live shooting mark was on during the last shooting process, then during the current shooting process, the live shooting mark will be on by default; if the live shooting mark was off during the last shooting process, then during the current shooting process, the live shooting mark will be off by default.
[0069] In the above embodiment, the target opening and closing state of the live shooting indicator in the current shooting process is determined by the opening and closing state of the live shooting indicator in the previous shooting process, thereby realizing a memory function for the live shooting indicator. This facilitates determining the opening and closing state of the live shooting indicator in combination with the memory function, thereby avoiding the user from repeatedly setting the opening and closing state of the live shooting indicator.
[0070] In some optional embodiments, the above method may further include:
[0071] Step b1: Detect the number of times the shooting interface is entered.
[0072] Step b2: When the number of times does not exceed the preset threshold, guiding information corresponding to the live shooting mark is displayed in the shooting interface.
[0073] The preset threshold is a predetermined number of times the guidance information is displayed, such as 3 times, 5 times, etc., which is not specifically limited here. The guidance information is a guidance instruction generated for the live shooting logo, and the guidance information can be a live logo icon and the text "live", as shown in Figures 3 and 4.
[0074] Each time the user enters the capture interface, the target user accumulates the number of capture interface entries to obtain the capture interface entry count. This count is compared with a preset threshold to determine whether it exceeds the threshold. If the count exceeds the threshold, the live capture indicator guidance information is no longer displayed; otherwise, the live capture indicator guidance information is displayed on the capture interface.
[0075] Taking the preset threshold of 3 as an example, when entering the shooting interface for the first three times, the guidance information of the live shooting logo is displayed and shown by default; after being shown three times, the guidance information of the live shooting logo disappears.
[0076] In some optional implementations, when the guidance information of the live shooting logo is displayed, when the user clicks on the guidance information, the guidance information will automatically exit and will not be displayed again.
[0077] In the above embodiment, by displaying the guidance information of the live shooting logo, the user is guided to understand the live shooting function of the target object.
[0078] In some optional embodiments, before generating a target live picture for the target object, the method may further include:
[0079] Step c1: obtaining a target editing object in response to an editing operation on a target object in a target live picture.
[0080] Step c2: re-triggering live shooting based on the target editing object.
[0081] Editing operations are operations performed by users on the target object displayed in the target live image. As shown in Figure 5, the editing interface is provided with a function bar, which includes editing components. By triggering each editing component, you can enter the editing page for editing. Among them, editing methods include flipping, special effects, filters, beautification, etc., which are not specifically limited here.
[0082] When the user needs to edit the currently displayed target object, the user can trigger the corresponding editing component. Accordingly, the editing component can respond to the editing operation initiated by the user and obtain the corresponding target editing object after completing the editing operation.
[0083] After detecting that the user has completed editing the target object, the editing page of the target object is returned to the shooting interface, and the live shooting process is re-triggered to perform live shooting of the edited target object to obtain a corresponding target live picture.
[0084] In the above embodiment, the target object displayed in the target live picture is supported to be edited to obtain the target object that meets the user's expectations. After the target object is edited, live shooting is re-executed to achieve the accuracy of generating the target live picture.
[0085] In some optional embodiments, after generating a target live picture for the target object, the above method may further include: when previewing the target live picture, first displaying the cover picture corresponding to the target live picture, and then playing the pre-recorded video; or, first playing the pre-recorded video, and then displaying the cover picture.
[0086] The cover image is a static image corresponding to the cover frame of the target live image; the pre-recorded video is a live video of the target object. After triggering live capture, the capture interface switches to the edit page to generate the target live image. The user can then preview the captured target live image on the edit page to confirm whether it meets the capture requirements.
[0087] Specifically, when previewing the target live picture, the target sending user side can display the cover picture corresponding to the cover frame by default, and automatically play the live pre-recorded video, and loop the playback process until the preview ends.
[0088] Specifically, when previewing the target live picture, the target sending user side can also play the live pre-recorded video by default, and then display the cover picture corresponding to the cover frame, and loop the process until the preview is completed.
[0089] In the above implementation, preview of the target live picture is supported, so that it is convenient to confirm whether the target live picture meets the user's expectations through preview.
[0090] In some optional embodiments, the above method may further include:
[0091] Step d1, obtaining the duration of the triggering shooting operation.
[0092] Step d1: When the duration reaches a first preset duration, start video recording for the target object.
[0093] The first preset duration is a pre-set duration for initiating video recording, for example, 2 seconds. Upon detecting a user-triggered capture operation, the target sending user obtains the duration of the capture operation. This duration is compared with the first preset duration to determine whether the capture operation has reached the first preset duration. If the duration reaches the first preset duration, video recording is initiated.
[0094] As shown in Figure 3, a virtual shooting button is provided in the shooting interface, and the user can long press the virtual shooting button to start video recording for the doll. Accordingly, the virtual shooting button can respond to the long press operation initiated by the user and directly trigger the video recording function for the doll.
[0095] In the above implementation, after the duration of the triggered shooting operation reaches a certain duration, the video recording is directly started, thereby achieving flexible start of the video recording.
[0096] Specifically, the above step S201 may further include:
[0097] Step S2014: In response to an access operation to the image library component in the conversation interface, enter the image library display interface.
[0098] The image library display interface includes live pictures, and a live logo is displayed on the live pictures.
[0099] A database for storing images, such as an image album, is set up on the device of the target sending user. The image content stored in the image database may include live images captured by a camera, videos recorded by a camera, live images or videos received from other devices, and images or videos downloaded from applications or the Internet. The content stored in the image database is not specifically limited herein.
[0100] An access operation is triggered when a user initiates access to the Image Library component. Upon detecting that a user has triggered the Image Library component, the component can respond to the user's access operation by entering the Image Library display interface, which displays the image content stored in the image library and displays a corresponding live icon on the live image, as shown in Figure 6.
[0101] Step S2015 : In response to the selection operation on the live picture, a target live picture is determined, and the target live picture is uploaded to the session interface of the target session.
[0102] The selection operation is an operation for the user to select a live picture from the image library display interface. A selection component is provided on each image displayed in the image library display interface, as shown in FIG6 , where a selection circle is provided in the upper right corner of the image.
[0103] Specifically, a live image is displayed with a live logo, and the user can select the live image to be shared by viewing the images in the image library display interface. When the user selects a live image as the target live image, the live image in the image library display interface can respond to the user's selection operation and mark the selected live image with a selection logo (e.g., "√") in the selection circle to identify the selected live image as the target live image. Then, the target live image is uploaded to the session interface of the target session between the target sending user side and the target receiving user side, so that the target live image is sent to the target receiving user side through the session interface of the target session.
[0104] In some optional embodiments, a plurality of classification components are provided on the image library display interface, and the classification components are used to filter out images of various types from the image library display interface. As shown in FIG6 , the classification components include a video classification component, a picture classification component, a live classification component, and the like.
[0105] Accordingly, the above method may further include: in response to a triggering operation on the live classification component, filtering out all live pictures from the image library display interface.
[0106] The user can filter the image content contained in the image library through the live classification component. Accordingly, the live classification component in the image library display interface can respond to the trigger operation initiated by the user to filter all live images contained in the live classification from the image library display interface.
[0107] Specifically, as shown in Figure 5, after entering the image library display interface, all image content will be displayed in the image library display interface. When it is detected that the user clicks the "Live" component, the image content displayed on the image library display interface will be filtered, and all live pictures will be filtered out from the image library and thumbnails of all live pictures will be displayed in the image library display interface.
[0108] In the above implementation, the screening of live pictures is supported, which ensures that the target live picture can be quickly selected from the image library, thereby improving the speed of determining the target live picture.
[0109] In some optional embodiments, the method may further include: in response to a trigger operation on the live identification, switching the sending form of the target live picture based on the trigger operation.
[0110] When the live sign is displayed in a first form, the target live picture is sent in a static form; when the live sign is displayed in a second form different from the first form, the target live picture is sent in a live form.
[0111] The first format is the display format of the target live picture's identifier when it's being sent in static form, for example, in white. The second format is the display format of the target live picture's identifier when it's being sent in live form, for example, in yellow. The target sending user identifies the display format of the live identifier in the target live picture and determines whether the target live picture is being sent in static or live form based on the display format.
[0112] In the above embodiment, by displaying the live identifier in different forms, the sending form of the target live picture is determined according to the different forms, thereby taking into account both live sending and static sending of the target live picture.
[0113] In some optional embodiments, the above method may further include: in response to a preview operation on the target live picture, entering a preview interface of the target live picture, displaying a cover image corresponding to the target live picture on the preview interface, and playing a dynamic video corresponding to the target live picture.
[0114] After selecting a target live picture, the user can preview the selected target live picture so that the user can view the playback effect of the target live picture. Specifically, when a preview operation initiated by the user is detected, the display interface will be switched to the preview interface to display the corresponding target live picture on the preview interface. During the preview process, the cover screen corresponding to the target live picture will be displayed on the preview interface, and then the dynamic video corresponding to the target live picture will be played. After the dynamic video is played, it will stop and the cover screen corresponding to the target live picture will be displayed.
[0115] In the above embodiment, preview of the target live picture selected from the image library is supported, and dynamic video preview and cover picture preview of the target live picture are realized.
[0116] In some optional embodiments, the above method may also include: in response to a click operation on the target live picture, when the click duration of the click operation exceeds a second preset duration, generating a play reminder, playing the dynamic video corresponding to the target live picture, and displaying the cover screen corresponding to the target live picture after the click operation is completed.
[0117] The click duration is the duration of clicking the target live picture; the second preset duration is the preset duration for playing dynamic videos, such as 1 second or 2 seconds. The play reminder is used to remind the user that the dynamic video corresponding to the target live picture is about to be played. The play reminder can be a vibration reminder or a sound reminder, which is not specifically limited here. When the target sending user side detects that the user clicks on the target live picture, it obtains the click duration of the user clicking on the target live picture, and compares the click duration with the second preset duration to determine whether the click duration reaches the second preset duration. When the second preset duration is reached, a corresponding play reminder is generated, and the target live picture is displayed in the form of a dynamic video and a static cover picture. After the click operation is completed, it automatically returns to the static cover picture for display.
[0118] For example, when the user long presses the target live picture, a vibration effect will be generated and the dynamic video of the target live picture will be played at the same time. When the user releases the press, the dynamic video will end and the cover screen of the target live picture will be restored.
[0119] In the above embodiment, when the click duration reaches the second preset duration, it supports generating a playback reminder, and displays a dynamic video while generating the playback reminder. After the click ends, the cover screen is displayed, thereby realizing display control for the target live picture.
[0120] In some optional embodiments, the above method may further include:
[0121] Step e1: In response to an editing trigger operation for a target live picture, an editing interface of the target live picture is entered.
[0122] Step e2: In response to the picture editing operation generated in the editing interface, an edited target live picture is obtained.
[0123] An edit trigger operation is an operation to edit the target live picture. When an edit trigger operation is detected by a user, the target sending user side can respond to the user's edit trigger operation by switching from the target live picture display interface to the target live picture editing interface, so that the user can edit the target live picture through the editing interface.
[0124] The editing interface includes multiple editing items, such as beautification, filters, personalized text, etc. When a user-initiated image editing operation is detected, the target sending user side can respond to the user's image editing operation and edit the target live image accordingly to obtain the edited target live image.
[0125] In the above implementation, switching from the image library display interface to the editing interface is supported, thereby achieving flexible editing of the target live image.
[0126] Step S202: In response to the live sending operation for the target live picture, a dynamic identifier corresponding to the target live picture is generated. Detailed descriptions refer to the descriptions of the corresponding steps in the above embodiment, which will not be repeated here.
[0127] In step S203, target information is generated based on the target live picture and the dynamic identifier, and the target information is sent to the target session, so that the target receiving user side in the target session displays the target live picture corresponding to the target information in a live form based on the dynamic identifier carried by the target information.
[0128] Specifically, the above step S203 may include:
[0129] Step S2031: parse the target live picture and extract dynamic video from the target live picture.
[0130] The target live picture consists of a static cover image and a dynamic video. The dynamic video is a pre-recorded video generated when the target live picture is captured, and the cover image is the image corresponding to the cover frame. The target sending user has an image parsing function that parses the target live picture according to a pre-deployed image parsing method to obtain a series of static image frames corresponding to the target live picture. These static image frames are spliced together according to a pre-set time interval and playback sequence to obtain the dynamic video corresponding to the target live picture.
[0131] Specifically, the target sending user side can obtain the corresponding media resource object through the media resource class (for example, obtain the corresponding PHAsset object through the PHAsset class), and obtain and manage the photo and video resources of the target sending user side through the media resource object, including obtaining the photo thumbnail, original image, date, location information, etc.
[0132] Then, the properties of the media resource object are used to check whether the image the user is sending is a live image. If the image is confirmed to be a live image, the relevant data of the live image can be requested through the photo manager (such as PHImageManager under the PHAsset class). Thus, the dynamic video contained in the live image can be extracted from the relevant data of the live image.
[0133] In some optional embodiments, after the target sending user side determines the target live picture to be sent, a live indicator will be displayed in the target live picture (for example, a live indicator will be displayed at the bottom of the target live picture). When the live indicator is in a selected state, the target live picture is sent to the target receiving user side in live form. When the live representation is not selected, the corresponding binary static image resource is extracted from the target live picture through the media resource object, and the static image is sent to the target receiving user side in the form of a static image.
[0134] Step S2032: Encapsulate the dynamic video and the dynamic logo to generate target information.
[0135] A pre-defined communication protocol exists between the target sending user and the target receiving user, including information formats and transmission rules. Dynamic video is packaged according to the communication protocol to generate video transmission information. A dynamic identifier is added to the generated video transmission message to generate target information. The dynamic identifier identifies the generated target information as a target live picture, thereby converting the transmission of the target live picture into the transmission of video resources.
[0136] When the target receiving user side receives the target information, it can identify the dynamic identifier carried in the target information to determine whether the target information is displayed as a normal video resource or in a live form according to the target live picture based on the dynamic identifier.
[0137] The method for sending live pictures in a conversation provided by this embodiment combines pre-recorded video within a preset duration before triggering a live capture operation with a cover image generated when the live capture operation is triggered. This enables the capture of live pictures of a target object, facilitating the flexible capture of live pictures of any object in a real-world scenario. Furthermore, it supports the selection of a target live picture to be sent from an image library, thereby enabling flexible acquisition of the target live picture. By extracting the dynamic video corresponding to the target live picture and encapsulating the dynamic video and dynamic identifier as target information, the target live picture can be converted into a video for transmission, thereby enabling dynamic transmission of the target live picture.
[0138] According to an embodiment of the present disclosure, an embodiment of a method for receiving live pictures in a conversation is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0139] In this embodiment, a method for receiving a live picture in a conversation is provided, which can be used by a target receiving user. FIG7 is a flow chart of a method for sending a live picture in a conversation according to an embodiment of the present disclosure. As shown in FIG7 , the process includes the following steps:
[0140] Step S301: Receive target information from the session interface of the target session.
[0141] The target information is generated by the target sending user side in the target session based on the target live image. For the generation method of the target information, please refer to the relevant description of the above embodiment, which will not be repeated here.
[0142] There is a corresponding communication protocol between the target sending user side and the target receiving user side. The target sending user side sends the target information to the target receiving user side according to the communication protocol. Correspondingly, the target receiving user side can receive the target information sent by the target sending user side according to the communication protocol.
[0143] Step S302: parse the target information to determine whether the target information carries a dynamic identifier.
[0144] The dynamic identifier is used to indicate whether the target information is a normal video or a target live image. When the target receiving user receives the target information, it will parse the target information according to the communication protocol to obtain the various fields carried by the target information.
[0145] Then, the content of each field is detected to determine whether the target information carries a dynamic identifier. If it is determined that the target information carries a dynamic identifier, step S303 is executed. Otherwise, it means that the target information is an ordinary video and the target information can be displayed in the form of a video.
[0146] Step S303: When it is determined that the target information carries a dynamic identifier, a target live picture corresponding to the target information is displayed in a live form.
[0147] The target receiving user side is deployed with a video player for playing live images. When it is determined that the target information carries a dynamic identifier, it indicates that the target information is a target live image. At this time, the target receiving user side can play the target live image in a live format through the video player.
[0148] In the method for receiving live images in a conversation provided in this embodiment, the target receiving user side identifies the dynamic identifier carried in the target information to determine whether the information carried by the target information is the target live image. If the information carried by the target information is determined to be the target live image, the target receiving user side can display the target live image in a live format, realizing dynamic reception and dynamic viewing of the target live image.
[0149] In this embodiment, a method for receiving a live picture in a conversation is provided, which can be used by a target receiving user side. FIG8 is a flow chart of the method for receiving a live picture in a conversation according to an embodiment of the present disclosure. As shown in FIG8 , the process includes the following steps:
[0150] Step S401: Receive target information from the session interface of the target session. The target information is generated by the target sending user side in the target session based on the target live image. For detailed description, please refer to the relevant description of the corresponding method in the above embodiment, which will not be repeated here.
[0151] Step S402: parse the target information to determine whether the target information carries a dynamic identifier.
[0152] Specifically, the above step S402 may include:
[0153] Step S4021: parse the target information and determine whether the target information is a video message.
[0154] After receiving the target information, the target receiving user side parses the target information according to the communication protocol to determine the information type of the target information, wherein the information type includes video type, picture type, audio type, etc.
[0155] Different message types have different type identifiers. The target receiving user side determines whether the target message is a video message by parsing the type identifier carried by the target message. If the target message is determined to be a video message, step S4022 is executed; otherwise, the target message is displayed according to the message type.
[0156] Step S4022: When the target information is a video message, it is detected whether the target information carries a dynamic identifier corresponding to the target live picture.
[0157] When the target sending user sends the target live image, it sends it as a video resource. When the target receiving user determines that the target information is a video message, it can parse the video message according to the video parsing protocol to determine the content of each field carried in the video message, and then detect whether the content of each field carries a dynamic identifier.
[0158] Step S403: When it is determined that the target information carries a dynamic identifier, a target live picture corresponding to the target information is displayed in a live form.
[0159] Specifically, the above step S403 may include:
[0160] Step S4031: When it is determined that the target information carries a dynamic identifier, a live picture of the target is displayed in the form of a card on the conversation interface between the target receiving user side and the target sending user side.
[0161] The cover image of the card is the cover image of the target live image, and a live logo is displayed at a preset position on the card.
[0162] The conversation interface is the interface for interaction between the target receiving user and the target sending user. It displays information exchanged between the target receiving user and the target sending user. When the target receiving user receives target information from the target sending user and determines that the target information is a live image, the live image is displayed as a card in the conversation interface.
[0163] The preset location is a pre-set location for displaying the live logo. Specifically, when displaying a card in the conversation interface, the target receiving user uses the cover frame of the dynamic video corresponding to the target live image as the card's cover image and displays the live logo on the card's cover image. As shown in Figure 9, when the target receiving user determines that the target information it has received is the target live image, it will display the live logo in the upper left corner of the card's cover image.
[0164] Step S4032: In response to a click operation on the card, a play prompt message is generated, and a dynamic video corresponding to the target live picture is played.
[0165] The play prompt information is used to remind the user that the target live picture is about to be played. The play prompt information can be a vibration or a sound effect, which is not specifically limited here. When the target receiving user side detects that the user clicks on the card, it will respond to the user's click operation, generate a play prompt information, and automatically play the dynamic video corresponding to the target live picture using the video player corresponding to the target live picture. For example, when the target receiving user side detects that the user clicks on the card and plays the dynamic video corresponding to the target live picture, a vibration effect will be generated, and at the same time, the dynamic video corresponding to the target live picture will be automatically played using the corresponding video player.
[0166] The method for receiving live images in a conversation provided by this embodiment parses target information to determine whether the target information is a video message. If the target information is determined to be a video message, it further detects whether the target information carries a dynamic identifier. Based on the dynamic identifier, it can determine whether the video content carried by the target information is a regular video or a dynamic video of the target live image. By displaying the target live image in the form of a card, the dynamic video corresponding to the target live image is automatically played when the card is clicked, thereby achieving dynamic viewing of the target live image.
[0167] This embodiment also provides a device for transmitting live images during a conversation. This device is used to implement the above-mentioned embodiments and preferred implementations, and details already described will not be repeated. As used below, the term "module" may refer to a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation using hardware, or a combination of software and hardware, is also possible and contemplated.
[0168] This embodiment provides a device for sending live pictures in a session, which is used for a target sending user side. As shown in FIG10 , the device for sending live pictures in a session includes:
[0169] The acquisition module 501 is configured to acquire a target live picture to be sent in a session interface of a target session.
[0170] The identifier generating module 502 is configured to generate a dynamic identifier corresponding to a target live picture in response to a live sending operation on the target live picture.
[0171] The information sending module 503 is used to generate target information based on the target live picture and dynamic identification, and send the target information to the target session, so that the target receiving user side in the target session can display the target live picture corresponding to the target information in a live form based on the identification information carried by the target information.
[0172] In some optional embodiments, the acquisition module 501 may include:
[0173] The display unit is used to display a shooting interface in response to a start-up operation on a shooting component in a conversation interface, where the shooting interface includes a live shooting mark and a target object to be shot.
[0174] The shooting unit is used to respond to the live shooting operation on the target object and obtain the pre-recorded video within a preset time period before the live shooting operation is triggered, as well as the cover picture generated when the live shooting operation is triggered.
[0175] The live picture generating unit is used to generate a target live picture for a target object based on the pre-recorded video and the cover picture.
[0176] In some optional embodiments, the above device may further include:
[0177] The live start unit is configured to generate a target live picture for a target object in response to a start trigger operation on the live shooting flag when the live shooting flag is in an off state.
[0178] In some optional embodiments, the above device may further include:
[0179] The opening and closing control unit is used to display the opening and closing prompt information of the live shooting mark on the shooting interface in response to the opening and closing operation of the live shooting mark.
[0180] In some optional embodiments, the above device may further include:
[0181] The open / close state memory unit is used to obtain the open / close state of the live shooting mark in the last shooting process.
[0182] The target state determining unit is used to determine the target open and closed state of the live shooting mark in the current shooting process based on the open and closed state.
[0183] In some optional embodiments, the above device may further include:
[0184] The number detection unit is used to detect the number of times the shooting interface is displayed.
[0185] The guiding unit is used to display guiding information corresponding to the live shooting identifier in the shooting interface when the number of times does not exceed a preset threshold.
[0186] In some optional embodiments, the above device may further include:
[0187] The editing unit is configured to obtain a target editing object in response to an editing operation on a target object in a target live picture.
[0188] The live reshooting unit is used to re-trigger the shooting of the target live picture based on the target editing object.
[0189] In some optional embodiments, the above device may further include:
[0190] The preview unit is used to first display the cover image corresponding to the target live image and then play the pre-recorded video when previewing the target live image; or, first play the pre-recorded video and then display the cover image.
[0191] In some optional embodiments, the above device may further include:
[0192] The duration acquisition unit acquires the duration of the triggering shooting operation.
[0193] The recording unit is configured to start recording the video of the target object when the duration reaches a first preset duration.
[0194] In some optional embodiments, the acquisition module 501 may further include:
[0195] The access unit is configured to enter the image library display interface in response to an access operation on the image library component in the conversation interface.
[0196] The selection unit is configured to determine a target live picture in response to a selection operation on the live picture, and upload the target live picture to a session interface of a target session.
[0197] In some optional embodiments, the acquisition module 501 may further include:
[0198] The screening unit is configured to screen out all live images from the image library display interface in response to a triggering operation on the live classification component.
[0199] In some optional embodiments, the above device may further include:
[0200] The sending form determining unit is configured to respond to a triggering operation on the live identification and switch the sending form of the target live picture based on the triggering operation.
[0201] In some optional embodiments, the above device may further include:
[0202] The live preview unit is used to enter the preview interface of the target live picture in response to the preview operation on the target live picture, display the cover picture corresponding to the target live picture on the preview interface, and play the dynamic video corresponding to the target live picture.
[0203] In some optional embodiments, the above device may further include:
[0204] The playback control unit is used to respond to a click operation on the target live picture. When the click duration of the click operation exceeds a second preset duration, it generates a playback reminder and plays the dynamic video corresponding to the target live picture. After the click operation is completed, the cover screen corresponding to the target live picture is displayed.
[0205] In some optional embodiments, the above device may further include:
[0206] The switching unit is configured to enter an editing interface of the target live picture in response to an editing trigger operation on the target live picture.
[0207] The picture editing unit is used to obtain an edited target live picture in response to a picture editing operation generated in the editing interface.
[0208] In some optional embodiments, the information sending module 503 may include:
[0209] The video extraction unit is used to parse the target live picture and extract dynamic video from the target live picture.
[0210] The encapsulation unit is used to encapsulate dynamic video and dynamic logo and generate target information.
[0211] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0212] The device for sending live images in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0213] In the apparatus for sending live images in a conversation provided by this embodiment, upon detecting that a user is sending a target live image, the target sending user generates a corresponding dynamic identifier for the target live image. The dynamic identifier is then added to the information for sending the target live image, generating target information. This allows the target sending user to send the target live image in a live-sending format. Thus, the dynamic identifier is used to indicate that the target live image is dynamic, enabling dynamic sending of the target live image.
[0214] This embodiment also provides a device for receiving live images in a conversation. This device is used to implement the above-mentioned embodiments and preferred embodiments, and details already described will not be repeated. As used below, the term "module" may refer to a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation using hardware, or a combination of software and hardware, is also possible and contemplated.
[0215] This embodiment provides a device for receiving live images in a session, which is used for a target receiving user side. As shown in FIG11 , the device for receiving live images in a session includes:
[0216] The information receiving module 601 is configured to receive target information from a session interface of a target session, wherein the target information is generated by a target sending user side in the target session based on a target live picture.
[0217] The information parsing module 602 is used to parse the target information and determine whether the target information carries a dynamic identifier.
[0218] The live display module 603 is configured to display a live target image corresponding to the target information in a live format when it is determined that the target information carries a dynamic identifier.
[0219] In some optional embodiments, the information parsing module 602 may include:
[0220] The video determination unit is used to parse the target information and determine whether the target information is a video message.
[0221] The identification judgment unit is used to detect whether the target information carries a dynamic identification corresponding to the target live picture when the target information is a video message.
[0222] In some optional embodiments, the live display module 603 may include:
[0223] The live picture display unit is used to display the target live picture in the form of a card on the conversation interface between the target receiving user side and the target sending user side when it is determined that the target information carries a dynamic identifier.
[0224] The dynamic video playing unit is used to generate playing prompt information in response to a click operation on a card, and play the dynamic video corresponding to the target live picture.
[0225] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0226] The live picture receiving device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0227] In the device for receiving live images in a conversation provided by this embodiment, the target receiving user identifies a dynamic identifier carried in the target information to determine whether the information carried by the target information is the target live image. If the information carried by the target information is determined to be the target live image, the target receiving user displays the target live image in a live format, thus achieving dynamic reception and viewing of the target live image.
[0228] The embodiments of the present disclosure further provide a computer device having the apparatus for sending live pictures in a conversation as shown in FIG. 10 or the apparatus for receiving live pictures in a conversation as shown in FIG. 11 .
[0229] Please refer to Figure 12, which is a structural diagram of a computer device provided by an optional embodiment of the present disclosure. As shown in Figure 12, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses and can be installed on a common motherboard or installed in other ways as needed. The processor can process instructions executed within the computer device, including instructions stored in or on the memory to display graphical information of a GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 12 takes a processor 10 as an example.
[0230] The processor 10 may be a central processing unit, a network processor, or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit, a programmable logic device, or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic, or any combination thereof.
[0231] The memory 20 stores instructions that can be executed by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0232] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and application programs required for at least one function; the data storage area may store data created based on the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely located relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0233] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid-state drive; the memory 20 may also include a combination of the above types of memory.
[0234] The computer device further includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means, and FIG12 takes the bus connection as an example.
[0235] The input device 30 can receive input digital or character information and generate key signal input related to user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a trackpad, a touch pad, an indicator stick, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 can include a display device, an auxiliary lighting device (e.g., an LED), and a tactile feedback device (e.g., a vibration motor). The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display, and a plasma display. In some optional embodiments, the display device can be a touch screen.
[0236] The computer device further includes a communication interface for the computer device to communicate with other devices or a communication network.
[0237] The embodiments of the present disclosure also provide a computer-readable storage medium. The above-mentioned method according to the embodiments of the present disclosure can be implemented in hardware, firmware, or implemented as a computer code that can be recorded in a storage medium, or implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and downloaded through a network and will be stored in a local storage medium, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor or hardware, the method shown in the above embodiment is implemented.
[0238] Although the embodiments of the present disclosure have been described with reference to the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A method for sending a live picture in a conversation, comprising: Obtaining the target live picture to be sent in the session interface of the target session; In response to a live sending operation for the target live picture, generating a dynamic identifier corresponding to the target live picture; Based on the target live picture and the dynamic identifier, target information is generated and sent to the target session, so that the target receiving user side in the target session displays the target live picture corresponding to the target information in a live form based on the dynamic identifier carried by the target information.
2. The method according to claim 1, wherein generating target information based on the target live picture and the dynamic identifier comprises: Parsing the target live picture, and extracting dynamic video from the target live picture; The dynamic video and the dynamic identifier are encapsulated to generate the target information.
3. The method according to claim 1, wherein obtaining the target live picture to be sent in the session interface of the target session comprises: In response to a start operation on a shooting component in the conversation interface, displaying a shooting interface, the shooting interface including a live shooting mark and a target object to be shot; In response to a live-filming operation on the target object, obtaining a pre-recorded video within a preset time period before triggering the live-filming operation, and a cover picture generated when the live-filming operation is triggered; Based on the pre-recorded video and the cover picture, a target live picture for the target object is generated.
4. The method according to claim 3, further comprising: When the live shooting mark is in an off state, in response to an on trigger operation for the live shooting mark, a target live picture for the target object is generated.
5. The method according to claim 4, further comprising: In response to an opening and closing operation on the live shooting mark, opening and closing prompt information of the live shooting mark is displayed on the shooting interface.
6. The method according to claim 4, further comprising: Obtaining the on / off status of the live shooting indicator during the last shooting process; Based on the open and closed state, a target open and closed state of the live shooting mark in the current shooting process is determined.
7. The method according to any one of claims 3 to 6, further comprising: Detecting the number of times the shooting interface is entered; When the number of times does not exceed a preset threshold, guidance information corresponding to the live shooting identifier is displayed in the shooting interface.
8. The method according to claim 3, wherein after generating a target live picture for the target object, comprising: In response to an editing operation on a target object in the target live picture, obtaining a target editing object; Based on the target editing object, live shooting is re-triggered.
9. The method according to claim 3, wherein after generating a target live picture for the target object, comprising: When previewing the target live picture, first display the cover picture corresponding to the target live picture, and then play the pre-recorded video; Alternatively, the pre-recorded video is played first, and then the cover image is displayed.
10. The method according to claim 3, further comprising: Obtaining the duration of triggering the shooting operation; When the duration reaches a first preset duration, video recording for the target object is started.
11. The method according to claim 1, wherein obtaining the target live picture to be sent in the session interface of the target session comprises: In response to an access operation to an image library component in the conversation interface, entering an image library display interface, the image library display interface including a live picture, and a live logo is displayed on the live picture; In response to the selection operation on the live picture, the target live picture is determined, and the target live picture is uploaded to the session interface of the target session.
12. The method according to claim 11, wherein the image library display interface includes a live classification component, and the method further comprises: In response to the triggering operation on the live classification component, all live pictures are screened out from the image library display interface.
13. The method according to claim 11 or 12, further comprising: In response to a trigger operation for the live identification, switching the sending of the target live picture based on the trigger operation form; When the live sign is displayed in a first form, the target live picture is sent in a static form; when the live sign is displayed in a second form different from the first form, the target live picture is sent in a live form.
14. The method according to claim 11, further comprising: In response to a preview operation on the target live picture, entering a preview interface of the target live picture, displaying a cover picture corresponding to the target live picture on the preview interface, and playing a dynamic video corresponding to the target live picture; and / or, In response to a click operation on the target live picture, when the click duration of the click operation reaches a second preset duration, a play reminder is generated, and the dynamic video corresponding to the target live picture is played, and the cover screen corresponding to the target live picture is displayed after the click operation ends.
15. The method according to claim 11, further comprising: In response to an editing trigger operation on the target live picture, entering an editing interface of the target live picture; In response to the picture editing operation generated in the editing interface, an edited target live picture is obtained.
16. A method for receiving a live picture in a conversation, comprising: Receive target information from a session interface of a target session, where the target information is generated by a target sending user side in the target session based on a target live picture; Parsing the target information to determine whether the target information carries a dynamic identifier; When it is determined that the target information carries the dynamic identifier, a target live picture corresponding to the target information is displayed in a live form.
17. The method according to claim 16, wherein the parsing of the target information to determine whether the target information carries a dynamic identifier comprises: parsing the target information to determine whether the target information is a video message; When the target information is a video message, it is detected whether the target information carries a dynamic identifier corresponding to the target live picture.
18. The method according to claim 16, wherein displaying the target live picture corresponding to the target information in a live form comprises: The target live picture is displayed in the form of a card on the conversation interface between the target receiving user side and the target sending user side, wherein the cover image of the card is the cover image of the target live picture, and a live logo is displayed at a preset position of the card; In response to a click operation on the card, a play prompt message is generated, and a dynamic video corresponding to the target live picture is played.
19. A device for sending a live picture in a conversation, comprising: An acquisition module, used to acquire the target live picture to be sent in the session interface of the target session; an identification generating module, configured to generate a dynamic identification corresponding to the target live picture in response to a live sending operation on the target live picture; An information sending module is used to generate target information based on the target live picture and the dynamic identifier, and send the target information to a target session, so that the target receiving user side in the target session can display the target live picture corresponding to the target information in a live form based on the dynamic identifier carried by the target information.
20. A device for receiving a live picture in a conversation, comprising: An information receiving module, configured to receive target information from a session interface of a target session, wherein the target information is generated by a target sending user side in the target session based on a target live picture; An information parsing module, used to parse the target information and determine whether the target information carries a dynamic identifier; The live display module is used to display the target live picture corresponding to the target information in a live form when it is determined that the target information carries the dynamic identifier.
21. A computer device comprising: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method for sending a live picture in a conversation as described in any one of claims 1 to 15, or executes the method for receiving a live picture in a conversation as described in any one of claims 16 to 18 by executing the computer instructions.
22. A computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, wherein the computer instructions are used to cause a computer to execute the method for sending a live picture in a conversation according to any one of claims 1 to 15, or to execute the method for receiving a live picture in a conversation according to any one of claims 16 to 18.
Citation Information
Patent Citations
Message transmission method and device, storage medium and electronic device
CN110120909A
Picture processing method and device, computer equipment and storage medium
CN110248116A
Sending method, receiving method, device and equipment for live picture in session
CN117768430A
Method for object recognition
US20200242330A1