Content sharing method and device

By creating and sending a sharing component matching sharing template on the first terminal, the problem of not supporting dynamic content sharing in the existing technology is solved, and the dynamic content sharing function that adapts to diversified sharing needs is realized.

CN119583496APending Publication Date: 2025-03-07SHANGHAI HODE INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411728954.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-27
Publication Date
2025-03-07

AI Technical Summary

Technical Problem

The existing direct communication technology does not support dynamic content sharing, and it is difficult to adapt to diversified sharing needs.

Method used

By displaying the target page on the first terminal, a matching sharing template is obtained in response to an interaction with the second terminal, a sharing component is created and displayed, and sent to the second terminal to display the target page.

Benefits of technology

It realizes dynamic content sharing, suitable for a variety of sharing scenarios, enriching the flexibility and playability of sharing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119583496A_ABST
    Figure CN119583496A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a content sharing method. The content sharing method comprises the following steps: displaying a target page; responding to an interaction operation with a second terminal, and obtaining a sharing template matched with the target page; creating a sharing component based on the target page and the sharing template, and displaying the sharing component on the target page; and in response to the selected sharing component, sending data corresponding to the sharing component to the second terminal, so that the second terminal displays the target page based on the received data. According to the technical scheme, the limitation of content sharing can be broken through, dynamic content sharing is supported, the method and the device are suitable for various sharing scenes, and sharing flexibility and playability are enriched.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of electronic devices, and in particular, to a content sharing method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art

[0002] In offline scenarios, users need to establish social connections in advance to share content, such as adding social friends or mobile phone numbers, and complete the transmission through specific applications. Affected by network signals, application specifications, etc., transmission delays or content distortion may occur. With the development of point-to-point communication technology, devices can directly transmit to each other to achieve content sharing. However, the current direct transmission technology still has the following shortcomings: it does not support dynamic content sharing and is difficult to adapt to diverse sharing needs.

[0003] It should be noted that the above content is not necessarily prior art, nor is it intended to limit the scope of patent protection of this application. Summary of the invention

[0004] The embodiments of the present application provide a content sharing method, apparatus, computer device, computer-readable storage medium, and computer program product to solve or alleviate one or more of the technical problems raised above.

[0005] One aspect of an embodiment of the present application provides a content sharing method for a first terminal, the method comprising: Display the target page; In response to the interactive operation with the second terminal, obtaining a sharing template matching the target page; Creating a sharing component based on the target page and the sharing template, and displaying the sharing component on the target page; In response to selecting the sharing component, data corresponding to the sharing component is sent to the second terminal, so that the second terminal displays the target page based on the received data.

[0006] Optionally, the interaction operation includes: shortening the distance between the first terminal and the second terminal to within a preset range.

[0007] Optionally, the content sharing method further includes: In response to selecting the sharing component, controlling the sharing component to be displayed on the target page with a preset sharing special effect.

[0008] Optionally, in response to selecting the sharing component, controlling the sharing component to be displayed on the target page with a preset sharing special effect includes: Based on the interactive operation, determining a target area on the target page; In response to a sliding operation on the sharing component, the sharing component is moved to the target area to present a special effect that the sharing component disappears after entering the target area.

[0009] Optionally, the content sharing method further includes: According to the interactive operation, a target area is determined on the target page; A preset guiding special effect is displayed in the target area, and the guiding special effect is used to guide the sharing component to be moved to the target area.

[0010] Optionally, obtaining a sharing template matching the target page includes: Determine a page type of the target page, where the page types include at least two, and different page types correspond to different candidate sharing templates; Based on the page type of the target page, a sharing template matching the target page is determined from the candidate sharing templates.

[0011] Optionally, the page type includes an account page, and the account page corresponds to at least two account sharing templates; Correspondingly, based on the page type of the target page, determining a sharing template matching the target page from the candidate sharing templates includes: When the page type of the target page is an account page, determining the account type based on the account page, the account type includes: a first type or a second type; When the account type is the first type, obtaining a first account sharing template, wherein the first account sharing template carries a preset identifier; When the account type is the second type, a second account sharing template is obtained, and the second account sharing template does not carry the preset identifier.

[0012] Optionally, the page type includes a video page, and the video page corresponds to at least one video sharing template; Correspondingly, based on the page type of the target page, determining a sharing template matching the target page from the candidate sharing templates includes: In the case that the page type of the target page is a video page, a target video sharing template is determined from the at least one video sharing template based on the video page.

[0013] Optionally, creating a sharing component based on the target page and the sharing template includes: Determine the information to be shared based on the target page; Fill the information to be shared into the sharing template to generate the sharing component.

[0014] Optionally, the content sharing method further includes: Verifying the shared template; If the sharing template is not obtained or the verification fails, a sharing failure prompt message is displayed.

[0015] Optionally, the content sharing method further includes: Obtaining a sharing result, wherein the sharing result includes: content sharing success or content sharing failure; In case the content is shared successfully, deleting the sharing component; In the event that content sharing fails, display a sharing failure notification; or In response to the operation of canceling the sharing component, hiding and deleting the sharing component, and displaying a sharing cancellation notification.

[0016] Another aspect of an embodiment of the present application provides a content sharing method for a second terminal, the method comprising: In response to an interactive operation with a first terminal, a sharing component provided by the first terminal is received, wherein the sharing component is associated with a target link, and the target link corresponds to a target page; According to the target link, display the target page; The interactive operation includes shortening the distance between the first terminal and the second terminal to a preset range.

