Method for adjusting layout of live broadcast room, computer equipment and storage medium
By obtaining the anchor's posture direction in the live video stream and adjusting the live broadcast room layout of the audience terminals, the problem of audience terminal layout mismatch caused by changes in the anchor's posture direction during the live broadcast is solved and the viewing experience is improved.
Patent Information
- Application Number
- CN202210964217.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-11
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-08-11
AI Technical Summary
During the live broadcast, changes in the anchor's posture and direction caused the audience terminals to be unable to adapt to the layout of the live broadcast room, affecting the audience's viewing experience.
By obtaining the anchor's posture direction from the live video stream, and responding to the screen rotation instructions of the audience terminal, it determines and adjusts the layout of the live broadcast room to match the anchor's posture direction, ensuring that the audience can get the best viewing experience on the audience terminal.
It is possible to dynamically adjust the layout of the live broadcast room on the audience terminal according to the direction of the anchor's posture, which improves the user's viewing experience and ensures that the anchor's posture matches the layout of the live broadcast room, thereby improving the interactivity of the live broadcast and audience satisfaction.
Smart Images

Figure CN115396714B
Abstract
Description
Technical Field
[0001] The present application relates to the field of live broadcast technology, and in particular to a method for adjusting the layout of a live broadcast room, computer equipment, and storage media. Background Art
[0002] With the popularization of smart devices and the development of communication technology, society has entered the era of smart interconnection. Network communication speeds are getting faster and faster, and people can easily use smart devices to surf the Internet. The emergence of live broadcast technology has enriched the use scenarios of smart devices. People can watch or broadcast live anytime and anywhere, which has also enriched people's lives.
[0003] With the rapid development of the live broadcast industry, the forms of live broadcast interaction have also become diverse. During the live broadcast, the anchor may stand or lie down due to the content of the performance, and the audience cannot adapt to the changes in the anchor's posture when watching the live broadcast room screen on the audience terminal, which affects the audience's viewing experience during the live broadcast. Summary of the invention
[0004] The main technical problem solved by this application is to provide a method for adjusting the layout of a live broadcast room, computer equipment and storage medium, which can adaptively adjust the layout of the live broadcast room during the live broadcast process to provide viewers with a better viewing experience.
[0005] In order to solve the above technical problems, a technical solution adopted in the present application is: to provide a method for adjusting the layout of a live broadcast room, the method comprising: in the process of watching the live broadcast, obtaining the host posture direction from the live video stream; wherein the host posture direction is the direction of the host posture in the live video stream compared to the video length direction; in response to the screen rotation instruction, determining whether the current live broadcast room layout after the screen rotation matches the host posture direction; if not, adjusting the live broadcast room layout to match the host posture direction, so as to play the live video stream in accordance with the adjusted live broadcast room layout.
[0006] To solve the above technical problems, another technical solution adopted in the present application is: providing a method for adjusting the layout of a live broadcast room, the method comprising: obtaining a live video stream during a live broadcast; sending the live video stream to a server so that the video stream can be sent to a viewer terminal via the server, so that the viewer terminal can obtain the host posture direction from the live video stream; in response to a screen rotation command generated by the viewer terminal, determining whether the current live broadcast room layout after the screen rotation matches the host posture direction; if not, adjusting the live broadcast room layout to match the host posture direction, so as to coordinate the playback of the live video stream in accordance with the adjusted live broadcast room layout, wherein the host posture direction is the direction of the host posture in the live video stream compared to the video length direction.
[0007] In order to solve the above-mentioned technical problems, another technical solution adopted in the present application is: to provide a computer device, which includes a processor, a memory and a communication circuit; the memory and the communication circuit are coupled to the processor, the memory stores a computer program, and the processor can execute the computer program to implement the method for adjusting the layout of the live broadcast room provided in the present application as mentioned above.
[0008] In order to solve the above technical problems, another technical solution adopted by the present application is: providing a computer-readable storage medium, which stores a computer program, and the computer program can be executed by a processor to implement the method for adjusting the live broadcast room layout provided by the present application as mentioned above.
[0009] The beneficial effect of the present application is as follows: different from the prior art, during the process of watching live broadcasts, the host posture direction is obtained from the live video stream, and in response to the screen rotation instruction, the audience terminal can determine whether the current live broadcast room layout after the screen rotation matches the host posture direction. Since the host posture direction is the direction of the host posture in the live video stream compared to the video length direction, when the host posture direction changes, the audience may rotate the audience terminal to obtain a better viewing experience. When the audience rotates the audience terminal, a screen rotation instruction can be generated, and then it can be determined whether the current live broadcast room layout after the screen rotation matches the host posture direction. If not, the live broadcast room layout can be adjusted to match the host posture direction, so that the live video stream can be played in accordance with the adjusted live broadcast room layout, and then the audience can adjust the live broadcast room layout based on the host's posture direction while watching the live broadcast on the audience terminal, so that the live broadcast room layout can match the host posture direction, thereby improving the user's viewing experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 It is a schematic diagram of the system composition of an embodiment of the live broadcast system of the present application;
[0011] Figure 2 It is a flowchart of the first embodiment of the method for adjusting the layout of the live broadcast room of the present application;
[0012] Figure 3 This is a timing diagram of the first embodiment of the method for adjusting the layout of the live broadcast room of the present application;
[0013] Figure 4 This is a first schematic diagram of a first embodiment of the method for adjusting the layout of a live broadcast room of the present application, in which the anchor's posture direction is a first posture direction;
[0014] Figure 5 This is a second schematic diagram of the first embodiment of the method for adjusting the layout of the live broadcast room of the present application, in which the anchor's posture direction is the first posture direction;
[0015] Figure 6 This is a third schematic diagram of the first embodiment of the method for adjusting the layout of the live broadcast room of the present application, in which the anchor's posture direction is the first posture direction;
[0016] Figure 7 This is a first schematic diagram of the first embodiment of the method for adjusting the layout of the live broadcast room of the present application, in which the anchor's posture direction is the second posture direction;
[0017] Figure 8 This is a second schematic diagram in which the anchor's posture direction is a second posture direction in the first embodiment of the method for adjusting the layout of the live broadcast room of the present application;
[0018] Fig. 9 This is a third schematic diagram of the first embodiment of the method for adjusting the layout of the live broadcast room of the present application, in which the anchor's posture direction is the second posture direction;
[0019] Fig.10 It is a flowchart of the second embodiment of the method for adjusting the layout of the live broadcast room of the present application;
[0020] Fig.11 is a schematic diagram of the circuit structure of an embodiment of a computer device of the present application;
[0021] Fig.12 It is a circuit structure diagram of a computer-readable storage medium embodiment of the present application. DETAILED DESCRIPTION
[0022] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0023] With the rapid development of the live broadcast industry, the forms of live broadcast interaction are also diverse. During the live broadcast, the anchor performs on the anchor terminal, and the user can watch the anchor's performance on the audience terminal, or interact with the anchor through the audience terminal. The anchor's live broadcast screen can be presented in a personal live broadcast room. In order to enrich the live broadcast format, the anchor can perform various actions such as standing up and lying down based on the content to be performed.
[0024] After long-term research, the inventor found that when the anchor stands or lies down based on the performance content, the anchor's posture direction will change. When the anchor selects the broadcast direction, if the audience rotates the audience terminal to adapt to the anchor's posture direction, the layout in the live broadcast room cannot be adjusted based on the audience's rotation of the audience terminal, resulting in the anchor's posture direction viewed by the audience on the audience terminal not matching the layout of the live broadcast room. For example, when the anchor broadcasts in a vertical screen, if the anchor lies down to do yoga, the anchor avatar viewed by the audience will be inconsistent with the audience's viewing direction. If the audience rotates the audience terminal to make the viewed anchor avatar consistent with the viewing direction, the layout of the live broadcast room in the audience terminal after rotation, such as the display direction of the comment information, will be inconsistent with the viewing direction, which will result in that after the audience terminal is rotated, although the viewed anchor avatar is consistent with the audience's viewing direction, it is inconvenient for the audience to watch other content in the live broadcast room layout while watching the anchor, such as comment information, which affects the audience's viewing experience. In order to improve the above technical problems, the present application proposes the following embodiments.
[0025] like Figure 1 As shown, the live broadcast system 1 described in the live broadcast system embodiment of the present application may include a server 10, an anchor terminal 20, and an audience terminal 30. The anchor terminal 20 and the audience terminal 30 may be electronic devices, specifically, the anchor terminal 20 and the audience terminal 30 are electronic devices installed with corresponding client programs, that is, client terminals. The electronic device may be a mobile terminal, a computer, a server or other terminals, etc. The mobile terminal may be a mobile phone, a laptop computer, a tablet computer, a smart wearable device, etc., and the computer may be a desktop computer, etc.
[0026] The server 10 can pull the live data stream from the anchor terminal 20, and can push the acquired live data stream to the audience terminal 30 after corresponding processing. After the audience terminal 30 obtains the live data stream, it can watch the live broadcast process of the anchor or the guest. The mixed stream of the live data stream can occur in at least one of the server 10, the anchor terminal 20 and the audience terminal 30. Video or voice connection can be performed between the anchor terminal 20 and the anchor terminal 20, and between the anchor terminal 20 and the audience terminal 30. During the live broadcast, the anchor terminal 20 can push the live data stream including the video stream to the server 10, and then push the corresponding live data to each audience terminal 30 in the live broadcast room corresponding to the anchor terminal 20. The anchor terminal 20 and the audience terminal 30 can display the corresponding live screen in the live broadcast room.
[0027] Of course, the anchor terminal 20 and the audience terminal 30 are relative. The terminal in the live broadcast process is the anchor terminal 20, and the terminal in the live broadcast process is the audience terminal 30.
[0028] like Figure 2 As shown, the first embodiment of the method for adjusting the layout of the live broadcast room of the present application can be performed by the audience terminal 30. This embodiment may include the following steps: S100: In the process of watching the live broadcast, obtain the host posture direction from the live video stream; wherein the host posture direction is the direction of the host posture in the live video stream compared to the length direction of the video. S200: In response to the screen rotation instruction generated by the rotation, determine whether the current live broadcast room layout matches the host posture direction. S300: If it does not match, adjust the live broadcast room layout to match the host posture direction, so as to play the live video stream in accordance with the adjusted live broadcast room layout.
[0029] During the process of watching live broadcast, the host posture direction is obtained from the live video stream. In response to the screen rotation instruction, the audience terminal 30 can determine whether the current live broadcast room layout after the screen rotation matches the host posture direction. Since the host posture direction is the direction of the host posture in the live video stream compared to the video length direction, when the host posture direction changes, the audience may rotate the audience terminal 30 to obtain a better viewing experience. When the audience rotates the audience terminal 30, a screen rotation instruction can be generated, and then it can be determined whether the current live broadcast room layout after the screen rotation matches the host posture direction. If not, the live broadcast room layout can be adjusted to match the host posture direction, so that the live video stream can be played in accordance with the adjusted live broadcast room layout, and then the audience can adjust the live broadcast room layout based on the host's posture direction during the process of watching the live broadcast on the audience terminal 30, so that the live broadcast room layout can match the host posture direction, thereby improving the user's viewing experience.
[0030] The method described in this embodiment can be applied to the scene where the audience rotates the audience terminal 30 to adapt to the live broadcast room, such as Figure 3 As shown, the present embodiment is described in detail below with the audience terminal 30 as the execution subject.
[0031] S100: in the process of watching a live broadcast, obtaining a host posture direction from a live video stream; wherein the host posture direction is a direction of the host posture in the live video stream compared to a length direction of the video.
[0032] The live video stream may include the host uploading to the server 10 through the host terminal 20, and the audience terminal 30 pulling the live video stream from the server 10 to the audience terminal 30, so that the audience can synchronously watch the live video stream uploaded by the host through the audience terminal 30.
[0033] The anchor posture direction may include the direction of the anchor posture in the live video stream compared to the video length direction. Specifically, the anchor posture direction may include a first posture direction inconsistent with the video length direction, and a second posture direction consistent with the video length direction. The video length direction may include the direction corresponding to the screen length corresponding to the live video stream obtained by the viewer terminal 30 from the server 10. The anchor posture direction may include the anchor face direction, the anchor torso direction, or a comprehensive posture direction derived based on the anchor face direction and the anchor torso direction.
[0034] In one implementation, how to obtain the anchor's posture direction from the live stream may refer to the following steps included in S100:
[0035] S110: receiving a live video stream carrying a host's posture direction, and parsing the live video stream to obtain the host's posture direction.
[0036] The audience terminal 30 can receive the live video stream pulled from the server 10. The live video stream can carry the host's posture direction. Therefore, when the audience terminal 30 receives the live video stream, it can parse the live video stream to obtain the host's posture direction.
[0037] In one implementation, how to parse and obtain the anchor's posture direction from the live video stream may refer to the following steps included in S110:
[0038] S111: Analyze the supplementary enhancement information in the live video stream to obtain the anchor's posture direction.
[0039] Supplementary enhancement information belongs to the category of bitstream. Supplementary enhancement information provides a method to add additional information to the video bitstream. It is one of the characteristics of video compression standards such as H.264 / H.265. That is to say, video frames can carry supplementary enhancement information to achieve better video synchronization.
[0040] After the anchor starts broadcasting on the anchor terminal 20, the anchor can upload the live video stream to the anchor terminal 20. After receiving the live video stream uploaded by the anchor, the anchor terminal 20 can identify the live video stream to determine the anchor's posture direction in the live video stream. Specifically, during the process of the anchor terminal 20 identifying the live video stream, the anchor terminal 20 can identify the live video stream through the AI recognition module every preset time. The preset time can be a time pre-set in the anchor terminal 20.
[0041] By putting the identified anchor posture direction in the live video stream into the corresponding supplementary enhancement information, the anchor posture direction can be sent to the server 10 together with the live video stream, and then the live video stream carrying the anchor posture direction can be sent to the viewer terminal 30 via the server 10. After receiving the live video stream sent by the server 10, the viewer terminal 30 can parse the supplementary enhancement information in the live video stream to obtain the corresponding anchor posture direction.
[0042] S200: In response to the screen rotation instruction, determine whether the current live broadcast room layout after the screen rotation matches the anchor's posture direction.
[0043] The screen rotation instruction may be an instruction generated by the audience rotating the audience terminal 30 during the live broadcast. For example, the audience terminal 30 may detect the rotation posture of the audience terminal 30 through the sensor devices such as the gyroscope and the gravity sensor therein, and then generate a screen rotation instruction. Specifically, during the process of the audience watching the live broadcast through the audience terminal 30, the audience terminal 30 may detect its own rotation to determine whether the screen of the audience terminal 30 rotates. If the audience terminal 30 rotates, that is, the screen of the audience terminal 30 rotates, a screen rotation instruction may be generated, and then the audience terminal 30 may respond to the screen rotation instruction to determine whether the current live broadcast room layout after the screen rotation matches the anchor's posture direction. If the audience terminal 30 does not rotate, the screen rotation instruction may not be generated. Specifically, during the process of the audience terminal 30 detecting its own rotation, it may be detected through the gravity sensor in the audience terminal 30 to determine whether the audience terminal 30 rotates, and then determine whether to generate a screen rotation instruction.
[0044] The live broadcast room layout may include other UI layouts of the live broadcast room interface of the viewer terminal 30 in addition to the live broadcast screen, such as Figure 4 As shown, the UI layout may include Figure 4 Specifically, the S1 module may include the host name and host information, and the S2 module may include a public screen that can be used to display the speeches and interactive information of the audience in the live broadcast room.
[0045] The live broadcast room layout may also include a first layout and a second layout. The display direction of the live broadcast room layout may include a first display direction and a second display direction. Specifically, the first layout may be a live broadcast room layout corresponding to the first display direction, and the second layout may be a live broadcast room layout corresponding to the second display direction. The first display direction may be perpendicular to the length direction of the video, and the second display direction may be parallel to the length direction of the video. The first display direction and the second display direction may refer to the viewing direction perpendicular to the text typesetting direction. In the first display direction, the text is typeset in the direction of the length of the video, and the user can realize the viewing and reading in the viewing direction perpendicular to the length direction of the video, that is, the viewing of the text is realized in the first display direction. In the second display direction, the text is typeset perpendicular to the length direction of the video, and the user can realize the viewing and reading in the same direction as the length direction of the video. For example, when the mobile phone is in the vertical screen state, the text can be typeset in the width direction of the screen, which is convenient for the user to watch and read in the vertical screen state. When the mobile phone is in the horizontal screen state, the text can be typeset in the length direction of the screen, which is convenient for the user to watch and read in the horizontal screen state.
[0046] like Figure 4 and Figure 5 As shown, Figure 4 When the anchor starts broadcasting in the vertical screen broadcasting mode, the live broadcast room interface of the viewer terminal 30 corresponds to the first posture direction of the anchor. Figure 4 Where L is the length direction of the video. At this time, the anchor's posture direction is a first posture direction that is inconsistent with the length direction L of the video, and the display direction of the live broadcast room layout at this time is a second display direction parallel to the length direction L of the video. In other words, the live broadcast room layout at this time is a second layout corresponding to the second display direction. If the audience watches the live broadcast room from the same direction as the length direction L of the video at this time, the anchor's posture direction seen by the audience will be inconsistent with the audience's viewing direction, thereby affecting the audience's viewing experience. The audience can rotate the screen of the audience terminal 30 so that the anchor's posture direction seen by the audience is consistent with the audience's viewing direction, such as Figure 5 As shown, Figure 5 For the audience Figure 4 The live broadcast room interface of the viewer terminal 30 obtained after rotating the screen of the viewer terminal 30.
[0047] When the audience terminal 30 receives a live video stream carrying the host's posture direction from the server 10, and the screen of the audience terminal 30 rotates to generate a screen rotation instruction, the audience terminal 30 can determine whether the host's posture direction carried by the live video stream matches the current live broadcast room layout after the screen of the audience terminal 30 rotates, and then determine whether the live broadcast room layout needs to be adjusted.
[0048] In one implementation, how to determine whether the current live broadcast room layout matches the anchor's posture direction may refer to the following steps included in S200:
[0049] S210: Determine whether the anchor's posture direction is consistent with the display direction of the current live broadcast room layout.
[0050] The anchor's posture direction may include a first posture direction and a second posture direction, both of which are relative to the video length direction. Specifically, the first posture direction may include a posture direction inconsistent with the video length direction, and the second posture direction may include a posture direction consistent with the video length direction.
[0051] Since the display direction of the live broadcast room layout includes a first display direction and a second display direction, by judging whether the host posture direction is consistent with the display direction of the current live broadcast room layout, it is possible to determine whether the current live broadcast room layout matches the host posture direction, and further determine whether the current live broadcast room layout needs to be adjusted.
[0052] In one implementation, when the broadcast direction set by the anchor terminal 20 is vertical screen broadcast, how to determine whether the anchor posture direction is consistent with the display direction of the current live broadcast room layout can refer to the following steps included in S210:
[0053] S211: Determine whether the anchor's posture direction is a first posture direction that is inconsistent with the length direction of the video.
[0054] In the process of determining whether the anchor's posture direction is the first posture direction, the determination can be made by determining whether the anchor's posture direction is inconsistent with the video length direction. Figure 5 As shown, Figure 5 Where L is the length direction of the video. When the anchor's posture direction is the anchor's face direction, at this time, the anchor's face direction is perpendicular to the L direction, that is, the anchor's posture direction is inconsistent with the length direction of the video. It can be determined that the anchor's posture direction is the first posture direction at this time.
[0055] S212: If it is the first posture direction, determine whether the current live broadcast room layout is the first layout corresponding to the first display direction.
[0056] If it is determined that the anchor's posture direction is the first posture direction, it can be determined whether the current live broadcast room layout is the first layout corresponding to the first display direction. Specifically, since the first display direction is also relative to the video length direction, the first display direction may include a direction perpendicular to the video length direction. For example, Figure 5As shown, if the display direction of the current live broadcast room layout is parallel to the L direction, it can be determined that the current live broadcast room layout is not the first layout corresponding to the first display direction.
[0057] S213: If it is not the first layout, it is determined that the display direction of the current live broadcast room layout is inconsistent with the anchor's posture direction.
[0058] If it is determined that the current layout of the live broadcast room is not the first layout corresponding to the first display direction, it can be determined that the current layout of the live broadcast room is inconsistent with the anchor's posture direction. Figure 5 As shown, Figure 5 The anchor posture direction presented in is the first posture direction, and the current live broadcast room layout is not the first layout, so it can be determined Figure 5 The display direction of the live broadcast room layout is inconsistent with the anchor's posture direction.
[0059] S214: If it is the first layout, determine whether the display direction of the current live broadcast room layout is consistent with the anchor's posture direction.
[0060] If it is determined that the current layout of the live broadcast room is the first layout corresponding to the first display direction, it can be determined that the current layout of the live broadcast room is consistent with the anchor's posture direction. Figure 6 As shown, Figure 6 The anchor posture direction presented in is the first posture direction inconsistent with the video length direction L, and the display direction of the current live broadcast room layout is the first display direction perpendicular to the video length direction L, that is, the current live broadcast room layout is the first layout corresponding to the first display direction, so it can be determined Figure 6 The display direction of the live broadcast room layout is consistent with the anchor's posture direction.
[0061] In one implementation, when the broadcast direction set by the anchor terminal 20 is horizontal screen broadcast, how to determine whether the anchor posture direction is consistent with the display direction of the current live broadcast room layout can also refer to the following steps included in S210:
[0062] S215: Determine whether the anchor's posture direction is a second posture direction that is consistent with the length direction of the video.
[0063] In the process of determining whether the anchor's posture direction is the second posture direction, the determination can be made by determining whether the anchor's posture direction is consistent with the video length direction. Figure 7 and Figure 8 As shown, Figure 7 When the anchor starts broadcasting in the horizontal screen broadcasting mode, the live broadcast room interface of the viewer terminal 30 corresponds to the second posture direction of the anchor. Figure 8 For the audience Figure 7The live broadcast room interface of the viewer terminal 30 obtained after rotating the screen of the viewer terminal 30. Figure 8 Where L is the length direction of the video. When the anchor's posture direction is the anchor's face direction, at this time, the anchor's face direction is parallel to the L direction, that is, the anchor's posture direction is consistent with the video length direction L. Then it can be determined that the anchor's posture direction is the second posture direction at this time.
[0064] S216: If it is the second posture, determine whether the current live broadcast room layout is the second layout corresponding to the second display direction.
[0065] If it is determined that the anchor's posture direction is the second posture direction, it can be determined whether the current live broadcast room layout is the second layout corresponding to the second display direction. Specifically, since the second display direction is also relative to the video length direction, the second display direction may include a direction parallel to the video length direction. For example, Figure 8 As shown, if the display direction of the current live broadcast room layout is perpendicular to the L direction, it can be determined that the current live broadcast room layout is not the second layout corresponding to the second display direction.
[0066] S217: If it is not the second layout, determine that the anchor's posture direction is inconsistent with the display direction of the current live broadcast room layout; if it is the second layout, determine that the anchor's posture direction is consistent with the display direction of the current live broadcast room layout.
[0067] If it is determined that the current live broadcast room layout is not the second layout corresponding to the second display direction, it can be determined that the current live broadcast room layout is inconsistent with the anchor posture direction. Figure 8 As shown, Figure 8 The anchor posture direction presented in is the second posture direction consistent with the video length direction L, and the current live broadcast room layout is the first layout perpendicular to the video length direction L, so it can be determined that Figure 8 The display direction of the live broadcast room layout is inconsistent with the anchor's posture direction.
[0068] If it is determined that the current layout of the live broadcast room is the second layout corresponding to the second display direction, it can be determined that the current layout of the live broadcast room is consistent with the anchor's posture direction. Fig. 9 As shown, Fig. 9 The anchor posture direction presented in is the second posture direction consistent with the video length direction L, and the display direction of the current live broadcast room layout is the second display direction parallel to the video length direction L, that is, the current live broadcast room layout is the second layout corresponding to the second display direction, so it can be determined Fig. 9 The display direction of the live broadcast room layout is consistent with the anchor's posture direction.
[0069] S220: If they are consistent, it is determined that the anchor's posture direction matches the current live broadcast room layout.
[0070] If, in the process of judging whether the anchor's posture direction is consistent with the display direction of the current live broadcast room layout, the judgment result is that the anchor's posture direction is consistent with the display direction of the current live broadcast room layout, then it can be determined that the anchor's posture direction matches the current live broadcast room layout, and then the display direction of the current live broadcast room layout can be maintained.
[0071] S230: If not, it is determined that the anchor's posture direction does not match the current live broadcast room layout.
[0072] If in the process of judging whether the anchor's posture direction is consistent with the display direction of the current live broadcast room layout, the judgment result is that the anchor's posture direction is inconsistent with the display direction of the current live broadcast room layout, then it can be determined that the anchor's posture direction does not match the current live broadcast room layout, and then the live broadcast room layout can be adjusted to match the anchor's posture direction.
[0073] S300: If they do not match, the layout of the live broadcast room is adjusted to match the orientation of the anchor's posture, so as to play the live video stream in accordance with the adjusted layout of the live broadcast room.
[0074] If it is determined that the anchor's posture direction does not match the current live broadcast room, the audience terminal 30 can adjust the live broadcast room layout to match the anchor's posture direction, and then the audience terminal 30 can play the live video stream according to the adjusted live broadcast room layout, so that the anchor's posture direction in the live broadcast room interface viewed by the audience through the audience terminal 30 matches the live broadcast room layout, which is conducive to improving the audience's viewing experience.
[0075] In one implementation, how to adjust the layout of the live broadcast room to match the anchor's posture direction may refer to the following steps included in S300:
[0076] S310: Rotate the display direction of each control image of the live broadcast room interface to be consistent with the first display direction to adapt to the first layout.
[0077] When the broadcast direction set by the anchor terminal 20 is vertical screen broadcast, and it is determined that the anchor posture direction is the first posture direction, and the direction of the current live broadcast room layout is not consistent with the anchor posture direction, that is, the current live broadcast room layout is not the first layout, the display direction of each control image of the live broadcast room interface can be rotated so that the display direction of each control image is consistent with the first display direction, thereby adapting to the first layout. Specifically, the control image can include images corresponding to the S1 module and the S2 module in the live broadcast room layout.
[0078] For example, if Figure 5 and Figure 6 As shown, Figure 5The corresponding anchor posture direction is the first posture direction inconsistent with the video length direction L, and the display direction of the current live broadcast room layout is the second display direction parallel to the video length direction, that is, the current live broadcast room layout is the second layout, which can be rotated Figure 5 The display direction of the S1 module and the S2 module in the Figure 6 The S1 module and the S2 module shown in the figure are arranged so that the display direction of the S1 module and the S2 module is a first display direction perpendicular to the length direction of the video to adapt to the first layout, thereby matching the first posture direction of the anchor and facilitating viewing by the audience.
[0079] In one implementation, how to adjust the layout of the live broadcast room to match the orientation of the anchor's posture may also refer to the following steps included in S300:
[0080] S320: The display direction of each control image of the rotating live broadcast room interface is consistent with the second display direction to adapt to the second layout.
[0081] When the broadcast direction set by the anchor terminal 20 is horizontal screen broadcast, and it is determined that the anchor posture direction is the second posture direction, and the direction of the current live broadcast room layout is not consistent with the anchor posture direction, that is, the current live broadcast room layout is not the second layout, the display direction of each control image of the live broadcast room interface can be rotated so that the display direction of each control image is consistent with the second display direction, thereby adapting to the second layout. Specifically, the control image can include images corresponding to the S1 module and the S2 module in the live broadcast room layout.
[0082] For example, if Figure 8 and Fig. 9 As shown, Figure 8 The corresponding anchor posture direction is the second posture direction consistent with the video length direction L, and the display direction of the current live broadcast room layout is the first display direction perpendicular to the video length direction, that is, the current live broadcast room layout is the first layout, which can be rotated Figure 8 The display direction of the S1 module and the S2 module in the Fig. 9 The S1 module and the S2 module shown in the figure are arranged so that the display direction of the S1 module and the S2 module is a second display direction parallel to the length direction L of the video to adapt to the second layout, thereby matching the second posture direction of the anchor and facilitating viewing by the audience.
[0083] like Fig.10As shown, the second embodiment of the method for adjusting the layout of the live broadcast room of the present application can be performed by the anchor terminal 20. This embodiment may include: M100: obtaining a live video stream during the live broadcast process. M200: sending the live video stream to the server so that the video stream can be sent to the audience terminal via the server, so that the audience terminal can obtain the anchor posture direction from the live video stream; in response to the screen rotation command generated by the audience terminal, determine whether the current live broadcast room layout after the screen rotation matches the anchor posture direction; if not, adjust the live broadcast room layout to match the anchor posture direction, so as to play the live video stream in accordance with the adjusted live broadcast room layout, wherein the anchor posture direction is the direction of the anchor posture in the live video stream compared to the video length direction.
[0084] The specific content of this embodiment can refer to the description of the first embodiment of the method for adjusting the layout of the live broadcast room of the present application. In other words, the technical solution described in the first embodiment of the method for adjusting the layout of the live broadcast room of the present application can be converted into a technical solution based on the perspective of the anchor terminal 20 as the technical solution of this embodiment. Therefore, all the contents of this embodiment can refer to the description of the first embodiment of the method for adjusting the layout of the live broadcast room of the present application, and will not be repeated here.
[0085] like Fig.11 As shown, the computer device 100 described in the computer device embodiment of the present application can also be an electronic device, and the electronic device can be the above-mentioned client terminal, and the client terminal can include an anchor terminal 20 and an audience terminal 30. Taking the computer device 100 as an electronic device as an example, the computer device 100 can include a processor 110, a memory 120, and a communication circuit. The memory 120 and the communication circuit are coupled to the processor 110.
[0086] The memory 120 is used to store computer programs, and may be a RAM (Read-Only Memory), a ROM (Random Access Memory), or other types of storage devices. Specifically, the memory may include one or more computer-readable storage media, which may be non-transitory. The memory may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory is used to store at least one program code.
[0087] The processor 110 is used to control the operation of the computer device 100. The processor 110 may also be referred to as a CPU (Central Processing Unit). The processor 110 may be an integrated circuit chip having signal processing capabilities. The processor 110 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. A general-purpose processor may be a microprocessor or the processor 110 may also be any conventional processor, etc.
[0088] The processor 110 is used to execute the computer program stored in the memory 120 to implement the method for adjusting the layout of the live broadcast room described in the first embodiment of the method for adjusting the layout of the live broadcast room of the present application or the second embodiment of the method for adjusting the layout of the live broadcast room of the present application.
[0089] In some embodiments, the computer device 100 may further include: a peripheral device interface 130 and at least one peripheral device. The processor 110, the memory 120 and the peripheral device interface 130 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 130 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 140, a display screen 150, an audio circuit 160 and a power supply 170.
[0090] The peripheral device interface 130 may be used to connect at least one peripheral device related to I / O (Input / output) to the processor 110 and the memory 120. In some embodiments, the processor 110, the memory 120, and the peripheral device interface 130 are integrated on the same chip or circuit board; in some other implementations, any one or two of the processor 110, the memory 120, and the peripheral device interface 130 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0091] The communication circuit may include, for example, a radio frequency circuit 140. The radio frequency circuit 140 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 140 communicates with a communication network and other communication devices through electromagnetic signals. The radio frequency circuit 140 converts an electrical signal into an electromagnetic signal for transmission, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 140 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 140 may communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 140 may also include circuits related to NFC (Near Field Communication), which is not limited in this application. Of course, for electronic devices such as PCs, the communication circuit may not include the radio frequency circuit 140, and network communication may be achieved through a network card circuit and a network cable interface circuit.
[0092] The display screen 150 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 150 is a touch display screen, the display screen 150 also has the ability to collect touch signals on the surface or above the surface of the display screen 150. The touch signal can be input to the processor 110 as a control signal for processing. At this time, the display screen 150 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 150 can be one, arranged on the front panel of the computer device 100; in other embodiments, the display screen 150 can be at least two, respectively arranged on different surfaces of the computer device 100 or in a folding design; in other embodiments, the display screen 150 can be a flexible display screen, arranged on a curved surface or a folding surface of the computer device 100. Even, the display screen 150 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 150 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode, organic light-emitting diode).
[0093] The audio circuit 160 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 110 for processing, or input them into the radio frequency circuit 140 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there can be multiple microphones, which are respectively arranged at different parts of the computer device 100. The microphone can also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 110 or the radio frequency circuit 140 into sound waves. The speaker can be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 160 may also include a headphone jack.
[0094] The power supply 170 is used to power various components in the computer device 100. The power supply 170 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 170 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery that is charged through a wired line, and a wireless rechargeable battery is a battery that is charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.
[0095] In the several embodiments provided in the present application, it should be understood that the disclosed computer device 100 and the method for adjusting the layout of the live broadcast room can be implemented in other ways. For example, the various embodiments of the computer device 100 described above are only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0096] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0097] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0098] See also Fig.12 , if the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium 200. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions / computer programs to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of each embodiment of the present invention. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories, random access memories, magnetic disks or optical disks, and electronic devices such as computers, mobile phones, laptops, tablet computers, cameras, etc. having the above-mentioned storage media.
[0099] The description of the execution process of the program data in the computer-readable storage medium can be referred to the first embodiment of the method for adjusting the layout of the live broadcast room of the present application and the second embodiment of the method for adjusting the layout of the live broadcast room, which will not be repeated here.
[0100] The above descriptions are merely embodiments of the present application and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for adjusting the layout of a live broadcast room, characterized in that: include: In the process of watching live broadcast, the anchor posture direction is obtained from the live video stream; wherein the anchor posture direction is the direction of the anchor posture in the live video stream compared to the video length direction; the video length direction includes the direction corresponding to the screen length corresponding to the live video stream obtained by the viewer terminal from the server; In response to the screen rotation instruction, determining whether the current live broadcast room layout after the screen rotation matches the anchor's posture direction; If they do not match, the live broadcast room layout is adjusted to match the anchor's posture direction, so as to play the live video stream in accordance with the adjusted live broadcast room layout.
2. The method according to claim 1, characterized in that The determining whether the current live broadcast room layout after the screen is rotated matches the anchor's posture direction includes: Determine whether the anchor's posture direction is consistent with the display direction of the current live broadcast room layout; If they are consistent, it is determined that the anchor's posture direction matches the current live broadcast room layout; If they are inconsistent, it is determined that the anchor's posture direction does not match the current live broadcast room layout.
3. The method according to claim 2, characterized in that The determining whether the anchor posture direction is consistent with the display direction of the current live broadcast room layout includes: Determining whether the anchor posture direction is a first posture direction inconsistent with the length direction of the video; If it is the first posture direction, determining whether the current live broadcast room layout is a first layout corresponding to a first display direction; wherein the first display direction is perpendicular to the length direction of the video; If it is not the first layout, determining that the display direction of the current live broadcast room layout is inconsistent with the anchor posture direction; If it is the first layout, it is determined that the display direction of the current live broadcast room layout is consistent with the anchor posture direction.
4. The method according to claim 3, characterized in that The adjusting the layout of the live broadcast room to match the anchor's posture direction includes: The display direction of each control image of the rotating live broadcast room interface is consistent with the first display direction to adapt to the first layout.
5. The method according to claim 2, characterized in that: The determining whether the anchor posture direction is consistent with the display direction of the current live broadcast room layout includes: Determining whether the anchor posture direction is a second posture direction that is consistent with the length direction of the video; If it is the second posture direction, determining whether the current live broadcast room layout is a second layout corresponding to a second display direction; wherein the second display direction is the same as the length direction of the video; If it is not the second layout, determining that the anchor posture direction is inconsistent with the display direction of the current live broadcast room layout; If it is the second layout, it is determined that the anchor's posture direction is consistent with the display direction of the current live broadcast room layout.
6. The method according to claim 5, characterized in that The adjusting the layout of the live broadcast room to match the orientation of the anchor's posture includes: The display direction of each control image of the rotating live broadcast room interface is consistent with the second display direction to adapt to the second layout.
7. The method according to claim 1, characterized in that The acquiring the anchor's posture direction from the live video stream includes: The live video stream carrying the anchor's posture direction is received, and the anchor's posture direction is obtained by parsing the live video stream.
8. The method according to claim 7, characterized in that The step of parsing the live video stream to obtain the anchor's posture direction includes: The supplementary enhancement information in the live video stream is parsed to obtain the anchor posture direction.
9. The method according to claim 1, characterized in that: The host posture direction includes the host face direction, the host torso direction, or a comprehensive posture direction derived based on the host face direction and the host torso direction.
10. A method for adjusting the layout of a live broadcast room, characterized in that: include: Get live video stream during live broadcast; The live video stream is sent to a server so that the video stream can be sent to a viewer terminal via the server, so that the viewer terminal can obtain the host posture direction from the live video stream; in response to a screen rotation instruction generated by the viewer terminal, it is determined whether the current live broadcast room layout after the screen rotation matches the host posture direction; if not, the live broadcast room layout is adjusted to match the host posture direction, so as to play the live video stream in accordance with the adjusted live broadcast room layout, wherein the host posture direction is the direction of the host posture in the live video stream compared to the video length direction.
11. A computer device, characterized in that: It includes a processor, a memory and a communication circuit; the memory and the communication circuit are coupled to the processor, the memory stores a computer program, and the processor can execute the computer program to implement the method for adjusting the live broadcast room layout as described in any one of claims 1-10.
12. A computer-readable storage medium, characterized in that: A computer program is stored, and the computer program can be executed by a processor to implement the method for adjusting the live broadcast room layout as described in any one of claims 1-10.
Citation Information
Patent Citations
Video picture adjusting method and system
CN107155114A
Layout information processing method and device and electronic equipment
CN111190634A
Live video stream pushing control method, device and equipment and storage medium
CN111711833A
Live broadcast image processing method and device based on microphone-connected live broadcast and electronic equipment
CN112543343A
Multi-channel live broadcast display control method and device, equipment and medium
CN114710681A
