CN-122002068-A - Method, apparatus, device and storage medium for presenting interactive message
Abstract
Embodiments of the present disclosure relate to a method, apparatus, device and storage medium for presenting interactive messages. The method includes the steps of presenting interactive messages in a first interactive sequence in a live broadcast interface, wherein the interactive messages in the first interactive sequence are interactive messages of a preset type, the interactive messages of the first interactive sequence are received by a client from a server, sending an update request for the first interactive sequence to the server, wherein the update request at least indicates first sequence version information corresponding to the first interactive sequence, determining whether to update the first interactive sequence or not based on an update response for the update request received from the server, and presenting the interactive messages of the preset type in the live broadcast interface based on a determination result of the update of the first interactive sequence.
Inventors
- GU JIANCHENG
- MENG QINGYU
- WANG ZIHAN
Assignees
- 北京字跳网络技术有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20241107
Claims (20)
- 1. A method for presenting interactive messages, implemented at a client, the method comprising: In a live broadcast interface, presenting an interactive message in a first interactive sequence, wherein the interactive message in the first interactive sequence is an interactive message of a preset type, and the interactive message of the first interactive sequence is received by the client from a server; Sending an update request for the first interactive sequence to the server, wherein the update request at least indicates first sequence version information corresponding to the first interactive sequence; Determining whether to update the first interactive sequence based on an update response received from the server to the update request, and Presenting the interactive message of the predetermined type in the live interface based on a result of the updated determination of the first interactive sequence.
- 2. The method of claim 1, wherein the update response indicates at least second sequence version information of a second interaction sequence of the predetermined type at the server, and Wherein determining whether to update the first interaction sequence based on the update response comprises: in response to determining that the second sequence version information is the same as the first sequence version information, determining that the first interactive sequence does not need to be updated, or In response to determining that the second sequence version information is different from the first sequence version information, Extracting message content and presentation time information of at least one interactive message of the predetermined type from the update response, and The updating of the first interaction sequence is based on the extracted message content and presentation time information.
- 3. The method of claim 2, wherein the update request further indicates a reference time, the reference time determined based on a presentation start time of an interactive message currently presented in the first interactive sequence, and Wherein the at least one interactive message comprises an interactive message in the second interactive sequence having a presentation start time that is later than the reference time.
- 4. The method of claim 2, wherein the updating the first interaction sequence based on the extracted message content and presentation time information comprises: In response to determining that each of the interactive messages in the first interactive sequence matches presentation time information for the at least one interactive message, the at least one interactive message is added to an end of the first interactive sequence to obtain the updated first interactive sequence.
- 5. The method of claim 2, wherein the updating of the first interaction sequence based on the extracted message content and presentation time information comprises: Responsive to determining that the interactive messages in the first interactive sequence do not match presentation time information for the at least one interactive message, reordering the at least one interactive message and the interactive messages in the first interactive sequence based on the presentation time information for the at least one interactive message to obtain an updated first interactive sequence.
- 6. The method of claim 4 or 5, wherein the updating of the first interaction sequence based on the extracted message content and presentation time information further comprises: In response to determining that the first interactive sequence is a null sequence, adding the at least one interactive message to the first interactive sequence to obtain an updated first interactive sequence, and In response to determining that the first interactive sequence is a non-null sequence, determining whether presentation time information of each interactive message in the first interactive sequence matches the at least one interactive message.
- 7. The method of claim 2, wherein the presentation time information of the at least one interactive message comprises at least one of: presentation start time of the at least one interactive message, or And the presentation duration of the at least one interactive message.
- 8. The method of claim 1, further comprising: and updating the updated first sequence version information corresponding to the first interaction sequence based on the second sequence version information.
- 9. The method of claim 1, wherein the update request includes request version information for the update request, and wherein determining whether to update the first interactive sequence based on an update response received from the server for the update request comprises: In response to detecting that the update response includes the request version information, determining that the update response is a valid update response to the update request, and Determining whether to update the first interactive sequence based on the valid update response.
- 10. The method of claim 1, further comprising: for a first interactive message currently presented and a second interactive message to be presented next among the predetermined types of interactive messages, In response to determining that the presentation start time of the second interactive message is earlier than the predicted presentation start time of the second interactive message, extending a time interval between the presentation start time of the second interactive message and the presentation start time of the first interactive message by adjusting a buffer time corresponding to the second interactive message, and And in response to determining that the presentation start time of the second interactive message is later than the predicted presentation start time of the second interactive message, shortening the time interval between the presentation start time of the second interactive message and the presentation start time of the first interactive message by adjusting the buffer time corresponding to the second interactive message.
- 11. The method of claim 1, wherein presenting the predetermined type of interactive message in the live interface based on the updated determination of the first sequence of interactions comprises: Sequentially presenting the updated interactive messages in the first interactive queue in the live interface based on the updated presentation start time and presentation duration of each interactive message in the first interactive queue in response to determining to update the first interactive sequence, and And responding to the determination that the first interaction sequence does not need to be updated, and sequentially presenting the current interaction messages in the first interaction queue in the live interface based on the presentation starting time and the presentation duration of each interaction message in the current first interaction queue.
- 12. The method of claim 1, wherein sending an update request for the first interaction sequence to the server comprises: In response to determining that a user associated with the client corresponds to a predetermined user type, the update request for the first interaction sequence is sent to the server.
- 13. The method of claim 12, wherein whether a user associated with the client corresponds to the predetermined user type is determined by at least one of: In response to determining that the user associated with the client is a anchor user, determining that the user associated with the client corresponds to the predetermined user type, or In response to determining that the user associated with the client sent the predetermined type of interactive message and that the interactive message was not presented or presented in the live interface for a duration less than a predetermined duration, it is determined that the user associated with the client corresponds to the predetermined user type.
- 14. The method of claim 1, wherein presenting the predetermined type of interactive message in the live interface comprises: For a third interactive message of the predetermined type currently presented in the live interface, Determining additional information related to a presentation style of the third interactive message from the second instant message in response to receiving the second instant message from the server, and And updating the presentation style of the third interactive message in the live interface based on the additional information of the third interactive message.
- 15. A method for presenting interactive messages, implemented at a server, the method comprising: Receiving an update request from a client, wherein the update request at least indicates first sequence version information corresponding to a first interaction sequence, the interaction messages in the first interaction sequence are interaction messages of a preset type, and the interaction messages in the first interaction sequence are used for being presented in a live broadcast interface at the client; Generating an update response to the update request based on a difference between the first sequence version information and second sequence version information corresponding to a second interaction sequence at the server, and And sending the update response to the client.
- 16. The method of claim 15, wherein generating an update response to the update request based on a difference between the first sequence version information and second sequence version information corresponding to a second interaction sequence of the predetermined type at the server comprises: Generating the update response based at least on the second sequence version information in response to determining that the second sequence version information is the same as the first sequence version information, and In response to determining that the second sequence version information is different from the first sequence version information, the update response is generated based at least on the second sequence version information, message content of the at least one interactive message of the predetermined type, and presentation time information.
- 17. The method of claim 16, wherein the update request further indicates a reference time, the reference time determined based on a presentation start time of an interactive message currently presented in the first interactive sequence, and Wherein the at least one interactive message of the predetermined type is determined by: And extracting the interactive message with the presentation start time later than the reference time from the second interactive sequence to obtain the at least one interactive message.
- 18. The method of claim 16, wherein the presentation time information of the at least one interactive message comprises at least one of: presentation start time of the at least one interactive message, or And the presentation duration of the at least one interactive message.
- 19. The method of claim 15, further comprising: and for a newly added or updated fourth interactive message in the second interactive sequence, determining the presentation start time of the fourth interactive message based on the reference buffer time corresponding to the fourth interactive message, the presentation start time and the presentation duration of a fifth interactive message positioned before the fourth interactive message in the second interactive sequence.
- 20. The method of claim 15, further comprising: And in response to detecting that the second interactive sequence changes, updating second sequence version information corresponding to the second interactive sequence.
Description
Method, apparatus, device and storage medium for presenting interactive message Technical Field Example embodiments of the present disclosure relate generally to the field of computer technology and, more particularly, relate to a method, apparatus, device, and storage medium for presenting interactive messages. Background There are various types of interactive messages in live broadcast, including general interactive messages and special interactive messages (e.g., pay comments or administrator comments), etc., each of which carries different information and value. Different types of interactive messages may also differ in presentation style, for example, a common interactive message may appear in the form of underlying text, while a particular interactive message may enjoy a more striking color, font, or background, even accompanied by an animation effect, to ensure that it stands out in many interactive messages. The differentiated presentation styles not only enrich the interaction experience of the live broadcast room, but also meet the diversified expression requirements of users. However, the present interactive message presentation mode is easily affected by the network environment, so that the accuracy of the interactive messages in terms of presentation time is difficult to meet expectations. Disclosure of Invention In a first aspect of the present disclosure, a method for presenting interactive messages is provided, implemented at a client. The method comprises the steps of presenting interactive messages in a first interactive sequence in a live broadcast interface, wherein the interactive messages in the first interactive sequence are interactive messages of a preset type, the interactive messages of the first interactive sequence are received by a client from a server, sending an update request for the first interactive sequence to the server, the update request at least indicates first sequence version information corresponding to the first interactive sequence, determining whether to update the first interactive sequence or not based on an update response for the update request received from the server, and presenting the interactive messages of the preset type in the live broadcast interface based on a determination result of the update of the first interactive sequence. In a second aspect of the present disclosure, a method for presenting interactive messages is provided, implemented at a server. The method includes the steps of receiving an update request from a client, wherein the update request at least indicates first sequence version information corresponding to a first interaction sequence, the interaction messages in the first interaction sequence are of a preset type, the interaction messages in the first interaction sequence are used for being presented in a live broadcast interface at the client, generating an update response aiming at the update request based on the difference between the first sequence version information and second sequence version information corresponding to a second interaction sequence at a server, and sending the update response to the client. In a third aspect of the present disclosure, an apparatus for presenting interactive messages is provided, for application at a client. The device comprises a first presentation module, a request sending module, an updating module and a second presentation module, wherein the first presentation module is configured to present interactive messages in a first interactive sequence in a live broadcast interface, the interactive messages in the first interactive sequence are interactive messages of a preset type, the interactive messages of the first interactive sequence are received by a client from a server, the request sending module is configured to send an updating request aiming at the first interactive sequence to the server, the updating request at least indicates first sequence version information corresponding to the first interactive sequence, the updating module is configured to determine whether to update the first interactive sequence or not based on an updating response aiming at the updating request received by the server, and the second presentation module is configured to present the interactive messages of the preset type in the live broadcast interface based on the determination result of the updating of the first interactive sequence. In a fourth aspect of the present disclosure, an apparatus for presenting an interactive message is provided, for application at a server. The device comprises a request receiving module, an update response generating module and an update response sending module, wherein the request receiving module is configured to receive an update request from a client, the update request at least indicates first sequence version information corresponding to a first interaction sequence, the interaction messages in the first interaction sequence are interaction messages of a preset t