[0017] Optionally, displaying the target page according to the target link includes: According to the target link, matching and launching a target application; Parsing the target link through the target application to extract the path and parameters of the target page; According to the path and parameters of the target page, the target page is loaded and displayed.

[0018] Optionally, the content sharing method further includes: Display the sharing component, the first control, and the second control; In response to selecting the first control, displaying the target page; In response to selecting the second control, hiding and deleting the sharing component.

[0019] Another aspect of an embodiment of the present application provides a content sharing device for a first terminal, the device comprising: A first display module, used for displaying a target page; An acquisition module, configured to respond to an interactive operation with the second terminal and acquire a sharing template matching the target page; A second display module, configured to create a sharing component based on the target page and the sharing template, and display the sharing component on the target page; a sending module, configured to send the sharing component to the second terminal in response to selecting the sharing component; Wherein, the second terminal is used to: display the target page based on the sharing component.

[0020] Another aspect of an embodiment of the present application provides a content sharing device for a second terminal, the device comprising: A receiving module, configured to respond to an interactive operation with a first terminal and receive a sharing component provided by the first terminal, wherein the sharing component is associated with a target link, and the target link corresponds to a target page; A display module, used for displaying the target page according to the target link; The interactive operation includes: the first terminal and the second terminal physically touch each other, or the distance between the first terminal and the second terminal is shortened to within a preset range.

[0021] Another aspect of an embodiment of the present application provides a computer device, including: at least one processor; and a memory communicatively coupled to the at least one processor; Wherein: the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method as described above.

[0022] Another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the method described above is implemented.

[0023] Another aspect of an embodiment of the present application provides a computer program product, including a computer program, which implements the method described above when executed by a processor.

[0024] The above technical solution adopted in the embodiment of the present application may have the following advantages: The first terminal displays a target page, which may include static or dynamic content. The first terminal responds to the interactive operation with the second terminal and obtains a sharing template that matches the target page. A sharing component is created based on the target page and the sharing template, and is displayed on the target page. In response to the operation of selecting the sharing component, the data corresponding to the sharing component is sent to the second terminal. The second terminal is used to: display the target page according to the data corresponding to the sharing component. It can be seen that the embodiments of the present application can break the limitations of content sharing, support dynamic content sharing, and are suitable for a variety of sharing scenarios, enriching the flexibility and playability of sharing. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The accompanying drawings exemplarily illustrate the embodiments and constitute a part of the specification, and together with the text description of the specification, are used to explain the exemplary implementation of the embodiments. The embodiments shown are for illustrative purposes only and do not limit the scope of the claims. In all drawings, the same reference numerals refer to similar but not necessarily identical elements.

[0026] Figure 1 A flowchart of a content sharing method according to Embodiment 1 of the present application is schematically shown; Figure 2 Schematically shows Figure 1 Flow chart of sub-steps of step S102; Figure 3 Schematically showing a first internal account sharing template and a second account sharing template according to Embodiment 1 of the present application; Figure 4 The following schematically shows a newly added flow chart of the content sharing method according to the first embodiment of the present application; Figure 5 The content sharing process according to the first embodiment of the present application is schematically shown; Figure 6 The following schematically shows a newly added flow chart of the content sharing method according to the first embodiment of the present application; Figure 7 A flowchart of a content sharing method according to Embodiment 2 of the present application is schematically shown; Figure 8 The following schematically shows a newly added flow chart of the content sharing method according to the second embodiment of the present application; Fig. 9 is an application example diagram of the content sharing method according to an embodiment of the present application; Fig.10 A block diagram of a content sharing device according to Embodiment 3 of the present application is schematically shown; Fig.11 A block diagram schematically shows a content sharing device according to a fourth embodiment of the present application; and Fig.12The hardware architecture diagram of the computer device according to the fifth embodiment of the present application is schematically shown. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0028] It should be noted that the descriptions involving "first", "second", etc. in the embodiments of the present application are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.

[0029] In the description of the present application, it should be understood that the numerical labels before the steps do not indicate the order in which the steps are executed, but are only used to facilitate the description of the present application and to distinguish each step, and therefore should not be understood as a limitation on the present application.

[0030] First, the following terms are explained: Fast transfer: Rapid transmission of general content (such as pictures, files, memos, Wi-Fi, etc.) that relies only on a single carrier that is directly connected between devices.

[0031] Hyperlink: A hyperlink is used to connect different locations, pages, or resources for quick jumping.

[0032] APP (Application): Application.

[0033] UGC (User-Generated Content): User-generated content community.

[0034] Secondly, in order to facilitate those skilled in the art to understand the technical solutions provided in the embodiments of the present application, the relevant technologies are described below: In offline scenarios, users need to establish social connections in advance to share content, such as adding social friends or mobile phone numbers, and complete the transmission through specific applications. Affected by network signals, application specifications (the content needs to be reprocessed to meet APP specifications, such as compressing image quality and cutting recording length), etc., transmission delays or content distortion may occur. With the development of point-to-point communication technology, devices can directly transmit to each other to achieve content sharing.

[0035] However, the applicant has learned that the relevant direct transmission technology still has the following shortcomings: (1) It can only share a single static image or file, and does not support dynamic content sharing, such as rich changes and real-time updated pages. (2) It is difficult to adapt to complex and diverse sharing needs, such as: sharing pictures, files, memos, WiFi, videos, creator spaces, etc.

