CN108377243A - A kind of transmission method and device of live TV stream - Google Patents

A kind of transmission method and device of live TV stream Download PDF

Info

Publication number
CN108377243A
CN108377243A CN201810157039.2A CN201810157039A CN108377243A CN 108377243 A CN108377243 A CN 108377243A CN 201810157039 A CN201810157039 A CN 201810157039A CN 108377243 A CN108377243 A CN 108377243A
Authority
CN
China
Prior art keywords
stream
live
main broadcaster
broadcaster end
streaming server
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.)
Granted
Application number
CN201810157039.2A
Other languages
Chinese (zh)
Other versions
CN108377243B (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 CN201810157039.2A priority Critical patent/CN108377243B/en
Publication of CN108377243A publication Critical patent/CN108377243A/en
Application granted granted Critical
Publication of CN108377243B publication Critical patent/CN108377243B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/762Media network packet handling at the source 
    • 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/40Support for services or applications
    • 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/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream

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)
  • Information Transfer Between Computers (AREA)

Abstract

An embodiment of the present invention provides a kind of transmission method of live TV stream and device, method therein includes:Communication connection is established between main broadcaster end and streaming server;Generate the first live TV stream;In response to the trigger action to the main broadcaster end, message data the second live TV stream of acquisition is added in first live TV stream;Second live TV stream is pushed into the streaming server based on the communication connection, and second live streaming is streamed to by user terminal by the streaming server, so that the user terminal executes the logical operation in response to the message data when playing second live TV stream.The method of the present invention solves in the transmission method of existing live TV stream that there are the big technical problems of overhead.

Description

