Information presentation method, apparatus, device, and storage medium
Patent Information
- Application Number
- JP2024539839
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2022-05-06
- Filing Date
- 2023-04-28
- Publication Date
- 2025-02-19
- Estimated Expiration
- 2043-04-28
Smart Images

Figure 2025504772000001_ABST
Abstract
Description
[Technical field]
[0001] This application claims priority to a Chinese patent application bearing application number 202210488369.6, filed with the China Patent Office on May 6, 2022, the entire contents of which are incorporated by reference into this application.
[0002] TECHNICAL FIELD The embodiments of the present disclosure relate to the field of Internet technology, for example, to an information presentation method, an apparatus, a device, and a storage medium. [Background technology]
[0003] With the rapid development of Internet technology and terminal technology, interactions between users become more and more convenient. Multiple users can share the same media stream content, and users sharing a media stream can also have real-time voice communication. Summary of the Invention
[0004] SUMMARY OF THE DISCLOSURE The embodiments of the present disclosure provide an information presentation method, an apparatus, a device, and a storage medium that can optimize information presentation means based on a media stream.
[0005] An embodiment of the present disclosure provides an information presentation method applied to a first user side, including the steps of: displaying a first content corresponding to a first user on a target page of a preset application, displaying a floating control on the target page, and displaying a shared media stream in the floating control, where the shared media stream includes a media stream corresponding to a shared interaction between the first user and at least one second user; and displaying a preset control in the floating control, where the preset control is used for at least one of displaying information related to the shared interaction between the first user and the at least one second user and controlling the shared interaction between the first user and the at least one second user.
[0006] An embodiment of the present disclosure further provides an information presentation device disposed on a first user side, including: a media stream presentation module configured to display first content corresponding to a first user on a target page of a preset application, display a floating control on the target page, and display a shared media stream on the floating control, where the shared media stream includes a media stream corresponding to a shared interaction between the first user and at least one second user; and a control display module configured to display a preset control on the floating control, where the preset control is used for at least one of displaying information related to the shared interaction between the first user and the at least one second user and controlling the shared interaction between the first user and the at least one second user.
[0007] An embodiment of the present disclosure further provides an electronic device including at least one processor and a memory device configured to store at least one program, the at least one program, when executed by the at least one processor, causing the at least one processor to realize an information presentation method provided by an embodiment of the present disclosure.
[0008] An embodiment of the present disclosure further provides a storage medium including computer-executable instructions, which, when executed by a computer processor, perform the information presentation method provided by the embodiment of the present disclosure. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a scenario architecture diagram of an application scenario applicable to the information presentation method provided by an embodiment of the present disclosure. [Diagram 2] FIG. 2 is a schematic flowchart of an information presentation method provided by an embodiment of the present disclosure. [Diagram 3] FIG. 3 is a schematic diagram of an interface provided by an embodiment of the present disclosure. [Figure 4] FIG. 4 is a schematic flowchart of another information presentation method provided by an embodiment of the present disclosure. [Diagram 5] FIG. 5 is a schematic diagram of another interface interaction provided by an embodiment of the present disclosure. [Figure 6] FIG. 6 is a schematic diagram of another interface interaction provided by an embodiment of the present disclosure. [Figure 7] FIG. 7 is a schematic structural diagram of a floating control provided by an embodiment of the present disclosure. [Figure 8] FIG. 8 is a schematic structural diagram of an information display device provided by an embodiment of the present disclosure. [Figure 9] FIG. 9 is a schematic structural diagram of an electronic device provided according to an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Hereinafter, the embodiments of the present disclosure will be described with reference to the drawings. Although some embodiments of the present disclosure are shown in the drawings, it is understood that the present disclosure can be realized in a variety of forms, and should not be construed as being limited to the embodiments described herein, but rather, these embodiments are provided to allow the present disclosure to be more thorough and complete. It is understood that the drawings and embodiments of the present disclosure are for illustrative purposes only, and do not limit the scope of protection of the present disclosure.
[0011] As will be understood, steps described in the method embodiments of the present disclosure can be performed in different orders and / or in parallel. Also, method embodiments may include additional steps and / or omit performance of illustrated steps. The scope of the present disclosure is not limited in this respect.
[0012] As used herein, the term "including" and variations thereof are open inclusions, including but not limited to. The term "based on" is "based at least in part on." The term "in one embodiment" refers to "at least one embodiment," the term "in another embodiment" refers to "at least one other embodiment," and the term "in some embodiments" refers to "at least some embodiments." Relevant definitions of other terms are provided in the description below.
[0013] It should be noted that concepts such as "first", "second" and the like referred to in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order or interdependence of functions performed by these devices, modules or units.
[0014] It should be noted that the modifications "a" and "a" referred to in this disclosure are exemplary and not limiting, and should be understood by one of ordinary skill in the art as "one or more," unless the context clearly dictates otherwise.
[0015] The names of messages or information interacted between multiple devices in the embodiments of the present disclosure are for illustrative purposes only and are not used to limit the scope of these messages or information.
[0016] As can be understood, before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of personal information related to the present disclosure should be notified to users by appropriate means in accordance with relevant laws and regulations, and their consent should be obtained.
[0017] For example, upon receiving an active request from a user, in response, a prompt message is sent to the user to clearly inform the user that the operation requested by the user requires the acquisition and use of the user's personal information, so that the user can decide by himself / herself whether to provide personal information to software or hardware, such as an electronic device, an application, a server, or a storage medium, that performs the operation of the technical solution of the present disclosure, based on the prompt message.
[0018] As an optional, but non-limiting implementation, the manner in which a prompt message is sent to the user in response to receiving the user's active request may be, for example, a pop-up window in which the prompt message can be displayed in text and which also includes a selection control for the user to select "agree" or "disagree" to providing personal information to the electronic device.
[0019] As can be understood, the above process of notifying the user and obtaining the user's permission is merely exemplary and is not intended to limit the implementation of the present disclosure, and other methods that comply with relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0020] As can be understood, the data related to the technical solution (including but not limited to the data itself, the acquisition or use of the data) must comply with the requirements of corresponding laws, regulations and related provisions.
[0021] FIG. 1 is a scenario architecture diagram of an application scenario applicable to the information presentation method provided by the embodiment of the present disclosure. Referring to FIG. 1, the application scenario may include a server 100, a first electronic device 101, and a second electronic device 102. It should be noted that the number of electronic devices may be more, but the number is not limited, and FIG. 1 is used only as an exemplary description. The multiple electronic devices are communicatively connected to the server to realize information interaction. The electronic devices may be mobile devices such as mobile phones, smart watches, tablet computers, or personal digital assistants, or may be devices such as desktop computers. A user using an electronic device can make real-time calls, content sharing, message interactions, and the like through preset applications installed on the electronic device. Content sharing may include media stream sharing (hereinafter referred to as shared interaction). The server may provide support for the preset applications. Exemplarily, when multiple users perform shared interactions, each user can control the shared video stream, such as switching videos. In the embodiment of the present disclosure, the type of the preset application is not limited, and may be, for example, a video application, a live streaming application, an information application, or other types of applications.
[0022] 2 is a schematic flow chart of an information presenting method provided by an embodiment of the present disclosure. The embodiment of the present disclosure is applied to the case of media stream presenting, and the method can be performed by an information presenting device, which can be realized in the form of software and / or hardware, and can be selectively realized via an electronic device, which may be an electronic device used by any user participating in media stream sharing.
[0023] As shown in FIG. 2, the method includes the following steps:
[0024] Step 201: displaying a first content corresponding to a first user on a target page of a preset application, displaying a floating control on the target page, and displaying a shared media stream in the floating control, where the shared media stream includes a media stream corresponding to a shared interaction between the first user and at least one second user.
[0025] In the embodiment of the present disclosure, the first user is a user currently using a preset application, i.e., a local user, and the account currently logged in to the preset application is the account of the first user. The target page can be understood as a page for displaying content corresponding to the first user in a preset application program, and the type of content is not limited, and may be, for example, media content. Selectively, the content includes a media stream, and the media stream corresponding to the user can be understood as a personalized media stream pushed to the user. The first content includes a first media stream, and the first media stream may be a media stream pushed to the first user, for example, generating a corresponding media stream determination method based on the first user, and determining a personalized first media stream for the first user based on the media stream determination method. The media content included in the media stream may include images, graphics and text, audio, or video, etc.
[0026] In the embodiment of the present disclosure, two or more users can support real-time media stream sharing, and a second user can be understood as a user who shares the same media stream as a first user, i.e., an end user, and the number of second users can be one or more, but is not limited. The shared media stream includes a media stream corresponding to a sharing interaction between a first user and at least one second user. That is, each user participating in the sharing interaction can view the shared media stream through the electronic device used by him / her. The source of the shared media stream is not limited.
[0027] Exemplarily, a floating control can be understood as a view element, and displaying the floating control on a target page can be understood as displaying the view element on the target page in an overlay. The properties of the floating control, such as shape, size, color, transparency, and display position, can be set according to actual needs, for example, the floating control can be a floating box type control. After the floating control is displayed, the user can adjust the display position of the floating control by inputting a drag operation. Optionally, at least one border or at least two borders of the floating control overlap with the boundary of the target page.
[0028] In an embodiment of the present disclosure, in addition to displaying the first content corresponding to the first user on the target page, a floating control is also displayed on the target page, and the shared media stream is displayed in the floating control, so that the first user can view the content of his or her page and the shared media stream simultaneously, which helps to improve the user experience.
[0029] 3 is a schematic diagram of an interface provided by an embodiment of the present disclosure. As shown in FIG. 3, a first media stream is displayed on a target page 301, and a floating control 302 is displayed on the target page 301. Optionally, the floating control 302 is located at the top left corner of the target page 301, and the left and top boundaries of the floating control 302 overlap with the left and top boundaries of the target page 301, respectively.
[0030] It should be noted that users participating in a media stream sharing interaction can also be understood to be in the same shared space. When a first user creates the shared space and invites other users to join the shared space, it can be considered that the second user is not currently present before the other users join the shared space, and the shared media stream can be displayed in a floating control and waiting for the second user to join during playback, and further, when all the second users leave the shared space and only the first user remains in the shared space, the shared media stream can be continued to be displayed in the floating control.
[0031] Step 202, displaying a preset control on the floating control, the preset control displaying related information of the shared interaction between the first user and the at least one second user and / or controlling the shared interaction between the first user and the at least one second user.
[0032] Exemplarily, the preset control can be always displayed in the floating control, or can be displayed when a preset display condition is met. Optionally, during the process of displaying the shared media stream, the control may not be displayed in the floating control, thus reducing the interference of the control with the content of the shared media stream, and allowing the floating control to display the pure content, so that the user can obtain a pure viewing experience. When the user wants to set a sharing interaction, the user can input a trigger operation into the floating control, and the type of the trigger operation is not limited, and may be, for example, a click or a long press. After the user triggers the floating control, the preset control is displayed in the floating control. Optionally, the preset control is displayed when a message or notification is received. The type, display position and number of the preset control can be set according to actual needs.
[0033] As shown in FIG. 3, the preset control 303 may be displayed in the bottom right corner of a floating control.
[0034] Exemplarily, the preset control can be used to display related information of the sharing interaction between the first user and at least one second user, and the related information can include, for example, user identifiers of users participating in the sharing interaction, and interaction messages sent during the process of the sharing interaction, etc. The preset control can also be used to control the sharing interaction between the first user and at least one second user, that is, based on the preset control, a control operation of the sharing interaction can be input, and different controls can be set according to different control operations. For example, the preset control can include at least one of a sharing user invitation control, a sharing page switching control, a floating control close control, a presentation pause control of a shared media stream, a media content switching control during a shared media stream, a video screen control for real-time calling, and an audio control (e.g., a microphone switch control) for real-time calling. Similarly, control operations input via the preset controls may include an operation to invite a sharing user, an operation to switch to a sharing page, an operation to close a floating control, an operation to pause the presentation of a shared media stream, an operation to switch to the previous or next media content in a shared media stream, and an operation to turn on or off a microphone switch for a real-time call, etc.
[0035] In the information presentation method provided by the embodiment of the present application, a first content corresponding to a first user is displayed on a target page of a preset application, a floating control is displayed on the target page, a shared media stream including a media stream corresponding to a sharing interaction between the first user and at least one second user is displayed on the floating control, and a preset control for displaying related information of the sharing interaction and / or controlling the sharing interaction is displayed on the floating control. With the above technical solution, the first user can simultaneously watch the content of his / her page and the media stream shared with the second user on the application interface, and can directly control the sharing interaction through the preset control of the floating control or display related information of the sharing interaction on the floating control, thereby improving the convenience of the sharing interaction and improving the user experience during the media stream sharing process.
[0036] In the embodiment of the present disclosure, the source of the shared media stream is not limited. When the first content includes a first media stream, the first media stream is different from the shared media stream. Exemplarily, the shared media stream can be set by a user who initiates the sharing interaction, and can be determined based on a media stream corresponding to the user who initiates the sharing interaction, for example, obtaining the shared media stream after filtering the media stream corresponding to the user based on a preset filtering rule. The preset filtering rules can include, for example, filtering of graphics and text media content. They can also be determined based on media streams corresponding to at least two users who participate in the sharing interaction, for example, merging a first media stream corresponding to a first user and a second media stream corresponding to a second user to obtain the shared media stream.
[0037] Optionally, the method further includes, before displaying the shared media stream on the floating control, generating a target determination method based on a first determination method of a first media stream corresponding to the first user and a second determination method of a second media stream corresponding to the at least one second user, and determining a shared media stream based on the target determination method. In this manner, a media stream of common interest to a plurality of users can be determined based on the target determination method, and the media streams can be shared. When the number of second users is at least two, the second determination method for generating the target determination method can include a second determination method corresponding to one second user, and can include a second determination method corresponding to each of at least two second users.
[0038] Exemplarily, the first user is user A, and the second users include user B and user C, where user A can initiate a sharing interaction and determine a shared media stream in one of the following ways: For example, obtain a shared media stream after filtering the media stream of user A; Another example is obtain a shared media stream by merging media streams corresponding to user A, user B, and user C, respectively; As a further example, generate a target recommendation algorithm based on the media stream recommendation algorithm corresponding to user A, user B, and user C, respectively, and determine a shared media stream based on the target recommendation algorithm.
[0039] In some embodiments, the related information includes a conversation message generated by the shared interaction, and the step of displaying a preset control in the floating control includes, in response to receiving a conversation message of at least one second user among all second users, displaying a first preset control in the floating control, the first preset control being used to display a user identifier of the at least one second user among all second users and / or the conversation message. Exemplarily, the conversation message may include at least one type of message in the form of text, voice, or image. With this configuration, instant message interaction between a local user and an end user can be supported, and the conversation message is displayed in the floating control, allowing the local user to directly check all or part of the content of the message from the floating control without performing a page switching operation or the like, improving the convenience of message interaction, and further presenting a user identifier, thereby allowing the local user to clarify who the user who sent the message is, improving interaction efficiency. When presenting a conversation message, all or part of the message content can be displayed, which can be dynamically determined based on the string length of the message content and the display size of the floating control. The user identifier may be a username, a user nickname, an icon of the user, or the like.
[0040] A first preset control may be selectively displayed within the floating control at a first preset time. Exemplarily, user identifiers and / or conversation messages corresponding to at least two users may be simultaneously displayed in the floating control. The display format of the conversation message is not limited, and may be displayed in a speech bubble format, for example. When the first preset control is used to display the user identifier of the second user, the conversation message may be displayed in a related area outside the floating control displaying the shared media stream. The related area may be, for example, above, below, left or right of the floating control, and the related area may be dynamically determined based on the relative position of the floating control in the target page. That is, related information of the shared interaction may be displayed in a floating control other than the floating control displaying the shared media stream.
[0041] In some embodiments, the method further includes displaying a message interaction page for the at least one second user among all second users in response to a trigger operation of the first user on the conversation message, the message interaction page being used by the first user and the at least one second user among all second users to perform conversation message interaction. In this way, the first user can easily reply to the message of the second user. Optionally, a display priority of the floating control is higher than a display priority of the message interaction page, so as not to affect the first user's viewing of the shared media stream during the reply process.
[0042] Exemplarily, it can be understood that the display priority of the floating control is higher than the display priority of the message interaction page, so that the display of the message interaction page does not interfere with the display of the floating control, for example, the floating control is displayed on a higher level than the message interaction page. Optionally, the message interaction page may be located on a higher level than the target page, and the size of the message interaction page may be equal to or smaller than the size of the target page. The message interaction page may include a return control, and the method may further include returning to the target page in response to the first user triggering the return control.
[0043] In some embodiments, the step of displaying a preset control within the floating control includes displaying a second preset control in the floating control in response to a trigger operation of the first user on the floating control, the second preset control being used to control a shared interaction between the first user and the at least one second user.
[0044] In some embodiments, the second preset control includes a share page switching control, and the method further includes, after displaying the preset control within the floating control, switching the target page to a share page in response to a trigger operation of the first user on the share page switching control, and continuing to display the shared media stream on the share page, and the share page includes a floating control switching control for switching the share page to the floating control. With this setting, a user can switch between the share page and the floating control, and can more flexibly select a viewing mode of the current shared media stream.
[0045] Illustratively, during the switching process between the shared page and the floating control, the progress of the presentation of the media content in the shared media stream is not affected, and the display size of images in the media content may be adjusted to fit the size of the shared page or floating control.
[0046] In some embodiments, the method further includes: continuing to display the shared media stream on the sharing page when detecting that the at least one second user among all second users switches the sharing page of the second user to a floating control by triggering the floating control switching control during the process of presenting the shared media stream in the sharing page. With this setting, during the process of sharing the media stream, when an end user switches the presentation mode of the shared media stream, the impact on the local user side is reduced, and the viewing experience of the local user is guaranteed.
[0047] In some embodiments, the shared media stream includes an image and an audio, and the step of displaying the shared media stream in the floating control includes the steps of displaying an image in the shared media stream in the floating control and prohibiting the playback of the audio from the shared media stream. The image of the first media stream is displayed on the target page, and the audio of the first media stream is played, that is, the first media stream can be normally presented on the target page. By setting in this way, when both the first media stream and the shared media stream also include audio, mutual interference caused by playing the audio of the two media streams simultaneously can be avoided, and the experience of the local user watching his / her own media stream can be ensured. Note that if the local user wants to listen to the audio of the shared media stream, he / she can switch to the shared page to present the shared media stream.
[0048] In some embodiments, the shared interaction supports a real-time call between the first user and the at least one second user, and the method further includes displaying an image in the shared media stream within the floating control, and when the playback of the audio in the shared media stream is prohibited, in response to receiving real-time call data of at least one of all the second users, playing audio corresponding to the real-time call data. Such a setting supports real-time audio communication between a local user and an end user during the process of sharing a media stream, improves the convenience of the interaction between users, and ensures the normal playback of the call audio and the fluency of the audio communication between users while prohibiting the playback of the audio in the shared media stream.
[0049] In some embodiments, the shared interaction supports a real-time call between the first user and the at least one second user, and displaying a preset control within the floating control includes displaying a third preset control within the floating control in response to receiving real-time call data of at least one of all the second users, the third preset control being used to display a user identifier corresponding to at least one second user among all the second users and / or real-time call data of the at least one of all the second users. The real-time call data can further clarify the identity of the user currently being spoken to by the local user, improving interaction efficiency.
[0050] The image corresponding to the real-time call data may be, for example, a video screen of a video call. Optionally, a third preset control may be displayed within the floating control for a second preset time. Exemplarily, the second preset time may be preset to, for example, 2 seconds according to actual needs, and may be set according to a playback time corresponding to the real-time call data. For example, if an end user speaks for 5 seconds, the second preset time may be set to 5 seconds. When presenting the user identifier of the second user, the user identifier of the affiliated user (i.e., the user who is speaking) corresponding to the real-time call data may be presented, or the user identifiers of all second users may be presented. In this case, the user identifiers of the users corresponding to the real-time call data may be presented in a differentiated manner, so that the local user can clearly see all users participating in the shared interaction and can clearly identify the user who is currently speaking. The differentiated presentation may refer to a different border or presentation effect of the user identifier, for example, the border of the user identifier of the affiliated user may be made thicker than that of the user identifier of the non-affiliated user, or a dynamic effect such as flashing may be added.
[0051] In some embodiments, the process of displaying a shared media stream within the floating control further includes adjusting a size of the floating control based on media content in the currently presented shared media stream, which allows the size of the floating control to better match the media content and improve the viewing experience.
[0052] Exemplarily, the size of the floating control can be adjusted according to the image size of the media content in the currently presented shared media stream, e.g., the aspect ratio of the floating control can be adjusted to the aspect ratio of the image. For example, if the aspect ratio of the image is 16:9, the aspect ratio of the floating control can be adjusted to 16:9. If the aspect ratio of the image is 9:16, the aspect ratio of the floating control can be adjusted to 9:16.
[0053] In some embodiments, the step of displaying a preset control in the floating control comprises displaying a fourth preset control in the floating control in response to a third user joining the shared interaction, the fourth preset control being used to display a user identifier corresponding to the third user. With this setting, when a new user joins, the first user is notified of the new user's participation by presenting a user identifier corresponding to the new user, thereby reducing interference with media stream viewing and ensuring a good viewing experience.
[0054] Optionally, a user identifier corresponding to the third user is displayed in the floating control at a third preset time. Also, a user identifier corresponding to the second user may be presented at a fourth preset time. In this way, when a new user joins, the first user can clearly and intuitively see all users participating in the shared interaction. Optionally, when the user identifier of the third user and the user identifier of the second user are presented simultaneously, the two user identifiers can be presented distinctly, allowing the first user to immediately identify the new user. Illustratively, the third user can become the new second user after successfully joining.
[0055] In some embodiments, the method further includes updating the shared media stream based on a determination method of a media stream of at least one user other than the target user during the sharing interaction in response to the target user terminating the sharing interaction. With this setting, when a user terminates the sharing interaction, the shared media stream can be updated in a timely manner, thereby ensuring that the shared media stream is more suitable for the viewing of the remaining users, and the updating method can refer to the related description of the source of the shared media stream above, which will not be described again here. Note that the shared media stream is determined based on a media stream corresponding to the initiating user of the sharing interaction, and when the target user is the initiating user, the new shared media stream can be determined based on a media stream corresponding to the first user who accepts the invitation or any user other than the initiating user.
[0056] In some embodiments, when it is determined that the sharing interaction is started in a video call scenario in response to the first user's trigger operation on a target user identifier in the floating control, the method further includes determining whether a call image on the first user's side and / or a call image on the second user's side is turned on, and if so, switching the target page to a video call page or switching the floating control to a video call mode in response to the first user's trigger operation on a target user identifier in the floating control, in which in the video call mode, the floating control includes a video call screen of the first user and / or a video call screen of a user corresponding to the target user's identifier. By setting in this way, a shortcut can be provided for checking a video call screen when sharing is started in a video call scenario.
[0057] Exemplarily, the video call page includes a video call screen of the first user and / or a video call screen of a user corresponding to the target user identifier, and while switching the target page to the video call page, the floating control can be hidden, or the floating control can continue to be displayed, i.e., the shared media stream can continue to be presented, thereby allowing the first user to watch the shared media stream while viewing the video call screen.
[0058] Exemplarily, the floating control can be switched to a video call mode while the first media stream continues to be displayed on the target page, so that the first user can also watch his / her own media stream while viewing the video call screen.
[0059] Optionally, if it is determined that the shared interaction is not initiated in a video call scenario or if it is determined that the call image on the first user's side and / or the call image on the second user's side is not turned on, the current display mode of the target page and the floating control can be maintained after receiving a trigger operation of the first user on the target user identifier of the floating control.
[0060] In some embodiments, the second preset control includes a floating control close control. After displaying the second preset control in the floating control, the method further includes the steps of: determining whether the sharing interaction is started in a video call scenario in response to a trigger operation of the first user on the floating control close control; if it is determined that the sharing interaction is started in a video call scenario, switching the target page to a video call page, hiding the floating control, and displaying a floating control return control on the video call page; and closing the floating control if the sharing interaction is not started in the video call scenario. With this configuration, the function of the floating control close control is reused, and when the control is triggered, it can be responded to in different ways according to different scenarios in which the sharing interaction is started. In a video call start scenario, the sharing interaction is maintained while switching to a video call page, and a floating control return control is provided, and the floating control return control allows the floating control to be displayed back on the target page, so that the user does not need to start the sharing interaction again and meets the needs of the user to quickly switch between the video call page and the floating control.
[0061] In some embodiments, the step of displaying the shared media stream in the floating control includes detecting that all second user sides corresponding to the at least one second user display the shared media stream via the floating control, and in response, automatically and continuously playing at least two media contents in the shared media stream in the floating control. With this setting, when the first user is watching the shared media stream in the floating control mode and detects that another user participating in the sharing interaction has entered the floating control mode, the media contents in the shared media stream can be automatically and continuously played, reducing the user's active switching operation of the shared contents. Optionally, the first user can perform a switching operation of the media contents in the first media stream on the target page.
[0062] In some embodiments, the method further includes, after switching from the target page in the preset application to a preset page, continuing to display the floating control on the preset page and continuing to display the shared media stream in the floating control. In this manner, the floating control can be maintained during a page switching process, so that the first user can view the shared media stream even when performing operations other than viewing the first media stream in the preset application. Optionally, the preset pages can be all pages in the preset application except the target page, thereby achieving global display of the floating control in the preset application.
[0063] In some embodiments, the floating control exists in a form of a custom view, a preset control is encapsulated in the custom view, and the shared media stream is displayed through a player launched in the custom view. In the preset application, the step of continuing to display the floating control on the preset page and continuing to display the shared media stream on the floating control after switching from the target page to the preset page includes the steps of removing the custom view from the target page in response to an operation of switching the target page to a first page, determining whether the first page is included in a preset whitelist, and if the first page is included in the preset whitelist, determining that the first page is a preset page and displaying the first page; and adding the custom view to the first page and continuing to present the shared media stream using the player. In this way, the floating control is realized by adding a custom view to the target page, which gives the floating control richer functions, can display more styles of controls, improves display effects and interaction effects, and can more flexibly set the pages on which the floating control can be displayed by setting a whitelist.
[0064] In some embodiments, the method further includes continuing to display the floating control on the screen and displaying the shared media stream in the floating control after the preset application is switched to a background execution state, so that the first user can view the shared media stream even when the preset application is in the background.
[0065] Optionally, the method may further include a step of switching the preset application to a foreground execution state and displaying the floating control in the preset application in response to a first user's trigger operation on the floating control after continuing to display the floating control on the screen.
[0066] In some embodiments, the steps of continuing to display the floating control on the screen and displaying the shared media stream in the floating control after the preset application is switched to a background execution state include starting a system floating window service upon detecting that the preset application is switched to a background execution state, using the floating window service to create a floating window and add a custom view to the floating window, where a size of the custom view matches a size of the floating control, and the custom view is used to display the preset control, and starting a player in the custom view and using the player to display the shared media stream. With this configuration, a system-level floating window can be created after the preset application is switched to a background execution state, using the floating window as a container for a custom view, adding a custom view to the floating window, and launching a player in the custom view to continue displaying the shared media stream.
[0067] 4 is a schematic flowchart of another information display method provided by an embodiment of the present disclosure. The embodiment of the present disclosure is described based on any of multiple solutions in the above embodiments. The method includes the following steps:
[0068] Step 401: display a first media stream corresponding to a first user on a target page of a preset application, display a floating control on the target page, display an image of the shared media stream in the floating control, and prohibit playing audio in the shared media stream.
[0069] By way of example, in a preset application, multiple share initiation scenarios may be supported, and the page for inputting the share initiation operation may be any page that supports the share initiation scenario, including other pages such as a target page or a conversation page.
[0070] Exemplarily, after a page other than the target page (which may be recorded as the second page) receives a share start operation, it may be determined whether the second page is included in a preset whitelist. A page included in the preset whitelist is a page that is allowed to display a floating control, and if the second page is included in the preset whitelist, the floating control may be displayed on the second page; if the second page is not included in the preset whitelist, the second page may be switched to a shared page and a floating control switching control may be displayed on the shared page, so that a user may switch the shared page to a floating control mode according to his / her desire.
[0071] Exemplarily, a user can be selected to invite when starting a share interaction, or can be invited after displaying a floating control. Optionally, when starting a share interaction on a conversation page, conversation members corresponding to the conversation page can be automatically invited to participate in the share interaction. Assume that conversation members corresponding to a conversation page include user A (first user) and user B, and when starting a share interaction, user B can be automatically invited to participate in the shared space. Assume that conversation members corresponding to a conversation page include user A (first user), user B, and user C, and when starting a share interaction, user B and user C can be automatically invited to participate in the shared space.
[0072] Optionally, after a first user initiates the sharing interaction, a shared media stream may be determined based on a first media stream corresponding to the first user before other users join the sharing interaction. After a second user joins the sharing interaction, a target determination method is generated based on the first determination method of the first media stream and a second determination method of a second media stream corresponding to the second user, and a shared media stream is determined based on the target determination method.
[0073] Illustratively, the floating controls of the preset applications are present in the form of custom views, which encapsulate the preset controls, and the shared media stream is displayed through a player launched in the custom view. After initiating a share interaction, a custom view can be created, the custom view can be added to the target page, and a player can be launched in the custom view.
[0074] Optionally, at least two borders of the floating control overlap the boundaries of the current page, achieving the visual effect of the floating control being snapped to the page boundaries.
[0075] 5 is a schematic diagram of another interface interaction provided by an embodiment of the present disclosure. A floating control 502 is displayed on a target page 501, and the floating control 502 is attached to the top and right borders of the target page 501. Media content in a first media stream of user A, including images and audio, is played on the target page 501, and images of the media content in the shared media stream are played on the floating control 502.
[0076] Optionally, in response to a drag operation by the first user on the floating control, dynamically adjust a display position of the floating control based on the drag operation, and in response to the first user terminating the drag operation, determine a current position of the floating control, and determine a display position of the floating control in the target page based on the current position. For example, the target page is equally divided into two regions, left and right, and a target region in which a coordinate point corresponding to the current position is located is determined. If the target region is the left region, the horizontal coordinate of the upper left corner point of the display position of the floating control is set to the horizontal coordinate of the upper left corner point of the target page, and if the target region is the right region, the horizontal coordinate of the upper left corner point of the display position of the floating control is set to a value obtained by adding the horizontal coordinate of the upper left corner point of the target page to the width of the screen minus the width of the floating control.
[0077] Step 402: In response to a first user's trigger operation on the floating control, a second preset control is displayed on the floating control.
[0078] The second preset control is used to control a shared interaction between the first user and at least one second user. Each time the floating control is triggered, the kind and type of the second preset control to be displayed can be dynamically determined based on the current scenario.
[0079] As shown in FIG. 5, assuming that a second user has already joined the sharing, after the local user clicks the floating control 502, a sharing page switching control 503, a floating control close control 504, and a shared media stream playback control control 505 (which may include a presentation pause control and a media content switching control in the shared media stream, such as switching to previous and switching to next), and a microphone switch control 506 for real-time calling can be displayed, and a user identifier 507 of a user B (second user) who will participate in the sharing interaction can be further displayed. Optionally, if there is no second user currently participating in the sharing interaction, the user identifier 507 can be replaced with a sharing user invite control. When the first user triggers the sharing user invite control, a user list is displayed, and the first user can select a user to be invited from the user list. Optionally, when sharing is started in a group chat, the user list can display the chat members in the corresponding group, and the user list can display all the friends of the first user.
[0080] Optionally, all preset controls can be hidden after a first user triggers a preset control, or all preset controls can be hidden if the first user does not trigger a preset control within a specified time.
[0081] Step 403, in response to the first user's trigger operation on the sharing page switching control, switch the target page to a sharing page, and continue to display the shared media stream on the sharing page, where the sharing page includes a floating control switching control.
[0082] 5, when user A clicks on the sharing page switching control 503, the target page is switched to the sharing page 508, and the shared media stream continues to be displayed on the sharing page 508. The sharing page 508 includes a floating control switching control 509.
[0083] Step 404, in response to the first user's triggering operation on the floating control switching control, switch the shared page to the target page and continue to display the shared media stream within the floating control.
[0084] As shown in FIG. 5, when User A clicks on the floating control switching control 509, the sharing page is switched to the target page and the shared media stream continues to be displayed in the floating control.
[0085] Step 405, in response to receiving the real-time call data of at least one of all the second users, playing audio corresponding to the real-time call data, and presenting a user identifier corresponding to the at least one second user of all the second users on the floating control at a second preset time.
[0086] Exemplarily, when a first user is watching multiple media streams in the floating control mode and a second user talks with the first user through real-time voice, the local terminal can receive the real-time voice data of the second user, play the voice corresponding to the real-time voice data, and present a user identifier 507 corresponding to user B in the floating control, as shown in Fig. 5. The presentation time may be a first preset time, such as 2 seconds.
[0087] Step 406, detect that all users in the sharing interaction are viewing the shared media stream through the floating control, and in response, automatically and continuously play the media content in the shared media stream in the floating control, and during the automatic playing process, the aspect ratio of the floating control can be dynamically adjusted according to the aspect ratio of the image in the media content.
[0088] As shown in FIG. 5, when media content with an aspect ratio of 16:9 is automatically played, the aspect ratio of the floating control can be adaptively adjusted and the floating control in vertical screen mode can be switched to a floating control 510 in horizontal screen mode.
[0089] Step 407, in response to a third user joining the shared interaction, display a user identifier corresponding to the third user in the floating control at a third preset time.
[0090] For example, as shown in Fig. 5, assuming that a third user newly joins the shared interaction, the user identifier 511 of user C (third user) is displayed in the floating control, the display time is, for example, 5 seconds, and the border of the user identifier can be made thick and blink. Then, user C becomes a member of the second users. That is, at this point, both user B and user C are considered to be second users.
[0091] Step 408, in response to receiving the conversation message of at least one second user among all the second users, displaying a user identifier and the conversation message of the at least one second user among all the users in the floating control for a first preset time.
[0092] For example, as shown in FIG. 5, after user C sends a conversational message such as “I’m here,” user C’s user identifier and conversational message 512 can be displayed in a floating control, and the presentation time can be, for example, 3 seconds.
[0093] Step 409, in response to the first user's trigger operation on the conversation message, display a message interaction page for at least one second user among all the second users, where the display priority of the floating control is higher than the display priority of the message interaction page.
[0094] 6 is a schematic diagram of another interface interaction provided by an embodiment of the present disclosure. Illustratively, in the display process of the conversation message 512, the shared media stream can automatically switch to a media content having an aspect ratio of 9:16 and automatically switch to a floating control in a portrait screen mode. After user A clicks on the conversation message 512, a message interaction page 513 is displayed, and at this time, the floating control is displayed on the upper layer of the message interaction page 513. The message interaction page 513 can display the history message records in the group conversation corresponding to user A, user B, and user C, as well as the conversation message 512 just sent by user C. User A can reply to user C based on the message interaction page 513.
[0095] Step 410, in response to the target user ending the sharing interaction, updates the shared media stream based on a determination method of the media stream of at least one user other than the target user in the sharing interaction.
[0096] Exemplarily, assuming that user B ends the sharing interaction, the shared media streams can be re-determined based on the determination methods of the media streams corresponding to user A and user C, respectively.
[0097] Step 411: after switching from the target page in the preset application to the preset page, continue to display the floating control on the preset page, and continue to display the shared media stream on the floating control.
[0098] Exemplarily, in response to an operation of switching the target page to a first page, the steps include removing the custom view from the target page, determining whether the first page is included in a preset whitelist, and if the first page is included in the preset whitelist, determining that the first page is a preset page and displaying the first page; adding the custom view to the first page, and continuing to present the shared media stream using the player.
[0099] As shown in FIG. 6, assume that user A can continue to watch his / her media stream after closing the message interaction page 513. If user A is interested in the media content currently displayed on the target page and wants to continue learning about user XX, who is the media content publisher, he / she can click user XX's icon 514 (i.e., enter the operation of switching to the first page) to enter user XX's personal homepage 515 (first page), remove the custom view from the target page, and if the personal homepage 515 is included in the preset whitelist, he / she can add the custom view to the personal homepage 515 and continue to use the player to view the shared media stream.
[0100] Exemplarily, the life cycle of an activity in a preset application may be detected, where one activity corresponds to one page, and a start function (onstart) and an end function (onstop) in the life cycle may be detected. When it is detected that an end function corresponding to an activity of a target page is called, it is considered that the target page needs to end display. When it is detected that a start function corresponding to an activity of a first page is called, it is considered that the first page needs to start displaying, and it is considered that a switching operation from the target page to the first page is detected. At this time, it is possible to determine whether the first page has a condition for displaying a floating control, i.e., whether it is possible to determine whether the first page is a preset page. If there is an activity corresponding to the first page by querying the activity whitelist, it means that the first page is a preset page. Since the floating control already exists on the target page, there is no need to recreate it, and the custom view is removed from the target page (e.g., a remove view function can be called) and the custom view is added to the first page (e.g., an addview function can be called). Optionally, if the first page is not a preset page, the custom view can be discarded and recreated when switching to the preset page.
[0101] Step 412 further includes continuing to display the floating control on the screen and continuing to display the shared media stream in the floating control after the preset application is switched to a background execution state.
[0102] Exemplarily, as shown in Figure 6, when User A inputs a swipe up operation from the bottom edge of the screen, the preset application can be switched to a background running state, where the screen displays a desktop interface, the interface displays an icon of the application, and the floating control continues to be displayed on the screen, allowing User A to continue watching the shared media stream.
[0103] Exemplarily, when it is detected that a preset application has been switched to a background execution state, a system floating window service is started, a floating window service is used to create a floating window, a custom view is added to the floating window, the size of the custom view matches the size of the floating control, the custom view encapsulates the preset control, a player is started in the custom view, and the player is used to display the shared media stream.
[0104] Illustratively, Fig. 7 is a schematic structural diagram of a floating control provided by an embodiment of the present disclosure. As shown in Fig. 7, the floating control displayed outside the preset application may include a three-layer structure, where the bottom layer is a system-level floating window 701, the middle layer is a custom view 702, and the top layer is a player layer 703. The custom view 702 may be understood as a container of the player layer 703, and the system-level floating window 701 may be understood as a container of the custom view 702.
[0105] Exemplarily, after the preset application is switched to the background execution state, a floating window service of the system (the service may be a foreground service or a background service, which can be determined according to the version of the operating system of the electronic device) can be started, and after the service is started, it is deemed permitted by the system, a floating window (for example, including initialization of the floating window and configuration of related parameters of the floating window) can be created, a custom view can be added to the floating window, and a drag event can be further added so that the floating window supports dragging. A shared media stream is obtained through the custom view, a player is started, a view corresponding to the player is added to the custom view, a size of the floating control is determined based on the size of the media content in the shared media stream, the floating control is displayed, and the media content in the shared media stream is played through the player. Optionally, after triggering the floating control, a preset application is started or the preset application is switched to the foreground execution state, and based on whether the page after entering the preset application is a preset page, whether to continue to display the floating control on the page is determined.
[0106] According to the information presentation method provided by the embodiment of the present disclosure, a first user can simultaneously view his / her own media stream and the media stream shared with a second user in the interface of an application. Although the audio of the shared media stream in the floating control is not played, the audio of the other party can be played, and smooth audio communication can be performed while reducing the interference of the audio of the shared media stream with the first user's media stream. At the same time, the user can directly set the sharing interaction through the preset control of the floating control, improving the convenience of the sharing setting; the floating control can also display related information such as the conversation messages of newly joined users and end users, further improving the convenience of the interaction; and even when switching to a preset page or switching a preset application to the background, the shared media stream can still be displayed in the floating control mode, meeting the needs of users who watch the shared media stream in various scenarios and further improving the user experience.
[0107] Fig. 8 is a schematic structural diagram of an information presentation device provided by an embodiment of the present disclosure. As shown in Fig. 8, the device is disposed at a first user side, the device includes a media stream presentation module 801 configured to display a first media stream corresponding to the first user on a target page of a preset application, display a floating control on the target page, and display a shared media stream on the floating control, the shared media stream including a media stream corresponding to a shared interaction between the first user and at least one second user, and a control display module 802 configured to display a preset control on the floating control, the preset control is used to display related information of the shared interaction between the first user and the at least one second user and / or control the shared interaction between the first user and the at least one second user.
[0108] In an information presentation device provided by an embodiment of the present disclosure, a first content corresponding to a first user is displayed on a target page of a preset application, a floating control is displayed on the target page, a shared media stream including a media stream corresponding to a sharing interaction between the first user and at least one second user is displayed on the floating control, and a preset control for displaying related information of the sharing interaction and / or controlling the sharing interaction is displayed on the floating control. By adopting the above technical solution, the first user can simultaneously watch the content of his / her page and the media stream shared with the second user on the application interface, and can control the sharing interaction directly through the preset control of the floating control or display related information of the sharing interaction on the floating control, thereby improving the convenience of the sharing interaction and improving the user experience during the media stream sharing process.
[0109] Optionally, the relevant information includes a conversation message generated by the shared interaction, and the control display module 802 is configured to, in response to receiving a conversation message of at least one second user among all second users, display a first preset control within the floating control, and the first preset control is used to display a user identifier and / or the conversation message of the at least one second user among all second users.
[0110] Optionally, the device further includes a message interaction page presentation module configured to present a message interaction page to the at least one second user among all second users in response to a trigger operation of the first user on the conversation message, the message interaction page being used for conversation message interaction between the first user and the at least one second user among all second users.
[0111] Optionally, the message interaction page is located above the target page, and the size of the message interaction page is equal to or smaller than the size of the target page.
[0112] Optionally, the first content includes a first media stream, and the first media stream and the shared media stream are different.
[0113] Optionally, the control display module 802 is configured to display a second preset control on the floating control in response to a trigger operation of the first user on the floating control, the second preset control being used to control a shared interaction between the first user and the at least one second user.
[0114] Optionally, the second preset control includes a share page switching control, and the device further includes, after displaying the preset control within the floating control, switching the target page to a share page in response to a trigger operation of the share page switching control by the first user, and continuing to display the shared media stream on the share page, and the share page includes a floating control switching control for switching the share page to the floating control.
[0115] Optionally, the device further includes a second switching module configured to continue displaying the shared media stream on the sharing page when it detects that, during the process of presenting the shared media stream in the sharing page, the at least one second user among all second users switches the floating control of the sharing page on the second user's side by triggering the floating control switching control.
[0116] Optionally, the shared media stream includes images and audio, and displaying the shared media stream within the floating control includes displaying images in the shared media stream within the floating control and prohibiting playback of audio from the shared media stream.
[0117] Optionally, the shared interaction supports a real-time call between the first user and the at least one second user, and the apparatus further includes a call audio playback module configured to display images in the shared image stream within the floating control and, when playback of audio in the shared media stream is inhibited, to play audio corresponding to the real-time call data in response to at least one of all second users receiving the second user's real-time call data.
[0118] Selectably, the shared interaction supports a real-time call between the first user and the at least one second user, and the control display module 802 is configured to, in response to receiving real-time call data of at least one of all second users, display a third preset control within the floating control, the third preset control being used to display a user identifier corresponding to the at least one second user of all second users and / or the real-time call data of the at least one second user of all second users.
[0119] Optionally, the apparatus further includes a target determination method generation module configured to generate a target determination method based on a first determination method for a first media stream corresponding to the first user and a second determination method for a second media stream corresponding to the second user before displaying the shared media stream in the floating control, and a shared media stream determination module configured to determine the shared media stream based on the target determination method.
[0120] Optionally, the device further includes a size adjustment module configured to adjust a size of the floating control based on media content in the currently presented shared media stream in the process of displaying a shared media stream within the floating control.
[0121] Optionally, the control display module 802 is configured to display a fourth preset control in the floating control in response to a third user joining the shared interaction, the fourth preset control being used to display a user identifier corresponding to the third user.
[0122] Optionally, the apparatus further includes a shared media stream updating module configured to update the shared media stream based on a determination method of a media stream of at least one user other than the target user during the sharing interaction in response to the target user ending the sharing interaction.
[0123] Optionally, the device includes a third switching module configured to determine whether a call image on the first user's side and / or a call image on the second user's side is turned on when it is determined that the shared interaction has been started in a video call scenario in response to the first user's trigger operation on a target user identifier in the floating control, and if the call image on the first user's side and / or the call image on the second user's side is turned on, switch the target page to a video call page, or switch the floating control to a video call mode in response to the first user's trigger operation on a target user's identifier in the floating control, wherein in the video call mode, the floating control includes a video call screen of the first user and / or a video call screen of a user corresponding to the target user's identifier.
[0124] Optionally, the second preset control includes a floating control close control. The device further includes: a determining module configured to determine whether a sharing interaction is initiated in a video call scenario in response to a trigger operation of the first user on the floating control close control after displaying the second preset control in the floating control, a floating control hiding module configured to switch the target page to the video call page, hide the floating control, and display a floating control return control on the video call page if the sharing interaction is initiated in the video call scenario, and a floating control closing module configured to close the floating control if the sharing interaction is not initiated in the video call scenario.
[0125] Selectably, the second preset controls include at least one of a sharing user invitation control, a sharing page switching control, a media content switching control in a shared media stream, a video screen control for real-time calling, and an audio control for real-time calling.
[0126] Selectively, the step of displaying the shared media stream in the floating control includes detecting that all second user sides corresponding to the at least one second user are displaying the shared media stream via the floating control, and in response, automatically and continuously playing at least two media contents in the shared media stream within the floating control.
[0127] Optionally, the device further includes a first presentation module configured to continue to display the floating control on the preset page and continue to display the shared media stream in the floating control after the target page is switched to a preset page in the preset application.
[0128] Optionally, the floating control is in the form of a custom view, the custom view encapsulating the preset controls, and the shared media stream is presented through a player launched with the custom view. A first presentation module is configured to, in response to switching the target page to a first page, remove the custom view from the target page, determine whether the first page is included in a preset whitelist, and if the first page is included in the preset whitelist, determine that the first page is a preset page, display the first page, add the custom view to the first page, and continue presenting the shared media stream using the player.
[0129] Optionally, the device further includes a second presentation module configured to continue displaying the floating control on the screen and displaying the shared media stream in the floating control even after the preset application is switched to a background execution state.
[0130] Optionally, the second presentation module is configured, upon detecting that the preset application has been switched to a background execution state, to start a system floating window service, to use the floating window service to create a floating window, to add a custom view to the floating window, the size of the custom view matching the size of the floating control, the custom view encapsulating the preset control, to launch a player in the custom view, and to continue presenting the shared media stream using the player.
[0131] The information display device provided by the embodiments of the present disclosure is capable of executing the information display method provided by any of the embodiments of the present disclosure, and includes a functional module corresponding to the execution method.
[0132] In addition, the multiple units and modules included in the above-mentioned device are simply partitioned based on functional logic, and are not limited to the above partitions as long as the corresponding functions can be realized. Furthermore, the names of the multiple functional units are intended to make it easy to distinguish them from each other, and are not used to limit the scope of protection of the embodiments of the present disclosure.
[0133] FIG. 9 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. Referring to FIG. 9 below, a schematic structural diagram of an electronic device (e.g., a terminal device or server in FIG. 9) 900 suitable for implementing an embodiment of the present disclosure is shown. The terminal device in the embodiment of the present disclosure includes, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (PDA), tablet computers (Portable Android Devices, PAD), portable multimedia players (Portable Media Players, PMP), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital televisions (TV) and desktop computers. The electronic device shown in FIG. 9 is merely an example and does not limit the functions and scope of use of the embodiment of the present disclosure.
[0134] As shown in FIG. 9, the electronic device 900 may include a processing unit (e.g., a central processing unit, a graphics processor, etc.) 901, which may perform a number of appropriate operations and processes based on a program stored in a read-only memory (ROM) 902 or a program loaded from a storage device 908 into a random access memory (RAM) 903. The RAM 903 also stores various programs and data required for the operation of the electronic device 900. The processing unit 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0135] In general, the following devices may be connected to the I / O interface 905: input devices 906, such as a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 907, such as a Liquid Crystal Display (LCD), speaker, vibrator, etc.; storage devices 908, such as a magnetic tape or hard disk, etc.; and communication devices 909. The communication devices 909 may enable the electronic device 900 to communicate and exchange data with other devices, wirelessly or by wire. Although FIG. 9 shows the electronic device 900 with various devices, it is understood that it is not necessary to implement or include all the devices shown. Instead, more or fewer devices may be implemented or included.
[0136] According to an embodiment of the present disclosure, the process described above with reference to the flowcharts may be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product including a computer program embodied in a non-transitory computer-readable medium, the computer program including a program code for performing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network via a communication device 909, or may be installed from a storage device 908 or from a ROM 902. When the computer program is executed by the processing device 901, it performs the above-mentioned functions defined in the method of the embodiment of the present disclosure.
[0137] The names of messages or information interacted between multiple devices in the embodiments of the present disclosure are for illustrative purposes only and are not used to limit the scope of these messages or information.
[0138] The electronic device provided by the embodiments of the present disclosure and the information presentation method provided by the above embodiments belong to the same disclosure concept, and for technical details not described in detail in this embodiment, reference may be made to the above embodiments.
[0139] An embodiment of the present disclosure provides a computer storage medium having a computer program stored thereon, which, when executed by a processor, realizes the information presentation method provided by the above embodiment.
[0140] It should be noted that the computer readable medium mentioned above in this disclosure may be a computer readable signal medium, a computer readable storage medium, or any combination of the two. The computer readable storage medium may be, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer readable storage media include, but are not limited to, an electrical connection with one or more wires, a portable computer disk, a hard drive, a RAM, a ROM, an Erasable Programmable Read-Only Memory (EPROM) or Flash memory, an optical fiber, a portable Compact Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this disclosure, the computer readable medium may be any tangible medium that contains or stores a program, which can be used by an instruction execution system, apparatus, or device, or any combination thereof. In this disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave and having computer-readable program code embodied therein. Such a propagated data signal may take many forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may be any computer-readable medium other than a computer-readable storage medium that can carry, propagate, or transmit a program for use by an instruction execution system, apparatus, or device, or combination thereof.Program code embodied on a computer readable medium may be transmitted using any suitable medium, including, but not limited to, wire, optical cable, radio frequency (RF), or the like, or any suitable combination thereof.
[0141] In some embodiments, the clients and servers may communicate using any now known or later developed network protocol, such as HyperText Transfer Protocol (HTTP), and may interconnect any form or medium of digital data communication (e.g., a communications network). Examples of communications networks include local area networks (LANs), wide area networks (WANs), networks connected between wide area networks (e.g., the Internet), and end-to-end networks (e.g., ad hoc end-to-end networks), and any now known or later developed networks.
[0142] The computer-readable medium may be included in the electronic device, or may exist independently and not integrated into the electronic device.
[0143] The computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the following operations: display a first media stream corresponding to a first user on a target page of a preset application, display a floating control on the target page, display a shared media stream on the floating control, the shared media stream including a media stream corresponding to a shared interaction between the first user and at least one second user, and display a preset control on the floating control, the preset control being used to display information related to the shared interaction between the first user and the at least one second user and / or to control the shared interaction between the first user and the at least one second user.
[0144] Computer program code for carrying out the operations of the present disclosure can be written in one or more programming languages, including, but not limited to, object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code can run completely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or completely on a remote computer or server. In cases where a remote computer is involved, the remote computer can be connected to the user's computer or to an external computer (e.g., an Internet connection through an Internet Service Provider) via any type of network, including a LAN or WAN.
[0145] The flowcharts and block diagrams in the drawings illustrate possible architectures, functionality, and operation of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowcharts or block diagrams may represent a module, program segment, or part of code that includes one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions shown in the blocks may be executed in a different order than that shown in the figures. For example, two blocks shown one after the other may in fact be executed substantially in parallel or may be executed in the reverse order depending on the functionality involved. Each block of the block diagrams and / or flowchart diagrams, and combinations of blocks in the block diagrams and / or flowchart diagrams, may be implemented by a dedicated hardware-based system that performs the specified functions or operations, or may be implemented using a combination of specialized hardware and computer instructions.
[0146] The units according to the embodiments of the present disclosure can be realized by software or hardware. The names of modules do not limit the modules themselves in some cases, for example, a media stream display module can be described as "displaying a first content corresponding to a first user on a target page of a preset application, displaying a floating control on the target page, and displaying a shared media stream on the floating control, where the shared media stream includes a media stream corresponding to a shared interaction between the first user and at least one second user."
[0147] The functions described herein may be performed, at least in part, by one or more hardware logic components. For example, but not limited to, typical types of hardware logic components that may be used include Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Parts (ASSPs), Systems on Chips (SOCs), Complex Programmable Logic Devices (CPLDs), etc.
[0148] In the context of this application, a machine-readable medium may be a tangible medium that can contain or store a program used by an instruction execution system, apparatus, or device, or a combination thereof. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination thereof. More specific examples of machine-readable storage media include one or more wire-based electrical connections, a portable computer disk, a hard drive, a RAM, a ROM, an EPROM or flash memory, an optical fiber, a CD-ROM, an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0149] According to one or more embodiments of the present disclosure, there is provided an information presentation method applied to a first user side, comprising the steps of: displaying a first content corresponding to a first user on a target page of a preset application, displaying a floating control on the target page, and displaying a shared media stream on the floating control, where the shared media stream includes a media stream corresponding to a shared interaction between the first user and at least one second user; and displaying a preset control on the floating control, where the preset control is used to display information related to the shared interaction between the first user and the at least one second user and / or control the shared interaction between the first user and the at least one second user.
[0150] According to one or more embodiments of the present disclosure, the related information includes a conversation message generated by the shared interaction, and the step of displaying a preset control within the floating control includes a step of displaying a first preset control within the floating control in response to receiving a conversation message of at least one second user among all second users, the first preset control being used to display a user identifier of the at least one second user among all second users and / or the conversation message of the at least one second user.
[0151] According to one or more embodiments of the present disclosure, the method further includes a step of displaying a message interaction page for the at least one second user among all second users in response to a trigger operation of the first user on the conversation message, the message interaction page being used by the first user and the at least one second user among all second users to engage in conversation message interaction.
[0152] According to one or more embodiments of the present disclosure, the message interaction page is located above the target page, and the size of the message interaction page is equal to or smaller than the size of the target page.
[0153] According to one or more embodiments of the present disclosure, the first content includes a first media stream, and the first media stream and the shared media stream are different.
[0154] According to one or more embodiments of the present disclosure, the step of displaying a preset control within the floating control includes displaying a second preset control in the floating control in response to a trigger operation of the first user on the floating control, the second preset control being used to control a shared interaction between the first user and the at least one second user.
[0155] According to one or more embodiments of the present disclosure, the shared media stream includes images and audio, and displaying the shared media stream within the floating control includes displaying images in the shared image stream within the floating control and disabling playback of audio from the shared media stream.
[0156] According to one or more embodiments of the present disclosure, the shared interaction supports a real-time call between the first user and the at least one second user, and the method includes displaying images in the shared image stream within the floating control and, if playback of audio in the shared media stream is inhibited, playing audio corresponding to the real-time call data in response to receiving real-time call data of at least one of all second users.
[0157] According to one or more embodiments of the present disclosure, the shared interaction supports real-time calls between the first user and the at least one second user, and the step of displaying a preset control within the floating control includes, in response to receiving real-time call data of at least one of all the second users, displaying a third preset control within the floating control, the third preset control being used to display a user identifier corresponding to the at least one second user of all the second users and / or an image corresponding to the real-time call data of the at least one of all the second users.
[0158] According to one or more embodiments of the present disclosure, before displaying the shared media stream in the floating control, the method further includes generating a target determination method based on a first determination method for a first media stream corresponding to the first user and a second determination method for a second media stream corresponding to the at least one second user, and determining the shared media stream based on the target determination method.
[0159] According to one or more embodiments of the present disclosure, in the process of displaying a shared media stream within the floating control, the method further includes a step of adjusting a size of the floating control based on media content in the currently presented shared media stream.
[0160] According to one or more embodiments of the present disclosure, the step of displaying a preset control within the floating control includes, in response to a third user joining the shared interaction, displaying a fourth preset control in the floating control, the fourth preset control being used to display a user identifier corresponding to the third user.
[0161] According to one or more embodiments of the present disclosure, the method further includes, in response to the target user ending the sharing interaction, updating the shared media stream based on a determination method of a media stream of at least one user other than the target user in the sharing interaction.
[0162] According to one or more embodiments of the present disclosure, when it is determined that the shared interaction has started in a video call scenario in response to the first user's trigger operation on a target user's identifier in the floating control, the method further includes determining whether a call image on the first user's side and / or a call image on the second user's side is turned on, and if so, switching the target page to a video call page, or switching the floating control to a video call mode in response to the first user's trigger operation on the target user's identifier in the floating control, wherein in the video call mode, the floating control includes a video call screen of the first user and / or a video call screen of a user corresponding to the target user's identifier.
[0163] According to one or more embodiments of the present disclosure, the second preset control includes a floating control close control, and further includes: after displaying the second preset control in the floating control, in response to a trigger operation of the first user on the floating control close control, determining whether the sharing interaction is initiated in a video call scenario, and if so, switching the target page to the video call page, hiding the floating control, and displaying a floating control return control on the video call page, and closing the floating control if the sharing interaction is not initiated in a video call scenario.
[0164] According to one or more embodiments of the present disclosure, the second preset controls include at least one of a shared user invitation control, a shared page switching control, a media content switching control in a shared media stream, a video screen control for real-time calls, and an audio control for real-time calls.
[0165] According to one or more embodiments of the present disclosure, the method further includes, after the target page is switched to a preset page in the preset application, continuing to display the floating control on the preset page and continuing to display the shared media stream in the floating control.
[0166] According to one or more embodiments of the present disclosure, the floating control is in the form of a custom view, the custom view encapsulates the preset control, and the shared media stream is displayed through a player launched in the custom view. In the preset application, after the target page is switched to a preset page, continuing to display the floating control on the preset page and continuing to display the shared media stream in the floating control includes, in response to an operation of switching the target page to a first page, removing the custom view from the target page, determining whether the first page is included in a preset whitelist, and if the first page is included in the preset whitelist, determining that the first page is a preset page and displaying the first page; and adding the custom view to the first page and continuing to present the shared media stream using the player.
[0167] According to one or more embodiments of the present disclosure, an information presentation device is provided that is disposed at a first user side, the information presentation device including: a media stream presentation module configured to display first content corresponding to a first user on a target page of a preset application, display a floating control on the target page, and display a shared media stream in the floating control, where the shared media stream includes a media stream corresponding to a shared interaction between the first user and at least one second user; and a control display module configured to display preset controls in the floating control, where the preset controls are used to display information related to the shared interaction between the first user and the at least one second user and / or control the shared interaction between the first user and the at least one second user.
[0168] According to one or more embodiments of the present disclosure, an electronic device is provided that includes one or more processors and a memory device configured to store one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors perform an information presentation method provided by an embodiment of the present disclosure.
[0169] According to one or more embodiments of the present disclosure, a storage medium is provided that includes computer-executable instructions that, when executed by a computer processor, perform the information presentation method provided by the embodiments of the present disclosure.
[0170] The above description is merely a description of the embodiments of the present disclosure and the technical principles applied. As can be understood by those skilled in the art, the disclosure scope of the present disclosure is not limited to the technical means consisting of a specific combination of the above technical features, but should also cover the embodiments consisting of the above technical features, or other technical means formed by any combination of the above technical features or their equivalent features without departing from the concept disclosed above. For example, the above features are replaced with the technical features (but not limited to) disclosed in the present disclosure having similar functions to form a technical means.
[0171] Additionally, although operations are shown in a particular order, this should not be understood as requiring that these operations be performed in the particular order shown, or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although details of multiple implementations are included in the above description, these should not be construed as limiting the scope of the disclosure. Certain features that are described in the context of separate embodiments may also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment may also be implemented in multiple embodiments separately or in any suitable subcombination.
Claims
1. An information presentation method applied to a first user side, displaying a first content corresponding to a first user on a target page of a preset application, displaying a floating control on the target page, and displaying a shared media stream in the floating control, the shared media stream including a media stream corresponding to a shared interaction between the first user and at least one second user; and displaying a preset control in the floating control, the preset control being used for at least one of displaying information related to a shared interaction between the first user and the at least one second user and controlling the shared interaction between the first user and the at least one second user.
2. The related information includes a conversation message generated by the shared interaction, and the step of displaying a preset control in the floating control includes:
2. The method of claim 1, further comprising the step of displaying a first preset control within the floating control in response to receiving a conversation message of at least one second user among all second users, the first preset control being used to display a user identifier of the at least one second user among all second users and at least one of the conversation messages.
3. 3. The method of claim 2, further comprising the step of presenting a message interaction page to the at least one second user among all second users in response to the first user's trigger operation on the conversation message, the message interaction page being used by the first user and the at least one second user among all second users to conduct conversation message interactions.
4. The method of claim 3 , wherein the message interaction page is located above the target page, and the size of the message interaction page is equal to or smaller than the size of the target page.
5. The method of claim 1 , wherein the first content includes a first media stream, and the first media stream and the shared media stream are different.
6. The step of displaying a preset control in the floating control includes:
2. The method of claim 1, further comprising: displaying a second preset control in the floating control in response to a trigger operation of the first user on the floating control, the second preset control being used to control a shared interaction between the first user and the at least one second user.
7. The shared media stream includes images and audio, and the step of displaying the shared media stream in the floating control includes: The method of claim 5 , further comprising displaying an image in the shared media stream in the floating control and inhibiting playback of sound in the shared media stream.
8. the shared interaction supporting a real-time call between the first user and the at least one second user; 8. The method of claim 7, further comprising the step of: displaying an image in the shared media stream in the floating control; and, if playback of audio in the shared media stream is prohibited, playing audio corresponding to the real-time call data in response to receiving real-time call data of at least one second user among all second users.
9. The shared interaction supports a real-time call between the first user and the at least one second user, and the step of displaying a preset control on the floating control includes:
2. The method of claim 1, further comprising the step of displaying a third preset control on the floating control in response to receiving real-time call data of at least one second user of all second users, the third preset control being used to display at least one of a user identifier corresponding to the at least one second user of all second users and an image corresponding to the real-time call data of the at least one second user of all second users.
10. Before displaying a shared media stream in the floating control, generating a target determination method based on a first determination method of the first media stream corresponding to the first user and a second determination method of a second media stream corresponding to the at least one second user; The method of claim 5 , further comprising: determining a shared media stream based on the target determination method.
11. In the process of displaying a shared media stream in the floating control, the method includes: The method of claim 1 , further comprising adjusting a size of the floating control based on media content in the currently presented shared media stream.
12. The step of displaying a preset control in the floating control includes:
2. The method of claim 1, further comprising: in response to a third user joining the shared interaction, displaying a fourth preset control in the floating control, the fourth preset control being used to display a user identifier corresponding to the third user.
13. 6. The method of claim 5, further comprising: updating the shared media stream based on a determination of a media stream of at least one user other than the target user in the shared interaction in response to the target user ending the shared interaction.
14. if it is determined that the shared interaction is initiated in a video call scenario in response to the first user's trigger operation on the target user's identifier in the floating control, determining whether at least one of a call image on the first user's side and a call image on the second user's side is turned on, and in response to a determination result that at least one of the call image on the first user's side and the call image on the second user's side is turned on, switching the target page to a video call page; or 2. The method of claim 1, further comprising: switching the floating control to a video call mode in response to a trigger operation of the first user on a target user's identifier in the floating control, wherein in the video call mode, the floating control includes at least one of a video call screen of the first user and a video call screen of a user corresponding to the target user's identifier.
15. The second preset control includes a floating control close control, and after the second preset control is displayed in the floating control, determining whether the shared interaction is initiated in a video call scenario in response to a trigger operation by the first user on the floating control close control; in response to determining that the shared interaction was initiated in the video call scenario, switching the target page to a video call page, hiding the floating control, and displaying a floating control return control on the video call page; The method of claim 6 , further comprising: in response to determining that the shared interaction was not initiated in the video call scenario, closing the floating control.
16. The method of claim 6 , wherein the second preset controls include at least one of a sharing user invitation control, a sharing page switching control, a media content switching control in the shared media stream, a video screen control for a real-time call, and an audio control for a real-time call.
17. The method of claim 1 , further comprising: continuing to display the floating control on the preset page and continuing to display the shared media stream in the floating control after the target page is switched to a preset page in the preset application.
18. the floating control is in the form of a custom view, the custom view encapsulating the preset controls, and the shared media stream is displayed through a player launched in the custom view; After the target page is switched to a preset page in the preset application, continuing to display the floating control on the preset page and continuing to display the shared media stream on the floating control includes: in response to an operation of switching the target page to a first page, removing the custom view from the target page, determining whether the first page is included in a preset whitelist, and in response to a determination result that the first page is included in the preset whitelist, determining that the first page is a preset page and displaying the first page; and adding the custom view to the first page and continuing to present the shared media stream using the player.
19. An information presentation device applied to a first user side, a media stream presenting module configured to present first content corresponding to a first user on a target page of a preset application, display a floating control on the target page, and display a shared media stream in the floating control, the shared media stream including a media stream corresponding to a shared interaction between the first user and at least one second user; and a control display module configured to display preset controls in the floating control, the preset controls being used for at least one of displaying information related to a shared interaction between the first user and the at least one second user and controlling the shared interaction between the first user and the at least one second user.
20. Apparatus according to claim 19, comprising a module arranged to carry out the method according to any one of claims 2 to 18.
21. At least one processor; a storage device configured to store at least one program; An electronic device, wherein said at least one program, when executed by said at least one processor, enables said at least one processor to implement the method for presenting information according to any one of claims 1 to 18.
22. A storage medium containing computer-executable instructions, the computer-executable instructions being used to perform the method of presenting information according to any one of claims 1 to 18 when executed by a processor of a computer.
Citation Information
Patent Citations
Screen sharing method based on video call and mobile equipment
CN113141483A
Transmitting video clips of viewers' reactions during a broadcast of a live video stream
US20180234738A1
System and method for multi-user digital interactive experience
US20180352303A1
Media resource playback method and related device
WO2022042382A1