CN108513145A - A kind of control method and device of even wheat live streaming - Google Patents
A kind of control method and device of even wheat live streaming Download PDFInfo
- Publication number
- CN108513145A CN108513145A CN201810226529.3A CN201810226529A CN108513145A CN 108513145 A CN108513145 A CN 108513145A CN 201810226529 A CN201810226529 A CN 201810226529A CN 108513145 A CN108513145 A CN 108513145A
- Authority
- CN
- China
- Prior art keywords
- wheat
- room
- information
- duration
- direct broadcasting
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/254—Management at additional data server, e.g. shopping server, rights management server
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/133—Protocols for remote procedure calls [RPC]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/161—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
- H04L69/162—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/231—Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
- H04N21/23106—Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion involving caching operations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/235—Processing of additional data, e.g. scrambling of additional data or processing content descriptors
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/478—Supplemental services, e.g. displaying phone caller identification, shopping application
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/478—Supplemental services, e.g. displaying phone caller identification, shopping application
- H04N21/4788—Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Security & Cryptography (AREA)
- General Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Information Transfer Between Computers (AREA)
- Telephonic Communication Services (AREA)
Abstract
An embodiment of the present invention provides a kind of control method and device of even wheat live streaming, method therein includes:Room information based on the direct broadcasting room in cache information configures company's wheat duration of the direct broadcasting room, and the even wheat duration is stored into database;The message of configuration even wheat duration is sent to direct broadcast service end, so that direct broadcast service end group cache information described in the database update, wherein, updated cache information includes the room information of direct broadcasting room and even wheat duration corresponding with the room information, and the company wheat for being controlled based on the updated cache information main broadcaster corresponding with the direct broadcasting room is broadcast live.The method of the present invention solves existing method and there is the even inflexible technical problem of wheat duration setting.
Description
Technical field
The present invention relates to net cast technical field more particularly to a kind of control method and device of even wheat live streaming.
Background technology
With the development of direct seeding technique, work and life to people bring many facilities.
Currently, in order to promote the intelligence and art between main broadcaster to play and improve the visibility of live streaming, it can between each main broadcaster
It is broadcast live with the company of progress wheat, such as intelligence and art displaying, activities such as (PK) of fighting to the finish.However it is existing even wheat live streaming in, usually connect wheat when
Between be arranged by operation personnel is unified, cannot change with the wish of main broadcaster, it is longer even for wheat is broadcast live for the time, often go out
Now connect the phenomenon that wheat live streaming is interrupted, to be unfavorable for the progress of live streaming.
It can be seen that existing method, which has even wheat duration, is arranged inflexible technical problem.
Invention content
An embodiment of the present invention provides a kind of control method and device of even wheat live streaming, to solve or at least partly solve
Certainly connect wheat live broadcasting method and there is the even inflexible technical problem of wheat duration setting.
In a first aspect, the present invention provides a kind of control method of even wheat live streaming, the method includes:
Room information based on the direct broadcasting room in cache information configures company's wheat duration of the direct broadcasting room, and connects wheat by described
Duration is stored into database;
The message of configuration even wheat duration is sent to direct broadcast service end, so that the direct broadcast service end group is in the database
Update the cache information, wherein updated cache information include direct broadcasting room room information and with the room information pair
The company's wheat duration answered, and the company wheat for being controlled based on the updated cache information main broadcaster corresponding with the direct broadcasting room is broadcast live.
Optionally, company's wheat duration of the direct broadcasting room is configured in the room information based on the direct broadcasting room in cache information
Before, the method further includes:
Judge that the room information in the cache information whether there is;
If it is present executing the Lian Maishi that the room information based on the direct broadcasting room in cache information configures the direct broadcasting room
Long step;
If it does not exist, then display reminding signal.
Optionally, the message by configuration even wheat duration is sent to direct broadcast service end, including:
The direct broadcast service end is notified by the way of the remote procedure call in socket, to send the message to
The direct broadcast service end.
Optionally, after the message by configuration even wheat duration is sent to direct broadcast service end, the method further includes:
Judge whether the message sends success;
If it is, the direct broadcast service end executes the operation of library update cache information based on the data;
If it is not, then retransmitting the message of configuration even wheat duration to the direct broadcast service end.
Based on same inventive concept, second aspect of the present invention provides a kind of control method of even wheat live streaming, the side
Method includes:
Receive the message that the configuration that server is sent connects wheat duration, wherein the even wheat duration is based on by the server
The room information of direct broadcasting room in cache information, which matches to postpone, to be stored into database;
Library updates cache information based on the data, wherein updated cache information includes the room information of direct broadcasting room
And even wheat duration corresponding with the room information;
Company's wheat live streaming of main broadcaster corresponding with the direct broadcasting room is controlled based on updated cache information.
Optionally, company's wheat live streaming that main broadcaster corresponding with the direct broadcasting room is controlled based on the cache information, including:
Even wheat state and even wheat remaining time are obtained based on the room information and the even wheat duration;
The even wheat state and the even wheat remaining time are pushed into main broadcaster end, to control the Lian Maizhi at the main broadcaster end
It broadcasts.Based on same inventive concept, third aspect present invention provides a kind of even wheat live broadcast device, and described device is server,
Including:
Configuration module configures the Lian Maishi of the direct broadcasting room for the room information based on the direct broadcasting room in cache information
It is long, and the even wheat duration is stored into database;
Sending module, for the message of configuration even wheat duration to be sent to direct broadcast service end, so that the direct broadcast service end
Library updates the cache information based on the data, wherein updated cache information include direct broadcasting room room information and with
The corresponding even wheat duration of the room information, and master corresponding with the direct broadcasting room is controlled based on the updated cache information
The company's wheat live streaming broadcast.
Based on same inventive concept, fourth aspect present invention provides a kind of control device of even wheat live streaming, the dress
It is set to direct broadcast service end, including:
Receiving module, the configuration for receiving server transmission connect the message of wheat duration, wherein the even wheat duration is by institute
It states room information of the server based on the direct broadcasting room in cache information and stores into database with postponing;
Update module updates cache information for library based on the data, wherein updated cache information includes live streaming
Between room information and it is corresponding with the room information even wheat duration;
Control module, the Lian Maizhi for controlling main broadcaster corresponding with the direct broadcasting room based on updated cache information
It broadcasts.
Based on same inventive concept, fifth aspect present invention provides a kind of computer readable storage medium, deposits thereon
Computer program is contained, the method that first aspect provides is realized when which is executed by processor.
Based on same inventive concept, sixth aspect present invention provides a kind of computer equipment, including memory, processing
On a memory and the computer program that can run on a processor, when processor execution described program, is realized for device and storage
The method that first aspect provides.
Said one in the embodiment of the present application or multiple technical solutions at least have following one or more technology effects
Fruit:
In method provided by the invention, since before main broadcaster carries out even wheat live streaming, server is based in cache information
Room information is provided with company's wheat duration of the corresponding direct broadcasting room of each main broadcaster, and cache information includes the relevant information of direct broadcasting room, room
Between information and live streaming time may be implemented to not for the unified setting of whole station in the existing method even mode of wheat duration
The demand setting of same main broadcaster connects wheat duration, the flexible setting of the company's of realizing wheat duration accordingly.Server is by the company wheat of setting
Duration data are stored into database, and direct broadcast service end is notified by way of message, and server is with direct broadcast service end
Shared data bank so that direct broadcast service termination can update cache information in library based on the data after receiving above-mentioned message, and count
According to the company's wheat duration for storing direct broadcasting room in library, then updated cache information includes even wheat duration, then direct broadcast service end can be with
Company's wheat live streaming of main broadcaster corresponding with the direct broadcasting room is controlled by cache information.It solves existing method to set in the presence of even wheat duration
Set inflexible technical problem.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair
Some bright embodiments for those of ordinary skill in the art without creative efforts, can be with root
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a flow chart for connecting the control method that wheat is broadcast live in the embodiment of the present invention;
Fig. 2 is the flow chart of the control method of another even wheat live streaming in the embodiment of the present invention;
Fig. 3 is a structure diagram for connecting wheat live broadcast device in the embodiment of the present invention;
Fig. 4 is the structure diagram of another even wheat live broadcast device in the embodiment of the present invention;
Fig. 5 is a kind of structure diagram of computer readable storage medium in the embodiment of the present invention;
Fig. 6 is a kind of structure diagram of computer equipment in the embodiment of the present invention.
Specific implementation mode
An embodiment of the present invention provides a kind of control method and device of even wheat live streaming, to improve existing even wheat live streaming
There is even wheat duration and inflexible technical problem be set in method.
Technical solution in the embodiment of the present application, general thought are as follows:
Room information of the server based on the direct broadcasting room in cache information configures company's wheat duration of the direct broadcasting room, and by institute
The company's of stating wheat duration is stored into database;The message by configuration even wheat duration is sent to direct broadcast service end again, so that the live streaming
Library updates the cache information to server-side based on the data, wherein updated cache information includes the room letter of direct broadcasting room
Breath and even wheat duration corresponding with the room information, and based on the updated cache information control and the direct broadcasting room pair
Company's wheat live streaming of the main broadcaster answered.
In method provided by the invention, since before main broadcaster carries out even wheat live streaming, server is provided with each main broadcaster couple
The company's wheat duration for the direct broadcasting room answered may be implemented for the unified setting of whole station in the existing method even mode of wheat duration
Demand setting to different main broadcasters connects wheat duration, the flexible setting of the company's of realizing wheat duration accordingly.Server is by setting
Even wheat duration data are stored into database, and direct broadcast service end is notified by way of message, and server and direct broadcast service
End is shared data bank so that direct broadcast service termination can update cache information in library based on the data after receiving above-mentioned message,
And company's wheat duration of direct broadcasting room is stored in database, then updated cache information includes connecting wheat duration, then direct broadcast service end
Company's wheat live streaming of main broadcaster corresponding with the direct broadcasting room can be controlled by cache information.Solving existing method, there are Lian Maishi
It is long that inflexible technical problem is set.
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
The every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Embodiment one
The present embodiment provides a kind of control methods of even wheat live streaming, are applied to server, as shown in Figure 1, this method includes:
Step S101 is first carried out:Room information based on the direct broadcasting room in cache information configures the company wheat of the direct broadcasting room
Duration, and the even wheat duration is stored into database.
Specifically, cache information is relevant information of direct broadcasting room, including room information, live streaming time, live state etc.
Information.In the present embodiment, server is to be configured according to the room information of direct broadcasting room, i.e., in configuration even wheat duration
Connect wheat duration accordingly for the configuration of each direct broadcasting room, wherein direct broadcasting room is one-to-one with main broadcaster, and even wheat duration can basis
Actual needs setting, such as 10 hours, 8 hours, 5 hours, half an hour etc..Such as it is carried out according to the history live data of main broadcaster
Setting, the corresponding direct broadcasting room of the main broadcaster big for bean vermicelli quantity, liveness is high, then can the duration that is broadcast live of company of proper extension wheat,
It, can also the duration that is broadcast live of company of proper extension wheat for the main broadcaster that gives priority to of needs.Above-mentioned room information is the unique of room
Mark, such as room number etc., database can be the MySQL database of generally use, Access databases, Orace databases
Deng.
In specific implementation process, based on room information configuration even wheat duration, get_room_detail can be passed through
(roomId) method is inquired from cache information needs room information to be added, this is because being present in the room information in caching
The room information of synchronous main website.Even wheat duration can be realized by way of writing program or manually adding for configuration, then will
In above-mentioned data write-in database, such as by addPKData (data) method, the data expression parameters in bracket should
Parameter includes room number, the even information such as wheat duration, operator.In specific application, if data are stored or added successfully,
Showing that company's wheat duration of main broadcaster is successfully stored in the corresponding tables of data of database, the data in database will always exist,
It will not be lost because of other reasons.Addition failure is indicated if the above method returns to false, needs to re-start adding for data
Add.
In a kind of optional embodiment, in order to improve the reading speed and efficiency of cache information, it is slow that Redis may be used
The mode deposited, Remote Dictionary Server (Redis) are that a use ANSI C language increased income writes, supports net
Network, can based on memory also can persistence log type, Key-Value databases, write by Salvatore Sanfilippo.
Redis can provide some abundant data structures, including lists, sets, ordered sets and hashes and with
Strings structures the same Memcached.As the data cached function of an efficient network, performance is high, Redis energy
Support the read-write frequency per second more than 100K+.
In a kind of optional embodiment, for the ease of the storage of data and the reading efficiency of raising data, this implementation
Database in mode is MySQL database, and MySQL database is a kind of associated data library management system, and linked database will
Data are stored in different tables, rather than all data are placed in one big warehouse, so as to increase the speed of reading
And improve flexibility.
Then step S102 is executed:The message of configuration even wheat duration is sent to direct broadcast service end, so that the live streaming takes
Business end group cache information described in the database update, wherein updated cache information includes the room information of direct broadcasting room
And even wheat duration corresponding with the room information, and it is corresponding with the direct broadcasting room based on the updated cache information control
Main broadcaster the live streaming of company wheat.
Specifically, direct broadcast service end is the platform for managing the company of progress wheat live streaming between main broadcaster, such as is stored each
The time etc. that company's wheat state of direct broadcasting room, even wheat are broadcast live.After the direct broadcasting room configuration even wheat duration that server is each main broadcaster, need
The work that the configuration of direct broadcast service end connects wheat duration is notified to complete by way of message, in present embodiment, direct broadcast service end
Can be CPP server-sides.
In a kind of optional embodiment, may be used the remote procedure call in socket mode notify it is described straight
Server-side is broadcast, to send the message to the direct broadcast service end.Specifically, direct broadcast service end can provide reception notice
RPC (Remote Procedure Call) remote procedure call, one kind ask by network from remote computer program to take
Business, the agreement without understanding underlying network technology.In the present embodiment, remote procedure call can pass through update_
Pk_time methods are realized, i.e., so that direct broadcast service end is received relevant message by update_pk_time methods.
Specifically, being programmed using socket calls this RPC method of update_pk_time to send out message
It send to direct broadcast service end, that is, notifies direct broadcast service end.
After direct broadcast service termination receives the message of server transmission, then cache information can be updated, due to server and live streaming
End is shared database, then direct broadcast service end can be according to the information update stored in database the cache information of oneself, and counts
According to the company's wheat duration for storing each direct broadcasting room in library, then updated cache information include then direct broadcasting room room information and with
When the corresponding even wheat live streaming of the room information, controlled so as to the main broadcaster to even wheat.I.e. direct broadcast service end can root
The state that even wheat is controlled according to updated cache information, to realize that the main broadcaster to even wheat carries out the setting of even wheat duration.In order to
Even wheat live streaming is preferably controlled, the premise that the company of progress wheat is broadcast live first must be the room to start broadcasting, and will be into
Even the equipment of wheat is limited row, for example, can the equipment of company of progress wheat include mobile terminal app, pc client (companion is broadcast live)
Do not allow the company of progress wheat then Deng the live streaming of, other modes.
In a kind of optional embodiment, the direct broadcasting room is configured in the room information based on the direct broadcasting room in cache information
Company's wheat duration before, the method further includes:
Judge that the room information in the cache information whether there is;
If it is present executing the Lian Maishi that the room information based on the direct broadcasting room in cache information configures the direct broadcasting room
Long step;
If it does not exist, then display reminding signal.
In specific implementation process, before carrying out even wheat duration setting for each direct broadcasting room, it is necessary first to judge caching
Whether the room information of direct broadcasting room is included in information, if including, the setting of the company's of progress wheat duration, if do not included, table
Required room information to be added is not present in bright current live station, then display reminding signal, such as the room information is not present
Deng.
It is described after the message of configuration even wheat duration is sent to direct broadcast service end in a kind of optional embodiment
Method further includes:
Judge whether the message sends success;
If it is, the direct broadcast service end executes the operation of library update cache information based on the data;
If it is not, then retransmitting the message of configuration even wheat duration to the direct broadcast service end.
Specifically, it can judge whether message sends success by the return code ret at direct broadcast service end, work as ret=0
When then indicate to notify successfully, otherwise indicate notice failure, then need to be notified again after notice failure, until until successful.
Based on same inventive concept, the embodiment of the present invention additionally provides the control method of another even wheat live streaming, refers to reality
Apply example two.
Embodiment two
The present embodiment provides a kind of control methods of even wheat live streaming, are applied to direct broadcast service end, as shown in Fig. 2, this method
Including:
Step S201:Receive the message that the configuration that server is sent connects wheat duration, wherein the even wheat duration is by the clothes
Business room information of the device based on the direct broadcasting room in cache information, which matches to postpone, to be stored into database.
Due to the specific set-up mode of the company of having described in detail the wheat duration in embodiment one, therefore details are not described herein.
Step S202:Library updates cache information based on the data, wherein updated cache information includes direct broadcasting room
Room information and even wheat duration corresponding with the room information;
Due to having described the mode based on database update cache information in detail in embodiment one, therefore herein no longer
It repeats.
Step S203:Company's wheat live streaming of main broadcaster corresponding with the direct broadcasting room is controlled based on updated cache information.
Specifically, direct broadcast service end is for being broadcast live the platform that is controlled to even wheat, in updated cache information
Including the room information of direct broadcasting room and even wheat duration corresponding with room information.
Specifically, the company's wheat live streaming for main broadcaster corresponding with the direct broadcasting room being controlled based on the cache information can be under
Method is stated to realize:
Even wheat state and even wheat remaining time are obtained based on the room information and the even wheat duration;
The even wheat state and the even wheat remaining time are pushed into main broadcaster end, to control the Lian Maizhi at the main broadcaster end
It broadcasts.
Specifically, even wheat state includes disconnecting and connecting, and is controlled by direct broadcast service end, as the master of the company of progress wheat
Broadcast, it is respective even wheat duration it is inconsistent when, then the company of being subject to wheat duration is shorter, for example, the company wheat of the direct broadcasting room of main broadcaster A
A length of 1 hour when the company wheat of Shi Changwei 2 hours, main broadcaster B, after main broadcaster A initiates even wheat request to main broadcaster B, main broadcaster B agrees to, then leads
It broadcasts and has then carried out even wheat between A and main broadcaster B, then the cache information at direct broadcast service end includes then that even wheat state is connects, Lian Mai
Remaining time be 1 hour, when the time reach 1 it is small when after, then direct broadcast service end then disconnect this time connects wheat live streaming.
By the method that the embodiment of the present invention two is introduced, the same structure used with the method for the embodiment of the present invention one
Think, so based on the method that the embodiment of the present invention one is introduced, the affiliated personnel in this field can understand method in the present embodiment
Specific implementation mode and its deformation, so details are not described herein.The embodiment of the method for every embodiment of the present invention one and its
Deformation belongs to the range of the invention to be protected.
Based on same inventive concept, present invention also provides and embodiment one kind device corresponding with even wheat live broadcasting method,
Detailed in Example three.
Embodiment three
The present embodiment provides a kind of control devices of even wheat live streaming, and described device is server, as shown in figure 3, the device
Including:
Configuration module 301 configures the company wheat of the direct broadcasting room for the room information based on the direct broadcasting room in cache information
Duration, and the even wheat duration is stored into database;
Sending module 302, for the message of configuration even wheat duration to be sent to direct broadcast service end, so that the direct broadcast service
End group cache information described in the database update, wherein updated cache information include direct broadcasting room room information and
Even wheat duration corresponding with the room information, and it is corresponding with the direct broadcasting room based on the updated cache information control
Company's wheat live streaming of main broadcaster.
As a kind of optional embodiment of the present embodiment, described device further includes the first judgment module, for described
Room information based on the direct broadcasting room in cache information configures before company's wheat duration of the direct broadcasting room:
Judge that the room information in the cache information whether there is;
If it is present executing the Lian Maishi that the room information based on the direct broadcasting room in cache information configures the direct broadcasting room
Long step;
If it does not exist, then display reminding signal.
As a kind of optional embodiment of the present embodiment, configuration module 301 is additionally operable to:
The direct broadcast service end is notified by the way of the remote procedure call in socket, to send the message to
The direct broadcast service end.
As a kind of optional embodiment of the present embodiment, described device further includes the second judgment module, for described
The message of configuration even wheat duration is sent to after direct broadcast service end:
Judge whether the message sends success;
If it is, the direct broadcast service end executes the operation of library update cache information based on the data;
If it is not, then retransmitting the message of configuration even wheat duration to the direct broadcast service end
By the device that the embodiment of the present invention three is introduced, for the controlling party of company's wheat live streaming of the implementation embodiment of the present invention one
Device used by method, so based on the method that the embodiment of the present invention one is introduced, the affiliated personnel in this field can understand the dress
The concrete structure set and deformation, so details are not described herein.Device all belongs to used by the method for every embodiment of the present invention one
In the range of the invention to be protected.
Based on same inventive concept, present invention also provides and embodiment it is a kind of corresponding with the control method of even wheat live streaming
Device, detailed in Example four.
Example IV
The present embodiment provides a kind of control devices of even wheat live streaming, and described device is direct broadcast service end, as shown in figure 4, should
Device includes:
Receiving module 401, the configuration for receiving server transmission connect the message of wheat duration, wherein the even wheat duration
Match to postpone by room information of the server based on the direct broadcasting room in cache information and store into database;
Update module 402 updates cache information for library based on the data, wherein updated cache information includes
The room information of direct broadcasting room and even wheat duration corresponding with the room information;
Control module 403, the company wheat for controlling main broadcaster corresponding with the direct broadcasting room based on updated cache information
Live streaming.
As optional, control module 403 is additionally operable to:
Even wheat state and even wheat remaining time are obtained based on the room information and the even wheat duration;
The even wheat state and the even wheat remaining time are pushed into main broadcaster end, to control the Lian Maizhi at the main broadcaster end
It broadcasts.
By the device that the embodiment of the present invention four is introduced, for the controlling party of company's wheat live streaming of the implementation embodiment of the present invention two
Device used by method, so based on the method that the embodiment of the present invention two is introduced, the affiliated personnel in this field can understand the dress
The concrete structure set and deformation, so details are not described herein.Device all belongs to used by the method for every embodiment of the present invention two
In the range of the invention to be protected.
Embodiment five
Based on same inventive concept, present invention also provides a kind of computer readable storage mediums 500, are stored thereon with meter
Calculation machine program 511 realizes the method implemented in one when the program is executed by processor.
Specifically, above procedure is configured as that following step can be executed:
Room information based on the direct broadcasting room in cache information configures company's wheat duration of the direct broadcasting room, and connects wheat by described
Duration is stored into database;
The message of configuration even wheat duration is sent to direct broadcast service end, so that the direct broadcast service end group is in the database
Update the cache information, wherein updated cache information include direct broadcasting room room information and with the room information pair
The company's wheat duration answered, and the company wheat for being controlled based on the updated cache information main broadcaster corresponding with the direct broadcasting room is broadcast live.
Embodiment six
Based on same inventive concept, present invention also provides a kind of computer equipment, Fig. 6 is referred to, including storage 601,
Processor 602 and storage on a memory and the computer program 603 that can run on a processor, the execution of the processor 602
The method implemented in one is realized when described program.
Specifically, above-mentioned processor is configured as that following step can be executed:
Room information based on the direct broadcasting room in cache information configures company's wheat duration of the direct broadcasting room, and connects wheat by described
Duration is stored into database;
The message of configuration even wheat duration is sent to direct broadcast service end, so that the direct broadcast service end group is in the database
Update the cache information, wherein updated cache information include direct broadcasting room room information and with the room information pair
The company's wheat duration answered, and the company wheat for being controlled based on the updated cache information main broadcaster corresponding with the direct broadcasting room is broadcast live.
Similarly, the embodiment of the present invention two also has corresponding computer readable storage medium and computer equipment, is used for
Realize the method in embodiment two.
Said one in the embodiment of the present application or multiple technical solutions at least have following one or more technology effects
Fruit:
In method provided by the invention, since before main broadcaster carries out even wheat live streaming, server is provided with each main broadcaster couple
The company's wheat duration for the direct broadcasting room answered may be implemented for the unified setting of whole station in the existing method even mode of wheat duration
Demand setting to different main broadcasters connects wheat duration, the flexible setting of the company's of realizing wheat duration accordingly.Server is by setting
Even wheat duration data are stored into database, and direct broadcast service end is notified by way of message, and server and direct broadcast service
End is shared data bank so that direct broadcast service termination can update cache information in library based on the data after receiving above-mentioned message,
And company's wheat duration of direct broadcasting room is stored in database, then updated cache information includes connecting wheat duration, then direct broadcast service end
Company's wheat live streaming of main broadcaster corresponding with the direct broadcasting room can be controlled by cache information.Solving existing method, there are Lian Maishi
It is long that inflexible technical problem is set.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, the present invention can be used in one or more wherein include computer usable program code computer
The computer program production implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram
The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided
Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real
The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to
Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or
The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, those skilled in the art can carry out the embodiment of the present invention various modification and variations without departing from this hair
The spirit and scope of bright embodiment.In this way, if these modifications and variations of the embodiment of the present invention belong to the claims in the present invention
And its within the scope of equivalent technologies, then the present invention is also intended to include these modifications and variations.
Claims (10)
1. a kind of control method of even wheat live streaming, which is characterized in that including:
Room information based on the direct broadcasting room in cache information configures company's wheat duration of the direct broadcasting room, and connects wheat duration by described
It stores into database;
The message of configuration even wheat duration is sent to direct broadcast service end, so that the direct broadcast service end group is in the database update
The cache information, wherein updated cache information includes the room information of direct broadcasting room and corresponding with the room information
Connect wheat duration, and controls company's wheat live streaming of main broadcaster corresponding with the direct broadcasting room based on the updated cache information.
2. the method as described in claim 1, which is characterized in that in the room information based on the direct broadcasting room in cache information
Before the company's wheat duration for configuring the direct broadcasting room, the method further includes:
Judge that the room information in the cache information whether there is;
If it is present room information of the execution based on the direct broadcasting room in cache information configures company's wheat duration of the direct broadcasting room
Step;
If it does not exist, then display reminding signal.
3. the method as described in claim 1, which is characterized in that the message by configuration even wheat duration is sent to direct broadcast service
End, including:
The direct broadcast service end is notified by the way of the remote procedure call in socket, it is described to send the message to
Direct broadcast service end.
4. the method as described in claim 1, which is characterized in that be sent to live streaming clothes in the message by configuration even wheat duration
It is engaged in after end, the method further includes:
Judge whether the message sends success;
If it is, the direct broadcast service end executes the operation of library update cache information based on the data;
If it is not, then retransmitting the message of configuration even wheat duration to the direct broadcast service end.
5. a kind of control method of even wheat live streaming, which is characterized in that including:
Receive the message that the configuration that server is sent connects wheat duration, wherein the even wheat duration is based on caching by the server
The room information of direct broadcasting room in information, which matches to postpone, to be stored into database;
Based on the data library update cache information, wherein updated cache information include direct broadcasting room room information and with
The corresponding even wheat duration of the room information;
Company's wheat live streaming of main broadcaster corresponding with the direct broadcasting room is controlled based on updated cache information.
6. method as claimed in claim 5, which is characterized in that described based on cache information control and the direct broadcasting room pair
Company's wheat live streaming of the main broadcaster answered, including:
Even wheat state and even wheat remaining time are obtained based on the room information and the even wheat duration;
The even wheat state and the even wheat remaining time are pushed into main broadcaster end, to control company's wheat live streaming at the main broadcaster end.
7. a kind of control device of even wheat live streaming, which is characterized in that described device is server, including:
Configuration module configures company's wheat duration of the direct broadcasting room for the room information based on the direct broadcasting room in cache information, and
The even wheat duration is stored into database;
Sending module, for the configuration even message of wheat duration to be sent to direct broadcast service end so that the direct broadcast service end group in
Cache information described in the database update, wherein updated cache information include direct broadcasting room room information and with it is described
The corresponding even wheat duration of room information, and control main broadcaster's corresponding with the direct broadcasting room based on the updated cache information
Even wheat live streaming.
8. a kind of control device of even wheat live streaming, which is characterized in that described device is direct broadcast service end, including:
Receiving module, the configuration for receiving server transmission connect the message of wheat duration, wherein the even wheat duration is by the clothes
Business room information of the device based on the direct broadcasting room in cache information, which matches to postpone, to be stored into database;
Update module updates cache information, wherein updated cache information includes direct broadcasting room for library based on the data
Room information and even wheat duration corresponding with the room information;
Control module, company's wheat live streaming for controlling main broadcaster corresponding with the direct broadcasting room based on updated cache information.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is performed reality
Existing following steps:
Room information based on the direct broadcasting room in cache information configures company's wheat duration of the direct broadcasting room, and connects wheat duration by described
It stores into database;
The message of configuration even wheat duration is sent to direct broadcast service end, so that the direct broadcast service end group is in the database update
The cache information, wherein updated cache information includes the room information of direct broadcasting room and corresponding with the room information
Connect wheat duration, and controls company's wheat live streaming of main broadcaster corresponding with the direct broadcasting room based on the updated cache information.
10. a kind of computer equipment, including memory, processor and storage are on a memory and the meter that can run on a processor
Calculation machine program, which is characterized in that the processor realizes following steps when executing described program:
Room information based on the direct broadcasting room in cache information configures company's wheat duration of the direct broadcasting room, and connects wheat duration by described
It stores into database;
The message of configuration even wheat duration is sent to direct broadcast service end, so that the direct broadcast service end group is in the database update
The cache information, wherein updated cache information includes the room information of direct broadcasting room and corresponding with the room information
Connect wheat duration, and controls company's wheat live streaming of main broadcaster corresponding with the direct broadcasting room based on the updated cache information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810226529.3A CN108513145B (en) | 2018-03-19 | 2018-03-19 | Control method and device for live broadcast with wheat |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810226529.3A CN108513145B (en) | 2018-03-19 | 2018-03-19 | Control method and device for live broadcast with wheat |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108513145A true CN108513145A (en) | 2018-09-07 |
CN108513145B CN108513145B (en) | 2021-02-02 |
Family
ID=63377724
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810226529.3A Active CN108513145B (en) | 2018-03-19 | 2018-03-19 | Control method and device for live broadcast with wheat |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108513145B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109286821A (en) * | 2018-09-30 | 2019-01-29 | 武汉斗鱼网络科技有限公司 | A kind of direct broadcasting room recommended method, device, server and storage medium |
CN109756504A (en) * | 2019-01-16 | 2019-05-14 | 武汉斗鱼鱼乐网络科技有限公司 | A kind of communication means and relevant apparatus based on live streaming platform |
CN111225229A (en) * | 2020-01-15 | 2020-06-02 | 广州酷狗计算机科技有限公司 | Live broadcast method and device, computer equipment and storage medium |
CN111683262A (en) * | 2020-06-04 | 2020-09-18 | 广州酷狗计算机科技有限公司 | Method, device, server, terminal and storage medium for determining continuous microphone time |
CN112235594A (en) * | 2020-10-20 | 2021-01-15 | 广州博冠信息科技有限公司 | Live broadcast and microphone connecting method and device, computer readable medium and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090280859A1 (en) * | 2008-05-12 | 2009-11-12 | Sony Ericsson Mobile Communications Ab | Automatic tagging of photos in mobile devices |
US20140053711A1 (en) * | 2009-06-01 | 2014-02-27 | Music Mastermind, Inc. | System and method creating harmonizing tracks for an audio input |
CN105120306A (en) * | 2015-08-28 | 2015-12-02 | 广州酷狗计算机科技有限公司 | Microphone use duration control method and device |
CN105898609A (en) * | 2015-12-14 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Method and client realizing voice interaction in video live broadcast process |
CN106686397A (en) * | 2016-12-31 | 2017-05-17 | 北京星辰美豆文化传播有限公司 | Multi-person network broadcasting method and device and electronic equipment thereof |
-
2018
- 2018-03-19 CN CN201810226529.3A patent/CN108513145B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090280859A1 (en) * | 2008-05-12 | 2009-11-12 | Sony Ericsson Mobile Communications Ab | Automatic tagging of photos in mobile devices |
US20140053711A1 (en) * | 2009-06-01 | 2014-02-27 | Music Mastermind, Inc. | System and method creating harmonizing tracks for an audio input |
CN105120306A (en) * | 2015-08-28 | 2015-12-02 | 广州酷狗计算机科技有限公司 | Microphone use duration control method and device |
CN105898609A (en) * | 2015-12-14 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Method and client realizing voice interaction in video live broadcast process |
CN106686397A (en) * | 2016-12-31 | 2017-05-17 | 北京星辰美豆文化传播有限公司 | Multi-person network broadcasting method and device and electronic equipment thereof |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109286821A (en) * | 2018-09-30 | 2019-01-29 | 武汉斗鱼网络科技有限公司 | A kind of direct broadcasting room recommended method, device, server and storage medium |
CN109756504A (en) * | 2019-01-16 | 2019-05-14 | 武汉斗鱼鱼乐网络科技有限公司 | A kind of communication means and relevant apparatus based on live streaming platform |
CN109756504B (en) * | 2019-01-16 | 2021-11-09 | 武汉斗鱼鱼乐网络科技有限公司 | Communication method based on live broadcast platform and related device |
CN111225229A (en) * | 2020-01-15 | 2020-06-02 | 广州酷狗计算机科技有限公司 | Live broadcast method and device, computer equipment and storage medium |
CN111225229B (en) * | 2020-01-15 | 2021-12-03 | 广州酷狗计算机科技有限公司 | Live broadcast method and device, computer equipment and storage medium |
CN111683262A (en) * | 2020-06-04 | 2020-09-18 | 广州酷狗计算机科技有限公司 | Method, device, server, terminal and storage medium for determining continuous microphone time |
CN111683262B (en) * | 2020-06-04 | 2022-03-15 | 广州酷狗计算机科技有限公司 | Method, device, server, terminal and storage medium for determining continuous microphone time |
CN112235594A (en) * | 2020-10-20 | 2021-01-15 | 广州博冠信息科技有限公司 | Live broadcast and microphone connecting method and device, computer readable medium and electronic equipment |
CN112235594B (en) * | 2020-10-20 | 2022-06-14 | 广州博冠信息科技有限公司 | Live broadcast and microphone connecting method and device, computer readable medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN108513145B (en) | 2021-02-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108513145A (en) | A kind of control method and device of even wheat live streaming | |
CN110851253B (en) | Remote operation and maintenance method, system, storage medium and electronic equipment | |
CN103024052B (en) | Realize the system and method that browser data synchronizes | |
CN107066570A (en) | Data managing method and device | |
US20140229504A1 (en) | System and method for managing database in data distribution service | |
CN113489772A (en) | Network request processing method and device and electronic equipment | |
CN102724295A (en) | Data synchronization method and system | |
CN102202087A (en) | Method for identifying storage equipment and system thereof | |
CN110019346A (en) | A kind of data processing method and device based on double primary databases | |
CN110377416A (en) | Distributed subregion method for scheduling task and device | |
CN105847231A (en) | Service publishing method, device and system | |
CN111818194A (en) | Domain name based access system and method | |
CN111897643B (en) | Thread pool configuration system, method, device and storage medium | |
CN106254417A (en) | Data cache method, Apparatus and system | |
CN113076186B (en) | Task processing method, device, electronic equipment and storage medium | |
CN113204425B (en) | Method, device, electronic equipment and storage medium for process management internal thread | |
CN108540408A (en) | A kind of management method and system of the distributed virtual switch based on Openstack | |
CN107277188A (en) | A kind of method, client, server and operation system for determining IP address attaching information | |
CN109271367A (en) | Distributed file system multinode snapshot rollback method and system | |
CN110019131A (en) | A kind of method and apparatus of discs business | |
CN116010065A (en) | Distributed task scheduling method, device and equipment | |
CN115361382A (en) | Data processing method, device, equipment and storage medium based on data group | |
CN112949326B (en) | Information query method, device, equipment and computer readable medium | |
CN114971689A (en) | Task processing method, device, equipment and storage medium | |
CN113742254A (en) | Memory fragment management method, device and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |