Resource sharing method, device, electronic device and storage medium
By establishing independent call links and resource sharing instructions between the call component and the resource sharing component, users can display the resource sharing component on the page, and quickly share video streaming resources in a targeted manner, solving the problem of resource waste in the virtual room and achieving efficient utilization of resources.
Patent Information
- Application Number
- CN202310287824.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-22
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2043-03-22
AI Technical Summary
In the prior art, when users share resources in a virtual room, they may share resources that are not interested, resulting in waste of communication resources and equipment resources.
By establishing independent call links and resource sharing instructions between the call component and the resource sharing component, users can display the resource sharing component on the page, quickly share video streaming resources in a targeted manner, and save communication resources and device resources.
It enables users to quickly and targetedly share resources of interest, avoid resource waste, and improve resource utilization efficiency.
Smart Images

Figure CN116506541B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of Internet technology, and in particular to a resource sharing method, apparatus, electronic device, and storage medium. Background Technology
[0002] With the rapid development of the mobile internet, the dissemination of information and news based on mobile terminals has become increasingly sophisticated. Typically, information and news can be disseminated through various browsers or applications embedded in the terminal.
[0003] Based on data and user research, users have a need to share videos with other users while browsing various applications. In some implementations, resource sharing typically involves creating a virtual room, inviting users who want to communicate to join, share their screens, and browse and exchange content together. In other words, users share and communicate by creating rooms; once the room is closed, sharing and communication cease. However, if users remain in the room, the resources shared in one room may not be of interest to the other, leading to a waste of communication and device resources. Summary of the Invention
[0004] This disclosure provides a resource sharing method, apparatus, electronic device, and storage medium. The technical solution of this disclosure is as follows:
[0005] According to a first aspect of the present disclosure, a resource sharing method is provided, comprising:
[0006] The call component is displayed; the call component indicates that a call link has been established between the first client and the second client.
[0007] If a preset resource is currently playing on the first page where the call component is located, a resource sharing component is displayed on the first page; the resource sharing component indicates how to share the preset resource with the second client.
[0008] In some possible embodiments, the call component and the resource sharing component are components on a preset application loaded on the first client.
[0009] In some possible embodiments, if it is determined that a preset resource is currently playing on the first page where the call component is located, displaying a resource sharing component on the first page includes:
[0010] If a video stream is currently playing on the first page where the call component is located, the resource sharing component will be displayed in the preset area of the call component on the first page.
[0011] The resource sharing component displays a first prompt message; the first prompt message prompts the user to share the video stream resource with the second client through the resource sharing component.
[0012] In some possible embodiments, after displaying the first prompt message on the resource sharing component, the method further includes:
[0013] In response to a resource sharing command triggered by the resource sharing component, a video stream resource is sent to the second client;
[0014] A second prompt message is displayed on the resource sharing component; the second prompt message indicates that the video stream resource has been shared with the second client.
[0015] In some possible embodiments, the method further includes:
[0016] Determine the timestamp for sending the video stream resource to the second client;
[0017] Determine the image frame corresponding to the timestamp from the video stream resource;
[0018] The image frame is reduced in size based on the size of the call component to obtain the reduced image frame;
[0019] Display the scaled-down image frame on the call component.
[0020] In some possible embodiments,
[0021] The call component and the resource sharing component are two components with overlapping edges;
[0022] or;
[0023] The resource sharing component is smaller than the call component, and the resource sharing component overlaps the call component.
[0024] or;
[0025] The call component and resource sharing component are displayed in a preset area on the first page, and can be switched to display the call component and resource sharing component respectively.
[0026] According to a second aspect of the present disclosure, a resource sharing method is provided, comprising:
[0027] The call component is displayed; the call component indicates that a call link has been established between the second client and the first client.
[0028] Display resource sharing prompt information; the resource sharing prompt information indicates that the first client has pushed preset resources to the second client;
[0029] The preset resources are pushed by the resource sharing component on the first client; the resource sharing component is displayed on the first page of the first client when preset conditions are met; the preset conditions include the first client displaying the call component and determining that the preset resources are currently playing on the first page where the call component is located.
[0030] In some possible embodiments, a resource sharing prompt message is displayed, including:
[0031] The resource viewing component is displayed in the first area of the second page;
[0032] The method also includes:
[0033] Responding to resource viewing commands based on the resource viewing component, play preset resources.
[0034] In some possible embodiments, the method further includes:
[0035] The reply component is displayed in the second area of the second page;
[0036] In response to a reply command triggered by the reply component, a reply page is displayed on the second page;
[0037] The preset resources are displayed on the reply page.
[0038] In some possible embodiments, the method further includes:
[0039] If the display duration of the resource sharing prompt message exceeds the preset duration, the resource sharing prompt message will be hidden.
[0040] Display the display components corresponding to the preset resources;
[0041] Responding to display commands based on display components, play preset resources.
[0042] According to a third aspect of the present disclosure, a resource sharing device is provided, comprising:
[0043] The first display module is configured to execute the display call component; the call component indicates that a call link has been established between the first client and the second client.
[0044] The second display module is configured to, if it is determined that a preset resource is currently playing on the first page where the call component is located, display a resource sharing component on the first page; the resource sharing component indicates that the preset resource is shared with the second client through the resource sharing component.
[0045] In some possible embodiments, the call component and the resource sharing component are components on a preset application loaded on the first client.
[0046] In some possible embodiments, the second display module is configured to perform:
[0047] If a video stream is currently playing on the first page where the call component is located, the resource sharing component will be displayed in the preset area of the call component on the first page.
[0048] The resource sharing component displays a first prompt message; the first prompt message prompts the user to share the video stream resource with the second client through the resource sharing component.
[0049] In some possible embodiments, the apparatus further includes:
[0050] The sending module is configured to send video stream resources to the second client in response to a resource sharing instruction triggered by the resource sharing component;
[0051] The second display module is configured to display a second prompt message on the resource sharing component; the second prompt message indicates that the video stream resource has been shared with the second client.
[0052] In some possible embodiments, the second display module is configured to perform:
[0053] Determine the timestamp for sending the video stream resource to the second client;
[0054] Determine the image frame corresponding to the timestamp from the video stream resource;
[0055] The image frame is reduced in size based on the size of the call component to obtain the reduced image frame;
[0056] Display the scaled-down image frame on the call component.
[0057] In some possible embodiments,
[0058] The call component and the resource sharing component are two components with overlapping edges;
[0059] or;
[0060] The resource sharing component is smaller than the call component, and the resource sharing component overlaps the call component.
[0061] or;
[0062] The call component and resource sharing component are displayed in a preset area on the first page, and can be switched to display the call component and resource sharing component respectively.
[0063] According to a fourth aspect of the present disclosure, a resource sharing apparatus is provided, comprising:
[0064] The third display module is configured to execute the display call component; the call component indicates that a call link has been established between the second client and the first client.
[0065] The fourth display module is configured to display resource sharing prompts; these prompts indicate that the first client has pushed preset resources to the second client.
[0066] The preset resources are pushed by the resource sharing component on the first client; the resource sharing component is displayed on the first page of the first client when preset conditions are met; the preset conditions include the first client displaying the call component and determining that the preset resources are currently playing on the first page where the call component is located.
[0067] In some possible embodiments, the fourth display module is configured to perform:
[0068] The resource viewing component is displayed in the first area of the second page;
[0069] The method also includes:
[0070] Responding to resource viewing commands based on the resource viewing component, play preset resources.
[0071] In some possible embodiments, the fourth display module is configured to perform:
[0072] The reply component is displayed in the second area of the second page;
[0073] In response to a reply command triggered by the reply component, a reply page is displayed on the second page;
[0074] The preset resources are displayed on the reply page.
[0075] In some possible embodiments, the device further includes a fifth display module configured to perform:
[0076] If the display duration of the resource sharing prompt message exceeds the preset duration, the resource sharing prompt message will be hidden.
[0077] Display the display components corresponding to the preset resources;
[0078] Responding to display commands based on display components, play preset resources.
[0079] According to a fifth aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to execute instructions to implement the method as described in either the first or second aspect above.
[0080] According to a sixth aspect of the present disclosure, a computer-readable storage medium is provided, wherein when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the method of any one of the first or second aspects of the present disclosure.
[0081] According to a seventh aspect of the present disclosure, a computer program product is provided, the computer program product including a computer program stored in a readable storage medium, wherein at least one processor of a computer device reads from the readable storage medium and executes the computer program, causing the computer device to perform the method of any one of the first or second aspects of the present disclosure.
[0082] The technical solutions provided by the embodiments of this disclosure have at least the following beneficial effects:
[0083] The call component indicates that a call link has been established between the first client and the second client. If it is determined that a preset resource is currently playing on the first page where the call component is located, a resource sharing component is displayed on the first page, indicating that the preset resource can be shared with the second client through the resource sharing component. This embodiment of the application avoids the coexistence of sharing and communication within a room framework by using separate call components and resource sharing components. Furthermore, by constructing the resource sharing component using the existing call component, users can achieve targeted and rapid sharing, saving communication and device resources.
[0084] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0085] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0086] Figure 1 This is a schematic diagram illustrating an application environment according to an exemplary embodiment;
[0087] Figure 2 This is a flowchart illustrating a resource sharing method according to an exemplary embodiment;
[0088] Figure 3 This is a schematic diagram of a component on a first page according to an exemplary embodiment. Figure 1 ;
[0089] Figure 4This is a schematic diagram illustrating the layout of a call component and a resource sharing component on a first page according to an exemplary embodiment;
[0090] Figure 5 This is a schematic diagram illustrating the layout of a call component and a resource sharing component on a first page according to an exemplary embodiment;
[0091] Figure 6 This is a schematic diagram illustrating the layout of a call component and a resource sharing component on a first page according to an exemplary embodiment;
[0092] Figure 7 This is a flowchart illustrating a call component according to an exemplary embodiment;
[0093] Figure 8 This is a schematic diagram of a component on a first page according to an exemplary embodiment. Figure 2 ;
[0094] Figure 9 This is a schematic diagram of a component on a first page according to an exemplary embodiment. Figure 3 ;
[0095] Figure 10 This is a flowchart illustrating a resource sharing method according to an exemplary embodiment;
[0096] Figure 11 This is a schematic diagram of a second page according to an exemplary embodiment. Figure 1 ;
[0097] Figure 12 This is a schematic diagram of a second page according to an exemplary embodiment. Figure 2 ;
[0098] Figure 13 This is a schematic diagram of a second page according to an exemplary embodiment. Figure 3 ;
[0099] Figure 14 This is a block diagram illustrating a resource sharing device according to an exemplary embodiment;
[0100] Figure 15 This is a block diagram illustrating a resource sharing device according to an exemplary embodiment;
[0101] Figure 16 This is a block diagram illustrating an electronic device for resource sharing according to an exemplary embodiment. Detailed Implementation
[0102] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0103] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar first objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0104] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data used for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.
[0105] Please see Figure 1 , Figure 1 This is a schematic diagram illustrating an application environment of a resource sharing method according to an exemplary embodiment, such as... Figure 1 As shown, the application environment may include server 011, first client 012, and second client 013.
[0106] In some possible embodiments, server 011 may be a standalone physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. The operating system running on the server may include, but is not limited to, Android, iOS, Linux, Windows, Unix, etc.
[0107] In some possible embodiments, the first client 012 and the second client 013 described above may include, but are not limited to, image-type clients such as smartphones, desktop computers, tablets, laptops, smart speakers, digital assistants, augmented reality (AR) / virtual reality (VR) devices, and smart wearable devices. They may also be software running on the aforementioned clients, such as applications or mini-programs. Optionally, the operating system running on the client may include, but is not limited to, Android, iOS, Linux, Windows, and Unix systems.
[0108] In some possible embodiments, client 012 can display a call component, indicating that a call link has been established between the first client and the second client. If it is determined that a preset resource is currently playing on the first page where the call component is located, a resource sharing component is displayed on the first page, indicating that the preset resource can be shared with the second client through the resource sharing component. This application embodiment avoids the coexistence of sharing and communication within a room framework by using independent call components and resource sharing components. Furthermore, by constructing the resource sharing component using the existing call component, users can achieve targeted and rapid sharing, saving communication and device resources.
[0109] In one exemplary implementation, both the client and server databases can be node devices in the blockchain system, capable of sharing acquired and generated information with other node devices within the blockchain system, thus enabling information sharing among multiple node devices. Multiple node devices in the blockchain system can be configured with the same blockchain, which consists of multiple blocks. Adjacent blocks are related, ensuring that any data tampering in any block can be detected by the next block, thereby preventing data tampering and guaranteeing the security and reliability of the data in the blockchain.
[0110] Figure 2 This is a flowchart illustrating a resource sharing method according to an exemplary embodiment, such as... Figure 2 As shown, the resource sharing method can be applied to clients, such as mobile devices, including smartphones or iPads, as well as desktop computers and other devices. The flowchart includes the following steps:
[0111] In step S201, the call component is displayed; the call component indicates that a call link has been established between the first client and the second client.
[0112] In this embodiment, steps S201-203 can be applied to a first client, which can be a resource sharing initiator and a resource sharing receiver. In an optional embodiment, the first client can be a first mobile client.
[0113] Optionally, the call component in step S201 above and the resource sharing component in step S203 below can be components in different applications loaded on the first client. For example, the call component is a component in the first application, and the resource sharing component is a component in the second application.
[0114] Optionally, the call component in step S201 above and the resource sharing component in step S203 below can be components of a preset application loaded on the first client, that is, components of the same application. In this case, the first client only needs to use the runtime storage to launch one application to achieve multi-functional application, saving client resources.
[0115] Optionally, the first page in step S203 below can also be a page in the preset application.
[0116] In one possible implementation, the default application could be a music application, a video application, an object sharing application, or the like.
[0117] In this embodiment of the application, based on the fact that the call component and the resource sharing component are located in the same preset application, the first client and the second client can establish a call link in the following ways.
[0118] Optionally, the preset application on the first client has been launched, and the preset application on the second client has also been launched. The first client or the second client can initiate a call request to the other client through the call function within the preset application. Correspondingly, when the second client or the first client responds to the call request, a call link is established between the first client and the second client. The first user corresponding to the first client and the second user corresponding to the second client can communicate based on the established call link.
[0119] Optionally, a default application on the first client has been launched, but a default application on the second client has not. The first client can initiate a call request to the second client through the call function within the default application. After the second client authorizes the default application function, a notification can be displayed on the second client to inform the second user that the first client initiated a call request through the default application. When the second user clicks the notification on the second client, the default application can be launched, and a call link can be established with the first client. In this way, the first user corresponding to the first client and the second user corresponding to the second client can communicate based on the established call link.
[0120] Optionally, a preset application on the second client is already launched, while the preset application on the first client is not. The second client can initiate a call request to the first client through the call function within the preset application. After the first client authorizes the preset application function, a notification can be displayed on the first client to inform it that the second client has initiated a call request through the preset application. When the first user clicks the notification on the first client, the preset application can be launched, and a call link can be established between the second client and the first user. In this way, the first user corresponding to the first client and the second user corresponding to the second client can communicate based on the established call link.
[0121] In this embodiment, after the first client and the second client establish a call link, the first client can display the call component on the current page of a preset application. Taking a video application as an example, assuming the first user is browsing on the video recommendation page of the video application, the first client can display the call component on the video recommendation page. If the first user is browsing on the settings page of the video application, the first client can display the call component on the settings page. That is, no matter which page the first user is browsing on in the video application, the first client can display the call component on that page. Similarly, after the first client and the second client establish a call link, the second client can display the call component on the current page of the preset application.
[0122] In another alternative embodiment, once the first client and the second client establish a call link, the call component on the current page of the first client or the second client can be hidden, but the call link between the first client and the second client still exists, and the first user and the second user can make a call.
[0123] In step S203, if it is determined that a preset resource is currently playing on the first page where the call component is located, a resource sharing component is displayed on the first page; the resource sharing component indicates that the preset resource is shared with the second client through the resource sharing component.
[0124] In an optional embodiment, before executing step S203, the first client displays a call component on the first page to indicate that the first user corresponding to the first client and the second user corresponding to the second client are communicating based on the established call link. When the first client detects that a preset resource is currently playing on the first page where the call component is located, the first client can display a resource sharing component on the first page. The first client can then share the preset resource with the second client through this resource sharing component.
[0125] In another optional embodiment, before executing step S203, the first client displays a call component on another page to indicate that the first user corresponding to the first client and the second user corresponding to the second client are communicating based on the established call link. Optionally, when the first client is triggered to enter the first page, the first client jumps from another page to the first page. When the first client detects that a preset resource is currently playing on the first page where the call component is located, the first client can display a resource sharing component on the first page. The first client can then share the preset resource with the second client through this resource sharing component.
[0126] In this embodiment, the preset resource can be an audio stream resource or a video stream resource. In an optional embodiment, if the preset resource is a video stream resource, the video stream resource can include short video stream resources, long video stream resources, and live stream resources.
[0127] Figure 3 This is a schematic diagram of a component on a first page according to an exemplary embodiment. Figure 1 ,like Figure 3 As shown, the interface includes a first page 300, and a call component 301 and a resource sharing component 302 displayed on the first page 300. In an optional embodiment, the first client can display the call component 301 on the first page 300, and if it is determined that the resource currently playing on the first page 300 is a video stream resource (e.g., ... Figure 3 The video stream resource about electric vehicles shown can be displayed on the first page 300 using the resource sharing component 302. For example... Figure 3 As shown, the first client can display a first prompt message (such as "Share with him") on the resource sharing component. This first prompt message is used to prompt the first client to share video stream resources with the second client through the resource sharing component.
[0128] Optionally, the call component can also include some call information, such as... Figure 3 The image shown is the avatar and call duration. The avatar indicates the second client that established a communication link with the first client. Specifically, the avatar indicates the account information of the second user corresponding to the second client that established the communication link with the first client.
[0129] In this embodiment of the application, in order to enhance the correlation between the resource sharing component and the call component on the first page, so that the first user does not need to spend a lot of time to understand the functions of each component, the resource sharing component can be set in the preset area of the call component.
[0130] Figure 4-6 This is a schematic diagram illustrating the layout of a call component and a resource sharing component on a first page according to an exemplary embodiment. The resource sharing component can be placed in a preset area of the call component, which can be represented as placing the resource sharing component next to and adjacent to the call component, that is, the call component and the resource sharing component are two components with overlapping edges. Figure 4 As shown, the top edge of the resource sharing component can overlap with the bottom edge of the call component, the bottom edge of the resource sharing component can overlap with the top edge of the call component, the left side of the resource sharing component can overlap with the right side of the call component, and so on.
[0131] To enhance the correlation between the resource sharing component and the call component, and also to reduce the size of the component occupying the video frame, it is possible to... Figure 5 As shown, the resource sharing component can be placed within a preset area of the call component. This can be achieved by setting the size of the resource sharing component to be smaller than the size of the call component, and by overlapping the resource sharing component with the call component. For example, the resource sharing component can be superimposed on the call duration of the call component.
[0132] Figure 5 The component layout shown not only strengthens the correlation between the resource sharing component and the call component but also reduces the size of the components occupying the video screen. However, the resource sharing component overlaid on the call component does obscure information on the call component. Therefore, as... Figure 6 As shown, the resource sharing component can be set in the preset area of the call component. This can be achieved by not displaying the call component and the resource sharing component simultaneously in the preset area of the first page, but by switching (left and right or up and down) to display the call component and the resource sharing component in the preset area of the first page respectively.
[0133] In one optional embodiment, after the first prompt message is displayed on the resource sharing component, the first client can respond to a resource sharing instruction triggered by the resource sharing component and send video stream resources to the second client. After the video stream resources are sent, a second prompt message is displayed on the resource sharing component, indicating that the video stream resources have been shared with the second client. For example, the second prompt message could be "Shared".
[0134] Optionally, if the first client detects that the screen area corresponding to the resource sharing component has been clicked, the first client can generate a resource sharing instruction and send the video stream resource to the second client according to the resource sharing instruction.
[0135] In one optional embodiment, when the first client displays the resource sharing component, it can obtain the identifier of the second client corresponding to the call component. The identifier of the second client can be a device identifier, IP address, or MAC address. Subsequently, the first client can fill in the identifier of the second client in the sharing parameters of the resource sharing component to associate the resource sharing component with the second client.
[0136] In another alternative embodiment, the first client can obtain the identifier of the second client corresponding to the call component when responding to a resource sharing instruction triggered by the resource sharing component. Subsequently, the first client can fill in the identifier of the second client in the sharing parameters of the resource sharing component to associate the resource sharing component and the second client.
[0137] In one alternative embodiment, the first client sends video stream resources to the second client by packaging the entire video stream resources and sending them to the second client through the server, or by sending a resource sharing instruction to the server, instructing the server to send the video stream resources to the second client.
[0138] However, transmitting video stream resources between the first client and the server, or between the server and the second client, inevitably consumes a significant amount of communication resources. Therefore, sending video stream resources from the first client to the second client can be represented by the first client sending the identification information of the video stream resources to the second client through the server. Alternatively, sending video stream resources from the first client to the second client can be represented by the first client sending a resource sharing instruction to the server, instructing the server to send the identification information of the video stream resources to the second client.
[0139] The identification information of the video stream resource can be the address information of the video stream resource. Optionally, when the second client receives the address information of the video stream resource, it can retrieve the video stream resource from the address information and play it according to the playback instructions.
[0140] Since the sharing of video stream resources between the first client and the second client is predicated on the first user corresponding to the first client and the second user corresponding to the second client being in a call, the sharing of video stream resources based on this premise can carry the intention of discussing with the other party. In this embodiment of the application, when the first client shares video stream resources based on the resource sharing component, it performs different sharing methods according to the characteristics of the video stream resources.
[0141] In this embodiment of the application, when responding to a resource sharing instruction triggered by a resource sharing component, the first client can obtain the duration of the video stream resource currently playing on the first page. If the duration of the video stream resource is less than a preset duration, it can send the entire video stream resource or the address information of the entire video stream resource to the second client.
[0142] If the duration of the video stream resource is greater than or equal to a preset duration, the first client can determine whether the video stream resource contains highlight clips. If it does, the first client can send the highlight clips or their address information to the second client. Optionally, if multiple highlight clips appear, the first client can identify any one of them as the highlight clip to be shared.
[0143] If the first client determines that the video stream resource does not contain any exciting clips, it can identify the segment to be shared from the video stream resource based on the time point on the video stream resource corresponding to the time the first user clicked the resource sharing component, and send the segment to be shared or its address information to the second client. Specifically, the first client can use the time point on the video stream resource corresponding to the time the first user clicked the resource sharing component as the starting point, intermediate point, or ending point to extract a segment of a first duration to be shared from the video stream resource.
[0144] In one optional embodiment, when the first client responds to a resource sharing instruction triggered by the resource sharing component, and the duration of the video stream resource is greater than or equal to a preset duration, and the video stream resource contains highlights or segments to be shared, two sub-components can appear on the resource sharing component. The first sub-component can indicate that only highlights or segments to be shared are shared, and the second sub-component can indicate that not only highlights or segments to be shared are shared, but also the video stream resource can be shared, so as to prevent the second client from needing to respond to an instruction to play the video stream resource after playing the highlights or segments to be shared.
[0145] Figure 7 This is a flowchart illustrating a call component according to an exemplary embodiment, such as... Figure 7 As shown, it includes at least steps S701-S707:
[0146] In step S701, the timestamp for sending the video stream resource to the second client is determined.
[0147] Optionally, the timestamp for sending the video stream resource to the second client can refer to the moment when the first user clicks the resource sharing component, and the current playback time of the video stream resource on the first page. For example, if the video stream resource is playing at the 10th second, then the first client can determine the 10th second of the video stream resource as the timestamp for sending the video stream resource to the second client.
[0148] In step S703, the image frame corresponding to the timestamp is determined from the video stream resource.
[0149] Optionally, if the 10th second of the video stream resource corresponds exactly to an image frame of that video stream resource, then that image frame can be identified as the image frame corresponding to the timestamp. If the 10th second of the video stream resource is between two image frames, then either of those two image frames can be taken as the 10th second of the video stream resource.
[0150] In step S705, the image frame is reduced in size based on the size of the call component to obtain a reduced image frame.
[0151] Optionally, the first client may scale down the image frame with reference to the size of the call component to obtain a scaled-down image frame that is the same size as the call component, or a scaled-down image frame that is smaller than the size of the call component.
[0152] In step S707, the scaled-down image frame is displayed on the call component.
[0153] Figure 8 This is a schematic diagram of a component on a first page according to an exemplary embodiment. Figure 2 ,like Figure 8 As shown, the interface includes a first page 300, and a call component 301 and a resource sharing component 302 displayed on the first page 300. The scaled-down image frame is overlaid on the call component 301. This provides the first user corresponding to the first client with a stronger sense that a preset resource has been shared.
[0154] In this embodiment, during a call between the first user corresponding to the first client and the second user corresponding to the second client, if the first client is playing a video stream, the audio of the video stream will be lower than when they are not simultaneously talking. Simultaneously, the first and second clients will use echo cancellation to ensure that both parties hear only the audio of their conversation, without any interference from the video stream audio.
[0155] In this embodiment of the application, in addition to the quick resource sharing component presented on the first page for sharing resources with the corresponding second client, preset resources can also be shared through other means.
[0156] Figure 9 This is a schematic diagram of a component on a first page according to an exemplary embodiment. Figure 3 ,like Figure 9 As shown, the first page 300 may also include a sharing component 900. The first client can respond to a sharing command triggered by this sharing component and display a sharing page 901 on the first page. Optionally, the sharing page may include two areas: the upper area displays the object to be shared, which may include a second client or other clients; the lower area displays the content to be shared, including the identifier information of a preset resource on the right (such as the cover image of the preset resource), private chat information, etc. Optionally, the sharing component can also be used to share on other applications, such as some instant messaging programs.
[0157] Figure 10 This is a flowchart illustrating a resource sharing method according to an exemplary embodiment, such as... Figure 10 As shown, the resource sharing method can be applied to clients, such as mobile devices, including smartphones or iPads, as well as desktop computers and other devices. The flowchart includes the following steps:
[0158] In step S1001, the call component is displayed; the call component indicates that a call link has been established between the second client and the first client.
[0159] In this embodiment, steps S1001-1003 can be applied to the second client. In an optional embodiment, the second client can be a second mobile client.
[0160] Optionally, the call component in step S1001 above can be a component of a preset application loaded on the second client. Optionally, the second page mentioned below can also be a page in the preset application.
[0161] In this embodiment of the application, the features and functions of the call component displayed in the second client are the same as those of the call component in the first client, and will not be repeated here.
[0162] In step S1003, a resource sharing prompt message is displayed; wherein, the resource sharing prompt message indicates that the first client has pushed a preset resource to the second client; the push of the preset resource is determined by the resource sharing component on the first client; the resource sharing component is displayed on the first page of the first client when preset conditions are met; the preset conditions include the first client displaying a call component and determining that the preset resource is currently playing on the first page where the call component is located.
[0163] In this embodiment, when the first client shares a preset resource with the second client in response to a resource sharing instruction triggered by the resource sharing component, the second client can receive a resource sharing prompt message and display it on a second page of the second client. The second page can be any page in a preset application on the second client.
[0164] Figure 11 This is a schematic diagram of a second page according to an exemplary embodiment. Figure 1 ,like Figure 11 As shown, the interface includes a second page 1100, and displays resource sharing prompts and a call component showing the ongoing call. In an optional embodiment, the second client may display resource sharing prompts in a preset area 1101 of the second page.
[0165] Optionally, the resource sharing prompt information includes identification information of the resource sharing initiator, such as the avatar of the first client, and may also include description information of the preset resource being shared. Optionally, the preset area of the second page includes a resource viewing component 1102 displayed in the first area. The second client can respond to a resource viewing command triggered by this resource viewing component and play the preset resource (such as a video stream resource). If another video is currently playing on the second page, when the second client detects that the resource viewing component has been clicked, it can replace the other video with the preset resource and play it on the second page.
[0166] In this embodiment of the application, the second client can also display a reply component in the second area of the second page. For example... Figure 11 As shown, the second client can determine the area outside the first area where the resource viewing component 1102 is located in the preset area 1101 of the second page as the second area, and define the second area as the reply component.
[0167] Figure 12 This is a schematic diagram of a second page according to an exemplary embodiment. Figure 2 ,like Figure 12 As shown, the second client can respond to the reply command triggered by the reply component, display reply page 1200 on the second page, and display the preset resources to be played on the reply page.
[0168] Figure 13 This is a schematic diagram of a second page according to an exemplary embodiment. Figure 3 ,like Figure 13 As shown, if the duration of the resource sharing prompt exceeds a preset duration, the second client can hide the resource sharing prompt and display the display component 1300 corresponding to the preset resource on the second page. Responding to the display instruction based on the display component, the preset resource can be played. Optionally, the display component can be placed next to the call component to prompt the second user about the resource sharing from the first client, preventing the second user from missing the resource sharing prompt for some reason.
[0169] In summary, the solution proposed in this application breaks away from the traditional "watch together" room framework of other solutions, and cleverly combines audio and video calls with resource sharing within the application. Users no longer need to experience the less-than-ideal "watch together" experience within a rigid room. Instead, they can easily share good content with one click, and the other party can view it with one click, enabling real-time voice communication and discussion. Because it does not force both parties to enter a "watch together" room to view long-running content streams, but rather allows users to actively select and share videos that interest them, it achieves more engaging and efficient real-time interaction based on video content, and also makes reasonable use of communication and device resources to a certain extent.
[0170] Figure 14 This is a block diagram illustrating a resource sharing device according to an exemplary embodiment. The device has the function of implementing the data processing method in the above-described method embodiments; the function can be implemented in hardware or by hardware executing corresponding software. (Refer to...) Figure 14 The device includes a first display module 1401 and a second display module 1402:
[0171] The first display module 1401 is configured to execute a display call component; the call component indicates that a call link has been established between the first client and the second client.
[0172] The second display module 1402 is configured to, if it is determined that a preset resource is currently playing on the first page where the call component is located, display a resource sharing component on the first page; the resource sharing component indicates that the preset resource is shared with the second client through the resource sharing component.
[0173] In some possible embodiments, the call component and the resource sharing component are components on a preset application loaded on the first client.
[0174] In some possible embodiments, the second display module is configured to perform:
[0175] If a video stream is currently playing on the first page where the call component is located, the resource sharing component will be displayed in the preset area of the call component on the first page.
[0176] The resource sharing component displays a first prompt message; the first prompt message prompts the user to share the video stream resource with the second client through the resource sharing component.
[0177] In some possible embodiments, the apparatus further includes:
[0178] The sending module is configured to send video stream resources to the second client in response to a resource sharing instruction triggered by the resource sharing component;
[0179] The second display module is configured to display a second prompt message on the resource sharing component; the second prompt message indicates that the video stream resource has been shared with the second client.
[0180] In some possible embodiments, the second display module is configured to perform:
[0181] Determine the timestamp for sending the video stream resource to the second client;
[0182] Determine the image frame corresponding to the timestamp from the video stream resource;
[0183] The image frame is reduced in size based on the size of the call component to obtain the reduced image frame;
[0184] Display the scaled-down image frame on the call component.
[0185] In some possible embodiments,
[0186] The call component and the resource sharing component are two components with overlapping edges;
[0187] or;
[0188] The resource sharing component is smaller than the call component, and the resource sharing component overlaps the call component.
[0189] or;
[0190] The call component and resource sharing component are displayed in a preset area on the first page, and can be switched to display the call component and resource sharing component respectively.
[0191] It should be noted that the apparatus provided in the above embodiments is only illustrated by the division of the above functional modules when implementing its functions. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.
[0192] Figure 15 This is a block diagram illustrating a resource sharing device according to an exemplary embodiment. The device has the function of implementing the data processing method in the above-described method embodiments; the function can be implemented in hardware or by hardware executing corresponding software. (Refer to...) Figure 15 The device includes a third display module 1501 and a fourth display module 1502:
[0193] The third display module 1501 is configured to execute the display call component; the call component indicates that a call link has been established between the second client and the first client.
[0194] The fourth display module 1502 is configured to display a resource sharing prompt message; wherein the resource sharing prompt message indicates that the first client has pushed a preset resource to the second client;
[0195] The preset resources are pushed by the resource sharing component on the first client; the resource sharing component is displayed on the first page of the first client when preset conditions are met; the preset conditions include the first client displaying the call component and determining that the preset resources are currently playing on the first page where the call component is located.
[0196] In some possible embodiments, the fourth display module is configured to perform:
[0197] The resource viewing component is displayed in the first area of the second page;
[0198] The method also includes:
[0199] Responding to resource viewing commands based on the resource viewing component, play preset resources.
[0200] In some possible embodiments, the fourth display module is configured to perform:
[0201] The reply component is displayed in the second area of the second page;
[0202] In response to a reply command triggered by the reply component, a reply page is displayed on the second page;
[0203] The preset resources are displayed on the reply page.
[0204] In some possible embodiments, the device further includes a fifth display module configured to perform:
[0205] If the display duration of the resource sharing prompt message exceeds the preset duration, the resource sharing prompt message will be hidden.
[0206] Display the display components corresponding to the preset resources;
[0207] Responding to display commands based on display components, play preset resources.
[0208] It should be noted that the apparatus provided in the above embodiments is only illustrated by the division of the above functional modules when implementing its functions. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.
[0209] Figure 16 This is a block diagram illustrating a device 3000 for resource sharing according to an exemplary embodiment. For example, device 3000 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.
[0210] Reference Figure 16 The device 3000 may include one or more of the following components: a processing component 3002, a memory 3004, a power component 3006, a multimedia component 3008, an audio component 3010, an input / output (I / O) interface 3012, a sensor component 3014, and a communication component 3016.
[0211] Processing component 3002 typically controls the overall operation of device 3000, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 3002 may include one or more processors 3020 to execute instructions to complete all or part of the steps of the methods described above. Furthermore, processing component 3002 may include one or more modules to facilitate interaction between processing component 3002 and other components. For example, processing component 3002 may include a multimedia module to facilitate interaction between multimedia component 3008 and processing component 3002.
[0212] Memory 3004 is configured to store various image types of data to support operation of device 3000. Examples of this data include instructions for any application or method operating on device 3000, contact data, phonebook data, messages, pictures, videos, etc. Memory 3004 can be implemented by any image type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0213] Power supply component 3006 provides power to various components of device 3000. Power supply component 3006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to device 3000.
[0214] Multimedia component 3008 includes a screen that provides an output interface between the device 3000 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 3008 includes a front-facing camera and / or a rear-facing camera. When the device 3000 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0215] Audio component 3010 is configured to output and / or input audio signals. For example, audio component 3010 includes a microphone (MIC) configured to receive external audio signals when device 3000 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 3004 or transmitted via communication component 3016. In some embodiments, audio component 3010 also includes a speaker for outputting audio signals.
[0216] I / O interface 3012 provides an interface between processing component 3002 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0217] Sensor assembly 3014 includes one or more sensors for providing status assessments of various aspects of device 3000. For example, sensor assembly 3014 may detect the on / off state of device 3000, the relative positioning of components such as the display and keypad of device 3000, changes in the position of device 3000 or a component of device 3000, the presence or absence of user contact with device 3000, the orientation or acceleration / deceleration of device 3000, and temperature changes of device 3000. Sensor assembly 3014 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 3014 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 3014 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.
[0218] Communication component 3016 is configured to facilitate wired or wireless communication between device 3000 and other devices. Device 3000 can access wireless networks based on communication standards, such as WiFi, carrier networks (such as 2G, 3G, 4G, or 5G), or combinations thereof. In one exemplary embodiment, communication component 3016 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 3016 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0219] In an exemplary embodiment, the apparatus 3000 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.
[0220] Embodiments of the present invention also provide a computer-readable storage medium, which can be disposed in an electronic device to store at least one instruction or at least one program related to implementing a resource sharing method, wherein the at least one instruction or the at least one program is loaded and executed by the processor to implement the resource sharing method provided in the above-described method embodiments.
[0221] In an exemplary embodiment, a storage medium including instructions is also provided, such as a memory 3004 including instructions, which can be executed by a processor 3020 of the device 3000 to perform the above method. Optionally, the storage medium may be a non-transitory computer-readable storage medium, such as a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device.
[0222] Embodiments of the present invention also provide a computer-readable storage medium that, when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, enables the electronic device to perform the method of any one of the first aspects of the embodiments of the present disclosure.
[0223] Embodiments of the present invention also provide a computer program product comprising a computer program stored in a readable storage medium, wherein at least one processor of a computer device reads from the readable storage medium and executes the computer program, causing the computer device to perform the method of any of the first aspects of the embodiments of the present disclosure.
[0224] It should be noted that the order of the above embodiments of the present invention is merely for descriptive purposes and does not represent the superiority or inferiority of the embodiments. Furthermore, specific embodiments have been described above. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps described in the claims can be performed in a different order than that shown in the embodiments and still achieve the desired result. Additionally, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multi-resource sharing and parallel processing are also possible or may be advantageous.
[0225] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the apparatus embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0226] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.
[0227] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A resource sharing method, characterized in that: Applied to the first client, including: Displaying a call component; the call component indicates that a call link has been established between the first client and the second client; If it is determined that the preset resource is currently being played on the first page where the call component is located, a resource sharing component is displayed on the first page; the resource sharing component indicates that the preset resource is shared with the second client through the resource sharing component; In response to a resource sharing instruction triggered by the resource sharing component, obtaining the duration of the video stream resource currently being played on the first page; If the duration of the video stream resource is greater than or equal to the preset duration, determining whether the video stream resource contains a highlight segment; If included, the highlight clip or the address information of the highlight clip is sent to the second client.
2. The resource sharing method according to claim 1, characterized in that: The call component and the resource sharing component are components on a preset application loaded by the first client.
3. The resource sharing method according to claim 1, characterized in that: If it is determined that the preset resource is currently being played on the first page where the call component is located, displaying the resource sharing component on the first page includes: If it is determined that the video stream resource is currently being played on the first page where the call component is located, the resource sharing component is displayed in a preset area of the call component on the first page; A first prompt message is displayed on the resource sharing component; the first prompt message prompts to share the video stream resource with the second client through the resource sharing component.
4. The resource sharing method according to claim 3, characterized in that: After the first prompt information is displayed on the resource sharing component, the method further includes: In response to a resource sharing instruction triggered by the resource sharing component, sending the video stream resource to the second client; A second prompt message is displayed on the resource sharing component; the second prompt message indicates that the video stream resource has been shared with the second client.
5. The resource sharing method according to claim 4, characterized in that: The method further comprises: Determine a timestamp for sending the video stream resource to the second client; Determine the image frame corresponding to the timestamp from the video stream resource; Reducing the image frame based on the size of the call component to obtain a reduced image frame; The reduced image frame is displayed on the call component.
6. The resource sharing method according to any one of claims 1 to 5, characterized in that: The call component and the resource sharing component are two components with overlapping component edges; or; The size of the resource sharing component is smaller than the size of the call component, and the resource sharing component overlaps the call component; or; The call component and the resource sharing component are displayed in a preset area of the first page, and the call component and the resource sharing component are displayed separately by switching.
7. A resource sharing method, characterized in that: Applied to the second client, including: Displaying a call component; the call component indicates that a call link has been established between the second client and the first client; Display resource sharing prompt information; wherein the resource sharing prompt information indicates that the first client has pushed a preset resource to the second client; The push of the preset resource is determined by the resource sharing component on the first client; the resource sharing component is displayed on the first page of the first client when a preset condition is met; the preset condition includes that the first client displays the call component and determines that the preset resource is currently being played on the first page where the call component is located; The first client is used to respond to a resource sharing instruction triggered by the resource sharing component, obtain the duration of the video stream resource currently playing on the first page, and if the duration of the video stream resource is greater than or equal to a preset duration, determine whether the video stream resource contains a highlight segment, and if so, send the highlight segment or the address information of the highlight segment to the second client.
8. The resource sharing method according to claim 7, characterized in that: The display of resource sharing prompt information includes: Displaying a resource viewing component in a first area of a second page; The method further comprises: In response to a resource viewing instruction based on the resource viewing component, the preset resource is played.
9. The resource sharing method according to claim 8, characterized in that: The method further comprises: Displaying a reply component in a second area of the second page; In response to a reply instruction triggered by the reply component, displaying a reply page on the second page; The preset resource is displayed in the reply page.
10. The resource sharing method according to any one of claims 7 to 9, characterized in that: The method further comprises: If the duration of displaying the resource sharing prompt information exceeds a preset duration, hiding the resource sharing prompt information; Display the display component corresponding to the preset resource; In response to a presentation instruction based on the presentation component, the preset resource is played.
11. A resource sharing device, characterized in that: include: A first display module is configured to execute a display call component; The call component indicates that a call link has been established between the first client and the second client; A second display module is configured to execute, if it is determined that a preset resource is currently being played on the first page where the call component is located, displaying a resource sharing component on the first page; The resource sharing component indicates to share the preset resource with the second client via the resource sharing component; The call component and the resource sharing component are components in different applications loaded on the first client; or a component of the same application loaded on the first client; The first client is used to respond to a resource sharing instruction triggered by the resource sharing component, obtain the duration of the video stream resource currently playing on the first page, and if the duration of the video stream resource is greater than or equal to a preset duration, determine whether the video stream resource contains a highlight segment, and if so, send the highlight segment or the address information of the highlight segment to the second client.
12. A resource sharing device, characterized in that: include: A third display module is configured to execute a display call component; The call component indicates that a call link has been established between the second client and the first client; A fourth display module is configured to execute display of resource sharing prompt information; wherein the resource sharing prompt information indicates that the first client has pushed a preset resource to the second client; The push of the preset resource is determined by the resource sharing component on the first client; the resource sharing component is displayed on the first page of the first client when a preset condition is met; the preset condition includes that the first client displays the call component and determines that the preset resource is currently being played on the first page where the call component is located; The first client is used to respond to a resource sharing instruction triggered by the resource sharing component, obtain the duration of the video stream resource currently playing on the first page, and if the duration of the video stream resource is greater than or equal to a preset duration, determine whether the video stream resource contains a highlight segment, and if so, send the highlight segment or the address information of the highlight segment to the second client.
13. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the resource sharing method as described in any one of claims 1 to 6 or 7 to 10.
14. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the resource sharing method as described in any one of claims 1 to 6 or 7 to 10.
Citation Information
Patent Citations
Information sharing method and device, mobile terminal and computer readable medium
CN108388671A
Content sharing method, device and equipment, computer readable storage medium and product
CN115639934A