[0036] To this end, an embodiment of the present application provides a technical solution for content sharing. In this technical solution: a sharing event (content sharing) is triggered when the devices of both parties touch each other lightly. The corresponding sharing component is displayed on the page according to the page type. The recipient clicks to confirm whether to receive it. After receiving it, the operating system can wake up the corresponding APP through the quick transfer capability. By parsing the target link, the APP can enter the relevant page, and the sharing process ends. Enable the sharing function in the appropriate scenario, create a sharing component and bind the life cycle, deliver the shared content at the appropriate time, and delete the sharing component at the end of the sharing process to recycle memory. The technical effect is: breaking the data limitations of content sharing, enriching the playability of sharing scenarios, and enhancing the sharing experience. See below for details.

[0037] The technical solutions of the present application are described below through multiple embodiments. It should be noted that these embodiments can be implemented in a variety of different forms and should not be interpreted as being limited to the embodiments described here.

[0038] Embodiment 1 Figure 1 The flowchart of the content sharing method according to the first embodiment of the present application is schematically shown.

[0039] The content sharing method provided in the first embodiment of the present application can be used for a first terminal, which refers to a content sender. The first terminal can be any type of electronic device, such as a smart phone, a tablet device, a laptop computer, a virtual reality device, a gaming device, etc.

[0040] like Figure 1 As shown, the content sharing method may include steps S100 to S104, wherein: Step S100, displaying the target page.

[0041] Step S102, in response to the interactive operation with the second terminal, obtaining a sharing template matching the target page.

[0042] Step S104: creating a sharing component based on the target page and the sharing template, and displaying the sharing component on the target page.

[0043] Step S106: in response to selecting the sharing component, sending data corresponding to the sharing component to the second terminal, so that the second terminal displays the target page based on the received data.

[0044] In the content sharing method provided in this embodiment, the first terminal displays a target page, and the target page may include static or dynamic content. The first terminal responds to the interactive operation with the second terminal and obtains a sharing template that matches the target page. A sharing component is created based on the target page and the sharing template, and is displayed on the target page. In response to the operation of selecting the sharing component, the sharing component is sent to the second terminal. The second terminal is used to: display the target page according to the sharing component. It can be seen that the embodiment of the present application can break the limitations of content sharing, support dynamic content sharing, is suitable for a variety of sharing scenarios, and enriches the flexibility and playability of sharing.

[0045] The following combination Figure 1 , each step in steps S100~S106 and other optional steps are explained in detail.

[0046] Step S100 , the target page is displayed.

[0047] The target page can be an interface in a web page or application. The target page can include static or dynamic content. For example, the target page can be an interface in an album application, displaying one or more pictures; it can also be a video playback page in a video application, displaying real-time updated and richly changing video content; it can also be a creator space page (also called an account page) in a UGC application, displaying content published by a specific creator. The first terminal can display the target page and enable the interactive operation monitoring function to efficiently capture interactive operations on the target page.

[0048] Step S102 , in response to the interactive operation with the second terminal, obtaining a sharing template matching the target page.

[0049] The second terminal refers to a content receiver, and the second terminal may be any type of electronic device, such as a smart phone, a tablet device, a laptop computer, a virtual reality device, a gaming device, etc. The operating systems of the first terminal and the second terminal may be the same or different, and the operating system may be Android, iOS, HarmonyOS, etc.

[0050] The interactive operation is used to start the content sharing process between the first terminal and the second terminal. In an optional embodiment, the interactive operation can be that the distance between the first terminal and the second terminal is shortened to a preset range, such as the first terminal is close to the second terminal, or the first terminal and the second terminal are physically touched (such as touching).

[0051] The first terminal and the second terminal can start the content sharing process through the physical form of head touching: First, the first terminal can obtain a sharing template that matches the target page from the server or local cache. The sharing template can provide a preset content display framework to ensure that the content to be shared is presented in a standardized form. For different types of target pages, different sharing templates can be configured to ensure that all kinds of content to be shared can be displayed in the best visual way. An exemplary solution is provided below.

[0052] In an optional embodiment, if Figure 2 As shown, step S102 may include: Step S200, determining the page type of the target page, wherein the page type includes at least two types, and different page types correspond to different candidate sharing templates.

[0053] Step S202 : determining a sharing template matching the target page from the candidate sharing templates based on the page type of the target page.

[0054] For example, page types may include video pages, account pages, dynamic information pages, comment pages, etc., where the dynamic information page is used to display dynamics posted by users. Exemplarily, by monitoring the interactive operation between the first terminal and the second terminal, the first terminal can determine the page type of the target page currently displayed. Different page types correspond to different candidate sharing templates to provide personalized and customized sharing effects. According to the page type of the target page, a sharing template that matches the target page can be determined from multiple candidate sharing templates.

[0055] In this embodiment, the sharing effect can be enriched by matching the page type of the target page with the candidate sharing template.

[0056] In an optional embodiment, the page type includes an account page. In the case where the page type is an account page, the corresponding candidate sharing templates may include at least two account sharing templates. Correspondingly, step S202 may include: Step S300, when the page type of the target page is an account page, determine the account type based on the account page, and the account type includes: a first type or a second type.

[0057] Step S302: when the account type is the first type, obtain a first account sharing template, where the first account sharing template carries a preset identifier.

[0058] Step S304: when the account type is the second type, obtain a second account sharing template, where the second account sharing template does not carry the preset identifier.

[0059] When the target page is an account page, the account type can be further determined based on the target page. The account type may include a first type (such as a preset type of user, for example, a recharged member, a user with a number of fans greater than a preset value, etc.), or a second type (such as a non-recharged user, a user with a number of fans not greater than a preset value, etc.).

[0060] When the account type is the first type, the first account sharing template can be obtained from the server, such as Figure 3 When the account type is the second type, the second account sharing template can be obtained from the server, such as Figure 3 As shown in the right half, both the first account sharing template and the second account sharing template can include the account avatar, account nickname, account interaction data (such as the number of fans, number of contributions, number of likes, etc.), and can also carry the application logo.

