WO2015101303A1 - Channel processing method and device - Google Patents

Channel processing method and device Download PDF

Info

Publication number
WO2015101303A1
WO2015101303A1 PCT/CN2014/095706 CN2014095706W WO2015101303A1 WO 2015101303 A1 WO2015101303 A1 WO 2015101303A1 CN 2014095706 W CN2014095706 W CN 2014095706W WO 2015101303 A1 WO2015101303 A1 WO 2015101303A1
Authority
WO
WIPO (PCT)
Prior art keywords
channel
user
temporary
operation request
temporary channel
Prior art date
Application number
PCT/CN2014/095706
Other languages
French (fr)
Chinese (zh)
Inventor
林俊坚
Original Assignee
广州华多网络科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广州华多网络科技有限公司 filed Critical 广州华多网络科技有限公司
Publication of WO2015101303A1 publication Critical patent/WO2015101303A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1813Arrangements for providing special services to substations for broadcast or conference, e.g. multicast for computer conferences, e.g. chat rooms
    • H04L12/1818Conference organisation arrangements, e.g. handling schedules, setting up parameters needed by nodes to attend a conference, booking network resources, notifying involved parties

Definitions

  • the present application relates to the field of Internet technologies, and in particular, to a channel processing method and apparatus.
  • a channel is an information interaction platform provided by a server for users. Users can exchange information in the channel by means of broadcast video, audio and text.
  • the specific process of information exchange based on the channel is: the user requests the server to establish a channel, and when the server receives the request, the channel is established and the channel number is assigned to the channel, and the user is bound to the channel number, and other users are notified again. After the channel number, the channel can be entered by entering the channel number.
  • the message is sent to the server, which broadcasts the message on the channel so that other users on the channel can receive the message.
  • the channel is a fixed channel. Once the channel is established, it will always occupy the resources of the channel. When all users exit the channel, it will cause waste of resources. In addition, the user needs to perform additional operations to inform other users of the channel number that needs to be added. The operation of the process is cumbersome and reduces human-computer interaction.
  • the embodiment of the present application provides a channel processing method and apparatus.
  • the technical solution is as follows:
  • a channel processing method comprising:
  • a channel processing apparatus comprising:
  • a temporary channel establishing module configured to: when receiving the temporary channel establishment request sent by the first user, establish a temporary channel and send an invitation request to the invited second user;
  • Adding a user module configured to add the first user and a second user accepting the invitation to the temporary channel, where the temporary channel is used for information interaction between the first user and a second user accepting the invitation;
  • And deleting a channel module configured to monitor a user flow condition of the temporary channel, and deleting the temporary channel when detecting that the user in the temporary channel is less than a set threshold.
  • a server comprising: a processor and a transceiver;
  • the processor configured to: when the transceiver receives the temporary channel establishment request sent by the first user, establish a temporary channel and broadcast a channel identifier to the invited second user; and the first user and the accepting invitation Adding, to the temporary channel, the temporary channel is used by the first user to perform information interaction with the second user accepting the invitation; monitoring user flow of the temporary channel, when the temporary channel is detected The temporary channel is deleted when the user is less than the set threshold.
  • the method and apparatus provided by the embodiment of the present application establish a temporary channel and broadcast a channel identifier to the invited second user when the server receives the temporary channel establishment request sent by the first user, and the first user and the first party accepting the invitation Two users are added to the temporary channel, so that the first user and the second user accepting the invitation can directly enter the temporary channel without performing an operation such as inputting a channel number, thereby improving human-computer interaction. Further, the server can recover the resources occupied by the temporary channel by deleting the temporary channel when the user in the temporary channel is detected to be less than a set threshold, thereby avoiding waste of resources.
  • FIG. 1 is a flowchart of a channel processing method according to an embodiment of the present application.
  • FIG. 2 is a flowchart of a channel processing method according to an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of a channel processing apparatus according to an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of a server provided by an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a server provided by an embodiment of the present application.
  • FIG. 1 is a flowchart of a channel processing method according to an embodiment of the present application.
  • the execution body of the embodiment of the present invention is a server. Referring to FIG. 1, the method includes:
  • the method provided by the embodiment of the present application when the server receives the temporary channel establishment request sent by the first user, establishes a temporary channel and broadcasts the channel identifier to the invited second user, the first user and the second user accepting the invitation. Adding to the temporary channel enables the first user and the second user accepting the invitation to directly enter the temporary channel without performing an operation such as inputting a channel number, thereby improving human-computer interaction. Further, the server can recover the resources occupied by the temporary channel by deleting the temporary channel when the user in the temporary channel is detected to be less than a set threshold, thereby avoiding waste of resources.
  • the method further includes:
  • the method further includes:
  • the method further includes:
  • the channel identifier and the channel resource are allocated for the temporary channel, so that the first user and the invited second user can perform information interaction based on the channel resource, and the channel identifier is used to uniquely determine the temporary channel.
  • assigning the channel identifier and the channel resource to the temporary channel includes:
  • the channel resource corresponding to the selected channel identifier is assigned to the temporary channel.
  • FIG. 2 is a flowchart of a channel processing method according to an embodiment of the present application.
  • the execution body of the embodiment of the present invention is a server. Referring to FIG. 2, the method includes:
  • the embodiment of the present application is applied to a plurality of public platforms, such as a live video platform, an instant messaging platform, a music sharing platform, etc.
  • the server may be a server cluster of the public platform, or any server in the server cluster of the public platform, or
  • the functional modules in any of the servers are not limited in this embodiment.
  • a channel can be established on the public platform, and the user can perform information interaction in the channel, wherein the information interaction manner can be video, audio, text, and the like.
  • the server establishes multiple channels, each channel can broadcast different videos, and the user can perform live video, watch videos or post comments in each channel.
  • the server provides a service for establishing a temporary channel for the user.
  • the first user is a user who establishes a temporary channel, and the first user may invite other users to join the channel for information interaction.
  • the server can provide a temporary channel option for the user, and the temporary channel is established.
  • the request may be triggered by the first user to activate the establishment of the temporary channel option.
  • the triggering manner of the temporary channel establishment request in the embodiment of the present application is not limited.
  • the server may further provide the first user with an invitation option for each user, and when the first user wishes to invite a second user to perform a short, separate information interaction, the invited second user may be activated.
  • the invitation option the first user sends a temporary channel establishment request to the server, the temporary channel establishment request carries the invited second user, and the server establishes a temporary channel when receiving the temporary channel establishment request sent by the first user .
  • the first user when the first user triggers the temporary channel establishment request, the first user may further generate a request identifier that uniquely identifies the first user, so that the server distinguishes the received multiple temporary channel establishment requests.
  • the server allocates a channel identifier and a channel resource to the temporary channel, so that the first user and the invited second user can perform information interaction based on the channel resource, where the channel identifier is used to uniquely determine the temporary channel.
  • the channel identifier may be a channel ID (Identity), a room number on the public platform, and the like, and the identifier of the temporary channel can be uniquely determined.
  • the step 202 may include: the server selecting one channel identifier from the plurality of reserved channel identifiers to allocate to the temporary channel, and assigning the channel resource corresponding to the selected channel identifier to the temporary channel.
  • the pre-reserved plurality of channel identifiers refer to channel identifiers reserved by the server for establishing a temporary channel.
  • the server may temporarily generate a channel identifier to be allocated to the temporary channel when the temporary channel is established, but in order to further reduce the time for assigning the temporary identifier and simplify the process of establishing the temporary channel, the server may generate and reserve multiple channels in advance. Identification to assign to a temporary channel that is subsequently established.
  • the server may have any one of the following modes: (1-1) When the server establishes the temporary channel, the server randomly selects a channel identifier that is currently in an idle state from the plurality of reserved channel identifiers. The temporary channel; (1-2) the server selects a channel identifier that is currently in an idle state and corresponds to the geographic location of the first user, and is in the embodiment of the present application. This is not limited. After assigning the channel identifier to the temporary channel, the server may also adjust the status of the channel identifier to a busy status to indicate that the channel identifier has been assigned to avoid repeatedly assigning the same channel identifier.
  • the server may establish a fixed channel and a temporary channel, and in order to distinguish the channel identifier of the fixed channel from the channel identifier of the temporary channel, the server may generate and classify a plurality of channel identifiers in advance, and generate multiple channel identifiers. It is divided into a fixed channel identifier and a temporary channel identifier, and is respectively stored in a corresponding database, so that when a fixed channel is established, the server can select a fixed channel identifier for the fixed channel in the database of the fixed channel identifier, and establish a temporary channel. At the time, a temporary channel identifier can be selected for the temporary channel in the database of the temporary channel identification.
  • the fixed channel can be entered by inputting the channel identifier, but the channel identifier of the temporary channel is not required to enter the temporary channel, and the shorter channel identifier is easy to remember, and the longer channel identifier is easy to remember.
  • the channel identifier is optionally a 32-bit integer.
  • the server determines the channel identifier belonging to the decimal range as a fixed channel identifier, and determines the channel identifier belonging to the large value range as the temporary channel identifier. If the channel identifier in the range of “1-1 million” is determined as the fixed channel identifier, the channel identifier in the range of “20 million to 30 million” is determined as the temporary channel identifier.
  • the temporary channel is used for information interaction between the first user and the invited second user, and in the process of performing information interaction, the temporary channel needs to broadcast information such as video and text, that is, the temporary channel needs to occupy a certain amount.
  • Resources In order to reduce the time for allocating resources and simplify the flow of information interaction, the server may allocate resources to the temporary channel in advance, so that the first user interacts with the invited second user based on the channel resource.
  • the server may allocate a corresponding resource to the reserved channel identifier, and when any channel identifier is allocated to the temporary channel, the resource corresponding to the allocated channel identifier is also allocated to the temporary channel.
  • the user in the temporary channel can make information interaction based on the allocated resource.
  • the server may determine the number of resources required by the temporary channel according to the number of invited second users, the type of interaction, and the like, and allocate resources for the temporary channel according to the determined number of resources.
  • the specific manner of allocating resources is not limited in the embodiment of the present application.
  • the server sends an invitation request to the invited second user.
  • the server may send the invitation request to all the parties to broadcast the channel identifier to the second user.
  • the invitation may be accepted, rejected, or ignored.
  • the server adds the first user and the second user accepting the invitation to the temporary channel, where the temporary channel is used for information interaction between the first user and the second user accepting the invitation.
  • the server responds to the temporary channel establishment request sent by the first user, establishes a temporary channel, and broadcasts a channel identifier to the invited second user.
  • the server determines to accept the invited second user, The first user and the second user accepting the invitation are directly added to the temporary channel.
  • the first user does not need to know various rules and rights of the temporary channel, and only needs to trigger the temporary channel establishment request to establish and join the temporary channel, and does not need to input channel identification, verification code and the like, and the operation is simple and fast.
  • the server determines that any second user accepts the invitation
  • the second user accepting the invitation is added to the temporary channel as an example for description.
  • the server may also be configured by default. All the second users invited by the first user are added to the temporary channel, and the second user does not need to perform the accepting operation.
  • the server establishes a temporary channel, and adds the first user and the second user accepting the invitation to the temporary channel, and at this time, the first user and the second user accepting the invitation may be in the temporary Information interaction in the channel.
  • the information interaction process may be: when the server receives the first message sent by the first user, sending the first message to each second user, or when the server receives any second When the second message is sent by the user, the second message is sent to the first user and the second user other than the second user who sends the second message.
  • the server receives a channel permission condition sent by the first user.
  • the channel permission condition may be the permission of the inviting user, the level permission of the user to perform the live broadcast, and the like, and the permission condition of the channel may open the permission for inviting the other user to the second user who accepts the invitation, and the level is a preset level or The second user above the preset level may perform live video broadcast or watch live broadcast in the temporary channel, and the second user whose level is below the preset level may watch live broadcast in the temporary channel, etc.
  • the channel permission conditions are not limited.
  • the temporary channel establishment request may further carry the channel permission condition, that is, the step 205 and the step 201 may be simultaneously performed. Executing, or the step 205 may be performed in the process of information interaction between the first user and the at least one user, which is not limited in this embodiment of the present application.
  • the application server may send the channel permission condition corresponding to the service involved in the temporary channel to the terminal where the first user is located according to the needs of each service.
  • the corresponding channel permission condition is selected according to the service corresponding to the current temporary channel, and the selected channel permission condition is sent to the temporary channel server.
  • step 207 is performed, and if not, the process ends.
  • the server processes the operation request according to the channel permission condition when receiving the operation request sent by any second user.
  • the server responds to the operation request.
  • the server determines that the second user who sent the operation request satisfies the channel authority condition, performs an operation indicated by the operation request or returns information indicated by the operation request in response to the operation request.
  • the embodiment of the present application is described as an example in which the server does not perform any operation when the second user that sends the operation request does not satisfy the channel permission condition.
  • the server ignores the The operation request, or sending a message to the second user who sent the operation request, prompting the second user to have no permission to perform the requested operation.
  • the server divides the user into A, B, C, D, etc., and the levels are sequentially decreased according to the order of A, B, C, and D.
  • the channel permission condition stipulates that the second user whose level is A or B can perform live video broadcast in the temporary channel, and the second user whose level is below B cannot perform live video broadcast on the temporary channel, then when the server receives the first
  • the request for video live broadcast sent by the user a it is determined whether the level of the second user a is B or A.
  • the server responds to the request of the second user a, so that The second user a performs live video broadcast in the temporary channel.
  • the server ignores the request for live video broadcast.
  • the step 206 and the step 207 may be replaced by: when receiving an operation request sent by any second user, determining whether the operation request satisfies the channel permission condition, When the operation request satisfies the channel permission condition, in response to the operation request, when the operation request does not satisfy the channel permission condition, the operation request is ignored.
  • the channel permission condition stipulates that all the second users cannot invite other users to enter the temporary channel, and when the server receives the invitation to the user c sent by the second user b, determining that the invitation to the user c is not If the channel permission condition is met, the invitation to user c is ignored.
  • the exit request may be triggered by the user exiting the login state, closing the room window of the temporary channel, and the like, and the triggering manner of the exit request is not limited in this embodiment.
  • the first user and the second user accepting the invitation may trigger the exit request, and the embodiment of the present application does not limit the user who sends the exit request.
  • the server monitors a user flow condition of the temporary channel, and when the server detects that the user in the temporary channel is less than a set threshold, deleting the temporary channel.
  • the monitoring process is performed by the monitoring process created by the server.
  • the monitoring process maintains a monitoring list, and the monitoring process monitors the user flow of the channel corresponding to the channel identifier included in the monitoring list. Therefore, the server adds the channel identification to the watch list after establishing the temporary channel.
  • any user in the process of information interaction between the first user and the second user accepting the invitation in the temporary channel, any user may trigger an exit request to exit the temporary channel, or may satisfy the channel.
  • other users Under the premise of the permission condition, other users are invited to enter the temporary channel, that is, the flow of the user exists in the temporary channel.
  • the server may set a threshold and monitor the user flow of the temporary channel. When it is detected that the user in the temporary channel is less than a set threshold, delete the Temporary channel.
  • the server when the server detects that the user in the temporary channel is less than the set threshold, starting timing, when the duration of the determined statistics reaches a preset duration, the user of the temporary channel is still less than the set threshold, and then deleting The temporary channel.
  • the preset duration may be preset by the server, or may be determined by the server according to the current number of temporary channels and resource usage, which is not limited in this embodiment of the present application.
  • the server may further adjust the status of the channel identifier to an idle state, and clear the resource occupied by the temporary channel to recover the channel identifier and the channel resource, so as to facilitate reuse of the channel identifier. , saving channel identification resources.
  • the server may further detect whether the monitoring thread for monitoring the user flow condition is started.
  • the following steps can be performed before this step is performed:
  • the monitoring process does not start, create a monitoring process and add the channel ID of the temporary channel to the monitoring list of the monitoring process.
  • the step 209 is performed after the step 208 as an example.
  • the step 209 can be performed in real time or periodically, that is, the server monitors the temporary channel in real time or periodically during the information interaction between the first user and the second user accepting the invitation. If the user in the temporary channel is less than the set threshold, the temporary channel is deleted, or once the user in the temporary channel is detected to be less than the set threshold, the user is deleted after waiting for the preset time. Temporary channel.
  • the embodiment of the present application is described by taking the execution entity as a server as an example.
  • the steps involved in the embodiments of the present application may be performed by multiple servers associated with each other, such as establishing temporary in the steps 201-204.
  • the channel and the process of adding a user to the temporary channel may be performed by the channel server, and the process of controlling the temporary channel rights in steps 205-207 may be performed by the rights server, and the process of monitoring the user flow condition in the steps 208-209 may be performed by the channel.
  • the server performs the process, and the process of the information exchange between the users can be performed by the interaction server.
  • the embodiment of the present application does not limit the execution subject.
  • the method provided by the embodiment of the present application when the server receives the temporary channel establishment request sent by the first user, establishes a temporary channel and broadcasts the channel identifier to the invited second user, the first user and the second user accepting the invitation. Adding to the temporary channel enables the first user and the second user accepting the invitation to directly enter the temporary channel without performing an operation such as inputting a channel number, thereby improving human-computer interaction. Further, the server can recover the resources occupied by the temporary channel by deleting the temporary channel when the user in the temporary channel is detected to be less than a set threshold, thereby avoiding waste of resources.
  • FIG. 3 is a schematic structural diagram of a channel processing apparatus according to an embodiment of the present application.
  • the apparatus includes: a temporary channel establishing module 301, an adding user module 302, and a deleting channel module 303.
  • the temporary channel establishing module 301 is configured to: when receiving the temporary channel establishment request sent by the first user, establish a temporary channel and send an invitation request to the invited second user; the adding user module 302 is connected to the temporary channel establishing module 301. And adding, to the temporary channel, the first user and the second user accepting the invitation, the temporary channel is used for information interaction between the first user and the second user accepting the invitation; and the deleted channel module 303 is connected to the added user module 302. For monitoring the user flow of the temporary channel, when the user in the temporary channel is detected to be less than a set threshold, the temporary channel is deleted.
  • the device further includes:
  • a permission condition receiving module configured to receive a channel permission condition sent by the first user
  • a first authority control module configured to: when receiving an operation request sent by any second user, determine whether the second user that sends the operation request satisfies the channel permission condition, when the operation request is sent When the second user satisfies the permission condition of the channel, in response to the operation request, when the second user who sends the operation request does not satisfy the channel permission condition, the operation request is ignored; or
  • a second authority control module configured to: when receiving an operation request sent by any second user, determine whether the operation request satisfies the channel permission condition, and when the operation request satisfies the channel permission condition, respond to the operation request, when When the operation request does not satisfy the channel permission condition, the operation request is ignored.
  • the device further includes:
  • the exiting module is configured to delete the user who sent the exit request from the temporary channel when receiving the exit request sent by any user in the temporary channel.
  • the device further includes:
  • an allocation module configured to allocate a channel identifier and a channel resource to the temporary channel, so that the first user and the invited second user can perform information interaction based on the channel resource, where the channel identifier is used to uniquely determine the temporary channel.
  • the allocation module includes:
  • An identifier selecting unit configured to select one channel identifier from the plurality of channel identifiers reserved in advance to be allocated to the temporary channel;
  • an allocating unit configured to allocate the channel resource corresponding to the selected channel identifier to the temporary channel.
  • the device further includes:
  • a detecting module configured to detect whether a monitoring process for monitoring a temporary channel is started
  • the apparatus provided in this embodiment provides a first user and a second user who accepts the invitation by establishing a temporary channel when the server receives the temporary channel establishment request sent by the first user and broadcasting the channel identifier to the invited second user. Adding to the temporary channel enables the first user and the second user accepting the invitation to directly enter the temporary channel without performing an operation such as inputting a channel number, thereby improving human-computer interaction. Further, the server can recover the resources occupied by the temporary channel by deleting the temporary channel when the user in the temporary channel is detected to be less than a set threshold, thereby avoiding waste of resources.
  • the channel processing apparatus provided by the foregoing embodiment only illustrates the division of each functional module in the processing of the channel. In actual applications, the function allocation may be completed by different functional modules as needed.
  • the internal structure of the server is divided into different functional modules to perform all or part of the functions described above.
  • the channel processing apparatus provided by the above embodiment and The channel processing method embodiment belongs to the same concept, and the specific implementation process is detailed in the method embodiment, and details are not described herein again.
  • the server 400 may generate a large difference due to different configurations or performances, and may include one or more central processing units (CPUs) 422 (for example, One or more processors) and memory 432, one or more storage media 430 that store application 442 or data 444 (eg, one or one storage device in Shanghai).
  • the memory 432 and the storage medium 430 may be short-term storage or persistent storage.
  • the program stored on storage medium 430 may include one or more modules (not shown), each of which may include a series of instruction operations in the server.
  • central processor 422 can be configured to communicate with storage medium 430, executing a series of instruction operations in storage medium 430 on server 400.
  • Server 400 may also include one or more power sources 426, one or more wired or wireless network interfaces 450, one or more input and output interfaces 458, and/or one or more operating systems 441, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM and more.
  • the steps performed by the server described in the above embodiments may be based on the server structure shown in FIG.
  • FIG. 5 is a schematic structural diagram of a server provided by an embodiment of the present application, where the server includes: a processor 501 and a transceiver 502;
  • the processor 501 is configured to: when the transceiver 502 receives the temporary channel establishment request sent by the first user, establish a temporary channel and send an invitation request to the invited second user; add the first user and the second user accepting the invitation To the temporary channel, the temporary channel is used for information interaction between the first user and the second user accepting the invitation; monitoring the user flow of the temporary channel, and deleting the temporary channel when it is detected that the user in the temporary channel is less than the set threshold.
  • the transceiver 502 is further configured to receive a channel permission condition sent by the first user;
  • the processor 501 is further configured to: when the transceiver 502 receives an operation request sent by any second user, determine whether the second user that sends the operation request meets the channel permission condition, and when the second user that sends the operation request satisfies the channel permission condition Responding to the operation request, when the second user who sent the operation request is not satisfied Ignore the operation request when the channel permission condition; or,
  • the processor 501 is further configured to: when the transceiver 502 receives an operation request sent by any second user, determine whether the operation request satisfies the channel permission condition, and when the operation request satisfies the channel permission condition, respond to the operation request, when the operation request is not Ignore the operation request when the channel permission condition is met.
  • the processor 501 is further configured to: when the receiver receives the exit request sent by any user in the temporary channel, delete the user that sends the logout request from the temporary channel.
  • the processor 501 is further configured to allocate a channel identifier and a channel resource to the temporary channel, so that the first user and the invited second user can perform information interaction based on the channel resource, where the channel identifier is used to uniquely determine the temporary channel.
  • the processor 501 is further configured to: select one channel identifier from the plurality of channel identifiers reserved in advance to be allocated to the temporary channel; and allocate the channel resource corresponding to the selected channel identifier to the temporary channel.
  • the processor 501 is further configured to detect whether the monitoring process for monitoring the temporary channel is started; if the monitoring process is not started, create a monitoring process, and add the channel identifier of the temporary channel to the monitoring list of the monitoring process.
  • the server provided by the embodiment of the present application establishes a temporary channel and broadcasts a channel identifier to the invited second user when the server receives the temporary channel establishment request sent by the first user, and the first user and the second user accepting the invitation Adding to the temporary channel enables the first user and the second user accepting the invitation to directly enter the temporary channel without performing an operation such as inputting a channel number, thereby improving human-computer interaction. Further, the server can recover the resources occupied by the temporary channel by deleting the temporary channel when the user in the temporary channel is detected to be less than a set threshold, thereby avoiding waste of resources.
  • a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.

