CN109698963A - A kind of live broadcasting method, device, electronic equipment and readable storage medium storing program for executing - Google Patents

A kind of live broadcasting method, device, electronic equipment and readable storage medium storing program for executing Download PDF

Info

Publication number
CN109698963A
CN109698963A CN201811653428.0A CN201811653428A CN109698963A CN 109698963 A CN109698963 A CN 109698963A CN 201811653428 A CN201811653428 A CN 201811653428A CN 109698963 A CN109698963 A CN 109698963A
Authority
CN
China
Prior art keywords
live
streaming media
client
streaming
wheat
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
CN201811653428.0A
Other languages
Chinese (zh)
Other versions
CN109698963B (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.)
Zhuomi Private Ltd
Original Assignee
Happy Honey 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 Happy Honey Co Ltd filed Critical Happy Honey Co Ltd
Priority to CN201811653428.0A priority Critical patent/CN109698963B/en
Publication of CN109698963A publication Critical patent/CN109698963A/en
Application granted granted Critical
Publication of CN109698963B publication Critical patent/CN109698963B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • H04N21/4882Data services, e.g. news ticker for displaying messages, e.g. warnings, reminders

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Information Transfer Between Computers (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the present invention discloses a kind of live broadcasting method, device, electronic equipment and readable storage medium storing program for executing, is related to direct seeding technique field, can be improved the real-time of live content viewing.The live broadcasting method is applied to live streaming client, comprising: receives direct broadcasting room and enters request;Enter request according to the direct broadcasting room, opens direct broadcasting room;Start Streaming Media engine, so that Streaming Media engine and streaming media server are established and communicated to connect;By the Streaming Media engine, live content is pulled from the streaming media server, and play out locally.Described device, electronic equipment and readable storage medium storing program for executing include module used to perform the method.The present invention is suitable for viewing live content.

Description

A kind of live broadcasting method, device, electronic equipment and readable storage medium storing program for executing
Technical field
The present invention relates to direct seeding technique field more particularly to a kind of live broadcasting method, device, electronic equipment and readable storage mediums Matter.
Background technique
Net cast is the live broadcast service carried out using Internet resources, and live broadcast service is widely used in opening in real time News briefing, product publication, product recommendations, program performance, movies-making, sports tournament, long-distance education, the amusement of exhibition are straight Broadcast, game live streaming etc. network direct broadcastings service.
Existing net cast technology, main broadcaster, welcome guest are by client sound, video data transmission to streaming media service Device, streaming media server is collaborated the video data that main broadcaster, welcome guest push by instruction, and turns to push away successful data are collaborated It is distributed to viewer end to content distributing network (CDN, Content Delivery Network), then by CDN, viewer end is by broadcasting It puts device and achievees the effect that viewing.Due to the interflow video data that viewer end is pushed away by player plays by CDN turns, video data exists CDN turns during pushing away, and can generate the delay of 3s-6s, the delay of the live content for causing viewer end to be watched in time.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of live broadcasting method, device, electronic equipment and readable storage medium storing program for executing, energy Enough improve the real-time of live content viewing.
In a first aspect, the embodiment of the present invention provides a kind of live broadcasting method, it is applied to live streaming client, the live broadcasting method packet It includes: receiving direct broadcasting room and enter request;Enter request according to the direct broadcasting room, opens direct broadcasting room;Start Streaming Media engine, so that stream Media engine and streaming media server, which are established, to be communicated to connect;By the Streaming Media engine, pulled from the streaming media server Live content, and played out locally.
A kind of specific implementation according to an embodiment of the present invention, it is described by the Streaming Media engine, from the stream matchmaker Body server pull live content, and played out locally, comprising: by the Streaming Media engine, taken from the Streaming Media Business device pulls the live content of main broadcaster and/or welcome guest, and plays out locally.
A kind of specific implementation according to an embodiment of the present invention is passing through the Streaming Media engine, from the Streaming Media Server pull live content, and while locally playing out, the method also includes:
By the Streaming Media engine, the attribute information of main broadcaster and/or welcome guest are pulled from the streaming media server, and will The attribute information is shown in live streaming client.
A kind of specific implementation according to an embodiment of the present invention is passing through the Streaming Media engine, from the Streaming Media Server pull live content, and after locally playing out, the method also includes: it initiates and the request of the company wheat of main broadcaster; Receive return connects wheat success message with main broadcaster;By the Streaming Media engine, local audio and/or video data are pushed To the streaming media server, so that main broadcaster pulls local audio and/or video data from the streaming media server.
A kind of specific implementation according to an embodiment of the present invention is passing through the Streaming Media engine, by local audio And/or video data pushes to the streaming media server, so that main broadcaster pulls local audio from the streaming media server And/or after video data, the method also includes: whether the duration that judgement continues even wheat with main broadcaster reaches scheduled duration threshold Value;If the time for continuing even wheat with main broadcaster reaches scheduled duration threshold value, the company of progress wheat interrupts prompt.
A kind of specific implementation according to an embodiment of the present invention is passing through the Streaming Media engine, from the Streaming Media Server pull live content, and after locally playing out, the method also includes: it initiates and the request of the company wheat of welcome guest; Receive return with welcome guest's Lian Mai success message;By the Streaming Media engine, local audio and/or video data are pushed To the streaming media server, so that welcome guest pulls local audio and/or video data from the streaming media server.
A kind of specific implementation according to an embodiment of the present invention is passing through the Streaming Media engine, by local audio And/or video data pushes to the streaming media server, so that welcome guest pulls local audio from the streaming media server And/or after video data, the method also includes: whether the duration that judgement continues even wheat with welcome guest reaches scheduled duration threshold Value;If the time for continuing even wheat with welcome guest reaches scheduled duration threshold value, the company of progress wheat interrupts prompt.
Second aspect, the embodiment of the present invention provide a kind of live broadcast device, are applied to live streaming client, the live broadcast device packet Include: the first request receiving module, direct broadcasting room open module, first communication module, playing module, wherein the first request receives mould Block is asked for receiving live streaming into request;Direct broadcasting room opens module, for entering request according to the direct broadcasting room, opens live streaming Between;First communication module, for starting Streaming Media engine, so that Streaming Media engine and streaming media server are established and communicated to connect; Playing module, for pulling live content from the streaming media server, and broadcast locally by the Streaming Media engine It puts.
A kind of specific implementation according to an embodiment of the present invention, the playing module are specifically used for:
By the Streaming Media engine, the live content of main broadcaster and/or welcome guest are pulled from the streaming media server, and Locally play out.
A kind of specific implementation according to an embodiment of the present invention, the playing module are specifically also used to:
By the Streaming Media engine, the attribute information of main broadcaster and/or welcome guest are pulled from the streaming media server, and will The attribute information is shown in live streaming client.
A kind of specific implementation according to an embodiment of the present invention, described device further include: first, which connects wheat request, initiates mould Block, first connects wheat message reception module, the first plug-flow module, wherein first, which connects wheat, requests initiation module, for initiation and main broadcaster Company wheat request;First connect wheat message reception module, for receives return connect wheat success message with main broadcaster;First plug-flow mould Block, for by the Streaming Media engine, local audio and/or video data to be pushed to the streaming media server, with Main broadcaster is set to pull local audio and/or video data from the streaming media server.
A kind of specific implementation according to an embodiment of the present invention, described device further include: the first duration judgment module, the One interrupts cue module, wherein the first duration judgment module, for judging whether the duration for continuing even wheat with main broadcaster reaches predetermined Duration threshold value;First interrupts cue module, if the time for continuing even wheat with main broadcaster reaches scheduled duration threshold value, is connected Wheat interrupts prompt.
A kind of specific implementation according to an embodiment of the present invention is passing through the Streaming Media engine, from the Streaming Media Server pull live content, and after locally playing out, described device further include: second, which connects wheat, requests initiation module, Second connects wheat message reception module, the second plug-flow module, wherein second, which connects wheat, requests initiation module, for initiating with welcome guest's Even wheat request;Second connect wheat message reception module, for receives return with welcome guest's Lian Mai success message;Second plug-flow module, For local audio and/or video data being pushed to the streaming media server, so that good by the Streaming Media engine It is in compliance with the streaming media server and pulls local audio and/or video data.
A kind of specific implementation according to an embodiment of the present invention, described device further include: the second duration judgment module, the Two interrupt cue module, wherein the second duration judgment module, for judging whether the duration for continuing even wheat with welcome guest reaches predetermined Duration threshold value;Second interrupts cue module, if the time for continuing even wheat with welcome guest reaches scheduled duration threshold value, is connected Wheat interrupts prompt.
The third aspect, the embodiment of the present invention provide a kind of live broadcasting method, are applied to streaming media server, the live broadcasting method It include: to receive the direct broadcasting room that the first live streaming client is initiated to enter request;First live streaming client is spectator client;According to institute It states direct broadcasting room and enters request, by direct broadcasting room information push the first live streaming client, to show direct broadcasting room in the first live streaming client; It establishes and communicates to connect with the Streaming Media engine of the first live streaming client;Live content is provided, for the first live streaming client Streaming Media engine pull the live content and first live streaming client locally play out.
A kind of specific implementation according to an embodiment of the present invention, the offer live content, for first live streaming The Streaming Media engine of client pulls the live content and locally plays out in the first live streaming client, comprising: provides master Broadcast and/or the live content of welcome guest, for the Streaming Media engine of the first live streaming client pull the live content and First live streaming client locally plays out.
A kind of specific implementation according to an embodiment of the present invention is providing live content, for the first live streaming visitor The Streaming Media engine at family end pulls the live content and while the first live streaming client locally plays out, the method Further include: the attribute information of main broadcaster and/or welcome guest are provided, the Streaming Media engine that client is broadcast live for described first pulls described The attribute information of main broadcaster and/or welcome guest are simultaneously shown in the first live streaming client.
A kind of specific implementation according to an embodiment of the present invention is providing live content, for the first live streaming visitor The Streaming Media engine at family end pulls the live content and before the first live streaming client locally plays out, and the method is also It include: to establish to communicate to connect with the Streaming Media engine of the second live streaming client;Client is broadcast based on second main broadcaster's client;It receives The live content of second live streaming client push.
A kind of specific implementation according to an embodiment of the present invention is providing live content, for the first live streaming visitor The Streaming Media engine at family end pulls the live content and before the first live streaming client locally plays out, and the method is also It include: to establish to communicate to connect with the Streaming Media engine of third live streaming client;Third main broadcaster's client is welcome guest's client;It receives The live content of third live streaming client push.
A kind of specific implementation according to an embodiment of the present invention is providing live content, for the first live streaming visitor The Streaming Media engine at family end pulls the live content and after the first live streaming client locally plays out, and the method is also It include: to receive the live content of the first live streaming client push after the first live streaming client and main broadcaster or welcome guest Lian Mai success.
A kind of specific implementation according to an embodiment of the present invention, in the first live streaming client and main broadcaster or welcome guest Lian Maicheng After function, after the live content for receiving the first live streaming client push, the method also includes:
Judge that the first live streaming client and main broadcaster or welcome guest continue the duration of even wheat, if reach scheduled duration threshold value;If The time that first live streaming client and main broadcaster or welcome guest continue even wheat reaches scheduled duration threshold value, then to the first live streaming client hair The company of sending wheat interrupts prompting message.
Fourth aspect, the embodiment of the present invention provide a kind of live broadcast device, are applied to streaming media server, the live broadcast device It include: the second request receiving module, direct broadcasting room info push module, second communication module, live content offer module, wherein Second request receiving module enters request for receiving the direct broadcasting room that the first live streaming client is initiated;First main broadcaster's client is Spectator client;Direct broadcasting room information is pushed first for entering request according to the direct broadcasting room by direct broadcasting room info push module Client is broadcast live, to show direct broadcasting room in the first live streaming client;Second communication module, for the stream with the first live streaming client Media engine establishes communication connection;Live content provides module, for providing live content, for the first live streaming client Streaming Media engine pull the live content and first live streaming client locally play out.
A kind of specific implementation according to an embodiment of the present invention, the live content provide module, are specifically used for: providing The live content of main broadcaster and/or welcome guest, so that the Streaming Media engine of the first live streaming client pulls the live content simultaneously It is locally played out in the first live streaming client.
A kind of specific implementation according to an embodiment of the present invention, the live content provide module, are specifically also used to: mentioning For the attribute information of main broadcaster and/or welcome guest, for the Streaming Media engine of the first live streaming client pull the main broadcaster and/or The attribute information of welcome guest is simultaneously shown in the first live streaming client.
A kind of specific implementation according to an embodiment of the present invention, described device further include: third communication module, first is straight Broadcast content receiver module, wherein third communication module, for establishing communication link with the Streaming Media engine of the second live streaming client It connects;Client is broadcast based on second main broadcaster's client;First live content receiving module, for receiving the second live streaming client push Live content.
A kind of specific implementation according to an embodiment of the present invention, described device further include: fourth communication module, second is straight Broadcast content receiver module, wherein fourth communication module, for establishing communication link with the Streaming Media engine of third live streaming client It connects;Third main broadcaster's client is welcome guest's client;Second live content receiving module, for receiving third live streaming client push Live content.
A kind of specific implementation according to an embodiment of the present invention, described device further include: third live content receives mould Block is used for after the first live streaming client and main broadcaster or welcome guest Lian Mai success, receives first and be broadcast live in the live streaming of client push Hold.
A kind of specific implementation according to an embodiment of the present invention, described device further include: third duration judgment module, the Three interrupt cue module, wherein third duration judgment module, for judging that the first live streaming client continues to connect with main broadcaster or welcome guest The duration of wheat, if reach scheduled duration threshold value;Third interrupts cue module, if for the first live streaming client and main broadcaster or praising The time that guest continues even wheat reaches scheduled duration threshold value, then sends even wheat to the first live streaming client and interrupt prompting message.
5th aspect, the embodiment of the present invention provide a kind of electronic equipment, and the electronic equipment includes: shell, processor, deposits Reservoir, circuit board and power circuit, wherein circuit board is placed in the space interior that shell surrounds, processor and memory setting On circuit boards;Power circuit, for each circuit or the device power supply for above-mentioned electronic equipment;Memory is calculated for storing Machine program;Processor is by reading the computer program stored in memory, for executing described in aforementioned any implementation Method.
6th aspect, the embodiment of the present invention also provide computer readable storage medium, the computer readable storage medium It is stored with one or more program, one or more of programs can be executed by one or more processor, to realize Method described in aforementioned any implementation.
The present embodiment establishes Streaming Media engine and streaming media server by the way that client terminal start-up Streaming Media engine is broadcast live Communication connection, live streaming client can directly pull live content from streaming media server, and play out locally, Neng Gouti The real-time of high live content viewing.
Detailed description of the invention
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 technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the flow chart of live broadcasting method provided in an embodiment of the present invention;
Fig. 2 is the schematic diagram of net cast scheme;
Fig. 3 is live broadcast device structural schematic diagram provided in an embodiment of the present invention;
Fig. 4 is the flow chart of live broadcasting method provided in an embodiment of the present invention;
Fig. 5 is live broadcast device structural schematic diagram provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of electronic equipment one embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described in detail with reference to the accompanying drawing.
It will be appreciated that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Base Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts it is all its Its embodiment, shall fall within the protection scope of the present invention.
In a first aspect, the embodiment of the present invention provides a kind of live broadcasting method, it is applied to live streaming client, can be improved in live streaming Hold the real-time of viewing.
Fig. 1 is the flow chart of live broadcasting method provided in an embodiment of the present invention, is applied to live streaming client, as shown in Figure 1, this The method of embodiment may include:
Step 101, reception direct broadcasting room enter request.
In the present embodiment, when there is user to open live streaming client, occurs prompt on the interface of client and enter direct broadcasting room Information, such as " enter direct broadcasting room ", user clicks the prompt information, and request enters direct broadcasting room, thens follow the steps 102.
As an alternative embodiment, asking into direct broadcasting room also has been initiated to client simultaneously when user opens client It asks.
Step 102 enters request according to the direct broadcasting room, opens direct broadcasting room.
In the present embodiment, client is broadcast live, is connected into after the request of direct broadcasting room, opens direct broadcasting room.
Step 103, starting Streaming Media engine, so that Streaming Media engine and streaming media server are established and communicated to connect.
In the present embodiment, streaming media server is the core system of Stream Media Application, is that operator provides a user video The Key Platform of service.The major function of streaming media server is that streaming media content is acquired, caches, dispatching and transmission is broadcast It puts.
Streaming Media engine is that a variety of service functions has been concentrated to draw in multi-protocols, the business service of multimedia form of one It holds up, it can support to include WMV, REAL, MPEG, a variety of services such as FTP, HTTP.Using not on a variety of different terminal equipments Same media engine can guarantee the video content for smoothly playing a variety of different-formats.
Client terminal start-up Streaming Media engine is broadcast live, establishes Streaming Media engine and streaming media server and communicates to connect, i.e., in fact The communication connection of client and server-side is showed.
Step 104, by the Streaming Media engine, pull live content from the streaming media server, and local into Row plays.
In the present embodiment, is played out locally, refer to and played in client display interface.Pull live content refer to by Server has live content, according to protocol type, Streaming Media engine and streaming media server establish communicate to connect and receive sound, Video data.
In the present embodiment, live content can be pulled from streaming media server according to udp protocol, Streaming Media engine.
The present embodiment establishes Streaming Media engine and streaming media server by the way that client terminal start-up Streaming Media engine is broadcast live Communication connection, live streaming client can directly pull live content from streaming media server, and play out locally, Neng Gouti The real-time of high live content viewing, to solve the problems, such as that watching video live broadcast postpones.
In an embodiment of the present invention, described by the Streaming Media engine, live streaming is pulled from the streaming media server Content, and locally playing out (step 104), it may include:
By the Streaming Media engine, the live content of main broadcaster and/or welcome guest are pulled from the streaming media server, and Locally play out.
In the present embodiment, it is broadcast live on the direct broadcasting room display interface of client and shows main broadcaster's live content display window and welcome guest Live content display window, and main broadcaster's live content display window and welcome guest's live content display window can be dragged to directly Broadcast any position of a display interface, either window can perhaps be zoomed in or out or by either window close or It hides.
The present embodiment pulls the live content of main broadcaster and/or welcome guest from streaming media server by Streaming Media engine, draws The live content of the main broadcaster and/or welcome guest that take can be according to the wishes of live streaming client user to any live content display window Mouth is operated, and the operability to live streaming display interface is improved, to improve user experience.
In an embodiment of the present invention, described by the Streaming Media engine, live streaming is pulled from the streaming media server Content, and while locally playing out (step 104), it may also include that
By the Streaming Media engine, the attribute information of main broadcaster and/or welcome guest are pulled from the streaming media server, and will The attribute information is shown in live streaming client.
In the present embodiment, the attribute information of main broadcaster and/or welcome guest, including head portrait, registion time, occupation, speciality, place city The information such as city and this login online hours.It can show and lead in direct broadcasting room display interface while watching live content It broadcasts and/or the attribute information of welcome guest.
The present embodiment shows the attribute of main broadcaster and/or welcome guest in direct broadcasting room display interface while watching live content Information can be more convenient spectators and choose whether and main broadcaster and/or welcome guest Lian Mai or selection and who welcome guest Lian Mai, raising user Experience.
In an embodiment of the present invention, it by the Streaming Media engine, is pulled in live streaming from the streaming media server Hold, and after locally playing out (step 104), the method also includes:
Step 1041a, the company wheat of initiation and main broadcaster are requested;
In the present embodiment, Lian Mai refers to that or not the same place, it is logical to can be carried out video by network by two or several people Words or voice communication, concrete application scene such as show field are broadcast live, more main broadcaster's lines, and hand trip werewolf kills, online education etc., even Mai Chengwei The means of abundant application scenarios, any active ues.Client, which is broadcast live, to be initiated to request with the company wheat of main broadcaster to streaming media server.
Step 1042a, receive return connects wheat success message with main broadcaster;
In the present embodiment, streaming media server is requested the company wheat that client is initiated is broadcast live, and main broadcaster is sent to, when main broadcaster connects Connected wheat request by live streaming client, streaming media server is sent to live streaming client connects the successful message of wheat with main broadcaster.
In the present embodiment, main broadcaster can be from the company wheat request of multiple live streaming clients, receiving portion or all live streaming visitor The company wheat at family end is requested.
Step 1043a, by the Streaming Media engine, local audio and/or video data are pushed into the stream matchmaker Body server, so that main broadcaster pulls local audio and/or video data from the streaming media server.
In the present embodiment, local audio and/or video data are that sound, view are acquired by equipment such as microphone or cameras Frequency evidence, then by collected sound, video data encoding, streaming media server is pushed to according to udp protocol, main broadcaster can be from stream matchmaker The local audio and/or video is pulled in body server.
The local audio and/or video counts of client will be broadcast live by Streaming Media engine in the present embodiment, live streaming client According to the streaming media server is pushed to, after connecting wheat success with main broadcaster, main broadcaster can pull local from the streaming media server Audio and/or video data, Lian Mai and the local audio and/or video data of push are realized and are seamlessly connected, and user's body is improved It tests.
In an embodiment of the present invention, it as alternative embodiment, is initiating to receive and return with after the request of the company wheat of main broadcaster Connect wheat success message with main broadcaster before, the method also includes:
According to the priority for initiating to connect wheat request with main broadcaster, position of the even wheat request in even wheat waiting list is shown It sets, wherein the priority is determined according to the attribute information for the active user for watching the live content
In the present embodiment, the attribute information of user can be registration time length, this viewing video online hours, locating geographical position The information such as set.Priority can be such as judged according to online hours, the longer user of line duration, priority is higher, can put it into The more forward position of the company's of waiting wheat queue.Or priority judgement is carried out according to locating geographical location, the geographical location with main broadcaster Closer priority is higher, can put it into the more forward position of the company's of waiting wheat queue.
The present embodiment determines that user and main broadcaster connect the priority of wheat request according to the attribute information of active user, and shows In the position even in wheat waiting list, user can understand oneself position in waiting list and estimate for the even wheat request To the time, it can such as can choose in waiting time with the free time in waiting time and answer other people phone, with other People discusses issues etc., achievees the effect that user is made to efficiently use the time, improves user experience.
In an embodiment of the present invention, it by the Streaming Media engine, is pulled in live streaming from the streaming media server Hold, and after locally playing out (step 1043a), the method also includes:
Step 1044a, whether the duration that judgement and main broadcaster continue even wheat reaches scheduled duration threshold value;
In the present embodiment, scheduled duration threshold value can be 10 minutes, 30 minutes, 1 hour etc..
If the time for step 1045a, continuing even wheat with main broadcaster reaches scheduled duration threshold value, the company of progress wheat interrupts prompt.
In the present embodiment, reach scheduled duration threshold value when the time for continuing even wheat with main broadcaster, then the company of progress wheat interrupts prompt. Interrupting prompt information can be that middle disconnection wheat is interrupted prompt information i.e. by middle disconnection wheat or also in several seconds, tens seconds User can be prompted by popping up the modes such as prompt column or voice reminder.
The present embodiment reaches scheduled duration threshold value when the time for continuing even wheat with main broadcaster, prompts interrupting information, make connecting The user of wheat knows i.e. by middle disconnection wheat, while the user that other requests can be enable to connect wheat successfully connects wheat, and part is avoided to use The problem of family occupies Internet resources from beginning to end, and other users can not enjoy Internet resources improves user experience.
In an embodiment of the present invention, as alternative embodiment, client, which is broadcast live, to be initiated to signal server and master The company wheat request broadcast, signal server send the company wheat request of live streaming client to main broadcaster, and main broadcaster receives live streaming client and connects wheat Request, signal server is sent to live streaming client again connects the successful message of wheat with main broadcaster, and later, live streaming client passes through stream matchmaker Local audio and/or video data are pushed to streaming media server, so that main broadcaster pulls from streaming media server by body engine Local audio and/or video data.
In an embodiment of the present invention, it by the Streaming Media engine, is pulled in live streaming from the streaming media server Hold, and after locally playing out (step 104), the method also includes:
Step 1041b, the company wheat of initiation and welcome guest are requested;
In the present embodiment, the process of the company's of initiation wheat request is identical as step 1041a, and details are not described herein again.
Step 1042b, receive return with welcome guest's Lian Mai success message;
In the present embodiment, the process of the company's of reception wheat request is identical as step 1042a, and details are not described herein again.
Step 1043b, by the Streaming Media engine, local audio and/or video data are pushed into the stream matchmaker Body server, so that welcome guest pulls local audio and/or video data from the streaming media server.
In the present embodiment, the process of push is identical as step 1043a, and details are not described herein again.
The local audio and/or video counts of client will be broadcast live by Streaming Media engine in the present embodiment, live streaming client According to the streaming media server is pushed to, with after welcome guest Lian Mai success, welcome guest can pull local from the streaming media server Audio and/or video data, Lian Mai and the local audio and/or video data of push are realized and are seamlessly connected, and user's body is improved It tests.
In an embodiment of the present invention, by the Streaming Media engine, local audio and/or video data are pushed To the streaming media server, so that welcome guest pulls local audio and/or video data (step from the streaming media server After 1043b), the method also includes:
Step 1044b, whether the duration that judgement and welcome guest continue even wheat reaches scheduled duration threshold value;
In the present embodiment, scheduled duration threshold value can be 10 minutes, 30 minutes, 1 hour etc..
If the time that step 1045b continues even wheat with welcome guest reaches scheduled duration threshold value, the company of progress wheat interrupts prompt.
In the present embodiment, reach scheduled duration threshold value when the time for continuing even wheat with welcome guest, then the company of progress wheat interrupts prompt. Interrupting prompt information can be that middle disconnection wheat is interrupted prompt information i.e. by middle disconnection wheat or also in several seconds, tens seconds User can be prompted by popping up the modes such as prompt column or voice reminder.
The present embodiment reaches scheduled duration threshold value when the time for continuing even wheat with welcome guest, prompts interrupting information, make connecting The user of wheat knows i.e. by middle disconnection wheat, while the user that other requests can be enable to connect wheat successfully connects wheat, and part is avoided to use The problem of family occupies Internet resources from beginning to end, and other users can not enjoy Internet resources improves user experience.
In an embodiment of the present invention, as alternative embodiment, client, which is broadcast live, to be initiated and praise to signal server The company wheat of guest is requested, and signal server sends the company wheat request of live streaming client to welcome guest, and welcome guest receives live streaming client and connects wheat Request, signal server is sent to live streaming client again later, will by Streaming Media engine with the successful message of welcome guest Lian Mai Local audio and/or video data pushes to streaming media server, so that welcome guest pulls local sound from streaming media server Frequency and/or video data.
A specific embodiment is used below, and live broadcasting method shown in FIG. 1 is described in detail.
Fig. 2 is the schematic diagram of net cast scheme, has main broadcaster's customer end A, welcome guest's customer end B, C, spectator client D in figure And E, and different media engines is used in above-mentioned client, guarantee the video content for smoothly playing a variety of different-formats.
The process that spectator client D, E watch live content is as follows:
Spectator client D, E receive direct broadcasting room and enter request, and open direct broadcasting room, and direct broadcasting room shows access into direct broadcasting room Prompt information;
Click to enter direct broadcasting room;
Spectator client D, E start Streaming Media engine, establish Streaming Media engine and streaming media server and communicate to connect;
Spectator client D, E use udp protocol, from streaming media server pull main broadcaster's customer end A, welcome guest's customer end B and The live content of welcome guest's client C, spectator client D, E are in locally viewing main broadcaster's customer end A, welcome guest's customer end B and welcome guest visitor The live content of family end C, and it can be seen that city locating for main broadcaster's customer end A is Wuhan, occupation is tour guide, welcome guest's customer end B institute Place city is that also city locating for doctor and welcome guest's client C is the occupational information in Dalian, occupation is secretary for Shangqiu, position.
While watching live content, spectator client can will show the live content three of main broadcaster A, welcome guest B and welcome guest C A display window is placed on any position of spectator client live streaming display interface, such as shows the live content of main broadcaster's customer end A Window is placed on the upper left corner of spectator client live streaming display interface, and operation, the live streaming of welcome guest's customer end B, C are amplified to it Content display window is individually placed to the lower left corner and the lower right corner of spectator client live streaming display interface, and carries out diminution behaviour to it Make.
After spectator client D, E have viewed a few minutes live content, the company of participation wheat and propelling data, detailed process is such as Under:
Spectator client D, E want to know about the information of tourism aspect, and then spectator client D, E is to streaming media server It initiates to request with the company wheat of main broadcaster's customer end A;
Streaming media server will even wheat request, and be sent to main broadcaster's customer end A;
Main broadcaster's customer end A agrees to the company wheat request of spectator client D, and refuses the company wheat request of spectator client E;
Company's wheat solicited message of the request of company wheat and refusal spectator client E that will have agreed to spectator client D returns to stream matchmaker Body server;
Streaming media server sends the even successful information of wheat to spectator client D, at this point, spectator client D can pass through stream Media engine will use the collected realaudio data of camera and video data to push to streaming media server;
Reach 30 minutes when spectator client D connects the wheat duration, " middle disconnection after 10 seconds occurs in live streaming display interface The prompt information of wheat " simultaneously terminates even wheat after 10 seconds.
Main broadcaster's customer end A pulls the live content that client D is pushed from streaming media server using udp protocol.
Second aspect, the embodiment of the present invention provide a kind of live broadcast device, are applied to live streaming client, can be improved in live streaming Hold the real-time of viewing.
Fig. 3 is live broadcast device structural schematic diagram provided in an embodiment of the present invention, is applied to live streaming client, as shown in figure 3, The live broadcast device of the present embodiment may include: the first request receiving module 11, direct broadcasting room opening module 12, first communication module 13 and playing module 14;Wherein,
First request receiving module 11 enters request for receiving direct broadcasting room;
Direct broadcasting room opens module 12, for entering request according to the direct broadcasting room, opens direct broadcasting room;
First communication module 13, for starting Streaming Media engine, so that Streaming Media engine and streaming media server are established and led to Letter connection;
Playing module 14 pulls live content from the streaming media server for by the Streaming Media engine, and Locally play out.
The device of the present embodiment can be used for executing the technical solution of embodiment of the method shown in Fig. 1, realization principle and skill Art effect is similar, and details are not described herein again.
In an embodiment of the present invention, the playing module 14, is specifically used for: by the Streaming Media engine, from described Streaming media server pulls the live content of main broadcaster and/or welcome guest, and plays out locally.
In an embodiment of the present invention, the playing module 14, is specifically also used to: by the Streaming Media engine, from institute The attribute information that streaming media server pulls main broadcaster and/or welcome guest is stated, and the attribute information is shown in live streaming client.
In an embodiment of the present invention, described device further include: first, which connects wheat, requests initiation module 141a, and the first company wheat disappears Cease receiving module 142a, the first plug-flow module 143a, wherein
First, which connects wheat, requests initiation module 141a, requests for initiating with the company wheat of main broadcaster;
First connect wheat message reception module 142a, for receives return connect wheat success message with main broadcaster;
First plug-flow module 143a, for by the Streaming Media engine, local audio and/or video data to be pushed To the streaming media server, so that main broadcaster pulls local audio and/or video data from the streaming media server.
In an embodiment of the present invention, described device further include: described device further include: the first duration judgment module 144a, first interrupts cue module 145a, wherein
First duration judgment module 144a, for judging whether the duration for continuing even wheat with main broadcaster reaches scheduled duration threshold Value;
First interrupts cue module 145a, if the time for continuing even wheat with main broadcaster reaches scheduled duration threshold value, into Even wheat interrupts prompt to row.
In an embodiment of the present invention, described device further include: second, which connects wheat, requests initiation module 141b, and the second company wheat disappears Cease receiving module 142b, the second plug-flow module 143b, wherein
Second, which connects wheat, requests initiation module 141b, requests for initiating with the company wheat of welcome guest;
Second connect wheat message reception module 142b, for receives return with welcome guest's Lian Mai success message;
Second plug-flow module 143b, for by the Streaming Media engine, local audio and/or video data to be pushed To the streaming media server, so that welcome guest pulls local audio and/or video data from the streaming media server.
In an embodiment of the present invention, described device further include: the second duration judgment module 144b, second interrupts prompt mould Block 145b, wherein
Second duration judgment module 144b, for judging whether the duration for continuing even wheat with welcome guest reaches scheduled duration threshold Value;
Second interrupts cue module 145b, if the time for continuing even wheat with welcome guest reaches scheduled duration threshold value, into Even wheat interrupts prompt to row.
The third aspect, the embodiment of the present invention provide another live broadcasting method, are applied to streaming media server, can be improved straight Broadcast the real-time of content viewing.
Fig. 4 is the flow chart of live broadcasting method provided in an embodiment of the present invention, is applied to streaming media server, as shown in figure 4, The live broadcasting method of the present embodiment may include:
Step 201, the direct broadcasting room for receiving the first live streaming client initiation enter request;First live streaming client is spectators visitor Family end.
In the present embodiment, when user's opening spectator client, direct broadcasting room is sent to streaming media server and enters request, flows matchmaker Body server receives the direct broadcasting room that spectator client is initiated and enters request.
Step 202 enters request according to the direct broadcasting room, by direct broadcasting room information push the first live streaming client, the Client is broadcast always shows direct broadcasting room.
In the present embodiment, direct broadcasting room information can include: main broadcaster's title, the information such as attendance.Streaming media server according to Direct broadcasting room enters request, searches for corresponding direct broadcasting room information, and the information of direct broadcasting room is pushed to the first live streaming by streaming media server Client.
Step 203, the Streaming Media engine foundation communication connection with the first live streaming client.
In the present embodiment, streaming media server is the core system of Stream Media Application, is that operator provides a user video The Key Platform of service.The major function of streaming media server is that streaming media content is acquired, caches, dispatching and transmission is broadcast It puts.
Streaming Media engine is that a variety of service functions has been concentrated to draw in multi-protocols, the business service of multimedia form of one It holds up, it can support to include WMV, REAL, MPEG, a variety of services such as FTP, HTTP.Using not on a variety of different terminal equipments Same media engine can guarantee the video content for smoothly playing a variety of different-formats.
Streaming media server and first live streaming client Streaming Media engine establish communicate to connect, that is, realize client with The information that request enters direct broadcasting room is sent to streaming media server by the communication connection of server-side, client.
Step 204 provides live content, so that the Streaming Media engine of the first live streaming client pulls in the live streaming Hold and is locally played out in the first live streaming client.
In the present embodiment, is locally played out in the first live streaming client, refer to the display in the first live streaming client It is played in interface.
Streaming media server enters the information of direct broadcasting room according to request, searches for corresponding direct broadcasting room content, the first live streaming visitor The Streaming Media engine at family end pulls the live content of streaming media server offer and locally plays out in the first live streaming client.
In the present embodiment, live content can be pulled from streaming media server according to udp protocol, Streaming Media engine.
The present embodiment, streaming media server receives the request into direct broadcasting room at spectator client end, and is broadcast live with first The Streaming Media engine of client establishes communication connection, and streaming media server provides live content, for the stream of the first live streaming client Media engine is pulled and is locally played out in the first live streaming client, can be improved the real-time of live content viewing, with solution The problem of certainly watching video live broadcast postpones.
In an embodiment of the present invention, the offer live content, so that the Streaming Media of the first live streaming client draws It holds up and pulls the live content and locally play out (step 204) in the first live streaming client, comprising:
The live content of main broadcaster and/or welcome guest are provided, so that the Streaming Media engine of the first live streaming client pulls institute It states live content and is locally played out in the first live streaming client.
In the present embodiment, show that the main broadcaster's live content pulled is shown on the direct broadcasting room display interface of the first live streaming client Window and/or welcome guest's live content display window, and main broadcaster's live content display window and welcome guest's live content can be shown Show that window is dragged to any position of direct broadcasting room display interface, perhaps either window can be zoomed in or out or be incited somebody to action Either window is closed or is hidden.
The present embodiment pulls the live content of main broadcaster and/or welcome guest from streaming media server by Streaming Media engine, draws The live content of the main broadcaster and/or welcome guest that take can be according to the wishes of live streaming client user to any live content display window Mouth is operated, and the operability to live streaming display interface is improved, to improve user experience.
In an embodiment of the present invention, live content is being provided, for the Streaming Media engine of the first live streaming client Pull the live content and first live streaming client locally play out while, the method also includes:
The attribute information of main broadcaster and/or welcome guest are provided, so that the Streaming Media engine of the first live streaming client pulls institute It states the attribute information of main broadcaster and/or welcome guest and is shown in the first live streaming client.
In the present embodiment, the attribute information of main broadcaster and/or welcome guest, including head portrait, registion time, occupation, speciality, place city The information such as city and this login online hours.It can show and lead in direct broadcasting room display interface while watching live content It broadcasts and/or the attribute information of welcome guest.
The present embodiment shows the attribute of main broadcaster and/or welcome guest in direct broadcasting room display interface while watching live content Information can be more convenient spectators and choose whether and main broadcaster and/or welcome guest Lian Mai or selection and who welcome guest Lian Mai, raising user Experience.
In an embodiment of the present invention, live content is being provided, for the Streaming Media engine of the first live streaming client Pull the live content and first live streaming client locally play out (step 204) before, the method also includes:
Step 2041a, it establishes and communicates to connect with the Streaming Media engine of the second live streaming client;Based on second main broadcaster's client Broadcast client;
In the present embodiment, the Streaming Media engine of streaming media server and main broadcaster's client, which is established, to be communicated to connect, that is, is realized The communication connection of main broadcaster's client and streaming media server.
Step 2042a, the live content of the second live streaming client push is received.
In the present embodiment, the second live streaming client acquires sound, video data by equipment such as microphone or cameras, then will Collected sound, video data encoding push to streaming media server according to udp protocol.
The present embodiment, streaming media server are communicated with the first live streaming client, the second live streaming client foundation respectively, can be connect It receives the live content of the second live streaming client push and live content is pushed to the first live streaming client.In this way, realizing The live content for broadcasting client synchronization viewing the second live streaming client always, can be improved the real-time of live content viewing, with Solve the problems, such as that watching video live broadcast postpones.
In an embodiment of the present invention, live content is being provided, for the Streaming Media engine of the first live streaming client Pull the live content and first live streaming client locally play out (step 204) before, the method also includes:
Step 2041b, it establishes and communicates to connect with the Streaming Media engine of third live streaming client;Third main broadcaster's client is good Guest's client;
In the present embodiment, the Streaming Media engine of streaming media server and welcome guest's client, which is established, to be communicated to connect, that is, is realized The communication connection of welcome guest's client and streaming media server.
Step 2042b, the live content of third live streaming client push is received.
In the present embodiment, third is broadcast live client and acquires sound, video data by equipment such as microphone or cameras, then will Collected sound, video data encoding push to streaming media server according to udp protocol.
The present embodiment, streaming media server are communicated with the first live streaming client, third live streaming client foundation respectively, can be connect It receives the live content of third live streaming client push and live content is pushed to the first live streaming client.In this way, realizing The live content for broadcasting client synchronization viewing third live streaming client always, can be improved the real-time of live content viewing, with Solve the problems, such as that watching video live broadcast postpones.
In an embodiment of the present invention, as alternative embodiment, live content is being provided, for the first live streaming client The Streaming Media engine at end pulls the live content and after the first live streaming client locally plays out (step 204), institute State method further include:
Step 205a, requesting with the company wheat of main broadcaster or welcome guest for the first live streaming client initiation is received;
In the present embodiment, what streaming media server received that the first live streaming client initiates asks with the company wheat of main broadcaster or welcome guest It asks.
As an alternative embodiment, can also also be initiated and main broadcaster or welcome guest to signal server for the first live streaming client Company wheat request.
Step 206a, according to the attribute information of the user of the first live streaming client, the company's of determination wheat priority;
In the present embodiment, the attribute information of user can be registration time length, this viewing video online hours, locating geographical position The information such as set.Even wheat priority is determined according to the attribute information of the user of the first live streaming client, such as can be according to the first live streaming visitor User's online hours at family end judge priority, and the User Priority of the first longer live streaming client of line duration is higher. Or the geographical location according to locating for the user of the first live streaming client carries out priority judgement, it is closer with the geographical location of main broadcaster Priority is higher.
Step 207a, according to the even wheat priority, the company's of determination wheat holding fix;
In the present embodiment, the priority of the user of the first live streaming client is higher, gets in the position of the company's of waiting wheat queue It is forward.
Step 208a, according to the even wheat holding fix, the even wheat request is put into the correspondence in the wheat queue of the company of waiting Position.
In the present embodiment, the user of the first high live streaming client of priority is put into more forward in the wheat queue of the company of waiting Position.
The present embodiment determines the priority that user and main broadcaster or welcome guest Lian Mai are requested according to the attribute information of active user, And the even wheat request is shown in the position even in wheat waiting list, user can understand oneself position in waiting list simultaneously The waiting time is estimated, can such as can choose in waiting time with the free time in waiting time and answer other people phone, It is discussed issues etc. with other people, achievees the effect that user is made to efficiently use the time, improve user experience.
In an embodiment of the present invention, live content is being provided, for the Streaming Media engine of the first live streaming client Pull the live content and first live streaming client locally play out (step 204) after, the method also includes:
Step 205, first live streaming client and main broadcaster or welcome guest Lian Mai success after, receive first be broadcast live client push Live content.
In the present embodiment, the first live streaming client is initiated to request with the company wheat of main broadcaster or welcome guest, and streaming media server receives Even wheat request, and send the request to main broadcaster and end or welcome guest's live streaming end is broadcast live, when main broadcaster live streaming end or welcome guest are broadcast live end and agree to Even wheat is requested and the request of the company of will have agreed to wheat is sent to streaming media server, and the message that streaming media server will have agreed to even wheat is sent to First live streaming client, at this point, the first live streaming client can push live content to streaming media server.
In an embodiment of the present invention, as alternative embodiment, the first live streaming client can also be initiated to signal server It is requested with the company wheat of main broadcaster or welcome guest, signal server is requested to the company wheat of the transmission live streaming client of main broadcaster or welcome guest, main broadcaster Or the receiving live streaming client of welcome guest connects wheat request, signal server sends the company wheat with main broadcaster or welcome guest to live streaming client again Local audio and/or video data by Streaming Media engine, are pushed to streaming media server later by successful message, with The slave streaming media server of main broadcaster or welcome guest is set to pull local audio and/or video data.
The present embodiment is established by streaming media server and Streaming Media engine and is communicated to connect, the stream of the first live streaming client Media engine pulls the live content and locally plays out in the first live streaming client, as the first live streaming client and main broadcaster Or welcome guest Lian Mai success, streaming media server receive the live content of the first live streaming client push.In this way, Lian Mai and push are originally The audio and/or video data on ground realize seamless connection, improve user experience.
In an embodiment of the present invention, after the first live streaming client and main broadcaster or welcome guest Lian Mai success, it is straight to receive first After broadcasting the live content of client push, the method also includes:
Step 206 judges that the first live streaming client and main broadcaster or welcome guest continue the duration of even wheat, if reaches scheduled duration Threshold value;
In the present embodiment, scheduled duration threshold value can be 10 minutes, 30 minutes, 1 hour etc..
If the time that step 207, the first live streaming client and main broadcaster or welcome guest continue even wheat reaches scheduled duration threshold value, Even wheat, which is sent, to the first live streaming client interrupts prompting message.
In the present embodiment, reaches scheduled duration threshold value when the time for continuing even wheat with main broadcaster or welcome guest, then carry out Lian Maizhong Disconnected prompt.Interrupting prompt information can be for i.e. by middle disconnection wheat or there are also being by middle disconnection wheat in several seconds, tens seconds, interruption is mentioned Show that information can prompt user by popping up the modes such as prompt column or voice reminder.
The present embodiment reaches scheduled duration threshold value when the time for continuing even wheat with main broadcaster or welcome guest, prompts interrupting information, make The user for connecting wheat knows i.e. by middle disconnection wheat, while the user that other requests can be enable to connect wheat successfully connects wheat, avoids The problem of certain customers occupy Internet resources from beginning to end, and other users can not enjoy Internet resources improves user experience.
A specific embodiment is used below, and live broadcasting method shown in Fig. 4 is described in detail.
Still live broadcasting method is described in detail by taking net cast architecture diagram shown in Fig. 2 as an example.
The process that spectator client D watches live content is as follows:
Streaming media server receives the direct broadcasting room that spectator client D is initiated and enters request, and the information of direct broadcasting room is pushed to Spectator client, the information of direct broadcasting room include main broadcaster's title, viewing number.
Streaming media server and Streaming Media engine, which are established, to be communicated to connect;
Streaming media server is established with the Streaming Media engine of main broadcaster's customer end A and welcome guest's customer end B communicate to connect respectively, main It broadcasts customer end A and welcome guest's customer end B and pushes respective live content to streaming media server respectively using udp protocol;
Streaming media server enters request according to direct broadcasting room, searches for corresponding stream title, and spectator client D is assisted using UDP View pulls the live content of the corresponding main broadcaster A of stream title, welcome guest B and welcome guest C from streaming media server, and in spectator client It plays out, while showing that city locating for main broadcaster's customer end A is Wuhan, occupation is tour guide, city locating for welcome guest's customer end B is quotient Also city locating for doctor and welcome guest's client C is the occupational information in Dalian, occupation is the attribute informations such as secretary for mound, position;
After spectator client D has viewed a few minutes live content, the company of participation wheat and propelling data, streaming media server Specific work process it is as follows:
Spectator client D is interested in travelling, and initiates to request with the company wheat of main broadcaster's customer end A to streaming media server;
Streaming media server will even wheat request, and be sent to main broadcaster's customer end A, when main broadcaster's customer end A agrees to spectator client D The request of company wheat, the information of the company of will have agreed to wheat returns to streaming media server;
Streaming media server sends the even successful information of wheat to spectator client D, at this point, streaming media server receives spectators The realaudio data and video data of client D push.
Reach 30 minutes when spectator client D connects the wheat duration, streaming media server sends " 10 to spectator client D The prompt information of middle disconnection wheat after second ".
Fourth aspect, the embodiment of the present invention provide another live broadcast device, are applied to streaming media server, can be improved straight Broadcast the real-time of content viewing.
Fig. 5 is live broadcast device structural schematic diagram provided in an embodiment of the present invention, is applied to streaming media server, such as Fig. 5 institute Show, the live broadcast device of the present embodiment may include: that the second request receiving module 21, direct broadcasting room info push module 22, second are logical Believe that module 23 and live content provide module 24;Wherein,
Second request receiving module 21 enters request for receiving the direct broadcasting room that the first live streaming client is initiated;First is main Broadcasting client is spectator client;
Direct broadcasting room information is pushed first for entering request according to the direct broadcasting room by direct broadcasting room info push module 22 Client is broadcast live, to show direct broadcasting room in the first live streaming client;
Second communication module 23 is communicated to connect for establishing with the Streaming Media engine of the first live streaming client;
Live content provides module 24, for providing live content, so that the Streaming Media of the first live streaming client draws It holds up and pulls the live content and locally played out in the first live streaming client.
The device of the present embodiment can be used for executing the technical solution of embodiment of the method shown in Fig. 4, realization principle and skill Art effect is similar, and details are not described herein again.
In an embodiment of the present invention, the live content provides module 24, is specifically used for:
The live content of main broadcaster and/or welcome guest are provided, so that the Streaming Media engine of the first live streaming client pulls institute It states live content and is locally played out in the first live streaming client.
In an embodiment of the present invention, the live content provides module 24, is specifically also used to: providing main broadcaster and/or praises The attribute information of guest, so that the Streaming Media engine of the first live streaming client pulls the attribute letter of the main broadcaster and/or welcome guest It ceases and is shown in the first live streaming client.
In an embodiment of the present invention, described device further include: third communication module 241a, the first live content receive mould Block 242a, wherein
Third communication module 241a is communicated to connect for establishing with the Streaming Media engine of the second live streaming client;Second is main It broadcasts and broadcasts client based on client;
First live content receiving module 242a, for receiving the live content of the second live streaming client push.
In an embodiment of the present invention, described device further include:
Fourth communication module 241b is communicated to connect for establishing with the Streaming Media engine of third live streaming client;Third master Broadcasting client is welcome guest's client;
Second live content receiving module 242b, for receiving the live content of third live streaming client push.
In an embodiment of the present invention, described device further include:
Third live content receiving module 241c is used for after the first live streaming client and main broadcaster or welcome guest Lian Mai success, Receive the live content of the first live streaming client push.
In an embodiment of the present invention, described device further include: third duration judgment module 242c, third interrupt prompt mould Block 243c, wherein
Third duration judgment module 242c, for judge the first live streaming client and main broadcaster or welcome guest continue even wheat when It is long, if to reach scheduled duration threshold value;
Third interrupts cue module 243c, if the time for the first live streaming client to continue even wheat with main broadcaster or welcome guest reaches To scheduled duration threshold value, then even wheat is sent to the first live streaming client and interrupt prompting message.
5th aspect, the embodiment of the present invention also provide a kind of electronic equipment, and Fig. 6 is electronic equipment one embodiment of the present invention Structural schematic diagram, the process of Fig. 1 of the present invention, 4 illustrated embodiments may be implemented, as shown in fig. 6, above-mentioned electronic equipment can wrap It includes: shell 41, processor 42, memory 43, circuit board 44 and power circuit 45, wherein circuit board 44 is placed in shell 41 and encloses At space interior, processor 42 and memory 43 are arranged on circuit board 44;Power circuit 45, for being above-mentioned electronic equipment Each circuit or device power supply;Memory 43 is for storing computer program;Processor 42 is deposited by reading in memory 43 The computer program of storage, for executing method described in aforementioned any embodiment.
Processor 42 is to the specific implementation procedures of above-mentioned steps and processor 42 by operation computer program come into one The step of step executes, may refer to the description of embodiment illustrated in fig. 1 of the present invention, details are not described herein.
The electronic equipment exists in a variety of forms, including but not limited to:
(1) mobile communication equipment: the characteristics of this kind of equipment is that have mobile communication function, and to provide speech, data Communication is main target.This Terminal Type includes: smart phone (such as iPhone), multimedia handset, functional mobile phone and low Hold mobile phone etc..
(2) super mobile personal computer equipment: this kind of equipment belongs to the scope of personal computer, there is calculating and processing function Can, generally also have mobile Internet access characteristic.This Terminal Type includes: PDA, MID and UMPC equipment etc., such as iPad.
(3) server: providing the equipment of the service of calculating, and the composition of server includes that processor, hard disk, memory, system are total Line etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, in processing energy Power, stability, reliability, safety, scalability, manageability etc. are more demanding.
(4) other electronic equipments with data interaction function.
6th aspect, the embodiment of the present invention also provide computer readable storage medium, the computer-readable storage medium Matter is stored with one or more program, and one or more of programs can be executed by one or more processor, with reality Method described in existing aforementioned any implementation.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that process, device, article or equipment including a series of elements are not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, device, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, device, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.
For Installation practice, since it is substantially similar to Installation practice, so the comparison of description is simple Single, related place illustrates referring to the part of Installation practice.
For convenience of description, description apparatus above is to be divided into various units/modules with function to describe respectively.Certainly, exist Implement to realize each unit/module function in the same or multiple software and or hardware when the present invention.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment device, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each device.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (RandomAccess Memory, RAM) etc..
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by those familiar with the art, all answers It is included within the scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (10)

1. a kind of live broadcasting method, which is characterized in that be applied to live streaming client, the live broadcasting method includes:
It receives direct broadcasting room and enters request;
Enter request according to the direct broadcasting room, opens direct broadcasting room;
Start Streaming Media engine, so that Streaming Media engine and streaming media server are established and communicated to connect;
By the Streaming Media engine, live content is pulled from the streaming media server, and play out locally.
2. live broadcasting method according to claim 1, which is characterized in that it is described by the Streaming Media engine, from the stream Media server pulls live content, and plays out locally, comprising:
By the Streaming Media engine, the live content of main broadcaster and/or welcome guest are pulled from the streaming media server, and in local It plays out.
3. live broadcasting method according to claim 1, which is characterized in that passing through the Streaming Media engine, from the stream matchmaker Body server pull live content, and while locally playing out, the method also includes:
By the Streaming Media engine, the attribute information of main broadcaster and/or welcome guest are pulled from the streaming media server, and will be described Attribute information is shown in live streaming client.
4. live broadcasting method according to claim 1, which is characterized in that passing through the Streaming Media engine, from the stream matchmaker Body server pull live content, and after locally playing out, the method also includes:
It initiates to request with the company wheat of main broadcaster;
Receive return connects wheat success message with main broadcaster;
By the Streaming Media engine, local audio and/or video data are pushed into the streaming media server, so that main It broadcasts and pulls local audio and/or video data from the streaming media server.
5. live broadcasting method according to claim 4, which is characterized in that passing through the Streaming Media engine, by local sound Frequency and/or video data push to the streaming media server, so that main broadcaster pulls local sound from the streaming media server After frequency and/or video data, the method also includes:
Whether the duration that judgement continues even wheat with main broadcaster reaches scheduled duration threshold value;
If the time for continuing even wheat with main broadcaster reaches scheduled duration threshold value, the company of progress wheat interrupts prompt.
6. live broadcasting method according to claim 1, which is characterized in that passing through the Streaming Media engine, from the stream matchmaker Body server pull live content, and after locally playing out, the method also includes:
It initiates to request with the company wheat of welcome guest;
Receive return with welcome guest's Lian Mai success message;
By the Streaming Media engine, local audio and/or video data are pushed into the streaming media server, so that good It is in compliance with the streaming media server and pulls local audio and/or video data.
7. live broadcasting method according to claim 6, which is characterized in that passing through the Streaming Media engine, by local sound Frequency and/or video data push to the streaming media server, so that welcome guest pulls local sound from the streaming media server After frequency and/or video data, the method also includes:
Whether the duration that judgement continues even wheat with welcome guest reaches scheduled duration threshold value;
If the time for continuing even wheat with welcome guest reaches scheduled duration threshold value, the company of progress wheat interrupts prompt.
8. a kind of live broadcasting method, which is characterized in that be applied to streaming media server, the live broadcasting method includes:
It receives the direct broadcasting room that the first live streaming client is initiated and enters request;First live streaming client is spectator client;
Enter request according to the direct broadcasting room, by direct broadcasting room information push the first live streaming client, client is broadcast live first Show direct broadcasting room;
It establishes and communicates to connect with the Streaming Media engine of the first live streaming client;
Live content is provided, for the Streaming Media engine of the first live streaming client pull the live content and first it is straight Client is broadcast locally to play out.
9. live broadcasting method according to claim 8, which is characterized in that the offer live content, directly for described first The Streaming Media engine for broadcasting client pulls the live content and locally plays out in the first live streaming client, comprising:
The live content of main broadcaster and/or welcome guest are provided, the Streaming Media engine that client is broadcast live for described first pulls described straight It broadcasts content and is locally played out in the first live streaming client.
10. live broadcasting method according to claim 8, which is characterized in that live content is being provided, for first live streaming The Streaming Media engine of client pulls the live content and while the first live streaming client locally plays out, the side Method further include:
The attribute information of main broadcaster and/or welcome guest are provided, so that the Streaming Media engine of the first live streaming client pulls the master Broadcast and/or the attribute information of welcome guest and first live streaming client show.
CN201811653428.0A 2018-12-29 2018-12-29 Live broadcast method and device, electronic equipment and readable storage medium Active CN109698963B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811653428.0A CN109698963B (en) 2018-12-29 2018-12-29 Live broadcast method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811653428.0A CN109698963B (en) 2018-12-29 2018-12-29 Live broadcast method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN109698963A true CN109698963A (en) 2019-04-30
CN109698963B CN109698963B (en) 2021-11-26

Family

ID=66232488

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811653428.0A Active CN109698963B (en) 2018-12-29 2018-12-29 Live broadcast method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN109698963B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110213603A (en) * 2019-05-22 2019-09-06 腾讯科技(深圳)有限公司 A kind of live stream transmission method, device, server, system and storage medium
CN111277851A (en) * 2020-02-13 2020-06-12 北京达佳互联信息技术有限公司 Live broadcast method, device, equipment and computer readable storage medium
CN111601148A (en) * 2020-05-29 2020-08-28 广州酷狗计算机科技有限公司 Information display method, device, terminal and storage medium
CN111866440A (en) * 2020-07-29 2020-10-30 全时云商务服务股份有限公司 Method, device and equipment for pushing video data and storage medium
CN115086698A (en) * 2022-06-10 2022-09-20 广州方硅信息技术有限公司 Method and device for controlling object interaction in live broadcast room and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107027048A (en) * 2017-05-17 2017-08-08 广州市千钧网络科技有限公司 A kind of live even wheat and the method and device of information displaying
CN107342978A (en) * 2017-05-27 2017-11-10 广州市百果园信息技术有限公司 Direct broadcasting room connects wheat control method, device and corresponding terminal device
CN108449614A (en) * 2018-03-14 2018-08-24 广东亿迅科技有限公司 Live streaming based on visitor's behavior connects wheat method and device
CN108600778A (en) * 2018-05-07 2018-09-28 广州酷狗计算机科技有限公司 Media stream sending method and device
KR20180106424A (en) * 2017-03-20 2018-10-01 (주)터보소프트 System and method for valuating biological resource

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20180106424A (en) * 2017-03-20 2018-10-01 (주)터보소프트 System and method for valuating biological resource
CN107027048A (en) * 2017-05-17 2017-08-08 广州市千钧网络科技有限公司 A kind of live even wheat and the method and device of information displaying
CN107342978A (en) * 2017-05-27 2017-11-10 广州市百果园信息技术有限公司 Direct broadcasting room connects wheat control method, device and corresponding terminal device
CN108449614A (en) * 2018-03-14 2018-08-24 广东亿迅科技有限公司 Live streaming based on visitor's behavior connects wheat method and device
CN108600778A (en) * 2018-05-07 2018-09-28 广州酷狗计算机科技有限公司 Media stream sending method and device

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
张毅: "新疆电力"95598"坐席功能的完善", 《2017电力行业信息化年会论文集》 *
老头慢慢飞: "视频直播中用户连麦技术模型与特点分析", 《HTTP://WWW.MAMICODE.COM/INFO-DETAIL-1415118.HTML》 *
郭广路: "基于多播的大规模流媒体直播技术研究", 《硕士论文库》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110213603A (en) * 2019-05-22 2019-09-06 腾讯科技(深圳)有限公司 A kind of live stream transmission method, device, server, system and storage medium
CN110213603B (en) * 2019-05-22 2021-12-28 腾讯科技(深圳)有限公司 Live streaming transmission method, device, server, system and storage medium
CN111277851A (en) * 2020-02-13 2020-06-12 北京达佳互联信息技术有限公司 Live broadcast method, device, equipment and computer readable storage medium
CN111601148A (en) * 2020-05-29 2020-08-28 广州酷狗计算机科技有限公司 Information display method, device, terminal and storage medium
CN111601148B (en) * 2020-05-29 2022-02-22 广州酷狗计算机科技有限公司 Information display method, device, terminal and storage medium
CN111866440A (en) * 2020-07-29 2020-10-30 全时云商务服务股份有限公司 Method, device and equipment for pushing video data and storage medium
CN111866440B (en) * 2020-07-29 2021-03-09 全时云商务服务股份有限公司 Method, device and equipment for pushing video data and storage medium
CN115086698A (en) * 2022-06-10 2022-09-20 广州方硅信息技术有限公司 Method and device for controlling object interaction in live broadcast room and electronic equipment

Also Published As

Publication number Publication date
CN109698963B (en) 2021-11-26

Similar Documents

Publication Publication Date Title
CN109698963A (en) A kind of live broadcasting method, device, electronic equipment and readable storage medium storing program for executing
US11376511B2 (en) Interactive gaming via mobile playmaker
CN104869467B (en) Information output method, device and system in media play
US20230067099A1 (en) Method and server for performing game battle in live broadcast room, and storage medium
CN110910860B (en) Online KTV implementation method and device, electronic equipment and storage medium
CN109889908A (en) A kind of interaction live broadcasting method, device, electronic equipment and storage medium
CN101127875A (en) An audience interaction method for broadcasting video stream media program
CN110225412B (en) Video interaction method, device and storage medium
JP2008289893A (en) System and method for application management through threshold events
CN108111500B (en) Method and server for debate competition on network live broadcast platform
CN109195003B (en) Interaction method, system, terminal and device for playing game based on live broadcast
CN112672179B (en) Method, device and equipment for live game
US20030163339A1 (en) Process of accessing live activities and events through internet
CN112055227B (en) Cloud game interaction method, system, device, storage medium and electronic equipment
KR20120007763A (en) Method and system for servicing relay broadcast for athletics
KR20100017620A (en) Method and system for enabling generation of a summary of a data stream
CN114979545A (en) Multi-terminal call method, storage medium and electronic device
CN112954380B (en) Video playing processing method and device
JP2024519375A (en) Audio reproduction method, audio transmission method, device, electronic device, and program
CN116132699A (en) Live interaction method, computer equipment and storage medium
JP2001313921A (en) Television broadcasting system and television broadcasting method used for the same
CN108111887A (en) The method and apparatus that interaction redirects
KR20120009866A (en) Real-time sport information sharing service method and system
CN104049758B (en) The method and electronic equipment of a kind of information processing
JP2002186787A (en) Cyber game method, system, and recording medium storing cyber game program

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20190620

Address after: Room 1101, Santai Commercial Building, 139 Connaught Road, Hong Kong, China

Applicant after: Hong Kong Lemi Co., Ltd.

Address before: Cayman Islands, Greater Cayman Island, Camana Bay, Western Asia, Seitus Chamber of Commerce, 2547 Mailbox

Applicant before: Happy honey Company Limited

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210604

Address after: 25, 5th floor, shuangjingfang office building, 3 frisha street, Singapore

Applicant after: Zhuomi Private Ltd.

Address before: Room 1101, Santai Commercial Building, 139 Connaught Road, Hong Kong, China

Applicant before: HONG KONG LIVE.ME Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant