Live streaming method and device, electronic equipment, medium and program product

By copying and cropping the live stream, the target screens of the first and second broadcasters are displayed separately, solving the problem of poor display effect caused by different resolutions of terminal devices and improving the viewing experience of live streaming.

CN115883856BActive Publication Date: 2026-06-16BEIJING ZITIAO NETWORK TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING ZITIAO NETWORK TECH CO LTD
Filing Date
2021-09-26
Publication Date
2026-06-16

AI Technical Summary

Technical Problem

During the live stream, due to the different resolutions of the terminal devices of different viewers, directly cropping the merged image resulted in poor display quality.

Method used

By copying the live feed from the target live stream, a copied feed is obtained. The target feed containing the first and second anchors is then cropped from both the live feed and the copied feed, and these target feeds are displayed.

🎯Benefits of technology

It improves the final display effect, avoids cropping the edges of the entire live broadcast screen and the edge of the streamer, increases the streamer's proportion in the screen, and enhances the viewing experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115883856B_ABST
    Figure CN115883856B_ABST
Patent Text Reader

Abstract

The application relates to a method and device for live streaming, electronic equipment, medium and program product, which are applied to the technical field of live streaming. The method comprises the following steps: acquiring a target live streaming generated by combining a first live streaming of a first host and a second live streaming of a second host; the second host is a host in live streaming with the first host; copying a live streaming picture in the target live streaming to obtain a copied picture corresponding to the live streaming picture; cutting a first target picture containing the first host from the live streaming picture, cutting a second target picture containing the second host from the copied picture, and displaying the first target picture and the second target picture. The application can improve the display effect of the picture in live streaming.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of live streaming technology, and in particular to a live streaming method, device, electronic device, medium, and program product. Background Technology

[0002] During a live stream, two hosts can interact via a multi-host connection. Viewers entering the connected live stream room can simultaneously see the live feeds of both hosts. In other words, the two hosts' streams can be merged and displayed on the viewer's device. Because different viewers use different device resolutions, the merged feed needs to be cropped. While some technologies directly crop the merged feed, this method results in poor display quality. Summary of the Invention

[0003] In order to solve the above-mentioned technical problems, or at least partially solve the above-mentioned technical problems, this application provides a live streaming method, apparatus, electronic device, medium and program product.

[0004] According to a first aspect of this application, a live streaming method with multiple participants is provided, comprising:

[0005] Obtain the target live stream generated by merging the first live stream of the first streamer and the second live stream of the second streamer; the second streamer is the streamer who is connected with the first streamer.

[0006] The live screen in the target live stream is copied to obtain a copied screen corresponding to the live screen.

[0007] A first target image containing the first anchor is cropped from the live stream, and a second target image containing the second anchor is cropped from the copied image;

[0008] Display the first target screen and the second target screen.

[0009] Optionally, cropping a first target frame containing the first broadcaster from the live stream and cropping a second target frame containing the second broadcaster from the copied frame includes:

[0010] A first target image is cropped from the live stream to center the first anchor;

[0011] A second target image is cropped from the copied image to center the second anchor.

[0012] Optionally, cropping a first target frame containing the first broadcaster from the live stream and cropping a second target frame containing the second broadcaster from the copied frame includes:

[0013] Based on the first position information of the first anchor in the live broadcast screen, a first target screen containing the first anchor is cropped from the live broadcast screen;

[0014] Based on the second position information of the second anchor in the live broadcast screen, a second target screen containing the second anchor is cropped from the copied screen.

[0015] Optionally, displaying the first target screen and the second target screen includes:

[0016] The first target image and the second target image are spliced ​​together and displayed according to a preset splicing display method.

[0017] Optionally, cropping a first target frame containing the first broadcaster from the live stream and cropping a second target frame containing the second broadcaster from the copied frame includes:

[0018] Based on its own screen resolution and the preset splicing display method, the first aspect ratio and the second aspect ratio are determined;

[0019] A first target image containing the first anchor and having an aspect ratio equal to the first aspect ratio is cropped from the live stream image;

[0020] A second target image is cropped from the copied image, containing the second anchor and having an aspect ratio equal to the second aspect ratio.

[0021] Optionally, the live screen in the target live stream is copied to obtain a copied screen corresponding to the live screen, including:

[0022] The live stream image in the target live stream located in the first display layer is copied to the second display layer to obtain the copied image located in the second display layer.