Abstract

The present application relates to the technical field of the Internet and discloses a channel processing method and device. The method comprises: after a request for establishing a temporary request transmitted by a first user is received, a temporary channel is established and an invitation request is transmitted to an invited second user; the first user and the second user who has received the invitation are added to the temporary channel; the user movement on the temporary channel is monitored; the temporary channel is deleted when the number of users in the temporary channel is detected to be less than a pre-set threshold value. While establishing a temporary channel, the present invention adds the first user and the second user who has received the invitation to the temporary channel, such that the first user and said second user can directly enter the temporary channel without executing operations such as inputting the channel number, thereby enabling the process to be fast and convenient. Additionally, temporary channels are flexible and can be used for information exchange among small groups. Further, a temporary channel is deleted when the number of users in the temporary channel is detected to be less than a pre-set threshold value, thereby recovering resources occupied by the temporary channel and avoiding resource waste.

Description

频道处理方法和装置Channel processing method and device
本申请要求于2013年12月30日提交中国专利局、申请号为201310746796.0、发明名称为“频道处理方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims the priority of the Chinese Patent Application, the entire disclosure of which is hereby incorporated by reference.
技术领域Technical field
本申请涉及互联网技术领域,特别涉及一种频道处理方法和装置。The present application relates to the field of Internet technologies, and in particular, to a channel processing method and apparatus.
背景技术Background technique
频道是服务器为用户提供的一种信息交互平台,用户可以在频道中通过广播视频、音频和文字等方式进行信息交互。A channel is an information interaction platform provided by a server for users. Users can exchange information in the channel by means of broadcast video, audio and text.
基于频道进行信息交互的具体过程为:用户向服务器请求建立一个频道,服务器接收到该请求时,建立频道并为该频道分配频道号,将该用户与该频道号绑定,其他用户再被告知该频道号以后,可以通过输入该频道号进入该频道。当该频道上的某一用户需要发送消息时,将该消息发送给该服务器,该服务器在该频道上广播该消息,使得该频道上的其他用户都可以接收到该消息。The specific process of information exchange based on the channel is: the user requests the server to establish a channel, and when the server receives the request, the channel is established and the channel number is assigned to the channel, and the user is bound to the channel number, and other users are notified again. After the channel number, the channel can be entered by entering the channel number. When a user on the channel needs to send a message, the message is sent to the server, which broadcasts the message on the channel so that other users on the channel can receive the message.
该频道是固定频道,频道一旦建立,就会一直占用该频道的资源,在所有用户都退出该频道的情况下会造成资源浪费。另外,用户需要进行额外的操作告知其他用户需要加入的频道号,该过程的操作较为繁琐,降低了人机交互性。The channel is a fixed channel. Once the channel is established, it will always occupy the resources of the channel. When all users exit the channel, it will cause waste of resources. In addition, the user needs to perform additional operations to inform other users of the channel number that needs to be added. The operation of the process is cumbersome and reduces human-computer interaction.
发明内容Summary of the invention
为了解决现有技术的问题,本申请实施例提供了一种频道处理方法和装置。所述技术方案如下:In order to solve the problems of the prior art, the embodiment of the present application provides a channel processing method and apparatus. The technical solution is as follows:
第一方面,提供了一种频道处理方法,所述方法包括:In a first aspect, a channel processing method is provided, the method comprising:
当接收到第一用户发送的临时频道建立请求时,建立临时频道并向被邀请的第二用户发送邀请请求;When receiving the temporary channel establishment request sent by the first user, establishing a temporary channel and sending an invitation request to the invited second user;
将所述第一用户和接受邀请的第二用户添加至所述临时频道,所述临时频道用于所述第一用户与接受邀请的第二用户进行信息交互;Adding the first user and the second user accepting the invitation to the temporary channel, where the temporary channel is used for information interaction between the first user and the second user accepting the invitation;
监测所述临时频道的用户流动情况,当监测到所述临时频道中的用户少于 设定阈值时,删除所述临时频道。Monitoring the user flow of the temporary channel, when less than the number of users in the temporary channel are monitored When the threshold is set, the temporary channel is deleted.
第二方面,提供了一种频道处理装置,所述装置包括:In a second aspect, a channel processing apparatus is provided, the apparatus comprising:
临时频道建立模块,用于当接收到第一用户发送的临时频道建立请求时,建立临时频道并向被邀请的第二用户发送邀请请求;a temporary channel establishing module, configured to: when receiving the temporary channel establishment request sent by the first user, establish a temporary channel and send an invitation request to the invited second user;
添加用户模块,用于将所述第一用户和接受邀请的第二用户添加至所述临时频道,所述临时频道用于所述第一用户与接受邀请的第二用户进行信息交互;Adding a user module, configured to add the first user and a second user accepting the invitation to the temporary channel, where the temporary channel is used for information interaction between the first user and a second user accepting the invitation;
删除频道模块,用于监测所述临时频道的用户流动情况,当监测到所述临时频道中的用户少于设定阈值时,删除所述临时频道。And deleting a channel module, configured to monitor a user flow condition of the temporary channel, and deleting the temporary channel when detecting that the user in the temporary channel is less than a set threshold.
第二方面,提供了一种服务器,所述服务器包括:处理器和收发器;In a second aspect, a server is provided, the server comprising: a processor and a transceiver;
所述处理器,用于当所述收发器接收到第一用户发送的临时频道建立请求时,建立临时频道并向被邀请的第二用户广播频道标识;将所述第一用户和接受邀请的第二用户添加至所述临时频道,所述临时频道用于所述第一用户与接受邀请的第二用户进行信息交互;监测所述临时频道的用户流动情况,当监测到所述临时频道中的用户少于设定阈值时,删除所述临时频道。The processor, configured to: when the transceiver receives the temporary channel establishment request sent by the first user, establish a temporary channel and broadcast a channel identifier to the invited second user; and the first user and the accepting invitation Adding, to the temporary channel, the temporary channel is used by the first user to perform information interaction with the second user accepting the invitation; monitoring user flow of the temporary channel, when the temporary channel is detected The temporary channel is deleted when the user is less than the set threshold.
本申请实施例提供的技术方案带来的有益效果是:The beneficial effects brought by the technical solutions provided by the embodiments of the present application are:
本申请实施例提供的方法和装置,通过当服务器接收到第一用户发送的临时频道建立请求时建立临时频道并向被邀请的第二用户广播频道标识,将该第一用户和接受邀请的第二用户添加至该临时频道,使得第一用户和接受邀请的第二用户能够直接进入该临时频道而无需执行输入频道号等操作,提高了人机交互性。进一步地,该服务器通过在监测到该临时频道中的用户少于设定阈值时删除该临时频道,能够回收该临时频道占用的资源,避免了资源浪费。The method and apparatus provided by the embodiment of the present application establish a temporary channel and broadcast a channel identifier to the invited second user when the server receives the temporary channel establishment request sent by the first user, and the first user and the first party accepting the invitation Two users are added to the temporary channel, so that the first user and the second user accepting the invitation can directly enter the temporary channel without performing an operation such as inputting a channel number, thereby improving human-computer interaction. Further, the server can recover the resources occupied by the temporary channel by deleting the temporary channel when the user in the temporary channel is detected to be less than a set threshold, thereby avoiding waste of resources.
附图说明DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。 In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present application. Other drawings may also be obtained from those of ordinary skill in the art in light of the inventive work.
图1是本申请实施例提供的一种频道处理方法的流程图;1 is a flowchart of a channel processing method according to an embodiment of the present application;
图2是本申请实施例提供的一种频道处理方法的流程图;2 is a flowchart of a channel processing method according to an embodiment of the present application;
图3是本申请实施例提供的一种频道处理装置结构示意图;3 is a schematic structural diagram of a channel processing apparatus according to an embodiment of the present application;
图4是本申请实施例提供的一种服务器结构示意图;4 is a schematic structural diagram of a server provided by an embodiment of the present application;
图5是本申请实施例提供的一种服务器结构示意图。FIG. 5 is a schematic structural diagram of a server provided by an embodiment of the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the drawings in the embodiments of the present application. It is obvious that the described embodiments are a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
图1是本申请实施例提供的一种频道处理方法的流程图。该发明实施例的执行主体为服务器,参见图1,所述方法包括:FIG. 1 is a flowchart of a channel processing method according to an embodiment of the present application. The execution body of the embodiment of the present invention is a server. Referring to FIG. 1, the method includes:
101、当接收到第一用户发送的临时频道建立请求时,建立临时频道并向被邀请的第二用户发送邀请请求。101. When receiving the temporary channel establishment request sent by the first user, establish a temporary channel and send an invitation request to the invited second user.
102、将该第一用户和接受邀请的第二用户添加至该临时频道,该临时频道用于该第一用户与接受邀请的第二用户进行信息交互。102. Add the first user and the second user accepting the invitation to the temporary channel, where the temporary channel is used for information interaction between the first user and the second user accepting the invitation.
103、监测该临时频道的用户流动情况,当监测到该临时频道中的用户少于设定阈值时,删除该临时频道。103. Monitor user flow of the temporary channel, and delete the temporary channel when it is detected that the user in the temporary channel is less than a set threshold.
本申请实施例提供的方法,通过当服务器接收到第一用户发送的临时频道建立请求时建立临时频道并向被邀请的第二用户广播频道标识,将该第一用户和接受邀请的第二用户添加至该临时频道,使得第一用户和接受邀请的第二用户能够直接进入该临时频道而无需执行输入频道号等操作,提高了人机交互性。进一步地,该服务器通过在监测到该临时频道中的用户少于设定阈值时删除该临时频道,能够回收该临时频道占用的资源,避免了资源浪费。The method provided by the embodiment of the present application, when the server receives the temporary channel establishment request sent by the first user, establishes a temporary channel and broadcasts the channel identifier to the invited second user, the first user and the second user accepting the invitation. Adding to the temporary channel enables the first user and the second user accepting the invitation to directly enter the temporary channel without performing an operation such as inputting a channel number, thereby improving human-computer interaction. Further, the server can recover the resources occupied by the temporary channel by deleting the temporary channel when the user in the temporary channel is detected to be less than a set threshold, thereby avoiding waste of resources.
可选地,该方法还包括:Optionally, the method further includes:
接收该第一用户发送的频道权限条件;Receiving a channel permission condition sent by the first user;
当接收到任一第二用户发送的操作请求时,判断发送该操作请求的第二用户是否满足该频道权限条件,当发送该操作请求的第二用户满足该频道权限条件时,响应该操作请求,当发送该操作请求的第二用户不满足该频道权限条件时,忽略该操作请求;或, When receiving an operation request sent by any second user, determining whether the second user that sent the operation request satisfies the channel permission condition, and responding to the operation request when the second user that sends the operation request satisfies the channel permission condition If the second user who sent the operation request does not satisfy the channel permission condition, the operation request is ignored; or,
当接收到任一第二用户发送的操作请求时,判断该操作请求是否满足该频道权限条件,当该操作请求满足该频道权限条件时,响应该操作请求,当该操作请求不满足该频道权限条件时,忽略该操作请求。When receiving an operation request sent by any second user, determining whether the operation request satisfies the channel permission condition, and when the operation request satisfies the channel permission condition, responding to the operation request, when the operation request does not satisfy the channel permission The operation request is ignored when the condition is met.
可选地,该方法还包括:Optionally, the method further includes:
当接收到该临时频道中的任一用户发送的退出请求时,将发送该退出请求的用户从该临时频道中删除。When an exit request sent by any of the temporary channels is received, the user who sent the exit request is deleted from the temporary channel.
可选地,当接收到第一用户发送的临时频道建立请求时,建立临时频道之后,该方法还包括:Optionally, after the temporary channel establishment request sent by the first user is received, after the temporary channel is established, the method further includes:
为该临时频道分配频道标识和频道资源,使得该第一用户与被邀请的第二用户能够基于该频道资源进行信息交互,该频道标识用于唯一确定该临时频道。The channel identifier and the channel resource are allocated for the temporary channel, so that the first user and the invited second user can perform information interaction based on the channel resource, and the channel identifier is used to uniquely determine the temporary channel.
可选地,为该临时频道分配频道标识和频道资源包括:Optionally, assigning the channel identifier and the channel resource to the temporary channel includes:
从预先保留的多个频道标识中选取一个频道标识分配给该临时频道;Selecting a channel identifier from the plurality of channel identifiers reserved in advance to be allocated to the temporary channel;
将该选取的频道标识对应的频道资源分配给该临时频道。The channel resource corresponding to the selected channel identifier is assigned to the temporary channel.
上述所有可选技术方案,可以采用任意结合形成本申请的可选实施例,在此不再一一赘述。All the foregoing optional technical solutions may be used in any combination to form an optional embodiment of the present application, and details are not described herein again.
图2是本申请实施例提供的一种频道处理方法的流程图。该发明实施例的执行主体为服务器,参见图2,所述方法包括:FIG. 2 is a flowchart of a channel processing method according to an embodiment of the present application. The execution body of the embodiment of the present invention is a server. Referring to FIG. 2, the method includes:
201、当该服务器接收到第一用户发送的临时频道建立请求时,建立临时频道。201. When the server receives the temporary channel establishment request sent by the first user, establish a temporary channel.
本申请实施例应用于多种公众平台,如视频直播平台、即时通讯平台、音乐共享平台等,该服务器可以为该公众平台的服务器集群,或者该公众平台的服务器集群中的任一服务器,或者任一服务器中的功能模块,本申请实施例对此不做限定。进一步地,在该公众平台上可以建立频道,用户可以在频道中进行信息交互,其中信息交互的方式可以为视频、音频、文字等信息交互方式。如在视频直播平台上,该服务器建立多个频道,每个频道可以直播不同的视频,用户可以在每个频道中进行视频直播、观看视频或者发布评论等。The embodiment of the present application is applied to a plurality of public platforms, such as a live video platform, an instant messaging platform, a music sharing platform, etc., and the server may be a server cluster of the public platform, or any server in the server cluster of the public platform, or The functional modules in any of the servers are not limited in this embodiment. Further, a channel can be established on the public platform, and the user can perform information interaction in the channel, wherein the information interaction manner can be video, audio, text, and the like. For example, on the live video platform, the server establishes multiple channels, each channel can broadcast different videos, and the user can perform live video, watch videos or post comments in each channel.
在本申请实施例中,该服务器为用户提供了建立临时频道的服务,该第一用户为建立临时频道的用户,第一用户可以邀请其他用户加入该频道进行信息交互。其中,该服务器可以为用户提供建立临时频道选项,该临时频道建立请 求可以由该第一用户激活该建立临时频道选项触发,本申请实施例对该临时频道建立请求的触发方式不做限定。In the embodiment of the present application, the server provides a service for establishing a temporary channel for the user. The first user is a user who establishes a temporary channel, and the first user may invite other users to join the channel for information interaction. The server can provide a temporary channel option for the user, and the temporary channel is established. The request may be triggered by the first user to activate the establishment of the temporary channel option. The triggering manner of the temporary channel establishment request in the embodiment of the present application is not limited.
进一步地,该服务器还可以为该第一用户提供每个用户的邀请选项,当该第一用户希望邀请某一第二用户进行短暂的、单独的信息交互时,可以激活被邀请的第二用户的邀请选项,该第一用户向该服务器发送临时频道建立请求,该临时频道建立请求携带被邀请的第二用户,该服务器在接收到该第一用户发送的临时频道建立请求时,建立临时频道。Further, the server may further provide the first user with an invitation option for each user, and when the first user wishes to invite a second user to perform a short, separate information interaction, the invited second user may be activated. The invitation option, the first user sends a temporary channel establishment request to the server, the temporary channel establishment request carries the invited second user, and the server establishes a temporary channel when receiving the temporary channel establishment request sent by the first user .
在本申请实施例中,该第一用户在触发该临时频道建立请求时,还可以生成一个唯一标识该第一用户的请求标识,以便该服务器区分接收到的多个临时频道建立请求。In the embodiment of the present application, when the first user triggers the temporary channel establishment request, the first user may further generate a request identifier that uniquely identifies the first user, so that the server distinguishes the received multiple temporary channel establishment requests.
202、该服务器为该临时频道分配频道标识和频道资源,使得该第一用户与邀请的第二用户能够基于该频道资源进行信息交互,该频道标识用于唯一确定该临时频道。202. The server allocates a channel identifier and a channel resource to the temporary channel, so that the first user and the invited second user can perform information interaction based on the channel resource, where the channel identifier is used to uniquely determine the temporary channel.
其中,该频道标识可以为频道ID(Identity,序列号)、该公众平台上的房间号码等能够唯一确定该临时频道的标识,本申请实施例对此不做限定。The channel identifier may be a channel ID (Identity), a room number on the public platform, and the like, and the identifier of the temporary channel can be uniquely determined.
可选地,该步骤202可以包括:该服务器从预先保留的多个频道标识中选取一个频道标识分配给该临时频道,将该选取的频道标识对应的频道资源分配给该临时频道。Optionally, the step 202 may include: the server selecting one channel identifier from the plurality of reserved channel identifiers to allocate to the temporary channel, and assigning the channel resource corresponding to the selected channel identifier to the temporary channel.
下面将对该服务器为该临时频道分配频道标识和频道资源分别进行说明。The following will describe the allocation of channel identification and channel resources for the temporary channel to the server.
(1)该预先保留的多个频道标识是指该服务器为建立临时频道而保留的频道标识。该服务器可以在建立该临时频道时,临时生成一个频道标识分配给该临时频道,但是,为了进一步减小分配临时标识的时间,简化建立临时频道的流程,该服务器可以预先生成并保留多个频道标识,以分配给后续建立的临时频道。(1) The pre-reserved plurality of channel identifiers refer to channel identifiers reserved by the server for establishing a temporary channel. The server may temporarily generate a channel identifier to be allocated to the temporary channel when the temporary channel is established, but in order to further reduce the time for assigning the temporary identifier and simplify the process of establishing the temporary channel, the server may generate and reserve multiple channels in advance. Identification to assign to a temporary channel that is subsequently established.
该服务器在分配频道标识时,可以有如下任一种方式:(1-1)该服务器在建立临时频道时,从预先保留的多个频道标识中随机选取一个当前处于空闲状态的频道标识分配给该临时频道;(1-2)该服务器在建立临时频道时,从预先保留的多个频道标识中选取当前处于空闲状态且与该第一用户的地理位置对应的频道标识,本申请实施例对此不做限定。在将频道标识分配给该临时频道后,该服务器还可以将该频道标识的状态调整为忙碌状态,以表明该频道标识已被分配,避免重复分配同一个频道标识。 When the server allocates the channel identifier, the server may have any one of the following modes: (1-1) When the server establishes the temporary channel, the server randomly selects a channel identifier that is currently in an idle state from the plurality of reserved channel identifiers. The temporary channel; (1-2) the server selects a channel identifier that is currently in an idle state and corresponds to the geographic location of the first user, and is in the embodiment of the present application. This is not limited. After assigning the channel identifier to the temporary channel, the server may also adjust the status of the channel identifier to a busy status to indicate that the channel identifier has been assigned to avoid repeatedly assigning the same channel identifier.
在实际应用中,该服务器可以建立固定频道和临时频道,而为了区分固定频道的频道标识和临时频道的频道标识,该服务器可以预先生成多个频道标识并进行分类,将生成的多个频道标识分为固定频道标识和临时频道标识,并分别保存在对应的数据库中,以便在建立固定频道时,该服务器能够在固定频道标识的数据库中为该固定频道选取一个固定频道标识,在建立临时频道时,能够在临时频道标识的数据库中为该临时频道选取一个临时频道标识。In an actual application, the server may establish a fixed channel and a temporary channel, and in order to distinguish the channel identifier of the fixed channel from the channel identifier of the temporary channel, the server may generate and classify a plurality of channel identifiers in advance, and generate multiple channel identifiers. It is divided into a fixed channel identifier and a temporary channel identifier, and is respectively stored in a corresponding database, so that when a fixed channel is established, the server can select a fixed channel identifier for the fixed channel in the database of the fixed channel identifier, and establish a temporary channel. At the time, a temporary channel identifier can be selected for the temporary channel in the database of the temporary channel identification.
由于用户需要获知固定频道的频道标识,才能通过输入频道标识进入该固定频道,但不需要获知临时频道的频道标识就能进入临时频道,且较短的频道标识容易记忆,而较长的频道标识不容易记忆,则可选地,该频道标识为32位的整数,该服务器将属于小数值范围的频道标识确定为固定频道标识,将属于大数值范围的频道标识确定为临时频道标识。如将“1-1千万”范围内的频道标识确定为固定频道标识,将“2千万-3千万”范围内的频道标识确定为临时频道标识。Since the user needs to know the channel identifier of the fixed channel, the fixed channel can be entered by inputting the channel identifier, but the channel identifier of the temporary channel is not required to enter the temporary channel, and the shorter channel identifier is easy to remember, and the longer channel identifier is easy to remember. If the memory is not easy to remember, the channel identifier is optionally a 32-bit integer. The server determines the channel identifier belonging to the decimal range as a fixed channel identifier, and determines the channel identifier belonging to the large value range as the temporary channel identifier. If the channel identifier in the range of “1-1 million” is determined as the fixed channel identifier, the channel identifier in the range of “20 million to 30 million” is determined as the temporary channel identifier.
(2)临时频道用于该第一用户与被邀请的第二用户进行信息交互,而在进行信息交互的过程中,该临时频道需要广播视频、文字等信息,即该临时频道需要占用一定的资源。为了减小分配资源的时间,简化信息交互的流程,该服务器可以预先为该临时频道分配资源,使得该第一用户与被邀请的第二用户基于该频道资源进行信息交互。(2) The temporary channel is used for information interaction between the first user and the invited second user, and in the process of performing information interaction, the temporary channel needs to broadcast information such as video and text, that is, the temporary channel needs to occupy a certain amount. Resources. In order to reduce the time for allocating resources and simplify the flow of information interaction, the server may allocate resources to the temporary channel in advance, so that the first user interacts with the invited second user based on the channel resource.
在本申请实施例中,该服务器可以为预先保留的频道标识分配相应的资源,当将任一频道标识分配给该临时频道时,将该分配的频道标识对应的资源也分配给该临时频道,使得该临时频道中的用户可以基于该分配的资源进行信息交互。In the embodiment of the present application, the server may allocate a corresponding resource to the reserved channel identifier, and when any channel identifier is allocated to the temporary channel, the resource corresponding to the allocated channel identifier is also allocated to the temporary channel. The user in the temporary channel can make information interaction based on the allocated resource.
当然,该服务器还可以在建立该临时频道时,根据被邀请的第二用户的数目、交互类型等信息,确定该临时频道需要的资源数,按照该确定的资源数,为该临时频道分配资源,本申请实施例对分配资源的具体方式不做限定。Certainly, the server may determine the number of resources required by the temporary channel according to the number of invited second users, the type of interaction, and the like, and allocate resources for the temporary channel according to the determined number of resources. The specific manner of allocating resources is not limited in the embodiment of the present application.
203、该服务器向被邀请的第二用户发送邀请请求。203. The server sends an invitation request to the invited second user.
在本申请实施例中,该服务器向所有被邀请发送邀请请求的方式可以为向第二用户广播该频道标识,当任一第二用户接收到该广播时,可以接受、拒绝或者忽略该邀请。In the embodiment of the present application, the server may send the invitation request to all the parties to broadcast the channel identifier to the second user. When any second user receives the broadcast, the invitation may be accepted, rejected, or ignored.
204、该服务器将该第一用户和接受邀请的第二用户添加至该临时频道,该临时频道用于该第一用户与接受邀请的第二用户进行信息交互。 204. The server adds the first user and the second user accepting the invitation to the temporary channel, where the temporary channel is used for information interaction between the first user and the second user accepting the invitation.
在本申请实施例中,该服务器响应该第一用户发送的临时频道建立请求,建立临时频道,并向被邀请的第二用户广播频道标识,当该服务器确定接受邀请的第二用户时,可以直接将该第一用户和接受邀请的第二用户添加至该临时频道。该第一用户无需了解临时频道的各种规则和权限,只需触发该临时频道建立请求,即可建立并加入临时频道,而且无需输入频道标识、验证码等信息,操作简单快捷。In the embodiment of the present application, the server responds to the temporary channel establishment request sent by the first user, establishes a temporary channel, and broadcasts a channel identifier to the invited second user. When the server determines to accept the invited second user, The first user and the second user accepting the invitation are directly added to the temporary channel. The first user does not need to know various rules and rights of the temporary channel, and only needs to trigger the temporary channel establishment request to establish and join the temporary channel, and does not need to input channel identification, verification code and the like, and the operation is simple and fast.
需要说明的是,本申请实施例以该服务器在确定任一第二用户接受邀请时,将该接受邀请的第二用户添加至该临时频道为例进行说明,实际应用中,该服务器还可以默认将该第一用户邀请的所有第二用户添加至该临时频道,而无需第二用户执行接受操作,本申请实施例对此不做限定。It should be noted that, in the embodiment of the present application, when the server determines that any second user accepts the invitation, the second user accepting the invitation is added to the temporary channel as an example for description. In an actual application, the server may also be configured by default. All the second users invited by the first user are added to the temporary channel, and the second user does not need to perform the accepting operation.
基于上述步骤,该服务器建立了临时频道,并将该第一用户和该接受邀请的第二用户添加至该临时频道,此时,该第一用户和该接受邀请的第二用户可以在该临时频道中进行信息交互。Based on the above steps, the server establishes a temporary channel, and adds the first user and the second user accepting the invitation to the temporary channel, and at this time, the first user and the second user accepting the invitation may be in the temporary Information interaction in the channel.
具体地,该信息交互过程可以为:当该服务器接收到该第一用户发送的第一消息时,将该第一消息发送给每个第二用户,或,当该服务器接收到任一第二用户发送的第二消息时,将该第二消息发送给该第一用户和除发送该第二消息的第二用户之外的第二用户。Specifically, the information interaction process may be: when the server receives the first message sent by the first user, sending the first message to each second user, or when the server receives any second When the second message is sent by the user, the second message is sent to the first user and the second user other than the second user who sends the second message.
205、该服务器接收该第一用户发送的频道权限条件。205. The server receives a channel permission condition sent by the first user.
其中,该频道权限条件可以为邀请用户的权限、用户进行直播的级别权限等,如该频道权限条件可以为该接受邀请的第二用户开放邀请其他用户的权限,并规定级别为预设级别或在该预设级别之上的第二用户可以在该临时频道中进行视频直播或者观看直播,而级别在该预设级别之下的第二用户可以在该临时频道中观看直播等,本申请实施例对该频道权限条件不做限定。The channel permission condition may be the permission of the inviting user, the level permission of the user to perform the live broadcast, and the like, and the permission condition of the channel may open the permission for inviting the other user to the second user who accepts the invitation, and the level is a preset level or The second user above the preset level may perform live video broadcast or watch live broadcast in the temporary channel, and the second user whose level is below the preset level may watch live broadcast in the temporary channel, etc. For example, the channel permission conditions are not limited.
需要说明的是,本申请实施例以该步骤205在该步骤204之后执行为例进行说明,实际上,该临时频道建立请求还可以携带该频道权限条件,即该步骤205与该步骤201可以同时执行,或者,该步骤205可以在该第一用户与该至少一个用户进行信息交互的过程中执行,本申请实施例对此不做限定。It should be noted that the embodiment of the present application is described by using the step 205 after the step 204. In fact, the temporary channel establishment request may further carry the channel permission condition, that is, the step 205 and the step 201 may be simultaneously performed. Executing, or the step 205 may be performed in the process of information interaction between the first user and the at least one user, which is not limited in this embodiment of the present application.
可选的,可以由应用服务器根据各业务的需要,将临时频道中所涉及的业务所对应的频道权限条件下发给第一用户所在终端。在第一用户向临时频道服务器发送临时频道建立请求之后,根据当前临时频道所对应的业务选取相应的频道权限条件,并将选取到的频道权限条件发送给临时频道服务器。 Optionally, the application server may send the channel permission condition corresponding to the service involved in the temporary channel to the terminal where the first user is located according to the needs of each service. After the first user sends the temporary channel establishment request to the temporary channel server, the corresponding channel permission condition is selected according to the service corresponding to the current temporary channel, and the selected channel permission condition is sent to the temporary channel server.
206、当该服务器接收到任一第二用户发送的操作请求时,判断发送该操作请求的第二用户是否满足该频道权限条件,如果是,执行步骤207,如果否,结束。206. When the server receives an operation request sent by any second user, it is determined whether the second user that sends the operation request satisfies the channel permission condition, and if yes, step 207 is performed, and if not, the process ends.
在本申请实施例中,该第一用户已设定频道权限条件,则该服务器在接收到任一第二用户发送的操作请求时,按照该频道权限条件对该操作请求进行处理。In the embodiment of the present application, if the first user has set the channel permission condition, the server processes the operation request according to the channel permission condition when receiving the operation request sent by any second user.
207、该服务器响应该操作请求。207. The server responds to the operation request.
具体地,当该服务器确定发送该操作请求的第二用户满足该频道权限条件,执行该操作请求所指示的操作或者返回该操作请求所指示的信息,以响应该操作请求。Specifically, when the server determines that the second user who sent the operation request satisfies the channel authority condition, performs an operation indicated by the operation request or returns information indicated by the operation request in response to the operation request.
本申请实施例以当发送该操作请求的第二用户不满足该频道权限条件时该服务器不再执行任何操作为例进行说明,在本申请实施例提供的另一实施例中,该服务器忽略该操作请求,或向发送该操作请求的第二用户发送消息,提示该第二用户无权限执行所请求的操作。The embodiment of the present application is described as an example in which the server does not perform any operation when the second user that sends the operation request does not satisfy the channel permission condition. In another embodiment provided by the embodiment of the present application, the server ignores the The operation request, or sending a message to the second user who sent the operation request, prompting the second user to have no permission to perform the requested operation.
如,该服务器将用户划分为A、B、C、D等级别,且按照A、B、C、D的顺序,级别依次降低。该频道权限条件规定级别为A或B的第二用户可以在该临时频道中进行视频直播,而级别在B以下的第二用户不可以在该临时频道进行视频直播,则当该服务器接收到第二用户a发送的进行视频直播的请求时,判断第二用户a的级别是否为B或A,当确定第二用户a的级别为B或A时,该服务器响应第二用户a的请求,使得第二用户a在该临时频道中进行视频直播,当确定第二用户a的级别在B以下时,该服务器忽略该进行视频直播的请求。For example, the server divides the user into A, B, C, D, etc., and the levels are sequentially decreased according to the order of A, B, C, and D. The channel permission condition stipulates that the second user whose level is A or B can perform live video broadcast in the temporary channel, and the second user whose level is below B cannot perform live video broadcast on the temporary channel, then when the server receives the first When the request for video live broadcast sent by the user a is determined, it is determined whether the level of the second user a is B or A. When it is determined that the level of the second user a is B or A, the server responds to the request of the second user a, so that The second user a performs live video broadcast in the temporary channel. When it is determined that the level of the second user a is below B, the server ignores the request for live video broadcast.
在本申请实施例提供的另一实施例中,该步骤206和步骤207可以由以下步骤代替:当接收到任一第二用户发送的操作请求时,判断该操作请求是否满足该频道权限条件,当该操作请求满足该频道权限条件时,响应该操作请求,当该操作请求不满足该频道权限条件时,忽略该操作请求。In another embodiment provided by the embodiment of the present application, the step 206 and the step 207 may be replaced by: when receiving an operation request sent by any second user, determining whether the operation request satisfies the channel permission condition, When the operation request satisfies the channel permission condition, in response to the operation request, when the operation request does not satisfy the channel permission condition, the operation request is ignored.
如,该频道权限条件规定所有的第二用户均不可以邀请其他用户进入该临时频道,则当该服务器接收到第二用户b发送的对用户c的邀请时,确定该对用户c的邀请不满足该频道权限条件,则忽略该对用户c的邀请。For example, the channel permission condition stipulates that all the second users cannot invite other users to enter the temporary channel, and when the server receives the invitation to the user c sent by the second user b, determining that the invitation to the user c is not If the channel permission condition is met, the invitation to user c is ignored.
208、当该服务器接收到该临时频道中的任一用户发送的退出请求时,将发送该退出请求的用户从该临时频道中删除。 208. When the server receives an exit request sent by any user in the temporary channel, the user who sends the exit request is deleted from the temporary channel.
其中,该退出请求可以由该用户退出登录状态、关闭该临时频道的房间窗口等操作触发,本申请实施例对该退出请求的触发方式不做限定。此外,该第一用户和该接受邀请的第二用户均可以触发该退出请求,本申请实施例对发送该退出请求的用户也不做限定。The exit request may be triggered by the user exiting the login state, closing the room window of the temporary channel, and the like, and the triggering manner of the exit request is not limited in this embodiment. In addition, the first user and the second user accepting the invitation may trigger the exit request, and the embodiment of the present application does not limit the user who sends the exit request.
209、该服务器监测该临时频道的用户流动情况,当该服务器监测到该临时频道中的用户少于设定阈值时,删除该临时频道。209. The server monitors a user flow condition of the temporary channel, and when the server detects that the user in the temporary channel is less than a set threshold, deleting the temporary channel.
其中,本步骤由该服务器创建的监控进程进行执行,该监控进程中维护有监视列表,监视进程中对该监视列表中包含的频道标识对应的频道进行监测用户流动情况。因此,在建立临时频道之后该服务器将该频道标识加入该监视列表中。The monitoring process is performed by the monitoring process created by the server. The monitoring process maintains a monitoring list, and the monitoring process monitors the user flow of the channel corresponding to the channel identifier included in the monitoring list. Therefore, the server adds the channel identification to the watch list after establishing the temporary channel.
在本申请实施例中,该第一用户和该接受邀请的第二用户在该临时频道中进行信息交互的过程中,任一用户均可以触发退出请求以退出该临时频道,也可以在满足频道权限条件的前提下,邀请其他用户进入该临时频道,即该临时频道中存在着用户的流动。In the embodiment of the present application, in the process of information interaction between the first user and the second user accepting the invitation in the temporary channel, any user may trigger an exit request to exit the temporary channel, or may satisfy the channel. Under the premise of the permission condition, other users are invited to enter the temporary channel, that is, the flow of the user exists in the temporary channel.
为了避免在该临时频道中用户过少时,造成资源浪费,该服务器可以设定阈值,并监测该临时频道的用户流动情况,当监测到该临时频道中的用户少于设定阈值时,删除该临时频道。In order to avoid waste of resources when the number of users in the temporary channel is too small, the server may set a threshold and monitor the user flow of the temporary channel. When it is detected that the user in the temporary channel is less than a set threshold, delete the Temporary channel.
可选地,当该服务器检测到该临时频道中的用户少于设定阈值时,开始计时,当确定统计的时长到达预设时长时,该临时频道的用户仍少于设定阈值,则删除该临时频道。该预设时长可以由该服务器预先设定,或者由该服务器根据当前的临时频道数目和资源占用情况确定,本申请实施例对此不做限定。Optionally, when the server detects that the user in the temporary channel is less than the set threshold, starting timing, when the duration of the determined statistics reaches a preset duration, the user of the temporary channel is still less than the set threshold, and then deleting The temporary channel. The preset duration may be preset by the server, or may be determined by the server according to the current number of temporary channels and resource usage, which is not limited in this embodiment of the present application.
其中,该服务器在删除该临时频道时,还可以将该频道标识的状态调整为空闲状态,将该临时频道所占的资源内存清空,以回收该频道标识和该频道资源,便于重复利用频道标识,节省了频道标识资源。When deleting the temporary channel, the server may further adjust the status of the channel identifier to an idle state, and clear the resource occupied by the temporary channel to recover the channel identifier and the channel resource, so as to facilitate reuse of the channel identifier. , saving channel identification resources.
可选的,在本步骤执行之前,该服务器针对第一用户发送的临时频道建立请求建立临时频道之后,该服务器还可以检测用于监测用户流动情况的监控线程是否启动。相应的,在本步骤执行之前还可以执行如下步骤:Optionally, after the server establishes a temporary channel for the temporary channel establishment request sent by the first user before the step is executed, the server may further detect whether the monitoring thread for monitoring the user flow condition is started. Correspondingly, the following steps can be performed before this step is performed:
检测用于监测临时频道的监控进程是否启动;Detecting whether the monitoring process for monitoring the temporary channel is started;
如果监控进程未启动,则创建监控进程并将临时频道的频道标识添加入监控进程的监视列表中。If the monitoring process does not start, create a monitoring process and add the channel ID of the temporary channel to the monitoring list of the monitoring process.
需要说明的是,本申请实施例以该步骤209在步骤208之后执行为例进行 说明,实际上,该步骤209可以实时地或者周期性进行,即在该第一用户与该接受邀请的第二用户进行信息交互的过程中,该服务器实时地或周期性地监测该临时频道的用户流动情况,一旦监测到该临时频道中的用户少于设定阈值时,删除该临时频道,或一旦监测到该临时频道中的用户少于设定阈值时,等待该预设时长后删除该临时频道。It should be noted that, in this embodiment, the step 209 is performed after the step 208 as an example. In other words, the step 209 can be performed in real time or periodically, that is, the server monitors the temporary channel in real time or periodically during the information interaction between the first user and the second user accepting the invitation. If the user in the temporary channel is less than the set threshold, the temporary channel is deleted, or once the user in the temporary channel is detected to be less than the set threshold, the user is deleted after waiting for the preset time. Temporary channel.
进一步需要说明的是,本申请实施例以执行主体为服务器为例进行说明,实际上,本申请实施例所涉及的步骤可以由相互关联的多个服务器执行,如该步骤201-204中建立临时频道以及向该临时频道添加用户的过程可以由频道服务器执行,步骤205-207中控制该临时频道权限的过程可以由权限服务器执行,该步骤208-209中监测用户流动情况的过程可以由该频道服务器执行,而在此过程中,用户之间进行信息交互的过程可以由交互服务器执行,本申请实施例对该执行主体也不做限定。It should be further noted that the embodiment of the present application is described by taking the execution entity as a server as an example. In fact, the steps involved in the embodiments of the present application may be performed by multiple servers associated with each other, such as establishing temporary in the steps 201-204. The channel and the process of adding a user to the temporary channel may be performed by the channel server, and the process of controlling the temporary channel rights in steps 205-207 may be performed by the rights server, and the process of monitoring the user flow condition in the steps 208-209 may be performed by the channel. The server performs the process, and the process of the information exchange between the users can be performed by the interaction server. The embodiment of the present application does not limit the execution subject.
本申请实施例提供的方法,通过当服务器接收到第一用户发送的临时频道建立请求时建立临时频道并向被邀请的第二用户广播频道标识,将该第一用户和接受邀请的第二用户添加至该临时频道,使得第一用户和接受邀请的第二用户能够直接进入该临时频道而无需执行输入频道号等操作,提高了人机交互性。进一步地,该服务器通过在监测到该临时频道中的用户少于设定阈值时删除该临时频道,能够回收该临时频道占用的资源,避免了资源浪费。The method provided by the embodiment of the present application, when the server receives the temporary channel establishment request sent by the first user, establishes a temporary channel and broadcasts the channel identifier to the invited second user, the first user and the second user accepting the invitation. Adding to the temporary channel enables the first user and the second user accepting the invitation to directly enter the temporary channel without performing an operation such as inputting a channel number, thereby improving human-computer interaction. Further, the server can recover the resources occupied by the temporary channel by deleting the temporary channel when the user in the temporary channel is detected to be less than a set threshold, thereby avoiding waste of resources.
图3是本申请实施例提供的一种频道处理装置结构示意图,参见图3,该装置包括:临时频道建立模块301、添加用户模块302、删除频道模块303,3 is a schematic structural diagram of a channel processing apparatus according to an embodiment of the present application. Referring to FIG. 3, the apparatus includes: a temporary channel establishing module 301, an adding user module 302, and a deleting channel module 303.
其中,临时频道建立模块301用于当接收到第一用户发送的临时频道建立请求时,建立临时频道并向被邀请的第二用户发送邀请请求;添加用户模块302与临时频道建立模块301连接,用于将该第一用户和接受邀请的第二用户添加至该临时频道,该临时频道用于该第一用户与接受邀请的第二用户进行信息交互;删除频道模块303与添加用户模块302连接,用于监测该临时频道的用户流动情况,当监测到该临时频道中的用户少于设定阈值时,删除该临时频道。The temporary channel establishing module 301 is configured to: when receiving the temporary channel establishment request sent by the first user, establish a temporary channel and send an invitation request to the invited second user; the adding user module 302 is connected to the temporary channel establishing module 301. And adding, to the temporary channel, the first user and the second user accepting the invitation, the temporary channel is used for information interaction between the first user and the second user accepting the invitation; and the deleted channel module 303 is connected to the added user module 302. For monitoring the user flow of the temporary channel, when the user in the temporary channel is detected to be less than a set threshold, the temporary channel is deleted.
可选地,该装置还包括:Optionally, the device further includes:
权限条件接收模块,用于接收该第一用户发送的频道权限条件;a permission condition receiving module, configured to receive a channel permission condition sent by the first user;
第一权限控制模块,用于当接收到任一第二用户发送的操作请求时,判断发送该操作请求的第二用户是否满足该频道权限条件,当发送该操作请求的第 二用户满足该频道权限条件时,响应该操作请求,当发送该操作请求的第二用户不满足该频道权限条件时,忽略该操作请求;或,a first authority control module, configured to: when receiving an operation request sent by any second user, determine whether the second user that sends the operation request satisfies the channel permission condition, when the operation request is sent When the second user satisfies the permission condition of the channel, in response to the operation request, when the second user who sends the operation request does not satisfy the channel permission condition, the operation request is ignored; or
第二权限控制模块,用于当接收到任一第二用户发送的操作请求时,判断该操作请求是否满足该频道权限条件,当该操作请求满足该频道权限条件时,响应该操作请求,当该操作请求不满足该频道权限条件时,忽略该操作请求。a second authority control module, configured to: when receiving an operation request sent by any second user, determine whether the operation request satisfies the channel permission condition, and when the operation request satisfies the channel permission condition, respond to the operation request, when When the operation request does not satisfy the channel permission condition, the operation request is ignored.
可选地,该装置还包括:Optionally, the device further includes:
退出模块,用于当接收到该临时频道中的任一用户发送的退出请求时,将发送该退出请求的用户从该临时频道中删除。The exiting module is configured to delete the user who sent the exit request from the temporary channel when receiving the exit request sent by any user in the temporary channel.
可选地,该装置还包括:Optionally, the device further includes:
分配模块,用于为该临时频道分配频道标识和频道资源,使得该第一用户与被邀请的第二用户能够基于该频道资源进行信息交互,该频道标识用于唯一确定该临时频道。And an allocation module, configured to allocate a channel identifier and a channel resource to the temporary channel, so that the first user and the invited second user can perform information interaction based on the channel resource, where the channel identifier is used to uniquely determine the temporary channel.
可选地,该分配模块包括:Optionally, the allocation module includes:
标识选取单元,用于从预先保留的多个频道标识中选取一个频道标识分配给该临时频道;An identifier selecting unit, configured to select one channel identifier from the plurality of channel identifiers reserved in advance to be allocated to the temporary channel;
分配单元,用于将该选取的频道标识对应的频道资源分配给该临时频道。And an allocating unit, configured to allocate the channel resource corresponding to the selected channel identifier to the temporary channel.
可选的,该装置还包括:Optionally, the device further includes:
检测模块,用于检测用于监测临时频道的监控进程是否启动;a detecting module, configured to detect whether a monitoring process for monitoring a temporary channel is started;
创建模块,用于如果监控进程未启动,则创建监控进程;Create a module to create a monitoring process if the monitoring process is not started;
添加模块,用于将临时频道的频道标识添加入监控进程的监视列表中。Add a module to add the channel ID of the temporary channel to the watch list of the monitoring process.
本申请实施例提供的装置,通过当服务器接收到第一用户发送的临时频道建立请求时建立临时频道并向被邀请的第二用户广播频道标识,将该第一用户和接受邀请的第二用户添加至该临时频道,使得第一用户和接受邀请的第二用户能够直接进入该临时频道而无需执行输入频道号等操作,提高了人机交互性。进一步地,该服务器通过在监测到该临时频道中的用户少于设定阈值时删除该临时频道,能够回收该临时频道占用的资源,避免了资源浪费。The apparatus provided in this embodiment provides a first user and a second user who accepts the invitation by establishing a temporary channel when the server receives the temporary channel establishment request sent by the first user and broadcasting the channel identifier to the invited second user. Adding to the temporary channel enables the first user and the second user accepting the invitation to directly enter the temporary channel without performing an operation such as inputting a channel number, thereby improving human-computer interaction. Further, the server can recover the resources occupied by the temporary channel by deleting the temporary channel when the user in the temporary channel is detected to be less than a set threshold, thereby avoiding waste of resources.
需要说明的是:上述实施例提供的频道处理装置在处理频道时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将服务器的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的频道处理装置与 频道处理方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that the channel processing apparatus provided by the foregoing embodiment only illustrates the division of each functional module in the processing of the channel. In actual applications, the function allocation may be completed by different functional modules as needed. The internal structure of the server is divided into different functional modules to perform all or part of the functions described above. In addition, the channel processing apparatus provided by the above embodiment and The channel processing method embodiment belongs to the same concept, and the specific implementation process is detailed in the method embodiment, and details are not described herein again.
图4是本申请实施例提供的一种服务器结构示意图,该服务器400可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上中央处理器(central processing units,CPU)422(例如,一个或一个以上处理器)和存储器432,一个或一个以上存储应用程序442或数据444的存储介质430(例如一个或一个以上海量存储设备)。其中,存储器432和存储介质430可以是短暂存储或持久存储。存储在存储介质430的程序可以包括一个或一个以上模块(图示没标出),每个模块可以包括对服务器中的一系列指令操作。更进一步地,中央处理器422可以设置为与存储介质430通信,在服务器400上执行存储介质430中的一系列指令操作。4 is a schematic structural diagram of a server provided by an embodiment of the present application. The server 400 may generate a large difference due to different configurations or performances, and may include one or more central processing units (CPUs) 422 (for example, One or more processors) and memory 432, one or more storage media 430 that store application 442 or data 444 (eg, one or one storage device in Shanghai). Among them, the memory 432 and the storage medium 430 may be short-term storage or persistent storage. The program stored on storage medium 430 may include one or more modules (not shown), each of which may include a series of instruction operations in the server. Still further, central processor 422 can be configured to communicate with storage medium 430, executing a series of instruction operations in storage medium 430 on server 400.
服务器400还可以包括一个或一个以上电源426,一个或一个以上有线或无线网络接口450,一个或一个以上输入输出接口458,和/或,一个或一个以上操作系统441,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM等等。 Server 400 may also include one or more power sources 426, one or more wired or wireless network interfaces 450, one or more input and output interfaces 458, and/or one or more operating systems 441, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM and more.
上述实施例中所述的由服务器所执行的步骤可以基于该图4所示的服务器结构。The steps performed by the server described in the above embodiments may be based on the server structure shown in FIG.
图5是本申请实施例提供的一种服务器结构示意图,该服务器包括:处理器501和收发器502;5 is a schematic structural diagram of a server provided by an embodiment of the present application, where the server includes: a processor 501 and a transceiver 502;
处理器501,用于当收发器502接收到第一用户发送的临时频道建立请求时,建立临时频道并向被邀请的第二用户发送邀请请求;将第一用户和接受邀请的第二用户添加至临时频道,临时频道用于第一用户与接受邀请的第二用户进行信息交互;监测临时频道的用户流动情况,当监测到临时频道中的用户少于设定阈值时,删除临时频道。The processor 501 is configured to: when the transceiver 502 receives the temporary channel establishment request sent by the first user, establish a temporary channel and send an invitation request to the invited second user; add the first user and the second user accepting the invitation To the temporary channel, the temporary channel is used for information interaction between the first user and the second user accepting the invitation; monitoring the user flow of the temporary channel, and deleting the temporary channel when it is detected that the user in the temporary channel is less than the set threshold.
收发器502,还用于接收第一用户发送的频道权限条件;The transceiver 502 is further configured to receive a channel permission condition sent by the first user;
处理器501,还用于当收发器502接收到任一第二用户发送的操作请求时,判断发送操作请求的第二用户是否满足频道权限条件,当发送操作请求的第二用户满足频道权限条件时,响应操作请求,当发送操作请求的第二用户不满足 频道权限条件时,忽略操作请求;或,The processor 501 is further configured to: when the transceiver 502 receives an operation request sent by any second user, determine whether the second user that sends the operation request meets the channel permission condition, and when the second user that sends the operation request satisfies the channel permission condition Responding to the operation request, when the second user who sent the operation request is not satisfied Ignore the operation request when the channel permission condition; or,
处理器501,还用于当收发器502接收到任一第二用户发送的操作请求时,判断操作请求是否满足频道权限条件,当操作请求满足频道权限条件时,响应操作请求,当操作请求不满足频道权限条件时,忽略操作请求。The processor 501 is further configured to: when the transceiver 502 receives an operation request sent by any second user, determine whether the operation request satisfies the channel permission condition, and when the operation request satisfies the channel permission condition, respond to the operation request, when the operation request is not Ignore the operation request when the channel permission condition is met.
处理器501,还用于当接收器接收到临时频道中的任一用户发送的退出请求时,将发送退出请求的用户从临时频道中删除。The processor 501 is further configured to: when the receiver receives the exit request sent by any user in the temporary channel, delete the user that sends the logout request from the temporary channel.
处理器501,还用于为临时频道分配频道标识和频道资源,使得第一用户与被邀请的第二用户能够基于频道资源进行信息交互,频道标识用于唯一确定临时频道。The processor 501 is further configured to allocate a channel identifier and a channel resource to the temporary channel, so that the first user and the invited second user can perform information interaction based on the channel resource, where the channel identifier is used to uniquely determine the temporary channel.
处理器501,还用于从预先保留的多个频道标识中选取一个频道标识分配给临时频道;将选取的频道标识对应的频道资源分配给临时频道。The processor 501 is further configured to: select one channel identifier from the plurality of channel identifiers reserved in advance to be allocated to the temporary channel; and allocate the channel resource corresponding to the selected channel identifier to the temporary channel.
处理器501,还用于检测用于监测临时频道的监控进程是否启动;如果监控进程未启动,则创建监控进程,并将临时频道的频道标识添加入监控进程的监视列表中。The processor 501 is further configured to detect whether the monitoring process for monitoring the temporary channel is started; if the monitoring process is not started, create a monitoring process, and add the channel identifier of the temporary channel to the monitoring list of the monitoring process.
本申请实施例提供的服务器,通过当服务器接收到第一用户发送的临时频道建立请求时建立临时频道并向被邀请的第二用户广播频道标识,将该第一用户和接受邀请的第二用户添加至该临时频道,使得第一用户和接受邀请的第二用户能够直接进入该临时频道而无需执行输入频道号等操作,提高了人机交互性。进一步地,该服务器通过在监测到该临时频道中的用户少于设定阈值时删除该临时频道,能够回收该临时频道占用的资源,避免了资源浪费。The server provided by the embodiment of the present application establishes a temporary channel and broadcasts a channel identifier to the invited second user when the server receives the temporary channel establishment request sent by the first user, and the first user and the second user accepting the invitation Adding to the temporary channel enables the first user and the second user accepting the invitation to directly enter the temporary channel without performing an operation such as inputting a channel number, thereby improving human-computer interaction. Further, the server can recover the resources occupied by the temporary channel by deleting the temporary channel when the user in the temporary channel is detected to be less than a set threshold, thereby avoiding waste of resources.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。A person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium. The storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.
以上所述仅为本申请的较佳实施例,并不用以限制本申请,凡在本申请的 精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。 The above description is only a preferred embodiment of the present application, and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles are intended to be included within the scope of this application.

