WO2023213245A1 - 信息展示方法、装置、设备及存储介质 - Google Patents

信息展示方法、装置、设备及存储介质 Download PDF

Info

Publication number
WO2023213245A1
WO2023213245A1 PCT/CN2023/091693 CN2023091693W WO2023213245A1 WO 2023213245 A1 WO2023213245 A1 WO 2023213245A1 CN 2023091693 W CN2023091693 W CN 2023091693W WO 2023213245 A1 WO2023213245 A1 WO 2023213245A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
control
shared
media stream
page
Prior art date
Application number
PCT/CN2023/091693
Other languages
English (en)
French (fr)
Inventor
陈书榆
周子君
陈海云
Original Assignee
北京字跳网络技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京字跳网络技术有限公司 filed Critical 北京字跳网络技术有限公司
Publication of WO2023213245A1 publication Critical patent/WO2023213245A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Definitions

  • the embodiments of the present disclosure relate to the field of Internet technology, such as information display methods, devices, equipment and storage media.
  • Embodiments of the present disclosure provide information display methods, devices, storage media, and equipment, which can optimize information display solutions based on media streams.
  • Embodiments of the present disclosure provide an information display method, applied to the first user side, including: displaying the first content corresponding to the first user in a target page of a preset application, displaying a floating control in the target page, and A shared media stream is displayed in the floating control, wherein the shared media stream includes a media stream corresponding to the shared interaction between the first user and at least one second user; displayed in the floating control Preset controls, wherein the preset controls are used for at least one of the following: displaying related information of shared interactions between the first user and the at least one second user and controlling the relationship between the first user and the at least one second user. A shared interaction between at least one second user.
  • Embodiments of the present disclosure also provide an information display device, configured on the first user side, including: a media stream display module configured to display the first content corresponding to the first user in the target page of the preset application.
  • a floating control is displayed on the page, and a shared media stream is displayed in the floating control, wherein the shared media stream includes a media stream corresponding to the shared interaction between the first user and at least one second user.
  • Control display module configured to display preset controls in the floating control, wherein the preset controls are used for at least one of the following to display sharing between the first user and the at least one second user Interaction related information and control of shared interactions between the first user and the at least one second user.
  • An embodiment of the present disclosure also provides an electronic device, the electronic device includes: at least one processing A storage device configured to store at least one program. When the at least one program is executed by the at least one processor, the at least one processor implements the information display method provided by the embodiment of the present disclosure.
  • Embodiments of the present disclosure also provide a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform the information display method provided by the embodiments of the present application.
  • Figure 1 is a scene architecture diagram of an application scenario applicable to an information display method provided by an embodiment of the present disclosure
  • Figure 2 is a schematic flowchart of an information display method provided by an embodiment of the present disclosure
  • Figure 3 is a schematic diagram of an interface provided by an embodiment of the present disclosure.
  • Figure 4 is a schematic flowchart of another information display method provided by an embodiment of the present disclosure.
  • Figure 5 is a schematic diagram of another interface interaction provided by an embodiment of the present disclosure.
  • Figure 6 is a schematic diagram of another interface interaction provided by an embodiment of the present disclosure.
  • Figure 7 is a schematic structural diagram of a suspension control provided by an embodiment of the present disclosure.
  • Figure 8 is a schematic structural diagram of an information display device provided by an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
  • the term “include” and its variations are open-ended, ie, “including but not limited to.”
  • the term “based on” means “based at least in part on.”
  • the term “one embodiment” means “at least one embodiment”; the term “another embodiment” means “at least one additional embodiment”; and the term “some embodiments” means “at least some embodiments”. Relevant definitions of other terms will be given in the description below.
  • a prompt message is sent to the user to clearly remind the user that the operation requested by the user will require the acquisition and use of the user's personal information. Therefore, users can autonomously choose whether to provide personal information to software or hardware such as electronic devices, applications, servers or storage media that perform the operations of the technical solution of the present disclosure based on the prompt information.
  • the method of sending prompt information to the user may be, for example, a pop-up window, and the prompt information may be presented in the form of text in the pop-up window.
  • the pop-up window can also contain a selection control for the user to choose "agree” or "disagree” to provide personal information to the electronic device.
  • Figure 1 is a scene architecture diagram of an application scenario applicable to an information display method provided by an embodiment of the present disclosure.
  • the application scenario may include a server 100 , a first electronic device 101 and a second electronic device 102 .
  • the number of electronic devices can be greater, and the number is not limited.
  • Figure 1 is only used as a schematic illustration. Multiple electronic devices establish communication connections with the server to realize information interaction.
  • the electronic device may be a mobile device such as a mobile phone, a smart watch, a tablet computer, or a personal digital assistant; it may also be other devices such as a desktop computer. Users using electronic devices can conduct real-time calls, content sharing, message interaction, etc. through preset applications installed on the electronic devices.
  • Content sharing may include media stream sharing (hereinafter referred to as shared interaction).
  • the server can provide support for preset applications. For example, when multiple users share and interact, each user can control the shared video stream. For example, switching videos, etc.
  • the type of the preset application is not limited. For example, it may be a video application, a live broadcast application, an information application, etc., or other types of applications.
  • Figure 2 is a schematic flowchart of an information display method provided by an embodiment of the present disclosure.
  • the embodiment of the present disclosure is applicable to the situation of media stream display.
  • the method can be executed by an information display device, and the device can use software and/or hardware.
  • it can be implemented through an electronic device, which can be an electronic device used by any user participating in media stream sharing.
  • the method includes the following steps.
  • Step 201 Display the first content corresponding to the first user in the target page of the preset application, display a floating control in the target page, and display the shared media stream in the floating control, wherein the shared media
  • the streams include media streams corresponding to shared interactions between the first user and at least one second user.
  • the first user is the user currently using the default application, that is, the local user. It can be understood that the account currently logged in in the default application is the account of the first user.
  • the target page may be understood as a page in a preset application program used to display content corresponding to the first user.
  • the type of content is not limited, and may be media content, for example.
  • 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 for the user.
  • the first content may include a first media stream, and the first media stream may be a media stream pushed to the first user.
  • a corresponding media stream determination method is generated according to the first user, and the first media stream determination method is determined according to the media stream determination method.
  • the media content contained in the media stream may include images, graphics, audio or video, etc.
  • two or more users can be supported for real-time media stream sharing.
  • the second user can be understood as a user who participates in the same media stream sharing with the first user, that is, the peer user.
  • the second user The number can be one or more and is not limited.
  • the shared media stream includes a media stream corresponding to the shared interaction between the first user and at least one second user. That is, for each user participating in the shared interaction, each user can use the electronic device they use to Watch shared media streams.
  • the source of shared media streams is not limited.
  • the floating control can be understood as a view element, and displaying the floating control on the target page can be understood as overlaying and displaying the view element on the target page.
  • the properties of the floating control such as shape, size, color, transparency, and display position, can be set according to actual needs.
  • the floating control can be a floating box-shaped control. After the floating control is displayed, the user can adjust the display position of the floating control by inputting a drag operation.
  • at least one border or at least two borders of the floating control coincide with the page boundary of the target page.
  • a floating control is also displayed in the target page, and the shared media stream is displayed in the floating control, so that the first user can watch his own content at the same time.
  • Page content and shared media streams help improve user experience.
  • Figure 3 is a schematic diagram of an interface provided by an embodiment of the present disclosure.
  • the first media stream is displayed on the target page 301
  • the floating control 302 is displayed on the target page 301.
  • the floating control 302 is located in the upper left corner of the target page 301, and the left border and the upper border of the floating control 302 coincide with the left border and the upper border of the target page 301 respectively.
  • users participating in media stream sharing interactions can also be understood as existing in the same shared space. If the first user creates the shared space and invites other users to join the shared space, other users can join the shared space before they join the shared space. Assuming that there is no second user currently, the shared media stream can also be displayed in the floating control and wait for the second user to join during the playback process; in addition, when all second users leave the shared space, only the third user remains in the shared space. In the case of one user, the shared media stream can also continue to be displayed in the floating control.
  • Step 202 Display a preset control in the floating control, where the preset control is used to display related information and/or control of the shared interaction between the first user and the at least one second user. Shared interaction between the first user and the at least one second user.
  • the preset control can be resident in the floating control, or can be displayed when preset display conditions are met.
  • the floating control does not need to display controls in the floating control to reduce the interference of the control on the content of the shared media stream, so that the floating control can present a pure state, and users can obtain a pure viewing experience.
  • the user wants to set up shared interaction he can input a trigger operation on the floating control.
  • the type of trigger operation is not limited, for example, it can be a click or a long press.
  • the preset control is displayed in the floating control.
  • display preset controls when receiving a message or notification. The type, display position and quantity of the preset controls can be set according to actual needs.
  • the preset control 303 can be displayed in the lower right corner of the floating control.
  • the preset control can be used to display the associated information of the shared interaction between the first user and at least one second user, where the associated information can include, for example, the user identification of the user participating in the shared interaction. Interactive messages sent during the process, etc.
  • the preset control can also be used to control the shared interaction between the first user and at least one second user, that is, the control operation of the shared interaction is input based on the preset control, and different controls can be set according to different control operations.
  • the preset controls may include at least one of the following: a shared user invitation control, a shared page switching control, a floating control closing control, a shared media stream pause display control, a media content switching control in a shared media stream, and a real-time call video screen control.
  • control operations input through the preset controls may include inviting sharing user operations and switching to the sharing page. operations, close the floating control operation, pause the display of the shared media stream, switch the previous media content or the next media content in the shared media stream, and turn off or on the microphone switch operation for real-time calls, etc.
  • the information display method provided by the embodiment of the present application displays the first content corresponding to the first user in the target page of the preset application, displays a floating control in the target page, and displays the shared media stream in the floating control, wherein sharing
  • the media stream includes a media stream corresponding to the shared interaction between the first user and at least one second user, and a preset control is displayed in the floating control, wherein the preset control is used to display associated information of the shared interaction and/or Or control shared interactions.
  • the first user can simultaneously watch his own page content and the media stream shared with the second user in the application interface, and can directly control the shared interaction through the preset controls in the floating control, or in The relevant information of shared interaction is displayed in the floating control, which improves the convenience of shared interaction and improves the user experience during the media stream sharing process.
  • the source of the shared media stream is not limited.
  • the first media stream is different from the shared media stream.
  • the shared media stream can be set by the user who initiates the sharing interaction; it can be determined based on the media stream corresponding to the user who initiates the sharing interaction.
  • the shared media stream can be obtained.
  • the preset filtering rules may include, for example, filtering graphics and text media content, etc.; they may also be determined based on the media streams corresponding to at least two users participating in the sharing interaction, for example, the first media stream corresponding to the first user and the second media stream corresponding to the second user.
  • the second media streams corresponding to the user are merged to obtain a shared media stream.
  • the method before displaying the shared media stream in the floating control, the method further includes: based on the first determination method of the first media stream corresponding to the first user and the second media stream corresponding to the at least one second user.
  • the second determination method is to generate a target determination method; determine the shared media stream according to the target determination method. This setting can determine the media streams of common interest to multiple users based on the target determination method and share the media streams.
  • the above-mentioned second determination method for generating the target determination method may include a second determination method corresponding to a single second user, or may include a third determination method corresponding to at least two second users. 2. Determination method.
  • the first user is user A
  • the second users include user B and user C.
  • User A initiates a sharing interaction
  • the shared media stream can be determined in one of the following ways. For example, after filtering the media stream of user A, a shared media stream is obtained; another example is merging the media streams corresponding to user A, user B, and user C to obtain a shared media stream; another example is, according to user A, user B, and user C, the shared media stream is obtained;
  • the media stream recommendation algorithms corresponding to user B and user C respectively generate a target recommendation algorithm, and the shared media stream is determined according to the target recommendation algorithm.
  • the associated information includes conversation messages generated by the shared interaction, and displaying a preset control in the floating control includes: in response to receiving at least one of all second users.
  • a second user's conversation message displays a first preset control in the floating control, wherein the first preset control is used to display the user ID and the user ID of the at least one second user among all second users. /or the session message.
  • the conversation message may include at least one message in the form of text, voice, or image.
  • This setting can support instant message interaction between the local user and the peer user, and display the session messages in the floating control.
  • the local user can directly check all or part of the message content from the floating control, without the need to perform page switching and other operations. , improve the convenience of message interaction.
  • displaying the user ID can help the local user clarify the identity of the user who sent the message and improve the efficiency of interaction.
  • 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 identification can be the user name, user nickname or user avatar, etc.
  • the first preset control is displayed in the floating control for a first preset duration.
  • the user IDs and/or conversation messages corresponding to at least two users can be displayed in the floating control at the same time.
  • the display form of the conversation message is not limited. For example, it can be displayed in the form of text bubbles.
  • the conversation message can be displayed in an associated area outside the floating control that displays the shared media stream.
  • the associated area can be, for example, above, below, left or above the floating control. On the right side, etc., the associated area can be dynamically determined based on the relative position of the floating control in the target page. That is, another floating control separate from the floating control that displays the shared media stream can be used to display the associated information of the shared interaction.
  • the method further includes: in response to the first user's triggering operation on the conversation message, displaying a message interaction page for the at least one second user among all second users, the message interaction page It is used for the first user to interact with the at least one second user among all the second users in conversation messages.
  • This setting facilitates the first user to reply to the second user's message.
  • the display priority of the floating control is higher than the display priority of the message interaction page, so that during the reply process, the first user's viewing of the shared media stream will not be affected.
  • the display priority of the floating control is higher than the display priority of the message interaction page. It can be understood that the display of the message interaction page will not block the display of the floating control.
  • the floating control is displayed on the upper layer of the message interaction page.
  • the message interaction page is located on an upper layer of the target page, and the size of the message interaction page may be smaller than or equal to the size of the target page.
  • the message interaction page may include a return control, and the method may further include: in response to the first user triggering the return control, returning to the target page.
  • displaying a preset control in the suspension control includes: displaying a second preset control in the suspension control in response to the first user's triggering operation on the suspension control, Wherein, the second preset control is used to control shared interaction between the first user and the at least one second user.
  • the second preset control includes a shared page switching control.
  • the method further includes: responding to the first user's triggering of the shared page switching control. Operation, switch the target page to a shared page, and continue to display the shared media stream in the shared page, wherein the shared page includes a floating control switching control, and the floating control switching control is used to switch the shared media stream to the shared page.
  • the above shared page switches to the floating control. This setting can support users to switch between shared pages and floating controls, thereby more flexibly selecting the current mode of viewing shared media streams.
  • the display progress of the media content in the shared media stream may not be affected, and the display size of the image in the media content may be adjusted to adapt to the sharing.
  • the size of the page or hover control may be affected.
  • the method further includes: during the process of displaying the shared media stream in the shared page, detecting that the at least one second user among all second users switches controls by triggering the floating control. Switch the sharing page on the second user side to the floating control, and keep displaying the shared media stream in the sharing page.
  • the shared media stream includes images and sounds; and displaying the shared media stream in the floating control includes: displaying the images in the shared media stream in the floating control and disabling it. Play sounds from the shared media stream.
  • the image in the first media stream is displayed on the target page and the sound in the first media stream is played, that is, the first media stream can be displayed normally on the target page.
  • the shared interaction supports real-time calls between the first user and the at least one second user; the method further includes: when displaying the image in the shared media stream in the floating control , and when the sound in the shared media stream is prohibited from being played, in response to receiving the real-time call data of at least one second user among all the second users, the sound corresponding to the real-time call data is played.
  • This setting can support real-time voice communication between the local user and the peer user during the process of sharing media streams, improving the convenience of interaction between users.
  • On the basis of prohibiting the playback of sounds in the shared media stream it ensures The normal playback of the call voice ensures the smoothness of voice communication between users.
  • the shared interaction supports real-time calls between the first user and the at least one second user; and displaying a preset control in the floating control includes: in response to receiving all second The real-time call data of at least one second user among the users is displayed in the floating control.
  • a third preset control wherein the third preset control is used to display the user identification corresponding to the at least one second user among all second users and/or the at least one second user among all second users.
  • the image corresponding to the real-time call data may be, for example, a video picture of a video call.
  • the third preset control is displayed in the floating control for a second preset duration.
  • the second preset duration can be preset according to actual needs, such as 2 seconds, or can be set according to the playback duration corresponding to the real-time call data. For example, if the peer speaks for 5 seconds, the second preset duration can also be set. It's 5 seconds.
  • the user ID of the user corresponding to the real-time call data (that is, the speaking user) may be displayed; or the user IDs of all second users may be displayed.
  • the user ID corresponding to the user corresponding to the real-time call data can be differentially displayed, so that the local user can clearly identify all participating users in the shared interaction and the current speaking user.
  • Differentiated display can include different borders or different display effects of user logos. For example, compared with user logos of non-belonging users, the borders of user logos of attributed users are thickened and dynamic effects such as flashing are added.
  • the process of displaying the shared media stream in the suspended control further includes: adjusting the size of the suspended control according to the media content in the currently displayed shared media stream. This setting can make the size of the floating control better match the media content and improve the viewing experience.
  • the size of the floating control can be adjusted according to the image size of the media content in the currently displayed shared media stream, such as adjusting the aspect ratio of the floating control to the aspect ratio of the image. For example, if the aspect ratio of the image is 16:9, you can adjust the aspect ratio of the floating control to 16:9; if the aspect ratio of the image is 9:16, you can adjust the aspect ratio of the floating control to 9: 16.
  • displaying a preset control in the floating control includes: in response to a third user joining the shared interaction, displaying a fourth preset control in the floating control, wherein the first Four preset controls are used to display the user identification corresponding to the third user.
  • the user ID corresponding to the third user is displayed in the floating control for a third preset duration.
  • the user identification corresponding to the second user can also be displayed for a fourth preset duration.
  • the user IDs of the two users can be differentially displayed to help the first user quickly identify the new user. For example, after successfully joining, the third user can become a new second user.
  • the method further includes: in response to the target user exiting the sharing interaction, according to a manner in which the media stream of at least one user other than the target user in the sharing interaction is determined, modifying the Share media streams for updates.
  • the shared media stream can be updated in time to ensure that the shared media stream is more suitable for retained users to watch.
  • the update method please refer to the relevant description of the source of the shared media stream above, which is not included here. Again.
  • the shared media stream is determined based on the media stream corresponding to the initiating user of the shared interaction, if the target user is the initiating user, the corresponding media stream can be determined based on the first user who accepted the invitation or any user other than the initiating user. media stream to determine the new shared media stream.
  • the method further includes: in response to the first user's triggering operation for the target user identification in the floating control, when it is determined that the shared interaction is initiated in a video call scenario, determining that the first Whether the call image on one user's side and/or the call image on the second user's side is turned on. If the call image on the first user's side and/or the call image on the second user's side is turned on, the target page is switched.
  • the floating control includes the video call screen of the first user and/or the video call screen of the user corresponding to the target user identification.
  • the video call page includes the video call screen of the first user and/or the video call screen of the user corresponding to the target user identification.
  • the floating page can be hidden. control, you can also keep the display of the floating control, that is, keep the display of the shared media stream, so that the first user can watch the shared media stream while viewing the video call screen.
  • the first media stream can be kept displayed on the target page, so that the first user can watch his own media stream while viewing the video call screen.
  • the shared interaction is not initiated in a video call scenario, or it is determined that the call image on the first user side and/or the call image on the second user side is not turned on, receive the first user's response to the floating control After the trigger operation of the target user ID in , the current display mode of the target page and floating control can be maintained.
  • the second preset control includes a floating control closing control.
  • the method further includes: in response to the first user closing a control for the floating control. trigger operation to determine whether the shared interaction is initiated in the video call scene; if the shared interaction is initiated in the video call scene, switch the target page to the video call page, hide the floating control, and place it in the Display the floating control return control on the video call page; if the shared interaction is not initiated in the video call scene, close the floating control.
  • This setting reuses the function of the floating control to close the control.
  • the control is triggered, it can respond in different ways according to the different scenarios in which the shared interaction is initiated.
  • the floating control return control can be used to return to the target page and display the floating control. There is no need to re-initiate the sharing interaction, which satisfies the user's choice between the video call page and the floating control. quick switching requirements.
  • displaying the shared media stream in the suspension control includes: in response to detecting that all second users corresponding to the at least one second user display the shared media stream through the suspension control, displaying the shared media stream in the suspension control. Automatically and continuously play at least two media contents in the shared media stream.
  • the media content in the shared media stream can be automatically and continuously played, reducing the user's Actively switch shared content operations.
  • the first user can perform a switching operation of the media content in the first media stream on the target page.
  • the method further includes: after switching from the target page to the preset page in the preset application, continuing to display the suspension control in the preset page, and displaying the suspension control in the suspension control. Continue to display the shared media stream.
  • the display of the floating control can still be maintained during the page switching process, so that the first user can also watch the shared media stream when performing operations other than watching the first media stream in the preset application.
  • the preset page can be all pages in the preset application except the target page, thereby realizing global display of the floating control in the preset application.
  • the suspended control exists in the form of a custom view
  • the custom view is encapsulated with preset controls
  • the shared media stream is displayed through a player launched in the custom view.
  • the custom view After switching from the target page to the default page in the default application, continue to display the floating control in the default page, and continue to display the shared media stream in the floating control, including : In response to the switching operation of switching the target page to the first page, remove the custom view from the target page, and determine whether the first page is in the preset whitelist, and if the third page If a page is in the preset whitelist, determine the first page to be the preset page, and display the first page; add the custom view to the first page, and use the playback The server continues to display the shared media stream.
  • the floating control is implemented by adding a custom view to the target page.
  • the floating control can have richer capabilities and can display more styles. controls to improve display and interaction effects, and by setting a whitelist, you can more flexibly set pages that can display floating controls.
  • the method further includes: after the preset application is switched to a background running state, continuing to display the suspension control on the screen, and continuing to display the shared media stream in the suspension control.
  • Such setting can facilitate the first user to still watch the shared media stream when the preset application is in the background.
  • the floating control may also include: in response to the first user In response to the triggering operation of the floating control, the user switches the preset application program to a foreground running state, and displays the floating control in the preset application program.
  • continuing to display the floating control on the screen after the preset application is switched to the background running state, and continuing to display the shared media stream in the floating control includes: detecting Switch the preset application to the background running state, start the system's floating window service; use the floating window service to create a floating window, and add a custom view in the floating window, where the custom view The size matches the size of the suspended control, and the custom view is used to display the preset control; start a player in the custom view, and use the player to display the shared media stream.
  • This setting allows you to create a system-level floating window after the preset application is switched to the background running state, use the floating window as a container for a custom view, add a custom view to the floating window, and start playback in the custom view. server to continue displaying the shared media stream.
  • FIG. 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 explained based on multiple optional solutions in the above embodiments.
  • the method includes the following steps.
  • Step 401 Display the first media stream corresponding to the first user in the target page of the preset application, display a floating control in the target page, display images in the shared media stream in the floating control, and prohibit playback of the shared media stream. the sound of.
  • the page for inputting the sharing initiation operation can be any page that supports sharing initiation scenarios, and can include a target page or other pages, such as a session page.
  • the second page can be determined whether the second page is in the preset whitelist. Pages included in the preset whitelist are allowed to be displayed. For pages with floating controls, if the second page is in the preset whitelist, the floating control can be displayed on the second page. If the second page is not in the preset whitelist, the second page can be switched to a shared page, and Display the floating control switching control in the shared page to facilitate users to switch the shared page to the floating control mode according to their own wishes.
  • the session members corresponding to the session page can be automatically invited to join the sharing interaction.
  • the session members corresponding to the session page include user A (the first user) and user B.
  • user B can be automatically invited to join the shared space; assume that the session members corresponding to the session page include user A (the first user), User B and User C can automatically invite User B and User C to join the shared space when initiating a sharing interaction.
  • the shared media stream may be determined based on the first media stream corresponding to the first user.
  • a target determination method can be generated based on the first determination method of the first media stream and the second determination method of the second media stream corresponding to the second user, and then the shared media stream can be determined according to the target determination method.
  • the floating controls in the preset application exist in the form of a custom view.
  • the preset controls are encapsulated in the custom view, and the shared media stream is displayed through a player launched in the custom view. After initiating a sharing interaction, you can create a custom view, add the custom view to the target page, and launch the player in the custom view.
  • At least two borders of the floating control coincide with the page boundaries of the current page to achieve the visual effect of the floating control being adsorbed on the page boundary.
  • FIG. 5 is another schematic diagram of interface interaction provided by an embodiment of the present disclosure.
  • a floating control 502 is displayed on the target page 501.
  • the floating control 502 is adsorbed to the upper and right borders of the target page 501.
  • the media content in user A's first media stream is played on the target page 501, including images and sounds; and the images of the media content in the shared media stream are played on the floating control 502.
  • the current position of the suspension control determines the display position of the floating control in the target page based on the current position. For example, divide the target page into two equal areas, the left and the right, and determine the target area where the coordinate point corresponding to the current position falls. If the target area is the left area, set the abscissa of the upper left corner point in the display position of the floating control to the abscissa of the upper left corner point of the target page; if the target area is the right area, set the abscissa of the upper left corner point in the display position of the floating control. The abscissa is set to the abscissa of the upper left corner of the target page plus the screen width minus the width of the floating control.
  • Step 402 In response to the first user's triggering operation on the floating control, display the second preset control in the floating control.
  • the second preset control is used to control the shared interaction between the first user and at least one second user.
  • the type and type of the second preset control displayed each time the floating control is triggered can be dynamically determined according to the current scene.
  • the shared page switching control 503, the floating control closing control 504, and the shared media stream playback control can be displayed in the floating control.
  • 505 (which may include pause display controls and media content switching controls in the shared media stream, such as switching to the previous and switching to the next), and microphone switch controls 506 for real-time calls, and may also display user B participating in the sharing interaction (second User ID 507.
  • the user ID 507 can be replaced with a sharing user invitation control.
  • a user list may be displayed for the first user to select users to be invited.
  • the user list may display session members in the corresponding group.
  • the user list may display all the first user's friends.
  • all preset controls can be hidden; if the first user does not trigger the preset control within a specified time, all preset controls can also be hidden.
  • Step 403 In response to the first user's triggering operation on the shared page switching control, switch the target page to the shared page, and continue to display the shared media stream in the shared page, where the shared page includes a floating control switching control.
  • the shared page 508 includes a floating control switching control 509.
  • Step 404 In response to the first user's triggering operation for switching the floating control, switch the shared page to the target page, and continue to display the shared media stream in the floating control.
  • Step 405 In response to receiving the real-time call data of at least one second user among all second users, play the sound corresponding to the real-time call data, and play the sound corresponding to at least one second user among all second users in the floating control.
  • the user identification is displayed for a second preset duration.
  • the local terminal will receive the second user's real-time call data, Then the sound corresponding to the real-time call data is played, and as shown in Figure 5, the user identification 507 corresponding to user B can be displayed in the floating control.
  • the display duration can be the first preset duration, such as 2 seconds.
  • Step 406 In response to detecting that all users in the shared interaction display the shared media stream through the floating control, automatically and continuously play the media content in the shared media stream in the floating control, and during the automatic playback process, according to the images in the media content Dynamically adjust the size ratio of the floating control.
  • the size ratio of the floating control can be adaptively adjusted, and the floating control can be switched from the vertical screen mode floating control to the horizontal screen mode floating control 510.
  • Step 407 In response to the third user joining the sharing interaction, display the user ID corresponding to the third user in the floating control for a third preset duration.
  • the user identification 511 of user C (the third user) can be displayed in the floating control.
  • the display duration can be, for example, 5 seconds.
  • the user identification The border of the logo can be bolded and flashed.
  • user C becomes a member of the second users, that is, at this time both user B and user C are regarded as second users.
  • Step 408 In response to receiving the conversation message of at least one second user among all the second users, perform a first preset duration on the user ID and conversation message of at least one second user among all the users in the floating control. exhibit.
  • user C's user ID and conversation message 512 can be displayed in the floating control.
  • the display duration can be, for example, 3 seconds.
  • Step 409 In response to the first user's triggering operation for the conversation message, display a message interaction page for at least one second user among all second users, where the display priority of the floating control is higher than the display priority of the message interaction page. .
  • Figure 6 is another schematic diagram of interface interaction provided by an embodiment of the present disclosure. For example, assuming that during the display process of conversation message 512, the shared media stream automatically switches to media content with a size ratio of 9:16, which can be automatically switched.
  • the message interaction page 513 is displayed. At this time, the floating control is displayed on the upper layer of the message interaction page 513.
  • the message interaction page 513 may display historical message records in the group conversations 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.
  • Step 410 In response to the target user exiting the sharing interaction, update the shared media stream according to the determination method of the media stream of at least one user other than the target user in the sharing interaction.
  • the shared media stream can be re-determined based on the determination method of the media streams corresponding to user A and user C respectively.
  • Step 411 After switching from the target page to the default page in the default application, continue to display the floating control in the default page, and continue to display the shared media stream in the floating control.
  • the custom view in response to the switching operation of switching the target page to the first page, remove the custom view from the target page, and determine whether the first page is in the default whitelist. If the first page is in the default whitelist , then determine the first page as the default page and display the first page; add a custom view to the first page and use the player to continue displaying the shared media stream.
  • user A can continue to watch his own media stream after closing the message interaction page 513.
  • user A is interested in the media content currently displayed on the target page and wants to continue to learn about the media content publisher user XX. He can click on the avatar 514 of user XX (that is, input the switching operation to switch to the first page). Enter user XX's personal homepage 515 (first page), remove the custom view from the target page, if the personal homepage 515 is in the default whitelist, you can add a custom view to the personal homepage 515, and use the player to continue Display shared media streams.
  • an activity in a preset application can be detected.
  • An activity corresponds to a page.
  • An activity can detect the start function (onstart) and end function (onstop) in the life cycle. After detecting When the end function corresponding to the activity of the target page is called, it can be considered that the target page needs to end displaying.
  • the start function corresponding to the activity of the first page it can be considered that the first page needs to start displaying, and it can be considered that the target is detected.
  • the page is switched to the first page, it can be judged whether the first page has the conditions to display the floating control, that is, whether the first page is the default page. You can check whether there is a corresponding first page in the active whitelist.
  • the first page is the default page. Since the floating control already exists in the target page, there is no need to create it again. Remove the custom view from the target page (for example, you can call the remove view function), and add the custom view to the first page (for example, you can call the addview function). .
  • Step 412 After the default application is switched to the background running state, the floating control continues to be displayed on the screen, and the shared media stream continues to be displayed in the floating control.
  • the preset application can be switched to the background running state.
  • the desktop interface is displayed on the screen. Display the icon of the application and continue to display the floating control on the screen to facilitate user A to continue watching the shared media stream.
  • the system's floating window service is started, the floating window service is used to create a floating window, and a custom view is added to the floating window, and the size of the custom view is consistent with the size of the floating control.
  • the sizes match, the preset control is encapsulated in the custom view, the player is started in the custom view, and the player is used to continue to display the shared media stream.
  • FIG. 7 is a schematic structural diagram of a suspension control provided by an embodiment of the present disclosure.
  • a suspension control displayed outside a preset application may include a three-layer structure, with the lowest layer being the system level.
  • the middle layer is the custom view 702
  • the top layer is the player layer 703.
  • the custom view 702 can be understood as the container of the player layer 703, and the system-level floating window 701 can be understood as the container of the custom view 702.
  • the system's floating window service can be started (the service can be a foreground service or a background service, which can be determined according to the operating system version of the electronic device) , after the service is opened, it can be considered to be authorized by the system. It can create a floating window (for example, it can include initializing the floating window and configuring the relevant parameters of the floating window, etc.), adding a custom view to the floating window, and adding a drag event to make the floating window
  • the control supports drag and drop.
  • Get the shared media stream through a custom view start the player, add the view corresponding to the player to the custom view, determine the size of the floating control based on the size of the media content in the shared media stream, and display the floating control.
  • control pass Play the media content in the shared media stream through the player.
  • the first user can simultaneously watch his own media stream and the media stream shared with the second user in the application program interface.
  • the sound of the shared media stream in the floating control will not be played, but the sound of the shared media stream will not be played.
  • the sound of the end-user voice can be used to communicate smoothly while reducing the interference of the sound of the shared media stream on one's own media stream.
  • users can directly set the shared interaction through the preset controls in the floating control, improving the efficiency of sharing settings.
  • the floating control can also display relevant information such as newly added users and peer users' session messages, further improving the convenience of interaction.
  • the shared media stream can still be displayed in the floating control mode, meeting the needs of users to watch shared media streams in different scenarios, and further improving the user experience.
  • FIG. 8 is a schematic structural diagram of an information display device provided by an embodiment of the present disclosure.
  • the device is configured on the first user side. As shown in FIG. 8 , the device includes: a media stream display module 801 and a control display module 802.
  • the media stream display module 801 is configured to display the first media stream corresponding to the first user in the target page of the preset application, display a floating control in the target page, and display the shared media stream in the floating control, Wherein, the shared media stream includes a media stream corresponding to the shared interaction between the first user and at least one second user; the control display module 802 is configured to display preset controls in the floating control. , wherein the preset control is used to display related information of shared interactions between the first user and the at least one second user and/or to control the first user and the at least one second user. shared interactions between.
  • the information display device displays the first content corresponding to the first user in the target page of the preset application, displays a floating control in the target page, and displays the shared media stream in the floating control, wherein,
  • the shared media stream includes a media stream corresponding to the shared interaction between the first user and at least one second user, and a preset control is displayed in the floating control, wherein the preset control is used to display associated information of the shared interaction and /or control shared interactions.
  • the first user can simultaneously watch his own page content and the media stream shared with the second user in the application interface, and can directly control the shared interaction through the preset controls in the floating control, or in The relevant information of shared interaction is displayed in the floating control, which improves the convenience of shared interaction and improves the user experience during the media stream sharing process.
  • the associated information includes conversation messages generated by the shared interaction
  • the control display module 802 is configured to: in response to receiving a conversation message from at least one second user among all second users, in the The first preset control is displayed in the floating control, where the first preset control is used to display Indicates the user identification of the at least one second user among all second users and/or the conversation message.
  • the device further includes: a message interaction page display module configured to display messages for the at least one second user among all second users in response to the first user's triggering operation on the conversation message.
  • a message interaction page display module configured to display messages for the at least one second user among all second users in response to the first user's triggering operation on the conversation message.
  • An interaction page, the message interaction page is used for the first user to interact with the at least one second user among all second users in conversation messages.
  • the message interaction page is located on an upper layer of the target page, and the size of the message interaction page is smaller than or equal to the size of the target page.
  • the first content includes a first media stream, and the first media stream is different from the shared media stream.
  • control display module 802 is configured to: in response to the first user's triggering operation on the suspension control, display a second preset control in the suspension control, wherein the second preset control It is assumed that the control is used to control the shared interaction between the first user and the at least one second user.
  • the second preset control includes a shared page switching control
  • the device further includes: after displaying the second preset control in the floating control, in response to the first user switching the control for the shared page trigger operation to switch the target page to a shared page and continue to display the shared media stream in the shared page, wherein the shared page includes a floating control switching control, and the floating control switching control is used to Switch the shared page to the floating control.
  • the device further includes: a second switching module configured to, during the process of displaying the shared media stream in the shared page, detect that the at least one second user among all second users triggers the The floating control switching control switches the shared page on the second user side to the floating control and keeps displaying the shared media stream in the shared page.
  • a second switching module configured to, during the process of displaying the shared media stream in the shared page, detect that the at least one second user among all second users triggers the The floating control switching control switches the shared page on the second user side to the floating control and keeps displaying the shared media stream in the shared page.
  • the shared media stream includes images and sounds; the displaying the shared media stream in the floating control includes: displaying the images in the shared media stream in the floating control and prohibiting the playback of all Describe the sound in the shared media stream.
  • shared interaction supports real-time calls between the first user and the at least one second user;
  • the device also includes: a call sound playback module, configured to display the shared image stream in the floating control. image, and when the sound in the shared media stream is prohibited from being played, in response to receiving the real-time call data of at least one second user among all the second users, the sound corresponding to the real-time call data is played.
  • a call sound playback module configured to display the shared image stream in the floating control. image, and when the sound in the shared media stream is prohibited from being played, in response to receiving the real-time call data of at least one second user among all the second users, the sound corresponding to the real-time call data is played.
  • shared interaction supports real-time calls between the first user and the at least one second user;
  • the control display module 8021 is configured to: respond to receiving a message from at least one second user among all second users. real-time call data, and a third preset control is displayed in the floating control, wherein the The third preset control is used to display the user identification corresponding to the at least one second user among all second users and/or the image corresponding to the real-time call data of the at least one second user among all second users.
  • the device further includes: a target determination method generating module configured to, before displaying the shared media stream in the floating control, based on the first determination method of the first media stream corresponding to the first user and the third The second determination method of the second media stream corresponding to the two users generates a target determination method; the shared media stream determination module is configured to determine the shared media stream according to the target determination method.
  • a target determination method generating module configured to, before displaying the shared media stream in the floating control, based on the first determination method of the first media stream corresponding to the first user and the third The second determination method of the second media stream corresponding to the two users generates a target determination method; the shared media stream determination module is configured to determine the shared media stream according to the target determination method.
  • the device further includes: a size adjustment module configured to adjust the size of the floating control according to the media content in the currently displayed shared media stream during the process of displaying the shared media stream in the floating control. Adjustment.
  • control display module 802 is configured to: in response to a third user joining the sharing interaction, display a fourth preset control in the floating control, wherein the fourth preset control is displayed after the third user joins the sharing interaction.
  • the device further includes: a shared media stream update module configured to respond to the target user exiting the sharing interaction, and update the media stream of at least one user other than the target user in the sharing interaction based on the determination method.
  • the shared media stream is updated.
  • the device further includes: a third switching module configured to respond to the first user's triggering operation for the target user identification in the floating control, when it is determined that the shared interaction is initiated in the video call scenario. , determine whether the call image on the first user side and/or the call image on the second user side is turned on, and if the call image on the first user side and/or the call image on the second user side is turned on, switch the target page to video call page, or in response to the first user's triggering operation for the target user identification in the floating control, switching the floating control to the video call mode, wherein the floating control in the video call mode includes the video call screen of the first user and/or the video call screen of the user corresponding to the target user identification.
  • a third switching module configured to respond to the first user's triggering operation for the target user identification in the floating control, when it is determined that the shared interaction is initiated in the video call scenario. , determine whether the call image on the first user side and/or the call image on the second user side is turned on, and if
  • the second preset control includes a floating control closing control
  • the device further includes: a judgment module configured to, after the second preset control is displayed in the floating control, respond to the first user's response to the The triggering operation of the floating control closing control determines whether the shared interaction is initiated in the video call scene; the floating control hiding module is configured to switch the target page to the video when the shared interaction is initiated in the video call scene.
  • the call page hides the floating control and displays the floating control return control in the video call page; the floating control closing module is configured to close the floating control when the shared interaction is not initiated in the video call scene.
  • the second preset control includes at least one of the following: a shared user invitation control, a shared page switching control, a media content switching control in a shared media stream, and a real-time call video screen control. and voice controls for live calls.
  • displaying the shared media stream in the suspension control includes: in response to detecting that all second users corresponding to the at least one second user display the shared media stream through the suspension control, automatically displaying the shared media stream in the suspension control. Continuous play sharing
  • At least two pieces of media content in the media stream At least two pieces of media content in the media stream.
  • the device further includes: a first display module configured to continue to display the floating control in the default page after switching from the target page to the default page in the default application program, And continue to display the shared media stream in the floating control.
  • a first display module configured to continue to display the floating control in the default page after switching from the target page to the default page in the default application program, And continue to display the shared media stream in the floating control.
  • the suspended control exists in the form of a custom view, the preset control is encapsulated in the custom view, and the shared media stream is displayed through a player started in the custom view;
  • the first display module is configured to: in response to a switching operation of switching the target page to the first page, remove the custom view from the target page, and determine whether the first page is in a preset white page. In the list, if the first page is in the preset whitelist, determine the first page to be the preset page, and display the first page; add the custom view to the first page, And use the player to continue to display the shared media stream.
  • the device further includes: a second display module configured to continue to display the floating control on the screen after the preset application is switched to the background running state, and to continue to display the shared media stream in the floating control. .
  • the second display module is configured to: detect that the preset application program switches to a background running state, start the system's floating window service; use the floating window service to create a floating window, and display the floating window in the floating window. Add a custom view, where the size of the custom view matches the size of the floating control, and the preset control is encapsulated in the custom view; start the player in the custom view, and The player is used to continue displaying the shared media stream.
  • the information display device provided by the embodiments of the present disclosure can execute the information display method provided by any embodiment of the present disclosure, and has corresponding functional modules for executing the method.
  • the multiple units and modules included in the above device are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the names of the multiple functional units are also They are only used to facilitate mutual differentiation and are not used to limit the protection scope of the embodiments of the present disclosure.
  • FIG. 9 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
  • Terminal devices in embodiments of the present disclosure may include, but are not limited to, mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (Personal Digital Assistants), Mobile terminals such as PDAs), tablet computers (Portable Android Device, PAD), portable multimedia players (Portable Media Player, PMP), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and digital TVs (Television, TV), desktop computers, etc. fixed terminal.
  • the electronic device shown in FIG. 9 is only an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.
  • the electronic device 900 may include a processing device (such as a central processing unit, a graphics processor, etc.) 901, which may process data according to a program stored in a read-only memory (Read-Only Memory, ROM) 902 or from a storage device. 908 loads the program in the random access memory (Random Access Memory, RAM) 903 to perform various appropriate actions and processes. In the RAM 903, various programs and data required for the operation of the electronic device 900 are also stored.
  • the processing device 901, ROM 902 and RAM 903 are connected to each other via a bus 904.
  • An input/output (I/O) interface 905 is also connected to bus 904.
  • the following devices can be connected to the I/O interface 905: input devices 906 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a Liquid Crystal Display (LCD) , an output device 907 such as a speaker, a vibrator, etc.; a storage device 908 including a magnetic tape, a hard disk, etc.; and a communication device 909.
  • the communication device 909 may allow the electronic device 900 to communicate wirelessly or wiredly with other devices to exchange data.
  • FIG. 9 illustrates an electronic device 900 having various means, it should be understood that implementation or availability of all illustrated means is not required. More or fewer means may alternatively be implemented or provided.
  • embodiments of the present disclosure include a computer program product including a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart.
  • the computer program may be downloaded and installed from the network via communication device 909, or from storage device 908, or from ROM 902.
  • the processing device 901 When the computer program is executed by the processing device 901, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.
  • the electronic device provided by the embodiments of the present disclosure and the information display method provided by the above embodiments belong to the same inventive concept. Technical details that are not described in detail in this embodiment can be referred to the above embodiments.
  • Embodiments of the present disclosure provide a computer storage medium on which a computer program is stored.
  • the program is executed by a processor, the information display method provided by the above embodiments is implemented.
  • the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two.
  • Examples of computer-readable storage media For example, it may be - but is not limited to - electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of the above.
  • Examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard drives, RAM, ROM, Erasable Programmable Read-Only Memory (EPROM) ) or flash memory, optical fiber, portable compact disk read-only memory (Compact Disc Read-Only Memory, CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein.
  • Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above.
  • a computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device .
  • Program code contained on a computer-readable medium can be transmitted using any appropriate medium, including but not limited to: wires, optical cables, radio frequency (Radio Frequency, RF), etc., or any suitable combination of the above.
  • the client and server can communicate using any currently known or future developed network protocol, such as HyperText Transfer Protocol (HTTP), and can communicate with digital data in any form or medium.
  • HTTP HyperText Transfer Protocol
  • Communications e.g., communications network
  • Examples of communication networks include Local Area Networks (LANs), Wide Area Networks (WANs), the Internet (e.g., the Internet), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any current network for knowledge or future research and development.
  • LANs Local Area Networks
  • WANs Wide Area Networks
  • the Internet e.g., the Internet
  • end-to-end networks e.g., ad hoc end-to-end networks
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device; it may also exist independently without being assembled into the electronic device.
  • the computer-readable medium carries one or more programs.
  • the electronic device displays the first content corresponding to the first user in the target page of the preset application program. , display a floating control in the target page, and display a shared media stream in the floating control, wherein the shared media stream includes sharing between the first user and at least one second user The media stream corresponding to the interaction; display a preset control in the floating control, wherein the preset control is used to display the associated information of the shared interaction between the first user and the at least one second user and /or control shared interactions between the first user and the at least one second user.
  • Computer program code for performing operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages— Such as Java, Smalltalk, C++, but also conventional procedural programming languages - such as "C" language or similar programming languages.
  • the program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server.
  • the remote computer may be connected to the user computer through any kind of network, including a LAN or WAN, or may be connected to an external computer (eg, through the Internet using an Internet service provider).
  • each block in the flowchart or block diagram may represent a module, segment, or portion of code that contains one or more logic functions that implement the specified executable instructions.
  • the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown one after another may actually execute substantially in parallel, or they may sometimes execute in the reverse order, depending on the functionality involved.
  • each block of the block diagram and/or flowchart illustration, and combinations of blocks in the block diagram and/or flowchart illustration can be implemented by special purpose hardware-based systems that perform the specified functions or operations. , or can be implemented using a combination of specialized hardware and computer instructions.
  • the units involved in the embodiments of the present disclosure can be implemented in software or hardware.
  • the name of the module does not constitute a limitation on the module itself.
  • the media stream display module can also be described as “displaying the first content corresponding to the first user in the target page of the preset application. A floating control is displayed in the target page, and a module for sharing a media stream is displayed in the floating control, wherein the shared media stream includes sharing between the first user and at least one second user. Interactive corresponding media streams”.
  • exemplary types of hardware logic components include: field programmable gate array (Field Programmable Gate Array, FPGA), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), application specific standard product (Application Specific Standard Parts (ASSP), System on Chip (SOC), Complex Programmable Logic Device (CPLD), etc.
  • a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with an instruction execution system, apparatus, or device.
  • the machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any suitable combination of the foregoing.
  • Machine-readable storage media More specific examples would include electrical connections based on one or more wires, portable computer disks, hard drives, RAM, ROM, EPROM or flash memory, fiber optics, CD-ROMs, optical storage devices, magnetic storage devices, or any of the above. Any suitable combination.
  • an information display method is provided, applied to the first user side, including: displaying the first content corresponding to the first user in the target page of the preset application, in the A floating control is displayed on the target page, and a shared media stream is displayed in the floating control, wherein the shared media stream includes media corresponding to the shared interaction between the first user and at least one second user.
  • Flow display a preset control in the floating control, wherein the preset control is used to display related information and/or control all shared interactions between the first user and the at least one second user. Shared interaction between the first user and the at least one second user.
  • the associated information includes conversation messages generated by the shared interaction, and displaying a preset control in the floating control includes: in response to receiving a message from all second users. Conversation messages of at least one second user, and a first preset control is displayed in the floating control, wherein the first preset control is used to display the user identification of the at least one second user among all second users. and/or conversation messages of the at least one second user.
  • it further includes: in response to the first user's trigger operation for the conversation message, displaying a message interaction page for the at least one second user among all second users, The message interaction page is used for the first user to interact with the at least one second user among all second users in conversation messages.
  • the message interaction page is located on an upper layer of the target page, and the size of the message interaction page is less than or equal to the size of the target page.
  • the first content includes a first media stream that is different from the shared media stream.
  • displaying a preset control in the suspension control includes: in response to a trigger operation of the first user on the suspension control, displaying a third control in the suspension control. Two preset controls, wherein the second preset control is used to control shared interaction between the first user and the at least one second user.
  • the shared media stream includes images and sounds; and displaying the shared media stream in the floating control includes: displaying the shared image stream in the floating control. images and disable playback of sounds from said shared media stream.
  • the sharing interaction supports real-time calls between the first user and the at least one second user; the method further includes: when displaying the sharing in the floating control images in the image stream, and prohibits the playback of sounds in the shared media stream, in response to the Real-time call data of at least one second user among all second users is received, and sound corresponding to the real-time call data is played.
  • the shared interaction supports real-time calls between the first user and the at least one second user; and displaying a preset control in the floating control includes: responding to Real-time call data of at least one second user among all second users is received, and a third preset control is displayed in the floating control, wherein the third preset control is used to display all second users among all second users.
  • the method before displaying the shared media stream in the suspension control, the method further includes: based on the first determination method of the first media stream corresponding to the first user and the at least one second The second determination method of the second media stream corresponding to the user generates a target determination method; and the shared media stream is determined according to the target determination method.
  • the method further includes: modifying the floating control according to the media content in the currently displayed shared media stream. Adjust the size.
  • displaying a preset control in the floating control includes: displaying a fourth preset control in the floating control in response to a third user joining the shared interaction, Wherein, the fourth preset control is used to display the user identification corresponding to the third user.
  • the method further includes: in response to the target user exiting the shared interaction, determining the media stream of at least one user other than the target user in the shared interaction.
  • the shared media stream is updated.
  • it further includes: in response to the first user's triggering operation for the target user identification in the floating control, when it is determined that the shared interaction is initiated in a video call scenario. , determine whether the call image on the first user side and/or the call image on the second user side is turned on, and if the call image on the first user side and/or the call image on the second user side is turned on, switch the target page to video call page, or in response to the first user's triggering operation for the target user identification in the floating control, switching the floating control to the video call mode, wherein the floating control in the video call mode includes the video call screen of the first user and/or the video call screen of the user corresponding to the target user identification.
  • the second preset control includes a floating control closing control
  • the method further includes: responding to the first user's response to the The floating control closes the triggering operation of the control to determine whether the shared interaction is initiated in the video call scenario; if the shared interaction is initiated in the video call scenario, the target page is switched to On the video call page, the floating control is hidden, and the floating control return control is displayed on the video call page; if the shared interaction is not initiated in the video call scene, the floating control is closed.
  • the second preset control includes at least one of the following: a shared user invitation control, a shared page switching control, a media content switching control in a shared media stream, and a real-time call video screen control. and voice controls for live calls.
  • it further includes: after switching from the target page to a preset page in the preset application, continuing to display the floating control in the preset page, and The shared media stream continues to be displayed in the floating control.
  • the suspended control exists in the form of a custom view, the preset control is encapsulated in the custom view, and the shared media stream passes through the custom view.
  • the activated player is displayed; wherein, after switching from the target page to the default page in the default application program, the suspension control continues to be displayed in the default page, and in the suspension control Continuing to display the shared media stream includes: in response to a switching operation of switching the target page to the first page, removing the custom view from the target page, and determining whether the first page is in a preset state.
  • the first page is in the preset white list, it is determined that the first page is the default page, and the first page is displayed; and the customization is added to the first page. view, and use the player to continue displaying the shared media stream.
  • an information display device configured on a first user side and includes: a media stream display module configured to display information corresponding to the first user in a target page of a preset application. First content, display a floating control in the target page, and display a shared media stream in the floating control, wherein the shared media stream includes a link between the first user and at least one second user.
  • the control display module is configured to display a preset control in the floating control, wherein the preset control is used to display the relationship 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.
  • an electronic device includes: one or more processors; a storage device configured to store one or more programs.
  • the program is executed by the one or more processors, so that the one or more processors implement the information display method provided by the embodiment of the present disclosure.
  • a storage medium containing computer-executable instructions is provided.
  • the computer-executable instructions when executed by a computer processor, are used to perform the information display method provided by the embodiments of the present disclosure.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本公开实施例公开了信息展示方法、装置、设备及存储介质。该方法包括:在预设应用程序的目标页面中展示第一用户对应的第一内容,在所述目标页面中显示悬浮控件,并在所述悬浮控件中展示共享媒体流,所述共享媒体流包括用于在所述第一用户和至少一个第二用户之间进行的共享互动对应的媒体流,在所述悬浮控件中显示预设控件,其中,所述预设控件用于以下至少之一:显示所述第一用户和所述至少一个第二用户之间进行的共享互动的关联信息和控制所述第一用户和所述至少一个第二用户之间进行的共享互动。

Description

信息展示方法、装置、设备及存储介质
本申请要求在2022年05月06日提交中国专利局、申请号为202210488369.6的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。
技术领域
本公开实施例涉及互联网技术领域,例如涉及信息展示方法、装置、设备及存储介质。
背景技术
随着互联网技术和终端技术的快速发展,用户之间的交互越来越便利,多个用户之间可以共享同一媒体流内容,进行媒体流共享的用户还可以通过实时语音交流。
发明内容
本公开实施例提供了信息展示方法、装置、存储介质及设备,可以优化基于媒体流的信息展示方案。
本公开实施例提供了信息展示方法,应用于第一用户侧,包括:在预设应用程序的目标页面中展示第一用户对应的第一内容,在所述目标页面中显示悬浮控件,并在所述悬浮控件中展示共享媒体流,其中,所述共享媒体流包括用于在所述第一用户和至少一个第二用户之间进行的共享互动对应的媒体流;在所述悬浮控件中显示预设控件,其中,所述预设控件用于以下至少之一:显示所述第一用户和所述至少一个第二用户之间进行的共享互动的关联信息和控制所述第一用户和所述至少一个第二用户之间进行的共享互动。
本公开实施例还提供了信息展示装置,配置于第一用户侧,包括:媒体流展示模块,设置为在预设应用程序的目标页面中展示第一用户对应的第一内容,在所述目标页面中显示悬浮控件,并在所述悬浮控件中展示共享媒体流,其中,所述共享媒体流包括用于在所述第一用户和至少一个第二用户之间进行的共享互动对应的媒体流;控件显示模块,设置为在所述悬浮控件中显示预设控件,其中,所述预设控件用于以下至少之一显示所述第一用户和所述至少一个第二用户之间进行的共享互动的关联信息和控制所述第一用户和所述至少一个第二用户之间进行的共享互动。
本公开实施例还提供了一种电子设备,所述电子设备包括:至少一个处理 器;存储装置,设置为存储至少一个程序,当所述至少一个程序被所述至少一个处理器执行,使得所述至少一个处理器实现本公开实施例提供的信息展示方法。
本公开实施例还提供了一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行本申请实施例提供的信息展示方法。
附图说明
图1为本公开实施例提供的一种信息展示方法所适用的应用场景的场景架构图;
图2为本公开实施例所提供的一种信息展示方法的流程示意图;
图3为本公开实施例所提供的一种界面示意图;
图4为本公开实施例所提供的另一种信息展示方法的流程示意图;
图5为本公开实施例所提供的另一种界面交互示意图;
图6为本公开实施例所提供的另一种界面交互示意图;
图7为本公开实施例所提供的一种悬浮控件结构示意图;
图8为本公开实施例所提供的一种信息展示装置的结构示意图;
图9为本公开实施例所提供的一种电子设备的结构示意图。
具体实施方式
下面将参照附图描述本公开的实施例。虽然附图中显示了本公开的一些实施例,然而应当理解的是,本公开可以通过多种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。
应当理解,本公开的方法实施方式中记载的多个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。
需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。
需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。
可以理解的是,在使用本公开多个实施例公开的技术方案之前,均应当依据相关法律法规通过恰当的方式对本公开所涉及个人信息的类型、使用范围、使用场景等告知用户并获得用户的授权。
例如,在响应于接收到用户的主动请求时,向用户发送提示信息,以明确地提示用户,用户请求执行的操作将需要获取和使用到用户的个人信息。从而,使得用户可以根据提示信息来自主地选择是否向执行本公开技术方案的操作的电子设备、应用程序、服务器或存储介质等软件或硬件提供个人信息。
作为一种可选的但非限定性的实现方式,响应于接收到用户的主动请求,向用户发送提示信息的方式例如可以是弹窗的方式,弹窗中可以以文字的方式呈现提示信息。此外,弹窗中还可以承载供用户选择“同意”或者“不同意”向电子设备提供个人信息的选择控件。
可以理解的是,上述通知和获取用户授权过程仅是示意性的,不对本公开的实现方式构成限定,其它满足相关法律法规的方式也可应用于本公开的实现方式中。
可以理解的是,本技术方案所涉及的数据(包括但不限于数据本身、数据的获取或使用)应当遵循相应法律法规及相关规定的要求。
图1为本公开实施例提供的一种信息展示方法所适用的应用场景的场景架构图。参考图1,该应用场景中可以包括服务器100、第一电子设备101和第二电子设备102。需要说明的是,电子设备的数量可以更多,数量不做限定,图1仅作为示意性说明。多个电子设备与服务器建立通信连接,实现信息交互。所述电子设备可以为手机、智能手表、平板电脑以及个人数字助理等移动设备;也可为台式计算机等其他设备。使用电子设备的用户之间可以通过电子设备上安装的预设应用程序进行实时通话、内容共享以及消息交互等,内容共享可包括媒体流共享(以下简称共享互动)。服务器可以为预设应用程序提供支持。示例性的,多个用户进行共享互动时,每个用户均可对共享视频流进行控制, 例如切换视频等。本公开实施例中,预设应用程序的类型不做限定,例如可以是视频类应用程序、直播类应用程序或资讯类应用程序等,还可以是其他类型的应用程序。
图2为本公开实施例所提供的一种信息展示方法的流程示意图,本公开实施例适用于媒体流展示的情形,该方法可以由信息展示装置来执行,该装置可以通过软件和/或硬件的形式实现,可选的,通过电子设备来实现,可以是参与媒体流共享的任意用户所使用的电子设备。
如图2所示,所述方法包括如下步骤。
步骤201、在预设应用程序的目标页面中展示第一用户对应的第一内容,在所述目标页面中显示悬浮控件,并在所述悬浮控件中展示共享媒体流,其中,所述共享媒体流包括用于在所述第一用户和至少一个第二用户之间进行的共享互动对应的媒体流。
本公开实施例中,第一用户为当前使用预设应用程序的用户,也即本端用户,可理解为该预设应用程序中当前处于登录状态的账号为第一用户的账号。目标页面可以理解为预设应用程序中的用于展示第一用户对应的内容的页面,内容的类型不做限定,例如可以是媒体内容。可选的,内容包括媒体流,用户对应的媒体流可以理解为向用户推送的针对该用户的个性化的媒体流。第一内容可包括第一媒体流,第一媒体流可以为向第一用户推送的媒体流,例如,根据第一用户生成相应的媒体流确定方式,根据该媒体流确定方式来确定针对第一用户的个性化的第一媒体流。媒体流中包含的媒体内容可以包括图像、图文、音频或视频等。
在本公开实施例中,可以支持两个或更多用户进行实时的媒体流共享,第二用户可以理解为与第一用户共同参与同一媒体流共享的用户,也即对端用户,第二用户的数量可以是一个或多个,不做限定。共享媒体流包括用于在第一用户和至少一个第二用户之间进行的共享互动对应的媒体流,也即,对于参与共享互动的每个用户来说,均能够通过自己使用的电子设备来观看共享媒体流。共享媒体流的来源不做限定。
示例性的,悬浮控件可理解为视图元素,在目标页面中显示悬浮控件,可理解为在目标页面上层叠加显示该视图元素。悬浮控件的属性,如形状、尺寸、颜色、透明度以及显示位置等,可根据实际需求设置,例如悬浮控件可以是悬浮框形态的控件。在显示悬浮控件后,用户可以通过输入拖拽操作来对悬浮控件的显示位置进行调整。可选的,悬浮控件的至少一条边框或至少两条边框与所述目标页面的页面边界重合。
本公开实施例中,在目标页面中展示第一用户对应的第一内容之外,还在目标页面中显示悬浮控件,并在悬浮控件中展示共享媒体流,使得第一用户能够同时观看自己的页面内容和共享媒体流,有利于提升用户体验。
图3为本公开实施例所提供的一种界面示意图,如图3所示,在目标页面301中展示第一媒体流,在目标页面301中显示悬浮控件302。可选的,悬浮控件302位于目标页面301的左上角,悬浮控件302的左边框和上边框分别与目标页面301的左边界和上边界重合。
需要说明的是,参与媒体流共享互动的用户也可以理解为存在于同一个共享空间,若第一用户创建该共享空间并邀请其他用户加入该共享空间,其他用户未加入该共享空间之前,可以视为当前不存在第二用户,悬浮控件中也可以展示共享媒体流,并在播放过程中等待第二用户的加入;另外,当全部第二用户离开该共享空间后,该共享空间仅剩第一用户的情况下,悬浮控件中也可以继续展示共享媒体流。
步骤202、在所述悬浮控件中显示预设控件,其中,所述预设控件用于显示所述第一用户和所述至少一个第二用户之间进行的共享互动的关联信息和/或控制所述第一用户和所述至少一个第二用户之间进行的共享互动。
示例性的,预设控件可以在悬浮控件中常驻,也可在满足预设显示条件的情况下进行显示。可选的,悬浮控件在展示共享媒体流的过程中,悬浮控件内可以不显示控件,减少控件对共享媒体流内容的干扰,使悬浮控件可以呈现纯净状态,用户可以获得纯净的观看体验。当用户想要对共享互动进行设置时,可以针对悬浮控件输入触发操作,触发操作的类型不做限定,例如可以是点击或长按等。用户触发悬浮控件后,在悬浮控件中显示预设控件。可选的,在接收到消息或通知时,显示预设控件。预设控件的类型、显示位置以及数量等可根据实际需求设定。
如图3所示,可在悬浮控件中的右下角显示预设控件303。
示例性的,预设控件可用于显示第一用户和至少一个第二用户之间进行的共享互动的关联信息,其中,关联信息例如可包括参与共享互动中的用户的用户标识,用户在共享互动过程中发送的互动消息等。预设控件还可用于控制第一用户和至少一个第二用户之间进行的共享互动,也即基于预设控件输入对共享互动的控制操作,可根据控制操作的不同分别设置不同的控件。例如,预设控件可包括以下至少一种:共享用户邀请控件、共享页面切换控件、悬浮控件关闭控件、共享媒体流暂停展示控件、共享媒体流中的媒体内容切换控件、实时通话的视频画面控件以及实时通话的语音控件(如麦克风开关控件)。相应的,通过预设控件输入的控制操作可包括邀请共享用户操作、切换至共享页面 操作、关闭悬浮控件操作、暂停展示共享媒体流操作、切换共享媒体流中的上一个媒体内容或下一个媒体内容的操作、以及关闭或开启实时通话的麦克风开关操作等。
本申请实施例提供的信息展示方法,在预设应用程序的目标页面中展示第一用户对应的第一内容,在目标页面中显示悬浮控件,并在悬浮控件中展示共享媒体流,其中,共享媒体流包括用于在第一用户和至少一个第二用户之间进行的共享互动对应的媒体流,在悬浮控件中显示预设控件,其中,预设控件用于显示共享互动的关联信息和/或控制共享互动。通过采用上述技术方案,第一用户可以在应用程序界面中同时观看自己的页面内容以及与第二用户共享的媒体流,并可直接通过悬浮控件中的预设控件对共享互动进行控制,或者在悬浮控件中显示共享互动的关联信息,提高共享互动的便捷性,提升在媒体流共享过程中的用户体验。
本公开实施例中,共享媒体流的来源不做限定,对于第一内容包括第一媒体流的情况,第一媒体流与共享媒体流不同。示例性的,共享媒体流可以由发起共享互动的用户来设定;可以根据发起共享互动的用户对应的媒体流确定,如采用预设过滤规则对该用户对应的媒体流进行过滤后,得到共享媒体流,预设过滤规则例如可以包括过滤图文类媒体内容等;还可以根据参与共享互动的至少两个用户分别对应的媒体流确定,例如将第一用户对应的第一媒体流和第二用户对应的第二媒体流进行融合,得到共享媒体流。
可选的,在所述悬浮控件中展示共享媒体流之前,还包括:根据所述第一用户对应的第一媒体流的第一确定方式和所述至少一个第二用户对应的第二媒体流的第二确定方式,生成目标确定方式;根据所述目标确定方式确定共享媒体流。这样设置可以根据目标确定方式确定出多个用户共同感兴趣的媒体流并将媒体流来进行共享。当第二用户的数量为至少两个时,上述用于生成目标确定方式的第二确定方式可以包括单个第二用户对应的第二确定方式,也可以包括至少两个第二用户分别对应的第二确定方式。
示例性的,第一用户为用户A,第二用户包括用户B和用户C,用户A发起共享互动,可以通过以下一种方式确定共享媒体流。例如,对用户A的媒体流进行过滤后,得到共享媒体流;又如,将用户A、用户B和用户C分别对应的媒体流进行融合,得到共享媒体流;再如,根据用户A、用户B和用户C分别对应的媒体流推荐算法,生成目标推荐算法,根据目标推荐算法确定共享媒体流。
在一些实施例中,所述关联信息包括所述共享互动生成的会话消息,所述在所述悬浮控件中显示预设控件,包括:响应于接收到全部第二用户中的至少 一个第二用户的会话消息,在所述悬浮控件中显示第一预设控件,其中,所述第一预设控件用于显示全部第二用户中的所述至少一个第二用户的用户标识和/或所述会话消息。示例性的,所述会话消息可以包括文字、语音或图像形式的消息中的至少一种。这样设置,可以支持本端用户和对端用户之间的即时消息交互,在悬浮控件中展示会话消息,本端用户可以直接从悬浮控件中查收全部或部分消息内容,不需要进行页面切换等操作,提高消息交互的便捷性,另外,对用户标识进行展示,可以帮助本端用户明确发送消息的用户的身份,提升交互效率。在展示会话消息时,可以展示全部或部分的消息内容,可以根据消息内容的字符串长度和悬浮控件的显示尺寸动态确定。用户标识可以是用户名称、用户昵称或用户头像等。
可选的,在所述悬浮控件中以第一预设时长显示第一预设控件。示例性的,悬浮控件中可以同时展示至少两个用户对应的用户标识和/或会话消息。会话消息的显示形式不做限定,例如,可以以文字气泡形式进行显示。若第一预设控件用于显示第二用户的用户标识,可以在展示共享媒体流的悬浮控件外部的关联区域内显示所述会话消息,关联区域例如可以是悬浮控件上方、下方、左侧或右侧等,该关联区域可以根据悬浮控件在目标页面中的相对位置动态确定,也即,可以采用与展示共享媒体流的悬浮控件分立的另一个悬浮控件进行共享互动的关联信息的展示。
在一些实施例中,还包括:响应于所述第一用户针对所述会话消息的触发操作,展示针对全部第二用户中的所述至少一个第二用户的消息交互页面,所述消息交互页面用于所述第一用户与全部第二用户中的所述至少一个第二用户进行会话消息的交互。这样设置,方便第一用户对第二用户的消息进行回复。可选的,所述悬浮控件的显示优先级高于所述消息交互页面的显示优先级,这样,在回复过程中,不会影响第一用户对共享媒体流的观看。
示例性的,悬浮控件的显示优先级高于消息交互页面的显示优先级,可以理解为消息交互页面的显示不会对悬浮控件的显示造成遮挡,例如,悬浮控件显示于消息交互页面的上层。可选的,所述消息交互页面位于所述目标页面的上层,且消息交互页面的尺寸可以小于或等于目标页面的尺寸。消息交互页面中可以包括返回控件,该方法还可包括:响应于第一用户针对返回控件的触发,返回目标页面。
在一些实施例中,所述在所述悬浮控件中显示预设控件,包括:响应于所述第一用户针对所述悬浮控件的触发操作,在所述悬浮控件中显示第二预设控件,其中,所述第二预设控件用于控制所述第一用户和所述至少一个第二用户之间进行的共享互动。
在一些实施例中,所述第二预设控件包括共享页面切换控件,在所述悬浮控件中显示预设控件之后,还包括:响应于所述第一用户针对所述共享页面切换控件的触发操作,将所述目标页面切换至共享页面,并在所述共享页面中继续展示所述共享媒体流,其中,所述共享页面中包括悬浮控件切换控件,所述悬浮控件切换控件用于将所述共享页面切换至悬浮控件。这样设置,可以支持用户在共享页面和悬浮控件之间进行切换,从而更加灵活地选择当前的观看共享媒体流的模式。
示例性的,在进行共享页面和悬浮控件之间的切换过程中,共享媒体流中的媒体内容的展示进度可以不受影响,可以通过对媒体内容中的图像的显示尺寸进行调整,以适应共享页面或悬浮控件的尺寸。
在一些实施例中,该方法还包括:在所述共享页面中展示所述共享媒体流的过程中,检测到全部第二用户中的所述至少一个第二用户通过触发所述悬浮控件切换控件将第二用户侧的共享页面切换至悬浮控件,保持在所述共享页面中展示所述共享媒体流。这样设置,在进行媒体流共享的过程中,对端用户对共享媒体流的展示模式进行切换时,减少对本端用户侧的影响,保证本端用户的观看体验。
在一些实施例中,所述共享媒体流中包括图像和声音;所述在所述悬浮控件中展示共享媒体流,包括:在所述悬浮控件中展示所述共享媒体流中的图像,并禁止播放所述共享媒体流中的声音。目标页面中展示第一媒体流中的图像并播放第一媒体流中的声音,也即,第一媒体流在目标页面中可以正常展示。这样设置,当第一媒体流和共享媒体流中均包含声音的情况下,可以避免同时播放两个媒体流中的声音而互相干扰,保证本端用户观看自己的媒体流的体验。需要说明的是,若本端用户想要听到共享媒体流的声音,可以切换至共享页面对共享媒体流进行展示。
在一些实施例中,所述共享互动支持所述第一用户和所述至少一个第二用户进行实时通话;所述方法还包括:当在所述悬浮控件中展示所述共享媒体流中的图像,并禁止播放所述共享媒体流中的声音时,响应于接收到全部第二用户中的至少一个第二用户的实时通话数据,播放所述实时通话数据对应的声音。这样设置,在共享媒体流的过程中,可以支持本端用户和对端用户之间的实时语音交流,提升用户之间交互的便捷性,在禁止播放共享媒体流中的声音的基础上,保证通话语音的正常播放,保证用户之间语音交流的畅通性。
在一些实施例中,所述共享互动支持所述第一用户和所述至少一个第二用户进行实时通话;所述在所述悬浮控件中显示预设控件,包括:响应于接收到全部第二用户中的至少一个第二用户的实时通话数据,在所述悬浮控件中显示 第三预设控件,其中,所述第三预设控件用于显示全部第二用户中的所述至少一个第二用户对应的用户标识和/或全部第二用户中的所述至少一个第二用户的实时通话数据对应的图像。实时通话数据可以帮助本端用户进一步明确当前说话的用户的身份,提升交互效率。
实时通话数据对应的图像例如可以是视频通话的视频画面。可选的,在所述悬浮控件中以第二预设时长显示第三预设控件。示例性的,第二预设时长可根据实际需求预先设置,如2秒,也可以是根据实时通话数据对应的播放时长设置,例如,对端说话时长5秒,则第二预设时长也可以是5秒。在对第二用户的用户标识进行展示时,可以对实时通话数据对应的归属用户(也即说话的用户)的用户标识进行展示;也可以是对全部的第二用户的用户标识进行展示,此时,可以对实时通话数据对应的归属用户的用户标识进行差异化展示,使得本端用户可以在明确共享互动的所有参与用户的同时,明确当前说话的用户。差异化展示可以是用户标识的边框不同或展示效果不同,例如,归属用户的用户标识相比于非归属用户的用户标识来说,边框加粗并添加闪烁等动态效果。
在一些实施例中,在所述悬浮控件中展示共享媒体流的过程中,还包括:根据当前展示的所述共享媒体流中的媒体内容对所述悬浮控件的尺寸进行调整。这样设置,可以使悬浮控件的尺寸更好地匹配媒体内容,提升观看体验。
示例性的,可以根据当前展示的共享媒体流中的媒体内容的图像尺寸来对悬浮控件的尺寸进行调整,如将悬浮控件的宽高比调整为与图像的宽高比。例如,若图像的宽高比为16:9,可以将悬浮控件的宽高比调整为16:9;若图像的宽高比为9:16,可以将悬浮控件的宽高比调整为9:16。
在一些实施例中,所述在所述悬浮控件中显示预设控件,包括:响应于第三用户加入所述共享互动,在所述悬浮控件中显示第四预设控件,其中,所述第四预设控件用于显示所述第三用户对应的用户标识。这样设置,当有新加入的用户时,通过展示新加入的用户对应的用户标识的方式,告知第一用户新用户的加入,减少对媒体流观看的干扰,保证观看体验。
可选的,在悬浮控件中对第三用户对应的用户标识进行第三预设时长的展示。此外,也可对第二用户对应的用户标识进行第四预设时长的展示,这样,在有新用户加入时,第一用户可以清晰直观地确认共享互动中的所有参与用户。可选的,当第三用户的用户标识和第二用户的用户标识同时处于展示状态时,可以对两者的用户标识进行差异化展示,以帮助第一用户快速确定新增用户。示例性的,第三用户在加入成功后,可以成为新的第二用户。
在一些实施例中,还包括:响应于目标用户退出所述共享互动,根据所述共享互动中除所述目标用户之外的至少一个用户的媒体流的确定方式,对所述 共享媒体流进行更新。这样设置,当一个用户退出共享互动时,可以及时对共享媒体流进行更新,保证共享媒体流更加适合留存的用户的观看,更新方式可参照上文中共享媒体流的来源的相关描述,此处不再赘述。需要说明的是,若根据共享互动的发起用户对应的媒体流来确定共享媒体流时,目标用户为发起用户的情况下,可以根据首个接受邀请的用户或发起用户之外的任意一个用户对应的媒体流来确定新的共享媒体流。
在一些实施例中,还包括:响应于所述第一用户针对所述悬浮控件中的目标用户标识的触发操作,在确定所述共享互动在视频通话场景下发起的情况下,判断所述第一用户侧的通话图像和/或第二用户侧的通话图像是否开启,若所述第一用户侧的通话图像和/或所述第二用户侧的通话图像开启,则将所述目标页面切换至视频通话页面,或者,响应于所述第一用户针对所述悬浮控件中的目标用户标识的触发操作,将所述悬浮控件切换至视频通话模式,其中,所述视频通话模式下所述悬浮控件中包含所述第一用户的视频通话画面和/或所述目标用户标识所对应的用户的视频通话画面。这样设置,若在视频通话场景下发起共享,可以提供查看视频通话画面的快捷操作方式。
示例性的,视频通话页面中包含所述第一用户的视频通话画面和/或所述目标用户标识所对应的用户的视频通话画面,在将目标页面切换至视频通话页面的同时,可以隐藏悬浮控件,也可以保持悬浮控件的显示,也即保持共享媒体流的展示,这样第一用户可以在查看视频通话画面的同时观看共享媒体流。
示例性的,在将所述悬浮控件切换至视频通话模式的同时,可以保持第一媒体流在目标页面中的展示,这样第一用户可以在查看视频通话画面的同时观看自己的媒体流。
可选的,若确定所述共享互动未在视频通话场景下发起,或确定第一用户侧的通话图像和/或第二用户侧的通话图像未开启,接收到第一用户针对所述悬浮控件中的目标用户标识的触发操作后,可以保持目标页面和悬浮控件的当前显示方式。
在一些实施例中,所述第二预设控件包括悬浮控件关闭控件,在所述悬浮控件中显示第二预设控件之后,还包括:响应于所述第一用户针对所述悬浮控件关闭控件的触发操作,判断共享互动是否在视频通话场景下发起;若所述共享互动在所述视频通话场景下发起,则将所述目标页面切换至视频通话页面,隐藏所述悬浮控件,并在所述视频通话页面中显示悬浮控件返回控件;若所述共享互动未在所述视频通话场景下发起,关闭所述悬浮控件。这样设置,对悬浮控件关闭控件的功能进行复用,当触发该控件时,可以根据共享互动的发起场景的不同而进行不同方式的响应。对于视频通话的发起场景,可以在切换至 视频通话页面的同时,保持共享互动,并提供悬浮控件返回控件,该悬浮控件返回控件可以用于返回目标页面并显示悬浮控件,不需要重新发起共享互动,满足用户在视频通话页面和悬浮控件之间的快速切换需求。
在一些实施例中,在所述悬浮控件中展示共享媒体流,包括:响应于检测到所述至少一个第二用户对应的所有第二用户侧通过悬浮控件展示共享媒体流,在所述悬浮控件中自动连续播放共享媒体流中的至少两个媒体内容。这样设置,第一用户在以悬浮控件模式观看共享媒体流的过程中,若检测到其他参与共享互动的用户均进入悬浮控件模式,则可自动连续播放共享媒体流中的媒体内容,减少用户的主动切换共享内容的操作。可选的,第一用户可以在目标页面中进行第一媒体流中的媒体内容的切换操作。
在一些实施例中,还包括:在所述预设应用程序中从所述目标页面切换至预设页面后,在所述预设页面中继续显示所述悬浮控件,并在所述悬浮控件中继续展示所述共享媒体流。这样设置,可以在页面切换过程中仍然保持悬浮控件的显示,使得第一用户可以在预设应用程序中进行观看第一媒体流之外的操作时,也能够观看共享媒体流。可选的,预设页面可以是预设应用程序中除目标页面之外的所有页面,从而实现悬浮控件在预设应用程序中的全局显示。
在一些实施例中,所述悬浮控件以自定义视图的形式存在,所述自定义视图中封装有预设控件,所述共享媒体流通过在所述自定义视图中启动的播放器进行展示。在所述预设应用程序中从所述目标页面切换至预设页面后,在所述预设页面中继续显示所述悬浮控件,并在所述悬浮控件中继续展示所述共享媒体流,包括:响应于将所述目标页面切换至第一页面的切换操作,从所述目标页面中移除所述自定义视图,并判断所述第一页面是否处于预设白名单中,若所述第一页面处于所述预设白名单中,则确定所述第一页面为预设页面,并显示所述第一页面;在所述第一页面中添加所述自定义视图,并利用所述播放器继续展示所述共享媒体流。这样设置,通过在目标页面中添加自定义视图的方式来实现悬浮控件,相比于相关技术中的画中画实现方式来说,可以使得悬浮控件具备更丰富的能力,可以显示更多样式的控件,提升显示效果以及交互效果,并且,通过设置白名单的方式,可以更加灵活地设置可以显示悬浮控件的页面。
在一些实施例中,还包括:在所述预设应用程序切换至后台运行状态后,在屏幕中继续显示所述悬浮控件,并在所述悬浮控件中继续展示所述共享媒体流。这样设置,可以方便第一用户在预设应用程序处于后台的情况下,仍然可以观看共享媒体流。
可选的,在屏幕中继续显示所述悬浮控件之后,还可包括:响应于第一用 户针对所述悬浮控件的触发操作,将所述预设应用程序切换至前台运行状态,并在所述预设应用程序中显示悬浮控件。
在一些实施例中,所述在所述预设应用程序切换至后台运行状态后,在屏幕中继续显示所述悬浮控件,并在所述悬浮控件中继续展示所述共享媒体流,包括:检测到所述预设应用程序切换至后台运行状态,启动系统的悬浮窗服务;利用所述悬浮窗服务创建悬浮窗,并在所述悬浮窗中添加自定义视图,其中,所述自定义视图的尺寸与所述悬浮控件的尺寸相匹配,所述自定义视图用于显示所述预设控件;在所述自定义视图中启动播放器,并利用所述播放器展示所述共享媒体流。这样设置使得在预设应用程序切换至后台运行状态后,可以创建系统级别的悬浮窗,将悬浮窗作为自定义视图的容器,在悬浮窗中添加自定义视图,并在自定义视图中启动播放器来继续展示共享媒体流。
图4为本公开实施例所提供的另一种信息展示方法的流程示意图,本公开实施例以上述实施例中多个可选方案为基础进行说明。该方法包括如下步骤。
步骤401、在预设应用程序的目标页面中展示第一用户对应的第一媒体流,在目标页面中显示悬浮控件,在悬浮控件中展示共享媒体流中的图像,并禁止播放共享媒体流中的声音。
示例性的,在预设应用程序中,可以支持多种共享发起场景,输入共享发起操作的页面可以是支持共享发起场景的任意页面,可以包括目标页面,也可以包括其他页面,例如会话页面。
示例性的,在目标页面之外的页面(可记为第二页面)接收到共享发起操作后,可以判断第二页面是否处于预设白名单中,预设白名单中包含的页面为允许显示悬浮控件的页面,若第二页面处于预设白名单中,则可以在第二页面中显示悬浮控件,若第二页面未处于预设白名单中,可以将第二页面切换为共享页面,并在共享页面中显示悬浮控件切换控件,方便用户根据自身意愿将共享页面切换为悬浮控件模式。
示例性的,在发起共享互动时可以选择邀请用户,也可在显示悬浮控件后再邀请用户。可选的,在会话页面中发起共享互动时,可自动邀请会话页面对应的会话成员加入共享互动。假设会话页面对应的会话成员包括用户A(第一用户)和用户B,在发起共享互动时,可以自动邀请用户B加入共享空间;假设会话页面对应的会话成员包括用户A(第一用户)、用户B和用户C,在发起共享互动时,可以自动邀请用户B和用户C加入共享空间。
可选的,在第一用户发起共享互动后,其他用户未加入共享互动之前,可以根据第一用户对应的第一媒体流确定共享媒体流。在第二用户加入共享互动 后,可根据第一媒体流的第一确定方式和第二用户对应的第二媒体流的第二确定方式,生成目标确定方式,再根据目标确定方式确定共享媒体流。
示例性的,预设应用程序中的悬浮控件以自定义视图的形式存在,自定义视图中封装有预设控件,共享媒体流通过在自定义视图中启动的播放器进行展示。在发起共享互动后,可以创建自定义视图,并将自定义视图添加至目标页面中,在自定义视图中启动播放器。
可选的,悬浮控件的至少两条边框与当前页面的页面边界重合,实现悬浮控件吸附在页面边界的视觉效果。
图5为本公开实施例所提供的另一种界面交互示意图,在目标页面501中显示悬浮控件502,悬浮控件502吸附于目标页面501的上边界和右边界。在目标页面501中播放用户A的第一媒体流中的媒体内容,包括图像和声音;在悬浮控件502中播放共享媒体流中的媒体内容的图像。
可选的,响应于第一用户作用于悬浮控件的拖拽操作,跟随所述拖拽操作动态调整悬浮控件的显示位置,响应于第一用户结束所述拖拽操作,确定悬浮控件的当前位置,根据当前位置确定悬浮控件在目标页面中的显示位置。例如,将目标页面等分为左右两个区域,确定当前位置对应的坐标点所落入的目标区域。若目标区域为左区域,将悬浮控件的显示位置中左上角点的横坐标设置为目标页面的左上角点的横坐标;若目标区域为右区域,将悬浮控件的显示位置中左上角点的横坐标设置为目标页面的左上角点的横坐标加上屏幕宽度再减去悬浮控件宽度。
步骤402、响应于第一用户针对悬浮控件的触发操作,在悬浮控件中显示第二预设控件。
第二预设控件用于控制第一用户和至少一个第二用户之间进行的共享互动,每次触发悬浮控件时所显示的第二预设控件的类型以及种类等可根据当前场景动态确定。
假设当前已经有一个第二用户加入共享,如图5所示,本端用户点击悬浮控件502后,可以在悬浮控件中显示共享页面切换控件503、悬浮控件关闭控件504、共享媒体流播放控制控件505(可包括暂停展示控件以及共享媒体流中的媒体内容切换控件,如切换至上一个和切换至下一个)、以及实时通话的麦克风开关控件506,还可以显示参与共享互动的用户B(第二用户)的用户标识507。可选的,若当前并不存在已经加入共享互动的第二用户,则用户标识507处可以替换为共享用户邀请控件。若第一用户触发共享用户邀请控件,可显示用户列表,供第一用户从中选取待邀请用户。可选的,若在群组会话中发起共享, 用户列表中可以展示对应的群组内的会话成员,此外,用户列表中可以展示第一用户的全部好友。
可选的,若第一用户触发一个预设控件后,所有预设控件可以隐藏;若第一用户未在指定时间内触发预设控件,所有预设控件也可以隐藏。
步骤403、响应于第一用户针对共享页面切换控件的触发操作,将目标页面切换至共享页面,并在共享页面中继续展示共享媒体流,其中,共享页面中包括悬浮控件切换控件。
如图5所示,假设用户A点击共享页面切换控件503,则将目标页面切换为共享页面508,并在共享页面508继续展示共享媒体流,共享页面508包括悬浮控件切换控件509。
步骤404、响应于第一用户针对悬浮控件切换控件的触发操作,将共享页面切换至目标页面,并在悬浮控件中继续展示共享媒体流。
如图5所示,假设用户A点击悬浮控件切换控件509,将共享页面切换至目标页面,并在悬浮控件中继续展示共享媒体流。
步骤405、响应于接收到全部第二用户中的至少一个第二用户的实时通话数据,播放实时通话数据对应的声音,并在悬浮控件中对全部第二用户中的至少一个第二用户对应的用户标识进行第二预设时长的展示。
示例性的,若在第一用户在悬浮控件模式观看多个媒体流的过程中,第二用户通过实时语音的方式对第一用户说话,则本端会接收到第二用户的实时通话数据,则播放实时通话数据对应的声音,并如图5所示,可以在悬浮控件中对用户B对应的用户标识507进行展示,展示时长可以是第一预设时长,如2秒。
步骤406、响应于检测到共享互动中的所有用户均通过悬浮控件展示共享媒体流,在悬浮控件中自动连续播放共享媒体流中的媒体内容,并在自动播放过程中,根据媒体内容中的图像的尺寸比例动态调整悬浮控件的尺寸比例。
如图5所示,在自动播放至一个16:9的尺寸比例的媒体内容时,可以适应性调整悬浮控件的尺寸比例,从竖屏模式悬浮控件切换为横屏模式悬浮控件510。
步骤407、响应于第三用户加入共享互动,在悬浮控件中对第三用户对应的用户标识进行第三预设时长的展示。
示例性的,假设第三用户新加入共享互动,如图5所示,可以在悬浮控件中显示用户C(第三用户)的用户标识511,展示时长例如可以是5秒,用户标 识的边框可以加粗并闪烁。随后,用户C成为第二用户中的一员,也即此时用户B和用户C均视为第二用户。
步骤408、响应于接收到全部第二用户中的至少一个第二用户的会话消息,在悬浮控件中对全部用户中的至少一个第二用户的用户标识和会话消息,进行第一预设时长的展示。
示例性的,如图5所示,用户C发送会话消息“我来了”之后,可以在悬浮控件中显示用户C的用户标识以及会话消息512,展示时长例如可以3秒。
步骤409、响应于第一用户针对会话消息的触发操作,展示针对全部第二用户中的至少一个第二用户的消息交互页面,其中,悬浮控件的显示优先级高于消息交互页面的显示优先级。
图6为本公开实施例所提供的另一种界面交互示意图,示例性的,假设会话消息512在显示过程中,共享媒体流自动切换至9:16的尺寸比例的的媒体内容,可自动切换回竖屏模式悬浮控件,用户A点击会话消息512后,显示消息交互页面513,此时悬浮控件显示于消息交互页面513上层。消息交互页面513可以显示用户A、用户B和用户C对应的群组会话中的历史消息记录,以及用户C刚刚发送的会话消息512。用户A可以基于消息交互页面513对用户C进行回复。
步骤410、响应于目标用户退出共享互动,根据共享互动中除目标用户之外的至少一个用户的媒体流的确定方式,对共享媒体流进行更新。
示例性的,假设用户B退出共享互动,则可以根据用户A和用户C分别对应的媒体流的确定方式,重新确定共享媒体流。
步骤411、在预设应用程序中从目标页面切换至预设页面后,在预设页面中继续显示悬浮控件,并在悬浮控件中继续展示共享媒体流。
示例性的,响应于将目标页面切换至第一页面的切换操作,从目标页面中移除自定义视图,并判断第一页面是否处于预设白名单中,若第一页面处于预设白名单,则确定第一页面为预设页面,并显示第一页面;在第一页面中添加自定义视图,并利用播放器继续展示共享媒体流。
如图6所示,假设用户A关闭消息交互页面513后,可以继续观看自己的媒体流。假设用户A对目标页面中当前展示的媒体内容感兴趣,想要继续了解媒体内容发布者用户XX,可以通过点击用户XX的头像514的方式(也即输入切换至第一页面的切换操作),进入用户XX的个人主页515(第一页面),从目标页面中移除自定义视图,若个人主页515处于预设白名单,则可以在个人主页515中添加自定义视图,并利用播放器继续展示共享媒体流。
示例性的,可以检测预设应用程序中的活动(Activity)的生命周期,一个活动对应一个页面,一个活动可以是检测生命周期中的开始函数(onstart)和结束函数(onstop),在检测到目标页面的活动对应的结束函数被调用时,可认为目标页面需要结束显示,在检测到第一页面的活动对应的开始函数被调用时,可认为第一页面需要开始显示,可认为检测到目标页面切换至第一页面的切换操作,此时可判断第一页面是否具备显示悬浮控件的条件,也即第一页面是否为预设页面,可以在活动的白名单中查询是否存在第一页面对应的活动,若在活动的白名单中查询存在第一页面对应的活动,可说明第一页面为预设页面。由于悬浮控件已经存在于目标页面中,不需要再次创建,将自定义视图从目标页面中移除(例如可调用remove view函数),在第一页面中添加自定义视图(例如可调用addview函数)。可选的,若第一页面不是预设页面,可销毁自定义视图,待切换至预设页面时,再重新创建自定义视图。
步骤412、在预设应用程序切换至后台运行状态后,在屏幕中继续显示悬浮控件,并在悬浮控件中继续展示共享媒体流。
示例性的,如图6所示,当用户A通过输入起始于屏幕底部边缘的上滑操作后,可以将预设应用程序切换至后台运行状态,此时,屏幕上显示桌面界面,界面中显示应用程序的图标,可以继续在屏幕中显示悬浮控件,方便用户A继续观看共享媒体流。
示例性的,检测到预设应用程序切换至后台运行状态,启动系统的悬浮窗服务,利用悬浮窗服务创建悬浮窗,并在悬浮窗中添加自定义视图,自定义视图的尺寸与悬浮控件的尺寸相匹配,自定义视图中封装有所述预设控件,在自定义视图中启动播放器,并利用播放器继续展示所述共享媒体流。
示例性的,图7为本公开实施例所提供的一种悬浮控件结构示意图,如图7所示,在预设应用程序之外显示的悬浮控件可以包括三层结构,最底层为系统级别的悬浮窗701,中间层为自定义视图702,最顶层为播放器层703,自定义视图702可以理解为播放器层703的容器,系统级别的悬浮窗701可以理解为自定义视图702的容器。
示例性的,预设应用程序切换至后台运行状态后,可以启动系统的悬浮窗服务(service)(该服务可以是前台服务,也可以是后台服务,可以根据电子设备的操作系统版本来确定),该服务开启后可认为得到系统授权,可以创建悬浮窗(例如可包括初始化悬浮窗以及配置悬浮窗相关参数等),在悬浮窗中添加自定义视图,还可以添加拖拽事件,以使悬浮控件支持拖拽,通过自定义视图获取共享媒体流,并开启播放器,将播放器对应的视图添加至自定义视图中,根据共享媒体流中媒体内容的尺寸确定悬浮控件的尺寸,并显示悬浮控件,通 过播放器播放共享媒体流中的媒体内容。可选的,触发悬浮控件后,可启动预设应用程序或将预设应用程序切换至前台运行状态,根据进入预设应用程序后的页面是否为预设页面,来决定是否在页面中继续显示悬浮控件。
本公开实施例提供的信息展示方法,第一用户可以在应用程序界面中同时观看自己的媒体流以及与第二用户共享的媒体流,悬浮控件中共享媒体流的声音不会播放,但播放对端语音的声音,可在减少共享媒体流的声音对自己媒体流的干扰的同时顺畅地进行语音交流,同时,用户可以直接通过悬浮控件中的预设控件对共享互动进行设置,提高共享设置的便捷性,悬浮控件中还可以对新加入用户、对端用户的会话消息等相关信息进行展示,进一步提升交互的便利性,在切换至预设页面或将预设应用程序切换至后台的情况下,依然可以以悬浮控件模式对共享媒体流进行展示,满足用户在不同场景下观看共享媒体流的需求,进一步提升用户体验。
图8为本公开实施例所提供的一种信息展示装置的结构示意图,该装置配置于第一用户侧,如图8所示,所述装置包括:媒体流展示模块801以及控件显示模块802。
媒体流展示模块801,设置为在预设应用程序的目标页面中展示第一用户对应的第一媒体流,在所述目标页面中显示悬浮控件,并在所述悬浮控件中展示共享媒体流,其中,所述共享媒体流包括用于在所述第一用户和至少一个第二用户之间进行的共享互动对应的媒体流;控件显示模块802,设置为在所述悬浮控件中显示预设控件,其中,所述预设控件用于显示所述第一用户和所述至少一个第二用户之间进行的共享互动的关联信息和/或控制所述第一用户和所述至少一个第二用户之间进行的共享互动。
本公开实施例所提供的信息展示装置,在预设应用程序的目标页面中展示第一用户对应的第一内容,在目标页面中显示悬浮控件,并在悬浮控件中展示共享媒体流,其中,共享媒体流包括用于在第一用户和至少一个第二用户之间进行的共享互动对应的媒体流,在悬浮控件中显示预设控件,其中,预设控件用于显示共享互动的关联信息和/或控制共享互动。通过采用上述技术方案,第一用户可以在应用程序界面中同时观看自己的页面内容以及与第二用户共享的媒体流,并可直接通过悬浮控件中的预设控件对共享互动进行控制,或者在悬浮控件中显示共享互动的关联信息,提高共享互动的便捷性,提升在媒体流共享过程中的用户体验。
可选的,所述关联信息包括所述共享互动生成的会话消息,所述控件显示模块802是设置为:响应于接收到全部第二用户中的至少一个第二用户的会话消息,在所述悬浮控件中显示第一预设控件,其中,所述第一预设控件用于显 示全部第二用户中的所述至少一个第二用户的用户标识和/或所述会话消息。
可选的,该装置还包括:消息交互页面展示模块,设置为响应于所述第一用户针对所述会话消息的触发操作,展示针对全部第二用户中的所述至少一个第二用户的消息交互页面,所述消息交互页面用于所述第一用户与全部第二用户中的所述至少一个第二用户进行会话消息的交互。
可选的,所述消息交互页面位于所述目标页面的上层,且所述消息交互页面的尺寸小于或等于所述目标页面的尺寸。
可选的,所述第一内容包括第一媒体流,所述第一媒体流与所述共享媒体流不同。
可选的,所述控件显示模块802是设置为:响应于所述第一用户针对所述悬浮控件的触发操作,在所述悬浮控件中显示第二预设控件,其中,所述第二预设控件用于控制所述第一用户和所述至少一个第二用户之间进行的共享互动。
可选的,所述第二预设控件包括共享页面切换控件,该装置还包括:在所述悬浮控件中显示第二预设控件之后,响应于所述第一用户针对所述共享页面切换控件的触发操作,将所述目标页面切换至共享页面,并在所述共享页面中继续展示所述共享媒体流,其中,所述共享页面中包括悬浮控件切换控件,所述悬浮控件切换控件用于将所述共享页面切换至悬浮控件。
可选的,该装置还包括:第二切换模块,设置为在所述共享页面中展示所述共享媒体流的过程中,检测到全部第二用户中的所述至少一个第二用户通过触发所述悬浮控件切换控件将第二用户侧的共享页面切换至悬浮控件,保持在所述共享页面中展示所述共享媒体流。
可选的,所述共享媒体流中包括图像和声音;所述在所述悬浮控件中展示共享媒体流,包括:在所述悬浮控件中展示所述共享媒体流中的图像,并禁止播放所述共享媒体流中的声音。
可选的,共享互动支持所述第一用户和所述至少一个第二用户进行实时通话;该装置还包括:通话声音播放模块,设置为当在所述悬浮控件中展示所述共享图像流中的图像,并禁止播放所述共享媒体流中的声音时,响应于接收到全部第二用户中的至少一个第二用户的实时通话数据,播放所述实时通话数据对应的声音。
可选的,共享互动支持所述第一用户和所述至少一个第二用户进行实时通话;所述控件显示模块8021是设置为:响应于接收到全部第二用户中的至少一个第二用户的实时通话数据,在所述悬浮控件中显示第三预设控件,其中,所 述第三预设控件用于显示全部第二用户中的所述至少一个第二用户对应的用户标识和/或全部第二用户中的所述至少一个第二用户的实时通话数据对应的图像。
可选的,该装置还包括:目标确定方式生成模块,设置为在所述悬浮控件中展示共享媒体流之前,根据所述第一用户对应的第一媒体流的第一确定方式和所述第二用户对应的第二媒体流的第二确定方式,生成目标确定方式;共享媒体流确定模块,设置为根据所述目标确定方式确定共享媒体流。
可选的,该装置还包括:尺寸调整模块,设置为在所述悬浮控件中展示共享媒体流的过程中,根据当前展示的所述共享媒体流中的媒体内容对所述悬浮控件的尺寸进行调整。
可选的,所述控件显示模块802是设置为:响应于第三用户加入共享互动,在所述悬浮控件中显示第四预设控件,其中,所述第四预设控件于显示所述第三用户对应的用户标识。
可选的,该装置还包括:共享媒体流更新模块,设置为响应于目标用户退出共享互动,根据所述共享互动中除所述目标用户之外的至少一个用户的媒体流的确定方式,对所述共享媒体流进行更新。
可选的,该装置还包括:第三切换模块,设置为响应于所述第一用户针对所述悬浮控件中的目标用户标识的触发操作,在确定共享互动在视频通话场景下发起的情况下,确定第一用户侧的通话图像和/或第二用户侧的通话图像是否开启,若第一用户侧的通话图像和/或第二用户侧的通话图像开启,则将所述目标页面切换至视频通话页面,或者,响应于所述第一用户针对所述悬浮控件中的目标用户标识的触发操作,将所述悬浮控件切换至视频通话模式,其中,所述视频通话模式下所述悬浮控件中包含所述第一用户的视频通话画面和/或所述目标用户标识所对应的用户的视频通话画面。
可选的,所述第二预设控件包括悬浮控件关闭控件,该装置还包括:判断模块,设置为在所述悬浮控件中显示第二预设控件之后,响应于所述第一用户针对所述悬浮控件关闭控件的触发操作,判断共享互动是否在视频通话场景下发起;悬浮控件隐藏模块,设置为在共享互动在视频通话场景下发起的情况下,将所述目标页面切换至所述视频通话页面,隐藏所述悬浮控件,并在所述视频通话页面中显示悬浮控件返回控件;悬浮控件关闭模块,设置为在共享互动未在视频通话场景下发起的情况下,关闭所述悬浮控件。
可选的,所述第二预设控件包括以下至少一种:共享用户邀请控件、共享页面切换控件、共享媒体流中的媒体内容切换控件、实时通话的视频画面控件 以及实时通话的语音控件。
可选的,在所述悬浮控件中展示共享媒体流,包括:响应于检测到所述至少一个第二用户对应的所有第二用户侧通过悬浮控件展示共享媒体流,在所述悬浮控件中自动连续播放共享
媒体流中的至少两个媒体内容。
可选的,该装置还包括:第一展示模块,设置为在所述预设应用程序中从所述目标页面切换至预设页面后,在所述预设页面中继续显示所述悬浮控件,并在所述悬浮控件中继续展示所述共享媒体流。
可选的,所述悬浮控件以自定义视图的形式存在,所述自定义视图中封装有所述预设控件,所述共享媒体流通过在所述自定义视图中启动的播放器进行展示;第一展示模块是设置为:响应于将所述目标页面切换至第一页面的切换操作,从所述目标页面中移除所述自定义视图,并判断所述第一页面是否处于预设白名单中,若所述第一页面处于预设白名单中,则确定所述第一页面为预设页面,并显示所述第一页面;在所述第一页面中添加所述自定义视图,并利用所述播放器继续展示所述共享媒体流。
可选的,该装置还包括:第二展示模块,设置为在所述预设应用程序切换至后台运行状态后,在屏幕中继续显示悬浮控件,并在悬浮控件中继续展示所述共享媒体流。
可选的,第二展示模块是设置为:检测到所述预设应用程序切换至后台运行状态,启动系统的悬浮窗服务;利用所述悬浮窗服务创建悬浮窗,并在所述悬浮窗中添加自定义视图,其中,所述自定义视图的尺寸与所述悬浮控件的尺寸相匹配,所述自定义视图中封装有所述预设控件;在所述自定义视图中启动播放器,并利用所述播放器继续展示所述共享媒体流。
本公开实施例所提供的信息展示装置可执行本公开任意实施例所提供的信息展示方法,具备执行方法相应的功能模块。
值得注意的是,上述装置所包括的多个单元和模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,多个功能单元的名称也只是为了便于相互区分,并不用于限制本公开实施例的保护范围。
图9为本公开实施例所提供的一种电子设备的结构示意图。下面参考图9,其示出了适于用来实现本公开实施例的电子设备(例如图9中的终端设备或服务器)900的结构示意图。本公开实施例中的终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、个人数字助理(Personal Digital Assistant, PDA)、平板电脑(Portable Android Device,PAD)、便携式多媒体播放器(Portable Media Player,PMP)、车载终端(例如车载导航终端)等的移动终端以及诸如数字电视(Television,TV)、台式计算机等的固定终端。图9示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图9所示,电子设备900可以包括处理装置(例如中央处理器、图形处理器等)901,其可以根据存储在只读存储器(Read-Only Memory,ROM)902中的程序或者从存储装置908加载到随机访问存储器(Random Access Memory,RAM)903中的程序而执行多种适当的动作和处理。在RAM 903中,还存储有电子设备900操作所需的多种程序和数据。处理装置901、ROM 902以及RAM 903通过总线904彼此相连。输入/输出(Input/Output,I/O)接口905也连接至总线904。
通常,以下装置可以连接至I/O接口905:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置906;包括例如液晶显示器(Liquid Crystal Display,LCD)、扬声器、振动器等的输出装置907;包括例如磁带、硬盘等的存储装置908;以及通信装置909。通信装置909可以允许电子设备900与其他设备进行无线或有线通信以交换数据。虽然图9示出了具有多种装置的电子设备900,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。
根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置909从网络上被下载和安装,或者从存储装置908被安装,或者从ROM 902被安装。在该计算机程序被处理装置901执行时,执行本公开实施例的方法中限定的上述功能。
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。
本公开实施例提供的电子设备与上述实施例提供的信息展示方法属于同一发明构思,未在本实施例中详尽描述的技术细节可参见上述实施例。
本公开实施例提供了一种计算机存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述实施例所提供的信息展示方法。
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例 如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、RAM、ROM、可擦式可编程只读存储器(Erasable Programmable Read-Only Memory,EPROM)或闪存、光纤、便携式紧凑磁盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、射频(Radio Frequency,RF)等,或者上述的任意合适的组合。
在一些实施方式中,客户端、服务器可以利用诸如超文本传输协议(HyperText Transfer Protocol,HTTP)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(Local Area Network,LAN),广域网(Wide Area Network,WAN),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:在预设应用程序的目标页面中展示第一用户对应的第一内容,在所述目标页面中显示悬浮控件,并在所述悬浮控件中展示共享媒体流,其中,所述共享媒体流包括用于在所述第一用户和至少一个第二用户之间进行的共享互动对应的媒体流;在所述悬浮控件中显示预设控件,其中,所述预设控件用于显示所述第一用户和所述至少一个第二用户之间进行的共享互动的关联信息和/或控制所述第一用户和所述至少一个第二用户之间进行的共享互动。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计语言— 诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括LAN或WAN—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本公开多种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。模块的名称在一种情况下并不构成对该模块本身的限定,例如,媒体流展示模块还可以被描述为“在预设应用程序的目标页面中展示第一用户对应的第一内容,在所述目标页面中显示悬浮控件,并在所述悬浮控件中展示共享媒体流的模块,其中,所述共享媒体流包括用于在所述第一用户和至少一个第二用户之间进行的共享互动对应的媒体流”。
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(Field Programmable Gate Array,FPGA)、专用集成电路(Application Specific Integrated Circuit,ASIC)、专用标准产品(Application Specific Standard Parts,ASSP)、片上系统(System on Chip,SOC)、复杂可编程逻辑设备(Complex Programmable Logic Device,CPLD)等。
在本申请的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质 的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、RAM、ROM、EPROM或快闪存储器、光纤、CD-ROM、光学储存设备、磁储存设备、或上述内容的任何合适组合。
根据本公开的一个或多个实施例,提供了一种信息展示方法,应用与第一用户侧,包括:在预设应用程序的目标页面中展示第一用户对应的第一内容,在所述目标页面中显示悬浮控件,并在所述悬浮控件中展示共享媒体流,其中,所述共享媒体流包括用于在所述第一用户和至少一个第二用户之间进行的共享互动对应的媒体流;在所述悬浮控件中显示预设控件,其中,所述预设控件用于显示所述第一用户和所述至少一个第二用户之间进行的共享互动的关联信息和/或控制所述第一用户和所述至少一个第二用户之间进行的共享互动。
根据本公开的一个或多个实施例,所述关联信息包括所述共享互动生成的会话消息,所述在所述悬浮控件中显示预设控件,包括:响应于接收到全部第二用户中的至少一个第二用户的会话消息,在所述悬浮控件中显示第一预设控件,其中,所述第一预设控件用于显示全部第二用户中的所述至少一个第二用户的用户标识和/或所述至少一个第二用户的会话消息。
根据本公开的一个或多个实施例,还包括:响应于所述第一用户针对所述会话消息的触发操作,展示针对全部第二用户中的所述至少一个第二用户的消息交互页面,所述消息交互页面用于所述第一用户与全部第二用户中的所述至少一个第二用户进行会话消息的交互。
根据本公开的一个或多个实施例,所述消息交互页面位于所述目标页面的上层,且所述消息交互页面的尺寸小于或等于所述目标页面的尺寸。
根据本公开的一个或多个实施例,所述第一内容包括第一媒体流,所述第一媒体流与所述共享媒体流不同。
根据本公开的一个或多个实施例,所述在所述悬浮控件中显示预设控件,包括:响应于所述第一用户针对所述悬浮控件的触发操作,在所述悬浮控件中显示第二预设控件,其中,所述第二预设控件用于控制所述第一用户和所述至少一个第二用户之间进行的共享互动。
根据本公开的一个或多个实施例,所述共享媒体流中包括图像和声音;所述在所述悬浮控件中展示共享媒体流,包括:在所述悬浮控件中展示所述共享图像流中的图像,并禁止播放所述共享媒体流中的声音。
根据本公开的一个或多个实施例,所述共享互动支持所述第一用户和所述至少一个第二用户进行实时通话;所述方法还包括:当在所述悬浮控件中展示所述共享图像流中的图像,并禁止播放所述共享媒体流中的声音时,响应于接 收到全部第二用户中的至少一个第二用户的实时通话数据,播放所述实时通话数据对应的声音。
根据本公开的一个或多个实施例,所述共享互动支持所述第一用户和所述至少一个第二用户进行实时通话;所述在所述悬浮控件中显示预设控件,包括:响应于接收到全部第二用户中的至少一个第二用户的实时通话数据,在所述悬浮控件中显示第三预设控件,其中,所述第三预设控件用于显示全部第二用户中的所述至少一个第二用户对应的用户标识和/或全部第二用户中的所述至少一个第二用户的实时通话数据对应的图像。
根据本公开的一个或多个实施例,在所述悬浮控件中展示共享媒体流之前,还包括:根据所述第一用户对应的第一媒体流的第一确定方式和所述至少一个第二用户对应的第二媒体流的第二确定方式,生成目标确定方式;根据所述目标确定方式确定共享媒体流。
根据本公开的一个或多个实施例,在所述悬浮控件中展示共享媒体流的过程中,所述方法还包括:根据当前展示的所述共享媒体流中的媒体内容对所述悬浮控件的尺寸进行调整。
根据本公开的一个或多个实施例,所述在所述悬浮控件中显示预设控件,包括:响应于第三用户加入所述共享互动,在所述悬浮控件中显示第四预设控件,其中,所述第四预设控件用于显示所述第三用户对应的用户标识。
根据本公开的一个或多个实施例,还包括:响应于目标用户退出所述共享互动,根据所述共享互动中除所述目标用户之外的至少一个用户的媒体流的确定方式,对所述共享媒体流进行更新。
根据本公开的一个或多个实施例,还包括:响应于所述第一用户针对所述悬浮控件中的目标用户标识的触发操作,在确定所述共享互动在视频通话场景下发起的情况下,确定第一用户侧的通话图像和/或第二用户侧的通话图像是否开启,若第一用户侧的通话图像和/或第二用户侧的通话图像开启,则将所述目标页面切换至视频通话页面,或者,响应于所述第一用户针对所述悬浮控件中的目标用户标识的触发操作,将所述悬浮控件切换至视频通话模式,其中,所述视频通话模式下所述悬浮控件中包含所述第一用户的视频通话画面和/或所述目标用户标识所对应的用户的视频通话画面。
根据本公开的一个或多个实施例,所述第二预设控件包括悬浮控件关闭控件,在所述悬浮控件中显示第二预设控件之后,还包括:响应于所述第一用户针对所述悬浮控件关闭控件的触发操作,判断所述共享互动是否在视频通话场景下发起;若所述共享互动在视频通话场景下发起,则将所述目标页面切换至 所述视频通话页面,隐藏所述悬浮控件,并在所述视频通话页面中显示悬浮控件返回控件;若所述共享互动未在视频通话场景下发起,关闭所述悬浮控件。
根据本公开的一个或多个实施例,所述第二预设控件包括以下至少一种:共享用户邀请控件、共享页面切换控件、共享媒体流中的媒体内容切换控件、实时通话的视频画面控件以及实时通话的语音控件。
根据本公开的一个或多个实施例,还包括:在所述预设应用程序中从所述目标页面切换至预设页面后,在所述预设页面中继续显示所述悬浮控件,并在所述悬浮控件中继续展示所述共享媒体流。
根据本公开的一个或多个实施例,所述悬浮控件以自定义视图的形式存在,所述自定义视图中封装有所述预设控件,所述共享媒体流通过在所述自定义视图中启动的播放器进行展示;其中,在所述预设应用程序中从所述目标页面切换至预设页面后,在所述预设页面中继续显示所述悬浮控件,并在所述悬浮控件中继续展示所述共享媒体流,包括:响应于将所述目标页面切换至第一页面的切换操作,从所述目标页面中移除所述自定义视图,并判断所述第一页面是否处于预设白名单中,若所述第一页面处于预设白名单中,则确定所述第一页面为预设页面,并显示所述第一页面;在所述第一页面中添加所述自定义视图,并利用所述播放器继续展示所述共享媒体流。
根据本公开的一个或多个实施例,提供了一种信息展示装置,配置于第一用户侧,包括:媒体流展示模块,设置为在预设应用程序的目标页面中展示第一用户对应的第一内容,在所述目标页面中显示悬浮控件,并在所述悬浮控件中展示共享媒体流,其中,所述共享媒体流包括用于在所述第一用户和至少一个第二用户之间进行的共享互动对应的媒体流;控件显示模块,设置为在所述悬浮控件中显示预设控件,其中,所述预设控件用于显示所述第一用户和所述至少一个第二用户之间进行的共享互动的关联信息和/或控制所述第一用户和所述至少一个第二用户之间进行的共享互动。
根据本公开的一个或多个实施例,提供了一种电子设备,所述电子设备包括:一个或多个处理器;存储装置,设置为存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现本公开实施例提供的信息展示方法。
根据本公开的一个或多个实施例,提供了一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行本公开实施例提供的信息展示方法。
以上描述仅为本公开的实施例以及对所运用技术原理的说明。本领域技术 人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。
此外,虽然采用特定次序描绘了多个操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了多个实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的一些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的多种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。

Claims (22)

  1. 一种信息展示方法,应用于第一用户侧,包括:
    在预设应用程序的目标页面中展示第一用户对应的第一内容,在所述目标页面中显示悬浮控件,并在所述悬浮控件中展示共享媒体流,其中,所述共享媒体流包括用于在所述第一用户和至少一个第二用户之间进行的共享互动对应的媒体流;
    在所述悬浮控件中显示预设控件,其中,所述预设控件用于以下至少之一:显示所述第一用户和所述至少一个第二用户之间进行的共享互动的关联信息和控制所述第一用户和所述至少一个第二用户之间进行的共享互动。
  2. 根据权利要求1所述的方法,其中,所述关联信息包括所述共享互动生成的会话消息,所述在所述悬浮控件中显示预设控件,包括:
    响应于接收到全部第二用户中的至少一个第二用户的会话消息,在所述悬浮控件中显示第一预设控件,其中,所述第一预设控件用于显示以下至少之一:全部第二用户中的所述至少一个第二用户的用户标识和所述会话消息。
  3. 根据权利要求2所述的方法,还包括:
    响应于所述第一用户针对所述会话消息的触发操作,展示针对全部第二用户中的所述至少一个第二用户的消息交互页面,所述消息交互页面用于所述第一用户与全部第二用户中的所述至少一个第二用户进行会话消息的交互。
  4. 根据权利要求3所述的方法,其中,所述消息交互页面位于所述目标页面的上层,且所述消息交互页面的尺寸小于或等于所述目标页面的尺寸。
  5. 根据权利要求1所述的方法,其中,所述第一内容包括第一媒体流,所述第一媒体流与所述共享媒体流不同。
  6. 根据权利要求1所述的方法,其中,所述在所述悬浮控件中显示预设控件,包括:
    响应于所述第一用户针对所述悬浮控件的触发操作,在所述悬浮控件中显示第二预设控件,其中,所述第二预设控件用于控制所述第一用户和所述至少一个第二用户之间进行的共享互动。
  7. 根据权利要求5所述的方法,其中,所述共享媒体流中包括图像和声音;所述在所述悬浮控件中展示共享媒体流,包括:
    在所述悬浮控件中展示所述共享媒体流中的图像,并禁止播放所述共享媒体流中的声音。
  8. 根据权利要求7所述的方法,其中,所述共享互动支持所述第一用户和所述至少一个第二用户进行实时通话;所述方法还包括:
    在在所述悬浮控件中展示所述共享媒体流中的图像,并禁止播放所述共享媒体流中的声音的情况下,响应于接收到全部第二用户中的至少一个第二用户的实时通话数据,播放所述实时通话数据对应的声音。
  9. 根据权利要求1所述的方法,其中,所述共享互动支持所述第一用户和所述至少一个第二用户进行实时通话;所述在所述悬浮控件中显示预设控件,包括:
    响应于接收到全部第二用户中的至少一个第二用户的实时通话数据,在所述悬浮控件中显示第三预设控件,其中,所述第三预设控件用于显示以下至少之一:全部第二用户中的所述至少一个第二用户对应的用户标识和全部第二用户中的所述至少一个第二用户的实时通话数据对应的图像。
  10. 根据权利要求5所述的方法,在所述悬浮控件中展示共享媒体流之前,还包括:
    根据所述第一用户对应的所述第一媒体流的第一确定方式和所述至少一个第二用户对应的第二媒体流的第二确定方式,生成目标确定方式;
    根据所述目标确定方式确定共享媒体流。
  11. 根据权利要求1所述的方法,其中,在所述悬浮控件中展示共享媒体流的过程中,所述方法还包括:
    根据当前展示的所述共享媒体流中的媒体内容对所述悬浮控件的尺寸进行调整。
  12. 根据权利要求1所述的方法,其中,所述在所述悬浮控件中显示预设控件,包括:
    响应于第三用户加入所述共享互动,在所述悬浮控件中显示第四预设控件,其中,所述第四预设控件用于显示所述第三用户对应的用户标识。
  13. 根据权利要求5所述的方法,还包括:
    响应于目标用户退出所述共享互动,根据所述共享互动中除所述目标用户之外的至少一个用户的媒体流的确定方式,对所述共享媒体流进行更新。
  14. 根据权利要求1所述的方法,还包括:
    响应于所述第一用户针对所述悬浮控件中的目标用户标识的触发操作,在确定所述共享互动在视频通话场景下发起的情况下,确定所述第一用户侧的通话图像和第二用户侧的通话图像中的至少之一是否开启,响应于所述第一用户侧的通话图像和所述第二用户侧的通话图像中的至少之一开启的确定结果,将所述目标页面切换至视频通话页面,或者,
    响应于所述第一用户针对所述悬浮控件中的目标用户标识的触发操作,将所述悬浮控件切换至视频通话模式,其中,所述视频通话模式下所述悬浮控件中包含所述第一用户的视频通话画面和所述目标用户标识所对应的用户的视频通话画面中的至少之一。
  15. 根据权利要求6所述的方法,其中,所述第二预设控件包括悬浮控件关闭控件,在所述悬浮控件中显示第二预设控件之后,还包括:
    响应于所述第一用户针对所述悬浮控件关闭控件的触发操作,判断所述共享互动是否在视频通话场景下发起;
    响应于所述共享互动是在所述视频通话场景下发起的确定结果,将所述目标页面切换至视频通话页面,隐藏所述悬浮控件,并在所述视频通话页面中显示悬浮控件返回控件;
    响应于所述共享互动不是在所述视频通话场景下发起的确定结果,关闭所述悬浮控件。
  16. 根据权利要求6所述的方法,其中,所述第二预设控件包括以下至少一种:共享用户邀请控件、共享页面切换控件、所述共享媒体流中的媒体内容切换控件、实时通话的视频画面控件以及实时通话的语音控件。
  17. 根据权利要求1所述的方法,还包括:
    在所述预设应用程序中从所述目标页面切换至预设页面后,在所述预设页面中继续显示所述悬浮控件,并在所述悬浮控件中继续展示所述共享媒体流。
  18. 根据权利要求17所述的方法,其中,所述悬浮控件以自定义视图的形式存在,所述自定义视图中封装有预设控件,所述共享媒体流通过在所述自定义视图中启动的播放器进行展示;
    其中,在所述预设应用程序中从所述目标页面切换至预设页面后,在所述预设页面中继续显示所述悬浮控件,并在所述悬浮控件中继续展示所述共享媒体流,包括:
    响应于将所述目标页面切换至第一页面的切换操作,从所述目标页面中移除所述自定义视图,并判断所述第一页面是否处于预设白名单中,响应于所述第一页面处于所述预设白名单中的确定结果,确定所述第一页面为预设页面,并显示所述第一页面;
    在所述第一页面中添加所述自定义视图,并利用所述播放器继续展示所述共享媒体流。
  19. 一种信息展示装置,配置于第一用户侧,包括:
    媒体流展示模块,设置为在预设应用程序的目标页面中展示第一用户对应的第一内容,在所述目标页面中显示悬浮控件,并在所述悬浮控件中展示共享媒体流,其中,所述共享媒体流包括用于在所述第一用户和至少一个第二用户之间进行的共享互动对应的媒体流;
    控件显示模块,设置为在所述悬浮控件中显示预设控件,其中,所述预设控件用于以下至少之一:显示所述第一用户和所述至少一个第二用户之间进行的共享互动的关联信息和控制所述第一用户和所述至少一个第二用户之间进行的共享互动。
  20. 根据权利要求19所述的装置,包括:设置为执行如权利要求2-18任一项所述的方法的模块。
  21. 一种电子设备,包括:
    至少一个处理器;
    存储装置,设置为存储至少一个程序,
    当所述至少一个程序被所述至少一个处理器执行,使得所述至少一个处理器实现如权利要求1-18中任一所述的信息展示方法。
  22. 一种包含计算机可执行指令的存储介质,其中,所述计算机可执行指令在由计算机处理器执行时用于执行如权利要求1-18中任一所述的信息展示方法。
PCT/CN2023/091693 2022-05-06 2023-04-28 信息展示方法、装置、设备及存储介质 WO2023213245A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210488369.6 2022-05-06
CN202210488369.6A CN114911399A (zh) 2022-05-06 2022-05-06 信息展示方法、装置、设备及存储介质

Publications (1)

Publication Number Publication Date
WO2023213245A1 true WO2023213245A1 (zh) 2023-11-09

Family

ID=82767651

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/091693 WO2023213245A1 (zh) 2022-05-06 2023-04-28 信息展示方法、装置、设备及存储介质

Country Status (2)

Country Link
CN (1) CN114911399A (zh)
WO (1) WO2023213245A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114911399A (zh) * 2022-05-06 2022-08-16 北京字跳网络技术有限公司 信息展示方法、装置、设备及存储介质
CN115617436A (zh) * 2022-10-10 2023-01-17 北京字跳网络技术有限公司 内容展示方法、装置、设备及存储介质
CN115633206A (zh) * 2022-10-13 2023-01-20 北京字跳网络技术有限公司 媒体内容展示方法、装置、设备及存储介质
CN115639934A (zh) * 2022-11-03 2023-01-24 北京字跳网络技术有限公司 内容分享方法、装置、设备、计算机可读存储介质及产品
CN115904591B (zh) * 2022-11-29 2024-03-29 北京字跳网络技术有限公司 媒体内容的展示方法、装置、电子设备和存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528021A (zh) * 2016-10-27 2017-03-22 三星电子(中国)研发中心 屏幕内容共享方法及装置
CN113630511A (zh) * 2020-05-06 2021-11-09 连普乐士株式会社 反应显示方法、计算机装置及计算机可读记录介质
CN114116101A (zh) * 2021-11-26 2022-03-01 北京字跳网络技术有限公司 消息显示方法、装置、设备及存储介质
CN114911399A (zh) * 2022-05-06 2022-08-16 北京字跳网络技术有限公司 信息展示方法、装置、设备及存储介质
CN115617436A (zh) * 2022-10-10 2023-01-17 北京字跳网络技术有限公司 内容展示方法、装置、设备及存储介质

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105554280B (zh) * 2015-12-18 2019-04-05 北京金山安全软件有限公司 一种消息提醒的方法及终端
CN105898615A (zh) * 2015-12-25 2016-08-24 乐视网信息技术(北京)股份有限公司 一种视频显示窗口的切换方法及装置
CN107656671A (zh) * 2017-09-29 2018-02-02 珠海市魅族科技有限公司 悬浮小窗控制方法及装置、终端装置及计算机可读存储介质
CN112437326A (zh) * 2020-11-23 2021-03-02 广州虎牙科技有限公司 视频显示方法、装置、电子设备及计算机可读存储介质
CN113489937B (zh) * 2021-07-02 2023-06-20 北京字跳网络技术有限公司 视频共享方法、装置、设备及介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528021A (zh) * 2016-10-27 2017-03-22 三星电子(中国)研发中心 屏幕内容共享方法及装置
CN113630511A (zh) * 2020-05-06 2021-11-09 连普乐士株式会社 反应显示方法、计算机装置及计算机可读记录介质
CN114116101A (zh) * 2021-11-26 2022-03-01 北京字跳网络技术有限公司 消息显示方法、装置、设备及存储介质
CN114911399A (zh) * 2022-05-06 2022-08-16 北京字跳网络技术有限公司 信息展示方法、装置、设备及存储介质
CN115617436A (zh) * 2022-10-10 2023-01-17 北京字跳网络技术有限公司 内容展示方法、装置、设备及存储介质

Also Published As

Publication number Publication date
CN114911399A (zh) 2022-08-16

Similar Documents

Publication Publication Date Title
WO2023213245A1 (zh) 信息展示方法、装置、设备及存储介质
US11502517B2 (en) Remote shared content experience systems
US11477516B2 (en) Services over wireless communication with high flexibility and efficiency
US11310294B2 (en) Companion devices for real-time collaboration in communication sessions
WO2023274354A1 (zh) 视频共享方法、装置、设备及介质
CN111147357A (zh) 数字助手在通信中的使用
CN110708602A (zh) 视频启动方法、装置、电子设备及存储介质
CN111246225B (zh) 信息交互方法、装置、电子设备及计算机可读存储介质
WO2022199426A1 (zh) 视频的展示方法、装置、电子设备和存储介质
CN107526591B (zh) 切换直播间类型的方法和装置
WO2024078486A1 (zh) 内容展示方法、装置、设备及存储介质
CN113301363B (zh) 直播信息处理方法、装置及电子设备
WO2021169432A1 (zh) 直播应用的数据处理方法、装置、电子设备及存储介质
WO2023093698A1 (zh) 游戏直播的交互方法、存储介质、程序产品及电子设备
WO2023093788A1 (zh) 消息显示方法、装置、设备及存储介质
CN111790148A (zh) 游戏场景中的信息交互方法、设备及计算机可读介质
WO2023226814A1 (zh) 视频处理方法、装置、电子设备及存储介质
CN114647395A (zh) 投屏方法、装置、电子设备及存储介质
WO2023098011A1 (zh) 视频播放方法及电子设备
CN112565657B (zh) 通话互动方法、装置、设备及存储介质
CN109819341B (zh) 视频播放方法、装置、计算设备及存储介质
WO2024051606A1 (zh) 一种游戏展示方法、装置、终端及存储介质
US11465056B2 (en) Game mediation component for enriching multiplayer gaming sessions
WO2023072280A1 (zh) 媒体内容发送方法、装置、设备、可读存储介质及产品
JP2023046371A (ja) ゲーム生配信のインタラクション方法、装置、電子機器及び記憶媒体

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23799231

Country of ref document: EP

Kind code of ref document: A1