A kind of transmission method and device of live TV stream
Technical field
The present invention relates to net cast technical field more particularly to the transmission methods and device of a kind of live TV stream.
Background technology
With the development of direct seeding technique, work and life to people bring many facilities.
Currently, main broadcaster end is generally broadcast live the transmission of stream with user terminal by streaming server, in the transmission of live TV stream, Main broadcaster end and user terminal usually require to carry out data communication, such as transmission direct broadcasting room information, user information etc., and existing way is It is realized by way of setting up TCP server, TCP server is sent a message to by main broadcaster end first, then by TCP server Above-mentioned message is broadcast to all room users of user terminal, user terminal carries out relevant operation again.Then this mode, needs frame If individual TCP server realizes the communication at main broadcaster end and user terminal, therefore overhead is big, while also increasing server Build and maintenance work.
It can be seen that there are the technical problems that overhead is big in the transmission method of existing live TV stream.
Invention content
An embodiment of the present invention provides a kind of transmission method of live TV stream and devices, to solve or at least partly solve Or there are the technical problems that overhead is big in the transmission method of existing live TV stream.
In a first aspect, the present invention provides a kind of transmission method of live TV stream, the method includes:
Communication connection is established between main broadcaster end and streaming server;
Generate the first live TV stream;
In response to the trigger action to the main broadcaster end, message data is added in first live TV stream and obtains second directly Broadcast stream;
Second live TV stream is pushed into the streaming server based on the communication connection, and passes through the streaming server Second live streaming is streamed to user terminal, so that the user terminal is executed when playing second live TV stream in response to institute State the logical operation of message data.
Optionally, in response to the trigger action to the main broadcaster end, addition message data obtains in first live TV stream The second live TV stream is obtained, including:
If detecting the trigger action to the main broadcaster end, it is based on the communication connection, calls preset processing side Method;
By the preset processing method, the message data is added in first live TV stream, described in acquisition Second live TV stream.
Optionally, described that second live TV stream is pushed to by the streaming server based on the communication connection, including:
Based on the communication connection, stream connection is established;
The camera at the main broadcaster end and stream connection are associated;
Based on the association, second live TV stream is pushed into the streaming server.
Based on same inventive concept, second aspect of the present invention provides a kind of transmission method of live TV stream, the method Including:
Communication connection is established between streaming server and main broadcaster end;
Receive main broadcaster's end group in it is described communication connection push the second live TV stream, wherein second live TV stream by After the main broadcaster end generates the first live TV stream, in response to the trigger action to the main broadcaster end, add in first live TV stream It is obtained after adding message data;
Second live streaming is streamed to user terminal, so that the user terminal is executed when playing second live TV stream In response to the logical operation of the message data.
Based on same inventive concept, third aspect present invention provides a kind of transmission method of live TV stream, including:
Second live TV stream of receiving stream server transport, wherein second live TV stream is by main broadcaster's end group in streaming server Communication connection between main broadcaster end pushes to the streaming server, and second live TV stream generates first by the main broadcaster end After live TV stream, in response to the trigger action to the main broadcaster end, obtained after adding message data in first live TV stream;
Second live TV stream is played, and executes the logical operation in response to the message data.
Based on same inventive concept, fourth aspect present invention provides a kind of transmitting device of live TV stream, described device For main broadcaster end, including:
Module is established, for establishing communication connection between main broadcaster end and streaming server;
Generation module, for generating the first live TV stream;
Add module, in response to the trigger action to the main broadcaster end, message to be added in first live TV stream Data obtain the second live TV stream;
Second live TV stream is pushed to the streaming server for being based on the communication connection, and led to by pushing module It crosses the streaming server and second live streaming is streamed to user terminal, so that the user terminal is playing second live TV stream Logical operations of the Shi Zhihang in response to the message data.
Based on same inventive concept, fifth aspect present invention provides a kind of transmitting device of live TV stream, described device For server, including:
Module is established, for establishing communication connection between streaming server and main broadcaster end;
Receiving module, for receiving main broadcaster's end group in the second live TV stream of the communication connection push, wherein described After second live TV stream generates the first live TV stream by the main broadcaster end, in response to the trigger action to the main broadcaster end, described the It is obtained after adding message data in one live TV stream;
Transmission module, for second live streaming to be streamed to user terminal, so that the user terminal is playing described the The logical operation in response to the message data is executed when two live TV streams.
Based on same inventive concept, sixth aspect present invention provides a kind of transmitting device of live TV stream, described device For user terminal, including:
Receiving module is used for the second live TV stream of receiving stream server transport, wherein second live TV stream is by main broadcaster end The streaming server is pushed to based on the communication connection between streaming server and main broadcaster end, and second live TV stream is by the master After broadcasting the first live TV stream of end generation, in response to the trigger action to the main broadcaster end, message is added in first live TV stream It is obtained after data;
Playing module for playing second live TV stream, and executes the logical operation in response to the message data.
Based on same inventive concept, seventh aspect present invention provides a kind of computer readable storage medium, deposits thereon Computer program is contained, the method that first aspect provides is realized when which is executed by processor.
Based on same inventive concept, eighth aspect present invention provides a kind of computer equipment, including memory, processing On a memory and the computer program that can run on a processor, when processor execution described program, is realized for device and storage The method that first aspect provides.
Said one in the embodiment of the present application or multiple technical solutions at least have following one or more technology effects Fruit:
It, can be in response to the triggering to main broadcaster end after main broadcaster end generates the first live TV stream in method provided by the invention Operation adds message data the second live TV stream of acquisition in the first live TV stream, then the second live TV stream is pushed to streaming server, and The second live streaming is streamed to user terminal by streaming server, and carries the message data at main broadcaster end in the second live TV stream, is made The logical operation in response to the message data can be executed by obtaining user terminal, to realize the data between user terminal and main broadcaster end Communication.It, can be by being added in the first live TV stream i.e. during main broadcaster end is broadcast live steaming transfer by streaming server The mode of message data carries out data communication with user terminal, message is transmitted without setting up additional TCP server, to make master It broadcasts end to be communicated with user terminal, to reduce overhead, also reduces the structure and maintenance cost of server.It solves There are the technical problems that overhead is big in the transmission method of existing live TV stream.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Some bright embodiments for those of ordinary skill in the art without creative efforts, can be with root Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the flow chart of the transmission method of a live TV stream in the embodiment of the present invention;
Fig. 2 is the flow chart of the transmission method of another live TV stream in the embodiment of the present invention;
Fig. 3 is the flow chart of the transmission method of another live TV stream in the embodiment of the present invention;
Fig. 4 is the structure diagram of the transmitting device of a live TV stream in the embodiment of the present invention;
Fig. 5 is the structure diagram of the transmitting device of another live TV stream in the embodiment of the present invention;
Fig. 6 is the structure diagram of the transmitting device of another live TV stream in the embodiment of the present invention;
Fig. 7 is a kind of structure diagram of computer readable storage medium in the embodiment of the present invention;
Fig. 8 is a kind of structure diagram of computer equipment in the embodiment of the present invention.
Specific implementation mode
An embodiment of the present invention provides a kind of transmission method of live TV stream and devices, solve existing live TV stream to improve Transmission method in there are the big technical problems of overhead.
Technical solution in the embodiment of the present application, general thought are as follows:
It, can be in response to the trigger action at outer bound pair main broadcaster end, in the first live TV stream after main broadcaster end generates the first live TV stream Add message data and obtain the second live TV stream, then the second live TV stream is pushed into streaming server, to by streaming server by the Two live streamings are streamed to user terminal, include message data in the second live TV stream received due to user terminal, then so that user terminal can To execute the logical operation in response to the message data, to realize the data communication between user terminal and main broadcaster end, to Message data need not be transmitted by building additional TCP server, to reduce overhead, also reduce server Structure and maintenance cost.Solve in the transmission method of existing live TV stream that there are the technical problems that overhead is big.
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art The every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Embodiment one
The present embodiment provides a kind of transmission methods of live TV stream, as shown in Figure 1, this method includes:
Step S101 is first carried out:Communication connection is established between main broadcaster end and streaming server.
Specifically, it when main broadcaster end needs to transmit live TV stream to user terminal, is typically completed by streaming server, first The good content transmission of acquisition phase package to streaming server, then client are pulled corresponding live streaming by main broadcaster end from streaming server Stream.So, it before live TV stream is transmitted in main broadcaster end to streaming server, needs to establish communication link between main broadcaster end and streaming server It connects, it, can be first by establishing a streaming server duplex channel nc, wherein nc=new in specific implementation process NetConnettion (), then by nc establish and plug-flow address url between connection, i.e. nc.connect (url), to Communication connection is established between main broadcaster end and streaming server, it should be noted that Actionscript is a kind of script, In the connection that is provided by NetConnection objects of NetStream classes, Flash Player and server can be opened (such as:The Macromedia Flash Media Server 2 or Adobe Flex of Adobe) or Flash Player and local Stream connection between file system.NetStream objects are similar to a channel in NetConnection objects, using this A channel nc can use NetStream.publish () publication audios and/or video data, can also use NetStream.play () subscribes to announced stream and receives data.
Then step S102 is executed:Generate the first live TV stream.
Specifically, the first live TV stream is generated by the camera of main broadcaster's end equipment, can be that PC, tablet or mobile phone etc. are set Standby, the first live TV stream includes the data for playing live streaming, may include picture, character, audio, video etc..
Next step S103 is executed:In response to the trigger action to the main broadcaster end, add in first live TV stream Message data is added to obtain the second live TV stream.
Specifically, the above-mentioned trigger action to main broadcaster end can be tapped keyboard, click the operations such as mouse, touch, can To be sent out by main broadcaster's end subscriber.Message data be from the different special data of the first live TV stream for playing live streaming, be main broadcaster End carries out the data of real-time communication with client, and client can be based on message generation respective logic operation, to realize and master Broadcast the communication at end.
In one embodiment, it in response to the trigger action to the main broadcaster end, is added in first live TV stream Message data obtains the second live TV stream and can be realized by following manner:
If detecting the trigger action to the main broadcaster end, it is based on the communication connection, calls preset processing side Method;
By the preset processing method, the message data is added in first live TV stream, described in acquisition Second live TV stream.
In specific implementation process, it can be detected by the way that overall situation monitoring event addLissue (YY, handle) is arranged It is the type of trigger action that whether main broadcaster end, which has trigger action, wherein YY, such as click mouse, tap keyboard, touch screen etc., Handle is the preset processing method of global monitoring event, i.e., executes the side handle when main broadcaster's termination receives triggering special operation Method, the effect of handle methods is to call the library function send of Actionscript, for that will disappear when detecting trigger action Breath data are added in the first live TV stream, and Actionscript is a kind of script based on flash, be can be applied to Windows systems, android system etc..Specifically, it is obtained between main broadcaster end and streaming server first in handle methods Ns1 is communicated to connect, the sending method of ns1 is then called:Send methods, ns1.send (handlerName, type, data), In, handlerName indicates that the ActionScript for receiving message handles the title of function, and type is the type of message, May include onCuePoint, onImageData, onMetaData, onPlayStatus, onSeekPoint (), OnTextData and onXMPData, data are the message data carried.Then the message data of carrying and the first live streaming are flowed into Row fusion, to obtain the second live TV stream.
Step S104 is executed again:Second live TV stream is pushed into the streaming server based on the communication connection, and Second live streaming is streamed to user terminal by the streaming server, so that the user terminal is playing second live streaming The logical operation in response to the message data is executed when stream.
Specifically, after main broadcaster end with streaming server by establishing communication connection, then corresponding live TV stream can be pushed To server, similarly, after user terminal establishes communication connection with streaming server, steaming transfer can also will be broadcast live by streaming server To user terminal, the transmission of live TV stream between live streaming end and user terminal is thereby realized, and contains and disappears in the second live TV stream Data are ceased, then after user terminal receives the second live TV stream that main broadcaster end is sent again, logic behaviour corresponding with message data can be executed Make, such as pop-up advertising frame, broadcasting special sound effect, page jump etc., it can be real so as to which TCP server need not be built Existing data communication between main broadcaster end and user terminal reduces the expense of system, improves the efficiency of data communication.
In a kind of optional embodiment, the second live TV stream, which is pushed to the streaming server, based on communication connection to lead to Following manner is crossed to realize:
Based on the communication connection, stream connection is established;
The camera at the main broadcaster end and stream connection are associated;
Based on the association, second live TV stream is pushed into the streaming server.
In specific implementation process, the streaming server duplex channel of foundation can be passed through on the basis of step S101 Nc establishes a stream connection ns1:Ns1=new NetStream (nc) are then connected by the camera at main broadcaster end and the stream of foundation Ns1 bindings are connect, to be associated, to be pushed to the picture that camera acquires by ns1 stream connections by above-mentioned association On streaming server, above-mentioned camera is main broadcaster end camera.Wherein, concrete implementation code is as follows:
Cam=camera.getCamera ();// obtain local camera
ns1.attaachCamera(Cam);The connection of // stream is bound with local camera
ns1.publish(“XX”,”live”);// second live TV stream pushed into streaming server, wherein XX The title of two live TV streams, " live " indicate broadcast mode be live streaming.
Similarly, the second live streaming is streamed to by user terminal by streaming server, it is also desirable between streaming server and user terminal Communication connection is established, in specific implementation process, can first establish a streaming server duplex channel nc:Nc=new NetConnettion () then establishes the connection between the url of plug-flow address by nc:Nc.connect (url), to real Existing communication connection between user terminal and streaming server.
In user terminal after receiving the second live TV stream, the realization method for playing the second live TV stream is as follows:Pass through nc first Second connection ns2, ns2=new NetStream (nc) are established, a streaming player container video (video is then created =new Video (640,480)), next second is played in stream merging video and plays (video.attachNetStream (ns2)), start to play stream ns2.Play () using the playback method of stream connection, finally stream broadcasting container video is added to Stage (stage.addChild (video)), through the above steps user terminal can play the second straight of streaming server transmission Broadcast stream.
In the present embodiment, user terminal executes patrolling in response to the message data when playing second live TV stream The specific implementation mode for collecting operation is as follows:
User terminal first choice is obtained connects ns2 (ns2=new NetStream (nc)) by the second of nc Path Setups, Then callback method is called by ns2 to handle the second live TV stream of main broadcaster end push:Ns2.client= ObjectClient, and by monitor onCuePoint, onImageData of objectClient, onMetaData, The methods of onPlayStatus, onSeekPoint (), onTextData and onXMPData obtain disappearing in the second live TV stream Data are ceased, if in the second live TV stream include message data, execute corresponding logical operation.For example, work as message count When according to message data for picture/mb-type, concrete implementation is as follows:
Ns2.client=customClient;// user terminal calls corresponding callback method after receiving the second live TV stream CustomClient.onImageData=onImageDataHandler//picture/mb-type message is monitored, and it is rung It answers event to define response method onImageDataHandleronImageDataHandler (data) // calling response method, solves Analysis data simultaneously execute interrelated logic operation.
Through the above steps, user terminal can monitor the message data in the second live TV stream, and respond, Execute interrelated logic operation.
Based on same inventive concept, the embodiment of the present invention additionally provides the transmission method of another live TV stream, detailed in Example Two.
Embodiment two
The present embodiment provides a kind of transmission methods of live TV stream, are applied to server-side, as shown in Fig. 2, this method includes:
Step S201:Communication connection is established between streaming server and main broadcaster end;
The specific of communication connection is established between main broadcaster end and streaming server due to having been described in detail in embodiment one Process, therefore details are not described herein.
Step S202:Main broadcaster's end group is received in the second live TV stream of the communication connection push, wherein described second It is straight described first in response to the trigger action to the main broadcaster end after live TV stream generates the first live TV stream by the main broadcaster end It broadcasts in stream and is obtained after addition message data;
Due to having described main broadcaster end in detail in embodiment one after receiving trigger action in the first live TV stream The process that message data obtains the second live TV stream is added, and the second live streaming is streamed to by streaming server based on communication connection Detailed process, therefore details are not described herein.
Step S203:Second live streaming is streamed to user terminal, so that the user terminal is playing described second directly The logical operation in response to the message data is executed when broadcasting stream.
Due to having been described in detail in embodiment one, user terminal plays the second live TV stream and execution is straight in response to second The specific implementation process of the logical operation of message data in stream is broadcast, therefore details are not described herein.
By the method that the embodiment of the present invention two is introduced, the same structure used with the method for the embodiment of the present invention one Think, so based on the method that the embodiment of the present invention one is introduced, the affiliated personnel in this field can understand method in the present embodiment Specific implementation mode and its deformation, so details are not described herein.The embodiment of the method for every embodiment of the present invention one and its Deformation belongs to the range of the invention to be protected.
Based on same inventive concept, the embodiment of the present invention additionally provides the transmission method of another live TV stream, detailed in Example Three.
Embodiment three
The present embodiment provides a kind of transmission methods of live TV stream, are applied to user terminal, as shown in figure 3, this method includes:
Step S301:Second live TV stream of receiving stream server transport, wherein second live TV stream by main broadcaster's end group in Communication connection between streaming server and main broadcaster end pushes to the streaming server, and second live TV stream is by the main broadcaster end After generating the first live TV stream, in response to the trigger action to the main broadcaster end, message data is added in first live TV stream After obtain;
The specific of communication connection is established between main broadcaster end and streaming server due to having been described in detail in embodiment one The mistake of message data the second live TV stream of acquisition is added at process and main broadcaster end after receiving trigger action in the first live TV stream Journey, and second is broadcast live based on communication connection the detailed process for being streamed to streaming server, therefore details are not described herein.
Step S302:Second live TV stream is played, and executes the logical operation in response to the message data;
Due to having been described in detail in embodiment one, user terminal plays the second live TV stream and execution is straight in response to second The specific implementation process of the logical operation of message data in stream is broadcast, therefore details are not described herein.
By the method that the embodiment of the present invention three is introduced, the same structure used with the method for the embodiment of the present invention one Think, so based on the method that the embodiment of the present invention one is introduced, the affiliated personnel in this field can understand method in the present embodiment Specific implementation mode and its deformation, so details are not described herein.The embodiment of the method for every embodiment of the present invention one and its Deformation belongs to the range of the invention to be protected.
Based on same inventive concept, present invention also provides and a kind of dress corresponding with the transmission method of live TV stream of embodiment It sets, detailed in Example four.
Example IV
The present embodiment provides a kind of transmitting devices of live TV stream, and described device is main broadcaster end, as shown in figure 4, the device packet It includes:
Module 401 is established, communication connection is established between main broadcaster end and streaming server;
Generation module 402, for generating the first live TV stream;
Add module 403 adds message count in response to the trigger action to the main broadcaster end in first live TV stream According to obtaining the second live TV stream;
Second live TV stream is pushed to the streaming server based on the communication connection, and passed through by pushing module 404 Second live streaming is streamed to user terminal by the streaming server, so that the user terminal is when playing second live TV stream Execute the logical operation in response to the message data.
As a kind of optional embodiment of the present embodiment, add module 403 is additionally operable to:
If detecting the trigger action to the main broadcaster end, it is based on the communication connection, calls preset processing side Method;
By the preset processing method, the message data is added in first live TV stream, described in acquisition Second live TV stream.
As a kind of optional embodiment of the present embodiment, pushing module 404 is additionally operable to:
Based on the communication connection, stream connection is established;
The camera at the main broadcaster end and stream connection are associated;
Based on the association, second live TV stream is pushed into the streaming server.
By the device that the embodiment of the present invention four is introduced, for the transmission method of the live TV stream of the implementation embodiment of the present invention one Used device, so based on the method that the embodiment of the present invention one is introduced, the affiliated personnel in this field can understand the device Concrete structure and deformation, so details are not described herein.Device belongs to used by the method for every embodiment of the present invention one The range of the invention to be protected.
Based on same inventive concept, present invention also provides and a kind of dress corresponding with the transmission method of live TV stream of embodiment It sets, detailed in Example five.
Embodiment five
The present embodiment provides a kind of transmitting device of live TV stream, described device is server, as shown in figure 5, the device packet It includes:
Module 501 is established, for establishing communication connection between streaming server and main broadcaster end;
Receiving module 502, for receiving main broadcaster's end group in the second live TV stream of the communication connection push, wherein After second live TV stream generates the first live TV stream by the main broadcaster end, in response to the trigger action to the main broadcaster end, in institute It states and is obtained after adding message data in the first live TV stream;
Transmission module 503, for second live streaming to be streamed to user terminal, so that the user terminal is described in broadcasting The logical operation in response to the message data is executed when the second live TV stream.
By the device that the embodiment of the present invention five is introduced, for the transmission method of the live TV stream of the implementation embodiment of the present invention two Used device, so based on the method that the embodiment of the present invention two is introduced, the affiliated personnel in this field can understand the device Concrete structure and deformation, so details are not described herein.Device belongs to used by the method for every embodiment of the present invention two The range of the invention to be protected.
Based on same inventive concept, present invention also provides and three kinds of embodiment dress corresponding with the transmission method of live TV stream It sets, detailed in Example six.
Embodiment six
The present embodiment provides a kind of transmitting device of live TV stream, described device is user terminal, as shown in fig. 6, the device packet It includes:
Receiving module 601 is used for the second live TV stream of receiving stream server transport, wherein second live TV stream is by leading It broadcasts communication connection of the end group between streaming server and main broadcaster end and pushes to the streaming server, and second live TV stream is by institute After stating the first live TV stream of main broadcaster end generation, in response to the trigger action to the main broadcaster end, added in first live TV stream It is obtained after message data;
Playing module 602 for playing second live TV stream, and executes the logic behaviour in response to the message data Make.
By the device that the embodiment of the present invention six is introduced, for the transmission method of the live TV stream of the implementation embodiment of the present invention three Used device, so based on the method that the embodiment of the present invention three is introduced, the affiliated personnel in this field can understand the device Concrete structure and deformation, so details are not described herein.Device belongs to used by the method for every embodiment of the present invention three The range of the invention to be protected.
Embodiment seven
Based on same inventive concept, present invention also provides a kind of computer readable storage mediums 700, are stored thereon with meter Calculation machine program 711 realizes the method implemented in one when the program is executed by processor.
Specifically, above procedure is configured as that following step can be executed:
Communication connection is established between main broadcaster end and streaming server;
Generate the first live TV stream;
In response to the trigger action to the main broadcaster end, message data is added in first live TV stream and obtains second directly Broadcast stream;
Second live TV stream is pushed into the streaming server based on the communication connection, and passes through the streaming server Second live streaming is streamed to user terminal, so that the user terminal is executed when playing second live TV stream in response to institute State the logical operation of message data.
Embodiment eight
Based on same inventive concept, present invention also provides a kind of computer equipment, Fig. 8 is referred to, including storage 801, Processor 802 and storage on a memory and the computer program 803 that can run on a processor, the execution of the processor 802 The method implemented in one is realized when described program.
Specifically, above-mentioned processor is configured as that following step can be executed:
Communication connection is established between main broadcaster end and streaming server;
Generate the first live TV stream;
In response to the trigger action to the main broadcaster end, message data is added in first live TV stream and obtains second directly Broadcast stream;
Second live TV stream is pushed into the streaming server based on the communication connection, and passes through the streaming server Second live streaming is streamed to user terminal, so that the user terminal is executed when playing second live TV stream in response to institute State the logical operation of message data.
Similarly, three kinds of the embodiment of the present invention two and embodiment also have corresponding computer readable storage medium and calculating Machine equipment, for realizing the method in embodiment two and embodiment three.
Said one in the embodiment of the present application or multiple technical solutions at least have following one or more technology effects Fruit:
It, can be in response to outer bound pair main broadcaster end after main broadcaster end generates the first live TV stream in method provided by the invention Trigger action adds message data in the first live TV stream and obtains the second live TV stream, then the second live TV stream is pushed to stream service Device, and the second live streaming is streamed to by user terminal by streaming server, and the message count at main broadcaster end is carried in the second live TV stream According to so that user terminal executes the logical operation in response to the message data when playing the second live TV stream, to realize user Data communication between end and main broadcaster end.I.e. during main broadcaster end is broadcast live steaming transfer by streaming server, Ke Yitong It crosses the mode for adding message data in the first live TV stream and user terminal carries out data communication, without setting up additional TCP Server transmits message and, to reduce overhead, also reduces server to make main broadcaster end be communicated with user terminal Structure and maintenance cost.Solve in the transmission method of existing live TV stream that there are the technical problems that overhead is big.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided 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, the present invention can be used in one or more wherein include computer usable program code computer The computer program production implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of 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 count Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, those skilled in the art can carry out the embodiment of the present invention various modification and variations without departing from this hair The spirit and scope of bright embodiment.In this way, if these modifications and variations of the embodiment of the present invention belong to the claims in the present invention And its within the scope of equivalent technologies, then the present invention is also intended to include these modifications and variations.

Claims (10)

1. a kind of transmission method of live TV stream, which is characterized in that including:
Communication connection is established between main broadcaster end and streaming server;
Generate the first live TV stream;
In response to the trigger action to the main broadcaster end, message data is added in first live TV stream and obtains the second live streaming Stream;
Second live TV stream is pushed into the streaming server based on the communication connection, and by the streaming server by institute It states the second live streaming and is streamed to user terminal, disappear in response to described so that the user terminal is executed when playing second live TV stream Cease the logical operation of data.
2. the method as described in claim 1, which is characterized in that in response to the trigger action to the main broadcaster end, described Message data is added in one live TV stream obtains the second live TV stream, including:
If detecting the trigger action to the main broadcaster end, it is based on the communication connection, calls preset processing method;
By the preset processing method, the message data is added in first live TV stream, obtains described second Live TV stream.
3. the method as described in claim 1, which is characterized in that described to be pushed to the second live TV stream based on the communication connection The streaming server, including:
Based on the communication connection, stream connection is established;
The camera at the main broadcaster end and stream connection are associated;
Based on the association, second live TV stream is pushed into the streaming server.
4. a kind of transmission method of live TV stream, which is characterized in that including:
Communication connection is established between streaming server and main broadcaster end;
Main broadcaster's end group is received in the second live TV stream of the communication connection push, wherein second live TV stream is by described After main broadcaster end generates the first live TV stream, in response to the trigger action to the main broadcaster end, adds and disappear in first live TV stream It is obtained after breath data;
Second live streaming is streamed to user terminal, so that the user terminal executes response when playing second live TV stream In the logical operation of the message data.
5. a kind of transmission method of live TV stream, which is characterized in that including:
Second live TV stream of receiving stream server transport, wherein second live TV stream is by main broadcaster's end group in streaming server and master It broadcasts the communication connection between end and pushes to the streaming server, and second live TV stream generates the first live streaming by the main broadcaster end After stream, in response to the trigger action to the main broadcaster end, obtained after adding message data in first live TV stream;
Second live TV stream is played, and executes the logical operation in response to the message data.
6. a kind of transmitting device of live TV stream, which is characterized in that described device is main broadcaster end, including:
Module is established, for establishing communication connection between main broadcaster end and streaming server;
Generation module, for generating the first live TV stream;
Add module, in response to the trigger action to the main broadcaster end, message data to be added in first live TV stream Obtain the second live TV stream;
Second live TV stream is pushed to the streaming server for being based on the communication connection, and passes through institute by pushing module It states streaming server and second live streaming is streamed to user terminal, so that the user terminal is held when playing second live TV stream Logical operation of the row in response to the message data.
7. a kind of transmitting device of live TV stream, which is characterized in that described device is server, including:
Module is established, for establishing communication connection between streaming server and main broadcaster end;
Receiving module, for receiving main broadcaster's end group in the second live TV stream of the communication connection push, wherein described second It is straight described first in response to the trigger action to the main broadcaster end after live TV stream generates the first live TV stream by the main broadcaster end It broadcasts in stream and is obtained after addition message data;
Transmission module, for second live streaming to be streamed to user terminal, so that the user terminal is playing described second directly The logical operation in response to the message data is executed when broadcasting stream.
8. a kind of transmitting device of live TV stream, which is characterized in that described device is user terminal, including:
Receiving module, be used for receiving stream server transport the second live TV stream, wherein second live TV stream by main broadcaster's end group in Communication connection between streaming server and main broadcaster end pushes to the streaming server, and second live TV stream is by the main broadcaster end After generating the first live TV stream, in response to the trigger action to the main broadcaster end, message data is added in first live TV stream After obtain;
Playing module for playing second live TV stream, and executes the logical operation in response to the message data.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is performed reality Existing following steps:
Communication connection is established between main broadcaster end and streaming server;
Generate the first live TV stream;
In response to the trigger action to the main broadcaster end, message data is added in first live TV stream and obtains the second live streaming Stream;
Second live TV stream is pushed into the streaming server based on the communication connection, and by the streaming server by institute It states the second live streaming and is streamed to user terminal, disappear in response to described so that the user terminal is executed when playing second live TV stream Cease the logical operation of data.
10. a kind of computer equipment, including memory, processor and storage are on a memory and the meter that can run on a processor Calculation machine program, which is characterized in that the processor realizes following steps when executing described program:
Communication connection is established between main broadcaster end and streaming server;
Generate the first live TV stream;
In response to the trigger action to the main broadcaster end, message data is added in first live TV stream and obtains the second live streaming Stream;
Second live TV stream is pushed into the streaming server based on the communication connection, and by the streaming server by institute It states the second live streaming and is streamed to user terminal, disappear in response to described so that the user terminal is executed when playing second live TV stream Cease the logical operation of data.
CN201810157039.2A 2018-02-24 2018-02-24 Live streaming transmission method and device Active CN108377243B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810157039.2A CN108377243B (en) 2018-02-24 2018-02-24 Live streaming transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810157039.2A CN108377243B (en) 2018-02-24 2018-02-24 Live streaming transmission method and device

Publications (2)

Publication Number Publication Date
CN108377243A true CN108377243A (en) 2018-08-07
CN108377243B CN108377243B (en) 2021-03-16

Family

ID=63017965

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810157039.2A Active CN108377243B (en) 2018-02-24 2018-02-24 Live streaming transmission method and device

Country Status (1)

Country Link
CN (1) CN108377243B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110225384A (en) * 2019-06-18 2019-09-10 北京字节跳动网络技术有限公司 The method for pushing of status message, the switching method of interaction content, device and equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106331830A (en) * 2016-09-06 2017-01-11 北京小米移动软件有限公司 Method, device, equipment and system for processing live broadcast
US20170312624A1 (en) * 2002-12-10 2017-11-02 Sony Interactive Entertainment America Llc System for Streaming Databases Serving Real-Time Applications Used Through Streaming Interactive Video
CN107360160A (en) * 2017-07-12 2017-11-17 广州华多网络科技有限公司 live video and animation fusion method, device and terminal device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170312624A1 (en) * 2002-12-10 2017-11-02 Sony Interactive Entertainment America Llc System for Streaming Databases Serving Real-Time Applications Used Through Streaming Interactive Video
CN106331830A (en) * 2016-09-06 2017-01-11 北京小米移动软件有限公司 Method, device, equipment and system for processing live broadcast
CN107360160A (en) * 2017-07-12 2017-11-17 广州华多网络科技有限公司 live video and animation fusion method, device and terminal device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110225384A (en) * 2019-06-18 2019-09-10 北京字节跳动网络技术有限公司 The method for pushing of status message, the switching method of interaction content, device and equipment