[0061] The first account sharing template may carry a preset identifier, while the second account sharing template does not carry a preset identifier, so that different sharing templates can be customized for different types of account pages. The preset identifier can be text, image, animation effect, etc., which can be set according to actual needs.

[0062] In this embodiment, a matching sharing template is obtained according to the target page type and the account type to achieve a unified display of the content to be shared, which can improve the sharing effect and user experience.

[0063] Optionally, the data carried in the account sharing template can be selected by the user according to actual sharing needs, and this embodiment of the present invention does not limit this.

[0064] In an optional embodiment, the page type includes a video page. In the case where the page type is an account page, the corresponding candidate sharing templates may include at least one video sharing template. Correspondingly, step S202 may include: In the case that the page type of the target page is a video page, a target video sharing template is determined from the at least one video sharing template based on the video page.

[0065] When the target page is a video page, the target video sharing template can be obtained from multiple candidate video sharing templates of a preset server according to the theme of the video in the video page, the interactive data of the video, etc. The video sharing template may include a video cover image, video title, video introduction, number of views, number of likes, number of comments, etc., to ensure that the video content of the target page is displayed in a standardized form, and to enhance the attractiveness, and improve the willingness and experience of sharing.

[0066] In this embodiment, a matching sharing template is obtained according to the target page type to achieve a unified display of the content to be shared, which can improve the sharing effect and user experience.

[0067] After obtaining the shared template, a verification may be performed to ensure the integrity and validity of the shared template. An exemplary solution is provided below.

[0068] In an optional embodiment, the content sharing method may further include: verifying the sharing template; and displaying a sharing failure prompt message when the sharing template is not obtained or the verification fails.

[0069] For example, the obtained sharing template can be verified by confirming whether the sharing template is loaded successfully and is not empty, confirming whether the sharing template includes all necessary structure fields, confirming whether the sharing template meets the design specifications, confirming the compatibility of the sharing template on the first terminal, etc., so as to ensure the integrity and validity of the sharing template. If the sharing template is not obtained or the verification fails, a pop-up window can be popped up to prompt the user that the content sharing fails.

[0070] In this embodiment, by verifying the sharing template, the standardization and reliability of content sharing can be improved, and the sharing experience can be optimized.

[0071] Step S104 , creating a sharing component based on the target page and the sharing template, and displaying the sharing component on the target page.

[0072] The sharing component can be created based on the sharing template. By filling the content to be shared in the target page into the matching sharing template, a unified and standardized sharing component can be generated. In an optional embodiment, step S104 may include: determining the information to be shared according to the target page; filling the information to be shared into the sharing template to generate the sharing component. Exemplarily, in the case where the target page is a video page, the key frames, titles, introductions, views, likes and other data of the video can be obtained based on the video page as the information to be shared, and these data can be filled into the pre-acquired video sharing template to create a sharing component. The sharing component can be displayed on the target page in the form of cards, pop-ups, etc. For another example, in the case where the target page is an account page, the avatar nickname, number of contributions, number of fans and other data of the account can be extracted based on the account page, and these data can be filled into the pre-acquired account sharing template to create a sharing component, which can also be displayed on the target page in the form of cards, pop-ups, etc.

[0073] In actual applications, in addition to displaying the sharing component on the target page, other visual elements, such as text prompts, interactive controls, etc., can also be displayed to guide users to perform corresponding operations to share content. For example, a text prompt "Swipe up to share" can be displayed on the target page to prompt the user to swipe up on the sharing component to achieve content sharing. Of course, a share button or a cancel share button can also be displayed on the target page, and the user can select the corresponding button to achieve content sharing or cancel content sharing. An exemplary solution is provided below.

[0074] In an optional embodiment, if Figure 4 As shown, the content sharing method may further include: Step S400: determining a target area on the target page according to the interactive operation.

[0075] Step S402, displaying the sharing component on the target page, and displaying a preset guiding effect in the target area, wherein the guiding effect is used to guide the sharing component to be moved to the target area.

[0076] Exemplarily, the target area can be determined on the target page according to the interactive operation. For example, when the heads of the first terminal and the second terminal touch each other, the target area can be located at the head of the target page. The sharing component is displayed on the target page, and a preset guiding effect, such as flashing, black hole, vortex, etc., can be displayed in the target area. The guiding effect can be used to guide the user to move the sharing component to the target area for content sharing.

[0077] In this embodiment, a guiding effect is configured based on the interactive operation, and the guiding effect can be used to guide the user to perform the sharing operation, thereby enhancing the interactive experience, improving the display effect of the sharing component and the intuitiveness of the content sharing operation.

[0078] Step S106 In response to selecting the sharing component, sending the sharing component to the second terminal; wherein the second terminal is used to: display the target page based on the sharing component.

[0079] Exemplarily, the sharing component can be selected through a variety of methods such as a configured sharing button, sliding, long pressing, double clicking, and box selection, and the sharing component can be sent to the second terminal. After receiving the sharing component, the second terminal can directly call up the corresponding application based on the target link associated with the sharing component, enter and display the target page, which can significantly improve the sharing efficiency and smooth the sharing experience. Of course, the sharing component and other visual elements (such as a confirmation button, a rejection button, text prompts, etc.) can also be displayed first. In response to the user selecting the confirmation button, the sharing component is parsed and the associated target link is obtained. The corresponding application is called up based on the target link, and the target page is entered and displayed.

