WO2021135684A1 - 直播间互动方法、装置、可读介质及电子设备 - Google Patents

直播间互动方法、装置、可读介质及电子设备 Download PDF

Info

Publication number
WO2021135684A1
WO2021135684A1 PCT/CN2020/128807 CN2020128807W WO2021135684A1 WO 2021135684 A1 WO2021135684 A1 WO 2021135684A1 CN 2020128807 W CN2020128807 W CN 2020128807W WO 2021135684 A1 WO2021135684 A1 WO 2021135684A1
Authority
WO
WIPO (PCT)
Prior art keywords
gift
interactive
activity
request
live broadcast
Prior art date
Application number
PCT/CN2020/128807
Other languages
English (en)
French (fr)
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 北京字节跳动网络技术有限公司
Priority to EP20908837.6A priority Critical patent/EP4057630A4/en
Priority to JP2022535891A priority patent/JP7385041B2/ja
Priority to KR1020227019637A priority patent/KR102630423B1/ko
Priority to BR112022011652A priority patent/BR112022011652A2/pt
Publication of WO2021135684A1 publication Critical patent/WO2021135684A1/zh
Priority to US17/838,593 priority patent/US12069343B2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4307Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
    • H04N21/43079Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen of additional data with content streams on multiple devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • H04N21/4316Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations for displaying supplemental content in a region of the screen, e.g. an advertisement in a separate window
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4784Supplemental services, e.g. displaying phone caller identification, shopping application receiving rewards
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8146Monomedia components thereof involving graphical data, e.g. 3D object, 2D graphics

