CN107864122B - Display method and device for live stream of main broadcast with wheat - Google Patents

Display method and device for live stream of main broadcast with wheat Download PDF

Info

Publication number
CN107864122B
CN107864122B CN201710971414.2A CN201710971414A CN107864122B CN 107864122 B CN107864122 B CN 107864122B CN 201710971414 A CN201710971414 A CN 201710971414A CN 107864122 B CN107864122 B CN 107864122B
Authority
CN
China
Prior art keywords
live
live streaming
address
video
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710971414.2A
Other languages
Chinese (zh)
Other versions
CN107864122A (en
Inventor
潘龙
陈少杰
张文明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201710971414.2A priority Critical patent/CN107864122B/en
Publication of CN107864122A publication Critical patent/CN107864122A/en
Application granted granted Critical
Publication of CN107864122B publication Critical patent/CN107864122B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • H04L65/764Media network packet handling at the destination 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/80Responding to QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention provides a method and a device for displaying a live stream of a continuous-broadcasting live broadcast. The method comprises the following steps: acquiring a first live streaming address of a first anchor terminal and a second live streaming address of a second anchor terminal which are connecting to the wheat in a target network live broadcasting room; and respectively acquiring the live stream of the first anchor terminal and the live stream of the second anchor terminal based on the first live stream address and the second live stream address, and simultaneously playing the live streams in the same picture through two streaming media. The invention ensures that any user terminal can see the pictures of two anchor broadcasters at the same time, directly obtains two live streams through the live stream addresses of the two anchor broadcasters and then simultaneously plays the two live streams through the two media streams at the user terminal, does not depend on mixed flow of a server or mixed flow of a client of the anchor broadcasters, avoids the problems of delay, jitter and the like of the mixed flow of the server, and also avoids the problems of high network consumption and easy network jitter of the mixed flow of the client.

Description

Display method and device for live stream of main broadcast with wheat
Technical Field
The invention relates to the technical field of video live broadcast, in particular to a method and a device for displaying live streams of a live broadcast with continuous broadcasting.
Background
With the continuous development of video live broadcast entertainment, a video live broadcast entertainment mode that a main broadcast and a main broadcast carry out video live broadcast interaction appears in the field of live broadcast at present. Two anchor broadcasters begin to connect the interactive mode of wheat and establish a live broadcasting room, and live audience enters the live broadcasting room of connecting the wheat and can see the live broadcasting picture of two anchor broadcasters simultaneously, watches the performance and the interaction of two anchor broadcasters through the colleague, greatly increased live broadcasting room interest.
The live video and the live broadcast interaction can not avoid the mixed flow of two main broadcast live broadcast videos, thereby achieving the picture effect that two main broadcast video streams appear in one live broadcast picture.
There are two kinds of live broadcast video mixed flow schemes among the prior art: one is server mixed flow and anchor client mixed flow. The mixed flow scheme of the server is that a server acquires respective live video streams of two main broadcasts of a connecting wheat, the server combines the two video streams into one through coding and decoding, and a user acquires and plays the combined live video stream; however, this solution is now prone to the following problems: there is a certain probability of codec failure (e.g. one network jitter in two anchor), mixing into a new video stream sound delay or echo. In addition, the mixed flow scheme of the main broadcasting client side is that a video stream of one main broadcasting end of the connected wheat is sent to the other main broadcasting client side at a fixed point, the main broadcasting end which receives the video stream carries out mixed flow and then sends the mixed flow to the server, and then a user downloads the live stream from the server to watch; this solution mainly suffers from the following problems: receiving a single-point stream to carry out mixed-flow main broadcast, that is, needing to download a live stream of another main broadcast, and also needing to upload the mixed stream to a server has high network consumption, and network jitter is easy to generate to influence a user to watch live broadcast with continuous wheat.
Disclosure of Invention
The present invention overcomes or at least partially solves the above-mentioned problems by providing a method for exporting large-scale service data.
According to one aspect of the invention, a method for displaying a live stream of a live webcast is provided, which comprises the following steps:
step 1, acquiring a first live streaming address of a first anchor terminal and a second live streaming address of a second anchor terminal which are connecting to the home phone in a target network live broadcasting room;
and 2, respectively acquiring the live stream of the first anchor terminal and the live stream of the second anchor terminal based on the first live stream address and the second live stream address, and simultaneously playing the live streams in the same picture through two streaming media.
Further, the step 2 further includes:
s21, respectively acquiring a first line parameter corresponding to the first live streaming address and a second line parameter corresponding to the second live streaming address, establishing bidirectional connection with the first live streaming address through the first line parameter, and establishing bidirectional connection with the second live streaming address through the second line parameter;
s22, acquiring a first live streaming video of the first anchor terminal from the first live streaming address, and acquiring a second live streaming video of the second anchor terminal from the second live streaming address;
s23, two streaming media are newly built, and the first live streaming video and the second live streaming video are simultaneously played in the same picture through the two streaming media respectively.
Further, the step S23 further includes:
s231, based on the size of the terminal player of the same picture, performing maximum equal-scale scaling on the first live streaming video and the second live streaming video;
and S232, the first live streaming video and the second live streaming video are centrally arranged in playing areas which respectively occupy the same area of the same picture and then are simultaneously played through the newly-built two streaming media.
Further, the step S231, further includes:
acquiring the height and width of the terminal player, the height and width of the first live streaming video and the height and width of the second live streaming video;
acquiring the smaller value of the ratio of the height of the terminal player to the height of the first direct-broadcast streaming video and the ratio of the width of the terminal player to the width of the first direct-broadcast streaming video as the scaling ratio of the first direct-broadcast streaming video;
acquiring the smaller value of the ratio of the height of the terminal player to the height of the second live streaming video and the ratio of the width of the terminal player to the width of the second live streaming video as the scaling ratio of the second live streaming video;
taking the smaller value of the scaling of the first live streaming video and the scaling of the second live streaming video as the video scaling;
and zooming the first live streaming video and the second live streaming video according to the video zooming proportion.
Further, the step S232 further includes:
based on the left half part and the right half part which are divided by the same picture, enabling the lower right corner of the zoomed first live streaming video to be located at the lower right corner of the left half part, and enabling the lower left corner of the zoomed second live streaming video to be located at the lower left corner of the right half part;
and respectively playing the first live streaming video of the left half part and the second live streaming video of the right half part through the newly-built two streaming media.
Further, the step S21 further includes:
acquiring a first line parameter corresponding to the first direct-current address, wherein the first line parameter comprises a plurality of pieces of line information from a terminal where the same picture is located to the first direct-current address, and storing the first line parameter;
acquiring a second line parameter corresponding to the second live streaming address, wherein the second line parameter comprises a plurality of pieces of line information from a terminal where the same picture is located to the second live streaming address, and storing the second line parameter;
and selecting a line from the first line parameters to establish bidirectional connection with the first direct broadcast stream address, and selecting a line from the second line parameters to establish bidirectional connection with the second direct broadcast stream address.
Further, the method for displaying the live stream of the live telecast further comprises the following steps:
and if the first anchor terminal and/or the second anchor terminal generate video pause, selecting a different line from the first line parameter and/or the second line parameter for switching connection.
According to another aspect of the present invention, there is also provided a display apparatus for displaying a live stream of a live webcast, including:
the address acquisition module is used for acquiring a first live streaming address of a first anchor terminal and a second live streaming address of a second anchor terminal which are connected with the microphone in a target network live broadcasting room; and
and the video mixed-flow module is used for respectively acquiring the live stream of the first main broadcast terminal and the live stream of the second main broadcast terminal based on the first live stream address and the second live stream address, and respectively playing the live streams in the same picture through two streaming media.
According to another aspect of the present invention, there is provided a display apparatus for displaying a live stream of a live webcast, comprising:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the method for displaying the live stream of the online multicast and the method of any optional embodiment of the method.
According to another aspect of the present invention, there is provided a non-transitory computer readable storage medium, wherein the non-transitory computer readable storage medium stores computer instructions for causing the computer to execute the method for displaying a live webcast stream according to the embodiment of the present invention and any optional embodiments thereof.
The invention provides a display method of live streams of continuous-microphone main broadcasts, which aims to enable any user terminal to see pictures of two main broadcasts at the same time, directly obtain the two live streams through the live stream addresses of the two main broadcast terminals and simultaneously play the two live streams through two media streams at the user terminal, does not depend on mixed flow of a server or mixed flow of a client of the main broadcasts, avoids the problems of delay, jitter and the like of the mixed flow of the server, and also avoids the problems of high network consumption and easy network jitter of the mixed flow of the client.
Drawings
Fig. 1 is a schematic flow chart of a method for displaying a live stream of a main broadcast with wheat according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of two video frames according to an embodiment of the present invention;
fig. 3 is a block diagram of a display device of a live stream of a live telecast with miked broadcasting according to an embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the present invention is provided in connection with the accompanying drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
Fig. 1 is a schematic flow chart of a method for displaying a live stream of a main multicast in a local area network according to an embodiment of the present invention, and as shown in fig. 1, an embodiment of the present invention provides a method for displaying a live stream of a main multicast in a local area network, where an execution main body is an arbitrary user terminal, and the method includes:
step 1, acquiring a first live streaming address of a first anchor terminal and a second live streaming address of a second anchor terminal which are connecting to the home phone in a target network live broadcasting room;
in the embodiment of the present invention, the first anchor terminal and the second anchor terminal are any two anchor terminals that are in the process of connecting to the wheat, and one of the two anchor terminals may be an active party and the other one may be a passive party. And the live streaming address is the address of a server where the data of the current video picture of the anchor terminal is located. The live streaming addresses of the anchor terminals of the two parties connected to the wheat may be the same server or different servers.
And 2, respectively acquiring the live stream of the first anchor terminal and the live stream of the second anchor terminal based on the first live stream address and the second live stream address, and simultaneously playing the live streams in the same picture through two streaming media.
The embodiment of the invention firstly obtains whether the main broadcasting terminal where the room is located is connected with the microphone from the server, and if the main broadcasting terminal is connected with the microphone, the direct broadcasting stream addresses of the two opposite microphone connecting parties are requested. After obtaining two stream addresses, the user plays the two streams according to the two stream media, so that the user can see two main broadcasts connected with the microphone in a live broadcast room. In order to avoid the time delay and the performance consumption of the traditional mixed flow, the embodiment of the invention uses two streaming media to respectively play the videos of two main broadcasting terminals, namely one streaming media plays the video of one main broadcasting terminal, and the two streaming media and the main broadcasting terminal are not influenced mutually.
The embodiment of the invention provides a method for displaying a live stream of a main broadcast of continuous wheat, wherein an execution main body is a user terminal for randomly watching a picture of the main broadcast continuous wheat, so that mixed flow of the embodiment of the invention is completed through the user terminal by self mixed flow. In order to enable any user terminal to see the pictures of two anchor broadcasters at the same time, the two live streams are directly obtained through the live stream addresses of the two anchor broadcasters and then are played at the user terminal through the two media streams at the same time, the mixed stream of the server or the mixed stream of the client of the anchor is not relied on, the problems of delay, jitter and the like of the mixed stream of the server are avoided, and the problems of high network consumption and easy network jitter of the mixed stream of the client are also avoided.
In an optional embodiment, the step 2, further includes:
s21, respectively acquiring a first line parameter corresponding to the first live streaming address and a second line parameter corresponding to the second live streaming address, establishing bidirectional connection with the first live streaming address through the first line parameter, and establishing bidirectional connection with the second live streaming address through the second line parameter;
s22, acquiring a first live streaming video of the first anchor terminal from the first live streaming address, and acquiring a second live streaming video of the second anchor terminal from the second live streaming address;
s23, two streaming media are newly built, and the first live streaming video and the second live streaming video are simultaneously played in the same picture through the two streaming media respectively.
In a specific implementation environment, the user terminal may obtain the video stream addresses and the line status of the two parties of the microphone from the server through a socket or an http request interface. Suppose that Aobject is the miking data of the miking party of the active initiator, Bobject is the miking data of the passive receiving miking party, Aobject and Bobject both contain the live stream address nsUrl attribute, and the line parameter cdnList, where the line parameter cdnList is an array each element of which contains the line name and specific line information CDN, CDN indicates the line goes to the CDN vendor).
The simulation data structure is as follows
Aobject ═ { nsUrl: "XXXXXXX", cdnList: [ { name: line 1, cdn: XX }, { name: line 2, cdn: XXX } ]
Bob ═ { nsUrl: "XXXXXXX", cdnList: [ { name: line 1, cdn: XX }, { name: line 2, cdn: XXX.
Any user terminal obtains the active initiator party connecting party data Aobject and the passive receiving party connecting party data Boobject, and can analyze the live stream addresses nsUrl of the two connecting party main broadcasting terminals.
Typically, a complete live stream is played through the following steps: 1. a bi-directional connection can be created between the flash client and the streaming server through the NetConnection class object, 2. media streams and data are then connected through the NetStream class object. 3. When the media stream and the data are taken, the media stream data can be stored only through the video class object container, and then the live stream can be played through the video play method.
The embodiment of the invention needs to carry out the above process twice in order to play the stream addresses of the two parties of connecting the microphone in the live broadcast room. Namely, 2 NetConnections are established, and then two NetStream and video are correspondingly established.
In a specific implementation environment, the codes of the aobjects and bobjects of the two parties connecting to the microphone are implemented as follows:
Aobject:
Figure BDA0001437602640000081
Bobject:
Figure BDA0001437602640000082
Figure BDA0001437602640000091
based on the above embodiment, the mixed flow of the videos of the two main broadcasting terminals connected with the wheat by any user terminal is realized, but the mixed flow is only an irregular superposition, so that the user experience of the superposed two live broadcasting stream pictures is not good, and therefore, certain processing needs to be performed on the video display picture of the mixed flow to make the picture more beautiful.
In an optional embodiment, in step S23, newly creating two streaming media, and playing the first live streaming video and the second live streaming video simultaneously in the same picture through the two streaming media respectively, further includes:
s231, based on the size of the terminal player of the same picture, performing maximum equal-scale scaling on the first live streaming video and the second live streaming video;
and S232, the first live streaming video and the second live streaming video are centrally arranged in playing areas which respectively occupy the same area of the same picture and then are simultaneously played through the newly-built two streaming media.
According to the embodiment of the invention, the video pictures are typeset on the basis of the user mixed flow, so that beautiful pictures are obtained, and the user experience is improved. The method comprises the following two aspects:
in the first aspect, the display sizes of the two video pictures are scaled to achieve reasonable display sizes.
In a second aspect, the display positions of the two video frames, each half, are displayed centrally. Fig. 2 is a schematic display diagram of two video frames according to an embodiment of the present invention, and as shown in fig. 2, the centered display refers to a centered display of a total size of display sizes of the two video frames, and does not mean that each video frame is respectively centered on a same display frame.
Based on the above embodiment, in step S231, based on the size of the terminal player where the same frame is located, performing maximum equal-scale scaling on the first live streaming video and the second live streaming video, further including:
acquiring the height and width of the terminal player, the height and width of the first live streaming video and the height and width of the second live streaming video;
acquiring the smaller value of the ratio of the height of the terminal player to the height of the first direct-broadcast streaming video and the ratio of the width of the terminal player to the width of the first direct-broadcast streaming video as the scaling ratio of the first direct-broadcast streaming video;
acquiring the smaller value of the ratio of the height of the terminal player to the height of the second live streaming video and the ratio of the width of the terminal player to the width of the second live streaming video as the scaling ratio of the second live streaming video;
taking the smaller value of the scaling of the first live streaming video and the scaling of the second live streaming video as the video scaling;
and zooming the first live streaming video and the second live streaming video according to the video zooming proportion.
The specific method for maximum equal-scale scaling in the embodiment of the present invention is mainly to calculate the scaling of each live video stream according to the height and width of the terminal player and the height and width of each live video stream, and since the height-width ratio of the live video stream is not necessarily the same as the height-width ratio of the terminal player, the scaling ratio based on the height is not necessarily the same as the scaling ratio based on the width, and at this time, a smaller scaling ratio is taken as the scaling of the live video stream.
And because the sizes of the college entrance examination of the two live video streams are not necessarily the same, the scaling ratios calculated by the two live video streams are not necessarily the same, and at the moment, the smaller value of the scaling ratios of the two live video streams is taken as the uniform scaling ratio, namely, the last two live video streams are scaled according to the uniform scaling ratio.
In a specific implementation environment, the heights and widths of the aobjects and bobjects of the two parties connecting to the microphone are AH, AW, BH and BW respectively, the heights and widths of the terminal players are stageH and stagews respectively, and the calculation codes of the scaling are implemented as follows:
Figure BDA0001437602640000111
based on the above embodiment, in step S232, after the first live streaming video and the second live streaming video are arranged in the middle in the playing regions that respectively occupy the same area of the same screen and are then played simultaneously through the two newly-created streaming media, the method further includes:
based on the left half part and the right half part which are divided by the same picture, enabling the lower right corner of the zoomed first live streaming video to be located at the lower right corner of the left half part, and enabling the lower left corner of the zoomed second live streaming video to be located at the lower left corner of the right half part;
and respectively playing the first live streaming video of the left half part and the second live streaming video of the right half part through the newly-built two streaming media.
Referring to fig. 2, the playing positions of the two processed video frames of the present embodiment are respectively 1 and 2 in fig. 2. The same scaling processing has been performed on both live-stream videos in the foregoing embodiment, and then the XY coordinate positions are set by the method of the present embodiment. In a specific implementation environment, the code for the coordinate location setting is as follows:
Figure BDA0001437602640000121
in an optional embodiment, the step S21, further includes:
acquiring a first line parameter corresponding to the first direct-current address, wherein the first line parameter comprises a plurality of pieces of line information from a terminal where the same picture is located to the first direct-current address, and storing the first line parameter;
acquiring a second line parameter corresponding to the second live streaming address, wherein the second line parameter comprises a plurality of pieces of line information from a terminal where the same picture is located to the second live streaming address, and storing the second line parameter;
and selecting a line from the first line parameters to establish bidirectional connection with the first direct broadcast stream address, and selecting a line from the second line parameters to establish bidirectional connection with the second direct broadcast stream address.
As described above, the live streaming address of the embodiment of the present invention has multiple lines, where the line parameter cdnList is an array each element of which contains a line name and specific line information cdn. When the current line for acquiring the live stream video is in pause, the live stream video can be switched to other lines for watching, and similarly, when one or two live streams are in pause, the current pause stream can be switched.
In an optional embodiment, the method for displaying a live stream of a live telecast with miked broadcasting according to an embodiment of the present invention further includes:
and if the first anchor terminal and/or the second anchor terminal generate video pause, selecting a different line from the first line parameter and/or the second line parameter for switching connection.
The embodiment of the invention provides a live video stream stuck processing method, because the stuck may occur any time when the live video stream is started to be watched and displayed currently, the embodiment of the invention can utilize a plurality of line information in line parameters to carry out quick and effective line switching when the stuck occurs at will.
In the implementation, all selectable lines can be provided through a right-click menu of a user interface of the user terminal for the user to select by himself. All lines are displayed on a right mouse button, and a click event onclik is bound, so that a user only needs to click other lines to switch when finding that the card is stuck; once the onclick event is triggered by clicking other line event, the line name bound by the line information cdn can be used to request a new video stream address of the party who has happened katon and then to re-perform the user mixing.
Based on the embodiment, the embodiment of the invention firstly obtains the live streams of two main broadcasting terminals connected with the wheat by the user terminal for mixed flow, then carries out typesetting of video display pictures, and finally provides a video stream blocking processing method.
An embodiment of the present invention further provides a display device for displaying a live stream of a main broadcast with wheat, including:
the address acquisition module is used for acquiring a first live streaming address of a first anchor terminal and a second live streaming address of a second anchor terminal which are connected with the microphone in a target network live broadcasting room; and
and the video mixed-flow module is used for respectively acquiring the live stream of the first main broadcast terminal and the live stream of the second main broadcast terminal based on the first live stream address and the second live stream address, and respectively playing the live streams in the same picture through two streaming media.
The display device of the live stream of the live telecast with the microphone in the embodiment of the present invention is a device claim that completely corresponds to the display method of the live stream of the live telecast with the microphone in the embodiment of the present invention, and has completely the same technical features and technical effects as the display method of the live stream of the live telecast with the microphone in the embodiment of the present invention, and details are not repeated here.
Fig. 3 is a block diagram showing a configuration of a display device for live streams of the online anchor according to an embodiment of the present invention.
Referring to fig. 3, the apparatus includes: a processor (processor)401, a memory (memory)402, and a bus 403;
wherein, the processor 401 and the memory 402 complete the communication with each other through the bus 403;
the processor 401 is configured to call the program instructions in the memory 402 to execute the methods provided by the above-mentioned method embodiments, for example, including: acquiring a first live streaming address of a first anchor terminal and a second live streaming address of a second anchor terminal which are connecting to the wheat in a target network live broadcasting room; and respectively acquiring the live stream of the first anchor terminal and the live stream of the second anchor terminal based on the first live stream address and the second live stream address, and simultaneously playing the live streams in the same picture through two streaming media.
The present embodiment discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the method provided by the above-mentioned method embodiments, for example, comprising: acquiring a first live streaming address of a first anchor terminal and a second live streaming address of a second anchor terminal which are connecting to the wheat in a target network live broadcasting room; and respectively acquiring the live stream of the first anchor terminal and the live stream of the second anchor terminal based on the first live stream address and the second live stream address, and simultaneously playing the live streams in the same picture through two streaming media.
The present embodiments provide a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the methods provided by the above method embodiments, for example, including: acquiring a first live streaming address of a first anchor terminal and a second live streaming address of a second anchor terminal which are connecting to the wheat in a target network live broadcasting room; and respectively acquiring the live stream of the first anchor terminal and the live stream of the second anchor terminal based on the first live stream address and the second live stream address, and simultaneously playing the live streams in the same picture through two streaming media.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The above-described embodiments of the apparatus and the like of the method for exporting bulk service data are merely illustrative, where the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, may be located in one place, or may also be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, the method of the present application is only a preferred embodiment and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (7)

1. A method for displaying live streams of live broadcasts:
step 1, acquiring a first live streaming address of a first anchor terminal and a second live streaming address of a second anchor terminal which are connecting to the home phone in a target network live broadcasting room;
step 2, respectively acquiring the live stream of the first anchor terminal and the live stream of the second anchor terminal based on the first live stream address and the second live stream address, and simultaneously playing the live streams in the same picture through two streaming media;
the step 2 further comprises: s21, respectively acquiring a first line parameter corresponding to the first live streaming address and a second line parameter corresponding to the second live streaming address, establishing bidirectional connection with the first live streaming address through the first line parameter, and establishing bidirectional connection with the second live streaming address through the second line parameter;
s22, obtaining a first live streaming video of the first anchor terminal from the first live streaming address, and obtaining a second live streaming video of the second anchor terminal from the second live streaming address;
s23, creating two streaming media, and simultaneously playing the first live streaming video and the second live streaming video in the same picture through the two streaming media respectively;
the step S21 further includes:
acquiring a first line parameter corresponding to the first direct-current address, wherein the first line parameter comprises a plurality of pieces of line information from a terminal where the same picture is located to the first direct-current address, and storing the first line parameter;
acquiring a second line parameter corresponding to the second live streaming address, wherein the second line parameter comprises a plurality of pieces of line information from a terminal where the same picture is located to the second live streaming address, and storing the second line parameter;
selecting a line from the first line parameters to establish bidirectional connection with the first direct broadcast stream address, and selecting a line from the second line parameters to establish bidirectional connection with the second direct broadcast stream address;
and if the first anchor terminal and/or the second anchor terminal generate video pause, selecting a different line from the first line parameter and/or the second line parameter for switching connection.
2. The method of claim 1, wherein the step S23, further comprises:
s231, based on the size of the terminal player of the same picture, performing maximum equal-scale scaling on the first live streaming video and the second live streaming video;
and S232, the first live streaming video and the second live streaming video are centrally arranged in playing areas which respectively occupy the same area of the same picture and then are simultaneously played through the newly-built two streaming media.
3. The method of claim 2, wherein the step S231, further comprises:
acquiring the height and width of the terminal player, the height and width of the first live streaming video and the height and width of the second live streaming video;
acquiring the smaller value of the ratio of the height of the terminal player to the height of the first direct-broadcast streaming video and the ratio of the width of the terminal player to the width of the first direct-broadcast streaming video as the scaling ratio of the first direct-broadcast streaming video;
acquiring the smaller value of the ratio of the height of the terminal player to the height of the second live streaming video and the ratio of the width of the terminal player to the width of the second live streaming video as the scaling ratio of the second live streaming video;
taking the smaller value of the scaling of the first live streaming video and the scaling of the second live streaming video as the video scaling;
and zooming the first live streaming video and the second live streaming video according to the video zooming proportion.
4. The method of claim 3, wherein the step S232 further comprises:
based on the left half part and the right half part which are divided by the same picture, enabling the lower right corner of the zoomed first live streaming video to be located at the lower right corner of the left half part, and enabling the lower left corner of the zoomed second live streaming video to be located at the lower left corner of the right half part;
and respectively playing the first live streaming video of the left half part and the second live streaming video of the right half part through the newly-built two streaming media.
5. A display device for displaying live streams of a live webcast, comprising:
the address acquisition module is used for acquiring a first live streaming address of a first anchor terminal and a second live streaming address of a second anchor terminal which are connected with the microphone in a target network live broadcasting room; and
the video mixed-flow module is used for respectively acquiring the live stream of the first main broadcast terminal and the live stream of the second main broadcast terminal based on the first live stream address and the second live stream address, and respectively playing the live streams in the same picture through two streaming media;
the video mixed flow module is specifically used for:
respectively acquiring a first line parameter corresponding to the first live streaming address and a second line parameter corresponding to the second live streaming address, establishing bidirectional connection with the first live streaming address through the first line parameter, and establishing bidirectional connection with the second live streaming address through the second line parameter;
acquiring a first live streaming video of the first anchor terminal from the first live streaming address, and acquiring a second live streaming video of the second anchor terminal from the second live streaming address;
newly building two streaming media, and simultaneously playing the first live streaming video and the second live streaming video in the same picture through the two streaming media respectively;
the acquiring a first line parameter corresponding to the first live streaming address and a second line parameter corresponding to the second live streaming address, respectively, establishing a bidirectional connection with the first live streaming address through the first line parameter, and establishing a bidirectional connection with the second live streaming address through the second line parameter, further includes:
acquiring a first line parameter corresponding to the first direct-current address, wherein the first line parameter comprises a plurality of pieces of line information from a terminal where the same picture is located to the first direct-current address, and storing the first line parameter;
acquiring a second line parameter corresponding to the second live streaming address, wherein the second line parameter comprises a plurality of pieces of line information from a terminal where the same picture is located to the second live streaming address, and storing the second line parameter;
selecting a line from the first line parameters to establish bidirectional connection with the first direct broadcast stream address, and selecting a line from the second line parameters to establish bidirectional connection with the second direct broadcast stream address;
and if the first anchor terminal and/or the second anchor terminal generate video pause, selecting a different line from the first line parameter and/or the second line parameter for switching connection.
6. A display device for live streaming of a live webcast, comprising:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 1 to 4.
7. A non-transitory computer-readable storage medium storing computer instructions that cause a computer to perform the method of any one of claims 1 to 4.
CN201710971414.2A 2017-10-18 2017-10-18 Display method and device for live stream of main broadcast with wheat Active CN107864122B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710971414.2A CN107864122B (en) 2017-10-18 2017-10-18 Display method and device for live stream of main broadcast with wheat

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710971414.2A CN107864122B (en) 2017-10-18 2017-10-18 Display method and device for live stream of main broadcast with wheat

Publications (2)

Publication Number Publication Date
CN107864122A CN107864122A (en) 2018-03-30
CN107864122B true CN107864122B (en) 2021-05-28

Family

ID=61697332

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710971414.2A Active CN107864122B (en) 2017-10-18 2017-10-18 Display method and device for live stream of main broadcast with wheat

Country Status (1)

Country Link
CN (1) CN107864122B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108769824A (en) * 2018-06-19 2018-11-06 武汉斗鱼网络科技有限公司 A kind of video mixed flow method, apparatus, system, equipment and medium
CN108900854B (en) * 2018-07-06 2021-05-28 武汉斗鱼网络科技有限公司 Live broadcast microphone room switching method, storage medium, equipment and system
CN109618191A (en) * 2018-12-17 2019-04-12 广州市百果园信息技术有限公司 Live streaming connects wheat method, apparatus, computer readable storage medium and terminal
CN111083507B (en) * 2019-12-09 2021-11-23 广州酷狗计算机科技有限公司 Method and system for connecting to wheat, first main broadcasting terminal, audience terminal and computer storage medium
CN112511858B (en) * 2020-10-26 2023-04-07 深圳点猫科技有限公司 Network course live broadcast mixed stream pushing method, system and storage medium
CN112738610A (en) * 2020-12-25 2021-04-30 北京达佳互联信息技术有限公司 Display control method and device of multimedia data, electronic equipment and storage medium
CN114071168B (en) * 2021-11-16 2023-09-12 上海哔哩哔哩科技有限公司 Mixed-flow live stream scheduling method and device
CN114390310A (en) * 2022-01-13 2022-04-22 广州繁星互娱信息科技有限公司 Data pushing method and device, storage medium and electronic equipment
CN114679599A (en) * 2022-03-24 2022-06-28 上海哔哩哔哩科技有限公司 Live broadcast watching method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016099348A1 (en) * 2014-12-16 2016-06-23 Telefonaktiebolaget Lm Ericsson (Publ) Delay sensitive services
CN106131583A (en) * 2016-06-30 2016-11-16 北京小米移动软件有限公司 A kind of live processing method, device, terminal unit and system
CN106254899A (en) * 2016-08-16 2016-12-21 网宿科技股份有限公司 The control method of a kind of live even wheat and system
CN106713945A (en) * 2016-12-06 2017-05-24 广州华多网络科技有限公司 Client microbonding live processing method and device, live server and live system
CN107105315A (en) * 2017-05-11 2017-08-29 广州华多网络科技有限公司 Live broadcasting method, the live broadcasting method of main broadcaster's client, main broadcaster's client and equipment
CN107124652A (en) * 2017-04-19 2017-09-01 武汉斗鱼网络科技有限公司 One kind connects wheat live middle windows switching method and device

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1997153B (en) * 2006-12-31 2012-01-25 北京衡准科技有限公司 A method and device for computer multi-video playing
US20100312905A1 (en) * 2009-06-08 2010-12-09 Dov Sandmann Sustaining Live Interactive Streaming
CA3084400C (en) * 2013-06-21 2023-08-08 Arris Enterprises Llc Dtcp converter for hls
US20160345074A1 (en) * 2015-05-21 2016-11-24 Viviso Inc. Apparatus and Method for Replacing Conventional Commercials with Targeted Advertisements in Online Live Streams
CN105898341A (en) * 2015-12-14 2016-08-24 乐视网信息技术(北京)股份有限公司 Method and mobile client enabling simultaneous video live broadcast by two persons
CN105847875B (en) * 2016-05-13 2019-04-23 武汉斗鱼网络科技有限公司 A kind of the viewing route intelligent selecting method and system of net cast platform
CN106713304A (en) * 2016-12-19 2017-05-24 北京星辰美豆文化传播有限公司 Webcast method, apparatus and electronic equipment
CN106657109A (en) * 2016-12-30 2017-05-10 北京奇虎科技有限公司 Flow data transmission method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016099348A1 (en) * 2014-12-16 2016-06-23 Telefonaktiebolaget Lm Ericsson (Publ) Delay sensitive services
CN106131583A (en) * 2016-06-30 2016-11-16 北京小米移动软件有限公司 A kind of live processing method, device, terminal unit and system
CN106254899A (en) * 2016-08-16 2016-12-21 网宿科技股份有限公司 The control method of a kind of live even wheat and system
CN106713945A (en) * 2016-12-06 2017-05-24 广州华多网络科技有限公司 Client microbonding live processing method and device, live server and live system
CN107124652A (en) * 2017-04-19 2017-09-01 武汉斗鱼网络科技有限公司 One kind connects wheat live middle windows switching method and device
CN107105315A (en) * 2017-05-11 2017-08-29 广州华多网络科技有限公司 Live broadcasting method, the live broadcasting method of main broadcaster's client, main broadcaster's client and equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
积极变革 广电行业面向PGC直播全面发力;中广上洋;《数码影像时代》;20170415;全文 *

Also Published As

Publication number Publication date
CN107864122A (en) 2018-03-30

Similar Documents

Publication Publication Date Title
CN107864122B (en) Display method and device for live stream of main broadcast with wheat
CN106161219B (en) Message treatment method and device
CN110798697B (en) Video display method, device and system and electronic equipment
JP6727669B2 (en) Information interaction method, device, and system
WO2020238441A1 (en) Multi-terminal screen projection method, computer device and storage medium
CN111836074B (en) Live wheat-connecting method and device, electronic equipment and storage medium
WO2019024257A1 (en) Method and device for publishing video files
US11582506B2 (en) Video processing method and apparatus, and storage medium
CN108989877A (en) Live streaming throws screen method, throws screen terminal and live streaming terminal
CN110913237A (en) Live broadcast control method and device, live broadcast initiating device and storage medium
CN113542660A (en) Method, system and storage medium for realizing conference multi-picture high-definition display
CN113286190A (en) Cross-network and same-screen control method and device and cross-network and same-screen system
CN103442288A (en) Method, device and system for processing of trans-equipment data contents
CN106412617B (en) Remote debugging control method and device
JP2014183488A (en) Streaming receiver
CN113453035A (en) Live broadcasting method based on augmented reality, related device and storage medium
CN111447458A (en) Live broadcast system, method and device based on content explanation and live broadcast server
CN111954041A (en) Video loading method, computer equipment and readable storage medium
CN108271033B (en) Video live broadcast method and device
CN114760520A (en) Live small and medium video shooting interaction method, device, equipment and storage medium
CN111416994B (en) Method and device for synchronously presenting video stream and tracking information and electronic equipment
CN112954380A (en) Video playing processing method and device
CN115037978B (en) Screen projection method and related equipment
JP6426136B2 (en) System, method for distributing moving pictures, and program used therefor
CN115037979B (en) Screen projection method and related equipment

Legal Events

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