CN114201095A - Control method and device for live interface, storage medium and electronic equipment - Google Patents

Control method and device for live interface, storage medium and electronic equipment Download PDF

Info

Publication number
CN114201095A
CN114201095A CN202111532057.2A CN202111532057A CN114201095A CN 114201095 A CN114201095 A CN 114201095A CN 202111532057 A CN202111532057 A CN 202111532057A CN 114201095 A CN114201095 A CN 114201095A
Authority
CN
China
Prior art keywords
anchor
interface
live
confrontation
live broadcast
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202111532057.2A
Other languages
Chinese (zh)
Inventor
庄宇轩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Boguan Information Technology Co Ltd
Original Assignee
Guangzhou Boguan Information Technology Co Ltd
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 Guangzhou Boguan Information Technology Co Ltd filed Critical Guangzhou Boguan Information Technology Co Ltd
Priority to CN202111532057.2A priority Critical patent/CN114201095A/en
Publication of CN114201095A publication Critical patent/CN114201095A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/80Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses a control method and device of a live interface, a storage medium and electronic equipment. The method comprises the following steps: the method comprises the steps of displaying a live broadcast confrontation interface at least comprising a first anchor interface and a second anchor interface, wherein the first anchor interface is a live broadcast scene interface corresponding to a first anchor participating in confrontation, the second anchor interface is a live broadcast scene interface corresponding to a second anchor participating in confrontation, acquiring first interaction data aiming at the first anchor and second interaction data aiming at the second anchor, determining a first confrontation result according to the first interaction data and the second interaction data, and adjusting camera parameters of a virtual camera corresponding to the live broadcast confrontation interface based on the first confrontation result so that the display interface sizes of the first anchor interface and the second anchor interface displayed in the live broadcast confrontation interface are matched with the first confrontation result. The method can create a confrontation atmosphere, arouse the enthusiasm of the audience users for supporting the operation of the anchor participating in the confrontation, and improve the participation sense of the audience users.

Description