[0023] According to a second aspect of this application, a live streaming device with multiple participants is provided, comprising:

[0024] The target live stream acquisition module is used to acquire the target live stream generated by merging the first live stream of the first streamer and the second live stream of the second streamer; the second streamer is the streamer who is connected with the first streamer.

[0025] The image copying module is used to copy the live image from the target live stream to obtain a copied image corresponding to the live image.

[0026] The target screen cropping module is used to crop out a first target screen containing the first anchor from the live screen, and to crop out a second target screen containing the second anchor from the copied screen;

[0027] The target screen display module is used to display the first target screen and the second target screen.

[0028] Optionally, the target image cropping module is specifically used to crop a first target image from the live stream to center the first anchor; and to crop a second target image from the copied image to center the second anchor.

[0029] Optionally, the target image cropping module is specifically used to crop a first target image containing the first anchor from the live broadcast image based on the first position information of the first anchor in the live broadcast image; and to crop a second target image containing the second anchor from the copied image based on the second position information of the second anchor in the live broadcast image.

[0030] Optionally, the target image display module is specifically used to splice and display the first target image and the second target image according to a preset splicing display method.

[0031] Optionally, the target image cropping module is specifically used to determine a first aspect ratio and a second aspect ratio based on its own screen resolution and the preset splicing display method; to crop a first target image from the live broadcast image that includes the first anchor and has an image aspect ratio of the first aspect ratio; and to crop a second target image from the copied image that includes the second anchor and has an image aspect ratio of the second aspect ratio.

[0032] Optionally, the image copying module is specifically used to copy the live image from the target live stream located in the first display layer to the second display layer, thereby obtaining a copied image located in the second display layer.

[0033] According to a third aspect of this application, an electronic device is provided, comprising: a processor configured to execute a computer program stored in a memory, wherein the computer program, when executed by the processor, implements the method described in the first aspect.

[0034] According to a fourth aspect of this application, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the method described in the first aspect.

[0035] According to a fifth aspect of this application, a computer program product is provided that, when the computer program product is run on a computer, causes the computer to perform the method described in the first aspect.

[0036] The technical solution provided in this application has the following advantages compared with the prior art:

[0037] After acquiring the target live stream generated by merging the first live stream of the first broadcaster and the second live stream of the second broadcaster, the live screen in the target live stream can be copied to obtain a copied screen. A first target screen containing the first broadcaster is cropped from the live screen, and a second target screen containing the second broadcaster is cropped from the copied screen, and both the first and second target screens are displayed simultaneously. This application crops the first and second target screens separately from the live screen and the copied screen as the final screen, instead of directly cropping the final screen from the live screen. This allows for cropping not only the edges of the entire live screen but also edges other than those of the first and second broadcasters. Therefore, this application can more flexibly crop the screen containing both the first and second broadcasters, thereby improving the final display effect. Attached Figure Description

[0038] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0039] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0040] Figure 1 This is a diagram illustrating the merging of live streams during a live chat interaction.

[0041] Figure 2 This is a schematic diagram illustrating a technique for cropping live stream footage.

[0042] Figure 3 A schematic diagram of the system architecture of an exemplary application environment in which the live streaming method of the present application embodiments can be applied is shown;

[0043] Figure 4 This is a flowchart of a live streaming method using live chat as described in this application.

[0044] Figure 5 This is a schematic diagram illustrating the copying of a live stream in an embodiment of this application;

[0045] Figure 6 This is a schematic diagram illustrating the display of a first target screen and a second target screen in an embodiment of this application;

[0046] Figure 7 This is a schematic diagram of a live streaming device for connecting viewers in an embodiment of this application;

[0047] Figure 8 This is a schematic diagram of the structure of an electronic device in an embodiment of this application. Detailed Implementation

[0048] To better understand the above-mentioned objectives, features, and advantages of this application, the solution of this application will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described in these embodiments can be combined with each other.

[0049] Many specific details are set forth in the following description in order to provide a full understanding of this application, but this application may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only some embodiments of this application, and not all embodiments.

[0050] During a live stream, users can interact with the host via a live chat, increasing the engagement. A live chat involves two hosts connecting and interacting via audio and video, merging their two streams for the audience to watch. Merging, on the other hand, uses a live stream merging service to combine multiple streams according to a pre-defined layout into a single live stream.