[0080] In this embodiment, content sharing is achieved through a visual process, which can improve the intuitiveness and fluency of content sharing and enhance the interactive experience. It supports sharing various types of content (pan-content) across device screens, including but not limited to dynamically updated pages, pictures, files, memos, WiFi, and social pages, effectively upgrading the pan-sharing mode to adapt to a variety of sharing scenarios.

[0081] The above embodiments describe how to share content through interaction between terminals and with sharing components. The following will further optimize the content sharing experience by way of example through multiple embodiments.

[0082] In an optional embodiment, the content sharing method may further include: step S500, in response to selecting the sharing component, controlling the sharing component to be displayed on the target page with a preset sharing effect.

[0083] Exemplarily, after selecting a sharing component, you can control the sharing component to gradually disappear from the target page by gradually reducing the transparency of the sharing component, reducing the size of the sharing component, changing the position of the sharing component or other visual effects, so as to provide a smooth and natural interactive experience and further optimize the visual effect of content sharing.

[0084] In an optional embodiment, step S500 may include: based on the interactive operation, determining a target area on the target page; in response to a sliding operation on the sharing component, moving the sharing component to the target area to present a special effect of the sharing component disappearing after entering the target area.

[0085] For example, Figure 5 As shown in FIG. 1 , the sharing component can be moved to the target area by sliding the sharing component, and the sharing component disappears after entering the target area. Furthermore, the size of the sharing component can be gradually reduced during the movement of the sharing component, such as Figure 5 As shown, the closer the sharing component is to the target area, the smaller its size is, and the end of the sharing component close to the target area is smaller than the end far from the target area, thereby presenting a visual effect that the sharing component is gradually swallowed up by the target area.

[0086] In this embodiment, by sliding and gradually shrinking the sharing component, a visual effect of the sharing component being gradually swallowed up by the target area is created, providing an intuitive and attractive sharing experience and optimizing the smoothness and visual effects of content sharing.

[0087] In an optional embodiment, if Figure 6 As shown, the content sharing method may further include: Step S600, obtaining a sharing result, wherein the sharing result includes: content sharing success, or content sharing failure.

[0088] Step S602: when the content is shared successfully, the sharing component is deleted.

[0089] Step S604: If content sharing fails, a sharing failure notification is displayed. Step S606, in response to the operation of canceling the sharing component, hiding and deleting the sharing component, and displaying a sharing cancellation notification.

[0090] Exemplarily, when the first terminal sends the sharing component to the second terminal, the sharing result can be obtained. The sharing result includes successful content sharing or failed content sharing. In the case of successful content sharing, the sharing component can be deleted (life cycle ends) to reclaim memory. In the case of content sharing failure, a sharing failure notification can be displayed to prompt the user that the sharing failed and guide the user to share again or cancel the sharing. Alternatively, when the sharing component is displayed on the target page, the content sharing can be canceled by selecting the cancel sharing button, sliding the sharing component, gesture operation (such as two-finger pinching), etc., and the sharing component can be hidden and deleted accordingly, and the sharing cancellation notification can be displayed on the target page to prompt the user that the content sharing has been canceled.

[0091] In this embodiment, a variety of visual feedback is provided based on the sharing results to optimize the content sharing experience, ensure efficient management of resources, and optimize interaction flexibility.

[0092] Embodiment 2 Figure 7 The flowchart of the content sharing method according to the first embodiment of the present application is schematically shown.

[0093] The content sharing method provided in the second embodiment of the present application can be used for a second terminal, where the second terminal refers to a content receiver.

[0094] like Figure 7 As shown, the content sharing method may include steps S700 to S702, wherein: Step S700, in response to an interactive operation with a first terminal, receiving a sharing component provided by the first terminal, wherein the sharing component is associated with a target link, and the target link corresponds to a target page.

[0095] Step S702: displaying the target page according to the target link; wherein the interactive operation includes the second terminal physically touching the first terminal, or the distance between the first terminal and the second terminal shortening to within a preset range.

[0096] In this embodiment, the first terminal is the content sharing party. When the second terminal physically touches the first terminal (such as a touch), or the distance between the second terminal and the first terminal is shortened to a preset range (such as the first terminal is close to the second terminal), the first terminal can receive the sharing component provided by the first terminal. Among them, the sharing component is associated with a target link, and the target link corresponds to the target page. The second terminal can directly display the target page based on the target link associated with the sharing component, which can significantly improve the sharing efficiency and smooth the sharing experience.

[0097] In an optional embodiment, step S702 may include: Step S900: matching and starting a target application according to the target link.

[0098] Step S902: parsing the target link through the target application to extract the path and parameters of the target page.

[0099] Step S904: load and display the target page according to the path and parameters of the target page.

[0100] In this embodiment, the second terminal can directly call up the corresponding application based on the target link associated with the sharing component, and obtain the path and parameters of the target page through the application to parse the target link. The target page is loaded and displayed according to the path and parameters of the target page, which can significantly improve the sharing efficiency and smooth the sharing experience.

[0101] In an optional embodiment, if Figure 8 As shown, the content sharing method may further include: Step S800, displaying the sharing component, the first control and the second control.

[0102] Step S802: in response to selecting the first control, displaying the target page.

[0103] Step S804: in response to selecting the second control, hiding and deleting the sharing component.

[0104] In this embodiment, the second terminal may also first display the sharing component and other visual elements, such as a confirmation button (first control), a rejection button (second control), a text prompt, etc. In response to the user selecting the confirmation button, the second terminal may obtain the associated target link by parsing the sharing component. Based on the target link, the corresponding application is invoked to enter and display the target page. In response to the user selecting the cancel button, the second terminal may hide and delete the sharing component to reclaim memory.