Control method and device for live interface, storage medium and electronic equipment
Technical Field
The application relates to the technical field of live broadcasting, in particular to a live broadcasting interface control method and device, a computer readable storage medium and electronic equipment.
Background
With the progress and development of network technology, network live broadcast is developed and applied very obviously, and due to the interactivity and entertainment of a live broadcast platform, more and more audiences learn and entertain by using the live broadcast platform, and various types of live broadcast are carried forward, such as game live broadcast, live broadcast in match, talent live broadcast and the like.
However, the inventors of the present application have found that, in live broadcasting in a current anchor competition interaction scene, users in different live broadcasting rooms generally only provide respective anchor interactions, for example, a gift delivery is added with a winning point, and audience users in each live broadcasting room lack effective interaction in the competition interaction scene, and therefore have poor participation and experience.
Disclosure of Invention
The embodiment of the application provides a control method and device of a live broadcast interface, a computer readable storage medium and electronic equipment, which can improve the participation and experience of audience users participating in a confrontation activity.
The embodiment of the application provides a control method of a live broadcast interface, which comprises the following steps:
displaying a live broadcast confrontation interface at least comprising a first anchor interface and a second anchor interface, wherein the first anchor interface is a live broadcast scene interface corresponding to a first anchor participating in confrontation, and the second anchor interface is a live broadcast scene interface corresponding to a second anchor participating in confrontation;
acquiring first interaction data aiming at the first anchor and second interaction data aiming at the second anchor, and determining a first anticaking result according to the first interaction data and the second interaction data;
based on the first confrontation result, adjusting camera parameters of a virtual camera corresponding to the live confrontation interface so that display interface sizes of the first main playing interface and the second main playing interface displayed in the live confrontation interface are matched with the first anticaking results.
An embodiment of the present application further provides a control device for a live interface, including:
the system comprises a display module, a first video playing module and a second video playing module, wherein the display module is used for displaying a live broadcast confrontation interface at least comprising a first anchor interface and a second anchor interface, the first anchor interface is a live broadcast scene interface corresponding to a first anchor participating in confrontation, and the second anchor interface is a live broadcast scene interface corresponding to a second anchor participating in confrontation;
the acquisition determining module is used for acquiring first interaction data aiming at the first anchor and second interaction data aiming at the second anchor, and determining a first anticaking result according to the first interaction data and the second interaction data;
and the adjusting module is used for adjusting the camera parameters of the virtual camera corresponding to the live fighting interface based on the first fighting result so as to enable the display interface sizes of the first anchor interface and the second anchor interface displayed in the live fighting interface to be matched with the first fighting result.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored, where the computer program is suitable for being loaded by a processor to execute the steps in the control method of a live interface according to any embodiment of the foregoing.
An embodiment of the present application further provides an electronic device, where the electronic device includes a memory and a processor, where the memory stores a computer program, and the processor executes, by calling the computer program stored in the memory, the steps in the control method for a live interface according to any of the above embodiments.
According to the control method and device of the live broadcast interface, the computer readable storage medium and the electronic device, the live broadcast confrontation interface at least comprising the first anchor interface and the second anchor interface is displayed, the first anchor interface is a live broadcast scene interface corresponding to the first anchor participating in confrontation, the second anchor interface is a live broadcast scene interface corresponding to the second anchor participating in confrontation, first interaction data aiming at the first anchor and second interaction data aiming at the second anchor are obtained, the first confrontation result is determined according to the first interaction data and the second interaction data, and the camera parameters of the virtual camera corresponding to the live broadcast confrontation interface are adjusted based on the first confrontation result, so that the sizes of the display interfaces of the first anchor interface and the second anchor interface displayed in the live broadcast confrontation interface are matched with the first confrontation result. The embodiment of the application can adjust the display of different anchor interfaces in the live broadcast countermeasure interface through the interactive data corresponding to different anchors participating in the countermeasure, thereby enhancing the participation sense of audience users, leading the audience users to clearly and intuitively feel the countermeasure state between the different anchors participating in the countermeasure, and improving the live broadcast watching experience of the audience users.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is an application scenario diagram of a control method for a live interface according to an embodiment of the present application.
Fig. 2 is a schematic flow chart of a control method of a live interface provided in an embodiment of the present application.
Fig. 3a, fig. 3b, and fig. 3c are schematic diagrams of a live countermeasure interface in an initial state according to an embodiment of the present application.
Fig. 4a, 4b, and 4c are another schematic diagrams of the live countermeasure interface in the initial state according to the embodiment of the present application.
Fig. 5 is a schematic flow chart of generating a live countermeasure interface according to an embodiment of the present application.
Fig. 6a and 6b are schematic views of a corresponding squeeze display effect after a live broadcast confrontation interface is adjusted according to an embodiment of the application.
Fig. 7 is a schematic structural diagram of a control device of a live interface according to an embodiment of the present application.
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a control method and device of a live interface, a computer readable storage medium and electronic equipment. Specifically, the control method of the live interface in the embodiment of the present application may be executed by an electronic device, where the electronic device may be a terminal or a server. The terminal can be a terminal such as a smart phone, a tablet Computer, a notebook Computer, a touch screen, a game console, a Personal Computer (PC), a Personal Digital Assistant (PDA), and the like, and the terminal can also include a live broadcast client, which can be a live broadcast application client, a browser client carrying a live broadcast program, or an instant messaging client, and the like. The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service and a cloud database.
For example, when the control method of the live interface is executed in a terminal, the terminal stores a live application and is used for presenting a virtual live scene (live picture). The terminal is used for interacting with a user through a graphical user interface, for example, downloading and installing a live application program through the terminal and running the live application program. The manner in which the terminal provides the graphical user interface to the user may include a variety of ways, for example, the graphical user interface may be rendered for display on a display screen of the terminal or presented by holographic projection. It should be noted that the live application can also be other applications with live functionality, such as a game application.
For example, when the control method of the live interface runs on a server, the live interface can be a cloud broadcast. Cloud live broadcasting refers to a live broadcasting mode based on cloud computing. In a cloud live broadcast operation mode, an operation main body and a live broadcast picture presentation main body of a live broadcast application program are separated, and storage and operation of a control method of a live broadcast interface are finished on a cloud live broadcast server. The live broadcast picture presentation is completed at a cloud live broadcast client, and the cloud live broadcast client is mainly used for receiving and sending live broadcast data and presenting live broadcast pictures. When live broadcasting is carried out, a user operates the cloud live broadcasting client to send an operation instruction to the cloud live broadcasting server, the cloud live broadcasting server operates a live broadcasting application program according to the operation instruction, data such as live broadcasting pictures are coded and compressed, the data are returned to the cloud live broadcasting client through a network, and finally the live broadcasting pictures are decoded and output through the cloud live broadcasting client. Therefore, the consumption of computing resources of the terminal is reduced, and the picture quality of the picture displayed by the terminal is improved.
A method and an apparatus for controlling a live interface, a computer-readable storage medium, and an electronic device provided in embodiments of the present application will be described in detail below. The numbers in the following examples are not intended to limit the order of preference of the examples.
The first anchor in the embodiment of the application can be an anchor initiating live-confrontation activities, and the second anchor can be an anchor receiving live-confrontation activities; the first anchor may also be one of the anchors participating in the live action of confrontation, the second anchor may be the other anchor participating in the live action of confrontation, etc.; the first anchor may be an anchor corresponding to one party participating in the live broadcast countermeasure activity, and the second anchor may be an anchor corresponding to another party participating in the live broadcast countermeasure activity. It should be noted that, in some embodiments, if there are more than two competitors participating in the live-fighting activity, the live-fighting interface may display the same number of anchor interfaces as the number of competitors, and if there are three competitors, the live-fighting interface may display three anchor interfaces, such as a first anchor interface, a second anchor interface, and a third anchor interface.
The number of the first anchor can be one or more, and the anchor with a plurality of numbers in the first anchor can be an anchor from one live broadcast room or an anchor from a plurality of live broadcast rooms; the number of the second anchor may also be one or more, and the number of anchors in the second anchor may be an anchor from one live broadcast room or an anchor from a plurality of live broadcast rooms.
The embodiments of the present application take the counter party participating in the counter live event as two parties, and the numbers of the first anchor and the second anchor corresponding to the counter party and the other party participating in the counter live event are respectively one anchor, the first anchor and the second anchor, for convenience of understanding, unless otherwise specifically stated in some embodiments.
Fig. 1 is an application scene schematic diagram of a control method of a live interface provided in an embodiment of the present application. The application scene comprises a terminal (such as a live platform client or a live client) and a server (a live platform server), and the terminal and the server are communicated with each other. The live broadcast client is installed in the terminal, and after the live broadcast client is started, a user can enter a live broadcast room to become a main broadcast and can also enter the live broadcast room to become audience users of the live broadcast room. In order to increase the interest of the live broadcast activity, a specified activity can be played in the live broadcast room, and the specified activity can be an anti-live broadcast activity, for example, an anti-live broadcast activity of at least two anchor games, an anti-live broadcast activity of talent and skill spelling, and the like.
With continued reference to fig. 1, the terminals include terminal a of anchor a, terminal B of anchor B, terminal C of audience user, terminals D, … …, terminal N, etc. The anchor A is a first anchor, the anchor B is a second anchor, wherein the anchor A and the anchor B meet the condition of participating in live broadcast resisting activities, after the live broadcast resisting activities are participated in, a live broadcast room where the anchor A is located corresponds to a first virtual live broadcast scene, part or all of the first virtual live broadcast scene is displayed through a live broadcast scene interface corresponding to the anchor A, a live broadcast room where the anchor B is located corresponds to a second virtual live broadcast scene, and part or all of the second virtual live broadcast scene is displayed through a live broadcast scene interface corresponding to the anchor B.
The control method of the live interface in the embodiment of the present application may be executed in a server, and will be described in the following from the perspective of the server unless explicitly stated otherwise.
Fig. 2 is a schematic flow chart of a control method of a live interface provided in an embodiment of the present application. The control method of the live broadcast interface comprises the following steps.
101, displaying a live broadcast confrontation interface at least comprising a first anchor interface and a second anchor interface, wherein the first anchor interface is a live broadcast scene interface corresponding to a first anchor participating in confrontation, and the second anchor interface is a live broadcast scene interface corresponding to a second anchor participating in confrontation.
The anchor information of each anchor in the first anchor and the second anchor comprises an anchor identification and information such as character patch data corresponding to the anchor, the anchor identification comprises an anchor ID, an anchor nickname and the like, and one anchor can be uniquely determined through the anchor ID.
The live broadcast scene interface is used for displaying part or all of virtual live broadcast scenes where a first anchor or a second anchor participating in confrontation is located, each virtual live broadcast scene comprises at least one anchor message and a camera or a virtual camera (a first virtual camera) corresponding to the virtual live broadcast scene, the camera or the virtual camera is not displayed, and each virtual live broadcast scene can also comprise scene model data in the live broadcast virtual scene. The scene model data includes coordinate data, material maps, illumination information, and the like of each model. And displaying a first virtual live broadcast scene where the first anchor is located in a live broadcast scene interface corresponding to the first anchor, and displaying a second virtual live broadcast scene where the second anchor is located in a live broadcast scene interface corresponding to the second anchor. The first anchor interface is a live scene interface corresponding to the first anchor participating in the confrontation, and the second anchor interface is a live scene interface corresponding to the second anchor participating in the confrontation. For example, a first virtual live broadcast scene where the anchor a is located is displayed in the first anchor interface in fig. 1, and a second virtual live broadcast scene where the anchor B is located is displayed in the second anchor interface.
The live fighting interfaces at least comprise a first anchor interface and a second anchor interface which participate in live fighting activities. The live confrontation interface can also comprise other information such as an interface of public screen chat. And displaying a live broadcast confrontation interface corresponding to the confrontation live broadcast activity on a display screen of the terminal. It should be noted that in some embodiments, if there are more than two competing parties participating in the live-action campaign, the live-action competition interface may further include more anchor interfaces such as a third anchor interface.
Please refer to fig. 3a, fig. 3b, and fig. 3c, which are schematic diagrams of a live confrontation interface provided in an embodiment of the present application. In fig. 3a, 3B and 3c, the first anchor comprises anchor a, the second anchor comprises anchor B, the number of first and second anchors respectively being one. In the live countermeasure interfaces shown in fig. 3a, 3B, and 3c, a first anchor interface a corresponding to anchor a and a second anchor interface B corresponding to anchor B are included.
Please refer to fig. 4a, fig. 4b, and fig. 4c, which are schematic diagrams of a live confrontation interface provided in an embodiment of the present application. In fig. 4a, 4b, and 4c, there are three competing parties participating in the live broadcast campaign, which correspond to the first anchor, the second anchor, and the third anchor, respectively, where the first anchor includes anchor a, the second anchor includes anchor b, and the third anchor includes anchor c, and in the live broadcast competing interfaces shown in fig. 4a, 4b, and 4c, the first anchor interface a corresponding to anchor a, the second anchor interface b corresponding to anchor b, and the third anchor interface c corresponding to anchor c are included.
In fig. 3a and 4a, a plurality of anchor interfaces in the live broadcast countermeasure interface are arranged in a horizontal direction, such as left and right; in fig. 3b and 4b, a plurality of anchor interfaces in the live confrontation interface are arranged in a vertical direction, such as up and down; in fig. 3c, a first anchor interface corresponding to anchor a and a second anchor interface corresponding to anchor B are arranged by diagonal; in fig. 4c, the plurality of anchor interfaces in the live confrontation interface are arranged in a ring.
It should be noted that the arrangement of the anchor interfaces in the live countermeasure interfaces shown in fig. 3a, fig. 3b, and fig. 3c, fig. 4a, fig. 4b, and fig. 4c is only an example, and the anchor interfaces may be arranged in other manners.
In one embodiment, the live confrontation interface further comprises a visual effect generated by a light source capable of distinguishing a plurality of anchor interfaces.
For example, in the scenes shown in fig. 3a, 3b, 3c, there may be one light source. If a light source exists in a first anchor interface corresponding to the anchor A (the light source parameter of the light source can be modified when the first anchor interface is adjusted), the visual effect generated by the light source acts on the first anchor interface corresponding to the anchor A in the live broadcast countermeasure interface, and a second anchor interface corresponding to the anchor B does not have the light source; or the light source is in the middle position of the first anchor interface and the second anchor interface (the light source parameters of the light source can be modified when the live countermeasure interface is adjusted), and the generated special effect of the visual angle exists in the first anchor interface and the second anchor interface.
The light source may also be multiple, for example, each confrontation party participating in the live confrontation activity, for example, if one light source corresponds to both the first anchor interface and the second anchor interface, the colors of the light generated by the light sources corresponding to the first anchor interface and the second anchor interface are different, and the visual effect generated by the light source corresponding to each anchor interface acts on the corresponding anchor interface in the live confrontation interface. As shown in fig. 3a, 3B, and 3c, a first anchor interface a corresponding to the anchor a and a second anchor interface B corresponding to the anchor B both have a corresponding light source, and the color of light generated by each light source is different, for example, the color of light corresponding to the first anchor interface a is red, and the color of light corresponding to the second anchor interface B is blue. As shown in fig. 4a, 4b, and 4c, anchor a corresponds to a light source, the visual effect generated by the light source acts on a first anchor interface a corresponding to anchor a, anchor b also corresponds to a light source, the visual effect generated by the light source acts on a second anchor interface b corresponding to anchor b, anchor c also corresponds to a light source, the visual effect generated by the light source acts on a third anchor interface c corresponding to anchor c, and so on.
In an embodiment, before the step of displaying a live countermeasure interface including at least a first anchor interface and a second anchor interface, the method for controlling the live interface further includes: and generating a live confrontation interface.
In one embodiment, as shown in fig. 5, the step of generating the live countermeasure interface includes the following steps 201 to 204.
And 201, responding to the counterinvitation operation of the first anchor aiming at the second anchor, and sending the counterinvitation information to the second anchor.
In the virtual broadcasting state, a terminal (electronic equipment) where a first anchor is located triggers a countervailing invitation operation of the first anchor aiming at a second anchor, information corresponding to the countervailing invitation operation is sent to a server, and the server responds to the countervailing invitation operation of the first anchor aiming at the second anchor and sends countervailing invitation information to the second anchor when determining that the first anchor and the second anchor both support a countervailing mode.
The first anchor can complete virtual broadcasting through the virtual broadcasting function of the live broadcast client, or the first anchor can complete virtual broadcasting through an official party when a scene is on line. And when the virtual broadcasting is finished, the first main broadcasting is in a virtual broadcasting state. In the virtual broadcast state, the first anchor invites or selects a second anchor which needs to participate in the anti-live activity through the live client.
In this case, the information corresponding to the counterinvitation operation includes a first anchor identifier of the first anchor, such as a first anchor ID, and a second anchor identifier of the second anchor, such as a second anchor ID; the counterinvitation operation may also be a trigger operation only for the corresponding invitation control, in this case, the information corresponding to the counterinvitation operation does not carry any anchor information of the second anchor, but carries the first anchor identifier of the first anchor, and after receiving the information corresponding to the counterinvitation operation, the server randomly allocates/allocates the second anchor matching the first anchor according to a certain rule. Wherein, the second anchor also corresponds to the second anchor identification.
The server determines whether the first anchor and the second anchor support the opening countermeasure mode according to the first anchor identification and the second anchor identification. Specifically, the server respectively obtains first virtual live broadcast scene information of a first anchor corresponding to a first anchor identifier and second virtual live broadcast scene information of a second anchor corresponding to a second anchor identifier, the first virtual live broadcast scene information and the second virtual live broadcast scene information both comprise a field which can support a countermeasure mode, and the field is carried when a corresponding virtual live broadcast scene is constructed at a live broadcast client and is taken as basic information of the corresponding virtual live broadcast scene information to be brought into a live broadcast platform. If the fields in the first virtual live broadcast scene information and the second virtual live broadcast scene information both indicate that the countermeasure mode is supported, the first anchor and the second anchor both support the countermeasure mode starting, a prompt that the countermeasure mode can be started is returned to a live broadcast client of the first anchor, otherwise, an error prompt message is returned to prompt, and the countermeasure mode is ended.
It should be noted that the first anchor and the second anchor both support the on-confrontation mode, which is a precondition for participating in the confrontation live activity. The control method of the live broadcast interface in the embodiment of the application is expanded under the precondition.
And if the server determines that the first anchor and the second anchor both support the opening of the countermeasure mode, the server sends countermeasure invitation information to the second anchor corresponding to the second anchor identification.
And 202, in response to the invitation accepting operation of the second anchor based on the counterinvitation information, respectively acquiring a live scene interface corresponding to the first anchor and a live scene interface corresponding to the second anchor.
The method comprises the steps that a first anchor enters a confrontation mode after receiving a prompt which is sent by a server and can start the confrontation mode; after receiving the counterinvitation information sent by the server, the second anchor can decide to accept the counterinvitation or reject the counterinvitation, and when the second anchor decides to accept the counterinvitation, the second anchor triggers an invitation accepting operation, such as triggering an invitation accepting control and the like. The server enters the confrontation mode in response to the second anchor accepting the invitation operation based on the confrontation invitation information.
After the first anchor and the second anchor enter the confrontation mode, the server respectively acquires a live scene interface corresponding to the first anchor and a live scene interface corresponding to the second anchor. For example, a live scene interface corresponding to a first anchor may be obtained from an electronic device where the first anchor is located, and a live scene interface corresponding to a second anchor may be obtained from an electronic device where the second anchor is located.
The live broadcast method comprises the steps that a first virtual live broadcast scene is displayed through a live broadcast scene interface corresponding to a first anchor, a second virtual live broadcast scene is displayed through a live broadcast scene interface corresponding to a second anchor, and the first virtual live broadcast scene and the second virtual live broadcast scene respectively comprise character patch data corresponding to the anchor, corresponding scene model data and a corresponding first virtual camera. The scene model data comprises coordinate data, a material map, illumination information and the like of the scene model.
And 203, generating a first anchor interface according to the live scene interface corresponding to the first anchor, and generating a second anchor interface according to the live scene interface corresponding to the second anchor.
In one embodiment, step 203 comprises: creating a blank virtual scene interface; and equally dividing the blank virtual scene interfaces according to the number of the confrontation parties participating in the confrontation to obtain a corresponding number of blank anchor interfaces, and placing the live scene interface corresponding to each confrontation party into the corresponding blank anchor interface to obtain the anchor interfaces in the corresponding number. The blank virtual scene interface is used for generating and presenting a live confrontation interface. When the confrontation parties participating in the confrontation are two parties, such as a first anchor and a second anchor, the first anchor comprises an anchor A, the second anchor comprises an anchor B, correspondingly, the blank virtual scene is divided into two equal parts to obtain two blank anchor interfaces, a first virtual live broadcast scene corresponding to the anchor A and a second virtual live broadcast scene corresponding to the anchor B are placed into the corresponding blank anchor interfaces, and a first anchor interface A corresponding to the anchor A and a second anchor interface B corresponding to the anchor B are obtained.
Wherein, the step of placing the virtual live broadcast scene corresponding to each confrontation party into the corresponding blank anchor interface to obtain the anchor interfaces with corresponding quantity comprises: placing the character patch data in the anchor interface corresponding to each confronter on preset coordinates in a blank anchor interface, for example, placing the character patch data of the anchor a on first preset coordinates (the first preset coordinates are located at the central position of the blank anchor interface) in the corresponding blank anchor interface, placing the character patch data of the anchor B on second preset coordinates (the second preset coordinates are located at the central position of the blank anchor interface) in the corresponding blank anchor interface, and simultaneously placing the corresponding scene model data on the corresponding position in the corresponding blank anchor interface; recalculating camera parameters of the corresponding virtual camera according to the relative coordinate relationship between the scene model data and the character patch data in the corresponding anchor interface, wherein the camera parameters are obtained again, and the corresponding anchor interface can enable the main body background elements to be in a visual range, for example, the camera parameters of the first virtual camera in the virtual live broadcast scene where the anchor A is located and the camera parameters of the first virtual camera in the virtual live broadcast scene where the anchor B is located; and cutting the corresponding virtual live broadcast scene according to the corresponding camera parameters so as to cut scene model data, special effects, light source data and the like which do not need to be displayed in the visual angle, so as to obtain corresponding anchor interfaces, such as a first anchor interface A and a second anchor interface B. It can be understood that, after receiving the virtual live broadcast scene data sent by the corresponding anchor, the blank virtual scene interface reconstructs the respective virtual live broadcast scene by taking the placement coordinates of the character patch data corresponding to the anchor a and the anchor B as the central point, so as to obtain the corresponding anchor interfaces, such as the first anchor interface a and the second anchor interface B.
And 204, generating a live countermeasure interface comprising a first anchor interface and a second anchor interface through virtual camera shooting.
And after the first anchor interface and the second anchor interface are obtained, splicing the first anchor interface and the second anchor interface to obtain a live broadcast confrontation interface in an initial state. For example, if there are two current countermeasure parties, namely, a anchor a and an anchor B, the first anchor interface a and the second anchor interface B are spliced to obtain a live countermeasure interface in an initial state, as shown in fig. 3a to 3 c; if the number of the current countermeasure parties is three, the blank virtual scene is divided into three equal parts correspondingly, a first anchor interface a corresponding to the anchor a, a second anchor interface b corresponding to the anchor b and a third anchor interface c corresponding to the anchor c are respectively placed, and the first anchor interface a, the second anchor interface b and the third anchor interface c are spliced to obtain a live broadcast countermeasure interface in an initial state, as shown in fig. 4a to 4 c.
The method comprises the steps that a virtual camera is generated in a live broadcast confrontation interface, camera parameters of the virtual camera comprise the coordinates, the orientation, the focal length and the like of the virtual camera, the coordinates, the orientation and the focal length of the virtual camera are adjusted to enable the camera view angle of the virtual camera to comprise a plurality of anchor interfaces, therefore, the live broadcast confrontation interface comprising a first anchor interface and a second anchor interface is generated through shooting of the virtual camera, and the placement position of the virtual camera keeps the areas occupied by the anchor interfaces in an evenly-divided state.
As shown in fig. 3a to 3c and fig. 4a to 4c, the corresponding views are schematic views of the live confrontation interface in the initial state. In fig. 3a to 3c, areas occupied by the first anchor interface a and the second anchor interface B corresponding to the two anchor parties a and B are in an equally divided state, and in fig. 4a to 4c, areas occupied by the first anchor interface a corresponding to the three anchor parties a, the second anchor interface B corresponding to the anchor B, and the third anchor interface c corresponding to the anchor c are in an equally divided state.
It should be noted that the live broadcast instance corresponding to the anchor also needs to store the respective original virtual live broadcast scenes for use when the countermeasure mode is ended and the normal state is restored. If the live broadcast instance corresponding to the anchor A stores the first anchor interface A of the live broadcast instance, which is used for displaying the first virtual live broadcast scene, and the live broadcast instance corresponding to the anchor B stores the second anchor interface B, which is used for displaying the second virtual live broadcast scene.
In an embodiment, as shown in fig. 5, the step of generating the live countermeasure interface further includes steps 205 to 206.
205, according to the virtual camera, performing deletion and fusion processing on the overlapped part in the live broadcast confrontation interface, and performing cutting processing on the live broadcast confrontation interface after the deletion and fusion processing.
And after the virtual camera is generated, deleting and fusing the overlapped part in the live confrontation interface according to the camera view angle of the virtual camera. The method specifically comprises the following steps: selecting one of the overlapped parts in at least two anchor interfaces in the live broadcast countermeasure interfaces in the camera view angle of the virtual camera according to a preset template rule, and removing the other overlapped part; aiming at the overlapped part of the illumination information, calculating the overlapping range of the overlapped part and the color temperature interpolation of the overlapped part and the non-overlapped part to regenerate a universal illumination according to the color temperature interpolation so as to balance the illumination in the seen live broadcast confrontation interface and ensure the balance of visual effect; and deleting and reconstructing repeated later-period boxes and special-effect assets in the live broadcast countermeasure interface according to a preset template rule, so that unexpected errors and the like are prevented from being generated in the live broadcast countermeasure interface.
And (3) cutting the deleted and fused live broadcast confrontation interface according to the virtual camera, for example, cutting the scene edge of the live broadcast confrontation interface, so that the overall performance is improved, the model special effect which is not required to be generated is hidden, and the area occupied by the anchor interfaces of at least two confronters is ensured to be in a balanced state.
It is noted that the above is merely an example, wherein further other processes may be included.
And 206, generating light sources for the first anchor interface and the second anchor interface in the live confrontation interface, and generating visual effects of the light sources in the live confrontation interface.
And generating light sources for at least two anchor interfaces, such as a first anchor interface and a second anchor interface, in the live confrontation interface according to the confrontation mode interaction template. The light source comprises light source parameters such as light intensity, coordinates, projection angle and the like. As described above, when there are two opponents, there may be one or two light sources, and the two light sources generate light with different colors, such as blue and red, respectively. When there are a plurality of competitors, there may be a plurality of light sources, where there is one light source in the anchor interface corresponding to each competitor, and the color of light generated by the light source in the anchor interface corresponding to each competitor is different.
And after the light source is generated, generating the visual effect of the light generated by the light source in the live broadcast confrontation interface according to the light source parameters. In the live broadcast confrontation interface in the initial state, the light sources in the anchor interfaces corresponding to at least two confronters are the same in parameters except that the light sources are different in color and different in three-dimensional coordinate (although the three-dimensional coordinates of the light sources in the live broadcast confrontation interface are different, the relative coordinates of the light sources in different anchor interfaces are the same in the respective anchor interfaces, and the heights of the light sources in the live broadcast confrontation interface are the same), for example, the generated light sources are the same in intensity, and the projection angles are the same. In this way, in the live broadcast countermeasure interface in the initial state, the visual effect of the light generated by the light source is consistent except that the color of the light generated by the light source is different and the coordinates of the visual range of the generated light are different, for example, the size of the visual range influenced by the light source is consistent. For example, the light source of the countermeasure corresponding to the anchor a is red, and the shape of the affected view angle range is circular/sector; the light source of the countermeasure corresponding to the anchor B is blue, and the range of the affected view angles is a circle/sector with the same size and shape. It should be noted that the size of the viewing angle range may be any other size, and the shape of the viewing angle range may be any other shape.
Taking the example that each anchor interface corresponds to one light source, as shown in fig. 3a to 3c, in the initial state, in the live broadcast anchor interface, the visual range 11 (the prototype region indicated by the dotted line) affected by the light source of the first anchor interface a corresponding to the anchor a is the same as the visual range 12 affected by the light source of the second anchor interface B corresponding to the anchor B, and the visual range generated by the light source is in the original shape. In fig. 4a to 4c, in the initial state, the visual range 21 affected by the light source of the first anchor interface corresponding to anchor a, the visual range 22 affected by the light source of the second anchor interface corresponding to anchor b, and the visual range 23 affected by the light source of the third anchor interface corresponding to anchor c are the same in size and shape.
The display image effect of different anchor interfaces in the live broadcast countermeasure interface can be adjusted by modifying the light source parameter.
After the processing is finished, the server sends the generated live broadcast countermeasure interface to a terminal corresponding to the anchor and a terminal corresponding to the audience user, and the like, the terminal corresponding to the anchor switches the live broadcast countermeasure interface to a main video stream branch, the generation and synchronization of the basic scene under the countermeasure mode are finished, the audience user enters a live broadcast room of the countermeasure live broadcast activity at a corresponding live broadcast client, the anchor of at least two countermeasures can be seen to be in the same live broadcast countermeasure interface, the anchor occupies a certain area respectively, and the visual effect is distinguished, for example, two different anchor interfaces are distinguished through red and blue. Therefore, the audience user can clearly and intuitively feel the confrontation states of different confrontation parties, and the live broadcast watching experience of the audience user is improved.
In an embodiment, the step of generating the live countermeasure interface may be further performed on a terminal where the anchor is located. For example, the terminal of the anchor with the strongest computing capability can be selected from a plurality of terminals of the anchors to generate a live countermeasure interface; or the terminal of each anchor generates a corresponding live broadcast confrontation interface respectively for the server to compare, so as to avoid cheating behaviors and the like generated in the process of generating the live broadcast confrontation interface by a single terminal. The description will be made by taking an example of the completion on the terminal where the first anchor is located. Correspondingly, the step of generating the live confrontation interface comprises the following steps: in a virtual broadcasting state, responding to a countervailing invitation operation of a first anchor to a second anchor, and sending a countervailing invitation request to a server, so that the server sends countervailing invitation information to the second anchor when determining that the first anchor and the second anchor both support a countervailing mode, and after the second anchor enters the countervailing mode based on the countervailing invitation information, sending a live scene interface of the first anchor, which is used for displaying a first virtual live scene, to electronic equipment corresponding to the second anchor, and sending a live scene interface of the second anchor, which is used for displaying a second virtual live scene, to electronic equipment corresponding to the first anchor; receiving a live scene interface corresponding to a second anchor sent by a server, and acquiring a live scene interface corresponding to a first anchor; generating a second anchor interface and a first anchor interface according to a live scene interface corresponding to a second anchor and a live scene interface corresponding to a first anchor, generating a live confrontation interface comprising the first anchor interface and the second anchor interface through shooting of a virtual camera, carrying out deletion fusion processing on an overlapped part in the live confrontation interface according to the virtual camera, carrying out cutting processing on the live confrontation interface after deletion fusion processing, generating light sources for the first anchor interface and the second anchor interface in the live confrontation interface, and generating a visual effect of the light sources in the live confrontation interface. And then, switching the generated live broadcast countermeasure interface to a main video stream branch, sending the live broadcast countermeasure interface to a server, and sending the live broadcast countermeasure interface to a terminal of the audience user, and the like. In an embodiment, the step 101 may also be performed on a terminal.
102, acquiring first interaction data aiming at a first anchor and second interaction data aiming at a second anchor, and determining a first anticaking result according to the first interaction data and the second interaction data.
After the live broadcast resisting activity is started, audience users can support a first anchor and a second anchor in the live broadcast resisting activity, different audience users can select the first anchor or the second anchor to give gifts, send barrages, like praise according to own subjective wishes, and the interaction of the given gifts, the barrages, the praise and the like of the first anchor or the second anchor is used as first interactive data or second interactive data.
The method comprises the steps that a terminal where audience users are located responds to the interaction operation of the audience users corresponding to a certain anchor, such as a first anchor, obtains interaction data corresponding to the interaction operation, and sends the interaction data to a server of a live broadcast platform. After receiving first interactive data corresponding to a first main broadcast and second interactive data corresponding to a second main broadcast of audience users, the server determines a first confrontation result according to the first interactive data and the second interactive data, and sends the first interactive data, the second interactive data, the first confrontation result and other information to all main broadcasts participating in the confrontation live broadcast activity and terminals where all audience users are located.
In one embodiment, the step of determining, by the server, the first confrontation result according to the first interaction data and the second interaction data includes: filtering and/or converting the first interactive data and the second interactive data to determine first supporting information and second supporting information or determine first score information and second score information; and determining a first confrontation result according to the first supporting information and the second supporting information and/or the first score information and the second score information. Furthermore, the first support information and the second support information, the first score information and the second score information, etc. need to be sent to the terminals of all the anchor users and audience users participating in the live-fighting activity.
The first support information and the second support information comprise barrage data for a first anchor and barrage data for a second anchor, and the first interaction data and the second interaction data are filtered and/or converted to determine the first support information and the second support information, or determine first score information corresponding to the first interaction data and second score information corresponding to the second interaction data, and the steps of: according to a logic rule of the countermeasure mode, filtering bullet screen data meeting a preset keyword of the logic rule in the first interaction data and the second interaction data, or filtering meaningless bullet screen data to obtain filtered first bullet screen data and second bullet screen data, for example, filtering out bullet screen data with a pure punctuation mark, bullet screen data with a pure expression, and the like, and respectively determining the first bullet screen data and the second bullet screen data as first support information and second support information; or converting the barrage data, the approval data and/or the gift giving data in the first interactive data and the second interactive data into corresponding winning points or payment data according to the logic rule of the anti-play mode, and taking the corresponding winning points or payment data as the first score information corresponding to the first interactive data and the second score information corresponding to the second interactive data respectively. As can be understood, after the first interaction data is filtered and/or converted, the first support information and/or the first score information is obtained; and filtering and/or converting the second interaction data to obtain second support information and/or second score information.
Wherein the first confrontation result can be determined directly from the first score information and the second score information. For example, the first score information is 70, the second score information is 30, and the first anticaking result may be a ratio of the first score information to the second score information, such as 7:3, or other calculation methods.
Wherein the first countermeasure result can be determined based on the first support information and the second support information. For example, the ratio of the number of bullet screens in the bullet screen data in the first support information to the number of bullet screens in the bullet screen data in the second support information within a certain time is used as the first anticaking result, or other calculation methods are also possible.
Wherein the first confrontation result may be determined according to the first support information and the first score information, and the second support information and the second score information. For example, after the first supporting information and the second supporting information are normalized, the first score information and the second score information are normalized, the first supporting information and the first score information are weighted correspondingly to obtain a first weighting result, the second supporting information and the second score information are weighted to obtain a second weighting result, and the first anticaking result is determined according to the first weighting result and the second weighting result. Such as a ratio of the first weighted result and the second weighted result as the first confrontation result. Other calculation methods are also possible.
In an embodiment, after the step of acquiring the first interactive data for the first anchor and the second interactive data for the second anchor, the step of the control method for the live interface further includes: and determining first support information and second support information according to the first interaction data and the second interaction data, and respectively displaying the first support information on the first anchor interface and the second support information on the second anchor interface in a bullet screen mode.
In an embodiment, the live countermeasure interface of the present application further includes a virtual plane for carrying the first support information and the second support information, and the virtual plane may be a wall surface, a panel, or the like in the live countermeasure interface. Specifically, coordinate data (which may be three-dimensional coordinate data, and correspondingly, a three-dimensional model is included in the live countermeasure interface) in the live countermeasure interface is obtained, a virtual plane carrying the first support information and the second support information is determined according to the coordinate data, and the virtual plane is obtained. And the virtual plane corresponding to each anchor interface is in the area where the corresponding anchor interface is located. Some positions in some virtual planes have key decorative elements, which cannot be used as virtual planes for bearing supporting information; it can be understood that there cannot be a key decoration element on the virtual plane carrying the user support information, where there is a corresponding record of whether there is a key decoration element in the rule of the interactive template in the countermeasure mode, that is, the virtual plane carrying the support information in the live countermeasure interface is determined according to the rule of the interactive template and the coordinate data in the countermeasure mode. It should be noted that, in the embodiment of the present application, the user support information is displayed on a virtual plane in the live countermeasure interface, and the user support information is displayed in the live countermeasure interface, where the virtual plane belongs to a part of a virtual live scene.
The method comprises the steps of obtaining a virtual plane for bearing user interaction data, displaying first support information on a corresponding virtual plane of an area where a first anchor interface is located, and displaying second support information on a corresponding virtual plane of an area where a second anchor interface is located. And the first support information and the second support information are respectively displayed in a bullet screen mode. For example, an output mode of the barrage data corresponding to the first support information is obtained; and displaying the bullet screen data, namely the first support information, on the virtual plane corresponding to the first anchor interface according to the corresponding output mode. Each confrontation party/each anchor interface corresponds to an output mode of the barrage data, each confrontation party/each anchor interface corresponds to a virtual plane such as a wall surface and the like, and the barrage data of the confrontation party/anchor interface is displayed on the virtual plane of the anchor interface in the corresponding output mode of the barrage data.
Wherein, the output mode comprises at least one of a motion path, a font size, a font color, an information quantity, a motion range and the like when the output is carried out. The movement path refers to a movement path of the bullet screen data on a virtual plane, such as moving from left to right, moving from top to bottom, and the like; the information quantity refers to the quantity of the barrage which can be displayed simultaneously on the corresponding virtual plane at one time, and the motion range refers to the range of movement of the barrage data on the corresponding virtual plane. Specifically, on a virtual plane corresponding to each confronter/each anchor interface, the barrage data is dynamically updated on the corresponding virtual plane in a material mapping implementation manner according to a corresponding output manner, so that the effect that the barrage data shuttles through the virtual plane of the live-broadcast confrontation interface is achieved.
In the initial state, the output modes of the live broadcast countercheck interface barrage data can be completely the same. For example, in fig. 3a to 3c, the size of the font size of the barrage data on the virtual plane 31 in the first anchor interface a completely coincides with the size of the font size of the barrage data on the virtual plane 32 in the second anchor interface B; in fig. 4a to 4c, the size of the font size of the barrage data on the virtual plane 41 in the first anchor interface a, the size of the font size of the barrage data on the virtual plane 42 in the second anchor interface b, and the size of the font size of the barrage data on the virtual plane 43 in the third anchor interface c are all completely the same. For illustration, only one bullet screen data is shown in fig. 3a to 3c, and fig. 4a to 4 c.
In an embodiment, after the step of acquiring the first interactive data for the first anchor and the second interactive data for the second anchor, the step of the control method for the live interface further includes: according to the first interactive data and the second interactive data, determining first score information corresponding to the first interactive data and second score information corresponding to the second interactive data, and graphically displaying the first score information and the second score information in a live broadcast countermeasure interface. Each anchor interface corresponds to a virtual plane such as a panel, and the score information corresponding to the anchor interface is graphically displayed on the virtual plane of the anchor interface, for example, the first score information and the second score information are displayed in a progress bar form.
In the initial state, the score information of different anchor interfaces in the live-broadcast countermeasure interface is a preset initial value, for example, zero, and as shown in fig. 4a to 4c, the progress bar 61 in the first anchor interface a where the anchor a is located, the progress bar 62 in the second anchor interface b where the anchor b is located, and the progress bar 63 in the third anchor interface c where the anchor c is located are not filled at present. In some embodiments, it is also possible to display the progress bar with the corresponding length according to how many points are, so that in the initial state, the progress bar is not displayed in each anchor interface because of no corresponding point information.
In some embodiments, in the initial state, the progress bar of each anchor interface in the live countermeasure interface is the same, such as the progress bar 51 of the first anchor interface a where anchor a is located and the progress bar 52 of the second anchor interface B where anchor B is located in fig. 3a to 3 c.
In one embodiment, a progress bar is provided in the live confrontation interface to achieve the effect achieved by the progress bars 51 and 52 in fig. 3a to 3 c. In an initial state, the set progress bar is placed at a boundary between a first anchor interface a of an anchor a and a second anchor interface B corresponding to the anchor B, and the lengths of partial progress bars displayed in two different anchor interfaces are the same, so that the achieved effect is as shown in fig. 3a to 3 c.
In each anchor interface, the virtual plane for displaying the bullet screen data (support information) and the score information may be the same virtual plane or different virtual planes. Typically different virtual planes. It should be noted that other interactive effects, such as dropping a gift in a scene, may also be implemented.
And 103, adjusting the camera parameters of the virtual camera corresponding to the live broadcast confrontation interface based on the first confrontation result so that the display interface sizes of the first main broadcast interface and the second main broadcast interface displayed in the live broadcast confrontation interface are matched with the first confrontation result.
Besides at least a first anchor interface and a second anchor interface, the live confrontation interface also comprises a virtual camera corresponding to the live confrontation interface, support information, score information, visual effects generated by a light source for distinguishing corresponding confrontation parties and the like.
In this embodiment of the application, when the display interface sizes of the first anchor interface and the second anchor interface in the live broadcast countermeasure interface are adjusted, the character patch data, the scene model data, and the like corresponding to different anchors in the first anchor interface or the second anchor interface are not re-turned, and the camera parameters of the first virtual camera corresponding to the first anchor interface and the camera parameters of the first virtual camera corresponding to the second anchor interface are not adjusted. In the adjustment, the data source in the first anchor interface or the second anchor interface in the embodiment of the present application is not changed. The sizes of the display interfaces of the first anchor interface and the second anchor interface are changed by adjusting the camera parameters of the virtual camera corresponding to the live broadcast countermeasure interface, so that the effect of extruding one party participating in the countermeasure to the other party is generated, the audience user can visually see the current progress state of the live broadcast countermeasure activity, the watching experience of the audience user is improved, the countermeasure atmosphere of the live broadcast countermeasure activity can be created, and the enthusiasm of the audience user for supporting the operation of the anchor broadcast in the countermeasure battle is stimulated.
Specifically, the step 103 includes: obtaining a first adjustment proportion corresponding to a first anticaking effect; determining a first adjusting direction according to the relative position relation of the first anchor interface and the second anchor interface in the live broadcast countermeasure interface; and adjusting the camera parameters of the virtual camera corresponding to the live broadcast confrontation interface according to the first adjustment direction and the first adjustment proportion.
In an embodiment, if the first countermeasure result is a ratio of first support information corresponding to the first interactive data and second support information corresponding to the second interactive data, or the first countermeasure result is a ratio of first score information corresponding to the first interactive data and second score information corresponding to the second interactive data, or the first countermeasure result is a ratio of the first support information and the first score information and the second support information and the second score information corresponding to the second interactive data. The first adjustment proportion corresponding to the first anticaking effect can be obtained by adding each specific number in the ratio and dividing the number by the number of the number to obtain a mean value, then subtracting each specific number from the mean value to obtain a subtraction result, and placing the subtraction result in the value obtained by adding each specific number to obtain the corresponding first adjustment proportion.
For example, the ratio of the first countermeasure results corresponding to anchor a and anchor B is 5:4, if the live countermeasure interface is equally divided into 9 equal parts, and initially, the first anchor interface where anchor a is located and the second anchor interface where anchor B is located are equally divided into 4.5:4.5, the size of the display interface corresponding to the first anchor interface where anchor a is located is increased by 0.5 equal part, and the size of the display interface corresponding to the second anchor interface where anchor B is located is decreased by 0.5 equal part, so that the first adjustment ratio is determined to be 0.5 equal part/9 equal part to 1: 18.
For example, the ratio of the first countermeasure results corresponding to the anchor a, the anchor b, and the anchor c is 4:3:2, if the live countermeasure interface is equally divided into 9 equal parts, and if the live countermeasure interface is initially equally divided into 3:3:3, the display interface size corresponding to the first anchor interface a corresponding to the anchor a, the second anchor interface b corresponding to the anchor b, and the third anchor interface c corresponding to the anchor c is equally divided into 3:3:3, the display interface size corresponding to the first anchor interface a corresponding to the anchor a is increased by 4-3 to 1 equal part, the display interface size corresponding to the second anchor interface b corresponding to the anchor b remains unchanged, and the display interface size corresponding to the third anchor interface c corresponding to the anchor c is decreased by 3-2 to 1 equal part, and the first adjustment ratio is determined to be two values, which are 1/9 and 1/9 respectively.
In an embodiment, the corresponding relationship between the corresponding ratio (range) and the first adjustment ratio may also be preset. For example, when the ratio is a1, the corresponding first adjustment ratio is b1, and when the ratio is a2, the corresponding first adjustment ratio is b 2; or when the ratio belongs to [ a1, a2], the corresponding first adjustment proportion is b1, the ratio belongs to (a2, a3], the corresponding first adjustment proportion is b2, and the like.
The first adjustment ratio corresponding to the first anticaking effect may also be determined and obtained according to other manners.
The first adjustment proportion is determined and the first adjustment direction is also determined. The first adjustment direction can be determined according to the relative position relationship among the first confrontation result, the first anchor interface and the second anchor interface in the live confrontation interface. For example, the ratio of the first countermeasure results corresponding to the anchor a and the anchor B is 5:4, the relative position relationship between the first anchor interface a corresponding to the anchor a and the second anchor interface B corresponding to the anchor B in the live countermeasure interface is that the first anchor interface a is on the left, and the second anchor interface B is on the right, and then it is determined that the first adjustment direction is horizontal right adjustment.
And adjusting the camera parameters of the corresponding virtual camera in the live confrontation interface according to the first adjustment direction and the first adjustment proportion. If it is determined that the first adjustment direction is horizontal rightward adjustment, camera parameters of the virtual camera are adjusted, for example, coordinates of the virtual camera can be adjusted to horizontally move leftward, so that the first anchor interface a corresponding to the anchor a is expanded in a visual effect in a horizontal rightward direction. Thus, the visual effect produced is: the size of the display interface of the first anchor interface a corresponding to the anchor a is increased, and the size of the display interface of the second anchor interface B corresponding to the anchor B is decreased, which means that the first anchor interface a corresponding to the anchor a is extruded towards the second anchor interface B corresponding to the anchor B.
If it is determined that the first adjustment direction is horizontal rightward adjustment and the first adjustment ratios are 1/9 and 1/9, respectively, the camera parameters of the virtual camera are adjusted, for example, the coordinate level of the virtual camera can be adjusted to move leftward, so that the first anchor interface a corresponding to anchor a visually expands in the horizontal rightward direction. Thus, the visual effect produced is: the display interface size of the first anchor interface a corresponding to the anchor a is increased, the display interface size of the second anchor interface b corresponding to the anchor b is kept unchanged, and the display cross-sectional size of the third anchor interface c corresponding to the anchor c is decreased, so that the first anchor interface a corresponding to the anchor a is extruded to the second anchor interface b corresponding to the anchor b, and the second anchor interface b corresponding to the anchor b is extruded to the third anchor interface c corresponding to the anchor c.
In an embodiment, the step of adjusting the camera parameters of the corresponding virtual camera in the live confrontation interface according to the first adjustment direction and the first adjustment ratio includes: determining a first pixel value based on the first adjustment ratio; and adjusting camera parameters of the virtual camera so as to shrink/expand a first anchor interface displayed in the live confrontation interface by a first pixel value in a first adjustment direction, and expand/shrink the first pixel value in the first adjustment direction by a second anchor interface.
In one embodiment, the step of determining the first pixel value based on the first adjustment ratio comprises: and acquiring the size of a screen size corresponding to the terminal, and determining a first pixel value according to the size of the screen size and the first adjustment proportion. For example, the screen size of the terminal is 980 × 1080 pixels, the first adjustment proportion is 10%, if the current live confrontation interface is displayed in a vertical screen mode, 980 × 10% is 98px, and the first pixel value is 98 pixels; if the current live confrontation interface is displayed in a landscape mode, the first pixel value is 1080 × 10% — 108 pixels. Or the first pixel value may also be determined according to other ways.
For example, a first anchor interface a where the current anchor a is located is on the left side of the level of the live countermeasure interface, a second anchor interface where the anchor B is located is on the right side of the level of the live countermeasure interface B, and the first adjustment direction is: and if the first pixel value is 100px horizontally to the right, adjusting the camera parameters of the virtual camera corresponding to the live confrontation interface, for example, moving the coordinates of the virtual camera to the horizontal left direction so that the first anchor interface expands 100px in the horizontal right direction in visual effect.
In an embodiment, the method for controlling the live interface further includes: when the display position of the first anchor or the second anchor deviates from the central position of the first anchor interface or the second anchor interface, adjusting the camera parameters of the virtual camera to correct the position information of the first anchor or the second anchor so that the first anchor is positioned at the central position of the first anchor interface and the second anchor is positioned at the central position of the second anchor interface.
The center position may be a center point of the first anchor interface/the second anchor interface, that is, a position point, or a position range, for example, a position range near the center point of the first anchor interface/the second anchor interface.
The method comprises the steps of obtaining the scene size of a live broadcast countermeasure interface, so that when camera parameters of a virtual camera are adjusted, a first anchor interface and a second anchor interface in the live broadcast countermeasure interface are still within a camera view angle of the virtual camera. For example, the camera parameters of the virtual camera may be adjusted, for example, to adjust the coordinates of the virtual camera horizontally to the left, so that the viewing angle range of the virtual camera moves to the left, so as to expand the first anchor interface a by 100px along the horizontal direction to the right, but when the virtual camera moves horizontally to the left, the second anchor in the second anchor interface B corresponding to the right may be caused to deviate from the corresponding center position thereof, and therefore, the focal length/orientation in the camera parameters is adjusted, so that the first anchor in the live broadcast countermeasure interface is located at the center position of the first anchor interface, and the second anchor is located at the center position of the second anchor interface.
And adjusting the camera parameters of the corresponding virtual camera in the live confrontation interface to match the display interface sizes of different anchor interfaces with the first confrontation results. If the live broadcast countermeasure interface comprises a first anchor interface and a second anchor interface, if the size of the display interface of the first anchor interface is expanded, the size of the display interface of the second anchor interface is contracted; and if the size of the display interface of the first anchor interface is shrunk, the size of the display section of the second anchor interface is expanded.
For example, in fig. 6a, the first adjustment direction is horizontal to the right, the camera parameters of the virtual camera are adjusted, for example, the coordinates of the virtual camera are adjusted horizontally to the left, so that the viewing angle range of the virtual camera moves horizontally to the left, the first anchor interface a corresponding to the anchor a expands the corresponding first pixel value in the horizontal to the right direction, and the effect produced after the adjustment is: the display interface size of the first anchor interface A corresponding to the anchor A is increased, and the display interface size of the second anchor interface B corresponding to the anchor B is decreased. In fig. 6b, the first anchor interface a corresponding to anchor a is extruded to the second anchor interface b corresponding to anchor b, and the second anchor interface b corresponding to anchor b is extruded to the third anchor interface c corresponding to anchor c, and the produced effects are as follows: the display interface size of the first anchor interface a corresponding to the anchor is the largest, the display interface size of the second anchor interface b corresponding to the anchor b is moderate, and the display interface size of the second anchor interface c corresponding to the anchor c is the smallest.
In an embodiment, after the step of determining the first confrontation result according to the first interaction data and the second interaction data, the control method of the live interface further includes: adjusting the display screen effect of the first anchor interface and/or the second anchor interface based on the first confrontation result; the display image effect at least comprises at least one of display brightness, contrast and color saturation.
In an embodiment, at least one of display brightness, contrast, color saturation, etc. in the first anchor interface and/or the second anchor interface may be directly adjusted. For example, if it is determined that the first anchor interface a level corresponding to the anchor a expands rightward, the display brightness, the contrast, and the color saturation of the first anchor interface a are adjusted to be higher, and the display brightness, the contrast, and the color saturation of the second anchor interface B remain unchanged; or adjusting the display brightness, the contrast and the color saturation of the second anchor interface B to be lower, and the display brightness, the contrast and the color saturation of the first anchor interface B to be unchanged; or adjusting the display brightness of the first anchor interface a to be higher, the contrast to be larger, and the color saturation to be higher, and adjusting the display brightness of the second anchor interface B to be lower, the contrast to be smaller, and the color saturation to be lower.
In an embodiment, the adjusting of the display screen effect in the first anchor interface and/or the second anchor interface may also be achieved by adjusting a visual effect of a light source in the live countermeasure interface that can distinguish the first anchor interface from the second anchor interface.
Based on the first countermeasure result, adjusting a visual effect of a light source in the live countermeasure interface that can distinguish between the first anchor interface and the second anchor interface to adjust a display screen effect in the first anchor interface and/or the second anchor interface, including: and determining a change parameter of the light source according to the first adjustment proportion and the first adjustment direction, and modifying the light source parameter of the light source according to the change parameter so as to realize adjustment of the display picture effect in the first anchor interface and/or the second anchor interface.
For example, when there is one light source in the live confrontation interface, the following two situations are distinguished:
firstly, assuming that a first anchor interface a corresponding to an anchor a in a live broadcast countermeasure interface is on the left side, a second anchor interface B corresponding to an anchor B is on the right side, the color of a light source of the first anchor interface a is red, the second anchor interface B has no light source, the determined first adjustment direction is horizontal right adjustment, the first adjustment proportion is 10%, the change parameter of the light source is determined to be increased by 10% or the change parameter of the light source is determined according to other proportion parameters, and the light source parameter of the light source is modified according to the change parameter to adjust the picture display effect. For example, if it is determined that the viewing angle range of the generated viewing angle special effect of the light source is increased by 10%, adjusting light source parameters of the light source according to the increased viewing angle range by 10%, such as adjusting coordinates of the light source and a projection angle of the light source; and/or increasing the light intensity by 10%, and adjusting the light source parameters of the light source according to the 10% increased light intensity.
Second, assuming that the light source is located at the middle position of the two anchor interfaces in the initial state, when it is determined that the first adjustment direction is horizontal rightward adjustment, and the first adjustment ratio is 10%, the light source may be adjusted to be away from the second anchor interface B corresponding to the anchor B, to be close to the first anchor interface a corresponding to the anchor a, and the like.
In addition, when there are a plurality of light sources in the live confrontation interface, the method includes:
when the number of the live broadcast interfaces is multiple and each live broadcast interface corresponds to one light source, if a light source of a first anchor interface a corresponding to the anchor a is red and a light source of a second anchor interface B corresponding to the anchor B is blue, the determined first adjustment direction is as follows: and horizontally adjusting to the right, wherein the first adjustment proportion is 10%, and then determining that the change parameter of the light source is that the special effect of the visual angle generated by the light source of the first anchor interface A corresponding to the anchor A is enhanced by 10% and/or the special effect of the visual angle generated by the light source of the second anchor interface B corresponding to the anchor B is reduced by 10%, and the like. Wherein, parameters such as the coordinates, the light intensity, the projection angle and the like of the light source can be adjusted to realize the corresponding effect.
In an embodiment, the variation parameter of the light source may also be determined from the first pixel value.
The aim of squeezing and displaying among different anchor interfaces is achieved by adjusting the light source parameters of the light sources in the live broadcast confrontation interface, and the audience users can clearly and visually feel the confrontation states of the different anchor interfaces, so that the participation sense of the audience users is improved.
For example, as shown in fig. 6a, the visual range 11 affected by the light source in the first anchor interface a corresponding to anchor a becomes larger, and the visual range 12 affected by the light source in the second anchor interface B corresponding to anchor B becomes smaller. In fig. 6b, the visual range 21 affected by the light source in the first anchor interface a corresponding to anchor a becomes larger, the visual range 22 affected by the light source in the second anchor interface b corresponding to anchor b does not change significantly, and the visual range 23 affected by the light source in the third anchor interface c corresponding to anchor c becomes smaller.
In an embodiment, after the step of determining the first confrontation result according to the first interaction data and the second interaction data, the control method of the live interface further includes: and adjusting the output mode of the first supporting information on the first anchor interface and/or the output mode of the second supporting information on the second anchor interface based on the first countermeasure result. The output mode comprises at least one of a motion path, a font size, a font color and an information quantity during output.
For example, if the first confrontation result corresponds to a ratio of anchor a to anchor B of 5:4, or the first adjustment direction is determined based on the first confrontation result as: horizontally to the right; the size of the bullet screen data corresponding to the first support information in the anchor a is adjusted to be larger, at least one of the font color is deepened, the information amount is increased, the movement range is enlarged, and the like, and/or at least one of the font size of the bullet screen data corresponding to the second support information in the anchor B is adjusted to be smaller, the font color is lightened, the information amount is reduced, the movement range is reduced, and the like. When the output modes of the first support information and the second support information are adjusted simultaneously, the adjustment is the same factor, for example, if the character size of the anchor A is adjusted, the character size of the anchor B is correspondingly adjusted, the character size of the anchor A is increased, the character size of the anchor B is decreased, and the like.
In an embodiment, the movement path of the bullet screen data may also be adjusted, for example, the movement paths of the bullet screen data corresponding to the first support information and the second support information in the initial state are all from left to right, but the movement path of the bullet screen data with the display interface size being reduced may be adjusted from right to left in the adjustment process.
In an embodiment, the adjustment magnitudes of the first supporting information and the second supporting information may be further determined according to the first pixel value. For example, if the first anchor interface a corresponding to the anchor a is horizontally adjusted to the right by 100px, the size of the font size corresponding to the first supporting information is increased by one font size, and/or the size of the font size corresponding to the second supporting information is decreased by one font size; if the first anchor interface a corresponding to the anchor a is horizontally adjusted to the right by 200px, the size of the font size corresponding to the first supporting information is increased by two font sizes, and/or the size of the font size corresponding to the second supporting information is decreased by two font sizes, etc., or the size of the font size corresponding to the first supporting information is increased by one font size, and the size of the font size corresponding to the second supporting information is decreased by one font size, etc. It should be noted that the adjustment range is only for illustration and is not limiting.
In an embodiment, the method for controlling a live interface further includes: and when the first score information and the second score information are updated, adjusting a corresponding graphical display result, such as adjusting a material chartlet of the progress bar, according to the updated first score information and second score information.
As shown in fig. 6a, the progress bar 51 corresponding to the first score information corresponding to the anchor a and the progress bar 52 corresponding to the second score information corresponding to the anchor B are both filled to a certain extent, and the current confrontation result can be obviously perceived according to the progress bars. Wherein the progress bar 51 and the progress bar 52 may be displayed as different filling colors.
In an embodiment, when in an initial state, a progress bar is set in the live broadcast confrontation interface and the progress bar is displayed at the joint of two live broadcast interfaces in the live broadcast confrontation interface in an evenly-divided manner, the lengths of corresponding portions of the progress bars in the respective live broadcast interfaces can be adjusted subsequently according to the first score information and the second score information, which can be similar to the end with more score information at the tug-of-war stage, and the end with less excess score information at a portion of the displayed progress bar can achieve the effect as shown in the current fig. 6 a. The score information corresponding to the interactive data corresponding to different anchor interfaces is represented by different colors on the progress bar.
In an embodiment, as shown in fig. 6b, a progress bar 61 corresponding to the first score information corresponding to the anchor a, a progress bar 62 corresponding to the second score information corresponding to the anchor b, a progress bar 63 corresponding to the third score information corresponding to the anchor c, and the like are all filled to a certain extent. In one embodiment, the different progress bars are filled with different colors.
It should be noted that the step 103 includes adjusting the virtual camera, adjusting the display of the first support information and the second support information, adjusting the display of the first score information corresponding to the first interactive data and the display of the second score information corresponding to the second interactive data, adjusting the image display effect on the live broadcast confrontation interface, and so on, which are described by taking the steps as examples, and after the explanation, sending the adjusted live broadcast confrontation interface to the terminals where the multiple anchor broadcasts participating in the confrontation live broadcast activity are located and the terminal where the audience user is located.
In an embodiment, the step 103 may be completed on a terminal where the anchor is located, and after the server determines the first support information and the second support information according to the first interactive data and the second interactive data, and determines the first score information corresponding to the first interactive data and the second score information corresponding to the second interactive data, the server sends the first support information and the second support information, the first score information, and the second score information to the terminal where the anchor is located. And then, adjusting the virtual camera, adjusting the display of the first support information and the second support information, adjusting the display of the first score information corresponding to the first interactive data and the second score information corresponding to the second interactive data, adjusting the image display effect on the live broadcast confrontation interface and the like are completed on the terminal where the main broadcast is located. And after the adjustment is completed, switching the adjusted live broadcast confrontation interface to the main video stream branch, sending the main video stream branch to the server, and sending the main video stream branch to the live broadcast client of the audience user in the live broadcast room for confrontation of live broadcast activities through the server.
After the adjustment, the live broadcast confrontation interface with dynamic change can be seen in the live broadcast client at which the anchor is located and the live broadcast client of the audience user, different live broadcast interfaces in the live broadcast confrontation interface are dynamically extruded back and forth, namely, the interface display sizes of the different live broadcast interfaces change back and forth, and the bullet screen data, the score information, the display picture effect and the like also change synchronously.
In an embodiment, the method for controlling the live interface further includes: and when the server detects that the end condition for ending the live broadcast is met, stopping acquiring the first interactive data and the second interactive data, and sending an end instruction for ending the live broadcast activity to the plurality of anchor broadcasters. The end condition comprises that the interpolation value of the first score information of the first anchor and the second score information of the second anchor reaches a preset threshold value, or the time participating in the live-broadcast-resisting activity reaches a preset time, or one party participating in the live-broadcast-resisting activity initiates a request of request failure, or the live-broadcast-resisting activity is terminated due to other reasons.
In an embodiment, the method for controlling a live broadcast interface, when viewed from a terminal where a first anchor is located, further includes: when a terminal where a first anchor is located detects that an end condition for ending the live broadcast is met, receiving an end instruction for ending the live broadcast activity sent by a server; acquiring a first anchor interface stored in the electronic equipment/terminal where the first anchor is located according to the ending instruction, wherein the first anchor interface is stored before a live broadcast confrontation interface is formed; and switching the live broadcast scene interface of the first anchor from the live broadcast confrontation interface to the stored first anchor interface. And simultaneously, the terminal where the second anchor is located can also perform corresponding detection, and when the end condition is met, the live scene interface of the second anchor is switched to the stored second anchor interface from the live confrontation interface. The embodiment further defines that when the end condition for ending the confrontation is met, the confrontation live broadcast activity is ended, and the virtual live broadcast scene is restored to a normal state, namely, the virtual live broadcast scene corresponding to the live broadcast confrontation interface is restored before the live broadcast confrontation interface is generated.
For example, when the corresponding score data reaches a preset threshold, for example, 1000, and/or the corresponding score data reaches an absolute overwhelming advantage, the server sends an end instruction of the confrontation play mode, the live broadcast client at the anchor receives the end instruction, obtains a corresponding anchor interface stored before the live broadcast confrontation interface is generated according to the end instruction, switches the virtual live broadcast interface to the anchor interface, and notifies the live broadcast client of the audience user. When the live client of the audience user watches the anchor interface which is restored to the normal state and synchronously receives the ending instruction of the confrontation playing mode, the ending information and the corresponding reward are displayed through UI controls of the live client, such as pop windows and the like, and the interactive process is ended.
All the above technical solutions can be combined arbitrarily to form the optional embodiments of the present application, and are not described herein again.
In order to better implement the control method of the live interface in the embodiment of the present application, an embodiment of the present application further provides a control device of the live interface. Referring to fig. 7, fig. 7 is a schematic structural diagram of a control device of a live interface according to an embodiment of the present application. The control device 300 of the live interface may include a display module 301, an acquisition determination module 302, and an adjustment module 303.
The display module 301 is configured to display a live broadcast countermeasure interface that at least includes a first anchor interface and a second anchor interface, where the first anchor interface is a live broadcast scene interface corresponding to a first anchor participating in countermeasure, and the second anchor interface is a live broadcast scene interface corresponding to a second anchor participating in countermeasure.
An obtaining and determining module 302, configured to obtain first interaction data for the first anchor and second interaction data for the second anchor, and determine a first anticaking result according to the first interaction data and the second interaction data;
an adjusting module 303, configured to adjust a camera parameter of a virtual camera corresponding to the live confrontation interface based on the first confrontation result, so that display interface sizes of the first anchor interface and the second anchor interface displayed in the live confrontation interface are matched with the first confrontation result.
In an embodiment, when the step of adjusting the camera parameter of the virtual camera corresponding to the live confrontation interface based on the first anticaking result is executed, the adjusting module 303 specifically executes: obtaining a first adjustment proportion corresponding to the first anticaking effect; determining a first adjusting direction according to the relative position relation of the first anchor interface and the second anchor interface in the live broadcast countermeasure interface; and adjusting the camera parameters of the virtual camera corresponding to the live broadcast confrontation interface according to the first adjustment direction and the first adjustment proportion.
In an embodiment, when the step of adjusting the camera parameters of the virtual camera corresponding to the live confrontation interface according to the first adjustment direction and the first adjustment ratio is executed, the adjusting module 303 specifically executes: determining a first pixel value based on the first adjustment ratio; adjusting camera parameters of the virtual camera to shrink/expand the first pixel value in the first adjustment direction for the first anchor interface displayed in the live confrontation interface, the first pixel value in the first adjustment direction for the second anchor interface to expand/shrink in the first adjustment direction.
In an embodiment, the adjusting module 303 is further configured to adjust a camera parameter of the virtual camera when a display position of the first anchor or the second anchor deviates from a center position of the first anchor interface or the second anchor interface, so as to modify the position information of the first anchor or the second anchor, so that the first anchor is located at the center position of the first anchor interface, and the second anchor is located at the center position of the second anchor interface.
In an embodiment, the obtaining determining module 302 is further configured to determine first support information and second support information according to the first interaction data and the second interaction data; correspondingly, the display module 301 is further configured to display the first supporting information on the first anchor interface and the second supporting information on the second anchor interface in a bullet screen manner, respectively.
In an embodiment, the adjusting module 303 is further configured to adjust an output manner of the first supporting information on the first anchor interface and/or an output manner of the second supporting information on the second anchor interface based on the first countermeasure result. The output mode at least comprises at least one of the size of the font size, the font color and the information quantity during output.
In an embodiment, the adjusting module 303 is further configured to adjust a display screen effect of the first anchor interface and/or the second anchor interface based on the first confrontation result; wherein the display image effect at least comprises at least one of display brightness, contrast and color saturation.
In an embodiment, the obtaining and determining module 302 is further configured to determine first score information corresponding to the first interactive data and second score information corresponding to the second interactive data; correspondingly, the display module 301 is configured to graphically display the first score information and the second score information in the live countermeasure interface, for example, display the first score information and the second score information in the live countermeasure interface in a form of a progress bar.
In an embodiment, the adjusting module 303 is further configured to, when the first score information and the second score information are updated, adjust a corresponding result of the graphical display according to the updated first score information and the updated second score information, for example, adjust a texture map of the progress bar.
In an embodiment, the control apparatus 300 of the live interface further includes a generation module 304. The generating module 304 is configured to generate a live countermeasure interface.
The generating module 304, specifically responding to a counterinvitation operation of the first anchor with respect to the second anchor, sends counterinvitation information to the second anchor; responding to invitation accepting operation of the second anchor based on the confrontation invitation information, and respectively acquiring a live scene interface corresponding to the first anchor and a live scene interface corresponding to the second anchor; generating a first anchor interface according to the live scene interface corresponding to the first anchor, and generating a second anchor interface according to the live scene interface corresponding to the second anchor; and generating a live fighting interface comprising the first anchor interface and the second anchor interface through virtual camera shooting.
If the generating module 304 is integrated on a terminal where a anchor is located, the generating module 304 is specifically configured to, in a virtual broadcast state, send an invitation request to a server in response to an invitation operation of the first anchor for the second anchor, so that the server sends invitation information to the second anchor when it is determined that both the first anchor and the second anchor support an confrontation mode, and after the second anchor enters the confrontation mode based on the invitation information, send a first virtual live broadcast scene of the first anchor to an electronic device corresponding to the second anchor and send a second virtual live broadcast scene of the second anchor to an electronic device corresponding to the first anchor; receiving a second virtual live broadcast scene sent by the server, and acquiring a first virtual live broadcast scene; and generating a second anchor interface and a first anchor interface according to the second virtual live broadcast scene and the first virtual live broadcast scene, generating a live broadcast confrontation interface according to the first anchor interface and the second anchor interface, and generating a virtual camera corresponding to the live broadcast confrontation interface.
In an embodiment, the control apparatus 300 of the live interface further includes an ending module 305. An ending module 305, configured to stop obtaining the first interaction data and the second interaction data when a difference between the first score information and the second score information reaches a preset threshold, or when the duration of the countermeasure reaches a preset duration.
All the above technical solutions can be combined arbitrarily to form the optional embodiments of the present application, and are not described herein again.
Correspondingly, the embodiment of the application also provides the electronic equipment, and the electronic equipment can be a terminal or a server. As shown in fig. 8, fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device 400 includes a processor 401 having one or more processing cores, a memory 402 having one or more computer-readable storage media, and a computer program stored on the memory 402 and executable on the processor. The processor 401 is electrically connected to the memory 402. Those skilled in the art will appreciate that the electronic device configurations shown in the figures do not constitute limitations of the electronic device, and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
The processor 401 is a control center of the electronic device 400, connects various parts of the entire electronic device 400 using various interfaces and lines, performs various functions of the electronic device 400 and processes data by running or loading software programs (computer programs) and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby integrally monitoring the electronic device 400.
In this embodiment, the processor 401 in the electronic device 400 loads instructions corresponding to processes of one or more application programs into the memory 402 according to the following steps, and the processor 401 runs the application programs stored in the memory 402, so as to implement various functions:
displaying a live broadcast confrontation interface at least comprising a first anchor interface and a second anchor interface, wherein the first anchor interface is a live broadcast scene interface corresponding to a first anchor participating in confrontation, and the second anchor interface is a live broadcast scene interface corresponding to a second anchor participating in confrontation; acquiring first interaction data aiming at the first anchor and second interaction data aiming at the second anchor, and determining a first anticaking result according to the first interaction data and the second interaction data; based on the first confrontation result, adjusting camera parameters of a virtual camera corresponding to the live confrontation interface so that display interface sizes of the first main playing interface and the second main playing interface displayed in the live confrontation interface are matched with the first anticaking results.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Optionally, as shown in fig. 8, the electronic device 400 further includes: touch-sensitive display screen 403, radio frequency circuit 404, audio circuit 405, input unit 406 and power 407. The processor 401 is electrically connected to the touch display screen 403, the radio frequency circuit 404, the audio circuit 405, the input unit 406, and the power source 407. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 8 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The touch display screen 403 may be used for displaying a graphical user interface and receiving operation instructions generated by a user acting on the graphical user interface. The touch display screen 403 may include a display panel and a touch panel. The display panel may be used, among other things, to display information entered by or provided to a user and various graphical user interfaces of the electronic device, which may be made up of graphics, text, icons, video, and any combination thereof. Alternatively, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. The touch panel may be used to collect touch operations of a user on or near the touch panel (for example, operations of the user on or near the touch panel using any suitable object or accessory such as a finger, a stylus pen, and the like), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. The touch panel may overlay the display panel, and when the touch panel detects a touch operation thereon or nearby, the touch panel may transmit the touch operation to the processor 401 to determine the type of the touch event, and then the processor 401 may provide a corresponding visual output on the display panel according to the type of the touch event. In the embodiment of the present application, the touch panel and the display panel may be integrated into the touch display screen 403 to realize input and output functions. However, in some embodiments, the touch panel and the touch panel can be implemented as two separate components to perform the input and output functions. That is, the touch display screen 403 may also be used as a part of the input unit 406 to implement an input function.
In the embodiment of the present application, the touch display screen 403 is used for presenting a graphical user interface and receiving an operation instruction generated by a user acting on the graphical user interface.
The rf circuit 404 may be used for transceiving rf signals to establish wireless communication with a network device or other electronic devices via wireless communication, and for transceiving signals with the network device or other electronic devices.
The audio circuit 405 may be used to provide an audio interface between the user and the electronic device through a speaker, microphone. The audio circuit 405 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 405 and converted into audio data, which is then processed by the audio data output processor 401 and then transmitted to, for example, another electronic device via the rf circuit 404, or the audio data is output to the memory 402 for further processing. The audio circuit 405 may also include an earbud jack to provide communication of a peripheral headset with the electronic device.
The input unit 406 may be used to receive input numbers, character information, or user characteristic information (e.g., fingerprint, iris, facial information, etc.), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.
The power supply 407 is used to power the various components of the electronic device 400. Optionally, the power source 407 may be logically connected to the processor 401 through a power management system, so as to implement functions of managing charging, discharging, power consumption management, and the like through the power management system. The power supply 407 may also include one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, or any other component.
Although not shown in fig. 8, the electronic device 400 may further include a camera, a sensor, a wireless fidelity module, a bluetooth module, etc., which are not described in detail herein.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, an embodiment of the present application provides a computer-readable storage medium, in which a plurality of computer programs are stored, where the computer programs can be loaded by a processor to execute the steps in any method for controlling a live interface provided in the embodiment of the present application. For example, the computer program may perform the steps of:
displaying a live broadcast confrontation interface at least comprising a first anchor interface and a second anchor interface, wherein the first anchor interface is a live broadcast scene interface corresponding to a first anchor participating in confrontation, and the second anchor interface is a live broadcast scene interface corresponding to a second anchor participating in confrontation; acquiring first interaction data aiming at the first anchor and second interaction data aiming at the second anchor, and determining a first anticaking result according to the first interaction data and the second interaction data; based on the first confrontation result, adjusting camera parameters of a virtual camera corresponding to the live confrontation interface so that display interface sizes of the first main playing interface and the second main playing interface displayed in the live confrontation interface are matched with the first anticaking results.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the computer program stored in the storage medium can execute the steps in the control method for any live interface provided in the embodiment of the present application, beneficial effects that can be achieved by the control method for any live interface provided in the embodiment of the present application can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The method, the device, the storage medium and the electronic device for controlling the live broadcast interface provided by the embodiment of the present application are described in detail above, a specific example is applied in the text to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (14)