Also Published As

Publication number Publication date
CN108377243B (en) 2021-03-16

Similar Documents

Publication Publication Date Title
CN103369363B (en) The control method of a kind of application program, system and device
US9172979B2 (en) Experience or “sentio” codecs, and methods and systems for improving QoE and encoding based on QoE experiences
CN110267064B (en) Audio playing state processing method, device, equipment and storage medium
CN109120946B (en) Method and device for watching live broadcast
CN110489042B (en) Method and system for simulating dragging based on video network
US20090247295A1 (en) Network-Based Methods and Apparatus for Rendering Images to an End User
CN109299013A (en) A kind of automatic test approach and device
CN110784525A (en) Cloud mobile phone control method, system and storage medium based on H5 webpage technology
CN109640191A (en) A kind of method and apparatus of even wheat live streaming
CN110234028A (en) Audio, video data synchronous broadcast method, device, system, electronic equipment and medium
CN108810052A (en) The selection method and device of direct broadcast server
CN107770569A (en) Multimedia synchronous broadcast method, apparatus and system
CN104363509B (en) A kind of video conversion method, device, play system and terminal
CN113225577A (en) Live stream processing method, device and system, electronic equipment and storage medium
CN113926185A (en) Data processing method, device, equipment and storage medium
CN108270635A (en) Network interim card judgment method, device and online course live broadcast system
US20210227005A1 (en) Multi-user instant messaging method, system, apparatus, and electronic device
CN111885351B (en) Screen display method and device, terminal equipment and storage medium
CN114040220A (en) Live broadcasting method and device
CN109889922A (en) Method, device, equipment and storage medium for forwarding streaming media data
CN108377243A (en) A kind of transmission method and device of live TV stream
CN113766146A (en) Audio and video processing method and device, electronic equipment, storage medium and program product
CN110502155A (en) A kind of methods of exhibiting and device of shared data
CN106488271A (en) A kind of net cast method and device
CN110519331A (en) A kind of view networked resources processing method and processing device

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