Claims (18)

  1. 一种频道处理方法,其特征在于,所述方法包括:A channel processing method, characterized in that the method comprises:
    当接收到第一用户发送的临时频道建立请求时,建立临时频道并向被邀请的第二用户发送邀请请求;When receiving the temporary channel establishment request sent by the first user, establishing a temporary channel and sending an invitation request to the invited second user;
    将所述第一用户和接受邀请的第二用户添加至所述临时频道,所述临时频道用于所述第一用户与接受邀请的第二用户进行信息交互;Adding the first user and the second user accepting the invitation to the temporary channel, where the temporary channel is used for information interaction between the first user and the second user accepting the invitation;
    监测所述临时频道的用户流动情况,当监测到所述临时频道中的用户少于设定阈值时,删除所述临时频道。The user flow condition of the temporary channel is monitored, and when the user in the temporary channel is detected to be less than a set threshold, the temporary channel is deleted.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    接收所述第一用户发送的频道权限条件;Receiving a channel permission condition sent by the first user;
    当接收到任一第二用户发送的操作请求时,判断发送所述操作请求的第二用户是否满足所述频道权限条件,当发送所述操作请求的第二用户满足所述频道权限条件时,响应所述操作请求,当发送所述操作请求的第二用户不满足所述频道权限条件时,忽略所述操作请求;或,When receiving the operation request sent by any second user, determining whether the second user sending the operation request satisfies the channel permission condition, and when the second user sending the operation request satisfies the channel permission condition, Responding to the operation request, when the second user who sends the operation request does not satisfy the channel permission condition, the operation request is ignored; or
    当接收到任一第二用户发送的操作请求时,判断所述操作请求是否满足所述频道权限条件,当所述操作请求满足所述频道权限条件时,响应所述操作请求,当所述操作请求不满足所述频道权限条件时,忽略所述操作请求。When receiving an operation request sent by any second user, determining whether the operation request satisfies the channel permission condition, and when the operation request satisfies the channel permission condition, responding to the operation request, when the operation The operation request is ignored when the request does not satisfy the channel permission condition.
  3. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    当接收到所述临时频道中的任一用户发送的退出请求时,将发送所述退出请求的用户从所述临时频道中删除。When receiving an exit request sent by any of the temporary channels, the user who sent the exit request is deleted from the temporary channel.
  4. 根据权利要求1所述的方法,其特征在于,当接收到第一用户发送的临时频道建立请求时,建立临时频道之后,所述方法还包括:The method according to claim 1, wherein after the temporary channel establishment request sent by the first user is received, after the temporary channel is established, the method further includes:
    为所述临时频道分配频道标识和频道资源,使得所述第一用户与被邀请的第二用户能够基于所述频道资源进行信息交互,所述频道标识用于唯一确定所述临时频道。The channel identifier and the channel resource are allocated to the temporary channel, so that the first user and the invited second user can perform information interaction based on the channel resource, and the channel identifier is used to uniquely determine the temporary channel.
  5. 根据权利要求4所述的方法,其特征在于,为所述临时频道分配频道标 识和频道资源包括:The method of claim 4, wherein the temporary channel is assigned a channel label Knowledge and channel resources include:
    从预先保留的多个频道标识中选取一个频道标识分配给所述临时频道;Selecting a channel identifier from the plurality of channel identifiers reserved in advance to be allocated to the temporary channel;
    将所述选取的频道标识对应的频道资源分配给所述临时频道。Allocating a channel resource corresponding to the selected channel identifier to the temporary channel.
  6. 根据权利要求1所述的方法,其特征在于,所述监测所述临时频道的用户流动情况之前,所述方法还包括:The method according to claim 1, wherein before the monitoring of the user flow of the temporary channel, the method further comprises:
    检测用于监测临时频道的监控进程是否启动;Detecting whether the monitoring process for monitoring the temporary channel is started;
    如果所述监控进程未启动,则创建所述监控进程,并将所述临时频道的频道标识添加入所述监控进程的监视列表中。If the monitoring process is not started, the monitoring process is created, and the channel identifier of the temporary channel is added to the monitoring list of the monitoring process.
  7. 一种频道处理装置,其特征在于,所述装置包括:A channel processing device, characterized in that the device comprises:
    临时频道建立模块,用于当接收到第一用户发送的临时频道建立请求时,建立临时频道并向被邀请的第二用户发送邀请请求;a temporary channel establishing module, configured to: when receiving the temporary channel establishment request sent by the first user, establish a temporary channel and send an invitation request to the invited second user;
    添加用户模块,用于将所述第一用户和接受邀请的第二用户添加至所述临时频道,所述临时频道用于所述第一用户与接受邀请的第二用户进行信息交互;Adding a user module, configured to add the first user and a second user accepting the invitation to the temporary channel, where the temporary channel is used for information interaction between the first user and a second user accepting the invitation;
    删除频道模块,用于监测所述临时频道的用户流动情况,当监测到所述临时频道中的用户少于设定阈值时,删除所述临时频道。And deleting a channel module, configured to monitor a user flow condition of the temporary channel, and deleting the temporary channel when detecting that the user in the temporary channel is less than a set threshold.
  8. 根据权利要求7所述的装置,其特征在于,所述装置还包括:The device according to claim 7, wherein the device further comprises:
    权限条件接收模块,用于接收所述第一用户发送的频道权限条件;a permission condition receiving module, configured to receive a channel permission condition sent by the first user;
    第一权限控制模块,用于当接收到任一第二用户发送的操作请求时,判断发送所述操作请求的第二用户是否满足所述频道权限条件,当发送所述操作请求的第二用户满足所述频道权限条件时,响应所述操作请求,当发送所述操作请求的第二用户不满足所述频道权限条件时,忽略所述操作请求;或,a first authority control module, configured to: when receiving an operation request sent by any second user, determine whether the second user that sends the operation request satisfies the channel permission condition, when the second user that sends the operation request When the channel permission condition is met, in response to the operation request, when the second user who sends the operation request does not satisfy the channel permission condition, the operation request is ignored; or
    第二权限控制模块,用于当接收到任一第二用户发送的操作请求时,判断所述操作请求是否满足所述频道权限条件,当所述操作请求满足所述频道权限条件时,响应所述操作请求,当所述操作请求不满足所述频道权限条件时,忽略所述操作请求。a second authority control module, configured to: when receiving an operation request sent by any second user, determine whether the operation request satisfies the channel permission condition, and when the operation request satisfies the channel permission condition, responding to the The operation request is ignored when the operation request does not satisfy the channel permission condition.
  9. 根据权利要求7所述的装置,其特征在于,所述装置还包括:The device according to claim 7, wherein the device further comprises:
    退出模块,用于当接收到所述临时频道中的任一用户发送的退出请求时, 将发送所述退出请求的用户从所述临时频道中删除。An exit module, configured to receive an exit request sent by any one of the temporary channels, The user who sent the exit request is deleted from the temporary channel.
  10. 根据权利要求7所述的装置,其特征在于,所述装置还包括:The device according to claim 7, wherein the device further comprises:
    分配模块,用于为所述临时频道分配频道标识和频道资源,使得所述第一用户与被邀请的第二用户能够基于所述频道资源进行信息交互,所述频道标识用于唯一确定所述临时频道。An allocation module, configured to allocate a channel identifier and a channel resource to the temporary channel, so that the first user and the invited second user can perform information interaction based on the channel resource, where the channel identifier is used to uniquely determine the Temporary channel.
  11. 根据权利要求10所述的装置,其特征在于,所述分配模块包括:The device according to claim 10, wherein the distribution module comprises:
    标识选取单元,用于从预先保留的多个频道标识中选取一个频道标识分配给所述临时频道;An identifier selecting unit, configured to select one channel identifier from the plurality of channel identifiers reserved in advance to be allocated to the temporary channel;
    分配单元,用于将所述选取的频道标识对应的频道资源分配给所述临时频道。And an allocating unit, configured to allocate a channel resource corresponding to the selected channel identifier to the temporary channel.
  12. 根据权利要求7所述的装置,其特征在于,所述装置还包括:The device according to claim 7, wherein the device further comprises:
    检测模块,用于检测用于监测临时频道的监控进程是否启动;a detecting module, configured to detect whether a monitoring process for monitoring a temporary channel is started;
    创建模块,用于如果所述监控进程未启动,则创建所述监控进程;Creating a module, if the monitoring process is not started, creating the monitoring process;
    添加模块,用于将所述临时频道的频道标识添加入所述监控进程的监视列表中。And a adding module, configured to add a channel identifier of the temporary channel into a monitoring list of the monitoring process.
  13. 一种服务器,其特征在于,所述服务器包括:处理器和收发器;A server, the server comprising: a processor and a transceiver;
    所述处理器,用于当所述收发器接收到第一用户发送的临时频道建立请求时,建立临时频道并向被邀请的第二用户发送邀请请求;将所述第一用户和接受邀请的第二用户添加至所述临时频道,所述临时频道用于所述第一用户与接受邀请的第二用户进行信息交互;监测所述临时频道的用户流动情况,当监测到所述临时频道中的用户少于设定阈值时,删除所述临时频道。The processor, configured to: when the transceiver receives the temporary channel establishment request sent by the first user, establish a temporary channel and send an invitation request to the invited second user; and the first user and the accepting invitation Adding, to the temporary channel, the temporary channel is used by the first user to perform information interaction with the second user accepting the invitation; monitoring user flow of the temporary channel, when the temporary channel is detected The temporary channel is deleted when the user is less than the set threshold.
  14. 根据权利要求13所述的服务器,其特征在于,A server according to claim 13 wherein:
    所述收发器,还用于接收所述第一用户发送的频道权限条件;The transceiver is further configured to receive a channel permission condition sent by the first user;
    所述处理器,还用于当所述收发器接收到任一第二用户发送的操作请求时,判断发送所述操作请求的第二用户是否满足所述频道权限条件,当发送所述操作请求的第二用户满足所述频道权限条件时,响应所述操作请求,当发送所述 操作请求的第二用户不满足所述频道权限条件时,忽略所述操作请求;或,The processor is further configured to: when the transceiver receives an operation request sent by any second user, determine whether the second user that sends the operation request satisfies the channel permission condition, and sends the operation request Responding to the operation request when the second user satisfies the channel permission condition, when sending the If the second user of the operation request does not satisfy the channel permission condition, the operation request is ignored; or,
    所述处理器,还用于当所述收发器接收到任一第二用户发送的操作请求时,判断所述操作请求是否满足所述频道权限条件,当所述操作请求满足所述频道权限条件时,响应所述操作请求,当所述操作请求不满足所述频道权限条件时,忽略所述操作请求。The processor is further configured to: when the transceiver receives an operation request sent by any second user, determine whether the operation request satisfies the channel permission condition, when the operation request satisfies the channel permission condition And responding to the operation request, when the operation request does not satisfy the channel permission condition, the operation request is ignored.
  15. 根据权利要求13所述的服务器,其特征在于,A server according to claim 13 wherein:
    所述处理器,还用于当所述接收器接收到所述临时频道中的任一用户发送的退出请求时,将发送所述退出请求的用户从所述临时频道中删除。The processor is further configured to: when the receiver receives an exit request sent by any one of the temporary channels, delete the user that sends the exit request from the temporary channel.
  16. 根据权利要求13所述的服务器,其特征在于,A server according to claim 13 wherein:
    所述处理器,还用于为所述临时频道分配频道标识和频道资源,使得所述第一用户与被邀请的第二用户能够基于所述频道资源进行信息交互,所述频道标识用于唯一确定所述临时频道。The processor is further configured to allocate a channel identifier and a channel resource to the temporary channel, so that the first user and the invited second user can perform information interaction based on the channel resource, where the channel identifier is used for unique Determine the temporary channel.
  17. 根据权利要求16所述的服务器,其特征在于,A server according to claim 16 wherein:
    所述处理器,还用于从预先保留的多个频道标识中选取一个频道标识分配给所述临时频道;将所述选取的频道标识对应的频道资源分配给所述临时频道。The processor is further configured to: select one channel identifier from the plurality of channel identifiers reserved in advance to be allocated to the temporary channel; and allocate channel resources corresponding to the selected channel identifier to the temporary channel.
  18. 根据权利要求13所述的服务器,其特征在于,A server according to claim 13 wherein:
    所述处理器,还用于检测用于监测临时频道的监控进程是否启动;如果所述监控进程未启动,则创建所述监控进程,并将所述临时频道的频道标识添加入所述监控进程的监视列表中。 The processor is further configured to detect whether a monitoring process for monitoring a temporary channel is started; if the monitoring process is not started, create the monitoring process, and add a channel identifier of the temporary channel to the monitoring process. In the watch list.