[0105] In order to make this application easier to understand, the following Fig. 9 An exemplary application is provided.

[0106] S11: The first terminal displays the target page.

[0107] Among them, the target page can be a video page (video playback page) or an account page (creator space page).

[0108] S12: The first terminal enables a monitoring function of the target page for interactive operations.

[0109] The interactive operation includes physical contact (such as touching) between the first terminal and the second terminal, and the distance between the first terminal and the second terminal is reduced to a preset range (such as the first terminal is close to the second terminal, or the second terminal is close to the first terminal, or the two terminals are close to each other).

[0110] S13: The first terminal responds to the interactive operation with the second terminal and obtains a sharing template from the server.

[0111] S14: When the first terminal obtains the sharing template, the first terminal verifies the sharing template. When the first terminal fails to obtain the sharing template or the verification fails, a pop-up window pops up to prompt the user that the content sharing fails.

[0112] S15: Create a sharing component based on the target page and the sharing template, and display the sharing component on the target page. Bind the life cycle of the sharing component to the content sharing process.

[0113] S16: In response to selecting the sharing component (such as sliding, double-clicking, long pressing the sharing component, selecting a sharing button, etc.), the first terminal sends the sharing component to the second terminal.

[0114] After selecting the sharing component, the first terminal may also control the sharing component to gradually disappear from the target page, such as moving the sharing component to the target area, and the sharing component disappears after entering the target area.

[0115] The first terminal may also respond to the operation of canceling the sharing component by hiding and deleting the sharing component to cancel the content sharing process.

[0116] S17: The second terminal receives the sharing component provided by the first terminal, parses the sharing component to obtain the associated target link, invokes the corresponding application based on the target link, and enters and displays the target page.

[0117] S18: The first terminal obtains the sharing result. If the content sharing is successful, the content sharing process ends, and the sharing component can be deleted to recycle memory. If the content sharing fails, a content sharing failure notification is displayed.

[0118] In this exemplary application: (1) When the two devices touch each other and the screen is not black, a sharing event (content sharing) is triggered. (2) The corresponding sharing element card (sharing component) is displayed on the page according to the page type (such as video playback page, creator space page, etc.). (3) The recipient clicks to confirm whether to receive. After receiving, the operating system can wake up the corresponding APP through the Hyperlink capability. By parsing the sharing link (target link) transmitted by Hyperlink, the APP can enter the relevant page (such as video page, creator space page, etc.), and the sharing process ends. (4) Enable the sharing function in the appropriate scenario, create a sharing component and bind the life cycle, transmit the shared content at the appropriate time, and delete the sharing component at the end of the sharing process to recycle memory. (5) Break the data limit of content sharing and enrich the playability of sharing scenarios. (6) Configure different sharing templates for different types of creator space page sharing to enhance the attractiveness of high-quality creators and enhance the sharing experience.

[0119] Embodiment 3 Fig.10 The block diagram of the content sharing device according to the third embodiment of the present application is schematically shown. The device can be used in the first terminal and can also be divided into one or more program modules. One or more program modules are stored in a storage medium and executed by one or more processors to complete the embodiment of the present application. The program module referred to in the embodiment of the present application refers to a series of computer program instruction segments that can complete specific functions. The following description will specifically introduce the functions of each program module in this embodiment. Fig.10As shown, the device 1000 may include: a first display module 1100, an acquisition module 1200, a second display module 1300 and a sending module 1400, wherein: A first display module 1100 displays a target page; The acquisition module 1200 is used to respond to the interactive operation with the second terminal and acquire a sharing template matching the target page; A second display module 1300 creates a sharing component based on the target page and the sharing template, and displays the sharing component on the target page; The sending module 1400 sends data corresponding to the sharing component to the second terminal in response to selecting the sharing component, so that the second terminal displays the target page based on the received data.

[0120] As an optional embodiment, the interactive operation includes: a distance between the first terminal and the second terminal is shortened to within a preset range.

[0121] As an optional embodiment, the device 1000 is further used for: In response to selecting the sharing component, controlling the sharing component to be displayed on the target page with a preset sharing special effect.

[0122] As an optional embodiment, in response to selecting the sharing component, controlling the sharing component to be displayed on the target page with a preset sharing special effect includes: Based on the interactive operation, determining a target area on the target page; In response to a sliding operation on the sharing component, the sharing component is moved to the target area to present a special effect that the sharing component disappears after entering the target area.

[0123] As an optional embodiment, the device 1000 is further used for: According to the interactive operation, a target area is determined on the target page; A preset guiding special effect is displayed in the target area, and the guiding special effect is used to guide the sharing component to be moved to the target area.

[0124] As an optional embodiment, it is characterized in that obtaining a sharing template matching the target page includes: Determine a page type of the target page, where the page types include at least two, and different page types correspond to different candidate sharing templates; Based on the page type of the target page, a sharing template matching the target page is determined from the candidate sharing templates.

[0125] As an optional embodiment, the page type includes an account page, and the account page corresponds to at least two account sharing templates; Correspondingly, based on the page type of the target page, determining a sharing template matching the target page from the candidate sharing templates includes: When the page type of the target page is an account page, determining the account type based on the account page, the account type includes: a first type or a second type; When the account type is the first type, obtaining a first account sharing template, wherein the first account sharing template carries a preset identifier; When the account type is the second type, a second account sharing template is obtained, and the second account sharing template does not carry the preset identifier.

[0126] As an optional embodiment, the page type includes a video page, and the video page corresponds to at least one video sharing template; Correspondingly, based on the page type of the target page, determining a sharing template matching the target page from the candidate sharing templates includes: In the case that the page type of the target page is a video page, a target video sharing template is determined from the at least one video sharing template based on the video page.

[0127] As an optional embodiment, creating a sharing component based on the target page and the sharing template includes: Determine the information to be shared based on the target page; Fill the information to be shared into the sharing template to generate the sharing component.

[0128] As an optional embodiment, the device 1000 is further used for: Verifying the shared template; If the sharing template is not obtained or the verification fails, a sharing failure prompt message is displayed.

[0129] As an optional embodiment, displaying the target page according to the target link includes: According to the target link, matching and launching a target application; Parsing the target link through the target application to extract the path and parameters of the target page; According to the path and parameters of the target page, the target page is loaded and displayed.

[0130] As an optional embodiment, the device 1000 is further used for: Verifying the shared template; When the sharing template is not obtained or the verification fails, a pop-up window is popped up to prompt that the content sharing fails.

[0131] As an optional embodiment, the device 1000 is further used for: Obtaining a sharing result, wherein the sharing result includes: content sharing success or content sharing failure; In case the content is shared successfully, deleting the sharing component; In the event that content sharing fails, display a sharing failure notification; or In response to the operation of canceling the sharing component, hiding and deleting the sharing component, and displaying a sharing cancellation notification.

[0132] Embodiment 4 Fig.11 The block diagram of the content sharing device according to the fourth embodiment of the present application is schematically shown. The device can be used in the second terminal and can also be divided into one or more program modules. One or more program modules are stored in a storage medium and executed by one or more processors to complete the embodiment of the present application. The program module referred to in the embodiment of the present application refers to a series of computer program instruction segments that can complete specific functions. The following description will specifically introduce the functions of each program module in this embodiment. Fig.11 As shown, the device 2000 may include: a receiving module 2100 and a display module 2200, wherein: The receiving module 2100 is used to respond to the interactive operation with the first terminal and receive a sharing component provided by the first terminal, wherein the sharing component is associated with a target link, and the target link corresponds to a target page; Display module 2200, used to display the target page according to the target link; The interactive operation includes physical contact between the second terminal and the first terminal, or a distance between the first terminal and the second terminal is shortened to within a preset range.

[0133] As an optional embodiment, the device 2000 is further used for: Display the sharing component, the first control, and the second control; In response to selecting the first control, displaying the target page; In response to selecting the second control, hiding and deleting the sharing component.

[0134] Embodiment 5 Fig.12The schematic diagram of the hardware architecture of a computer device 10000 suitable for implementing a content sharing method according to the third embodiment of the present application is shown. In some embodiments, the computer device 10000 may be a terminal device such as a smart phone, a wearable device, a tablet computer, a personal computer, a vehicle terminal, a game console, a virtual device, a workbench, a digital assistant, a set-top box, a robot, etc. In other embodiments, the computer device 10000 may be a rack server, a blade server, a tower server, or a cabinet server (including an independent server, or a server cluster composed of multiple servers), etc. Fig.12 As shown, the computer device 10000 includes but is not limited to: a memory 10010, a processor 10020, and a network interface 10030 that can communicate with each other through a system bus. Among them: The memory 10010 includes at least one type of computer-readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (such as SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 10010 can be an internal storage module of the computer device 10000, such as a hard disk or memory of the computer device 10000. In other embodiments, the memory 10010 can also be an external storage device of the computer device 10000, such as a plug-in hard disk equipped on the computer device 10000, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 10010 can also include both the internal storage module of the computer device 10000 and its external storage device. In this embodiment, the memory 10010 is generally used to store an operating system and various application software installed in the computer device 10000, such as program codes of the content sharing method, etc. In addition, the memory 10010 can also be used to temporarily store various data that have been output or are to be output.

[0135] In some embodiments, the processor 10020 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other chips. The processor 10020 is generally used to control the overall operation of the computer device 10000, such as performing control and processing related to data interaction or communication with the computer device 10000. In this embodiment, the processor 10020 is used to run the program code stored in the memory 10010 or process data.

[0136] The network interface 10030 may include a wireless network interface or a wired network interface, and the network interface 10030 is generally used to establish a communication link between the computer device 10000 and other computer devices. For example, the network interface 10030 is used to connect the computer device 10000 to an external terminal through a network, and to establish a data transmission channel and a communication link between the computer device 10000 and the external terminal. The network may be a wireless or wired network such as an intranet, the Internet, the Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), 4G network, 5G network, Bluetooth, Wi-Fi, etc.

[0137] It should be pointed out that Fig.12 Only a computer device having components 10010 - 10030 is shown, but it should be understood that implementation of all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.

[0138] In this embodiment, the content sharing method stored in the memory 10010 may also be divided into one or more program modules and executed by one or more processors (such as the processor 10020) to complete the embodiment of the present application.

[0139] Embodiment 6 An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, wherein when the computer program is executed by a processor, the steps of the content sharing method in the embodiment are implemented.

[0140] In this embodiment, the computer-readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the computer-readable storage medium may be an internal storage unit of a computer device, such as a hard disk or memory of the computer device. In other embodiments, the computer-readable storage medium may also be an external storage device of a computer device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the computer device. Of course, the computer-readable storage medium may also include both the internal storage unit of the computer device and its external storage device. In this embodiment, the computer-readable storage medium is generally used to store an operating system and various application software installed on the computer device, such as the program code of the content sharing method in the embodiment. In addition, the computer-readable storage medium may also be used to temporarily store various types of data that have been output or are to be output.

[0141] Embodiment 7 An embodiment of the present application also provides a computer program product, including a computer program, which implements the method in the above embodiment when executed by a processor.

[0142] Obviously, those skilled in the art should understand that the modules or steps of the above-mentioned embodiments of the present application can be implemented by general-purpose computer devices, they can be concentrated on a single computer device, or distributed on a network composed of multiple computer devices, optionally, they can be implemented by executable program codes of computer devices, so that they can be stored in a storage device and executed by the computer device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.

[0143] It should be noted that the above are only preferred embodiments of the present application, and the patent protection scope of the present application is not limited thereto. Any equivalent structure or equivalent process transformation made using the contents of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A content sharing method, characterized in that: For a first terminal, the method includes: Display the target page; In response to the interactive operation with the second terminal, obtaining a sharing template matching the target page; Creating a sharing component based on the target page and the sharing template, and displaying the sharing component on the target page; In response to selecting the sharing component, data corresponding to the sharing component is sent to the second terminal, so that the second terminal displays the target page based on the received data.

2. The method according to claim 1, characterized in that The interactive operation includes: a distance between the first terminal and the second terminal is shortened to a preset range.

3. The method according to claim 1, characterized in that Also includes: In response to selecting the sharing component, controlling the sharing component to be displayed on the target page with a preset sharing special effect.

4. The method according to claim 3, characterized in that In response to selecting the sharing component, controlling the sharing component to be displayed on the target page with a preset sharing special effect includes: Based on the interactive operation, determining a target area on the target page; In response to a sliding operation on the sharing component, the sharing component is moved to the target area to present a special effect that the sharing component disappears after entering the target area.

5. The method according to claim 1, characterized in that Also includes: According to the interactive operation, a target area is determined on the target page; A preset guiding special effect is displayed in the target area, and the guiding special effect is used to guide the sharing component to be moved to the target area.

6. The method according to any one of claims 1 to 5, characterized in that: Get the sharing template that matches the target page, including: Determine a page type of the target page, where the page types include at least two, and different page types correspond to different candidate sharing templates; Based on the page type of the target page, a sharing template matching the target page is determined from the candidate sharing templates.

7. The method according to claim 6, characterized in that The page type includes an account page, and the account page corresponds to at least two account sharing templates; Correspondingly, based on the page type of the target page, determining a sharing template matching the target page from the candidate sharing templates includes: When the page type of the target page is an account page, determining the account type based on the account page, the account type includes: a first type or a second type; When the account type is the first type, obtaining a first account sharing template, wherein the first account sharing template carries a preset identifier; When the account type is the second type, a second account sharing template is obtained, and the second account sharing template does not carry the preset identifier.

8. The method according to claim 6, characterized in that The page type includes a video page, and the video page corresponds to at least one video sharing template; Correspondingly, based on the page type of the target page, determining a sharing template matching the target page from the candidate sharing templates includes: In the case that the page type of the target page is a video page, a target video sharing template is determined from the at least one video sharing template based on the video page.

9. The method according to any one of claims 1 to 5, characterized in that: Creating a sharing component based on the target page and the sharing template includes: Determine the information to be shared based on the target page; Fill the information to be shared into the sharing template to generate the sharing component.

10. The method according to any one of claims 1 to 5, characterized in that: Also includes: Verifying the shared template; If the sharing template is not obtained or the verification fails, a sharing failure prompt message is displayed.

11. The method according to any one of claims 1 to 5, characterized in that: Also includes: Obtaining a sharing result, wherein the sharing result includes: content sharing success or content sharing failure; In case the content is shared successfully, deleting the sharing component; In the event that content sharing fails, display a sharing failure notification; or In response to the operation of canceling the sharing component, hiding and deleting the sharing component, and displaying a sharing cancellation notification.

12. A content sharing method, characterized in that: For a second terminal, the method includes: In response to an interactive operation with a first terminal, a sharing component provided by the first terminal is received, wherein the sharing component is associated with a target link, and the target link corresponds to a target page; According to the target link, display the target page; The interactive operation includes shortening the distance between the first terminal and the second terminal to a preset range.

13. The method according to claim 12, characterized in that Displaying the target page according to the target link includes: According to the target link, matching and launching a target application; Parsing the target link through the target application to extract the path and parameters of the target page; According to the path and parameters of the target page, the target page is loaded and displayed.

14. The method according to claim 12, characterized in that Also includes: Display the sharing component, the first control, and the second control; In response to selecting the first control, displaying the target page; In response to selecting the second control, hiding and deleting the sharing component.

15. A content sharing device, characterized in that: For a first terminal, the device comprises: A first display module, used for displaying a target page; An acquisition module, configured to respond to an interactive operation with the second terminal and acquire a sharing template matching the target page; A second display module, configured to create a sharing component based on the target page and the sharing template, and display the sharing component on the target page; The sending module is used for sending data corresponding to the sharing component to the second terminal in response to selecting the sharing component, so that the second terminal displays the target page based on the received data.

16. A content sharing device, characterized in that: For a second terminal, the device comprises: A receiving module, configured to respond to an interactive operation with a first terminal and receive a sharing component provided by the first terminal, wherein the sharing component is associated with a target link, and the target link corresponds to a target page; A display module, used for displaying the target page according to the target link; The interactive operation includes: shortening the distance between the first terminal and the second terminal to within a preset range.

17. A computer device, characterized in that: include: at least one processor; and a memory communicatively connected to the at least one processor; wherein: The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 14.

18. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the method according to any one of claims 1 to 14 is implemented.

19. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to claims 1 to 14 are implemented.