[0051] See Figure 1 , Figure 1 This diagram illustrates the merging of live streams during a live chat session. The live stream includes streamer A and streamer B. During the live stream, streamer A's terminal and streamer B's terminal generate live stream A and stream B respectively. Streams A and B are merged on the server side to generate live stream C, which is then displayed on the viewer's end. As can be seen, the live stream seen by the viewer includes both streamer A's and streamer B's feeds, displayed side-by-side on the screen.

[0052] Because different viewers have different screen resolutions, the viewer can crop the live stream C after receiving it to adapt it to their screen. See also Figure 2 , Figure 2 This diagram illustrates a technique for cropping live stream footage. It shows that during cropping, the edges of the live stream are removed, leaving only the center area. Consequently, for a single streamer, that streamer is no longer centered within their designated area. For example, streamer A might be on the left half of the screen, but not in the center of that left half; similarly, streamer B might be on the right half, but not in the center of that right half. Therefore, the cropped image has a poor display quality, negatively impacting the user's live stream experience.

[0053] To address the aforementioned issues, this application provides a live streaming method, apparatus, electronic device, medium, and program product that can improve the display effect of cropped images.

[0054] Figure 3 A schematic diagram of the system architecture of an exemplary application environment in which the live streaming method of the present application embodiments can be applied is shown.

[0055] like Figure 3 As shown, system architecture 100 may include one or more of the following: broadcast client 101, broadcast client 102, viewer client 111, viewer client 112, and viewer client 113; network 120; and server 130. Network 120 serves as the medium for providing communication links between viewer client 111, viewer client 112, viewer client 113, and server 130. Network 120 may include various connection types, such as wired, wireless communication links, or fiber optic cables. Viewer client 111, viewer client 112, and viewer client 113 may be various electronic devices with displays, including but not limited to desktop computers, laptops, smartphones, and tablets. It should be understood that... Figure 1 The number of broadcasters, viewers, networks, and servers shown is merely illustrative; any number can be used depending on implementation needs. For example, server 130 could be a server cluster consisting of multiple servers.

[0056] The live streaming method with multiple viewers provided in this application is generally executed by viewer terminals 111, 112, and 113. Correspondingly, a live streaming device with multiple viewers can be installed in viewer terminals 111, 112, and 113. For example, during a live stream, broadcaster terminals 101 and 102 generate a first live stream for a first broadcaster and a second live stream for a second broadcaster, respectively. After obtaining the first and second live streams, server 130 merges the two streams to generate a target live stream and sends the target live stream to viewer terminals 111, 112, and 113. After obtaining the target live stream from server 130, viewer terminals 111, 112, and 113 use the live streaming method with multiple viewers provided in this application to crop the live stream image of the target live stream to obtain a first target image and a second target image, and then display the first and second target images.

[0057] See Figure 4 , Figure 4 This is a flowchart of a live streaming method using live chat as described in this application, which may include the following steps:

[0058] Step S410: Obtain the target live stream generated by merging the first live stream of the first anchor and the second live stream of the second anchor; the second anchor is the anchor who is connected with the first anchor.

[0059] Step S420: Copy the live screen in the target live stream to obtain the copied screen corresponding to the live screen.

[0060] Step S430: Crop out the first target screen containing the first anchor from the live broadcast screen, and crop out the second target screen containing the second anchor from the copied screen.

[0061] Step S440: Display the first target screen and the second target screen.

[0062] The live streaming method of this application, after acquiring a target live stream generated by merging a first live stream from a first streamer and a second live stream from a second streamer, can copy the live screen in the target live stream to obtain a copied screen. A first target screen containing the first streamer is cropped from the live screen, and a second target screen containing the second streamer is cropped from the copied screen, and both the first and second target screens are displayed simultaneously. This application crops the first and second target screens from the live screen and the copied screen respectively as the final screen, rather than directly cropping the final screen from the live screen. This allows for cropping not only the edges of the entire live screen but also edges other than those of the first and second streamers. Therefore, this application can more flexibly crop the screen containing both the first and second streamers, thereby improving the final display effect.

[0063] The technical solutions of the embodiments of this application are described in detail below:

[0064] In step S410, a target live stream is obtained by merging the first live stream of the first anchor and the second live stream of the second anchor; the second anchor is the anchor who is connected with the first anchor.

[0065] In this embodiment, the first and second streamers are streamers who are connected in the same live streaming room. If the first streamer is the streamer being connected to, and the second streamer is the streamer connecting with, there can be one or more second streamers. That is, multiple users can connect with the streamers in the live streaming room simultaneously.

[0066] The first broadcaster's client generates a first live stream during the live stream, which is a video stream containing the first broadcaster's video. Similarly, the second broadcaster's client generates a second live stream, which is a video stream containing the second broadcaster's video. Both the first and second broadcasters upload their respective streams to the server. The server merges the first and second streams to generate the target live stream, which is then sent to the viewer's client. Therefore, the target live stream received by the viewer is generated by merging the first and second live streams.

[0067] In step S420, the live screen in the target live stream is copied to obtain a copied screen corresponding to the live screen.

[0068] The target live stream includes multiple video frames, each displaying a live feed. This application processes each live feed in the same way; therefore, a single live feed will be used as an example. It is understood that the live feed of the target video stream can simultaneously include feeds from both the first and second broadcasters. To separately crop out the feeds containing the first and second broadcasters—that is, to crop two feeds separately, rather than directly cropping to obtain a single feed containing both broadcasters—this application can duplicate the live feed to obtain a copy that is identical to the live feed.

[0069] Since live streams are typically displayed in a display layer (e.g., a View), if the live stream is located in the first display layer, the live stream in the target live stream located in the first display layer can be copied to the second display layer to obtain a copied stream located in the second display layer. Figure 5 This is a schematic diagram of copying a live broadcast screen in an embodiment of this application. It can be seen that the live broadcast screen and the copied screen are on two different display layers, and the live broadcast screen and the copied screen are completely identical.

[0070] In step S430, a first target screen containing the first anchor is cropped from the live broadcast screen, and a second target screen containing the second anchor is cropped from the copied screen.