PCT/CN2014/095706 2013-12-30 2014-12-30 Channel processing method and device WO2015101303A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310746796.0 2013-12-30
CN201310746796.0A CN103731281B (en) 2013-12-30 2013-12-30 Channel treating method and apparatus

Publications (1)

Publication Number Publication Date
WO2015101303A1 true WO2015101303A1 (en) 2015-07-09

Family

ID=50455216

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/095706 WO2015101303A1 (en) 2013-12-30 2014-12-30 Channel processing method and device

Country Status (2)

Country Link
CN (1) CN103731281B (en)
WO (1) WO2015101303A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020108378A1 (en) * 2018-11-30 2020-06-04 广州华多网络科技有限公司 Channel-based voice call method and apparatus

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103731281B (en) * 2013-12-30 2017-10-20 广州华多网络科技有限公司 Channel treating method and apparatus
CN104394430B (en) * 2014-11-20 2018-03-16 广州华多网络科技有限公司 A kind of resource transmission method and its system, service equipment based on interactive application
CN104869435A (en) * 2015-05-18 2015-08-26 无锡天脉聚源传媒科技有限公司 Broadcast card processing method and apparatus
CN105978701A (en) * 2016-05-11 2016-09-28 惠州市凯越电子有限公司 Information interaction system and method between vehicle-mounted system and self-established channel of intelligent mobile terminal
CN105898508A (en) * 2016-06-01 2016-08-24 北京奇艺世纪科技有限公司 Video synchronous sharing playing method and device
CN110213628B (en) * 2018-05-14 2022-02-18 腾讯科技(深圳)有限公司 Live broadcast room distribution method and server

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075456A (en) * 2011-02-25 2011-05-25 中国科学院计算技术研究所 Group creating and member adding method in distributed domain management system
CN103051517A (en) * 2012-12-07 2013-04-17 北京百度网讯科技有限公司 Method and system for managing chat messages of instant message temporary session group
CN103731281A (en) * 2013-12-30 2014-04-16 广州华多网络科技有限公司 Frequency channel processing method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100555972C (en) * 2007-03-30 2009-10-28 腾讯科技(深圳)有限公司 Multi-member aggregating exchanges in the Internet chatroom method, server
EP2073485B1 (en) * 2007-12-20 2018-06-13 Nokia Solutions and Networks Oy Providing a download service in communications system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075456A (en) * 2011-02-25 2011-05-25 中国科学院计算技术研究所 Group creating and member adding method in distributed domain management system
CN103051517A (en) * 2012-12-07 2013-04-17 北京百度网讯科技有限公司 Method and system for managing chat messages of instant message temporary session group
CN103731281A (en) * 2013-12-30 2014-04-16 广州华多网络科技有限公司 Frequency channel processing method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020108378A1 (en) * 2018-11-30 2020-06-04 广州华多网络科技有限公司 Channel-based voice call method and apparatus
US11272053B2 (en) 2018-11-30 2022-03-08 Guangzhou Huaduo Network Technology Co., Ltd. Channel-based voice call method and apparatus

