US 11,991,420 B2
Live commenting processing method and system
Xiuran Wu, Shanghai (CN)
Assigned to SHANGHAI BILIBILI TECHNOLOGY CO., LTD., Shanghai (CN)
Appl. No. 17/779,532
Filed by SHANGHAI BILIBILI TECHNOLOGY CO., LTD., Shanghai (CN)
PCT Filed Mar. 26, 2020, PCT No. PCT/CN2020/081492
§ 371(c)(1), (2) Date May 24, 2022,
PCT Pub. No. WO2021/103364, PCT Pub. Date Jun. 3, 2021.
Claims priority of application No. 201911168271.7 (CN), filed on Nov. 25, 2019.
Prior Publication US 2022/0408160 A1, Dec. 22, 2022
Int. Cl. H04N 21/488 (2011.01); H04N 21/431 (2011.01)
CPC H04N 21/4884 (2013.01) [H04N 21/4312 (2013.01)] 15 Claims
OG exemplary drawing
 
1. A method for processing bullet comments, comprising:
obtaining a page of playing a video to output a video stream;
obtaining a plurality of pieces of bullet comment data associated with the video stream;
traversing the plurality of pieces of bullet comment data and determining whether the plurality of pieces of bullet comment data comprise at least one piece of bullet comment data in an expired state based on a current playing time of the video, a posting time and a moving time associated with each of the plurality of pieces of bullet comment data, wherein a posting time indicates a time point of posting a bullet comment element corresponding to each piece of bullet comment data in the video, wherein a moving time indicates a time duration of the corresponding bullet comment element moving and being displayed on the page of playing the video, and wherein a sum of a posting time and a moving time associated with the at least one piece of bullet comment data in the expired state is earlier than the current playing time of the video;
deleting the at least one piece of bullet comment data in the expired state from the plurality of pieces of bullet comment data in response to determining that the plurality of pieces of bullet comment data comprise the at least one piece of bullet comment data in the expired state;
traversing the plurality of pieces of bullet comment data and determining that the plurality of pieces of bullet comment data comprise a number of pieces of bullet comment data in a to-be-posted state based on the current playing time of the video and the posting time associated with each of the plurality of pieces of bullet comment data;
adding the number of pieces of bullet comment data to a queue of bullet comments to be posted;
determining, based on a virtual bullet comment track, that a plurality of bullet comment tracks comprise one or more bullet comment tracks in an idle state, wherein the virtual bullet comment track is a pre-configured nested array, the nested array comprises a plurality of subarrays, and each subarray is mapped to one of the plurality of bullet comment tracks;
adding one or more pieces of bullet comment data in the queue of bullet comments to be posted to the virtual bullet comment track, the virtual bullet comment track being configured to determine whether each bullet comment track is in the idle state; and
adding the one or more pieces of bullet comment data in the queue of bullet comments to be posted to a rendering list, and obtaining one or more corresponding bullet comment elements through rendering.