Definitions

  • the present disclosure relates to the field of live broadcasting, and more specifically, to an interactive method, device, readable medium, and electronic equipment in a live broadcast room.
  • the purpose of the present disclosure is to provide an interactive method, device, readable medium, and electronic equipment in a live broadcast room, which determine the duration of the interactive activity when receiving an interactive start request sent by any client in the live broadcast room, and determine the duration of the interactive activity.
  • the interactive information received during the period is sent to all clients in the live broadcast room, and the interactive activities that all viewers in the live broadcast room can participate in can be opened in the live broadcast room.
  • the activity time of the interactive activity is controlled, it can be passed
  • the method of sending the server time to all clients in the live broadcast room ensures that the start time of the interactive activities participated by all client audiences in the live broadcast room is the same, thereby ensuring the accuracy of the activity data in the interactive activities.
  • the present disclosure provides a method for interaction between live broadcasts, which is applied to a server, and the method includes:
  • the receiving an interaction start request for starting an interactive activity sent by any client in the live broadcast room includes:
  • the first gift-giving request is determined as the interaction start request of an interactive activity corresponding to the gift type.
  • the first gift request is determined as the interactive activity corresponding to the gift type Further, the user can directly start the interactive activity in the live broadcast room through the gift-giving operation, and the gift information in the gift-giving operation can be directly determined as the interactive information in the interactive activity, which further facilitates the live broadcast room Of users start an interactive activity in the live broadcast room.
  • the interactive information includes a second gift request whose gift type is a second preset type.
  • the method further includes :
  • the sending the interactive information to all clients in the live broadcast room includes:
  • the interactivity of the interactive event in the live broadcast room is further improved.
  • the method further includes:
  • the operation corresponding to the activity skill can be executed, so that when the second gift request is received, the included Determine whether the gift type of the gift has a corresponding activity skill, and perform a corresponding operation on the current interactive activity in response to the activity skill.
  • an ordinary gift-giving request is received, that is, when the gift type of the gift included in the gift-giving request does not belong to the second preset type, this judgment is not made, so that the server load can be reduced to a certain extent.
  • a live room interactive device which includes:
  • the receiving module is used to receive an interactive start request for starting an interactive activity sent by any client in the live broadcast room;
  • the first processing module is configured to determine the interaction activity duration corresponding to the interaction start request
  • the second processing module is configured to determine the start time of the interactive activity and the end time of the interactive activity according to the duration of the interactive activity, and send the start time of the interactive activity, the end time of the interactive activity and the end time of the interactive activity to all clients in the live broadcast room Server current time;
  • the third processing module is configured to receive interactive information sent by all clients in the live broadcast room during the interactive event from the start time of the interactive event to the end time of the interactive event, and send the interactive information to the live broadcast All clients in the room.
  • the receiving module includes:
  • the first receiving submodule is configured to receive a first gift request sent by any client in the live broadcast room, and the first gift request includes the type of gift sent by the client to the host and the gift The number of gifts corresponding to the type;
  • the first processing sub-module is configured to determine the first gift-giving request as an interactive activity corresponding to the gift type when the gift type included in the first gift-giving request is a first preset type Of said interaction start request.
  • the interactive information includes a second gift request whose gift type is a second preset type.
  • the device further includes :
  • a fourth processing module configured to determine the length of the solitaire corresponding to the second gift request according to the gift type included in the second gift request and the number of gifts corresponding to the gift type;
  • a fifth processing module configured to determine the sum of the length of the solitaire corresponding to all the second gift-giving requests that have been received during the interactive activity as the total length of the solitaire accumulated during the interactive activity;
  • the third processing module is further configured to send the total length of the solitaire to all clients in the live broadcast room.
  • the apparatus further includes:
  • the sixth processing module is configured to perform an operation corresponding to the activity skill when it is determined that the gift type of the gift included in the second gift-giving request has a corresponding activity skill.
  • the present disclosure provides an electronic device including a processor and a memory; wherein,
  • the memory is used to store program code
  • the processor is configured to call the degree code stored in the memory to execute the method described in the first aspect.
  • the present disclosure provides a computer-readable storage medium, characterized in that instructions are stored in the computer-readable storage medium, and when the instructions are run on a computer, the computer executes the instructions described in the first aspect. method.
  • the present disclosure provides a computer program characterized by comprising program code, and when the computer runs the computer program, the program code executes the method described in the first aspect.
  • the present disclosure can open an interactive event in the live room that all viewers in the live room can participate in, and when controlling the activity time of the interactive event, it can download to all clients in the live room.
  • the time of the server is sent to ensure that the start time of the interactive activities participated by all client audiences in the live broadcast room is the same, thereby ensuring the accuracy of the activity data in the interactive activities.
  • the first gift request is determined to correspond to the gift type
  • the interactive start request of the interactive activity further enables the user to directly start the interactive activity in the live broadcast room through the gift-giving operation, and the gift-giving information in the gift-giving operation can be directly determined as the interactive information in the interactive activity, which further facilitates the live broadcast
  • the user in the room opens the interactive activity in the live room.
  • Fig. 1 is a flowchart showing a method for interaction between live broadcasts according to an exemplary embodiment of the present disclosure.
  • Fig. 2a shows a display interface of a live broadcast room when a user sends an interaction start request according to an exemplary embodiment of the present disclosure.
  • Fig. 2b shows another display interface of the live room when a user sends an interaction start request according to an exemplary embodiment of the present disclosure.
  • Fig. 3 is a flowchart showing a method for interaction between live broadcasts according to another exemplary embodiment of the present disclosure.
  • Fig. 4 is a schematic diagram showing the content of interactive activities in a live broadcast room according to an exemplary embodiment of the present disclosure.
  • Fig. 5 is a flow chart showing a method for interacting in a live room when the interactive activity is a gift solitaire according to another exemplary embodiment of the present disclosure.
  • Fig. 6 is a structural block diagram of a device for interacting in a live broadcast room according to an exemplary embodiment of the present disclosure.
  • Fig. 7 shows a schematic structural diagram of an electronic device suitable for implementing embodiments of the present disclosure.
  • Fig. 1 is a flow chart showing a method for interaction between live broadcasts according to an exemplary embodiment of the present disclosure. The method is applied to a server. As shown in Fig. 1, the method includes steps 101 to 104.
  • an interactive start request for starting an interactive activity sent by any client in the live broadcast room is received.
  • the interaction start request may be that the user clicks a preset interactive activity in the client to start a virtual button, or may also be a gift corresponding to the preset interactive activity to send the interaction start request. For example, as shown in Figure 2a and Figure 2b.
  • Fig. 2a shows a live room display interface when a user sends the interaction start request according to an exemplary embodiment of the present disclosure.
  • the top of Figure 2a can display the host’s avatar 1 and the name of the host, and the bottom can display a list of gifts that can be sent.
  • the gift list consists of multiple gift columns 4, and the live screen display area 3 is used to display the current live screen.
  • the live screen display area 3 may also include an area for displaying the gift list. When the gift list is displayed, the gift list The live screen display area 3 is partially blocked.
  • the gift column 4 may also include a gift reminder box 5, covering a corner of the gift column 4, for prompting whether the gifts in the gift column 4 can trigger interactive activities, and the gifts in the gift column 4 are triggered after being sent Interactive activities.
  • the gift reminder box 5 may display “accept” to remind the user that the gift can start an interactive activity of gift solitaire after the gift is sent.
  • the reminder bar 6 and the reminder bar 7 can be used to display instructions for some gifts or other message reminders about the live room and the user itself.
  • the reminder bar 6 is a reminder area covering the display area 3 of the live broadcast screen. If the prompt content is not displayed in the prompt column 6, the live screen display area 3 will not be covered.
  • the gift description can be displayed in the prompt column 6 or the prompt column 7, or it can be overlaid on the live broadcast.
  • the other area on the screen display 3 is not limited to the prompt column 6.
  • the display interface of the live broadcast room may also include a recharge key 8 for the user to recharge.
  • the user can click any gift box 5 with a gift box 5, and the gift box 5 prompts that the gift is a gift box 4 corresponding to a gift that can start an interactive activity. And send the gift in the gift column 4 to send out the interaction start request.
  • Fig. 2b shows another display interface of the live room when the user sends the interaction start request according to an exemplary embodiment of the present disclosure.
  • the top of FIG. 2b may also display the host avatar 1 and the host name 2 of the live broadcast room, and the live content in the live broadcast room is displayed in the live screen display area 3.
  • Below the live screen display area 3 can also include a chat content input box 9 for the user to enter the chat content in the live room that can be viewed by all viewers in the live room.
  • the right side of the chat content input box 9 can also include one or Multiple function items 10, each of which can correspond to different live room functions, for example, a function item 10 can be set to correspond to a gift list, and the user can display the gifts that can be sent in the current live room by clicking on the function item 10
  • a function item 10 can be set to correspond to a gift list
  • the user can share the current live room by clicking the function item 10.
  • you can also set a function item 10 pairs Should the interaction start request be sent, the user can send the interaction start request to the server when clicking on the function item 10, so as to start the interactive activity corresponding to the interaction start request in the current live broadcast room.
  • the present disclosure does not limit whether the interaction start request received by the server is specifically sent by what kind of operation the user performs on the client.
  • the above two methods for the user to send the interaction start request on the client are only examples.
  • the duration of the interaction activity corresponding to the interaction start request is determined. No matter how the user sends the interaction start request to the server, after receiving the interaction start request, the server will determine the interaction activity duration corresponding to the interaction start request. For example, if the interactive start request corresponds to interactive activity A, after receiving the interactive start request, the interactive activity duration corresponding to interactive activity A is determined. If the interactive start request corresponds to interactive activity B, the interactive activity duration corresponding to interactive activity B is determined after the interactive start request is received, and the specific interactive activity corresponding to the interactive start request is included in the interactive start request inside, after receiving the interactive start request, the server can determine the interactive activity according to the request, and then determine the duration of the interactive activity. The foregoing interactive activity duration may be set in the server, or may be obtained by the server from other devices according to the interactive activity corresponding to the interactive start request after receiving the interactive start request.
  • step 103 the interactive activity start time and the interactive activity end time are determined according to the interactive activity duration, and the interactive activity start time, the interactive activity end time, and the server current time are sent to all clients in the live broadcast room.
  • the start time of the interactive activity and the end time of the interactive activity are all determined according to the time in the server. For example, if the time when the interactive start request is received is the server time on December 2, 2019 16:12:05, the duration of the interactive activity is 50s, and the server can start timing the interactive activity 5s after receiving the interactive start request according to the conventional setting, then the start time of the interactive activity can be determined to be December 2019 At 16:12:10 on the 2nd, the end time of this interactive activity is 16:13:00 on the 2nd of December 2019.
  • the current time of the server, the start time of the interactive activity and the end time of the interactive activity determined according to the server's time are sent to the client together. In this way, the client can judge when the interactive activity should actually start and end according to the received server current time, thereby avoiding the difference in the interactive activity time displayed on different clients caused by the time difference of different clients .
  • the time of a client in the live room is 5 seconds slower than that of the server
  • the start time and end time of the interactive activity are sent to the client
  • the time of the interactive activity displayed in the client The information will be 5s slower than that in the server.
  • the duration of the interactive activity is displayed in a countdown manner in the client, it will cause the client to display that the interactive activity has 5 seconds to end, and the server has actually ended.
  • the interactive operation performed by the user of the client within the last 5 seconds displayed by the client will not be recognized by the server as an interactive operation during the interactive activity.
  • step 104 during the interactive event period from the start time of the interactive event to the end time of the interactive event, the interactive information sent by all the clients in the live broadcast room is received, and the interactive information is sent to all the clients in the live broadcast room.
  • interactive activities in which all viewers in the live room can participate can be opened in the live broadcast room.
  • the server can be issued to all clients in the live broadcast room.
  • the method of time to ensure that the start time of the interactive activities participated by all client audiences in the live broadcast room is the same, thereby ensuring the accuracy of the activity data in the interactive activities.
  • Fig. 3 is a flowchart showing a method for interaction between live broadcasts according to another exemplary embodiment of the present disclosure. As shown in FIG. 3, the method includes step 301 and step 302 in addition to step 102 to step 104 shown in FIG.
  • a first gift request sent by any client in the live broadcast room is received.
  • the first gift request includes the gift type sent by the client to the anchor and the number of gifts corresponding to the gift type.
  • the first gift-giving request is determined as an interactive start request of an interactive activity corresponding to the gift type.
  • the above steps 301 and 302 can be regarded as the steps of sending the interaction start request through the display interface of the live broadcast room as shown in FIG. 2a.
  • the server After the user performs a gift-giving operation on a gift marked as capable of triggering an interactive activity, the server will receive the first gift-giving request, and the gift-giving request may include the gift type and the number of gifts corresponding to the gift type.
  • the first preset type is the gift type corresponding to the interactive activity.
  • the gifts belonging to the first preset type can be one or more types, and when there are multiple interactive activities, they belong to the first preset Various types of gifts can also correspond to different interactive activities.
  • the server After the server receives the gift request, if it determines that the gift type belongs to the first preset type, that is, the gift type corresponding to the interactive activity, then the first gift request is determined as the interaction start request, and the The gift type in the first gift-giving request determines the corresponding interactive activity, thereby determining the duration of the interactive activity.
  • the gift-giving information included in the first gift-giving request can also be sent to all clients in the live broadcast room as the interactive information in the interactive activity.
  • the user sends 10 gifts A to the host through a regular gift giving operation.
  • the gift giving operation is sent to the server as the first gift request, and the server receives the first gift.
  • the first gift request it is determined that the type of gift A included in it belongs to the first preset type, then the first gift request is determined as an interactive start request, and then the interactive activity duration of the gift solitaire activity is determined, based on The start time of the interactive activity, the end time of the interactive activity, and the current time of the server determined by the duration of the gift solitaire are sent to all clients in the live broadcast room.
  • the client in the live broadcast room can display the interactive activity in the current live display interface according to preset settings, as shown in Figure 4 Shown.
  • an interactive activity content display bar 11 is set to display the interactive activity, in which the name, icon, countdown, real-time interactive progress, etc. of the interactive activity can be displayed.
  • the server sends the interactive activity start time, interactive activity end time, and server current time to the client in the live broadcast room, it will also send the gift information included in the first gift request as interactive information in the interactive activity to the live broadcast All clients in the time, that is, the gift type included in the first gift request and the number of gifts corresponding to the gift type.
  • the user can directly start the interactive event in the live broadcast room through the gift giving operation, and the gift information in the gift giving operation can be directly determined as the interactive information in the interactive event, which further facilitates the user in the live broadcast room to start the live broadcast Interaction in time.
  • Fig. 5 is a flow chart showing a method for interacting in a live room when the interactive activity is a gift solitaire according to another exemplary embodiment of the present disclosure.
  • the interactive information includes a second gift request whose gift type is a second preset type.
  • the method except that shown in FIG. 1
  • it also includes step 501 to step 504.
  • step 501 during the interactive event period from the start time of the interactive event to the end time of the interactive event, interactive information sent by all clients in the live broadcast room is received, and the interactive information includes a second gift request whose gift type is a second preset type.
  • the second preset type has the same meaning as the first preset type, and both are gift types corresponding to interactive activities.
  • step 501 may also be: during the interactive activity period from the start time of the interactive activity to the end time of the interactive activity, receiving the gift types sent from all clients in the live broadcast room is the first A second gift request of a preset type. That is, during the interactive activity, the gift-giving request for gifts related to the interactive activity is received.
  • step 502 when the second gift-giving request is received during the interactive activity, the length of the solitaire corresponding to the second gift-giving request is determined according to the gift type included in the second gift-giving request and the number of gifts corresponding to the gift type.
  • the interactive activity is a gift solitaire
  • the length of the solitaire that should be increased in the interactive activity is determined according to the gift-giving request.
  • the length of the solitaire that can be increased for each gift can be determined according to the value corresponding to the gift, or the length of the solitaire corresponding to each gift can be preset, and when a gift request related to the gift is received, directly The length of the solitaire corresponding to the gift request is determined according to the length of the solitaire corresponding to the gift included in the gift request.
  • the gift type included in the second gift request may be gift B
  • the number of gifts corresponding to gift B included in the second gift request is 10
  • the length of the solitaire corresponding to gift B is 2, then The length of the solitaire corresponding to the second gift request is 20.
  • step 503 the sum of the length of the solitaire corresponding to all the second gift-giving requests that have been received during the interactive activity is determined as the total length of the solitaire accumulated during the interactive activity.
  • step 504 the total length of the solitaire is sent to all clients in the live broadcast room.
  • the server will accumulate the length of the solitaire corresponding to the second gift request received from all clients during the interactive event, and update the total length of the solitaire every time a second gift request is received and send it to this All clients in the live broadcast room can display the total length of the solitaire.
  • the client can display the total length of the solitaire in the interactive activity content display column 11 as shown in FIG. 4.
  • the method further includes: in the case of determining that the gift type of the gift contained in the second gift-giving request has a corresponding activity skill, Perform operations corresponding to activity skills.
  • the activity skill can be, for example, extending the duration of the interactive activity for a period of time, or doubling the length of the solitaire increased in a period of time. Among them, the effect of extending the duration of the interactive activity may also be to freeze the countdown time of the current interactive activity for a period of time.
  • the server Upon receiving the second gift-giving request, the server will determine whether the gift type of the gift included therein has a corresponding activity skill, and perform a corresponding operation on the current interactive activity in response to the activity skill. However, when an ordinary gift-giving request is received, that is, when the gift type of the gift included in the gift-giving request does not belong to the second preset type, this judgment is not made, so that the server load can be reduced to a certain extent.
  • the activity skills corresponding to the gift type can be preset, and the activity skills corresponding to each gift type can be displayed on the gift-giving interface of the client, as shown in Figure 2a, the activity skills corresponding to the gift type can be selected by the user After the gift column, it is displayed in the prompt column 7 or the prompt column 6.
  • Fig. 6 is a flow chart of an interactive device 100 for a live broadcast room according to an exemplary embodiment of the present disclosure.
  • the device 100 includes: a receiving module 110 for receiving an interactive start request for starting an interactive activity sent by any client in the live broadcast room; a first processing module 120 for determining The interactive activity duration corresponding to the interactive start request; the second processing module 130 is used to determine the interactive activity start time and the interactive activity end time according to the interactive activity duration, and send the interactive activity start time and interaction to all clients in the live broadcast room The end time of the event and the current time of the server; the third processing module 140 is used to receive the interactive information sent by all clients in the live broadcast room during the interactive event from the start time of the interactive event to the end time of the interactive event, and send the interactive information to the live broadcast room All clients in.
  • interactive activities in which all viewers in the live room can participate can be opened in the live broadcast room.
  • the server can be issued to all clients in the live broadcast room.
  • the method of time to ensure that the start time of the interactive activities participated by all client audiences in the live broadcast room is the same, thereby ensuring the accuracy of the activity data in the interactive activities.
  • the receiving module 110 includes: a first receiving submodule, configured to receive a first gift request sent by any client in the live broadcast room, and the first gift request includes a gift sent by the client to the host Type and the number of gifts corresponding to the gift type; the first processing sub-module is used to determine the first gift request as corresponding to the gift type when the gift type included in the first gift request is the first preset type Interactive start request for interactive activity.
  • the interactive information includes a second gift request whose gift type is a second preset type.
  • the apparatus 100 further includes: fourth processing The module is used to determine the length of the solitaire corresponding to the second gift request according to the gift type included in the second gift request and the number of gifts corresponding to it; the fifth processing module is used to process all the second gifts that have been received during the interactive activity.
  • the sum of the length of the solitaire corresponding to the gift-giving request is determined as the total length of the solitaire accumulated during the interactive activity; the third processing module is also used to send the total length of the solitaire to all clients in the live broadcast room.
  • the device further includes: a sixth processing module for determining that the gift type of the gift contained in the second gift-giving request corresponds to In the case of the activity skill, perform the operation corresponding to the activity skill.
  • Terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle-mounted terminals (e.g. Mobile terminals such as car navigation terminals) and fixed terminals such as digital TVs, desktop computers, etc.
  • the electronic device shown in FIG. 7 is only an example, and should not bring any limitation to the function and scope of use of the embodiments of the present disclosure.
  • the electronic device 700 may include a processing device (such as a central processing unit, a graphics processor, etc.) 701, which may be loaded into a random access device according to a program stored in a read-only memory (ROM) 702 or from a storage device 708.
  • the program in the memory (RAM) 703 executes various appropriate actions and processing.
  • various programs and data required for the operation of the electronic device 700 are also stored.
  • the processing device 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704.
  • An input/output (I/O) interface 705 is also connected to the bus 704.
  • the following devices can be connected to the I/O interface 705: including input devices 706 such as touch screens, touch pads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; including, for example, liquid crystal displays (LCD), speakers, vibrations
  • input devices 706 such as touch screens, touch pads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.
  • LCD liquid crystal displays
  • An output device 707 such as a device
  • a storage device 708 such as a magnetic tape, a hard disk, etc.
  • the communication device 709 may allow the electronic device 700 to perform wireless or wired communication with other devices to exchange data.
  • FIG. 7 shows an electronic device 700 having various devices, it should be understood that it is not required to implement or have all of the illustrated devices. It may be implemented alternatively or provided with more or fewer devices.
  • an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer readable medium, and the computer program contains program code for executing the method shown in the flowchart.
  • the computer program may be downloaded and installed from the network through the communication device 709, or installed from the storage device 708, or installed from the ROM 702.
  • the processing device 701 the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
  • the above-mentioned computer-readable medium in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two.
  • the computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or a combination of any of the above.
  • Computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable removable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in a baseband or as a part of a carrier wave, and a computer-readable program code is carried therein.
  • This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium.
  • the computer-readable signal medium may send, propagate, or transmit the program for use by or in combination with the instruction execution system, apparatus, or device .
  • the program code contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to: wire, optical cable, RF (Radio Frequency), etc., or any suitable combination of the above.
  • the client and server can communicate with any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and can communicate with digital data in any form or medium.
  • Communication e.g., communication network
  • Examples of communication networks include local area networks (“LAN”), wide area networks (“WAN”), the Internet (for example, the Internet), and end-to-end networks (for example, ad hoc end-to-end networks), as well as any currently known or future research and development network of.
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or it may exist alone without being assembled into the electronic device.
  • the above-mentioned computer-readable medium carries one or more programs.
  • the electronic device Receives the start of interaction for starting the interactive activity sent by any client in the live broadcast room Request; determine the interactive activity duration corresponding to the interactive start request; determine the interactive activity start time and interactive activity end time according to the interactive activity duration, and send the interactive activity start time, interactive activity end time and server to all clients in the live broadcast room Current time; during the interactive event from the start time of the interactive event to the end time of the interactive event, the interactive information sent by all the clients in the live room is received, and the interactive information is sent to all the clients in the live room.
  • the computer program code used to perform the operations of the present disclosure can be written in one or more programming languages or a combination thereof.
  • the above-mentioned programming languages include but are not limited to object-oriented programming languages such as Java, Smalltalk, C++, and Including conventional procedural programming languages-such as "C" language or similar programming languages.
  • the program code can be executed entirely on the user's computer, partly on the user's computer, executed as an independent software package, partly on the user's computer and partly executed on a remote computer, or entirely executed on the remote computer or server.
  • the remote computer can be connected to the user’s computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to Connect via the Internet).
  • LAN local area network
  • WAN wide area network
  • each block in the flowchart or block diagram may represent a module, program segment, or part of code, and the module, program segment, or part of code contains one or more for realizing the specified logical function Executable instructions.
  • the functions marked in the block may also occur in a different order from the order marked in the drawings. For example, two blocks shown one after another can actually be executed substantially in parallel, and they can sometimes be executed in the reverse order, depending on the functions involved.
  • each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart can be implemented by a dedicated hardware-based system that performs the specified functions or operations Or it can be realized by a combination of dedicated hardware and computer instructions.
  • the modules involved in the embodiments described in the present disclosure can be implemented in software or hardware.
  • the name of the module does not constitute a limitation on the module itself under certain circumstances.
  • the receiving module can also be described as “receiving an interactive start request sent by any client in the live broadcast room to start an interactive activity. Module”.
  • exemplary types of hardware logic components include: Field Programmable Gate Array (FPGA), Application Specific Integrated Circuit (ASIC), Application Specific Standard Product (ASSP), System on Chip (SOC), Complex Programmable Logical device (CPLD) and so on.
  • FPGA Field Programmable Gate Array
  • ASIC Application Specific Integrated Circuit
  • ASSP Application Specific Standard Product
  • SOC System on Chip
  • CPLD Complex Programmable Logical device
  • a machine-readable medium may be a tangible medium, which may contain or store a program for use by the instruction execution system, apparatus, or device or in combination with the instruction execution system, apparatus, or device.
  • the machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • the machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing.
  • machine-readable storage media would include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • RAM random access memory
  • ROM read-only memory
  • EPROM or flash memory erasable programmable read-only memory
  • CD-ROM compact disk read-only memory
  • magnetic storage device or any suitable combination of the above.
  • Example 1 provides a method of interaction between live broadcasts, which is applied to a server, and the method includes:
  • Example 2 provides the method of Example 1.
  • the receiving an interactive start request for starting an interactive activity sent by any client in the live broadcast room includes:
  • the first gift-giving request is determined as the interaction start request of an interactive activity corresponding to the gift type.
  • Example 3 provides the method of Example 1 or Example 2, and the interactive information is a second gift request including a gift type of a second preset type, and during the interactive activity In the case of receiving the second gift-giving request, the method further includes:
  • the sending the interactive information to all clients in the live broadcast room includes:
  • Example 4 provides the method of Example 3. In a case where the second gift-giving request is received during the interactive activity, the method further includes:
  • Example 5 provides a live room interactive device, which is applied to a server, and the device includes:
  • the receiving module is used to receive an interactive start request for starting an interactive activity sent by any client in the live broadcast room;
  • the first processing module is configured to determine the interaction activity duration corresponding to the interaction start request
  • the second processing module is configured to determine the start time of the interactive activity and the end time of the interactive activity according to the duration of the interactive activity, and send the start time of the interactive activity, the end time of the interactive activity, and the end time of the interactive activity to all clients in the live broadcast room. Server current time;
  • the third processing module is configured to receive interactive information sent by all clients in the live broadcast room during the interactive event from the start time of the interactive event to the end time of the interactive event, and send the interactive information to the live broadcast All clients in the room.
  • Example 6 provides the apparatus of Example 5, and the receiving module includes:
  • the first receiving submodule is configured to receive a first gift request sent by any client in the live broadcast room, and the first gift request includes the type of gift sent by the client to the host and the gift The number of gifts corresponding to the type;
  • the first processing sub-module is configured to determine the first gift-giving request as an interactive activity corresponding to the gift type when the gift type included in the first gift-giving request is a first preset type Of said interaction start request.
  • Example 7 provides the device of Example 5 or Example 6, and the interactive information is a second gift request including a gift type of a second preset type, and during the interactive activity
  • the device further includes:
  • a fourth processing module configured to determine the length of the solitaire corresponding to the second gift request according to the gift type included in the second gift request and the number of gifts corresponding to the gift type;
  • a fifth processing module configured to determine the sum of the length of the solitaire corresponding to all the second gift-giving requests that have been received during the interactive activity as the total length of the solitaire accumulated during the interactive activity;
  • the third processing module is further configured to send the total length of the solitaire to all clients in the live broadcast room.
  • Example 8 provides the device of Example 7, and in a case in which the second gift-giving request is received during the interactive activity, the device further includes:
  • the sixth processing module is configured to perform an operation corresponding to the activity skill when it is determined that the gift type of the gift included in the second gift-giving request has a corresponding activity skill.
  • Example 9 provides a computer-readable medium having a computer program stored thereon, and when the program is executed by a processing device, the steps of the method described in any one of Examples 1-4 are implemented. .
  • Example 10 provides an electronic device, including: a storage device on which a computer program is stored; and a processing device for executing the computer program in the storage device to Implement the steps of the method described in any one of Examples 1-4.
  • a computer program including program code, and when the computer runs the computer program, the program code executes the steps of the method described in any one of Examples 1-4 .

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Computer Graphics (AREA)
  • Information Transfer Between Computers (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本公开涉及一种直播间互动方法、装置、可读介质及电子设备,包括:接收客户端发送的互动开始请求;确定与互动开始请求对应的互动活动持续时间;根据互动活动持续时间确定互动活动开始时间和互动活动结束时间,并向直播间的所有客户端发送互动活动开始时间、互动活动结束时间和服务器当前时间;在互动活动期间接收直播间中所有客户端发送的互动信息,并将互动信息发送至直播间中的所有客户端。这样,能够在直播间中开启所有观众都能够参与的互动活动,且在对该互动活动的活动时间进行控制时,能够通过下发服务器的时间的方式来确保直播间中所有客户端观众所参与的互动活动的起始时间的相同,保障了活动数据的准确性。

Description

直播间互动方法、装置、可读介质及电子设备
本公开要求于2020年01月03日提交中国专利局、申请号为202010006089.8、申请名称为“直播间互动方法、装置、可读介质及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。
技术领域
本公开涉及直播领域,更为具体地,涉及一种直播间互动方法、装置、可读介质及电子设备。
背景技术
在现有技术中,观众在直播间中观看直播时能够与直播间中的主播进行的互动方式有多种,例如关注、送礼、点赞等,而直播间内的观众之间互动方式较为单调,目前还仅限于在文字上的聊天互动,没有其他的互动方式。
发明内容
本公开的目的在于提供一种直播间互动方法、装置、可读介质及电子设备,通过在接收到直播间中任一客户端发送的互动开始请求时,确定互动活动持续时间,并将互动活动期间内接收到的互动信息发送至直播间中的所有客户端,可以在直播间中开启所有直播间观众都能够参与的互动活动,而且,在对该互动活动的活动时间进行控制时,能够通过向直播间中的所有客户端都下发服务器的时间的方式来确保直播间中所有客户端观众所参与的互动活动的起始时间的相同,从而保障了互动活动中活动数据的准确性。
第一方面,本公开提供了一种直播间互动方法,应用于服务器,所述方法包括:
接收直播间中任一客户端发送的用于开启互动活动的互动开始请求;
确定与所述互动开始请求对应的互动活动持续时间;
根据所述互动活动持续时间确定互动活动开始时间和互动活动结束时间,并向所述直播间的所有客户端发送所述互动活动开始时间、所述互动活动结束时间和服务器当前时间;
在所述互动活动开始时间至所述互动活动结束时间的互动活动期间接收所述直播间中所有客户端发送的互动信息,并将所述互动信息发送至所述直播间中的所有客户端。
基于上述技术内容,能够在直播间中开启所有直播间观众都能够参与的互动活动,而且,在对该互动活动的活动时间进行控制时,能够通过向直播间中的所有客户端都下发服务器的时间的方式来确保直播间中所有客户端观众所参与的互动活动的起始时间的相同,从而保障了互动活动中活动数据的准确性。
在一个实现方式中,所述接收直播间中任一客户端发送的用于开启互动活动的互动开始请求包括:
接收所述直播间中任一客户端发送的第一送礼请求,所述第一送礼请求中包括所述客户端向所述主播送出的礼物类型以及与所述礼物类型对应的礼物数量;
在所述第一送礼请求中包括的所述礼物类型为第一预设类型的情况下,将所述第一送礼请求确定为与所述礼物类型对应的互动活动的所述互动开始请求。
通过在直播间中任一客户端发送的第一送礼请求中包括的客户端向主播送出的礼物类型为第一预设类型的情况下,将第一送礼请求确定为与礼物类型对应的互动活动的互动开始请求,进一步的,使得用户能够直接通过送礼操作来开启直播间中的互动活动,且该送礼操作中的送礼信息可以被直接确定为互动活动中的互动信息,进一步便捷了直播间中的用户开启直播间中的互动活动。
在一个实现方式中,所述互动信息为包括的礼物类型为第二预设类型的第二送礼请求,在所述互动活动期间接收到所述第二送礼请求的情况下,所述方法还包括:
根据所述第二送礼请求中包括的礼物类型以及与其对应的礼物数量确定与所述第二送礼请求对应的接龙长度;
将在所述互动活动期间已接收到的所有所述第二送礼请求对应的接龙长度之和确定为所述互动活动期间累积的接龙总长度;
所述将所述互动信息发送至所述直播间中的所有客户端包括:
将所述接龙总长度发送至所述直播间中的所有客户端。
通过确定互动活动期间累积的接龙总长度,并发送至直播间中的所有客户端,进一步的,提高了直播间互动活动的交互性。
在一个实现方式中,在所述互动活动期间接收到所述第二送礼请求的情况下,所述方法还包括:
在判定所述第二送礼请求中所包含的礼物的礼物类型有对应的活动技能的情况下,执行与所述活动技能对应的操作。
通过在判定第二送礼请求中所包含的礼物的礼物类型有对应的活动技能的情况下,执行与活动技能对应的操作,能够在接收到该第二送礼请求的情况下,对其中所包括的礼物的礼物类型是否有对应的活动技能进行判断,并响应于该活动技能对当前的互动活动执行相应的操作。但在接收到普通的送礼请求时,即该送礼请求中所包括的礼物的礼物类型不属于该第二预设类型时,不做此判断,从而能够在一定程度上减轻服务器负载。
第二方面,本公开提供了一种直播间互动装置,所述装置包括:
接收模块,用于接收直播间中任一客户端发送的用于开启互动活动的互动开始请求;
第一处理模块,用于确定与所述互动开始请求对应的互动活动持续时间;
第二处理模块,用于根据所述互动活动持续时间确定互动活动开始时间和互动活动结束时间,并向所述直播间的所有客户端发送所述互动活动开始时间、所述互动活动结束时间和服务器当前时间;
第三处理模块,用于在所述互动活动开始时间至所述互动活动结束时间的互动活动期间接收所述直播间中所有客户端发送的互动信息,并将所述互动信息发送至所述直播间中的所有客户端。
在一个实现方式中,所述接收模块包括:
第一接收子模块,用于接收所述直播间中任一客户端发送的第一送礼请求,所述第一送礼请求中包括所述客户端向所述主播送出的礼物类型以及与所述礼物类型对应的礼物数量;
第一处理子模块,用于在所述第一送礼请求中包括的所述礼物类型为第一预设类型的情况下,将所述第一送礼请求确定为与所述礼物类型对应的互动活动的所述互动开始请求。
在一个实现方式中,所述互动信息为包括的礼物类型为第二预设类型的第二送礼请求,在所述互动活动期间接收到所述第二送礼请求的情况下,所述装置还包括:
第四处理模块,用于根据所述第二送礼请求中包括的礼物类型以及与其对应的礼物数量确定与所述第二送礼请求对应的接龙长度;
第五处理模块,用于将在所述互动活动期间已接收到的所有所述第二送礼请求对应的接龙长度之和确定为所述互动活动期间累积的接龙总长度;
所述第三处理模块还用于将所述接龙总长度发送至所述直播间中的所有客户端。
在一个实现方式中,在所述互动活动期间接收到所述第二送礼请求的情况下,所述装置还包括:
第六处理模块,用于在判定所述第二送礼请求中所包含的礼物的礼物类型有对应的活动技能的情况下,执行与所述活动技能对应的操作。
第三方面,本公开提供了一种电子设备,包括处理器和存储器;其中,
所述存储器,用于存储程序代码;
所述处理器,用于调用所述存储器中所存储的程度代码,执行第一方面所述的方法。
第四方面,本公开提供了一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当该指令在计算机上运行时,使得计算机执行第一方面所述的方法。
第五方面,本公开提供了一种计算机程序,其特征在于,包括程序代码,当计算机运行所述计算机程序时,所述程序代码执行第一方面所述的方法。
结合上述技术方案,本公开能够在直播间中开启所有直播间观众都能够参与的互动活动,而且,在对该互动活动的活动时间进行控制时,能够通过向直播间中的所有客户端都下发服务器的时间的方式来确保直播间中所有客户端观众所参与的互动活动的起始时间的相同,从而保障了互动活动中活动数据的准确性。
另外,通过在直播间中任一客户端发送的第一送礼请求中包括的客户端向主播送出的礼物类型为第一预设类型的情况下,将第一送礼请求确定为与礼物类型对应的互动活动的互动开始请求,进一步的,使得用户能够直接通过送礼操作来开启直播间中的互动活动,且该送礼操作中的送礼信息可以被直接确定为互动活动中的互动信息,进一步便捷了直播间中的用户开启直播间中的互动活动。
此外,通过在判定第二送礼请求中所包含的礼物的礼物类型有对应的活动技能的情况下,执行与活动技能对应的操作,能够在接收到该第二送礼请求的情况下,对其中所包括的礼物的礼物类型是否有对应的活动技能进行判断,并响应于该活动技能对当前的互动活动执行相应的操作。但在接收到普通的送礼请求时,即该送礼请求中所包括的礼物的礼物类型不属于该第二预设类型时,不做此判断,从而能够在一定程度上减轻服务器负载。
附图说明
图1是根据本公开一示例性实施例示出的一种直播间互动方法的流程图。
图2a是根据本公开一示例性实施例示出的一种用户发送互动开始请求时的直播间显 示界面。
图2b是根据本公开一示例性实施例示出的又一种用户发送互动开始请求时的直播间显示界面。
图3是根据本公开又一示例性实施例示出的一种直播间互动方法的流程图。
图4是根据本公开一示例性实施例示出的一种直播间中对互动活动内容进行显示的示意图。
图5是根据本公开又一示例性实施例示出的一种互动活动为礼物接龙时的直播间互动方法的流程图。
图6是根据本公开一示例性实施例示出的一种直播间互动装置的结构框图。
图7示出了适于用来实现本公开实施例的电子设备的结构示意图。
具体实施方式
下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。
应当理解,本公开的方法实施方式中记载的各个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。
需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。
需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。
图1是根据本公开一示例性实施例示出的一种直播间互动方法的流程图,该方法应用于服务器,如图1所示,该方法包括步骤101至步骤104。
在步骤101中,接收直播间中任一客户端发送的用于开启互动活动的互动开始请求。该互动开始请求可以是用户通过点击客户端中预设的互动活动开启虚拟按键,或者也可以是送出与预设互动活动相对应的礼物来发送该互动开始请求等。例如图2a和图2b所示。
图2a是根据本公开一示例性实施例示出的一种用户发送该互动开始请求时的直播间显示界面。图2a中的最上方可以显示主播头像1和主播名称,最下方可以显示可送的礼物列表,该礼物列表由多个礼物栏4组成,直播画面显示区域3用于显示当前的直播画面,该直播画面显示区域3除了可以包括如图2a中所显示出来的位于礼物列表上方的显示区域,还可以包括显示该礼物列表的区域,在该礼物列表被显示出来的情况下,该礼物列表对该 直播画面显示区域3进行了部分遮挡。礼物栏4中还可以包括礼物提示框5,覆盖于该礼物栏4的一角,用于提示该礼物栏4中的礼物是否能够触发互动活动,以及该礼物栏4中的礼物被送出后所触发的互动活动。例如,该礼物提示框5中可以显示“接”,来提示用户该礼物在被送出之后能够开启礼物接龙的互动活动等。提示栏6和提示栏7可以用于显示对部分礼物的使用说明或者其他关于直播间与用户本身的消息提示内容,该提示栏6为覆盖在该直播画面显示区域3上的一块提示区域,在该提示栏6中没有对提示内容进行显示的情况下,不对该直播画面显示区域3产生遮盖影响。例如,用户在点击任意礼物栏4的情况下,若该礼物栏4对应有相应的送礼说明,则可以将该送礼说明显示于该提示栏6或提示栏7中,或者还可以覆盖在该直播画面显示3上的其他区域来进行显示,不仅限于该提示栏6。该直播间显示界面中还可以包括充值键8,用于用户进行充值。在如图2a所示的直播间显示界面中,用户即可以通过点击任意带有礼物提示框5,且该礼物提示框5中提示该礼物为能够开启互动活动的礼物所对应的礼物栏4,并将该礼物栏4中的礼物送出,从而来发出该互动开始请求。
图2b是根据本公开一示例性实施例示出的又一种用户发送该互动开始请求时的直播间显示界面。图2b中的最上方也可以显示直播间的主播头像1和主播名称2,该直播间中的直播内容在该直播画面显示区域3进行显示。在该直播画面显示区域3下方还可以包括聊天内容输入框9,用于用户在直播间中输入直播间所有观众都能够查看到的聊天内容,该聊天内容输入框9右侧还能够包括一个或多个功能项10,该功能项10中可以分别对应不同的直播间功能,例如,可以设置一个功能项10对应礼物列表,用户通过点击该功能项10就能将当前直播间能够送出的礼物展示在如图2a所示的礼物列表中进行显示,还可以设置一个功能项10对应分享功能,用户通过点击该功能项10即可对当前直播间进行分享,另外,还可以设置一个功能项10对应该互动开始请求的发送,用户在点击该功能项10的情况下即可发送该互动开始请求至服务器,以在当前直播间中开启与该互动开始请求对应的互动活动。在互动活动为多个的情况下,在设置该功能项10对应该互动开始请求的发送时,还需将该功能项10对应发送的互动开始请求所对应的互动活动具体是什么进行设置,这样才能使得服务器在接收到该互动开始请求之后,能够明确该互动开始请求所对应的互动活动。
本公开对于服务器所接收到的该互动开始请求具体是通过用户在客户端进行何种操作来发送的不做限制,上述两种用户在客户端发送该互动开始请求的方式仅仅为示例。
在步骤102中,确定与互动开始请求对应的互动活动持续时间。无论是用户通过何种方式发送了该互动开始请求至服务器,在接收到该互动开始请求之后,服务器就将确定与该互动开始请求对应的互动活动持续时间。例如,该互动开始请求对应的是互动活动A,则在接收到该互动开始请求之后就确定该互动活动A对应的互动活动持续时间。若该互动开始请求对应的是互动活动B,则在接收到该互动开始请求之后就确定该互动活动B对应的互动活动持续时间,该互动开始请求对应的具体互动活动是包括在该互动开始请求内的,服务器在接收到该互动开始请求之后就可以根据该请求来对互动活动进行确定,进而确定互动活动持续时间。上述互动活动持续时间可以是在服务器中设置好的,也可以是服务器在接收到该互动开始请求之后,根据该互动开始请求所对应的互动活动来向其他设备获取得到的。
在步骤103中,根据互动活动持续时间确定互动活动开始时间和互动活动结束时间,并向直播间的所有客户端发送互动活动开始时间、互动活动结束时间和服务器当前时间。
在根据该互动活动持续时间确定互动活动开始时间、互动活动结束时间时,都是根据服务器中的时间来确定的,例如,若接收到该互动开始请求的时间为服务器时间2019年12月2日16:12:05,该互动活动的持续时间为50s,服务器可以根据常规设置,即在接收到该互动开始请求之后5s开始对该互动活动计时,则可以确定该互动活动开始时间为2019年12月2日16:12:10,该互动活动结束时间为2019年12月2日16:13:00。并且,将服务器当前时间,以及根据服务器的时间所确定的互动活动开始时间和互动活动结束时间一并发送给客户端。这样,客户端能够根据接收到的服务器当前时间来判断该互动活动实际应该何时开始和结束,从而就能够避免不同客户端的时间差异所导致的在不同客户端上所显示的互动活动时间的差异。
例如,若该直播间中有一客户端的时间相比于服务器慢5s,若仅将该互动活动开始时间和互动活动结束时间发送给该客户端,则该客户端中所显示的该互动活动的时间信息就会比服务器中的慢5s,若在客户端中对该互动活动持续时间按照倒计时的方式进行显示,则就会导致该客户端中显示互动活动还有5s结束时,服务器中实际已经结束该互动活动,从而导致该客户端的用户在该客户端所显示的倒数5s内进行的互动操作不会被服务器识别为在该互动活动期间内的互动操作。
在步骤104中,在互动活动开始时间至互动活动结束时间的互动活动期间接收直播间中所有客户端发送的互动信息,并将互动信息发送至直播间中的所有客户端。在对直播间中的所有客户端进行互动活动起止时间的统一之后,对该直播间中所有客户端中所发送的与该互动活动相关的互动信息进行接收,并将其转发至该直播间中的所有客户端,这样就能够使得在该互动活动期间,该直播间中的所有客户端都能及时得知该互动活动的进行情况。
通过上述技术方案,能够在直播间中开启所有直播间观众都能够参与的互动活动,而且,在对该互动活动的活动时间进行控制时,能够通过向直播间中的所有客户端都下发服务器的时间的方式来确保直播间中所有客户端观众所参与的互动活动的起始时间的相同,从而保障了互动活动中活动数据的准确性。
图3是根据本公开又一示例性实施例示出的一种直播间互动方法的流程图。如图3所示,该方法除了包括图1中所示的步骤102至步骤104之外,还包括步骤301和步骤302。
在步骤301中,接收直播间中任一客户端发送的第一送礼请求,第一送礼请求中包括客户端向主播送出的礼物类型以及与礼物类型对应的礼物数量。
在步骤302中,在第一送礼请求中包括的礼物类型为第一预设类型的情况下,将第一送礼请求确定为与礼物类型对应的互动活动的互动开始请求。
上述步骤301和步骤302即可以为通过如图2a所示的直播间显示界面来发送该互动开始请求的步骤。用户在对标记为能够触发互动活动的礼物进行送礼操作之后,服务器会接收到该第一送礼请求,该送礼请求中可包括礼物类型和与该礼物类型对应的礼物数量。
该第一预设类型即为与互动活动对应的礼物类型,属于该第一预设类型的礼物可以为一种或多种,且在互动活动有多种的情况下,属于该第一预设类型的多种礼物还可以分别对应不同的互动活动。
服务器在接收到该送礼请求之后,如果确定该礼物类型属于该第一预设类型,即与互动活动相对应的礼物类型,则将该第一送礼请求确定为该互动开始请求,且可以通过该第一送礼请求中的礼物类型来确定对应的互动活动,从而来确定该互动活动的持续时间等。还可将该第一送礼请求中所包括的送礼信息作为该互动活动中的互动信息发送至该直播间中的所有客户端。
例如,该直播间中有一与礼物接龙活动相关的礼物A,用户通过常规送礼操作,向主播送出了10个礼物A,该送礼操作作为该第一送礼请求发送至服务器,服务器接收到该第一送礼请求之后,确定其中所包括的礼物A的类型属于该第一预设类型,则将该第一送礼请求确定为互动开始请求,并进而确定该礼物接龙活动的互动活动持续时间,并将根据该礼物接龙的持续时间所确定的互动活动开始时间、互动活动结束时间和服务器当前时间发送至该直播间中的所有客户端中。该直播间中的客户端在接收到服务器发送的该互动活动开始时间、互动活动结束时间和服务器当前时间之后,可以按照预设设置将该该互动活动显示在当前直播显示界面中,如图4所示。图4中设置了互动活动内容显示栏11来对互动活动进行显示,其中可以显示互动活动的名称、图标、倒计时、实时互动进展等。服务器在将该互动活动开始时间、互动活动结束时间和服务器当前时间发送至直播间中的客户端之后,还会将该第一送礼请求中所包括的送礼信息作为互动活动中互动信息发送至直播间中的所有客户端,即,该第一送礼请求中所包括的礼物类型以及与该礼物类型所对应的礼物数量。
通过上述技术方案,用户能够直接通过送礼操作来开启直播间中的互动活动,且该送礼操作中的送礼信息可以被直接确定为互动活动中的互动信息,进一步便捷了直播间中的用户开启直播间中的互动活动。
图5是根据本公开又一示例性实施例示出的一种互动活动为礼物接龙时的直播间互动方法的流程图。其中,互动信息为包括的礼物类型为第二预设类型的第二送礼请求,在互动活动期间接收到第二送礼请求的情况下,如图5所示,该方法除了包括如图1所示的步骤101至步骤103之外,还包括步骤501至步骤504。
在步骤501中,在互动活动开始时间至互动活动结束时间的互动活动期间接收直播间中所有客户端发送的互动信息,互动信息为包括的礼物类型为第二预设类型的第二送礼请求。该第二预设类型与上述第一预设类型所表示的含义相同,都为与互动活动对应的礼物类型。在用户是通过送礼操作来触发互动活动开始的情况下,步骤501也可以为,在互动活动开始时间至互动活动结束时间的互动活动期间接收直播间中所有客户端发送的包括的礼物类型为第一预设类型的第二送礼请求。也即,在互动活动期间,对于与该互动活动相关的礼物的送礼请求进行接收。
在步骤502中,在互动活动期间接收到第二送礼请求的情况下,根据第二送礼请求中包括的礼物类型以及与其对应的礼物数量确定与第二送礼请求对应的接龙长度。在该互动活动为礼物接龙的情况下,在互动活动期间接收到与该互动活动相关的礼物的送礼请求的情况下,根据该送礼请求来确定该互动活动中应该增加的接龙长度。例如,可以根据该礼物对应的价值来确定每个礼物能够增加的接龙长度,或者,也可以是将每个礼物对应的接龙长度预设好,在接收到与该礼物相关的送礼请求时,直接根据该送礼请求中所包括的礼物对应的接龙长度来确定该送礼请求对应的接龙长度。例如,该第二送礼请求中所包括的 礼物类型可以为礼物B,在该第二送礼请求中所包括的与该礼物B对应的礼物数量为10,该礼物B对应的接龙长度为2,则该第二送礼请求对应的接龙长度即为20。
在步骤503中,将在互动活动期间已接收到的所有第二送礼请求对应的接龙长度之和确定为互动活动期间累积的接龙总长度。
在步骤504中,将接龙总长度发送至直播间中的所有客户端。
服务器会对该互动活动期间接收到的来自于所有客户端的第二送礼请求所对应的接龙长度进行累加,并在每接收到一个第二送礼请求时都对该接龙总长度进行更新后发送至该直播间中的所有客户端以进行接龙总长度的显示。例如,客户端可以将该接龙总长度显示于如图4所示的互动活动内容显示栏11中。
在一种可能的实施方式中,在互动活动期间接收到第二送礼请求的情况下,方法还包括:在判定第二送礼请求中所包含的礼物的礼物类型有对应的活动技能的情况下,执行与活动技能对应的操作。该活动技能可以为例如对互动活动持续时间延长一段时间,或者对于一段时间内所增加的接龙长度加倍等。其中,对互动活动持续时间进行延长的作用效果还可以为将当前互动活动的倒计时时间冻结一段时间。服务器在接收到该第二送礼请求的情况下,会对其中所包括的礼物的礼物类型是否有对应的活动技能进行判断,并响应于该活动技能对当前的互动活动执行相应的操作。但在接收到普通的送礼请求时,即该送礼请求中所包括的礼物的礼物类型不属于该第二预设类型时,不做此判断,从而能够在一定程度上减轻服务器负载。其中,礼物类型对应的活动技能可以是预先设置好的,且每个礼物类型对应的活动技能可以在客户端的送礼界面显示出来,如图2a所示,礼物类型所对应的活动技能可以在用户选中该礼物栏之后,显示于该提示栏7或提示栏6中。
图6是根据本公开一示例性实施例示出的一种直播间互动装置100的流程图。应用于服务器,如图6所示,该装置100包括:接收模块110,用于接收直播间中任一客户端发送的用于开启互动活动的互动开始请求;第一处理模块120,用于确定与互动开始请求对应的互动活动持续时间;第二处理模块130,用于根据互动活动持续时间确定互动活动开始时间和互动活动结束时间,并向直播间的所有客户端发送互动活动开始时间、互动活动结束时间和服务器当前时间;第三处理模块140,用于在互动活动开始时间至互动活动结束时间的互动活动期间接收直播间中所有客户端发送的互动信息,并将互动信息发送至直播间中的所有客户端。
通过上述技术方案,能够在直播间中开启所有直播间观众都能够参与的互动活动,而且,在对该互动活动的活动时间进行控制时,能够通过向直播间中的所有客户端都下发服务器的时间的方式来确保直播间中所有客户端观众所参与的互动活动的起始时间的相同,从而保障了互动活动中活动数据的准确性。
在一种可能的实施方式中,接收模块110包括:第一接收子模块,用于接收直播间中任一客户端发送的第一送礼请求,第一送礼请求中包括客户端向主播送出的礼物类型以及与礼物类型对应的礼物数量;第一处理子模块,用于在第一送礼请求中包括的礼物类型为第一预设类型的情况下,将第一送礼请求确定为与礼物类型对应的互动活动的互动开始请求。
在一种可能的实施方式中,互动信息为包括的礼物类型为第二预设类型的第二送礼请求,在互动活动期间接收到第二送礼请求的情况下,装置100还包括:第四处理模块,用 于根据第二送礼请求中包括的礼物类型以及与其对应的礼物数量确定与第二送礼请求对应的接龙长度;第五处理模块,用于将在互动活动期间已接收到的所有第二送礼请求对应的接龙长度之和确定为互动活动期间累积的接龙总长度;第三处理模块还用于将接龙总长度发送至直播间中的所有客户端。
在一种可能的实施方式中,在互动活动期间接收到第二送礼请求的情况下,装置还包括:第六处理模块,用于在判定第二送礼请求中所包含的礼物的礼物类型有对应的活动技能的情况下,执行与活动技能对应的操作。
下面参考图7,其示出了适于用来实现本公开实施例的电子设备700的结构示意图。本公开实施例中的终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图7示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图7所示,电子设备700可以包括处理装置(例如中央处理器、图形处理器等)701,其可以根据存储在只读存储器(ROM)702中的程序或者从存储装置708加载到随机访问存储器(RAM)703中的程序而执行各种适当的动作和处理。在RAM 703中,还存储有电子设备700操作所需的各种程序和数据。处理装置701、ROM 702以及RAM 703通过总线704彼此相连。输入/输出(I/O)接口705也连接至总线704。
通常,以下装置可以连接至I/O接口705:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置706;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置707;包括例如磁带、硬盘等的存储装置708;以及通信装置709。通信装置709可以允许电子设备700与其他设备进行无线或有线通信以交换数据。虽然图7示出了具有各种装置的电子设备700,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置709从网络上被下载和安装,或者从存储装置708被安装,或者从ROM 702被安装。在该计算机程序被处理装置701执行时,执行本公开实施例的方法中限定的上述功能。
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用 多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。
在一些实施方式中,客户端、服务器可以利用诸如HTTP(HyperText Transfer Protocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:接收直播间中任一客户端发送的用于开启互动活动的互动开始请求;确定与互动开始请求对应的互动活动持续时间;根据互动活动持续时间确定互动活动开始时间和互动活动结束时间,并向直播间的所有客户端发送互动活动开始时间、互动活动结束时间和服务器当前时间;在互动活动开始时间至互动活动结束时间的互动活动期间接收直播间中所有客户端发送的互动信息,并将互动信息发送至直播间中的所有客户端。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言——诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)——连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本公开实施例中所涉及到的模块可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,模块的名称在某种情况下并不构成对该模块本身的限定,例如,接收模块还可以被描述为“接收直播间中任一客户端发送的用于开启互动活动的互动开始请求 的模块”。
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。
根据本公开的一个或多个实施例,示例1提供了一种直播间互动方法,应用于服务器,所述方法包括:
接收直播间中任一客户端发送的用于开启互动活动的互动开始请求;
确定与所述互动开始请求对应的互动活动持续时间;
根据所述互动活动持续时间确定互动活动开始时间和互动活动结束时间,并向所述直播间的所有客户端发送所述互动活动开始时间、所述互动活动结束时间和服务器当前时间;
在所述互动活动开始时间至所述互动活动结束时间的互动活动期间接收所述直播间中所有客户端发送的互动信息,并将所述互动信息发送至所述直播间中的所有客户端。
根据本公开的一个或多个实施例,示例2提供了示例1的方法,所述接收直播间中任一客户端发送的用于开启互动活动的互动开始请求包括:
接收所述直播间中任一客户端发送的第一送礼请求,所述第一送礼请求中包括所述客户端向所述主播送出的礼物类型以及与所述礼物类型对应的礼物数量;
在所述第一送礼请求中包括的所述礼物类型为第一预设类型的情况下,将所述第一送礼请求确定为与所述礼物类型对应的互动活动的所述互动开始请求。
根据本公开的一个或多个实施例,示例3提供了示例1或示例2的方法,所述互动信息为包括的礼物类型为第二预设类型的第二送礼请求,在所述互动活动期间接收到所述第二送礼请求的情况下,所述方法还包括:
根据所述第二送礼请求中包括的礼物类型以及与其对应的礼物数量确定与所述第二送礼请求对应的接龙长度;
将在所述互动活动期间已接收到的所有所述第二送礼请求对应的接龙长度之和确定为所述互动活动期间累积的接龙总长度;
所述将所述互动信息发送至所述直播间中的所有客户端包括:
将所述接龙总长度发送至所述直播间中的所有客户端。
根据本公开的一个或多个实施例,示例4提供了示例3的方法,在所述互动活动期间接收到所述第二送礼请求的情况下,所述方法还包括:
在判定所述第二送礼请求中所包含的礼物的礼物类型有对应的活动技能的情况下,执 行与所述活动技能对应的操作。
根据本公开的一个或多个实施例,示例5提供了一种直播间互动装置,应用于服务器,所述装置包括:
接收模块,用于接收直播间中任一客户端发送的用于开启互动活动的互动开始请求;
第一处理模块,用于确定与所述互动开始请求对应的互动活动持续时间;
第二处理模块,用于根据所述互动活动持续时间确定互动活动开始时间和互动活动结束时间,并向所述直播间的所有客户端发送所述互动活动开始时间、所述互动活动结束时间和服务器当前时间;
第三处理模块,用于在所述互动活动开始时间至所述互动活动结束时间的互动活动期间接收所述直播间中所有客户端发送的互动信息,并将所述互动信息发送至所述直播间中的所有客户端。
根据本公开的一个或多个实施例,示例6提供了示例5的装置,所述接收模块包括:
第一接收子模块,用于接收所述直播间中任一客户端发送的第一送礼请求,所述第一送礼请求中包括所述客户端向所述主播送出的礼物类型以及与所述礼物类型对应的礼物数量;
第一处理子模块,用于在所述第一送礼请求中包括的所述礼物类型为第一预设类型的情况下,将所述第一送礼请求确定为与所述礼物类型对应的互动活动的所述互动开始请求。
根据本公开的一个或多个实施例,示例7提供了示例5或示例6的装置,所述互动信息为包括的礼物类型为第二预设类型的第二送礼请求,在所述互动活动期间接收到所述第二送礼请求的情况下,所述装置还包括:
第四处理模块,用于根据所述第二送礼请求中包括的礼物类型以及与其对应的礼物数量确定与所述第二送礼请求对应的接龙长度;
第五处理模块,用于将在所述互动活动期间已接收到的所有所述第二送礼请求对应的接龙长度之和确定为所述互动活动期间累积的接龙总长度;
所述第三处理模块还用于将所述接龙总长度发送至所述直播间中的所有客户端。
根据本公开的一个或多个实施例,示例8提供了示例7的装置,在所述互动活动期间接收到所述第二送礼请求的情况下,所述装置还包括:
第六处理模块,用于在判定所述第二送礼请求中所包含的礼物的礼物类型有对应的活动技能的情况下,执行与所述活动技能对应的操作。
根据本公开的一个或多个实施例,示例9提供了一种计算机可读介质,其上存储有计算机程序,该程序被处理装置执行时实现示例1-4中任一项所述方法的步骤。
根据本公开的一个或多个实施例,示例10提供了一种电子设备,包括:存储装置,其上存储有计算机程序;处理装置,用于执行所述存储装置中的所述计算机程序,以实现示例1-4中任一项所述方法的步骤。
根据本公开的一个或多个实施例,还提供了一种计算机程序,包括程序代码,当计算机运行所述计算机程序时,所述程序代码执行示例1-4任一项所述的方法的步骤。
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组 合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。
此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。
尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解所附权利要求书中所限定的主题未必局限于上面描述的特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现权利要求书的示例形式。关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。

Claims (11)

  1. 一种直播间互动方法,其特征在于,应用于服务器,所述方法包括:
    接收直播间中任一客户端发送的用于开启互动活动的互动开始请求;
    确定与所述互动开始请求对应的互动活动持续时间;
    根据所述互动活动持续时间确定互动活动开始时间和互动活动结束时间,并向所述直播间的所有客户端发送所述互动活动开始时间、所述互动活动结束时间和服务器当前时间;
    在所述互动活动开始时间至所述互动活动结束时间的互动活动期间接收所述直播间中所有客户端发送的互动信息,并将所述互动信息发送至所述直播间中的所有客户端。
  2. 根据权利要求1所述的方法,其特征在于,所述接收直播间中任一客户端发送的用于开启互动活动的互动开始请求包括:
    接收所述直播间中任一客户端发送的第一送礼请求,所述第一送礼请求中包括所述客户端向主播送出的礼物类型以及与所述礼物类型对应的礼物数量;
    在所述第一送礼请求中包括的所述礼物类型为第一预设类型的情况下,将所述第一送礼请求确定为与所述礼物类型对应的互动活动的所述互动开始请求。
  3. 根据权利要求1或2所述的方法,其特征在于,所述互动信息为包括的礼物类型为第二预设类型的第二送礼请求,在所述互动活动期间接收到所述第二送礼请求的情况下,所述方法还包括:
    根据所述第二送礼请求中包括的礼物类型以及与其对应的礼物数量确定与所述第二送礼请求对应的接龙长度;
    将在所述互动活动期间已接收到的所有所述第二送礼请求对应的接龙长度之和确定为所述互动活动期间累积的接龙总长度;
    所述将所述互动信息发送至所述直播间中的所有客户端包括:
    将所述接龙总长度发送至所述直播间中的所有客户端。
  4. 根据权利要求3所述的方法,其特征在于,在所述互动活动期间接收到所述第二送礼请求的情况下,所述方法还包括:
    在判定所述第二送礼请求中所包含的礼物的礼物类型有对应的活动技能的情况下,执行与所述活动技能对应的操作。
  5. 一种直播间互动装置,其特征在于,包括:
    接收模块,用于接收直播间中任一客户端发送的用于开启互动活动的互动开始请求;
    第一处理模块,用于确定与所述互动开始请求对应的互动活动持续时间;
    第二处理模块,用于根据所述互动活动持续时间确定互动活动开始时间和互动活动结束时间,并向所述直播间的所有客户端发送所述互动活动开始时间、所述互动活动结束时间和服务器当前时间;
    第三处理模块,用于在所述互动活动开始时间至所述互动活动结束时间的互动活动期间接收所述直播间中所有客户端发送的互动信息,并将所述互动信息发送至所述直播间中的所有客户端。
  6. 根据权利要求5所述的装置,其特征在于,所述接收模块包括:
    第一接收子模块,用于接收所述直播间中任一客户端发送的第一送礼请求,所述第一送礼请求中包括所述客户端向主播送出的礼物类型以及与所述礼物类型对应的礼物数量;
    第一处理子模块,用于在所述第一送礼请求中包括的所述礼物类型为第一预设类型的情况下,将所述第一送礼请求确定为与所述礼物类型对应的互动活动的所述互动开始请求。
  7. 根据权利要求5或6所述的装置,其特征在于,所述互动信息为包括的礼物类型为第二预设类型的第二送礼请求,在所述互动活动期间接收到所述第二送礼请求的情况下,所述装置还包括:
    第四处理模块,用于根据所述第二送礼请求中包括的礼物类型以及与其对应的礼物数量确定与所述第二送礼请求对应的接龙长度;
    第五处理模块,用于将在所述互动活动期间已接收到的所有所述第二送礼请求对应的接龙长度之和确定为所述互动活动期间累积的接龙总长度;
    所述第三处理模块还用于将所述接龙总长度发送至所述直播间中的所有客户端。
  8. 根据权利要求7所述的装置,其特征在于,在所述互动活动期间接收到所述第二送礼请求的情况下,所述装置还包括:
    第六处理模块,用于在判定所述第二送礼请求中所包含的礼物的礼物类型有对应的活动技能的情况下,执行与所述活动技能对应的操作。
  9. 一种电子设备,其特征在于,包括处理器和存储器;其中,
    所述存储器,用于存储程序代码;
    所述处理器,用于调用所述存储器中所存储的程度代码,执行权利要求1-4中任一项所述的方法。
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当该指令在计算机上运行时,使得计算机执行权利要求1-4中任一项所述的方法。
  11. 一种计算机程序,其特征在于,包括程序代码,当计算机运行所述计算机程序时,所述程序代码执行如权利要求1-4任一项所述的方法。
PCT/CN2020/128807 2020-01-03 2020-11-13 直播间互动方法、装置、可读介质及电子设备 WO2021135684A1 (zh)

Priority Applications (5)

Application Number Priority Date Filing Date Title
EP20908837.6A EP4057630A4 (en) 2020-01-03 2020-11-13 METHOD AND APPARATUS FOR INTERACTING WITH A LIVE STREAMING ROOM, READABLE MEDIA AND ELECTRONIC DEVICE
JP2022535891A JP7385041B2 (ja) 2020-01-03 2020-11-13 ライブルームでの対話方法、装置、読み取り可能な媒体及び電子機器
KR1020227019637A KR102630423B1 (ko) 2020-01-03 2020-11-13 라이브 방송룸 인터랙션 방법, 장치, 판독 가능 매체 및 전자기기
BR112022011652A BR112022011652A2 (pt) 2020-01-03 2020-11-13 Método e aparelho para interação em sala de streaming ao vivo, meio legível e dispositivo eletrônico
US17/838,593 US12069343B2 (en) 2020-01-03 2022-06-13 Method and apparatus for interaction in live streaming room, readable medium and electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010006089.8 2020-01-03
CN202010006089.8A CN111147885B (zh) 2020-01-03 2020-01-03 直播间互动方法、装置、可读介质及电子设备

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/838,593 Continuation US12069343B2 (en) 2020-01-03 2022-06-13 Method and apparatus for interaction in live streaming room, readable medium and electronic device

Publications (1)

Publication Number Publication Date
WO2021135684A1 true WO2021135684A1 (zh) 2021-07-08

Family

ID=70523497

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/128807 WO2021135684A1 (zh) 2020-01-03 2020-11-13 直播间互动方法、装置、可读介质及电子设备

Country Status (7)

Country Link
US (1) US12069343B2 (zh)
EP (1) EP4057630A4 (zh)
JP (1) JP7385041B2 (zh)
KR (1) KR102630423B1 (zh)
CN (1) CN111147885B (zh)
BR (1) BR112022011652A2 (zh)
WO (1) WO2021135684A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111147885B (zh) * 2020-01-03 2021-04-02 北京字节跳动网络技术有限公司 直播间互动方法、装置、可读介质及电子设备
CN114817698A (zh) * 2021-01-29 2022-07-29 北京字节跳动网络技术有限公司 信息推送方法及装置、信息展示方法及装置、设备和介质
CN115150664B (zh) * 2022-09-01 2023-01-20 北京达佳互联信息技术有限公司 数据处理方法、装置、电子设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140173121A1 (en) * 2012-02-20 2014-06-19 Tencent Technology (Shenzhen) Company Limited Method, device and computer-readable storage medium for client interaction of a network application executed by computer
CN106028170A (zh) * 2016-07-04 2016-10-12 天脉聚源(北京)传媒科技有限公司 一种视频直播时的互动方法及装置
CN108391157A (zh) * 2018-02-07 2018-08-10 北京密境和风科技有限公司 互动直播方法、客户端、服务器和系统
CN110300307A (zh) * 2019-08-06 2019-10-01 广州虎牙科技有限公司 直播互动方法、装置及直播服务器
CN111147885A (zh) * 2020-01-03 2020-05-12 北京字节跳动网络技术有限公司 直播间互动方法、装置、可读介质及电子设备

Family Cites Families (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI559965B (en) 2012-12-21 2016-12-01 Sony Comp Entertainment Us Sharing recorded gameplay to a social graph
CN104918124B (zh) * 2015-05-11 2017-12-08 腾讯科技(北京)有限公司 直播互动系统、信息发送方法、信息接收方法及装置
TWI620438B (zh) 2015-08-12 2018-04-01 財團法人資訊工業策進會 校正直播節目中互動時間的方法、裝置與電腦可讀取儲存裝置
JP6313726B2 (ja) 2015-08-28 2018-04-18 株式会社ソニー・インタラクティブエンタテインメント 情報処理装置、イベント管理サーバー、イベント参加方法、およびイベント参加管理方法
CN106502554B (zh) * 2015-09-08 2021-09-17 腾讯科技(深圳)有限公司 一种显示控制方法及装置
CN105828123A (zh) 2016-03-30 2016-08-03 乐视控股(北京)有限公司 一种在直播中进行交互的方法及装置
CN105933739B (zh) * 2016-04-22 2019-08-13 腾讯科技(深圳)有限公司 节目互动系统、方法、客户端及后台服务器
CN106131698A (zh) * 2016-06-29 2016-11-16 北京金山安全软件有限公司 一种信息显示方法、装置及电子设备
CN106303658B (zh) 2016-08-19 2018-11-30 百度在线网络技术(北京)有限公司 应用于视频直播的交互方法和装置
CN106604100B (zh) * 2016-11-08 2019-12-13 广州华多网络科技有限公司 直播平台互动的方法及装置
CN111405299B (zh) 2016-12-19 2022-03-01 广州虎牙信息科技有限公司 基于视频流的直播交互方法及其相应的装置
CN108322764B (zh) * 2017-01-18 2021-04-06 阿里巴巴集团控股有限公司 实时互动实现方法及装置
CN106937158B (zh) * 2017-03-29 2020-12-18 腾讯科技(深圳)有限公司 直播显示方法、装置及系统
CN107018441B (zh) * 2017-04-24 2020-12-15 武汉斗鱼网络科技有限公司 一种礼物触发转盘的方法及装置
CN118264635A (zh) * 2017-05-16 2024-06-28 苹果公司 用于对等传输的用户界面
CN108010541A (zh) * 2017-12-14 2018-05-08 广州酷狗计算机科技有限公司 在直播间显示音高信息的方法及装置、存储介质
CN108471379A (zh) * 2018-03-09 2018-08-31 广西中科万宏信息科技有限责任公司 一种信息接龙方法及其系统
CN108564416A (zh) * 2018-04-25 2018-09-21 掌阅科技股份有限公司 限时活动倒计时处理方法、计算设备、存储介质
CN108810643A (zh) * 2018-06-01 2018-11-13 沈文策 一种红包发放方法、装置及直播系统
CN108924661B (zh) 2018-07-12 2020-02-18 北京微播视界科技有限公司 基于直播间的数据交互方法、装置、终端和存储介质
CN109218842B (zh) * 2018-10-31 2021-05-14 广州方硅信息技术有限公司 虚拟礼物互动方法、装置、计算机存储介质和终端
CN109561351A (zh) 2018-12-03 2019-04-02 网易(杭州)网络有限公司 网络直播回放方法、装置及存储介质
WO2020138143A1 (ja) * 2018-12-28 2020-07-02 グリー株式会社 動画配信システム、動画配信方法、動画配信プログラム、情報処理端末及び動画視聴プログラム
CN109698964B (zh) * 2019-01-24 2021-09-21 武汉鲨鱼网络直播技术有限公司 一种在线直播间礼品发送方法及系统
US20200391122A1 (en) * 2019-06-14 2020-12-17 Steven Michael Hamilton Online Platform For Simultaneous Multiplayer Video Gaming And Broadcasting
CN110602557B (zh) * 2019-09-16 2022-05-17 腾讯科技(深圳)有限公司 赠送虚拟礼物的方法、电子设备及计算机可读存储介质
CN111107421B (zh) * 2019-12-31 2022-04-01 北京达佳互联信息技术有限公司 视频处理方法、装置、终端设备及存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140173121A1 (en) * 2012-02-20 2014-06-19 Tencent Technology (Shenzhen) Company Limited Method, device and computer-readable storage medium for client interaction of a network application executed by computer
CN106028170A (zh) * 2016-07-04 2016-10-12 天脉聚源(北京)传媒科技有限公司 一种视频直播时的互动方法及装置
CN108391157A (zh) * 2018-02-07 2018-08-10 北京密境和风科技有限公司 互动直播方法、客户端、服务器和系统
CN110300307A (zh) * 2019-08-06 2019-10-01 广州虎牙科技有限公司 直播互动方法、装置及直播服务器
CN111147885A (zh) * 2020-01-03 2020-05-12 北京字节跳动网络技术有限公司 直播间互动方法、装置、可读介质及电子设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4057630A4

Also Published As

Publication number Publication date
KR102630423B1 (ko) 2024-01-29
EP4057630A1 (en) 2022-09-14
EP4057630A4 (en) 2023-03-22
CN111147885B (zh) 2021-04-02
JP7385041B2 (ja) 2023-11-21
JP2023506800A (ja) 2023-02-20
US12069343B2 (en) 2024-08-20
US20220312078A1 (en) 2022-09-29
BR112022011652A2 (pt) 2022-08-23
KR20220097992A (ko) 2022-07-08
CN111147885A (zh) 2020-05-12

Similar Documents

Publication Publication Date Title
WO2021004221A1 (zh) 特效的展示处理方法、装置及电子设备
WO2022161335A1 (zh) 互动方法、装置、电子设备和存储介质
WO2021135684A1 (zh) 直播间互动方法、装置、可读介质及电子设备
WO2021259301A1 (zh) 直播互动方法、装置、可读介质及电子设备
WO2023274354A1 (zh) 视频共享方法、装置、设备及介质
WO2022228336A1 (zh) 视频互动方法、装置、电子设备和存储介质
WO2023000918A1 (zh) 视频互动方法、装置、电子设备和存储介质
WO2023103956A1 (zh) 数据交互方法、装置、电子设备、存储介质和程序产品
WO2021228234A1 (zh) 应用程序的互动消息展示方法、装置及可读存储介质
WO2021218556A1 (zh) 信息展示方法、装置和电子设备
JP2023523067A (ja) ビデオ処理方法、装置、機器及び媒体
US12081835B2 (en) Interactive method, electronic device and storage medium for opening a video sharing room
EP4344224A1 (en) Live-streaming interaction method and apparatus, and readable medium and electronic device
WO2023134559A1 (zh) 评论提示方法、装置、电子设备、存储介质和程序产品
US20240338112A1 (en) Video publishing method and apparatus, electronic device, storage medium and program product
WO2023216948A9 (zh) 互动信息的显示方法、装置及设备
WO2024094130A1 (zh) 内容分享方法、装置、设备、计算机可读存储介质及产品
WO2023134610A1 (zh) 一种视频展示与交互方法、装置、电子设备及存储介质
WO2024022403A1 (zh) 任务的处理方法、装置、设备及存储介质
WO2024012392A1 (zh) 交互方法、装置、电子设备和存储介质
WO2023134685A1 (zh) 直播投票的方法、装置、电子设备、存储介质和程序产品
WO2024188245A1 (zh) 信息展示方法、信息发送方法、装置、设备和存储介质
WO2022037552A1 (zh) 内容展示方法及装置
WO2022160605A1 (zh) 音乐应用中的播客推荐方法及设备
WO2024055836A1 (zh) 播放控制方法、装置、电子设备和存储介质

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: 20908837

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 20227019637

Country of ref document: KR

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2022535891

Country of ref document: JP

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2020908837

Country of ref document: EP

Effective date: 20220610

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112022011652

Country of ref document: BR

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 112022011652

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20220613