1. A control method of a live broadcast interface is characterized by comprising the following steps:
displaying a live broadcast confrontation interface at least comprising a first anchor interface and a second anchor interface, wherein the first anchor interface is a live broadcast scene interface corresponding to a first anchor participating in confrontation, and the second anchor interface is a live broadcast scene interface corresponding to a second anchor participating in confrontation;
acquiring first interaction data aiming at the first anchor and second interaction data aiming at the second anchor, and determining a first anticaking result according to the first interaction data and the second interaction data;
based on the first confrontation result, adjusting camera parameters of a virtual camera corresponding to the live confrontation interface so that display interface sizes of the first main playing interface and the second main playing interface displayed in the live confrontation interface are matched with the first anticaking results.
2. The method of claim 1, wherein the step of adjusting the camera parameters of the virtual camera corresponding to the live confrontation interface based on the first confrontation result comprises:
obtaining a first adjustment proportion corresponding to the first anticaking effect;
determining a first adjusting direction according to the relative position relation of the first anchor interface and the second anchor interface in the live broadcast countermeasure interface;
and adjusting the camera parameters of the virtual camera corresponding to the live broadcast confrontation interface according to the first adjustment direction and the first adjustment proportion.
3. The method of claim 2, wherein the step of adjusting the camera parameters of the virtual camera corresponding to the live confrontation interface according to the first adjustment direction and the first adjustment proportion comprises:
determining a first pixel value based on the first adjustment ratio;
adjusting camera parameters of the virtual camera to shrink/expand the first pixel value in the first adjustment direction for the first anchor interface displayed in the live confrontation interface, the first pixel value in the first adjustment direction for the second anchor interface to expand/shrink in the first adjustment direction.
4. The method of claim 3, further comprising:
when the display position of the first anchor or the second anchor deviates from the center position of the first anchor interface or the second anchor interface, adjusting the camera parameters of the virtual camera to correct the position information of the first anchor or the second anchor, so that the first anchor is located at the center position of the first anchor interface, and the second anchor is located at the center position of the second anchor interface.
5. The method of claim 1, wherein after the step of obtaining first interaction data for the first anchor and second interaction data for the second anchor, the method further comprises:
and determining first support information and second support information according to the first interaction data and the second interaction data, respectively displaying the first support information on the first anchor interface in a bullet screen mode, and displaying the second support information on the second anchor interface.
6. The method of claim 5, wherein after the step of determining a first confrontation result based on the first interaction data and the second interaction data, the method further comprises:
and adjusting the output mode of the first supporting information on the first anchor interface and/or the output mode of the second supporting information on the second anchor interface based on the first confrontation result.
7. The method according to claim 6, wherein the output mode at least includes at least one of a font size, a font color, and an information amount when outputting.
8. The method of claim 1, wherein after determining a first counter-outcome based on the first interaction data and the second interaction data, the method further comprises:
adjusting the display screen effect of the first anchor interface and/or the second anchor interface based on the first confrontation result;
wherein the display image effect at least comprises at least one of display brightness, contrast and color saturation.
9. The method of claim 1, wherein prior to the step of displaying a live confrontation interface including at least a first anchor interface and a second anchor interface, the method further comprises:
in response to a counterinvitation operation of the first anchor with respect to the second anchor, sending counterinvitation information to the second anchor;
responding to invitation accepting operation of the second anchor based on the confrontation invitation information, and respectively acquiring a live scene interface corresponding to the first anchor and a live scene interface corresponding to the second anchor;
generating a first anchor interface according to the live scene interface corresponding to the first anchor, and generating a second anchor interface according to the live scene interface corresponding to the second anchor;
and generating a live fighting interface comprising the first anchor interface and the second anchor interface through virtual camera shooting.
10. The method of claim 1, wherein after the step of determining a first confrontation result based on the first interaction data and the second interaction data, the method further comprises:
determining first score information corresponding to the first interactive data and second score information corresponding to the second interactive data, and graphically displaying the first score information and the second score information in the live countermeasure interface.
11. The method of claim 10, further comprising:
and when the difference value of the first score information and the second score information reaches a preset threshold value or the duration of the confrontation reaches a preset duration, stopping acquiring the first interactive data and the second interactive data.
12. A control device of a live interface is characterized by comprising:
the system comprises a display module, a first video playing module and a second video playing module, wherein the display module is used for displaying a live broadcast confrontation interface at least comprising a first anchor interface and a second anchor interface, the first anchor interface is a live broadcast scene interface corresponding to a first anchor participating in confrontation, and the second anchor interface is a live broadcast scene interface corresponding to a second anchor participating in confrontation;
the acquisition determining module is used for acquiring first interaction data aiming at the first anchor and second interaction data aiming at the second anchor, and determining a first anticaking result according to the first interaction data and the second interaction data;
and the adjusting module is used for adjusting the camera parameters of the virtual camera corresponding to the live fighting interface based on the first fighting result so as to enable the display interface sizes of the first anchor interface and the second anchor interface displayed in the live fighting interface to be matched with the first fighting result.
13. A computer-readable storage medium, characterized in that it stores a computer program adapted to be loaded by a processor for performing the steps in the method of controlling a live interface of any one of claims 1-11.
14. An electronic device, characterized in that the electronic device comprises a memory in which a computer program is stored and a processor, and the processor executes the steps in the control method of the live interface according to any one of claims 1-11 by calling the computer program stored in the memory.
CN202111532057.2A 2021-12-14 2021-12-14 Control method and device for live interface, storage medium and electronic equipment Pending CN114201095A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111532057.2A CN114201095A (en) 2021-12-14 2021-12-14 Control method and device for live interface, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111532057.2A CN114201095A (en) 2021-12-14 2021-12-14 Control method and device for live interface, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN114201095A true CN114201095A (en) 2022-03-18

Family

ID=80653951

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111532057.2A Pending CN114201095A (en) 2021-12-14 2021-12-14 Control method and device for live interface, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN114201095A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115061617A (en) * 2022-06-14 2022-09-16 深圳市万声文化科技有限公司 Processing method and device of live broadcast picture, computer equipment and storage medium
CN115079879A (en) * 2022-06-06 2022-09-20 北京字跳网络技术有限公司 Display method, device, equipment, storage medium and program product of live broadcast page
CN115268748A (en) * 2022-08-16 2022-11-01 北京字跳网络技术有限公司 Live broadcast data processing method and device
CN115529485A (en) * 2022-09-14 2022-12-27 北京字跳网络技术有限公司 Live video processing method, device, equipment and medium
WO2024099442A1 (en) * 2022-11-10 2024-05-16 北京字跳网络技术有限公司 Online live broadcast method and apparatus, and device and storage medium

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108174275A (en) * 2017-12-29 2018-06-15 广州酷狗计算机科技有限公司 Image presentation method, device and computer readable storage medium
CN109874059A (en) * 2017-12-04 2019-06-11 腾讯科技(深圳)有限公司 Method for showing interface, client and storage medium, computer equipment is broadcast live
CN109874047A (en) * 2017-12-04 2019-06-11 腾讯科技(深圳)有限公司 Living broadcast interactive method, apparatus and system
CN110944235A (en) * 2019-11-22 2020-03-31 广州华多网络科技有限公司 Live broadcast interaction method, device and system, electronic equipment and storage medium
CN111432266A (en) * 2020-03-31 2020-07-17 北京达佳互联信息技术有限公司 Interactive information display method, device, terminal and storage medium
CN111526406A (en) * 2020-03-31 2020-08-11 广州酷狗计算机科技有限公司 Live broadcast interface display method and device, terminal and storage medium
US20200280759A1 (en) * 2019-05-16 2020-09-03 Beijing Dajia Internet Information Technology Co., Ltd. Method for displaying virtual item, terminal and storage medium
CN111881940A (en) * 2020-06-29 2020-11-03 广州华多网络科技有限公司 Live broadcast and live broadcast matching method and device, electronic equipment and storage medium
CN111901624A (en) * 2020-08-06 2020-11-06 广州虎牙科技有限公司 Live broadcast display method and device, electronic equipment and storage medium
US20200374590A1 (en) * 2018-01-29 2020-11-26 Guangzhou Huya Information Technology Co., Ltd. Interaction based on live webcast
CN112337088A (en) * 2020-11-09 2021-02-09 咪咕视讯科技有限公司 Information processing method, server, electronic equipment and storage medium
CN112426714A (en) * 2020-12-16 2021-03-02 广州繁星互娱信息科技有限公司 Live broadcast fighting picture display method and device, terminal and storage medium
CN112468884A (en) * 2020-11-24 2021-03-09 北京达佳互联信息技术有限公司 Dynamic resource display method, device, terminal, server and storage medium
CN112561576A (en) * 2020-12-08 2021-03-26 广州繁星互娱信息科技有限公司 Interface display method, device and equipment for live application and storage medium
CN113411656A (en) * 2021-06-16 2021-09-17 广州博冠信息科技有限公司 Information processing method, information processing device, computer equipment and storage medium
CN113706719A (en) * 2021-08-31 2021-11-26 广州博冠信息科技有限公司 Virtual scene generation method and device, storage medium and electronic equipment

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109874059A (en) * 2017-12-04 2019-06-11 腾讯科技(深圳)有限公司 Method for showing interface, client and storage medium, computer equipment is broadcast live
CN109874047A (en) * 2017-12-04 2019-06-11 腾讯科技(深圳)有限公司 Living broadcast interactive method, apparatus and system
CN108174275A (en) * 2017-12-29 2018-06-15 广州酷狗计算机科技有限公司 Image presentation method, device and computer readable storage medium
US20200374590A1 (en) * 2018-01-29 2020-11-26 Guangzhou Huya Information Technology Co., Ltd. Interaction based on live webcast
US20200280759A1 (en) * 2019-05-16 2020-09-03 Beijing Dajia Internet Information Technology Co., Ltd. Method for displaying virtual item, terminal and storage medium
CN110944235A (en) * 2019-11-22 2020-03-31 广州华多网络科技有限公司 Live broadcast interaction method, device and system, electronic equipment and storage medium
CN111432266A (en) * 2020-03-31 2020-07-17 北京达佳互联信息技术有限公司 Interactive information display method, device, terminal and storage medium
CN111526406A (en) * 2020-03-31 2020-08-11 广州酷狗计算机科技有限公司 Live broadcast interface display method and device, terminal and storage medium
CN111881940A (en) * 2020-06-29 2020-11-03 广州华多网络科技有限公司 Live broadcast and live broadcast matching method and device, electronic equipment and storage medium
CN111901624A (en) * 2020-08-06 2020-11-06 广州虎牙科技有限公司 Live broadcast display method and device, electronic equipment and storage medium
CN112337088A (en) * 2020-11-09 2021-02-09 咪咕视讯科技有限公司 Information processing method, server, electronic equipment and storage medium
CN112468884A (en) * 2020-11-24 2021-03-09 北京达佳互联信息技术有限公司 Dynamic resource display method, device, terminal, server and storage medium
CN112561576A (en) * 2020-12-08 2021-03-26 广州繁星互娱信息科技有限公司 Interface display method, device and equipment for live application and storage medium
CN112426714A (en) * 2020-12-16 2021-03-02 广州繁星互娱信息科技有限公司 Live broadcast fighting picture display method and device, terminal and storage medium
CN113411656A (en) * 2021-06-16 2021-09-17 广州博冠信息科技有限公司 Information processing method, information processing device, computer equipment and storage medium
CN113706719A (en) * 2021-08-31 2021-11-26 广州博冠信息科技有限公司 Virtual scene generation method and device, storage medium and electronic equipment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115079879A (en) * 2022-06-06 2022-09-20 北京字跳网络技术有限公司 Display method, device, equipment, storage medium and program product of live broadcast page
CN115061617A (en) * 2022-06-14 2022-09-16 深圳市万声文化科技有限公司 Processing method and device of live broadcast picture, computer equipment and storage medium
CN115268748A (en) * 2022-08-16 2022-11-01 北京字跳网络技术有限公司 Live broadcast data processing method and device
CN115529485A (en) * 2022-09-14 2022-12-27 北京字跳网络技术有限公司 Live video processing method, device, equipment and medium
WO2024099442A1 (en) * 2022-11-10 2024-05-16 北京字跳网络技术有限公司 Online live broadcast method and apparatus, and device and storage medium

