CN109640191A - A kind of method and apparatus of even wheat live streaming - Google Patents

A kind of method and apparatus of even wheat live streaming Download PDF

Info

Publication number
CN109640191A
CN109640191A CN201710930177.5A CN201710930177A CN109640191A CN 109640191 A CN109640191 A CN 109640191A CN 201710930177 A CN201710930177 A CN 201710930177A CN 109640191 A CN109640191 A CN 109640191A
Authority
CN
China
Prior art keywords
video
target
main broadcaster
wheat
target audience
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710930177.5A
Other languages
Chinese (zh)
Inventor
杨亮
陈少杰
张文明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201710930177.5A priority Critical patent/CN109640191A/en
Publication of CN109640191A publication Critical patent/CN109640191A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists

Abstract

The embodiment of the invention provides a kind of method and apparatus of even wheat live streaming, at least for realizing the sluggish technical effect for reducing even wheat live streaming.The method is applied to main broadcaster's end equipment, comprising: receives the company wheat request that direct broadcast server is sent, the even wheat request is to be sent from the target audience of viewing live streaming to the direct broadcast server;The main broadcaster of the target audience and main broadcaster's end equipment is imported based on the even wheat request and same virtually connects wheat room;It is described virtually connect the video flowing of target audience transmission is directly received in wheat room and directly to the target audience transmitting video-frequency flow.

Description

A kind of method and apparatus of even wheat live streaming
Technical field
The present invention relates to field of computer technology more particularly to a kind of method and apparatus of even wheat live streaming.
Background technique
Currently, live streaming in the prior art is equal are as follows: by main broadcaster end by audio/video coding be video stream to direct broadcast service Device, then pushing video streaming is given to each viewer end by direct broadcast server, viewer end parses video flowing and obtains audio-video.It can see Out, in such direct-seeding, direct broadcast server becomes a bridge between main broadcaster and spectators.
However, one distinct disadvantage of above-mentioned direct-seeding is that sluggishness is big, usually sluggishness was at ten seconds or so.Prolong such Under late, cause the synchronization interactive of main broadcaster and spectators by no small influence.Especially in the even scene of wheat, even the sound of wheat spectators is regarded Frequency is also required to be forwarded to main broadcaster end by direct broadcast server, so further increase sluggishness.
Therefore, there is the technical problem for how reducing that even wheat live streaming is sluggish in the prior art.
Summary of the invention
The embodiment of the invention provides a kind of method and apparatus of even wheat live streaming, at least for realizing reduction even wheat live streaming Sluggish technical effect.
In a first aspect, being applied to main broadcaster's end equipment the present invention provides a kind of method of even wheat live streaming, comprising:
The company wheat request that direct broadcast server is sent is received, the even wheat request is from the target audience of viewing live streaming to described What direct broadcast server was sent;
Virtually connected based on the even wheat request by main broadcaster's importing of the target audience and main broadcaster's end equipment is same Wheat room;
It is described virtually connect the video flowing of target audience transmission is directly received in wheat room and directly to the mesh Mark spectators' transmitting video-frequency flow.
Optionally, video flowing is transmitted and received especially by point-to-point communication mode in the virtual room.
Optionally, described directly to before the target audience transmitting video-frequency flow, further includes: determine transmitting video-frequency flow Target pattern;
It is described directly to the target audience transmitting video-frequency flow, comprising:
According to the target pattern encoded video stream;
The video flowing that coding is completed is transferred directly to the target audience.
Optionally, described according to the target pattern encoded video stream, packet when the target pattern is first mode It includes:
The rendering data of main broadcaster's end equipment is obtained, the rendering data is that the Image Acquisition of main broadcaster's end equipment is set Standby acquired image data;
The rendering data is encoded to video flowing.
Optionally, described according to the target pattern encoded video stream, packet when the target pattern is second mode It includes:
The selection operation that the main broadcaster is directed to multiple video sources is received, the video source includes the video of the target audience Source, the video source that the main broadcaster is chosen are determined as target video source;
The video data merging in all target video sources is encoded to video flowing.
Optionally, described according to the target pattern encoded video stream, packet when the target pattern is the third mode It includes:
All videos source is determined as target video source, the video source does not include the video source of the target audience;
The video data merging in all target video sources is encoded to video flowing.
Optionally, after the video flowing for completing coding is transferred directly to the target audience, further includes:
Remove the video flowing being transmitted.
Second aspect, the present invention provides a kind of devices of even wheat live streaming, are applied to main broadcaster's end equipment, comprising:
Receiving module, for receiving the company wheat request of direct broadcast server transmission, the even wheat request is broadcast live by viewing Target audience is sent to the direct broadcast server;
Import modul, for being imported the main broadcaster of the target audience and main broadcaster's end equipment based on the even wheat request It is same virtually to connect wheat room;
Transceiver module, for it is described virtually connect directly received in wheat room target audience transmission video flowing and Directly to the target audience transmitting video-frequency flow.
Optionally, the transceiver module transmits and receives video flowing specifically by point-to-point communication mode.
Optionally, described device further includes determining module, is used for described directly to the target audience transmitting video-frequency flow Before, the target pattern of transmitting video-frequency flow is determined;
The transceiver module is used to directly transmit the video flowing that coding is completed according to the target pattern encoded video stream To the target audience.
Optionally, when the target pattern is first mode, the transceiver module is for obtaining main broadcaster's end equipment Rendering data, the rendering data be main broadcaster's end equipment image capture device acquired image data;It will be described Rendering data is encoded to video flowing.
Optionally, when the target pattern is second mode, the transceiver module is for receiving the main broadcaster for more The selection operation of a video source, the video source include the video source of the target audience, the view that the main broadcaster is chosen Frequency source is determined as target video source;The video data merging in all target video sources is encoded to video flowing.
Optionally, when the target pattern is the third mode, the transceiver module is for all videos source to be determined as Target video source, the video source do not include the video source of the target audience;By the video counts in all target video sources Video flowing is encoded to according to merging.
Optionally, described device further includes removing module, for being transferred directly in the video flowing for completing coding After the target audience, the video flowing being transmitted is removed.
The third aspect, the present invention provides a kind of computer readable storage mediums, are stored thereon with computer program, the journey The step of any one of first aspect the method is realized when sequence is executed by processor.
Fourth aspect, the present invention provides a kind of computer equipments, including memory, processor and storage are on a memory And the computer program that can be run on a processor, the processor are realized described in any one of first aspect when executing described program The step of method.
Said one or multiple technical solutions in the embodiment of the present application at least have following one or more technology effects Fruit:
In the technical solution of the embodiment of the present invention, main broadcaster's end equipment receives the company wheat request that direct broadcast server is sent, even Wheat request is to be sent from the target audience of viewing live streaming to direct broadcast server, and the company of being then based on wheat is requested target audience and master Broadcast end equipment main broadcaster import it is same virtually connect wheat room, and then target audience transmission is directly received in wheat room virtually connecting Video flowing and directly to target audience transmitting video-frequency flow.So since main broadcaster and target audience connect in wheat room virtually Video flowing can directly be received and dispatched, forwarded without main broadcaster's server, thus reduce data in the way time, so solve The sluggish big technical problem of even wheat live streaming of the existing technology, realizes the stagnant technical effect for reducing even wheat live streaming.
Detailed description of the invention
Fig. 1 is the method flow diagram for connecting wheat live streaming in the embodiment of the present invention;
Fig. 2 is the apparatus structure schematic diagram for connecting wheat main broadcaster in the embodiment of the present invention;
Fig. 3 is the structural schematic diagram of computer equipment in the embodiment of the present invention.
Specific embodiment
The embodiment of the invention provides a kind of method and apparatus of even wheat live streaming, at least for realizing reduction even wheat live streaming Sluggish technical effect.
In order to solve the above technical problem, the present invention provides technical solution thinking it is as follows:
In the technical solution of the embodiment of the present invention, main broadcaster's end equipment receives the company wheat request that direct broadcast server is sent, even Wheat request is to be sent from the target audience of viewing live streaming to direct broadcast server, and the company of being then based on wheat is requested target audience and master Broadcast end equipment main broadcaster import it is same virtually connect wheat room, and then target audience transmission is directly received in wheat room virtually connecting Video flowing and directly to target audience transmitting video-frequency flow.So since main broadcaster and target audience connect in wheat room virtually Video flowing can directly be received and dispatched, forwarded without main broadcaster's server, thus reduce data in the way time, so solve The sluggish big technical problem of even wheat live streaming of the existing technology, realizes the stagnant technical effect for reducing even wheat live streaming.
Technical solution of the present invention is described in detail below by attached drawing and specific embodiment, it should be understood that the application Specific features in embodiment and embodiment are the detailed description to technical scheme, rather than to present techniques The restriction of scheme, in the absence of conflict, the technical characteristic in the embodiment of the present application and embodiment can be combined with each other.
The terms "and/or", only a kind of incidence relation for describing affiliated partner, indicates that there may be three kinds of passes System, for example, A and/or B, can indicate: individualism A exists simultaneously A and B, these three situations of individualism B.In addition, herein Middle character "/" typicallys represent the relationship that forward-backward correlation object is a kind of "or".
First aspect present invention provides a kind of method of the company of providing wheat live streaming, referring to FIG. 1, being the embodiment of the present invention The method flow diagram of middle even wheat live streaming.This method comprises:
S101: the company wheat request that direct broadcast server is sent is received, the even wheat request is by the target audience of viewing live streaming It is sent to the direct broadcast server;
S102: the main broadcaster of the target audience and main broadcaster's end equipment is imported by the same void based on the even wheat request Quasi- even wheat room;
S103: it is described virtually connect the video flowing of target audience transmission is directly received in wheat room and directly to institute State target audience transmitting video-frequency flow.
Specifically, main broadcaster holds main broadcaster's end equipment acquisition audio, video data, and audio, video data is then encoded to video flowing It is sent to direct broadcast server, and then directly server again sets pushing video streaming to each viewer end that the main broadcaster is broadcast live is watched It is standby.In S101, target audience refers to watching main broadcaster live streaming, and initiates the spectators that even wheat is requested to main broadcaster.Specific real During now, target audience can have one, can also have multiple.Even wheat request is sent to directly by one or more target audiences Server is broadcast, then main broadcaster's server sends main broadcaster's end equipment for even wheat request again.
Specifically, the target audience company of click wheat in its spectators' end equipment is requested, and spectators' end equipment is based on the point in turn It hits operation and generates request_mic request, that is, connect wheat request, and send direct broadcast server for request_mic request. Request_mic request packet contains the main broadcaster's mark and target audience mark that request connects wheat.Direct broadcast server is based on Request_mic request is transmitted to corresponding main broadcaster by main broadcaster's mark in request_mic request.
It is similar with the concrete mode that main broadcaster connects wheat that each target audience is realized in the embodiment of the present invention, therefore below with wherein It is introduced for any one target audience.
After main broadcaster's end equipment receives even wheat request, it can parse and the target audience in the request of the company of display wheat identifies, into And main broadcaster is based on target audience mark and determines whether to carry out even wheat with the target audience.If main broadcaster's refusal connects with target audience Wheat then terminates this and connects wheat.If main broadcaster receives to connect wheat with the target audience, in S102, requested based on even wheat by the target Spectators and main broadcaster, which import, same virtually to be connected in wheat room.
Specifically, virtually connect wheat room to refer to for supporting main broadcaster and one or more target audiences to carry out connecting wheat Virtual Space.Connect in wheat room virtually, main broadcaster's end equipment with each this virtually connect spectators' end equipment in wheat room foundation P2P (point-to-point, peer-to-peer) communication connection, and this virtually connects the audio, video data in wheat room and is led to by P2P Letter connection transmission, and no longer forwarded by direct broadcast server.
For more specifically, in the case where main broadcaster receives the company wheat request of target audience transmission, if current anchor is still Not with other spectators Lian Mai, then main broadcaster's end equipment, which is imported main broadcaster and target audience by following process, same virtually connects wheat room Between:
The LoadLibrary function for calling Windows operating system, using douyuInterActive.dll as its parameter It is loaded into live streaming application program to which wheat service module will be connected.Next, provided in wheat service module by the company of calling CreateInteractiveSdkInstance (creation interaction interface Service Instance) function, creates a sdk interface, in this hair In bright embodiment, specially IDouyuInterActiveSdk interface.After successfully creating IDouyuInterActiveSdk interface, Also need to be associated with the ILiveEncoder service interface of live streaming application program.ILiveEncoder service interface is for encoding view The interface of frequency stream.By the SetCallbackFunction callback method of ILiveEncoder interface, taken to ILiveEncoder OnOpenCapture (one video source example message notice of addition) is registered in business interface, OnBeginScene (starts drafting one Frame image notification), OnDrawCapture (draw a video source image notification), OnEndScene (terminate to draw a frame image Notice) etc. readjustment notification event, to carry out different processing by the different callback events of triggering during subsequent even wheat. Next, the creation initialization Init method in IDouyuInterActiveSdk interface, by target audience mark and main broadcaster Mark input Init method, and run Init method main broadcaster and target audience are imported one and newly-built virtually connect wheat room.
And if current anchor is with other spectators Lian Mai of one or more, main broadcaster's end equipment will by following process Main broadcaster and target audience, which import, same virtually connects wheat room:
Target audience mark and main broadcaster are identified input by the Init method for calling IDouyuInterActiveSdk interface Target audience is imported the existing room for virtually connecting wheat by Init method, operation Init method.
Next, after main broadcaster and target audience enter and virtually connect wheat room, main broadcaster's end equipment and spectators' end equipment point P2P communication connection is not established.Certainly, during specific implementation, if main broadcaster only connects wheat with a target audience, i.e., virtually connect Only include main broadcaster and target audience in wheat room, connects then main broadcaster's end equipment only needs to establish with the P2P of spectators' end equipment It connects, and if main broadcaster and multiple target audiences connect wheat, i.e., virtually connecting in wheat room includes main broadcaster and multiple target audiences, then main End equipment is broadcast to need while establishing to connect with the P2P of multiple and different spectators' end equipments.
After main broadcaster and target audience, which enter, virtually to be connected wheat room and establish P2P and connect, next, being led in S103 The video flowing of target audience transmission can directly be received based on P2P connection by broadcasting end equipment, and based on P2P connection directly to mesh Mark spectators' transmitting video-frequency flow.
Since main broadcaster and target audience can directly receive and dispatch video flowing virtually connecting in wheat room, serviced without main broadcaster Device forwards, thus reduce data in the way time, so solve the sluggish big skill of even wheat live streaming of the existing technology Art problem realizes the stagnant technical effect for reducing even wheat live streaming.
During even wheat, main broadcaster oneself can interact with target audience, for example, with target audience dialogue chat, can also be with It is interacted by other videos with target audience, such as plays film to target audience, or pass through oneself and other videos simultaneously It is interacted with target audience, such as evaluates film while watching movie with spectators, the present invention is not particularly limited.
Specifically, if main broadcaster oneself and audience interaction, need to be transferred from oneself sound to spectators' end equipment, so It needs to initialize microphone before transmitting video-frequency flow.Specifically, call IDouyuInteractiveSdk's InitMicrophone (initialization microphone) method, initializes microphone apparatus, thus during subsequent even wheat, live streaming application Program will automatically in crawl microphone sound, then to the voice data of crawl, by AAC (Advanced Audio Coding, Advanced Audio Coding) it is encoded, all mesh being then sent to the audio data after coding in even wheat room Mark spectators.
In addition, target audience oneself can also be interacted with main broadcaster during even wheat, therefore sent receiving target audience Video flowing before also need to initialize the audio-frequence player device of main broadcaster's end equipment.Specifically, pass through calling InitAudioPlayer (initialization player) method of IDouyuInteractiveSdk, initializes audio-frequence player device.
Further, presented hereinabove, main broadcaster oneself can interact with target audience during even wheat, and/or pass through Other videos are interacted with target audience, and different interaction modes needs different transmission modes to support, thus in S103 to Before target audience transmitting video-frequency flow further include: determine the target pattern of transmitting video-frequency flow;
It is described directly to target audience transmitting video-frequency flow, then include:
According to the target pattern encoded video stream;
The video flowing that coding is completed is transferred directly to the target audience.
Specifically, in embodiments of the present invention, the mode of transmitting video-frequency flow includes but is not limited to three kinds following: only being transmitted The first mode of the image of image capture device acquisition;Transmit the second mode of the image of the video source of main broadcaster's selection;And it passes The third mode of the image in defeated all videos source.
Specifically, when target pattern is first mode, according to target pattern encoded video stream, comprising:
The rendering data of main broadcaster's end equipment is obtained, the rendering data is that the Image Acquisition of main broadcaster's end equipment is set Standby acquired image data;
The rendering data is encoded to video flowing.
Specifically, main broadcaster is typically stored as rendering data by the image data that image capture device acquires, therefore works as When target pattern is first mode, then rendering data is obtained from the storage unit of storage rendering data, then by rendering data It is encoded to video flowing.
In embodiments of the present invention, it can be registered in ILiveEncoder service interface by triggering OnDrawCapture callback events start drawing image, then call in DouyuInterActive module TransfromImageFromRenderBuffer (image data is obtained from rendering data) function obtains a frame rendering data In, the image that a pixel format is I420 format is then drawn out with the frame rendering data got.Then it will draw The incoming coding thread of image in carry out coding transmission.Then, then next frame rendering data is obtained, and draws next pixel compartments Formula is the image of I420 format, and next image is passed to coding thread.It is completed until all rendering datas encode, triggering The OnEndScene callback events registered in ILiveEncoder service interface terminate Image Rendering.
When target pattern is second mode, according to target pattern encoded video stream, comprising:
The selection operation that the main broadcaster is directed to multiple video sources is received, the video source includes the video of the target audience Source, the video source that the main broadcaster is chosen are determined as target video source;
The video data merging in all target video sources is encoded to video flowing.
Specifically, in the second mode, video source include image capture device, main broadcaster addition video source (such as The film stored in storage unit) and target audience video source (spectators' end equipment image capture device acquisition figure Picture).
Main broadcaster chooses the image of one or more video sources from the image of multiple video sources as needed and connects the mesh of wheat Mark spectators share.In embodiments of the present invention, the video source that main broadcaster chooses is determined as target video source, then will owned The video data merging in target video source is encoded to video flowing.
Specifically, the OnBeginScene callback events registered in ILiveEncoder service interface are triggered first to start Then drawing image calls the GetRenderSystem method of ILiveEncoder interface to obtain rendering system Then IRenderSystem interface calls the createRenderTarget method of IRenderSystem interface to create a line Manage object renderTarget.Then, the OnDrawCapture readjustment thing registered in ILiveEncoder service interface is triggered Part, notice system start to draw video image.Specifically, judge OnDrawCapture function first video source whether be IRenderSystem interface is called if first video source is target video source in the target video source that main broadcaster chooses The frame Image Rendering that draw2D method is obtained from first video source is into texture object renderTarget., whereas if First video source is not target video source, then is not processed.Then judge whether second video source is target video source, directly To by the Image Rendering in all target video sources into texture object renderTarget.
By the Image Rendering in all target video sources into texture object renderTarget after, triggering The OnEndScene callback events registered in ILiveEncoder service interface terminate the drafting when previous frame image.Next MapTexture (mapping textures) method for calling IRenderSystem interface turns the texture image in renderTarget The image of an I420 is turned to, and coding transmission will be carried out in the incoming coding thread of the image drawn.
When target pattern is the third mode, according to target pattern encoded video stream, comprising:
All videos source is determined as target video source, the video source does not include the video source of the target audience;
The video data merging in all target video sources is encoded to video flowing.
Specifically, in the third mode, video source includes the video source of Image Acquisition and main broadcaster's addition, does not include mesh Mark the video source of spectators.In the third mode, the image for needing to acquire image capture device and the image of main broadcaster's addition are equal It is encoded to video flowing.
Specifically, the OnBeginScene callback events registered in ILiveEncoder service interface are triggered first to start Then drawing image calls the GetRenderSystem method of ILiveEncoder interface to obtain rendering system Then IRenderSystem interface calls the createRenderTarget method of IRenderSystem interface to create a line Manage object renderTarget.Then, the OnDrawCapture readjustment thing registered in ILiveEncoder service interface is triggered Part, notice system start to draw video image.Specifically, judging the id of first video source of OnDrawCapture function is The id returned when the no OpenCustomCapture for calling is not target audience if not then first video source of expression Video source, then call the draw2D method of IRenderSystem interface from the frame Image Rendering that first video source obtains to In texture object renderTarget;If so, indicating that the first video source is the video source of target audience, then it is not processed.It connects Judge whether second video source is target video source, until by the Image Rendering in all target video sources to texture object In renderTarget.
By the Image Rendering in all target video sources into texture object renderTarget after, triggering The OnEndScene callback events registered in ILiveEncoder service interface terminate the drafting when previous frame image.Next MapTexture (mapping textures) method for calling IRenderSystem interface turns the texture image in renderTarget The image of an I420 is turned to, and coding transmission will be carried out in the incoming coding thread of the image drawn.
In embodiments of the present invention, under the second mode, why using the video source of target audience as video source, be by Share in the image that main broadcaster will not usually choose all target audiences in Lian Maizhong, therefore the image of the video source of target audience is simultaneously Excessive resource will not be occupied.And in a third mode, due to being that the image of all video sources is all encoded the company of being pushed to wheat Target audience, so if using the video source of target audience as video source, then the image of the video source of target audience can Excess resource can be occupied, when especially target audience quantity is larger, therefore in a third mode not by the view of target audience Frequency source is as video source.
Further, no matter target pattern is specially first mode, second mode or the third mode, in order to avoid encoded video Stream causes system resource to leak, and the video flowing for completing transmission is removed from system.
Based on inventive concept same as the method for connecting wheat live streaming in previous embodiment, second aspect of the present invention also provides one The kind device that even wheat is broadcast live, as shown in Figure 2, comprising:
Receiving module 101, for receiving the company wheat request of direct broadcast server transmission, the even wheat request is broadcast live by viewing Target audience send to the direct broadcast server;
Import modul 102, for being requested based on the even wheat by the main broadcaster of the target audience and main broadcaster's end equipment It imports and same virtually connects wheat room;
Transceiver module 103, for virtually connecting the video flowing for directly receiving the target audience in wheat room and transmitting described And directly to the target audience transmitting video-frequency flow.
Optionally, transceiver module 103 transmits and receives video flowing specifically by point-to-point communication mode.
Optionally, described device further includes determining module, is used for described directly to the target audience transmitting video-frequency flow Before, the target pattern of transmitting video-frequency flow is determined;
Transceiver module 103 is used to directly transmit the video flowing that coding is completed according to the target pattern encoded video stream To the target audience.
Optionally, when the target pattern is first mode, transceiver module 103 is for obtaining main broadcaster's end equipment Rendering data, the rendering data are the image capture device acquired image data of main broadcaster's end equipment;By the wash with watercolours Dye data encoding is video flowing.
Optionally, when the target pattern is second mode, transceiver module 103 is for receiving the main broadcaster for multiple The selection operation of video source, the video source include the video source of the target audience, the video that the main broadcaster is chosen Source is determined as target video source;The video data merging in all target video sources is encoded to video flowing.
Optionally, when the target pattern is the third mode, transceiver module 103 is used to all videos source being determined as mesh Video source is marked, the video source does not include the video source of the target audience;By the video data in all target video sources Merging is encoded to video flowing.
Optionally, described device further includes removing module, for being transferred directly in the video flowing for completing coding After the target audience, the video flowing being transmitted is removed.
The various change mode and specific example of the method for company wheat live streaming in 1 embodiment of earlier figures are equally applicable to this reality The device for applying the company wheat live streaming of example, by the aforementioned detailed description to the even method of wheat live streaming, those skilled in the art can be clear The implementation method for connecting the device of wheat live streaming in the present embodiment is known by Chu, so this will not be detailed here in order to illustrate the succinct of book.
Based on inventive concept same as the method for connecting wheat live streaming in previous embodiment, the present invention also provides a kind of computers Readable storage medium storing program for executing is stored thereon with computer program, which realizes even wheat live streaming described previously when being executed by processor The step of either method method.
Based on inventive concept same as the method for connecting wheat live streaming in previous embodiment, the present invention also provides a kind of computers Equipment, as shown in figure 3, including memory 204, processor 202 and being stored on memory 204 and can transport on processor 202 Capable computer program, the processor 202 realize any of the method for control progress bar described previously when executing described program The step of method.
Wherein, in Fig. 3, bus architecture (is represented) with bus 200, and bus 200 may include any number of interconnection Bus and bridge, bus 200 will include the one or more processors represented by processor 202 and what memory 204 represented deposits The various circuits of reservoir link together.Bus 200 can also will peripheral equipment, voltage-stablizer and management circuit etc. it Various other circuits of class link together, and these are all it is known in the art, therefore, no longer carry out further to it herein Description.Bus interface 206 provides interface between bus 200 and receiver 201 and transmitter 203.Receiver 201 and transmitter 203 can be the same element, i.e. transceiver, provide the unit for communicating over a transmission medium with various other devices.
Processor 202 is responsible for management bus 200 and common processing, and memory 204 can be used for storage processor 202 when executing operation used data.
Said one or multiple technical solutions in the embodiment of the present application at least have following one or more technology effects Fruit:
In the technical solution of the embodiment of the present invention, main broadcaster's end equipment receives the company wheat request that direct broadcast server is sent, even Wheat request is to be sent from the target audience of viewing live streaming to direct broadcast server, and the company of being then based on wheat is requested target audience and master Broadcast end equipment main broadcaster import it is same virtually connect wheat room, and then target audience transmission is directly received in wheat room virtually connecting Video flowing and directly to target audience transmitting video-frequency flow.So since main broadcaster and target audience connect in wheat room virtually Video flowing can directly be received and dispatched, forwarded without main broadcaster's server, thus reduce data in the way time, so solve The sluggish big technical problem of even wheat live streaming of the existing technology, realizes the stagnant technical effect for reducing even wheat live streaming.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (10)

1. a kind of method of even wheat live streaming, which is characterized in that be applied to main broadcaster's end equipment, comprising:
The company wheat request that reception direct broadcast server is sent, the even wheat request is from watching the target audience of live streaming to the live streaming What server was sent;
The main broadcaster of the target audience and main broadcaster's end equipment is imported based on the even wheat request and same virtually connects wheat room Between;
It is described virtually connect directly receive the video flowing of target audience transmission in wheat room and directly seen to the target Many transmitting video-frequency flows.
2. the method as described in claim 1, which is characterized in that especially by point-to-point communication mode in the virtual room Transmission and reception video flowing.
3. the method as described in claim 1, which is characterized in that it is described directly to the target audience transmitting video-frequency flow it Before, further includes: determine the target pattern of transmitting video-frequency flow;
It is described directly to the target audience transmitting video-frequency flow, comprising:
According to the target pattern encoded video stream;
The video flowing that coding is completed is transferred directly to the target audience.
4. method as claimed in claim 3, which is characterized in that described according to institute when the target pattern is first mode State target pattern encoded video stream, comprising:
Obtain the rendering data of main broadcaster's end equipment, the rendering data for main broadcaster's end equipment image capture device institute The image data of acquisition;
The rendering data is encoded to video flowing.
5. method as claimed in claim 3, which is characterized in that described according to institute when the target pattern is second mode State target pattern encoded video stream, comprising:
The selection operation that the main broadcaster is directed to multiple video sources is received, the video source includes the video source of the target audience, The video source that the main broadcaster is chosen is determined as target video source;
The video data merging in all target video sources is encoded to video flowing.
6. method as claimed in claim 3, which is characterized in that described according to institute when the target pattern is the third mode State target pattern encoded video stream, comprising:
All videos source is determined as target video source, the video source does not include the video source of the target audience;
The video data merging in all target video sources is encoded to video flowing.
7. such as the described in any item methods of claim 4-6, which is characterized in that directly passed in the video flowing for completing coding It is defeated by after the target audience, further includes:
Remove the video flowing being transmitted.
8. a kind of device of even wheat live streaming, which is characterized in that be applied to main broadcaster's end equipment, comprising:
Receiving module, for receiving the company wheat request of direct broadcast server transmission, the even wheat request is by the target of viewing live streaming Spectators send to the direct broadcast server;
Import modul, it is same for being imported the main broadcaster of the target audience and main broadcaster's end equipment based on the even wheat request It is a virtually to connect wheat room;
Transceiver module, for it is described virtually connect the video flowing and directly of target audience transmission is directly received in wheat room To the target audience transmitting video-frequency flow.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor The step of any one of claim 1-7 the method is realized when row.
10. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor Calculation machine program, which is characterized in that the processor realizes the step of any one of claim 1-7 the method when executing described program Suddenly.
CN201710930177.5A 2017-10-09 2017-10-09 A kind of method and apparatus of even wheat live streaming Pending CN109640191A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710930177.5A CN109640191A (en) 2017-10-09 2017-10-09 A kind of method and apparatus of even wheat live streaming

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710930177.5A CN109640191A (en) 2017-10-09 2017-10-09 A kind of method and apparatus of even wheat live streaming

Publications (1)

Publication Number Publication Date
CN109640191A true CN109640191A (en) 2019-04-16

Family

ID=66051121

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710930177.5A Pending CN109640191A (en) 2017-10-09 2017-10-09 A kind of method and apparatus of even wheat live streaming

Country Status (1)

Country Link
CN (1) CN109640191A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110300165A (en) * 2019-06-26 2019-10-01 北京字节跳动网络技术有限公司 A kind of call method of function program, device, equipment and storage medium
CN110446090A (en) * 2019-07-25 2019-11-12 天脉聚源(杭州)传媒科技有限公司 A kind of virtual auditorium spectators bus connection method, system, device and storage medium
CN110493610A (en) * 2019-08-14 2019-11-22 北京达佳互联信息技术有限公司 Method, apparatus, electronic equipment and the storage medium of chatroom unlatching video pictures
CN111355973A (en) * 2020-03-09 2020-06-30 北京达佳互联信息技术有限公司 Data playing method and device, electronic equipment and storage medium
CN112423002A (en) * 2020-11-06 2021-02-26 腾讯科技(深圳)有限公司 Live broadcast method, device, equipment and storage medium
CN112565802A (en) * 2020-11-30 2021-03-26 Oppo广东移动通信有限公司 Live broadcast interaction method, system, server and storage medium
CN113115119A (en) * 2021-04-02 2021-07-13 北京达佳互联信息技术有限公司 Video stream processing method, device and storage medium
CN113473168A (en) * 2021-07-02 2021-10-01 北京达佳互联信息技术有限公司 Live broadcast method and system, live broadcast method executed by portable equipment and portable equipment
WO2021204139A1 (en) * 2020-04-10 2021-10-14 钉钉控股(开曼)有限公司 Video displaying method, device, equipment, and storage medium
CN114554129A (en) * 2020-11-25 2022-05-27 北京字节跳动网络技术有限公司 Wheat connecting system, method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2685742A4 (en) * 2011-04-07 2014-03-05 Huawei Tech Co Ltd Method, device and system for transmitting and processing media content
CN105828201A (en) * 2016-04-22 2016-08-03 北京小米移动软件有限公司 Video processing method and device
CN106330912A (en) * 2016-08-25 2017-01-11 北京智能管家科技有限公司 Video live broadcasting and two-way communication fusion system and method
CN106453289A (en) * 2016-09-29 2017-02-22 广州市千钧网络科技有限公司 Data transmission method and transmission apparatus for live video
CN106791993A (en) * 2016-12-29 2017-05-31 上海云熵网络科技有限公司 P2P live broadcast systems and P2P live broadcasting methods
CN107027048A (en) * 2017-05-17 2017-08-08 广州市千钧网络科技有限公司 A kind of live even wheat and the method and device of information displaying
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

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2685742A4 (en) * 2011-04-07 2014-03-05 Huawei Tech Co Ltd Method, device and system for transmitting and processing media content
CN105828201A (en) * 2016-04-22 2016-08-03 北京小米移动软件有限公司 Video processing method and device
CN106330912A (en) * 2016-08-25 2017-01-11 北京智能管家科技有限公司 Video live broadcasting and two-way communication fusion system and method
CN106453289A (en) * 2016-09-29 2017-02-22 广州市千钧网络科技有限公司 Data transmission method and transmission apparatus for live video
CN106791993A (en) * 2016-12-29 2017-05-31 上海云熵网络科技有限公司 P2P live broadcast systems and P2P live broadcasting methods
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
CN107027048A (en) * 2017-05-17 2017-08-08 广州市千钧网络科技有限公司 A kind of live even wheat and the method and device of information displaying

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110300165B (en) * 2019-06-26 2021-11-12 北京字节跳动网络技术有限公司 Method, device and equipment for calling functional program and storage medium
CN110300165A (en) * 2019-06-26 2019-10-01 北京字节跳动网络技术有限公司 A kind of call method of function program, device, equipment and storage medium
CN110446090A (en) * 2019-07-25 2019-11-12 天脉聚源(杭州)传媒科技有限公司 A kind of virtual auditorium spectators bus connection method, system, device and storage medium
CN110493610A (en) * 2019-08-14 2019-11-22 北京达佳互联信息技术有限公司 Method, apparatus, electronic equipment and the storage medium of chatroom unlatching video pictures
CN111355973A (en) * 2020-03-09 2020-06-30 北京达佳互联信息技术有限公司 Data playing method and device, electronic equipment and storage medium
WO2021204139A1 (en) * 2020-04-10 2021-10-14 钉钉控股(开曼)有限公司 Video displaying method, device, equipment, and storage medium
CN112423002A (en) * 2020-11-06 2021-02-26 腾讯科技(深圳)有限公司 Live broadcast method, device, equipment and storage medium
CN114554129A (en) * 2020-11-25 2022-05-27 北京字节跳动网络技术有限公司 Wheat connecting system, method, device, equipment and storage medium
CN114554129B (en) * 2020-11-25 2023-10-31 北京字节跳动网络技术有限公司 Wheat connecting system, method, device, equipment and storage medium
CN112565802A (en) * 2020-11-30 2021-03-26 Oppo广东移动通信有限公司 Live broadcast interaction method, system, server and storage medium
CN112565802B (en) * 2020-11-30 2023-07-21 Oppo广东移动通信有限公司 Live interaction method, system, server and storage medium
CN113115119A (en) * 2021-04-02 2021-07-13 北京达佳互联信息技术有限公司 Video stream processing method, device and storage medium
CN113473168A (en) * 2021-07-02 2021-10-01 北京达佳互联信息技术有限公司 Live broadcast method and system, live broadcast method executed by portable equipment and portable equipment
CN113473168B (en) * 2021-07-02 2023-08-08 北京达佳互联信息技术有限公司 Live broadcast method and system, live broadcast method executed by portable device and portable device

Similar Documents

Publication Publication Date Title
CN109640191A (en) A kind of method and apparatus of even wheat live streaming
CN109089154B (en) Video extraction method, device, equipment and medium
CN104539977B (en) Method for previewing and device is broadcast live
CN104871552B (en) Handle the apparatus and method of interactive service
CN105763832B (en) A kind of video interactive, control method and device
CN111836074B (en) Live wheat-connecting method and device, electronic equipment and storage medium
CN111970524B (en) Control method, device, system, equipment and medium for interactive live broadcast and microphone connection
CN103368932A (en) Multi-screen video playback system and related multi-screen control device
CN113225577B (en) Live stream processing method, device and system, electronic equipment and storage medium
CN112291502B (en) Information interaction method, device and system and electronic equipment
CN112929678A (en) Live broadcast method, device, server and computer readable storage medium
WO2019114330A1 (en) Video playback method and apparatus, and terminal device
CN112511783A (en) Mixed display method and device of audio and video stream, server and storage medium
CN111491178A (en) Method, system and electronic equipment for television program scene interaction
CN113542660A (en) Method, system and storage medium for realizing conference multi-picture high-definition display
CN106792244A (en) Net cast method and device
CN108989855A (en) A kind of advertisement cut-in method, device, equipment and medium
CN109729379B (en) Method, device, terminal and storage medium for realizing live video microphone connection
CN110113298A (en) Data transmission method, device, signal server and computer-readable medium
CN105187934A (en) Terminal platform for television interactive system
CN113115065B (en) Live broadcast-based data processing method and device
CN104519369B (en) Solve the method based on many streaming media server crossfire phenomenons of udp protocol
CN113726534A (en) Conference control method, conference control device, electronic equipment and storage medium
CN108377243B (en) Live streaming transmission method and device
CN105120350A (en) Television interactive system management platform

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190416

RJ01 Rejection of invention patent application after publication