Also Published As

Publication number Publication date
CN103731281B (en) 2017-10-20
CN103731281A (en) 2014-04-16

Similar Documents

Publication Publication Date Title
WO2015101303A1 (en) Channel processing method and device
CN111065077B (en) Bluetooth Mesh network and communication method, device and storage medium thereof
TW201947917A (en) Bluetooth mesh network and provisioning method, device and storage medium thereof capable of resolving problem of restricting coverage of Bluetooth mesh network
WO2021098138A1 (en) Operation control method and device, household electrical appliance, and storage medium
US11553021B2 (en) Media downlink transmission control method and related device
US10925112B2 (en) Method for applying for media transmission permission, and method and apparatus for canceling media transmission permission
RU2012147842A (en) METHOD FOR MANAGING CONFERENCE COMMUNICATION AND RELATED DEVICE AND SYSTEM
WO2014194869A1 (en) Request processing method, device and system
CN108235446A (en) User equipment and correlation technique
WO2016192414A1 (en) Group calling method and device in trunking communication system
WO2015096802A1 (en) Method, device, and server for message transmission
WO2021042612A1 (en) Wireless screen projection method and apparatus, device and storage medium
CN109275042A (en) A kind of distribution method, device, terminal and the storage medium of barrage message
WO2015062082A1 (en) Communication access method and user equipment
US20180027390A1 (en) Communication Method for Requesting Relay Service, Device, and System
WO2014173366A2 (en) Method, device and system for carrying out telecommunication capability group sending
WO2016119422A1 (en) Network management method, device and system
JP2017522806A (en) Allocating access for shared media output devices
EP4096328A1 (en) Network function registration method and apparatus, network function discovery method and apparatus, and device and medium
WO2012155702A1 (en) Method, system, service processing server for updating service key
CN113542150A (en) Data transmission method, device and center-end network bridge
US20140089430A1 (en) Data-sharing method, terminal, server, and system
WO2014106341A1 (en) Resource allocation method and device
WO2010130230A1 (en) Method and apparatus for providing service to user
WO2015188336A1 (en) Method and device for processing temporary mobile group identity (tmgi)

Legal Events

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

Ref document number: 14877379

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 03.11.16)

122 Ep: pct application non-entry in european phase

Ref document number: 14877379

Country of ref document: EP

Kind code of ref document: A1