Similar Documents

Publication Publication Date Title
CN109011574B (en) Game interface display method, system, terminal and device based on live broadcast
CN114201095A (en) Control method and device for live interface, storage medium and electronic equipment
US11794102B2 (en) Cloud-based game streaming
CN112351302B (en) Live broadcast interaction method and device based on cloud game and storage medium
CN112788358B (en) Video live broadcast method, video sending method, device and equipment for game match
JP6727669B2 (en) Information interaction method, device, and system
CN114466209B (en) Live broadcast interaction method and device, electronic equipment, storage medium and program product
CN113395533A (en) Virtual gift special effect display method and device, computer equipment and storage medium
CN102905170A (en) Screen popping method and system for video
CN113676747B (en) Continuous wheat live broadcast fight interaction method, system and device and computer equipment
CN113411656B (en) Information processing method, information processing device, computer equipment and storage medium
CN109195003B (en) Interaction method, system, terminal and device for playing game based on live broadcast
CN103645801A (en) Film showing system with interaction function and method for interacting with audiences during showing
CN112261433A (en) Virtual gift sending method, virtual gift display device, terminal and storage medium
CN114288654A (en) Live broadcast interaction method, device, equipment, storage medium and computer program product
CN113485617A (en) Animation display method and device, electronic equipment and storage medium
CN113271472A (en) Game live broadcast method and device, electronic equipment and readable storage medium
CN114666672B (en) Live fight interaction method and system initiated by audience and computer equipment
CN114173173A (en) Barrage information display method and device, storage medium and electronic equipment
CN114189743B (en) Data transmission method, device, electronic equipment and storage medium
CN112261482B (en) Interactive video playing method, device and equipment and readable storage medium
WO2020248682A1 (en) Display device and virtual scene generation method
CN110769904B (en) Output content processing method, output method, electronic device, and storage medium
US20200120187A1 (en) System for providing game play video by using cloud computer
CN114405012A (en) Interactive live broadcast method and device for offline game, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination