# US 12,010,356 B2 · Method and apparatus for sending information in live broadcast room, and electronic device

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 12,010,356 B2
- Document ID: US12010356B2
- Status: Granted
- Kind: B2
- Application number: 17/774,812
- Filed: 2020-11-02
- Published: 2022-12-22
- Granted: 2024-06-11
- Earliest claimed: 2019-11-05
- Assignees: Beijing Bytedance Network Technology Co., Ltd.
- Applicants: Beijing Bytedance Network Technology Co., Ltd.
- Inventors: Zerui Jiang
- Web page: https://patentgrep.com/patent/US12010356B2

## CPC

- H04N 21/2187: Live feed
- H04N 21/2393: {involving handling client requests (scheduling or organising the servicing of application requests H04L67/60)}
- H04N 21/25891: {being end-user preferences (retrieval of video data in a video database based on user preferences G06F16/739; arrangements for recognizing users' preferences H04H60/46; user profiles in network data switching protocols H04L67/306; processing of user preferences or user profiles in wireless networks H04W8/18)}
- H04N 21/2668: Creating a channel for a dedicated end-user group, e.g. insertion of targeted commercials based on end-user profiles {(information retrieval from the Internet by querying with filtering and personalisation G06F16/9535; arrangements for replacing or switching information during the broadcast H04H20/10; push services over packet-switching network H04L12/1859; adaptation of message content in packet-switching networks H04L51/063)}
- H04N 21/2743: Video hosting of uploaded data from client
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Embodiments of the present application provide a method and an apparatus for sending information in a live broadcast room, and an electronic device, the method includes: receiving a service request sent by a user in a current room; formulating or selecting a screening condition for screening a target room by a configuration center according to service requirements; acquiring the screening condition and screening the target room according to the screening condition; and sending the service request to the target room so as to complete sending information in the live broadcast room.

## Claims

### Claim 1

A method for sending information in a live broadcast room, comprising:
receiving a service request sent by a user in a current room;
formulating or selecting a screening condition for screening a target room by a configuration center according to service requirements, wherein the formulating or selecting a screening condition for screening a target room by a configuration center according to service requirements further comprises:
determining whether at least one existing screening condition in the configuration center comprises a screen condition to be configured according to the service requirements based on comparing the screen condition to be figured with the at least one existing screening condition in the configuration center,
in response to determining that the at least one existing screening condition in the configuration center comprises a screen condition that is the same as the screen condition to be configured, selecting the screening condition from the at least one existing screening condition in the configuration center as the screening condition for screening the target room, and
in response to determining that the at least one existing screening condition in the configuration center does not comprise the screen condition, formulating a new screening condition by the configuration center as the screening condition for screening the target room;
acquiring the screening condition and screening the target room according to the screening condition; and
sending the service request to the target room so as to complete sending information in the live broadcast room.

### Claim 2 (depends on 1)

The method according to claim 1, wherein after formulating or selecting the screening condition for screening the target room by the configuration center, the method further comprises:
storing the screening condition for screening the target room.

### Claim 3 (depends on 1)

The method according to claim 1, wherein acquiring the screening condition and screening the target room according to the screening condition comprises:
acquiring the screening condition;
acquiring unique identifiers of online rooms;
acquiring room information of the online rooms according to the unique identifiers of the online rooms; and
according to the screening condition that is acquired and the room information of the online rooms, screening the target room from the online rooms that are acquired.

### Claim 4 (depends on 1)

The method according to claim 1, wherein acquiring the screening condition and screening the target room according to the screening condition comprises:
acquiring the screening condition;
loading the screening condition in a goroutine of a main thread;
acquiring unique identifiers of online rooms, and grouping the unique identifiers of the online rooms; and
processing the online rooms that are grouped by using the goroutine to screen out the target room.

### Claim 5 (depends on 4)

The method according to claim 4, wherein processing the online rooms that are grouped by using the goroutine to screen out the target room comprises:
by using a plurality of goroutines, according to the unique identifiers of the online rooms in each group, acquiring room information of the online rooms in the group, the goroutines being in a one-to-one correspondence with groups of the unique identifiers of the online rooms; and
by using the goroutine, screening out the target room from the online rooms in each group according to the screening condition loaded in the goroutine and the room information of the online rooms in each group that is acquired.

### Claim 6 (depends on 1)

The method according to claim 1, wherein receiving the service request sent by the user in the current room comprises:
receiving the service request corresponding to an application programming interface sent by the user through the application programming interface in the current room;
converting data corresponding to the service request corresponding to the application programming interface through the application programming interface to obtain data in a preset format;
writing the data in the preset format into a message queue; and
reading the data in the preset format in the message queue, to complete receiving the service request sent by the user in the current room, so as to send the service request to the target room.

### Claim 7

An electronic device, comprising:
at least one processor; and
a memory in communicative connection with the at least one processor,
wherein the memory stores instructions executable by the at least one processor, and the instructions, when executed by the at least one processor, cause the at least one processor to implement operations comprising:
receiving a service request sent by a user in a current room;
formulating or selecting a screening condition for screening a target room by a configuration center according to service requirements, wherein the formulating or selecting a screening condition for screening a target room by a configuration center according to service requirements further comprises:
determining whether at least one existing screening condition in the configuration center comprises a screen condition to be configured according to the service requirements based on comparing the screen condition to be figured with the at least one existing screening condition in the configuration center,
in response to determining that the at least one existing screening condition in the configuration center comprises a screen condition that is the same as the screen condition to be configured, selecting the screening condition from the at least one existing screening condition in the configuration center as the screening condition for screening the target room, and
in response to determining that the at least one existing screening condition in the configuration center does not comprise the screen condition, formulating a new screening condition by the configuration center as the screening condition for screening the target room;
acquiring the screening condition and screening the target room according to the screening condition; and
sending the service request to the target room to complete sending information in a live broadcast room.

### Claim 8 (depends on 7)

The electronic device according to claim 7, the operations further comprising:
storing the screening condition for screening the target room.

### Claim 9 (depends on 7)

The electronic device according to claim 7, wherein the acquiring the screening condition and screening the target room according to the screening condition comprises:
acquiring the screening condition;
acquiring unique identifiers of online rooms;
acquiring room information of the online rooms according to the unique identifiers of the online rooms; and
according to the screening condition that is acquired and the room information of the online rooms, screening the target room from the online rooms that are acquired.

### Claim 10 (depends on 7)

The electronic device according to claim 7, wherein the acquiring the screening condition and screening the target room according to the screening condition comprises:
acquiring the screening condition;
loading the screening condition in a goroutine of a main thread;
acquiring unique identifiers of online rooms, and grouping the unique identifiers of the online rooms; and
processing the online rooms that are grouped by using the goroutine to screen out the target room.

### Claim 11 (depends on 10)

The electronic device according to according to claim 10, wherein the processing the online rooms that are grouped by using the goroutine to screen out the target room comprises:
by using a plurality of goroutines, according to the unique identifiers of the online rooms in each group, acquiring room information of the online rooms in the group, the goroutines being in a one-to-one correspondence with groups of the unique identifiers of the online rooms; and
by using the goroutine, screening out the target room from the online rooms in each group according to the screening condition loaded in the goroutine and the room information of the online rooms in each group that is acquired.

### Claim 12 (depends on 7)

The electronic device according to claim 7, wherein the receiving a service request sent by a user in a current room comprises:
receiving the service request corresponding to an application programming interface sent by the user through the application programming interface in the current room;
converting data corresponding to the service request corresponding to the application programming interface through the application programming interface to obtain data in a preset format;
writing the data in the preset format into a message queue; and
reading the data in the preset format in the message queue, to complete receiving the service request sent by the user in the current room, so as to send the service request to the target room.

### Claim 13

A non-transitory computer-readable storage medium, wherein the computer-readable storage medium stores instructions, and the instructions, when executed by a computer, cause the computer to implement operations comprising:
receiving a service request sent by a user in a current room;
formulating or selecting a screening condition for screening a target room by a configuration center according to service requirements, wherein the formulating or selecting a screening condition for screening a target room by a configuration center according to service requirements further comprises:
determining whether at least one existing screening condition in the configuration center comprises a screen condition to be configured according to the service requirements based on comparing the screen condition to be figured with the at least one existing screening condition in the configuration center,
in response to determining that the at least one existing screening condition in the configuration center comprises a screen condition that is the same as the screen condition to be configured, selecting the screening condition from the at least one existing screening condition in the configuration center as the screening condition for screening the target room, and
in response to determining that the at least one existing screening condition in the configuration center does not comprise the screen condition, formulating a new screening condition by the configuration center as the screening condition for screening the target room;
acquiring the screening condition and screening the target room according to the screening condition; and
sending the service request to the target room to complete sending information in a live broadcast room.

### Claim 14 (depends on 13)

The non-transitory computer-readable storage medium according to claim 13, the operations further comprising:
storing the screening condition for screening the target room.

### Claim 15 (depends on 13)

The non-transitory computer-readable storage medium according to claim 13, wherein the acquiring the screening condition and screening the target room according to the screening condition comprises:
acquiring the screening condition;
acquiring unique identifiers of online rooms;
acquiring room information of the online rooms according to the unique identifiers of the online rooms; and
according to the screening condition that is acquired and the room information of the online rooms, screening the target room from the online rooms that are acquired.

### Claim 16 (depends on 13)

The non-transitory computer-readable storage medium according to claim 13, wherein the acquiring the screening condition and screening the target room according to the screening condition comprises:
acquiring the screening condition;
loading the screening condition in a goroutine of a main thread;
acquiring unique identifiers of online rooms, and grouping the unique identifiers of the online rooms; and
processing the online rooms that are grouped by using the goroutine to screen out the target room.

### Claim 17 (depends on 16)

The electronic device according to according to claim 16, wherein the processing the online rooms that are grouped by using the goroutine to screen out the target room comprises:
by using a plurality of goroutines, according to the unique identifiers of the online rooms in each group, acquiring room information of the online rooms in the group, the goroutines being in a one-to-one correspondence with groups of the unique identifiers of the online rooms; and
by using the goroutine, screening out the target room from the online rooms in each group according to the screening condition loaded in the goroutine and the room information of the online rooms in each group that is acquired.

### Claim 18 (depends on 13)

The non-transitory computer-readable storage medium according to claim 13, wherein the receiving a service request sent by a user in a current room comprises:
receiving the service request corresponding to an application programming interface sent by the user through the application programming interface in the current room;
converting data corresponding to the service request corresponding to the application programming interface through the application programming interface to obtain data in a preset format;
writing the data in the preset format into a message queue; and
reading the data in the preset format in the message queue, to complete receiving the service request sent by the user in the current room, so as to send the service request to the target room.