[0071] In this embodiment, the first live stream uploaded by the first broadcaster and the second live stream uploaded by the second broadcaster can carry SEI (Supplemental Enhancement Information). That is, the first broadcaster can add SEI information to the first live stream and the second broadcaster can add SEI information to the second live stream when generating the first live stream and the second broadcaster can add SEI information to the second live stream, respectively. SEI information can include encoder parameters, video copyright information, and information related to the live stream (such as the broadcaster's location information), etc. In an optional implementation, a first target image containing the first broadcaster can be cropped from the live stream based on the first position information of the first broadcaster in the live stream, and a second target image containing the second broadcaster can be cropped from the copied image based on the second position information of the second broadcaster in the live stream.

[0072] In another alternative implementation, image recognition can be performed on the live stream to identify a first target screen containing a first anchor and a second target screen containing a second anchor.

[0073] Understandably, compared to before cropping, the first and second target frames can exclude unnecessary edge areas beyond the first and second streamers. This means increasing the proportion of the first streamer in the first target frame and increasing the proportion of the second streamer in the second target frame. This improves the viewing experience during the live stream.

[0074] In addition, to improve the display effect of the first and second anchors in the final screen, and to avoid the first anchor appearing at the edge of the first target screen and the second anchor appearing at the edge of the second target screen, for example... Figure 2 As shown, during cropping, a first target image can be cropped from the live stream to center the first broadcaster, and a second target image can be cropped from the copied image to center the second broadcaster. That is, the first broadcaster is positioned in the center of the first target image, and the second broadcaster is positioned in the center of the second target image. The centering described in this application can be a relative centering, meaning it doesn't need to be perfectly centered.

[0075] In this embodiment, a first target image and a second target image can be cropped to match different viewer terminals. Specifically, the viewer terminal can determine a first aspect ratio and a second aspect ratio based on its own screen resolution and a preset splicing display method. The screen aspect ratio can be determined based on the screen resolution, and the first aspect ratio and the second aspect ratio can be determined based on the screen aspect ratio and the preset splicing display method. The first aspect ratio can be the aspect ratio of the first target image, and the second aspect ratio can be the aspect ratio of the second target image. Assuming the first target image and the second target image are displayed side-by-side, each occupying half of the screen, the first aspect ratio and the second aspect ratio are equal.

[0076] Then, a first target image containing the first anchor and with the first aspect ratio can be cropped from the live stream, and a second target image containing the second anchor and with the second aspect ratio can be cropped from the copied image.

[0077] See Figure 6 , Figure 6 This is a schematic diagram illustrating the display of a first target screen and a second target screen in an embodiment of this application. The first target screen (the left half of the gray area) where anchor A and anchor B are located is stitched together with the second target screen (the right half of the gray area). It can be seen that the final stitched image matches the screen resolution. Furthermore, anchor A is centered in the left half of the screen, and anchor B is centered in the right half, resulting in a better display effect and thus improving the live streaming experience.

[0078] In step S440, the first target screen and the second target screen are displayed.

[0079] In this embodiment, displaying the first target screen and the second target screen refers to displaying both simultaneously. In an optional implementation, the first and second target screens can be displayed in a window format, with one screen displayed in a large window (the largest display window of the live stream) and the others in smaller windows. Viewers can switch between the large and small windows by clicking on different screens. For example, if there are two second broadcasters, there are also two second target screens. If the first target screen is displayed in a large window and the two second target screens are displayed in small windows, then when a viewer clicks on one of the second target screens, that second target screen will switch from a small window to a large window, while the first target screen will switch from a large window to a small window.

[0080] In another optional implementation, the first target image and the second target image can be spliced ​​together according to a preset splicing display method. The preset splicing display method is determined based on the total number of the first and second target images, that is, based on the total number of the first and second broadcasters. For example, if there is one first target image and one second target image, the first and second target images can be spliced ​​together horizontally; if there is one first target image and two second target images, the first and second target images can be spliced ​​together in a top-bottom-left, bottom-right, or similar manner, and so on.

[0081] The live streaming method of this application, after acquiring a target live stream generated by merging a first live stream from a first streamer and a second live stream from a second streamer, can copy the live screen in the target live stream to obtain a copied screen. Based on the first position information of the first streamer in the live screen, a first target screen is cropped from the live screen to center the first streamer and match the screen resolution of the viewer. Based on the second position information of the second streamer in the live screen, a second target screen is cropped from the copied screen to center the second streamer and match the screen resolution. The first and second target screens are then spliced ​​together for display. This application crops a first target screen to center the first streamer and a second target screen to center the second streamer from the live screen and the copied screen respectively as the final screen, and matches them with viewer screens of different resolutions, thereby improving the final display effect.

[0082] Corresponding to the above method embodiments, this application also provides a live streaming device for multi-user interaction, see [link to relevant documentation]. Figure 7 The live streaming device 700 includes:

[0083] The target live stream acquisition module 710 is used to acquire the target live stream generated by merging the first live stream of the first streamer and the second live stream of the second streamer; the second streamer is the streamer who is connected with the first streamer.

[0084] The image copying module 720 is used to copy the live image from the target live stream to obtain the copied image corresponding to the live image.

[0085] The target screen cropping module 730 is used to crop out a first target screen containing the first anchor from the live screen and to crop out a second target screen containing the second anchor from the copied screen;

[0086] The target screen display module 740 is used to display the first target screen and the second target screen.

[0087] Optionally, the target screen cropping module 730 is specifically used to crop a first target screen from the live screen to center the first anchor; and to crop a second target screen from the copied screen to center the second anchor.

[0088] Optionally, the target image cropping module 730 is specifically used to crop out a first target image containing the first anchor from the live broadcast image based on the first position information of the first anchor in the live broadcast image; and to crop out a second target image containing the second anchor from the copied image based on the second position information of the second anchor in the live broadcast image.

[0089] Optionally, the target screen display module 740 is specifically used to splice and display the first target screen and the second target screen according to a preset splicing display method.

[0090] Optionally, the target image cropping module 730 is specifically used to determine a first aspect ratio and a second aspect ratio based on its own screen resolution and a preset splicing display method; to crop a first target image from the live broadcast image that includes the first anchor and has an image aspect ratio of the first aspect ratio; and to crop a second target image from the copied image that includes the second anchor and has an image aspect ratio of the second aspect ratio.

[0091] Optionally, the image copying module 720 is specifically used to copy the live image from the target live stream located in the first display layer to the second display layer, thereby obtaining the copied image located in the second display layer.

[0092] The specific details of each module or unit in the above-mentioned device have been described in detail in the corresponding methods, so they will not be repeated here.

[0093] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to the embodiments of this application, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.

[0094] In an exemplary embodiment of this application, an electronic device is also provided, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the live streaming method described above in this example embodiment.

[0095] Figure 8 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application. It should be noted that... Figure 8 The electronic device 800 shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.

[0096] like Figure 8 As shown, the electronic device 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage section 808 into a random access memory (RAM) 803. The RAM 803 also stores various programs and data required for system operation. The CPU 801, ROM 802, and RAM 803 are interconnected via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0097] The following components are connected to I / O interface 805: an input section 806 including a keyboard, mouse, etc.; an output section 807 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a local area network (LAN) card, modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to I / O interface 805 as needed. A removable medium 811, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 810 as needed so that computer programs read from it can be installed into storage section 808 as needed.

[0098] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 809, and / or installed from removable medium 811. When the computer program is executed by central processing unit 801, it performs various functions defined in the apparatus of this application.

[0099] In this embodiment of the application, a computer-readable storage medium is also provided, on which a computer program is stored, which, when executed by a processor, implements the above-described live streaming method.

[0100] It should be noted that the computer-readable storage medium shown in this application can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory, read-only memory, erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this application, the computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable storage medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, radio frequency, etc., or any suitable combination thereof.

[0101] In this embodiment of the application, a computer program product is also provided, which, when run on a computer, causes the computer to execute the above-described live streaming method.

[0102] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0103] The above description is merely a specific embodiment of this application, enabling those skilled in the art to understand or implement this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments described herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A live streaming method with multiple participants, characterized in that, The method includes: Obtain the target live stream generated by merging the first live stream of the first streamer and the second live stream of the second streamer; the second streamer is the streamer who is connected with the first streamer. The live screen in the target live stream is copied to obtain a copied screen corresponding to the live screen. A first target image containing the first anchor is cropped from the live stream, and a second target image containing the second anchor is cropped from the copied image; Display the first target screen and the second target screen; The step of cropping a first target image containing the first streamer from the live stream and cropping a second target image containing the second streamer from the copied image includes: Based on its own screen resolution and preset splicing display method, the first aspect ratio and the second aspect ratio are determined; A first target image containing the first anchor and having an aspect ratio equal to the first aspect ratio is cropped from the live stream image; A second target image containing the second anchor and having the same aspect ratio as the second image is cropped from the copied image; The step of cropping a first target image containing the first streamer from the live stream and cropping a second target image containing the second streamer from the copied image includes: Based on the first position information of the first anchor in the live broadcast screen, a first target screen containing the first anchor is cropped from the live broadcast screen; Based on the second position information of the second anchor in the live broadcast screen, a second target screen containing the second anchor is cropped from the copied screen.

2. The method according to claim 1, characterized in that, Cropping a first target frame containing the first streamer from the live stream, and cropping a second target frame containing the second streamer from the copied frame, includes: A first target image is cropped from the live stream to center the first anchor, and a second target image is cropped from the copied image to center the second anchor.

3. The method according to claim 1, characterized in that, The display of the first target screen and the second target screen includes: The first target image and the second target image are spliced ​​together and displayed according to a preset splicing display method.

4. The method according to claim 1, characterized in that, Copying the live screen from the target live stream to obtain a copied screen, including: The live stream image in the target live stream located in the first display layer is copied to the second display layer to obtain the copied image located in the second display layer.

5. A live streaming device for multiple users, characterized in that, The device includes: The target live stream acquisition module is used to acquire the target live stream generated by merging the first live stream of the first streamer and the second live stream of the second streamer; the second streamer is the streamer who is connected with the first streamer. The image copying module is used to copy the live image from the target live stream to obtain a copied image corresponding to the live image. The target screen cropping module is used to crop out a first target screen containing the first anchor from the live screen, and to crop out a second target screen containing the second anchor from the copied screen; A target screen display module is used to display the first target screen and the second target screen; The step of cropping a first target image containing the first streamer from the live stream and cropping a second target image containing the second streamer from the copied image includes: Based on its own screen resolution and preset splicing display method, the first aspect ratio and the second aspect ratio are determined; A first target image containing the first anchor and having an aspect ratio equal to the first aspect ratio is cropped from the live stream image; A second target image containing the second anchor and having the same aspect ratio as the second image is cropped from the copied image; The step of cropping a first target image containing the first streamer from the live stream and cropping a second target image containing the second streamer from the copied image includes: Based on the first position information of the first anchor in the live broadcast screen, a first target screen containing the first anchor is cropped from the live broadcast screen; Based on the second position information of the second anchor in the live broadcast screen, a second target screen containing the second anchor is cropped from the copied screen.

6. An electronic device, characterized in that, include: A processor for executing a computer program stored in a memory, wherein the computer program, when executed by the processor, implements the steps of the method according to any one of claims 1-4.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method described in any one of claims 1-4.

8. A computer program product, characterized in that, The computer program product contains a computer program that, when run on a computer processor, performs the steps of the method according to any one of claims 1-4.