Embodiments of this application relate to the field of Internet technologies, including a spectator interaction method and apparatus, a device, a storage medium, and a program product.
With the development of computer technologies and networks, the development of online games is increasingly fast. At present, most online games support the spectator function, and users can watch the ongoing battle in real time through a spectator platform.
In related art, a plurality of users interact with each other mainly by transmitting text or voice messages to each other in a spectator process.
However, in the foregoing interaction process, interaction between users needs to rely on transmitting texts or voice messages, resulting in more frequent interactive operations in the spectator process, which reduces the efficiency of human-machine interaction while occupying more backend resources.
Embodiments of this application provide a spectator interaction method and apparatus, a device, a storage medium, and a program product, to save backend resources. The technical solutions are as follows.
In an embodiment, a spectator interaction method includes displaying an interactive control for a first spectator account watching an online battle, the interactive control configured to trigger an interaction between the first spectator account and one or more spectator accounts currently watching the online battle. The method further includes displaying first interactive content in response to receiving a trigger operation on the interactive control, the first interactive content having a display starting time point and a display ending time point. The first interactive content is display content transmitted to the one or more spectator accounts in a first spectator set. The method further includes displaying a quantity of spectator accounts corresponding to the first interactive content, the quantity of spectator accounts including one or more spectator accounts in the first spectator set that have interacted with the transmitted first interactive content, and including spectator accounts that have interacted with second interactive content triggered by a second spectator account between the display starting time point and the display ending time point. The second interactive content is a same interactive content type as the first interactive content.
In an embodiment, a spectator interaction apparatus includes processing circuitry configured to display an interactive control for a first spectator account watching an online battle, the interactive control being configured to trigger an interaction between the first spectator account and one or more spectator accounts currently watching the online battle. The processing circuitry is further configured to display first interactive content in response to receiving a trigger operation on the interactive control. The first interactive content has a display starting time point and a display ending time point, and the first interactive content is configured to be transmitted to the one or more spectator accounts in a first spectator set. The processing circuitry is further configured to display a quantity of spectator accounts corresponding to the displayed first interactive content, the quantity of spectator accounts including one or more spectator accounts in the first spectator set that have interacted with the transmitted first interactive content and spectator accounts that have interacted with second interactive content triggered by a second spectator account between the display starting time point and the display ending time point. The second interactive content is a same interactive content type as the first interactive content.
In an embodiment, a non-transitory computer-readable storage medium stores computer-readable instructions thereon, which, when executed by processing circuitry, cause the processing circuitry to perform a spectator interaction method. The method includes displaying an interactive control for a first spectator account watching an online battle, the interactive control configured to trigger an interaction between the first spectator account and one or more spectator accounts currently watching the online battle. The method further includes displaying first interactive content in response to receiving a trigger operation on the interactive control, the first interactive content having a display starting time point and a display ending time point. The first interactive content is display content transmitted to the one or more spectator accounts in a first spectator set. The method further includes displaying a quantity of spectator accounts corresponding to the first interactive content, the quantity of spectator accounts including one or more spectator accounts in the first spectator set that have interacted with the transmitted first interactive content, and including spectator accounts that have interacted with second interactive content triggered by a second spectator account between the display starting time point and the display ending time point. The second interactive content is a same interactive content type as the first interactive content.
The technical solutions provided in the embodiments of this application may include the following beneficial effects:
Same interactive content displayed on spectator interfaces of different spectator accounts is transmitted to some spectator accounts, a quantity of spectator accounts that respond to the same interactive content in a period of time is counted, and a specified response result is displayed in the spectator interfaces based on the quantity of spectator accounts, which saves computing resources of the backend while implementing interaction sharing among different spectator accounts.
In a related art, spectator accounts are supported to communicate with each other through voice messages, text messages, picture messages, and the like in a spectator interface. A communication platform may be a dialog box in the spectator interface. The spectator accounts are also supported to initiate relatively simple interactions in the spectator interface. For example, in a case that a spectator account is watching a game battle, and a battling party supported by the spectator account wins, the spectator account may initiate a cheering interaction, and a spectator account that receives the cheering interaction may respond to the cheering interaction. However, in a case that there are many spectator accounts that are simultaneously online in a battle, interactions with more information, such as voice messages, text messages, and picture messages, cannot be obtained quickly, and are low-efficient interaction manners. In addition, every spectator account may transmit interactive content, and a backend needs to repeatedly forward the interactive content and count a response result of each piece of interactive content. Therefore, more backend resources are occupied.
An embodiment of this application provides a spectator interaction method. A spectator account may transmit interactive content to some specified spectator accounts. In a period of time, in a case that same specified interactive content is transmitted by a plurality of spectator accounts, first, the specified spectator accounts do not receive the same specified interactive content repeatedly; second, the backend counts a quantity of all specified spectator accounts that respond to the specified interactive content in the period of time (the specified interactive content is same interactive content initiated by a plurality of spectator accounts in a period of time), and the backend transmits a response result to the spectator account based on the quantity of the specified spectator accounts. For example, in a period of time from the 0th second to the 7th second, a total of X accounts respond to a high-five interaction initiated by a spectator A. At the 4th second, a spectator B initiates a same high-five interaction. In a period of time from the 4th second to the 7th second, a total of Y accounts respond to the high-five interaction initiated by the spectator B. In this case, in the period of time from the 0th second to the 7th second, a quantity of accounts that respond to the high-five interaction initiated by the spectator A includes: a quantity X of accounts that respond to the high-five interaction initiated by the spectator A and a quantity Y of accounts that respond to the high-five interaction initiated by the spectator B.
Interaction sharing is implemented in the foregoing manner of calculating a quantity of accounts that respond, which saves computing resources of the backend while improving the spectator interaction experience of users.
In an embodiment of this application, an application with a spectator function is installed in the first terminal 101 and the second terminal 102. In an embodiment, the application includes a game application, a live streaming application, a shopping application, a social application, and the like. This is not limited in this embodiment. A first spectator account is logged in to the first terminal 101.
The first terminal 101 transmits an interaction request to the server 110. The interaction request includes interaction information. The interaction information includes at least first interactive content and moment information. The server 110 transmits the interaction information to some second terminals 102 in response to the interaction request. The second terminals 102 that receive the interaction information may respond to the interaction information, and feed back response results to the server 110. Based on the response results, the server 110 counts a quantity of accounts that respond and forwards, to the first terminal 101, the quantity of accounts that respond. The quantity of accounts that respond is displayed on a spectator page of the first terminal 101 and the second terminals 102 that respond to the interaction information. During a same period of time, in a case that there is a same interaction request transmitted by another first terminal 101, and correspondingly, there are other second terminals 102 that respond to the interaction request, the quantity of accounts that respond further includes a quantity of the other second terminals 102 that respond to the same interaction request.
In some embodiments, the terminal 100 may be a smartphone, a tablet computer, a notebook computer, a desktop computer, a smart household appliance, a smart in-vehicle terminal, a smart speaker, or the like, but is not limited thereto.
The server 110 may be an independent physical server, or may be a server cluster or a distributed system formed by a plurality of physical servers, or may be a cloud server that provides basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a network service, cloud communication, a middleware service, a domain name service, a security service, a content delivery network (CDN), big data, and an artificial intelligence platform.
The cloud technology is an anchoring technology that unifies a series of resources, such as hardware, software, and networks, in a wide area network or a local area network to implement computing, storage, processing, and sharing of data.
In some embodiments, the communication network 120 may be a wired network, or may be a wireless network. This is not limited herein.
Information (including, but not limited to, user equipment information, user personal information, and the like), data (including, but not limited to, data for analysis, stored data, displayed data, and the like), and a signal involved in this application are all authorized by the user or fully authorized by each party, and collection, use, and processing of relevant data need to comply with relevant laws and regulations of relevant countries and regions.
The spectator interaction method provided in the embodiments of this application may be applied to at least the following application scenarios.
1. Spectator Interaction in an Online Game
A spectator module is provided in an online game. A user may select a battle in the spectator module to enter a spectator interface, to watch the battle in real time. An interactive control is displayed in the spectator interface of the game. For example, a spectator may click/tap the interactive control to trigger displaying interactive content and transmitting the interactive content to another spectator. The interactive content includes displaying text prompt information. The text prompt information includes a quantity of other spectators that respond to the interactive content. For example, “XX people high-five you” is displayed in the interactive content. The “XX people” herein includes all accounts that respond to a same interactive content in a period of time. In other words, the “XX people” includes a quantity of accounts that respond corresponding to an interaction initiated by a current account, and further includes a quantity of accounts that respond corresponding to a same interaction initiated by another account in an overlapping period of time. The interaction can be shared among different accounts in a simple interaction manner, which improves interactive experience of users on a spectator platform.
2. Spectator Interaction in a Live Match Streaming
During a live match streaming, a spectator user automatically enters a spectator mode, and users may independently initiate an interaction in a function interface of a discussion area or a spectator interface. Both the spectator user and a commentator user may initiate a simple interactive operation through an interactive control. For example, an applause interaction may be initiated in a case that an exciting game moment occurs. A quantity of accounts that respond to the applause interaction can be seen in the spectator interface in real time. The quantity of accounts that respond to the applause interaction is a total quantity of accounts that respond to all applause interactions initiated in this period of time. Through such a simple interaction, an interactive feeling of an offline game is restored as much as possible, and the users are brought with a feeling that everyone is applauding, which improves the spectator experience of the users.
The foregoing application scenarios are merely examples. Another application scenario of the spectator interaction method provided in the embodiments of this application is not limited herein.
With reference to the introduction and the implementation environment,
In an embodiment, the first spectator account refers to an account that logs in to a specified platform and that initiates an interaction. A platform function corresponding to the specified platform includes at least a spectator function. For example, in a case that the specified platform is implemented as an online game platform, the first spectator account is a player account that logs in to the online game platform for spectating. In a case that the specified platform is implemented as a live match streaming platform, the first spectator account is a user account that logs in to the platform for watching a live match streaming.
The online battle refers to a battle that is ongoing, or that is over, or that is ready to start on the specified platform. The online battle may be implemented as a game battle in an online game, a sports match, an e-sports match, a quiz competition, or the like. This is not limited in this embodiment.
The spectator interface refers to an interface that displays battle content of the online battle. The spectator interface includes an interactive control. The interactive control is configured to trigger an interaction with a spectator account that is watching the online battle. In an embodiment, the spectator interface further includes a spectator count display control. The spectator count display control is configured to display in real time a total quantity of accounts watching the online battle.
In an embodiment, the interactive control is displayed in the spectator interface. A display form of the interactive control includes temporarily displaying the interactive control as a pop-up window in the spectator interface, permanently displaying the interactive control in the spectator interface, and the like. For example, in a case that the interactive control is temporarily displayed in the spectator interface as a pop-up window, before the interactive control is displayed, the following is included: displaying an interactive button in the spectator interface; receiving a click/tap operation on the interactive button; and displaying the interactive control in the spectator interface in response to the click/tap operation.
In an embodiment, the pop-up window is a pop-up window in a temporary status. The pop-up window is closed in a case that a region of the spectator interface outside the pop-up window is clicked/tapped. For example, referring to
For example, in a case that the specified platform is implemented as an online game platform, the first spectator account is implemented as a player account, and a display manner of the spectator interface includes at least one of the following manners:
The first interactive content corresponds to a display starting moment and a display ending moment. The first interactive content is transmitted to a spectator account in a first spectator set.
In an embodiment, at least one interactive action control is included in the interactive control. The interactive action control is configured to indicate an interactive action related to the first interactive content. Correspondingly, the trigger operation includes a trigger operation on the interactive action control. For example, referring to
In an embodiment, an interactive action is displayed in the first interactive content. The interactive action is associated with the first interactive content. For example, referring to
In some embodiments, a process of displaying the first interactive content further includes:
In an embodiment, the method for determining the first spectator set includes at least one of the following manners.
In an embodiment, the first battling party refers to at least one of the following cases.
The foregoing cases of the first battling party are merely used as examples, and are not limited in this embodiment of this application.
In other words, the manner of first selecting a battling party, then selecting a spectator group corresponding to the battling party, and finally, determining the first spectator set from the spectator group can enable the first spectator account to perform spectator interaction with a spectator account that supports a same battling party, which improves the effectiveness of interaction.
In this embodiment, descriptions are provided by using an example in which the first battling party is a battling party supported by the first spectator account. The first spectator group refers to a group including all spectator accounts that support the first battling party.
In an embodiment, the interactive control further includes a switching control. The switching control is configured to switch a battling party supported by the first spectator account. Correspondingly, the trigger operation further includes a trigger operation on the switching control. The interactive control is further configured to display a name of a spectator party. Names of spectator parties can be displayed through the trigger operation on the switching control. A switching range of the spectator party is all battling parties participating in the online battle or all battle accounts participating the online battle. For example, referring to
In an embodiment, the first spectator account may determine the first battling party based on the trigger operation on the switching control, and further determine the first spectator group.
In some embodiments, the method for determining the first spectator set from the first spectator group further includes:
In an embodiment, in response to determining the first spectator set at the preset interaction ratio, at least one of the following cases is included:
For example, the first quantity range is from 0 to 50, and the first interaction ratio is 50%; and the second quantity range is from 51 to 1000, and the second interaction ratio is 20%. In a case that a quantity of accounts in the first spectator group is 40, a quantity of candidate spectator accounts is 20; and in a case that a quantity of accounts in the first spectator group is 200, a quantity of candidate spectator accounts is 40. In an embodiment, in a case that a product of the first second interaction ratio/second interaction ratio and a total quantity of spectator accounts in the first spectator group is a non-integer, the product is rounded up.
For example, the first quantity range is from 0 to 100, and the preset quantity is 1; and the second quantity range is from 101 to 1000, and the preset interaction ratio is 10%. In a case that a quantity of accounts in the first spectator group is 40, a quantity of candidate spectator accounts is 1; and in a case that a quantity of accounts in the first spectator group is 200, a quantity of candidate spectator accounts is 20. In an embodiment, in a case that a product of the preset interaction ratio and a total quantity of spectator accounts in the first spectator group is a non-integer, the product is rounded up. In an embodiment, the candidate spectator account does not include a spectator account whose spectator interface displays interactive content at the display starting moment, or the candidate spectator account does not include a spectator account that has received interactive content.
In an embodiment, that the spectator account has received interactive content includes at least one of the following manners.
In an embodiment, a corresponding quantity of candidate spectator accounts are randomly determined from the first spectator group, and a set formed by the corresponding quantity of candidate spectator accounts is the first spectator set.
In some embodiments, the candidate spectator account may also be determined at the preset interaction ratio from the first spectator group according to an interactive activity level of a spectator account, and the first spectator set is formed based on the determined candidate spectator account. In an embodiment, the interactive activity level includes a quantity of historical interaction responses, a quantity of historical interaction initiations, and the like. This is not limited in this embodiment. For example, a spectator account with a high interactive activity level is preferentially determined as a candidate spectator account.
In some optional embodiments, the candidate spectator account may also be determined at the preset interaction ratio from the first spectator group according to a spectator time of a spectator account, and the first spectator set is formed based on the determined candidate spectator account. In an embodiment, the spectator time refers to a spectator time of one battle or two or more battles. For example, a spectator account with a long spectator time is preferentially determined as a candidate spectator account.
In some embodiments, the candidate spectator account may also be determined at the preset interaction ratio from the first spectator group according to a sequence at which a spectator account enters the spectator interface, and the first spectator set is formed based on the determined candidate spectator account. For example, a spectator account that enters the spectator interface first is preferentially determined as a candidate spectator account.
In an embodiment, the spectator account set refers to all spectator accounts watching the online battle in real time. In an embodiment, the spectator account set does not include a spectator account whose spectator interface displays interactive content at the display starting moment.
In some optional embodiments, the method for determining the first spectator set from the spectator account set further includes:
In an embodiment, a corresponding quantity of candidate spectator accounts are randomly determined from the spectator account set, and a set formed by the corresponding quantity of candidate spectator accounts is the first spectator set.
In other words, the preset interaction ratio is determined based on different methods, so that the candidate spectator account is determined randomly from a first spectator group to generate the first spectator set, which enables the first spectator account to interact with a specified quantity of spectator accounts that are selected randomly, and improves interaction randomness.
In some embodiments, the candidate spectator account may also be determined at the preset interaction ratio from the spectator account set according to an interactive activity level of a spectator account, and the first spectator set is formed based on the determined candidate spectator account. In an embodiment, the interactive activity level includes a quantity of historical interaction responses, a quantity of historical interaction initiations, and the like. This is not limited in this embodiment. For example, a spectator account with a high interactive activity level is preferentially determined as a candidate spectator account.
In some embodiments, the candidate spectator account may also be determined at the preset interaction ratio from the spectator account set according to a spectator time of a spectator account, and the first spectator set is formed based on the determined candidate spectator account. In an embodiment, the spectator time of the spectator account refers to a spectator time of one battle or two or more battles. For example, a spectator account with a long spectator time is preferentially determined as a candidate spectator account.
In some embodiments, the candidate spectator account may also be determined at the preset interaction ratio from the spectator account set according to a sequence at which a spectator account enters the spectator interface, and the first spectator set is formed based on the determined candidate spectator account. For example, a spectator account that enters the spectator interface first is preferentially determined as a candidate spectator account.
The method for determining the first spectator set is merely used as an example. This is not limited in this embodiment of this application.
In an embodiment, during display of the first interactive content, the first interactive content is transmitted to a spectator account in the first spectator set, and a first interaction request control is displayed in an interface of the spectator account in the first spectator set. The first interaction request control is associated with the first interactive content. In an embodiment, the first interaction request control includes a first interaction animation, an account name, and a prompt bubble. The first interaction animation is configured to display an animation of an interactive action related to the first interactive content. For example, in a case that an interactive action related to the first interactive content is a high-five, the first interaction animation is shown as a palm shaking left and right. The account name is configured to display a name of a spectator account that transmits an interaction request, that is, the account name of the first spectator account in this embodiment. The prompt bubble is configured to display text prompt information associated with the first interaction animation. For example, in a case that the interactive action related to the first interactive content is a high-five, the prompt bubble displays “High-five”.
In an embodiment, a spectator account in the first spectator set performs a trigger operation on the first interaction request control, and first participation content is displayed in a spectator interface of the spectator account. The first participation content displays the interactive action related to the first interactive content.
For example, referring to
The quantity of interactive accounts includes a first quantity of interactive accounts and a second quantity of interactive accounts. The first quantity of interactive accounts is a quantity of accounts that respond to the first interactive content in a process of displaying the first interactive content. The second quantity of interactive accounts is a quantity of accounts that respond to second interactive content between the display starting moment and the display ending moment. The second interactive content is display content triggered by a second spectator account between the display starting moment and the display ending moment. The second interactive content is transmitted to a spectator account in a second spectator set. An interaction form corresponding to the first interactive content is the same as an interaction form corresponding to the second interactive content.
In an embodiment, the first quantity of interactive accounts refers to a quantity of spectator accounts that perform the trigger operation on the first interaction request control in the first spectator set in the process of displaying the first interactive content.
In an embodiment, the second interactive content refers to display content triggered by a second spectator account between the display starting moment and the display ending moment. There may be one or two or more second spectator accounts. In other words, same display content triggered by a plurality of spectator accounts between the display starting moment and the display ending moment may all be referred to as the second interactive content. In an embodiment, the interaction form indicated by the second interactive content is the same as the interaction form indicated by the first interactive content.
In an embodiment, a method for determining a second spectator set is similar to the method for determining the first spectator set, which has been described in step 202, and details are not described herein again. In an embodiment, the second spectator set does not include spectator account whose spectator interface displays interactive content at a transmission moment of the corresponding second interactive content or a spectator account that has received interactive content.
In an embodiment, the second spectator set and the first spectator set both belong to the first spectator group, in other words, the second spectator set and the first spectator set both support the first battling party. Alternatively, the second spectator set and the first spectator set do not belong to a same spectator group, in other words, the second spectator set and the first spectator set support different battling parties.
In an embodiment, the second quantity of interactive accounts refers to a quantity of spectator accounts that perform a trigger operation on a second interaction request control in the corresponding second spectator set in a process of displaying second interactive content corresponding to different second spectator accounts.
In an embodiment, the first interactive content is also configured to display the quantity of interactive accounts. A manner of displaying the quantity of interactive accounts includes at least the following manners:
The manner of displaying the quantity of interactive accounts is merely used as an example, and is not limited in this embodiment of this application.
To sum up, in the method provided in this embodiment, same interactive content displayed on spectator interfaces of different spectator accounts is transmitted to some spectator accounts, a quantity of spectator accounts that respond to the same interactive content in a period of time is counted, and a specified response result is displayed in the spectator interfaces based on the quantity of spectator accounts, which saves computing resources of the backend while implementing interaction sharing among different spectator accounts.
The spectator interface includes an interactive control. The interactive control is configured to trigger an interaction with a spectator account that is watching the online battle.
The manner of displaying the spectator interface is described in details in step 201, and details are not described herein again.
The first interactive content corresponds to a display starting moment and a display ending moment. The first interactive content is display content transmitted to a spectator account in a first spectator set.
The method for determining the first spectator set and specific content of the first interactive content are described in step 202, and details are not described herein again.
In an embodiment, the first spectator account transmits an interaction request to a server while responding to the trigger operation. The interaction request includes the first interactive content. The server receives the interaction request from the first spectator account and forwards the first interactive content to the spectator account in the first spectator set.
In an embodiment, the process of displaying the first interactive content is from the display starting moment to the display ending moment. In other words, display of the first interactive content in the spectator interface starts from the display starting moment, and display of the first interactive content in the spectator interface ends in a case that the display ending moment is reached.
In an embodiment, in a case that spectator accounts that receive the first interactive content are all spectator accounts in the first spectator set, the first quantity of interactive accounts refers to a quantity of spectator accounts that respond to the first interactive content in the first spectator set.
For example, the spectator account in the first spectator set responds to the first interactive content through at least one of the following: a click/tap operation, a swipe operation, a voice operation, a press operation, and motion control (for example, shaking a screen).
In an embodiment, the second interactive content refers to display content triggered by a second spectator account at a specific moment between the display starting moment and the display ending moment. The second spectator account receives the first interactive content triggered by the first spectator account, but does not respond to the first interactive content, or the second spectator account does not receive the first interactive content triggered by the first spectator account.
In an embodiment, the first interactive content and the second interactive content belong to a same interaction form. For example, the first interactive content and the second interactive content both are high-five interactions.
In an embodiment, in a case that spectator accounts that receive the second interactive content are all spectator accounts in the second spectator set, the second quantity of interactive accounts refers to a quantity of spectator accounts that respond to the second interactive content in the second spectator set.
In an embodiment, there may be a plurality of second spectator accounts that trigger second interactive content between the display starting moment and the display ending moment. Each second spectator account corresponds to an intermediate moment (the intermediate moment refers to a moment at which display of the second interactive content starts). In other words, in addition to the first spectator account, there are the plurality of second spectator accounts that also transmit interactive content between the display starting moment and the display ending moment, and the interactive content transmitted by the plurality of second spectator accounts and the interactive content transmitted by the first spectator account belong to a same interaction solution. For example, the plurality of second spectator accounts and the first spectator account all trigger a same interactive emoticon. A quantity of spectator accounts that respond to the interactive content transmitted by the second spectator accounts from the display starting moment to the display ending moment is counted.
For example, the spectator account in the second spectator set responds to the second interactive content through at least one of the following: a click/tap operation, a swipe operation, a voice operation, a press operation, and motion control (for example, shaking a screen).
In an embodiment, at least the quantity of interactive accounts and an interaction solution corresponding to the first interactive content are displayed in the first interactive content.
In an embodiment, a manner of calculating the quantity of interactive accounts includes at least one of the following manners:
For example, referring to
For example, in
For example, to calculate a quantity of accounts that respond to interactive content of the spectator A1 at the current moment, a quantity of accounts that respond to the interaction of the spectator A1 from the interaction initiating moment to the current moment needs to be calculated and recorded as a first quantity X1 of interactive accounts, a quantity of all accounts that respond to interactions of the spectator A2 to the spectator An in a period of time from the interaction initiating moment of the spectator A1 to the current moment also needs to be calculated, and recorded as a second quantity of interactive accounts X2+X3+X4+ . . . +Xn. A quantity XA of accounts that respond the interaction of the spectator A1 at the current moment is obtained by adding up the first quantity of interactive accounts and the second quantity of interactive accounts.
A sum of the first quantity of interactive accounts, the second quantity of interactive accounts, and the quantity of second spectator accounts is calculated to obtain the quantity of interactive accounts.
For example, to calculate a quantity of accounts that respond to interactive content of the spectator A1 at the current moment, first, a quantity of accounts that respond to the interaction of the spectator A1 from the interaction initiating moment to the current moment is calculated and recorded as a first quantity X1 of interactive accounts, second, a quantity of all accounts that respond to interactions of the spectator A2 to the spectator An in a period of time from the interaction initiating moment of the spectator A1 to the current moment is calculated and recorded as the second quantity of interactive accounts X2+X3+X4+ . . . +Xn, XA being obtained by adding up the first quantity of interactive accounts and the second quantity of interactive accounts, and finally, as shown in
In an embodiment, a manner of displaying the first quantity of interactive accounts and the second quantity of interactive accounts includes at least one of the following manners.
The manner of displaying the first quantity of interactive accounts and the second quantity of interactive accounts is merely used as an example, and is not limited in this embodiment of this application.
To sum up, in the method provided in this embodiment, same interactive content displayed on spectator interfaces of different spectator accounts is transmitted to some spectator accounts, a quantity of spectator accounts that respond to the same interactive content in a period of time is counted, a specified response result is displayed in the spectator interfaces based on the quantity of spectator accounts, which saves computing resources of the backend while implementing interaction sharing among different spectator accounts. In the method provided in this embodiment, in a case that the first interactive content and the second interactive content are interactive content in a same form, the sum of the first quantity of interactive accounts and the second quantity of interactive accounts is used as the quantity of interactive accounts that respond to the interaction of the first spectator account. Through a related calculation manner, interaction sharing is implemented among different spectator accounts sharing same interactive content. Further, quantities of interactive accounts of different spectator accounts are associated, which improves the interactive experience of the spectator accounts.
In the method provided in this embodiment, a quantity of second spectator accounts is added to the quantity of interactive accounts. Spectator accounts initiating interactions are associated, which further improves the interactive experience among the spectator accounts.
In the method provided in this embodiment, in a case that there are two pieces of interactive content in a same form in a same specified period of time, quantities of interactive accounts respectively responding to the two pieces of interactive content are obtained at the same time, which ensures that interactions initiated by different spectator accounts are synchronized, and further improves the spectator experience of the spectator accounts.
The spectator interface includes an interactive control. The interactive control is configured to trigger an interaction between the first spectator account and a spectator account that is watching the online battle.
In an embodiment, a representation form of the interaction includes at least one of the following: an interactive signal (for example, a red alert), an interactive action (for example, a high-five action), an interactive voice message (for example, simple audio such as “Hello” or “Fall back”), and the like. This is not limited in this embodiment.
The manner of displaying the spectator interface is described in details in step 201, and details are not described herein again.
In some embodiments, the spectator interface includes at least two candidate interactive controls.
In an embodiment, the two candidate interactive controls trigger interactions with different content among spectator accounts. For example, one candidate interactive control is configured to trigger high-five interaction with a spectator account, and the other candidate interactive control is configured to trigger a cheering interaction with a spectator account.
The specified interactive control refers to a candidate interactive control selected by the first spectator account.
In an embodiment, the first interactive content is associated with the specified interactive control.
In an embodiment, a manner of displaying the two candidate interactive controls includes at least one of the following manners:
A manner of displaying the two candidate interactive controls is merely used as an example, and is not limited in this embodiment of this application.
The quantity of interactive accounts includes a first quantity of interactive accounts and a second quantity of interactive accounts. The first quantity of interactive accounts is a quantity of accounts that respond to the first interactive content in a process of displaying the first interactive content. The second quantity of interactive accounts is a quantity of accounts that respond to second interactive content between the display starting moment and the display ending moment. The second interactive content is display content triggered by a second spectator account between the display starting moment and the display ending moment. The second interactive content is transmitted to a spectator account in a second spectator set. An interaction form corresponding to the first interactive content is the same as an interaction form corresponding to the second interactive content.
In an embodiment, display of the first interactive content is stopped in a case that the display ending moment is reached.
In an embodiment, the second interactive content is display content triggered by the second spectator account on the specified interactive control.
In some embodiments, a method for determining the display starting moment and the display ending moment includes at least one of the following methods:
In an embodiment, a manner of setting the preset display duration includes at least one of the following manners:
For example, a preset display duration of a high-five interaction is 7 seconds. It is the 0th second starting from a moment at which a high-five control is triggered to display high-five interactive content. At the 0th second, display of the high-five interactive content is started in a spectator interface of a spectator account triggering the high-five control. Meanwhile, a spectator interface of another spectator account receiving the high-five interactive content starts to display a high-five request control. At the 7th second, the display of the high-five interactive content and the display of the high-five request control are stopped at the same time.
In other words, the display duration is set in advance, so that calculation is started according to a moment of triggering the interactive control used as the display starting moment, and a final display ending moment is determined based on the display duration. An interaction process of the first interactive content can be implemented in a specified period of time, which improves the interaction efficiency.
In other words, a display duration of the first interactive content is not limited. The display can be interrupted through an interrupt operation.
Optionally, the interrupt operation refers to at least one of the following cases.
The foregoing cases of the interrupt operation are merely used as examples, and are not limited in this embodiment of this application.
Optionally, interaction between the first spectator account and another spectator account is stopped while the display of the first interactive content is stopped. For example, at the 0th second, display of a high-five interactive content is started in a spectator interface of a spectator account triggering a high-five control. Meanwhile, a spectator interface of another spectator account receiving the high-five interactive content starts to display a high-five request control. In a case that the spectator account triggers a display ending operation, the display of the high-five interactive content and the display of the high-five request control are stopped at the same time.
In other words, after the display starting moment is determined, in a case that an interrupt operation is received in a process of displaying the first interactive content, a triggering moment corresponding to the interrupt operation is used as the display ending moment. An interaction process can be customized by a user, which improves the autonomous selectivity of the interaction process.
For example, at the 0th second, display of a high-five interactive content is started in a spectator interface of a spectator account triggering the high-five control. Meanwhile, a spectator interface of another spectator account receiving the high-five interactive content starts to display a high-five request control, and timing a display duration of the high-five interactive content through a timer is started. A timing duration of the timer is set to 3 seconds. Each time a high-five response is received from another spectator account, the timer is restarted for timing. In a case the timer reaches 3 seconds, in other words, in 3 consecutive seconds, the spectator account does not receive a high-five response from another spectator account, the display of the high-five interactive content and the display of the high-five request control are stopped at the same time.
In other words, in a manner of setting the timer, display of the first interactive content is stopped in a case that there is no response from a spectator account in a required timing duration of the timer. In this way, the first interactive content is implemented as an interaction process with timeliness, which improves the interaction efficiency.
The display starting moment and the display ending moment are merely used as examples, and are not limited in this embodiment of this application.
More than one method for determining the display starting moment and the display ending moment described above is included in some optional embodiments.
For example, with reference to the manner 1 and the manner 3, in a case that the preset display duration is 7 seconds, and a timing duration of a timer is 3 seconds, at the 0th second, display of a high-five interactive content is started in a spectator interface of a spectator account triggering a high-five control. Meanwhile, a spectator interface of another spectator account receiving the high-five interactive content starts to display a high-five request control, and timing a display duration of the high-five interactive content by the timer is started. In a case that the spectator account receives a high-five response from another spectator account in every 3 consecutive seconds from the 0th second to the 7th second, the display of the high-five interactive content and the display of the high-five request control are stopped at the same time at the 7th second. In a case that the spectator account does not receive a high-five response from another spectator account in a period of 3 consecutive seconds from the 0th second to the 7th second, the display of the high-five interactive content and the display of the high-five request control are stopped at the same time at the end the period of 3 consecutive seconds.
The timing duration of the timer does not exceed the preset display duration.
For example, with reference to the manner 2 and the manner 3, in a case that the timing duration of the timer is 3 seconds, at the 0th second, display of the high-five interactive content is started in a spectator interface of a spectator account triggering a high-five control. Meanwhile, a spectator interface of another spectator account receiving the high-five interactive content starts to display a high-five request control, and timing a display duration of the high-five interactive content by the timer is started. In a case that an interrupt operation is received or the timing duration of the timer reaches 3 seconds, the display of the high-five interactive content and the display of the high-five request control are stopped at the same time.
To sum up, in the method provided in this embodiment, same interactive content displayed on spectator interfaces of different spectator accounts is transmitted to some spectator accounts, a quantity of spectator accounts that respond to the same interactive content in a period of time is counted, a specified response result is displayed in the spectator interfaces based on the quantity of spectator accounts, which saves computing resources of the backend while implementing interaction sharing among different spectator accounts.
In the method provided in this embodiment, two pieces of interactive content may be displayed in the spectator interface through two candidate interactive controls. The first spectator account may perform two interactions at the same time, which enriches the interactive experience of the spectator account.
In the method provided in this embodiment, the first spectator set is determined at a preset interaction ratio. The first interactive content is forwarded to some spectator accounts, instead of all spectator accounts, in the first spectator set, which avoids a waste of backend resources due to repeated forwarding, and also avoids excessive interruption to the spectator account.
In the method provided in this embodiment, the display duration of the first interactive content is changed by changing the display ending moment, which facilitates the first spectator account performing another operation, reduces consumption of computer resources, and improves the user experience of the first spectator account.
For example, refer to
A spectator A watches a game, and transmits a high-five 1 interaction in a spectator interface. A backend accepts a request from the spectator A, and transmits the high-five 1 interaction at a ratio to spectators that may receive the interaction. The spectators include a spectator B.
The spectator B is a spectator that watches the same game as the spectator A. The spectator B receives and responds to a high-five 1 request from the spectator A in a spectator interface, and transmits to a response result to the backend.
A spectator C also watches the same game as the spectator A. The spectator C receives and responds to a high-five 2 request from another spectator in a spectator interface, and transmits a response result to the backend. Interactive actions included in the high-five 1 request and the high-five 2 request are both high-five actions.
Based on the descriptions above, the following steps are performed in the backend:
In other words, the backend accepts the request from the spectator A, and transmits the high-five 1 interaction at a ratio to the spectators that may receive the interaction.
In other words, response results from the spectator B and the spectator C are counted.
For example, the spectator A transmits a high-five 1 interaction once. X1 spectators respond to the interaction in the first 3 seconds, and X2 spectators respond to the interaction in the next 4 seconds. A spectator D that does not receive the high-five interaction initiated by the spectator A transmits a same high-five interaction at the 4th second. In the first 4 seconds after the interaction is transmitted, Y1 spectators respond to the interaction, and Y2 spectators respond to the interaction in the next 3 seconds. Finally, the high-five interaction of the spectator A is considered to have a total of X1+X2+Y1+2−1 responses (+2 refers to two spectators initiating the high-five interactions, and −1 means excluding the spectator A since the spectator A cannot interact with the spectator A). The high-five interaction of the spectator D is considered to have Y1+Y2+X2+2−1 responses.
For example, the spectator A transmits a high-five 1 interaction once at the 0th second. In a case that the spectator A receives a response from another spectator in every 3 consecutive seconds from the 0th second to the 7th second, the interaction is ended at the 7th second. In a case that the spectator account does not receive a response from another spectator in a period of 3 consecutive seconds from the 0th second to the 7th second, the interaction is ended at the end of the period of 3 consecutive seconds.
Refer to
The display module 1010 is further configured to display first interactive content in response to receiving a trigger operation on the interactive control, the first interactive content corresponding to a display starting moment and a display ending moment, and the first interactive content being display content transmitted to a spectator account in a first spectator set.
The display module 1010 is further configured to display a quantity of interactive accounts based on the first interactive content, the quantity of interactive accounts including a first quantity of interactive accounts and a second quantity of interactive accounts, the first quantity of interactive accounts being a quantity of accounts that respond to the first interactive content in a process of displaying the first interactive content, and the second quantity of interactive accounts being a quantity of accounts that respond to second interactive content between the display starting moment and the display ending moment, the second interactive content being display content triggered by a second spectator account between the display starting moment and the display ending moment, and the second interactive content being transmitted to a spectator account in a second spectator set, an interaction form corresponding to the first interactive content being the same as an interaction form corresponding to the second interactive content.
In some optional embodiments, the display module 1010 is further configured to display a sum of the first quantity of interactive accounts and the second quantity of interactive accounts as the quantity of interactive accounts based on the first interactive content.
Referring to
The obtaining sub-module 1011 is further configured to obtain the second quantity of interactive accounts that respond to the second interactive content between the intermediate moment and the display ending moment.
In some optional embodiments, the determining sub-module 1012 is further configured to determine the first spectator set in response to receiving the trigger operation on the interactive control.
The apparatus further includes:
In some optional embodiments, the determining sub-module 1012 is further configured to determine, in response to receiving the trigger operation on the interactive control, a first spectator group corresponding to the trigger operation. The first spectator group corresponds to a first battling party in the online battle.
The determining sub-module 1012 is further configured to determine the first spectator set from the first spectator group.
In some optional embodiments, the determining sub-module 1012 is further configured to determine a candidate spectator account randomly from the first spectator group at a preset interaction ratio.
The determining subunit module 1012 includes further includes
In some optional embodiments, the spectator interface includes at least two candidate interactive controls. The display module 1010 is further configured to display the first interactive content in response to receiving a trigger operation on a specified interactive control in the at least two candidate interactive controls. The specified interactive control refers to a candidate interactive control selected by the first spectator account.
The second interactive content refers to display content triggered by the second spectator account on the specified interactive control.
In some optional embodiment, the quantity of interactive accounts further includes a quantity of second spectator accounts that trigger the second interactive content between the display starting moment and the display ending moment.
In some optional embodiments, the determining sub-module 1012 is further configured to use a moment of triggering the interactive control by the first spectator account as the display starting moment.
The determining sub-module 1012 is further configured to determine a preset display duration of the first interactive content.
The determining sub-module 1012 is further configured to determine the display ending moment based on the display starting moment and the preset display duration.
In some optional embodiments, the determining sub-module 1012 is further configured to use a moment of triggering the interactive control by the first spectator account as the display starting moment.
The determining sub-module 1012 is further configured to receive an interrupt operation in the process of displaying the first interactive content.
The determining sub-module 1012 is further configured to use a moment of triggering the interrupt operation as the display ending moment.
In some optional embodiments, the determining sub-module 1012 is further configured to use a moment of triggering the interactive control by the first spectator account as the display starting moment.
The apparatus further includes:
The determining sub-module 1012 is further configured to use, in response to that a timing duration of the timer reaches a required duration, a moment at which the required duration is reached as the display ending moment.
The spectator interaction apparatus provided in the foregoing embodiments is merely illustrated with an example of division of functional modules. In practical application, the function distribution may be implemented by different functional modules according to requirements, that is, an internal structure of the device is divided into different functional modules, to implement all or some of the functions described above. In addition, the spectator interaction apparatus and the spectator interaction method embodiments provided in the foregoing embodiments belong to a same conception. For the specific implementation process, reference may be made to the method embodiments, and details are not described herein again.
Generally, the terminal 1200 includes a processor 1201 (processing circuitry) and a memory 1202 (non-transitory computer-readable storage medium).
The processor 1201 may include one or more processing cores. For example, the processor 1201 may be a 4-core processor or an 8-core processor. The processor 1201 may be implemented in at least one hardware form of a digital signal processor (Digital Signal Processor, DSP), a field-programmable gate array (Field Programmable Gate Array, FPGA), and a programmable logic array (Programmable Logic Array, PLA). The processor 1201 may further include a main processor and a co-processor. The main processor is a processor configured to process data in an awake state, also referred to as a central processing unit (Central Processing Unit, CPU). The co-processor is a low power consumption processor configured to process data in a standby state. In some embodiments, the processor 1201 may be integrated with a graphics processing unit (Graphics Processing Unit, GPU), which is responsible for rendering and drawing content required to be displayed by a display screen. In some embodiments, the processor 1201 may further include an artificial intelligence (Artificial Intelligence, AI) processor, which is configured to process a computing operation related to machine learning.
The memory 1202 may include one or more non-transitory computer-readable storage media. The computer-readable storage media may be non-transitory. The memory 1202 may further include a high-speed random access memory, and a non-volatile memory, such as one or more magnetic disk storage devices and a flash storage device. In some embodiments, the non-transitory computer-readable storage medium in the memory 1202 is configured to store at least one instruction, and the at least one instruction being configured to be executed by the processor 1201 to implement the spectator interaction method provided in the method embodiments of this application.
For example, the terminal 1200 further includes another component. A person skilled in the art may understand that the structure shown in
A person of ordinary skill in the art may understand that all or some of the steps of the various methods in the foregoing embodiments may be implemented by a program instructing relevant hardware. The program may be stored in a computer-readable storage medium. The computer-readable medium may be included in the electronic device described in the foregoing embodiments, or may exist alone and is not assembled in the electronic device. The computer-readable storage medium stores at least one instruction, at least one program, a code set or an instruction set, the at least one instruction, the at least one program, the code set or the instruction set being loaded and executed by the processor to implement the spectator interaction method according to any one of the embodiments.
Optionally, the computer-readable storage medium may include: a read-only memory (Read Only Memory, ROM), a random access memory (Random Access Memory, RAM), a solid state drive (Solid State Drives, SSD), an optical disc, or the like. The RAM may include a resistance random access memory (ReRAM, Resistance Random Access Memory) and a dynamic random access memory (DRAM, Dynamic Random Access Memory). The sequence numbers of the foregoing embodiments of this application are merely for description purpose, and do not indicate the preference among the embodiments.
Number | Date | Country | Kind |
---|---|---|---|
202210194400.5 | Mar 2022 | CN | national |
This application is a continuation of International Application No. PCT/CN2022/135002, filed on Nov. 29, 2022, which claims priority to Chinese Patent Application No. 202210194400.5, entitled “SPECTATOR INTERACTION METHOD AND APPARATUS, DEVICE, STORAGE MEDIUM, AND PROGRAM PRODUCT” filed on Mar. 1, 2022. The disclosures of the prior applications are hereby incorporated by reference in their entirety.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2022/135002 | Nov 2022 | US |
Child | 18389555 | US |