CN107613313A - A kind of player method and device of multiple live videos - Google Patents
A kind of player method and device of multiple live videos Download PDFInfo
- Publication number
- CN107613313A CN107613313A CN201710929559.6A CN201710929559A CN107613313A CN 107613313 A CN107613313 A CN 107613313A CN 201710929559 A CN201710929559 A CN 201710929559A CN 107613313 A CN107613313 A CN 107613313A
- Authority
- CN
- China
- Prior art keywords
- live
- live video
- video
- request instruction
- host
- 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
Links
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention discloses a kind of player method and device of multiple live videos, method therein includes:Host process receives the first live video request instruction that client is sent;Based on the first live video request instruction, the first live process is built, and establish communication pipe;Start the described first live process and play first live video, and the described first live process is sent the first broadcasting message of first live video to the host process by the communication pipe;Based on the second live video request instruction, structure and the second live process of the described first live process independence;Start the described second live process and play second live video, and the described second live process is sent the second broadcasting message of second live video to the host process by the communication pipe.Existence and stability poor technical problem when the present invention solves multiple live videos in the prior art while played.
Description
Technical field
The present invention relates to technical field of information processing, more particularly to a kind of player method and device of multiple live videos.
Background technology
With the progress of the network communications technology and the speed-raising of broadband network, net cast technology has obtained increasing hair
Exhibition and application.
At present, because the change of user's request, same user can open multiple live videos simultaneously and be watched, existing side
In method, multiple live videos are realized by the way of multithreading, i.e., by resource-sharing between multiple threads come real
Played while existing multiple live videos, however, when a live video is playing, if now needing to open newly live
Video, because the resource of the resource needed for new live video and current broadcasting video is shared, then new live video
Broadcasting need to rely on current broadcasting video, therefore, can be influenced each other between multiple live videos, cause live shakiness
It is fixed.
It can be seen that existence and stability poor technical problem when multiple live videos in the prior art be present while playing.
The content of the invention
The present invention provides a kind of player method and device of multiple live videos, multiple live in the prior art to solve
Existence and stability poor technical problem video plays simultaneously when.
In a first aspect, the invention provides a kind of player method of multiple live videos, including:
Host process receives the first live video request instruction that client is sent;
Based on the first live video request instruction, the first live process is built, and establish communication pipe;
Start the described first live process and play first live video, and it is described to pass through the described first live process
Communication pipe sends the first broadcasting message of first live video to the host process;
When receiving the second live video request instruction of client transmission, referred to based on second live video request
Order, structure and the second live process of the described first live process independence;
Start the described second live process and play second live video, and it is described to pass through the described second live process
Communication pipe sends the second broadcasting message of second live video to the host process.
Alternatively, before the first live video request instruction that the host process receives that client is sent, methods described
Also include:
The log on request of client is sent to direct broadcast server;
The response message that the direct broadcast server is sent based on the log on request is received, the response message includes described
Client corresponds to the identity information of user.
Alternatively, start the first live process described and play first live video, and make described first straight
Broadcast process to send the first broadcasting message of first live video to the host process by the communication pipe, institute
Stating method also includes;
First live video is added in playlist.
Alternatively, play second live video starting the second live process, and make described second it is live enter
Journey is sent the second broadcasting message of second live video to the host process by the communication pipe, the side
Method also includes:
Second live video is added in playlist.
Alternatively, the described second live process that starts plays second live video, including:
Process address path and the command line parameter of described second live process are set;
The process address path and command line parameter are sent to the second live process, start described second it is live enter
Journey, the described second live process is played described second by the process address path and command line parameter and live regard
Frequently.
Based on same inventive concept, second aspect of the present invention provides a kind of playing device of multiple live videos, bag
Include:
Receiving module, for receiving the first live video request instruction of client transmission;
First structure module, for based on the first live video request instruction, building the first live process, and establish
Communication pipe;
First playing module, first live video is played for starting the described first live process, and make described the
One live process is sent the first broadcasting message of first live video to the host process by the communication pipe;
Second structure module, for when receive client transmission the second live video request instruction when, based on described
Second live video request instruction, structure and the second live process of the described first live process independence;
Second playing module, second live video is played for starting the described second live process, and make described the
Two live processes are sent the second broadcasting message of second live video to the host process by the communication pipe.
Optionally, described device also includes authentication module, and first for being sent in host process reception client is straight
Before broadcasting video request instruction,
The log on request of client is sent to direct broadcast server;
The response message that the direct broadcast server is sent based on the log on request is received, the response message includes described
Client corresponds to the identity information of user.
Optionally, described device also includes the first add module, for being played in the described second live process that starts
Second live video, and make the described first live process by the communication pipe by the second of second live video
Message is played to send to the host process:
First live video is added in playlist.
Optionally, second playing module is additionally operable to:
Process address path and the command line parameter of described second live process are set;
The process address path and command line parameter are sent to the second live process, start described second it is live enter
Journey, the described second live process is played described second by the process address path and command line parameter and live regard
Frequently.
Based on same inventive concept, third aspect present invention provides a kind of computer-readable recording medium, deposits thereon
Computer program is contained, the program realizes following steps when being executed by processor:
Host process receives the first live video request instruction that client is sent;
Based on the first live video request instruction, the first live process is built, and establish communication pipe;
Start the described first live process and play first live video, and it is described to pass through the described first live process
Communication pipe sends the first broadcasting message of first live video to the host process;
When receiving the second live video request instruction of client transmission, referred to based on second live video request
Order, structure and the second live process of the described first live process independence;
Start the described second live process and play second live video, and it is described to pass through the described second live process
Communication pipe sends the second broadcasting message of second live video to the host process.
Based on same inventive concept, fourth aspect present invention provides a kind of computer equipment, including memory, processing
Device and storage are realized on a memory and the computer program that can run on a processor, during the computing device described program
Following steps:
Host process receives the first live video request instruction that client is sent;
Based on the first live video request instruction, the first live process is built, and establish communication pipe;
Start the described first live process and play first live video, and it is described to pass through the described first live process
Communication pipe sends the first broadcasting message of first live video to the host process;
When receiving the second live video request instruction of client transmission, referred to based on second live video request
Order, structure and the second live process of the described first live process independence;
Start the described second live process and play second live video, and it is described to pass through the described second live process
Communication pipe sends the second broadcasting message of second live video to the host process.
The one or more technical schemes provided in the embodiment of the present invention, have at least the following technical effects or advantages:
The embodiments of the invention provide a kind of player method of multiple live videos, host process is sent by receiving client
The first live video request instruction, the structure first live process corresponding with the first live video request instruction, and passing through
Start the first live process and play the first live video, and make the described first live process by the communication pipe by described the
First broadcasting message of one live video is sent to the host process, when host process receive client transmission with it is first live
Video it is different other live videos request (i.e. the second live video request instruction) when, by build with described first it is live enter
Cheng Duli the second live process, and start the described second live process and play second live video, and make described second
Live process is sent the second broadcasting message of second live video to the host process by the communication pipe.One side
Face, due to for playing the second live process of the second live video and the first live process for playing the first live video
It is separate process, i.e., each live process is only used for playing corresponding live video, and each live process is monopolized
The resource of whole process, thus between the first live process and the second live process independently of each other, the failure of a live process
Do not interfere with other live processes, that is to say, that mutually it is independent of each other between different live videos, can be independently of one another
Play, so as to improve the different stability for playing video while playing, it is same to solve multiple live videos in the prior art
When existence and stability poor technical problem when playing, on the other hand, due to host process and the first live process in the present invention, the
Communicated between two live processes by communication pipe, after the first live process plays the first live video, communication can be passed through
First broadcasting message of the first live video is sent to host process by pipeline, and similarly, the second live process can pass through communication tube
Second broadcasting message of the second live video is sent to host process by road, and such host process can know the feelings of each live process
Condition, it is managed so as to convenient for live video corresponding to each live process.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are this hairs
Some bright embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can be with root
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of flow chart of the player method of multiple live videos in the embodiment of the present invention;
Fig. 2 is a kind of structure chart of the playing device of multiple live videos in the embodiment of the present invention;
Fig. 3 is the structural representation of Computer readable storage medium storing program for executing of the embodiment of the present invention;
Fig. 4 is the structural representation of Computer equipment of the embodiment of the present invention.
Embodiment
The present invention provides a kind of player method and device of multiple live videos, multiple live in the prior art to solve
Existence and stability poor technical problem video plays simultaneously when.
Technical scheme in the embodiment of the present application, general thought are as follows:
Host process receives the first live video request instruction that client is sent;Referred to based on first live video request
Order, the first live process is built, and establish communication pipe;Start the described first live process and play first live video,
And the described first live process is set to send the first broadcasting message of first live video to institute by the communication pipe
State host process;When receiving the second live video request instruction of client transmission, asked based on second live video
Instruction, structure and the second live process of the described first live process independence;Start the described second live process and play described the
Two live videos, and the described second live process is played by the communication pipe by the second of second live video and disappear
Breath is sent to the host process.
In the above-mentioned methods, on the one hand, because the second live process for playing the second live video plays with being used for
First live process of the first live video is separate process, i.e., each live process is only corresponding for playing
Live video, each live process monopolize the resource of whole process, thus phase between the first live process and the second live process
Mutually independent, the failure of a live process does not interfere with other live processes, that is to say, that between different live videos
Mutually it is independent of each other, can plays independently of one another, so as to improve the different stability for playing video while playing, solves
The poor technical problem of existence and stability multiple live videos play in the prior art simultaneously when, on the other hand, due to the present invention
Communicated between middle host process and the first live process, the second live process by communication pipe, the first live process plays
After first live video, the first broadcasting message of the first live video can be sent to by host process by communication pipe, similarly,
Second broadcasting message of the second live video can be sent to host process, such host process by the second live process by communication pipe
The situation of each live process can be known, be managed so as to convenient for live video corresponding to each live process.
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
Part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Embodiment one
A kind of player method of multiple live videos is present embodiments provided, refer to Fig. 1, methods described includes:
Step S101:Receive the first live video request instruction that client is sent;
Step S102:Based on the first live video request instruction, the first live process is built, and establish communication tube
Road;
Step S103:Start the described first live process and play first live video, and make described first it is live enter
Journey is sent the first broadcasting message of first live video to the host process by the communication pipe;
Step S104:It is live based on described second when receiving the second live video request instruction of client transmission
Video request instructs, structure and the second live process of the described first live process independence;
Step S105:Start the described second live process and play second live video, and make described second it is live enter
Journey is sent the second broadcasting message of second live video to the host process by the communication pipe.
Specifically, in above-mentioned steps S101, the request of the first live video can be the request of any one live video,
First live video request instruction therein can be the clicking operation of user or other trigger actions.
In step s 102, after host process receives the first live video request instruction that client is sent, the use is shown
The first live video of viewing is thought at family, and at this moment host process can construct an i.e. first live process of subprocess, due to host process and respectively
It is separate process between live process, and direct communication can not be carried out between each independent process, thus this hair
By building communication pipe in bright implementation, to realize the communication between host process and each live process.In specific implementation process
In, the foundation of communication pipe can be completed in the following way:Local socket (socket) is established, that is, opens local communication pipe
Road, then the title of communication pipe is set, then wait for the connection of communication customer end, when in communication customer end connection, preserved
The related context of communication customer end.Because communication pipe is both sides, for the first live process, it is also desirable to establish this
Ground socket (socket), that is, local communication pipeline is opened, then by the title of above-mentioned communication pipe, sends connection request,
Then the connection at communication service end is waited, when in the connection of communication service end, preserves the related context in communication service end, it is convenient
Subsequent communications.
In step s 103, then it is used for playing above-mentioned first live video by starting the above-mentioned first live process.
In specific implementation process, host process can be by initializing a Qprocess object, to build a subprocess.In order to realize
Host process is preferably managed subprocess, can bind the started signals of QProcess objects, for monitor first it is live enter
The commencing signal of journey, finished signals, for monitoring the end signal of the first live process, error signals, for monitoring the
The error message of one live process.Then the above-mentioned first live process is started, so as to realize the broadcasting of the first live video,
In the playing process of one live video, the first live process monopolizes the resource of the whole first live process, is served only for broadcasting first
Live video.Specifically, the communication of host process and each live process, the first video is played starting the first live process
Afterwards, the described first live process is made to send the first broadcasting message of first live video to institute by the communication pipe
Host process is stated, so that host process knows the situation of the first live process, first live video is managed so as to convenient.
In step S104, when the first live process, which performs, plays the first live video, now if receiving other
Live video request instruction, i.e. the second live video request instruction, host process can be based on second live video request refer to
Order, build a second live process with the described first live process independence.In specific implementation process, host process can lead to
One Qprocess object of initialization is crossed, to build a subprocess with the first live process independence, i.e., the second live process.
In step S105, because the second live process also monopolizes the resource of the whole second live process, it is only used for playing
Second live video, then by the described second live process by the communication pipe by the second of second live video
Play message to send to the host process, such host process knows the situation of the second live process, so as to convenient live to second
Video is managed.
Communication in order to illustrate more clearly of host process with each live process by communication pipe, below from communication pipe
Foundation and communication protocol two aspect be explained.
It is communication pipe part first, QLocalServer locals sockte service objects can be initialized and be used to carry out pipe
Road communicates, and QLocalServer can provide one and be based on the service end (server) of local socket (socket), and receive
Connection from local socket, then by calling listen (), monitor specific connection.Then QLocalServer is passed through
The Listen methods of object set incoming connection name, that is, the title of communication pipe, after setting successfully, monitor
QLocalServer object newConnection signals, every time when a new connection connects, this signal will be sent.When
The connection of next wait is obtained when receiving this signal by the nextPendingConnection methods of object, is then passed through
The readyRead signals that the concatenation pointer binding of return changes object are used for the information for receiving the transmission of broadcasting process;The present invention is implemented
By constructing a QTextStream stream object and concatenation pointer can also be regard as the structure that I/O device is input to the object
Make in function, finally by the object<<Data message is sent in broadcasting progress by operator, then will
NextPendingConnection returns to link address and is saved in connection list.
Next communications protocol part is introduced, is typically to be sealed according to JSON forms when sending and receiving data message
The structure of dress is divided into two layers, and wherein first layer is made up of two fields of type and content, and the second layer is by specific content field group
Into.Method on sending information, can be achieved by the steps of:
One A1, construction point QJsonObject objects;
A2, [] by QJsonObject objects ,=operator addition second layer field information;
A3, the QJsonObject objects for constructing a root node;
A4, [] by QJsonObject objects ,=operator addition first layer field information are included in step a1
QJsonObject objects;
A5, the string data sent by the toJson returns of root node object.
On the method for receive information, can be achieved by the steps of:
B1, pass through QJsonDocument::FromJson static methods return to a QJsonDocument text
This object;
B2, QJsonDocument text object return type field information
QJsonObject object=document.object ();
QJsonValue value=object.take (" type ");
B3, QJsonDocument text object returned content field information.
By above-mentioned communication protocol, so as to realize the communication between host process and each subprocess.
Because independently of each other, the failure of the first live process does not interfere between the second live process and the first live process
To the second live process, that is to say, that be mutually independent of each other, can play independently of one another between different live videos, so as to carry
The high different stability for playing video and playing simultaneously, solves multiple live videos in the prior art while exists when playing
The technical problem of less stable.
In order to ensure the security of communication, the first live video request instruction of client transmission is received in the host process
Before, methods described also includes:
The log on request of client is sent to direct broadcast server;
The response message that the direct broadcast server is sent based on the log on request is received, the response message includes described
Client corresponds to the identity information of user.
Specifically, host process can ask to send log on request to direct broadcast server by http post, by live
Server is verified to logon information, is then back to response message, to verify the identity of user.Further, for side
Just host process is managed to each live process, the live video of each broadcasting is more intuitively shown, can also be passed through
Host process sends gethttp requests to direct broadcast server, so as to obtain the room of the live video corresponding with each live process
List information, then room list information is shown in window.The communication pipe being now also based in abovementioned steps, will
The identity information of the user is sent to each live process.
In order to preferably be managed each live video, and live user is more intuitively shown to, in the startup
The first live process plays first live video, and makes the described first live process by the communication pipe by institute
The the first broadcasting message for stating the first live video is sent to the host process, and methods described also includes;
First live video is added in playlist.
Second live video is played starting the described second live process, and the described second live process is passed through institute
State communication pipe to send the second broadcasting message of second live video to the host process, methods described is also wrapped
Include:
Second live video is added in playlist.
Specifically, above-mentioned playlist is the room list of each live video, preferably, live starting first
After process plays the first live video, the first live process can send the first live video to host process by communication pipe and beat
The message opened, that is, the state of the live video of host process first is notified to open, when user exits or other accidents, cause first
When live video is closed, the first live process can send disappearing for the first live video closing by communication pipe to host process
Breath, that is, the state for notifying the live video of host process first are closing.Similarly, the communication between the second live process and host process
It is similar, so it is easy to host process to know the situation of each live video, so as to preferably be managed.
In method provided by the invention, the described second live process that starts plays second live video, bag
Include:
Process address path and the command line parameter of described second live process are set;
The process address path and command line parameter are sent to the second live process, start described second it is live enter
Journey, the described second live process is played described second by the process address path and command line parameter and live regard
Frequently.
Specifically, host process can set the process address path of the second live process when building the second live process
And command line parameter, then host process above-mentioned process address path and command line parameter are passed into the second live process, when opening
During dynamic second live process, the second live process can parse mentioned order row parameter, then set the according to process address path
The broadcasting stream address of two live videos, it is finally based on broadcasting stream address and plays above-mentioned second live video.In addition second it is live enter
Journey by the room ID of the second live video, can also send the relevant information in the get acquisition requests room, after obtaining accordingly,
The relevant information in room, such as main broadcaster's name, online number etc. can be shown in the live window of the second live video.Second is straight
The process of broadcasting can also ask gifts to operate by http get acquisition request present list informations by http post, and
The ID and subscriber identity information of present are set, render present special efficacy etc..In specific implementation process, the second live process
The broadcasting of the second live video is realized by following step:QCommandLineParser objects are constructed first to be used to parse life
Row parameter, and return to room ID and parent window handle are made, then initializes a QNetworkAccessManager object, and
Tie up and order finished signals for returning to direct broadcast server return solicited message;One QNetworkRequest request pair of construction
As the object is used to preserve solicited message, and sets request address parameter, sets the letter such as request header information parameter such as request time
Breath.Wherein, the get methods request direct broadcast server of QNetworkAccessManager objects, such as can be PHP servers,
And QNetworkRequest request objects are transmitted as parameter, when receiving QNetworkAccessManager objects
During finished signals, reply parameter acquirings are passed to character string information by signal;Then character is parsed, the character string is
JSON forms, QJsonDocument is used transmitting character string::FromJson static methods return to a QJsonDocument
Text object, and a QJsonObject object is returned to by QJsonDocument text objects, it can also pass through
The field name that the take methods input of QJsonObject objects obtains obtains a QJsonValue field value object, and according to
Field type returns to the value of the field from QJsonValue.If it is desired to obtaining multiple field values may be reused take methods.
After parsing character, room name, currently viewing number, room video flowing address etc. can be obtained, finally by regarding for bottom
Frequency playing module sets stream address to play out video.
Based on same inventive concept, present invention also offers a kind of corresponding with the player method of multiple live videos
Device, referring specifically to embodiment two
Embodiment two
The embodiments of the invention provide a kind of playing device of multiple live videos, Fig. 2 is referred to, the device includes:
Receiving module 201, for receiving the first live video request instruction of client transmission;
First structure module 202, for based on the first live video request instruction, building the first live process, and
Establish communication pipe;
First playing module 203, first live video is played for starting the described first live process, and made described
First live process is sent the first broadcasting message of first live video to the host process by the communication pipe;
Second structure module 204, for when receive client transmission the second live video request instruction when, based on institute
State the second live video request instruction, structure and the second live process of the described first live process independence;
Second playing module 205, second live video is played for starting the described second live process, and made described
Second live process is sent the second broadcasting message of second live video to the host process by the communication pipe.
Optionally, described device also includes authentication module, and first for being sent in host process reception client is straight
Before broadcasting video request instruction,
The log on request of client is sent to direct broadcast server;
The response message that the direct broadcast server is sent based on the log on request is received, the response message includes described
Client corresponds to the identity information of user.
Optionally, described device also includes the first add module, for being played in the described first live process that starts
First live video, and make the described first live process by the communication pipe by the first of first live video
Message is played to send to the host process:
First live video is added in playlist.
Optionally, play second live video starting the second live process, and make described second it is live enter
Journey is sent the second broadcasting message of second live video to the host process by the communication pipe, the side
Method also includes:
Second live video is added in playlist.
Optionally, second playing module 205 is additionally operable to:
Process address path and the command line parameter of described second live process are set;
The process address path and command line parameter are sent to the second live process, start described second it is live enter
Journey, the described second live process is played described second by the process address path and command line parameter and live regard
Frequently.
The various change mode and instantiation of the player method of multiple live videos in earlier figures 1 in embodiment are same
Suitable for the device of the present embodiment, pass through the detailed description of the foregoing player method to multiple live videos, people in the art
Member is clear that device in the present embodiment, thus it is succinct for specification, it will not be described in detail herein.
Based on same inventive concept, present invention also offers a kind of corresponding with the player method of multiple live videos
Computer-readable recording medium, referring specifically to embodiment three
Embodiment three
The embodiments of the invention provide a kind of computer-readable recording medium 300, Fig. 3 is referred to, is stored thereon with calculating
Machine program 311, the program realize following steps when being executed by processor:
Host process receives the first live video request instruction that client is sent;
Based on the first live video request instruction, the first live process is built, and establish communication pipe;
Start the described first live process and play first live video, and it is described to pass through the described first live process
Communication pipe sends the first broadcasting message of first live video to the host process;
When receiving the second live video request instruction of client transmission, referred to based on second live video request
Order, structure and the second live process of the described first live process independence;
Start the described second live process and play second live video, and it is described to pass through the described second live process
Communication pipe sends the second broadcasting message of second live video to the host process.
The various change mode and instantiation of the player method of multiple live videos in earlier figures 1 in embodiment are same
Suitable for the computer-readable recording medium of the present embodiment, pass through retouching in detail for the foregoing player method to multiple live videos
State, those skilled in the art are clear that the computer-readable recording medium in the present embodiment, so for specification
It is succinct, will not be described in detail herein.
Based on same inventive concept, present invention also offers a kind of corresponding with the player method of multiple live videos
Computer equipment, referring specifically to example IV.
Example IV
The embodiments of the invention provide a kind of computer equipment, refer to Fig. 4, including memory 401, processor 402 and
The computer program 403 that can be run on memory 401 and on a processor is stored in, the processor 402 performs described program
Shi Shixian following steps:
Host process receives the first live video request instruction that client is sent;
Based on the first live video request instruction, the first live process is built, and establish communication pipe;
Start the described first live process and play first live video, and it is described to pass through the described first live process
Communication pipe sends the first broadcasting message of first live video to the host process;
When receiving the second live video request instruction of client transmission, referred to based on second live video request
Order, structure and the second live process of the described first live process independence;
Start the described second live process and play second live video, and it is described to pass through the described second live process
Communication pipe sends the second broadcasting message of second live video to the host process.
The various change mode and instantiation of the player method of multiple live videos in earlier figures 1 in embodiment are same
Suitable for the computer equipment of the present embodiment, pass through the detailed description of the foregoing player method to multiple live videos, this area
Technical staff is clear that the computer equipment in the present embodiment, thus it is succinct for specification, it is no longer detailed herein
State.
The one or more technical schemes provided in the embodiment of the present invention, have at least the following technical effects or advantages:
The embodiments of the invention provide a kind of player method of multiple live videos, host process is sent by receiving client
The first live video request instruction, the structure first live process corresponding with the first live video request instruction, and passing through
Start the first live process and play the first live video, and make the described first live process by the communication pipe by described the
First broadcasting message of one live video is sent to the host process, when host process receive client transmission with it is first live
Video it is different other live videos request (i.e. the second live video request instruction) when, by build with described first it is live enter
Cheng Duli the second live process, and start the described second live process and play second live video, and make described second
Live process is sent the second broadcasting message of second live video to the host process by the communication pipe.One side
Face, due to for playing the second live process of the second live video and the first live process for playing the first live video
It is separate process, i.e., each live process is only used for playing corresponding live video, and each live process is monopolized
The resource of whole process, thus between the first live process and the second live process independently of each other, the failure of a live process
Do not interfere with other live processes, that is to say, that mutually it is independent of each other between different live videos, can be independently of one another
Play, so as to improve the different stability for playing video while playing, it is same to solve multiple live videos in the prior art
When existence and stability poor technical problem when playing, on the other hand, due to host process and the first live process in the present invention, the
Communicated between two live processes by communication pipe, after the first live process plays the first live video, communication can be passed through
First broadcasting message of the first live video is sent to host process by pipeline, and similarly, the second live process can pass through communication tube
Second broadcasting message of the second live video is sent to host process by road, and such host process can know the feelings of each live process
Condition, it is managed so as to convenient for live video corresponding to each live process.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the present invention can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more
The computer program production that usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or
The instruction performed 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 individual square frame or multiple square frames.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation
Property concept, then can make other change and modification to these embodiments.So appended claims be intended to be construed to include it is excellent
Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification without departing from this hair to the embodiment of the present invention
The spirit and scope of bright embodiment.So, 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 comprising including these changes and modification.
Claims (10)
- A kind of 1. player method of multiple live videos, it is characterised in that including:Host process receives the first live video request instruction that client is sent;Based on the first live video request instruction, the first live process is built, and establish communication pipe;Start the described first live process and play first live video, and the described first live process is passed through the communication Pipeline sends the first broadcasting message of first live video to the host process;When receiving the second live video request instruction of client transmission, based on the second live video request instruction, Structure and the second live process of the described first live process independence;Start the described second live process and play second live video, and the described second live process is passed through the communication Pipeline sends the second broadcasting message of second live video to the host process.
- 2. the method as described in claim 1, it is characterised in that receive first that client sends in the host process and live regard Before frequency request instruction, methods described also includes:The log on request of client is sent to direct broadcast server;The response message that the direct broadcast server is sent based on the log on request is received, the response message includes the client The identity information of the corresponding user in end.
- 3. the method as described in claim 1, it is characterised in that play described first in the described first live process that starts Live video, and the described first live process is played message by the first of first live video by the communication pipe Send to the host process, methods described also includes;First live video is added in playlist.
- 4. the method as described in claim 1, it is characterised in that it is live to play described second in the described second live process that starts Video, and the described second live process is played message by the second of second live video by the communication pipe and send After to the host process, methods described also includes:Second live video is added in playlist.
- 5. the method as described in claim 1, it is characterised in that it is straight that the described second live process of startup plays described second Video is broadcast, including:Process address path and the command line parameter of described second live process are set;The process address path and command line parameter are sent to the second live process, starts the second live process, makes The second live process can play second live video by the process address path and command line parameter.
- A kind of 6. playing device of multiple live videos, it is characterised in that including:Receiving module, for receiving the first live video request instruction of client transmission;First structure module, for based on the first live video request instruction, building the first live process, and establish communication Pipeline;First playing module, first live video is played for starting the described first live process, and made described first straight Process is broadcast to send the first broadcasting message of first live video to the host process by the communication pipe;Second structure module, for when receive client transmission the second live video request instruction when, based on described second Live video request instruction, structure and the second live process of the described first live process independence;Second playing module, second live video is played for starting the described second live process, and made described second straight Process is broadcast to send the second broadcasting message of second live video to the host process by the communication pipe.
- 7. device as claimed in claim 1, it is characterised in that described device also includes authentication module, for entering in the master Before journey receives the first live video request instruction that client is sent,The log on request of client is sent to direct broadcast server;The response message that the direct broadcast server is sent based on the log on request is received, the response message includes the client The identity information of the corresponding user in end.
- 8. device as claimed in claim 7, it is characterised in that described device also includes the first add module, for described Start the described first live process and play first live video, and the described first live process is passed through the communication pipe First broadcasting message of first live video is sent to the host process:First live video is added in playlist.
- 9. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is held by processor Following steps are realized during row:Host process receives the first live video request instruction that client is sent;Based on the first live video request instruction, the first live process is built, and establish communication pipe;Start the described first live process and play first live video, and the described first live process is passed through the communication Pipeline sends the first broadcasting message of first live video to the host process;When receiving the second live video request instruction of client transmission, based on the second live video request instruction, Structure and the second live process of the described first live process independence;Start the described second live process and play second live video, and the described second live process is passed through the communication Pipeline sends the second broadcasting message of second live video to the host process.
- 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, it is characterised in that realize following steps during the computing device described program:Host process receives the first live video request instruction that client is sent;Based on the first live video request instruction, the first live process is built, and establish communication pipe;Start the described first live process and play first live video, and the described first live process is passed through the communication Pipeline sends the first broadcasting message of first live video to the host process;When receiving the second live video request instruction of client transmission, based on the second live video request instruction, Structure and the second live process of the described first live process independence;Start the described second live process and play second live video, and the described second live process is passed through the communication Pipeline sends the second broadcasting message of second live video to the host process.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710929559.6A CN107613313A (en) | 2017-10-09 | 2017-10-09 | A kind of player method and device of multiple live videos |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710929559.6A CN107613313A (en) | 2017-10-09 | 2017-10-09 | A kind of player method and device of multiple live videos |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107613313A true CN107613313A (en) | 2018-01-19 |
Family
ID=61067580
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710929559.6A Pending CN107613313A (en) | 2017-10-09 | 2017-10-09 | A kind of player method and device of multiple live videos |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107613313A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111385251A (en) * | 2018-12-28 | 2020-07-07 | 武汉斗鱼网络科技有限公司 | Method, system, server and storage medium for improving operation stability of client |
CN113242441A (en) * | 2021-05-08 | 2021-08-10 | 北京有竹居网络技术有限公司 | Live broadcast method and device, computer equipment and storage medium |
CN113422980A (en) * | 2021-06-21 | 2021-09-21 | 广州博冠信息科技有限公司 | Video data processing method and device, electronic equipment and storage medium |
CN113595887A (en) * | 2021-09-09 | 2021-11-02 | 北京天空卫士网络安全技术有限公司 | Flow control method and device in mail system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102801961A (en) * | 2012-08-21 | 2012-11-28 | 北京捷成世纪科技股份有限公司 | Multiprocess-based audio/video data processing method and system |
US20140089944A1 (en) * | 2011-01-05 | 2014-03-27 | Blackberry Limited | Processing user input events in a web browser |
WO2016078186A1 (en) * | 2014-11-20 | 2016-05-26 | 广州华多网络科技有限公司 | Method and device for live video broadcast |
CN105681212A (en) * | 2016-03-21 | 2016-06-15 | 广州盈可视电子科技有限公司 | Video playing state monitoring method and device |
CN106534940A (en) * | 2016-10-14 | 2017-03-22 | 腾讯科技(北京)有限公司 | Method and device for displaying preview picture at live broadcasting entrance |
-
2017
- 2017-10-09 CN CN201710929559.6A patent/CN107613313A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140089944A1 (en) * | 2011-01-05 | 2014-03-27 | Blackberry Limited | Processing user input events in a web browser |
CN102801961A (en) * | 2012-08-21 | 2012-11-28 | 北京捷成世纪科技股份有限公司 | Multiprocess-based audio/video data processing method and system |
WO2016078186A1 (en) * | 2014-11-20 | 2016-05-26 | 广州华多网络科技有限公司 | Method and device for live video broadcast |
CN105681212A (en) * | 2016-03-21 | 2016-06-15 | 广州盈可视电子科技有限公司 | Video playing state monitoring method and device |
CN106534940A (en) * | 2016-10-14 | 2017-03-22 | 腾讯科技(北京)有限公司 | Method and device for displaying preview picture at live broadcasting entrance |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111385251A (en) * | 2018-12-28 | 2020-07-07 | 武汉斗鱼网络科技有限公司 | Method, system, server and storage medium for improving operation stability of client |
CN113242441A (en) * | 2021-05-08 | 2021-08-10 | 北京有竹居网络技术有限公司 | Live broadcast method and device, computer equipment and storage medium |
WO2022237414A1 (en) * | 2021-05-08 | 2022-11-17 | 北京有竹居网络技术有限公司 | Live streaming method and apparatus, and computer device and storage medium |
CN113242441B (en) * | 2021-05-08 | 2023-02-24 | 北京有竹居网络技术有限公司 | Live broadcast method and device, computer equipment and storage medium |
CN113422980A (en) * | 2021-06-21 | 2021-09-21 | 广州博冠信息科技有限公司 | Video data processing method and device, electronic equipment and storage medium |
CN113595887A (en) * | 2021-09-09 | 2021-11-02 | 北京天空卫士网络安全技术有限公司 | Flow control method and device in mail system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107613313A (en) | A kind of player method and device of multiple live videos | |
CN105338061B (en) | A kind of implementation method and system of lightweight messages middleware | |
CN103181177B (en) | Image processing system, image processing method, dynamic image transmission device, and dynamic image reception device | |
CN105264818B (en) | A kind of certificate acquisition method and apparatus | |
CN109348171A (en) | A kind of view networking monitoring video acquiring method and device | |
CN107302716B (en) | A kind of method of live game, Zhu Boduan, direct broadcast server and client | |
CN108391153A (en) | Virtual present display methods, device and electronic equipment | |
CN103475743B (en) | A kind of method, apparatus and system for cloud service | |
CN106603550B (en) | A kind of Network Isolation method and device | |
US11185781B2 (en) | Cognitive user experience optimization | |
CN106846065A (en) | A kind of data processing method and device | |
CN106330779B (en) | Server, physical switch, and communication system | |
CN108965912A (en) | A kind of method, client and the server of video data processing | |
CN104320272B (en) | A kind of method and the network equipment of transmission equipment information | |
US20140244733A1 (en) | Method, Apparatus, Device and System for Generating DHCP Snooping Binding Table | |
CN109635550A (en) | Authorization check method, gateway and the system of company-data | |
CN105871996A (en) | Message pushing system and method | |
CN112019889A (en) | Cloud-based screen projection system and screen projection method | |
US20120158830A1 (en) | Apparatus and method for generating virtual game clients | |
CN109447625A (en) | A kind of two dimensional code method of payment and system | |
CN109039959A (en) | A kind of the consistency judgment method and relevant apparatus of SDN network rule | |
CN108881817A (en) | A kind of methods, devices and systems that data are synchronous | |
CN103841218B (en) | Method for determining duration of public network access by user terminal and net access server | |
CN109617830A (en) | A kind of method and apparatus regarding real time demonstration business in networking | |
CN106888261A (en) | A kind of distributed document transmission method, server and private clound equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180119 |
|
RJ01 | Rejection of invention patent application after publication |