Summary of the invention
In order to solve problem of the prior art, embodiments provide and a kind of play the method for live video, deviceAnd system.Described technical scheme is as follows:
First aspect, it is provided that a kind of method playing live video, described method includes:
Receiving the direct broadcasting room acquisition request that terminal sends, wherein, described direct broadcasting room obtains in request and carries described terminalThe account identification of logon account;
According to the account identification prestored, live video type, the corresponding relation of viewing duration, determine and described loginThe account identification of account is corresponding and viewing duration meets the target live video type of preset duration condition;
Direct broadcasting room link according to the direct broadcasting room prestored and the corresponding relation of live video type, determine described targetThe target direct broadcasting room link that live video type is corresponding;
The link of described target direct broadcasting room is sent to described terminal.
Optionally, account identification that described basis prestores, live video type, the corresponding relation of viewing duration, reallyFixed corresponding with the account identification of described logon account and viewing duration meets the target live video type of preset duration condition,Including:
According to the account identification prestored, live video type, the corresponding relation of viewing duration, determine and described loginThe target live video type that the account identification of account is corresponding and viewing duration is the longest.
So, the target live video type determined, it is more likely that the live video type that user likes, and then, canLive video is obtained, it is thus possible to improve the efficiency of viewing live video to avoid user to repeat.
Optionally, the direct broadcasting room link of the direct broadcasting room that described basis prestores and the corresponding relation of live video type,Determine the target direct broadcasting room link that described target live video type is corresponding, including:
Direct broadcasting room link and the live video class of the direct broadcasting room of predetermined threshold value is reached according to the liveness scoring prestoredThe corresponding relation of type, determines the target direct broadcasting room link that described target live video type is corresponding.
So, it is recommended that belong to the direct broadcasting room that liveness scoring is higher, i.e. corresponding live video to the direct broadcasting room of terminalMore excellent, when user watches live video, it is easier to attract user, in order to avoid owing to live video is the most excellent so that Yong HuduoSecondary triggering terminal obtains live video to server, it is thus possible to improve the efficiency of viewing live video.
Optionally, the scoring of described basis prestores liveness reach the direct broadcasting room link of the direct broadcasting room of predetermined threshold value withThe corresponding relation of live video type, determines the target direct broadcasting room link that described target live video type is corresponding, including:
The direct broadcasting room link of the direct broadcasting room of predetermined threshold value, live video class is reached according to the liveness scoring prestoredThe corresponding relation of type, liveness scoring, determines corresponding with described target live video type and that liveness scoring is maximum meshMark direct broadcasting room link.
So, it is recommended that belonging to, to the direct broadcasting room of terminal, the direct broadcasting room that liveness scoring is the highest, i.e. corresponding live video is moreExcellent, when user watches live video, it is easier to attract user, in order to avoid owing to live video is the most excellent so that user is repeatedlyTriggering terminal obtains live video to server, it is thus possible to improve the efficiency of viewing live video
Optionally, described method also includes:
When reaching the default detection cycle, obtain in the current detection cycle, the default liveness ginseng that each direct broadcasting room is correspondingThe parameter value of number;
According to the parameter value of default liveness parameter corresponding to each direct broadcasting room got, determine that described each direct broadcasting room is correspondingLiveness scoring;
The liveness determined scoring is reached direct broadcasting room link and the live video class of the direct broadcasting room of described predetermined threshold valueType, in corresponding storage to described corresponding relation.
Optionally, the parameter value of the default liveness parameter that each direct broadcasting room that described basis gets is corresponding, determine describedThe liveness scoring that each direct broadcasting room is corresponding, including:
Obtain the liveness weight that described default liveness parameter is corresponding;
Parameter value according to default liveness parameter corresponding to each direct broadcasting room got and each default liveness ginsengThe liveness weight that number is corresponding, determines the liveness scoring that described each direct broadcasting room is corresponding.
Optionally, described default liveness parameter includes one or more in following parameter:
Maximum spectator attendance, speech quantity, the reception present amount of money.
Second aspect, it is provided that a kind of method playing live video, described method includes:
Sending direct broadcasting room to server and obtain request, wherein, described direct broadcasting room obtains the login carrying terminal in requestThe account identification of account;
Receive the target direct broadcasting room link that described server sends;
Link based on described target direct broadcasting room, play live video.
Optionally, described acquisition to server transmission direct broadcasting room is asked, including:
When detecting that described terminal shakes, send direct broadcasting room to server and obtain request.
The third aspect, it is provided that a kind of server, described server includes:
Receiver module, the direct broadcasting room sent for receiving terminal obtains request, and wherein, described direct broadcasting room obtains in request and takesAccount identification with the logon account of described terminal;
First determines module, for according to the account identification prestored, live video type, the corresponding pass of viewing durationSystem, determines that and viewing duration corresponding with the account identification of described logon account meets the target live video of preset duration conditionType;
Second determines module, corresponding with live video type for the direct broadcasting room link according to the direct broadcasting room prestoredRelation, determines the target direct broadcasting room link that described target live video type is corresponding;
Sending module, for sending the link of described target direct broadcasting room to described terminal.
Optionally, described first determines module, is used for:
According to the account identification prestored, live video type, the corresponding relation of viewing duration, determine and described loginThe target live video type that the account identification of account is corresponding and viewing duration is the longest.
Optionally, described second determines module, is used for:
Direct broadcasting room link and the live video class of the direct broadcasting room of predetermined threshold value is reached according to the liveness scoring prestoredThe corresponding relation of type, determines the target direct broadcasting room link that described target live video type is corresponding.
Optionally, described second determines module, is used for:
The direct broadcasting room link of the direct broadcasting room of predetermined threshold value, live video class is reached according to the liveness scoring prestoredThe corresponding relation of type, liveness scoring, determines corresponding with described target live video type and that liveness scoring is maximum meshMark direct broadcasting room link.
Optionally, described server also includes:
Acquisition module, for when reaching the default detection cycle, obtains in the current detection cycle, and each direct broadcasting room is correspondingPreset the parameter value of liveness parameter;
3rd determines module, for the parameter value of the default liveness parameter corresponding according to each direct broadcasting room got, reallyThe liveness scoring that fixed described each direct broadcasting room is corresponding;
Memory module, for reaching the direct broadcasting room link of the direct broadcasting room of described predetermined threshold value by the liveness determined scoringWith live video type, correspondence stores in described corresponding relation.
Optionally, the described 3rd determines module, including:
Obtain submodule, for obtaining the liveness weight that described default liveness parameter is corresponding;
Determine submodule, for the default liveness parameter corresponding according to each direct broadcasting room of getting parameter value andThe liveness weight that each default liveness parameter is corresponding, determines the liveness scoring that described each direct broadcasting room is corresponding.
Optionally, described default liveness parameter includes one or more in following parameter:
Maximum spectator attendance, speech quantity, the reception present amount of money.
Fourth aspect, it is provided that a kind of terminal, described terminal includes:
Sending module, obtains request for sending direct broadcasting room to server, and wherein, described direct broadcasting room obtains in request and carriesThere is the account identification of the logon account of terminal;
Receiver module, for receiving the target direct broadcasting room link that described server sends;
Playing module, for linking based on described target direct broadcasting room, plays live video.
Optionally, described sending module, it is used for:
When detecting that described terminal shakes, send direct broadcasting room to server and obtain request.
5th aspect, it is provided that a kind of system playing live video, described system includes terminal and server, wherein:
Described terminal, obtains request for sending direct broadcasting room to described server, and wherein, described direct broadcasting room obtains in requestCarry the account identification of the logon account of terminal, receive the target direct broadcasting room link that described server sends, based on described meshMark direct broadcasting room link, plays live video;
Described server, the direct broadcasting room sent for receiving described terminal obtains request, according to the account mark prestoredKnowledge, live video type, viewing duration corresponding relation, determine corresponding with the account identification of described logon account and viewing timeThe long target live video type meeting preset duration condition, links according to the direct broadcasting room of the direct broadcasting room prestored and regards with liveFrequently the corresponding relation of type, determines the target direct broadcasting room link that described target live video type is corresponding, sends to described terminalDescribed target direct broadcasting room links.
The technical scheme that the embodiment of the present invention provides has the benefit that
In the embodiment of the present invention, terminal can send direct broadcasting room to server and obtain request, and wherein, direct broadcasting room obtains requestIn carry the account identification of logon account of terminal, server receives after the direct broadcasting room that terminal sends obtains request, permissibleAccording to the account identification prestored, live video type, the corresponding relation of viewing duration, determine the account mark with logon accountSensible correspondence and viewing duration meet the target live video type of preset duration condition, and then, it may be determined that live video classType is the target direct broadcasting room of target live video type, it is possible to by target direct broadcasting room chain corresponding for the target direct broadcasting room determinedConnecing, send to terminal, terminal can receive the target direct broadcasting room link that server sends, and then, can be based on target direct broadcasting roomLink, plays live video.So, when user wants the live video watching the type oneself liked, only need to by terminal toServer sends direct broadcasting room and obtains request, and server i.e. can regard to the live of live video type that terminal propelling movement user likesFrequently, user is without repeatedly attempting, it is thus possible to improve the efficiency of viewing live video.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present inventionFormula is described in further detail.
Embodiments providing a kind of method playing live video, the method can be common by terminal and serverRealize.Wherein, terminal can be the terminal with network direct broadcasting function, such as can be provided with network direct broadcasting application programThe mobile terminal such as mobile phone, panel computer, it is also possible to being PC (PersonalComputer, PC), server can be netThe background server of network direct broadcast function.Can be provided with player and transceiver in this terminal, player may be used for playing directlyBroadcasting video, transceiver may be used for receiving and sending data.Being also provided with processor, memorizer, processor may be used forThe relevant treatment whether detection terminal shakes, memorizer may be used for storing the number needing in following processing procedure and producingAccording to.Can be provided with processor, memorizer, transceiver in server, processor is determined for live video type for usingThe relevant treatment of the direct broadcasting room link of the direct broadcasting room of the type that family is liked, memorizer may be used for storing in following processing procedure to be neededThe data wanted and produce, transceiver may be used for receiving and sending data.
Below in conjunction with detailed description of the invention, being described in detail the handling process shown in Fig. 1, content can be asUnder:
Step 101, terminal to server sends direct broadcasting room and obtains request, and wherein, direct broadcasting room obtains in request and carries endThe account identification of the logon account of end.
In force, can be provided with network direct broadcasting application program in terminal, user wants to watch oneself like liveDuring the live video of video type, can be by operation, triggering terminal sends direct broadcasting room to server and obtains request, wherein, shouldDirect broadcasting room obtains the account identification of the logon account that can carry terminal in request, and system framework figure is as shown in Figure 2.
Optionally, user can be by shake terminal, and triggering terminal sends direct broadcasting room to server and obtains request, accordingly, the processing procedure of step 101 can be such that when detecting that terminal shakes, and sending direct broadcasting room acquisition to server pleaseAsk.
In force, the main interface of network direct broadcasting application program can show and shake a tossing item, wherein, shake a tossingItem can also be arranged on the live interface of other pages, such as direct broadcasting room, and the embodiment of the present invention is not to the display shaking a tossing itemPosition is defined, as shown in Figure 3.When user wants the live video obtaining the live video type oneself liked, permissibleClick on this and shake a tossing item, it is possible to shake terminal, when terminal detects that self shakes, can send to server straightRequest is obtained between broadcasting.Concrete, during user shakes terminal, terminal can detect terminal speed (or acceleration),Maximum position amplitude of variation, when the speed of terminal reaches pre-set velocity threshold value, and the maximum position amplitude of variation of terminal reaches pre-If during amplitude threshold, direct broadcasting room can be sent to server and obtain request.It addition, terminal can also be not provided with shake a tossing, when user wants the live video obtaining the live video type oneself liked, open at network direct broadcasting application programUnder state, can directly shake terminal, during user shakes terminal, terminal can detect terminal speed (or accelerateDegree), maximum position amplitude of variation, when the speed of terminal reaches pre-set velocity threshold value, and the maximum position amplitude of variation of terminal reachesDuring to predetermined amplitude threshold value, direct broadcasting room can be sent to server and obtain request.
Additionally, user can shake terminal in terminal currently without in the case of playing live video, it is also possible in terminalShaking terminal in the case of playing live video, the present invention is not limited thereof.
Optionally, in the case of terminal plays live video, the situation of terminal, terminal to server are shaken for userThe direct broadcasting room sent obtains the direct broadcasting room mark that can also carry the first direct broadcasting room belonging to current live video in request.
Step 102, server receives the direct broadcasting room acquisition request that terminal sends, and wherein, direct broadcasting room obtains in request and carriesThere is the account identification of the logon account of terminal.
In force, after terminal to server sends direct broadcasting room acquisition request, server can receive the straight of terminal transmissionObtain request between broadcasting, and it is resolved, obtain the account identification of the logon account of the terminal wherein carried.
Obtain the situation of the direct broadcasting room mark carrying the first direct broadcasting room in request for direct broadcasting room, server receives endAfter the direct broadcasting room that end sends obtains request, it is also possible to obtain the direct broadcasting room mark of the first direct broadcasting room wherein carried.
Step 103, server according to the account identification prestored, live video type, viewing duration corresponding relation,Determine that and viewing duration corresponding with the account identification of logon account meets the target live video type of preset duration condition.
Wherein, live video type can be the type of live video, can be such as Chinese musical telling type, song and dance type, cross-talk typeDeng.
In force, server can record each account at live to each live video type of default historical period(wherein, default historical period can be default history start time to the period of current time, viewing for the viewing duration of videoDuration can be the accumulative viewing duration in default historical period), i.e. server can store the account mark of each accountKnowledge, live video type, the corresponding relation of viewing duration.
Elongate member when can be previously provided with in server, wherein, it is live that preset duration condition may be used for choosing targetVideo type.Server receives after the direct broadcasting room that terminal sends obtains request, can be in each account identification prestored, straightBroadcast in the corresponding relation of video type, viewing duration, determine the live video class that the account identification of the logon account of terminal is correspondingType, and the viewing duration that each live video type is corresponding, and then, it may be determined that viewing duration meets the straight of preset duration conditionBroadcast video type (i.e. target live video type).
Optionally, live video type the longest for viewing duration can be regarded as meet the live of preset duration condition regardsFrequently type, accordingly, the processing procedure of step 103 can be such that according to prestore account identification, live video type,The corresponding relation of viewing duration, determines corresponding with the account identification of logon account and that viewing duration is the longest target live videoType.
In force, after server receives the direct broadcasting room acquisition request that terminal sends, can be in each account prestoredFamily mark, live video type, viewing duration corresponding relation in, determine corresponding straight of the account identification of the logon account of terminalBroadcast video type, and the viewing duration that each live video type is corresponding, and then, it may be determined that viewing the longest live of duration regardsFrequently type (i.e. target live video type).
Step 104, server links close corresponding with live video type according to the direct broadcasting room of the direct broadcasting room prestoredSystem, determines the target direct broadcasting room link that target live video type is corresponding.
In force, server can be previously stored with the direct broadcasting room link of each direct broadcasting room and the live video of direct broadcasting roomThe corresponding relation of type.After server gets target live video type, can determine that target is straight in above-mentioned corresponding relationBroadcast direct broadcasting room link corresponding to video type (i.e. target direct broadcasting room link).
Obtain the situation of the direct broadcasting room mark carrying the first direct broadcasting room in request for direct broadcasting room, server determines meshAfter mark live video type, target can be determined in the corresponding relation that the direct broadcasting room of direct broadcasting room links with live video typeThe direct broadcasting room link (i.e. target direct broadcasting room link) of the direct broadcasting room in addition to the first direct broadcasting room that live video type is corresponding, alsoThat is, the direct broadcasting room of the target direct broadcasting room link correspondence determined is the direct broadcasting room in addition to the first direct broadcasting room.
Optionally, server can store direct broadcasting room link and the live video of the higher direct broadcasting room of liveness scoringThe corresponding relation of type, accordingly, the processing procedure of step 104 can be such that the liveness scoring according to prestoring reachesThe direct broadcasting room link of the direct broadcasting room of predetermined threshold value and the corresponding relation of live video type, determine that target live video type is correspondingTarget direct broadcasting room link.
In force, can be previously provided with the detection cycle in server, in every default detection cycle, server can be trueThe liveness scoring of fixed each direct broadcasting room, and determine that liveness scoring reaches the direct broadcasting room of predetermined threshold value, and then, can store and determineThe direct broadcasting room link of the direct broadcasting room gone out and the corresponding relation of live video type, wherein, predetermined threshold value can be by technical staffPre-set, it is also possible to be the meansigma methods of the liveness scoring of each direct broadcasting room corresponding to a upper detection cycle.Server obtainsAfter getting target live video type, can determine, in this corresponding relation, the direct broadcasting room chain that target live video type is correspondingConnect (i.e. target direct broadcasting room link), so, it is recommended that belong to, to the direct broadcasting room of terminal, the direct broadcasting room that liveness scoring is higher, the most rightThe live video answered is more excellent, when user watches live video, it is easier to attract user, in order to avoid owing to live video is the most smartColor so that user's repeatedly triggering terminal obtains live video to server, it is thus possible to improve the efficiency of viewing live video.
Optionally, the direct broadcasting room of the direct broadcasting room that server can obtain the liveness scoring maximum of correspondence links, accordingly,Processing procedure can be such that the direct broadcasting room link, straight of the direct broadcasting room reaching predetermined threshold value according to the liveness scoring prestoredBroadcast video type, the corresponding relation of liveness scoring, determine and liveness scoring maximum corresponding with target live video typeTarget direct broadcasting room link.
In force, server can determine the liveness scoring between each main broadcaster based on said method, and determines livenessScoring reaches the direct broadcasting room of predetermined threshold value, and then, the direct broadcasting room link of the direct broadcasting room determined, live video class can be storedThe corresponding relation of type, liveness scoring.After server gets target live video type, can be in this corresponding relation, reallyThe live video type that sets the goal is corresponding, and the direct broadcasting room link (i.e. target direct broadcasting room link) that liveness scoring is maximum.
Optionally, server can determine each live according to the parameter value of default liveness parameter corresponding to each direct broadcasting roomBetween liveness scoring, accordingly, processing procedure can be such that when reaching the default detection cycle, obtain current detection weekIn phase, the parameter value of the default liveness parameter that each direct broadcasting room is corresponding;Enliven according to corresponding the presetting of each direct broadcasting room gotThe parameter value of degree parameter, determines the liveness scoring that each direct broadcasting room is corresponding;The liveness determined scoring is reached predetermined threshold valueThe direct broadcasting room link of direct broadcasting room and live video type, in corresponding storage to corresponding relation.
In force, server can be previously stored with liveness parameter, whenever reaching the default detection cycle, clothesBusiness device can obtain in the current detection cycle, the parameter value of the default liveness parameter that each direct broadcasting room is corresponding, if presetting activeThe quantity of degree parameter is one, then server can be by the parameter of default liveness parameter corresponding for each direct broadcasting room of gettingValue, is defined as the liveness scoring that each direct broadcasting room is corresponding, if the quantity presetting liveness parameter is multiple, then server is permissibleBy the parameter value sum of multiple default liveness parameter corresponding for each direct broadcasting room got, it is defined as each direct broadcasting room correspondingLiveness scoring.After obtaining the liveness scoring of each direct broadcasting room, liveness scoring can be reached predetermined threshold value by serverDirect broadcasting room link and the live video type of direct broadcasting room, in corresponding storage to corresponding relation.
Optionally, preset liveness parameter and include one or more in following parameter: maximum spectator attendance, speech numberAmount, the reception present amount of money.
Wherein, maximum spectator attendance can be within a detection cycle, the peak value of the spectator attendance of direct broadcasting room, number of making a speechAmount can be within a detection cycle, the number of times sum of each account in direct broadcasting room speech, receive the present amount of money can beIn one detection cycle, the total amount of the present that the main broadcaster that direct broadcasting room is corresponding receives.
Optionally, each default liveness parameter can also be to there being liveness weight, and accordingly, processing procedure can be asUnder: obtain and preset the liveness weight that liveness parameter is corresponding;According to the default liveness ginseng that each direct broadcasting room got is correspondingThe parameter value of number and liveness weight corresponding to each default liveness parameter, determine that the liveness that each direct broadcasting room is corresponding is commentedPoint.
In force, server can be previously stored with the liveness weight that default liveness parameter is corresponding, wherein, in advanceIf liveness parameter can be maximum spectator attendance, speech quantity, receive the present amount of money, the weight receiving the present amount of money can beGreatly, next to that maximum spectator attendance, it is speech quantity again.In every default detection cycle, server is except obtaining each direct broadcasting roomOutside the parameter value of corresponding default liveness parameter, it is also possible to obtain the liveness power that each default liveness parameter is correspondingWeight.For each direct broadcasting room, server can be by the parameter value of each default liveness parameter corresponding for direct broadcasting room and eachThe liveness weight presetting liveness parameter corresponding is multiplied respectively, then by each product addition, obtains the work that this direct broadcasting room is correspondingJerk is marked.
Step 105, server sends the link of target direct broadcasting room to terminal.
In force, after server determines the link of target direct broadcasting room, the link of target direct broadcasting room can be sent to terminal.
Step 106, terminal receives the target direct broadcasting room link that server sends.
In force, server is after terminal sends the link of target direct broadcasting room, and terminal can receive the mesh that server sendsMark direct broadcasting room link.
Step 107, terminal links based on target direct broadcasting room, plays live video.
In force, after terminal receives the target direct broadcasting room link that server sends, can automatically play live video,When can also be the triggering command that terminal receives the link of target direct broadcasting room, play live video.
In the embodiment of the present invention, terminal can send direct broadcasting room to server and obtain request, and wherein, direct broadcasting room obtains requestIn carry the account identification of logon account of terminal, server receives after the direct broadcasting room that terminal sends obtains request, permissibleAccording to the account identification prestored, live video type, the corresponding relation of viewing duration, determine the account mark with logon accountSensible correspondence and viewing duration meet the target live video type of preset duration condition, and then, it may be determined that live video classType is the target direct broadcasting room of target live video type, it is possible to by target direct broadcasting room chain corresponding for the target direct broadcasting room determinedConnecing, send to terminal, terminal can receive the target direct broadcasting room link that server sends, and then, can be based on target direct broadcasting roomLink, plays live video.So, when user wants the live video watching the type oneself liked, only need to by terminal toServer sends direct broadcasting room and obtains request, and server i.e. can regard to the live of live video type that terminal propelling movement user likesFrequently, user is without repeatedly attempting, it is thus possible to improve the efficiency of viewing live video.
Based on identical technology design, the embodiment of the present invention additionally provides a kind of server, as shown in Figure 4, this serverIncluding:
Receiver module 410, the direct broadcasting room sent for receiving terminal obtains request, and wherein, described direct broadcasting room obtains requestIn carry the account identification of logon account of described terminal;
First determines module 420, is used for according to the account identification prestored, live video type, watches the right of durationShould be related to, determine that and viewing duration corresponding with the account identification of described logon account meets the target of preset duration condition liveVideo type;
Second determines module 430, for the direct broadcasting room link according to the direct broadcasting room prestored and live video typeCorresponding relation, determines the target direct broadcasting room link that described target live video type is corresponding;
Sending module 440, for sending the link of described target direct broadcasting room to described terminal.
Optionally, described first determines module 420, is used for:
According to the account identification prestored, live video type, the corresponding relation of viewing duration, determine and described loginThe target live video type that the account identification of account is corresponding and viewing duration is the longest.
Optionally, described second determines module 430, is used for:
Direct broadcasting room link and the live video class of the direct broadcasting room of predetermined threshold value is reached according to the liveness scoring prestoredThe corresponding relation of type, determines the target direct broadcasting room link that described target live video type is corresponding.
Optionally, described second determines module 430, is used for:
The direct broadcasting room link of the direct broadcasting room of predetermined threshold value, live video class is reached according to the liveness scoring prestoredThe corresponding relation of type, liveness scoring, determines corresponding with described target live video type and that liveness scoring is maximum meshMark direct broadcasting room link.
Optionally, as it is shown in figure 5, described server also includes:
Acquisition module 450, for when reaching the default detection cycle, obtains in the current detection cycle, each direct broadcasting room pairThe parameter value of the default liveness parameter answered;
3rd determines module 460, for the parameter value of the default liveness parameter corresponding according to each direct broadcasting room got,Determine the liveness scoring that described each direct broadcasting room is corresponding;
Memory module 470, for reaching the direct broadcasting room of the direct broadcasting room of described predetermined threshold value by the liveness determined scoringLink and live video type, in corresponding storage to described corresponding relation.
Optionally, as shown in Figure 6, the described 3rd determines module 460, including:
Obtain submodule 4601, for obtaining the liveness weight that described default liveness parameter is corresponding;
Determine submodule 4602, for the default liveness parameter corresponding according to each direct broadcasting room of getting parameter value,And the liveness weight that each default liveness parameter is corresponding, determine the liveness scoring that described each direct broadcasting room is corresponding.
Optionally, described default liveness parameter includes one or more in following parameter:
Maximum spectator attendance, speech quantity, the reception present amount of money.
Based on identical technology design, the embodiment of the present invention additionally provides a kind of terminal, as it is shown in fig. 7, this terminal includes:
Sending module 710, obtains request for sending direct broadcasting room to server, and wherein, described direct broadcasting room obtains in requestCarry the account identification of the logon account of terminal;
Receiver module 720, for receiving the target direct broadcasting room link that described server sends;
Playing module 730, for linking based on described target direct broadcasting room, plays live video.
Optionally, described sending module 710, it is used for:
When detecting that described terminal shakes, send direct broadcasting room to server and obtain request.
In the embodiment of the present invention, terminal can send direct broadcasting room to server and obtain request, and wherein, direct broadcasting room obtains requestIn carry the account identification of logon account of terminal, server receives after the direct broadcasting room that terminal sends obtains request, permissibleAccording to the account identification prestored, live video type, the corresponding relation of viewing duration, determine the account mark with logon accountSensible correspondence and viewing duration meet the target live video type of preset duration condition, and then, it may be determined that live video classType is the target direct broadcasting room of target live video type, it is possible to by target direct broadcasting room chain corresponding for the target direct broadcasting room determinedConnecing, send to terminal, terminal can receive the target direct broadcasting room link that server sends, and then, can be based on target direct broadcasting roomLink, plays live video.So, when user wants the live video watching the type oneself liked, only need to by terminal toServer sends direct broadcasting room and obtains request, and server i.e. can regard to the live of live video type that terminal propelling movement user likesFrequently, user is without repeatedly attempting, it is thus possible to improve the efficiency of viewing live video.
It should be understood that above-described embodiment provide play live video device play live video time, only withThe division of above-mentioned each functional module is illustrated, and in actual application, can distribute above-mentioned functions by not as desiredWith functional module complete, the internal structure of equipment will be divided into different functional modules, with complete described above allOr partial function.It addition, above-described embodiment device playing live video provided and the method playing live video are implementedExample belongs to same design, and it implements process and refers to embodiment of the method, repeats no more here.
Based on identical technology design, embodiments provide a kind of system playing live video, described systemIncluding terminal and server, wherein:
Described terminal, obtains request for sending direct broadcasting room to described server, and wherein, described direct broadcasting room obtains in requestCarry the account identification of the logon account of terminal, receive the target direct broadcasting room link that described server sends, based on described meshMark direct broadcasting room link, plays live video;
Described server, the direct broadcasting room sent for receiving described terminal obtains request, according to the account mark prestoredKnowledge, live video type, viewing duration corresponding relation, determine corresponding with the account identification of described logon account and viewing timeThe long target live video type meeting preset duration condition, links according to the direct broadcasting room of the direct broadcasting room prestored and regards with liveFrequently the corresponding relation of type, determines the target direct broadcasting room link that described target live video type is corresponding, sends to described terminalDescribed target direct broadcasting room links.
In the embodiment of the present invention, terminal can send direct broadcasting room to server and obtain request, and wherein, direct broadcasting room obtains requestIn carry the account identification of logon account of terminal, server receives after the direct broadcasting room that terminal sends obtains request, permissibleAccording to the account identification prestored, live video type, the corresponding relation of viewing duration, determine the account mark with logon accountSensible correspondence and viewing duration meet the target live video type of preset duration condition, and then, it may be determined that live video classType is the target direct broadcasting room of target live video type, it is possible to by target direct broadcasting room chain corresponding for the target direct broadcasting room determinedConnecing, send to terminal, terminal can receive the target direct broadcasting room link that server sends, and then, can be based on target direct broadcasting roomLink, plays live video.So, when user wants the live video watching the type oneself liked, only need to by terminal toServer sends direct broadcasting room and obtains request, and server i.e. can regard to the live of live video type that terminal propelling movement user likesFrequently, user is without repeatedly attempting, it is thus possible to improve the efficiency of viewing live video.
Fig. 8 is the structural representation of the server that the embodiment of the present invention provides.This server 1900 can be because of configuration or performanceDifferent and produce bigger difference, one or more central processing units (central can be includedProcessingunits, CPU) 1922 (such as, one or more processors) and memorizeies 1932, one or one withThe storage medium 1930 (such as one or more mass memory units) of upper storage application program 1942 or data 1944.ItsIn, memorizer 1932 and storage medium 1930 can be of short duration storage or persistently store.It is stored in the program of storage medium 1930Can include one or more modules (diagram does not marks), each module can include a series of instructions in serverOperation.Further, central processing unit 1922 could be arranged to communicate with storage medium 1930, performs on server 1900A series of command operatings in storage medium 1930.
Server 1900 can also include one or more power supplys 1926, one or more wired or wireless netsNetwork interface 1950, one or more input/output interfaces 1958, one or more keyboards 1956, and/or, one orMore than one operating system 1941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTMEtc..
Server 1900 can include memorizer, and one or more than one program, one of them or oneIndividual procedure above is stored in memorizer, and is configured to be performed one or by one or more than one processorIndividual procedure above comprises the instruction for carrying out following operation:
Receiving the direct broadcasting room acquisition request that terminal sends, wherein, described direct broadcasting room obtains in request and carries described terminalThe account identification of logon account;
According to the account identification prestored, live video type, the corresponding relation of viewing duration, determine and described loginThe account identification of account is corresponding and viewing duration meets the target live video type of preset duration condition;
Direct broadcasting room link according to the direct broadcasting room prestored and the corresponding relation of live video type, determine described targetThe target direct broadcasting room link that live video type is corresponding;
The link of described target direct broadcasting room is sent to described terminal.
Optionally, account identification that described basis prestores, live video type, the corresponding relation of viewing duration, reallyFixed corresponding with the account identification of described logon account and viewing duration meets the target live video type of preset duration condition,Including:
According to the account identification prestored, live video type, the corresponding relation of viewing duration, determine and described loginThe target live video type that the account identification of account is corresponding and viewing duration is the longest.
Optionally, the direct broadcasting room link of the direct broadcasting room that described basis prestores and the corresponding relation of live video type,Determine the target direct broadcasting room link that described target live video type is corresponding, including:
Direct broadcasting room link and the live video class of the direct broadcasting room of predetermined threshold value is reached according to the liveness scoring prestoredThe corresponding relation of type, determines the target direct broadcasting room link that described target live video type is corresponding.
Optionally, the scoring of described basis prestores liveness reach the direct broadcasting room link of the direct broadcasting room of predetermined threshold value withThe corresponding relation of live video type, determines the target direct broadcasting room link that described target live video type is corresponding, including:
The direct broadcasting room link of the direct broadcasting room of predetermined threshold value, live video class is reached according to the liveness scoring prestoredThe corresponding relation of type, liveness scoring, determines corresponding with described target live video type and that liveness scoring is maximum meshMark direct broadcasting room link.
Optionally, described method also includes:
When reaching the default detection cycle, obtain in the current detection cycle, the default liveness ginseng that each direct broadcasting room is correspondingThe parameter value of number;
According to the parameter value of default liveness parameter corresponding to each direct broadcasting room got, determine that described each direct broadcasting room is correspondingLiveness scoring;
The liveness determined scoring is reached direct broadcasting room link and the live video class of the direct broadcasting room of described predetermined threshold valueType, in corresponding storage to described corresponding relation.
Optionally, the parameter value of the default liveness parameter that each direct broadcasting room that described basis gets is corresponding, determine describedThe liveness scoring that each direct broadcasting room is corresponding, including:
Obtain the liveness weight that described default liveness parameter is corresponding;
Parameter value according to default liveness parameter corresponding to each direct broadcasting room got and each default liveness ginsengThe liveness weight that number is corresponding, determines the liveness scoring that described each direct broadcasting room is corresponding.
Optionally, described default liveness parameter includes one or more in following parameter:
Maximum spectator attendance, speech quantity, the reception present amount of money.
In the embodiment of the present invention, terminal can send direct broadcasting room to server and obtain request, and wherein, direct broadcasting room obtains requestIn carry the account identification of logon account of terminal, server receives after the direct broadcasting room that terminal sends obtains request, permissibleAccording to the account identification prestored, live video type, the corresponding relation of viewing duration, determine the account mark with logon accountSensible correspondence and viewing duration meet the target live video type of preset duration condition, and then, it may be determined that live video classType is the target direct broadcasting room of target live video type, it is possible to by target direct broadcasting room chain corresponding for the target direct broadcasting room determinedConnecing, send to terminal, terminal can receive the target direct broadcasting room link that server sends, and then, can be based on target direct broadcasting roomLink, plays live video.So, when user wants the live video watching the type oneself liked, only need to by terminal toServer sends direct broadcasting room and obtains request, and server i.e. can regard to the live of live video type that terminal propelling movement user likesFrequently, user is without repeatedly attempting, it is thus possible to improve the efficiency of viewing live video.
Refer to Fig. 9, it illustrates the terminal structure schematic diagram with Touch sensitive surface involved by the embodiment of the present invention, shouldTerminal may be used for the method playing live video implementing to provide in above-described embodiment.Specifically:
Terminal 900 can include RF (Radio Frequency, radio frequency) circuit 110, include one or more metersThe memorizer 120 of calculation machine readable storage medium storing program for executing, input block 130, display unit 140, sensor 150, voicefrequency circuit 160,WiFi (wireless fidelity, Wireless Fidelity) module 170, include one or more than one process core processThe parts such as device 180 and power supply 190.It will be understood by those skilled in the art that the terminal structure shown in Fig. 9 is not intended that rightThe restriction of terminal, can include that ratio illustrates more or less of parts, or combine some parts, or different parts clothPut.Wherein:
RF circuit 110 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, especially, by base stationAfter downlink information receives, transfer to one or more than one processor 180 processes;It addition, be sent to relating to up dataBase station.Generally, RF circuit 110 includes but not limited to antenna, at least one amplifier, tuner, one or more agitator, useFamily identity module (SIM) card, transceiver, bonder, LNA (Low Noise Amplifier, low-noise amplifier), duplexDevice etc..Additionally, RF circuit 110 can also be communicated with network and other equipment by radio communication.Described radio communication can makeBy arbitrary communication standard or agreement, include but not limited to GSM (Global System of Mobile communication, entirelyBall mobile communcations system), GPRS (General Packet Radio Service, general packet radio service), CDMA (CodeDivision Multiple Access, CDMA), WCDMA (Wideband Code Division MultipleAccess, WCDMA), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (ShortMessaging Service, Short Message Service) etc..
Memorizer 120 can be used for storing software program and module, and processor 180 is stored in memorizer 120 by operationSoftware program and module, thus perform various function application and data process.Memorizer 120 can mainly include storing journeySequence district and storage data field, wherein, storage program area can store the application program (ratio needed for operating system, at least one functionSuch as sound-playing function, image player function etc.) etc.;Storage data field can store the number that the use according to terminal 900 is createdAccording to (such as voice data, phone directory etc.) etc..Additionally, memorizer 120 can include high-speed random access memory, it is also possible to bagInclude nonvolatile memory, for example, at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memorizer 120 can also include Memory Controller, to provide processor 180 and input block 130 to memorizerThe access of 120.
Input block 130 can be used for receiving numeral or the character information of input, and produces and user setup and functionControl relevant keyboard, mouse, action bars, optics or the input of trace ball signal.Specifically, input block 130 can include touchingSensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touches display screen or Trackpad, can collect useFamily thereon or neighbouring touch operation (such as user uses any applicable object such as finger, stylus or adnexa at touch-sensitive tableOperation on face 131 or near Touch sensitive surface 131), and drive corresponding attachment means according to formula set in advance.Optional, Touch sensitive surface 131 can include touch detecting apparatus and two parts of touch controller.Wherein, touch detecting apparatus detection is usedThe touch orientation at family, and detect the signal that touch operation brings, transmit a signal to touch controller;Touch controller is from touchReceive touch information on detection device, and be converted into contact coordinate, then give processor 180, and processor 180 can be receivedThe order sent also is performed.Furthermore, it is possible to use the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waveRealize Touch sensitive surface 131.Except Touch sensitive surface 131, input block 130 can also include other input equipments 132.Specifically,Other input equipments 132 can include but not limited to physical keyboard, function key (such as volume control button, switch key etc.),One or more in trace ball, mouse, action bars etc..
Display unit 140 can be used for the information that inputted by user of display or the information being supplied to user and terminal 900Various graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its combination in any.Display unit 140 can include display floater 141, optionally, can use LCD (Liquid Crystal Display, liquid crystalShow device), the form such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) configure display floater141.Further, Touch sensitive surface 131 can cover display floater 141, when Touch sensitive surface 131 detects thereon or neighbouring touchingAfter touching operation, send processor 180 to determine the type of touch event, with preprocessor 180 according to the type of touch eventDisplay floater 141 provides corresponding visual output.Although in fig .9, Touch sensitive surface 131 and display floater 141 are conductsTwo independent parts realize input and input function, but in some embodiments it is possible to by Touch sensitive surface 131 and displayPanel 141 is integrated and realizes input and output function.
Terminal 900 may also include at least one sensor 150, such as optical sensor, motion sensor and other sensingsDevice.Specifically, optical sensor can include ambient light sensor and proximity transducer, and wherein, ambient light sensor can be according to environmentThe light and shade of light regulates the brightness of display floater 141, and proximity transducer can cut out display when terminal 900 moves in one's earPanel 141 and/or backlight.As the one of motion sensor, Gravity accelerometer can detect in all directions (generallyThree axles) size of acceleration, can detect that size and the direction of gravity time static, can be used for identifying the application (ratio of mobile phone attitudeSuch as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;ExtremelyOther sensors such as the gyroscope that can also configure in terminal 900, barometer, drimeter, thermometer, infrared ray sensor, at thisRepeat no more.
Voicefrequency circuit 160, speaker 161, microphone 162 can provide the audio interface between user and terminal 900.Audio frequencyThe signal of telecommunication after the voice data conversion that circuit 160 can will receive, is transferred to speaker 161, speaker 161 is converted to soundTone signal exports;On the other hand, the acoustical signal of collection is converted to the signal of telecommunication by microphone 162, voicefrequency circuit 160 after receivingBeing converted to voice data, then after being processed by voice data output processor 180, through RF circuit 110, to be sent to such as, another is eventuallyEnd, or voice data is exported to memorizer 120 to process further.Voicefrequency circuit 160 is also possible that earphone jack,To provide the communication of peripheral hardware earphone and terminal 900.
WiFi belongs to short range wireless transmission technology, and terminal 900 can help user's transceiver electronics by WiFi module 170Mail, browsing webpage and access streaming video etc., it has provided the user wireless broadband internet and has accessed.Although Fig. 9 illustratesWiFi module 170, but it is understood that, it is also not belonging to must be configured into of terminal 900, can exist as required completelyOmit in the scope of the essence not changing invention.
Processor 180 is the control centre of terminal 900, utilizes various interface and each portion of the whole mobile phone of connectionPoint, it is stored in the software program in memorizer 120 and/or module by running or performing, and calls and be stored in memorizer 120Interior data, perform the various functions of terminal 900 and process data, thus mobile phone is carried out integral monitoring.Optionally, processor180 can include one or more process core;Preferably, processor 180 can integrated application processor and modem processor,Wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes nothingLine communicates.It is understood that above-mentioned modem processor can not also be integrated in processor 180.
Terminal 900 also includes the power supply 190 (such as battery) powered to all parts, it is preferred that power supply can be by electricityManagement system is logically contiguous with processor 180, thus realizes management charging, electric discharge and power consumption by power-supply management systemThe functions such as management.Power supply 190 can also include one or more direct current or alternating current power supply, recharging system, power supply eventBarrier testing circuit, power supply changeover device or the random component such as inverter, power supply status indicator.
Although not shown, terminal 900 can also include photographic head, bluetooth module etc., does not repeats them here.Specifically in this realityExecuting in example, the display unit of terminal 900 is touch-screen display, and terminal 900 also includes memorizer, and one or oneAbove program, one of them or more than one program is stored in memorizer, and be configured to by one or one withUpper processor performs to state one or more than one program comprises the instruction for carrying out following operation:
Sending direct broadcasting room to server and obtain request, wherein, described direct broadcasting room obtains the login carrying terminal in requestThe account identification of account;
Receive the target direct broadcasting room link that described server sends;
Link based on described target direct broadcasting room, play live video.
Optionally, described acquisition to server transmission direct broadcasting room is asked, including:
When detecting that described terminal shakes, send direct broadcasting room to server and obtain request.
In the embodiment of the present invention, terminal can send direct broadcasting room to server and obtain request, and wherein, direct broadcasting room obtains requestIn carry the account identification of logon account of terminal, server receives after the direct broadcasting room that terminal sends obtains request, permissibleAccording to the account identification prestored, live video type, the corresponding relation of viewing duration, determine the account mark with logon accountSensible correspondence and viewing duration meet the target live video type of preset duration condition, and then, it may be determined that live video classType is the target direct broadcasting room of target live video type, it is possible to by target direct broadcasting room chain corresponding for the target direct broadcasting room determinedConnecing, send to terminal, terminal can receive the target direct broadcasting room link that server sends, and then, can be based on target direct broadcasting roomLink, plays live video.So, when user wants the live video watching the type oneself liked, only need to by terminal toServer sends direct broadcasting room and obtains request, and server i.e. can regard to the live of live video type that terminal propelling movement user likesFrequently, user is without repeatedly attempting, it is thus possible to improve the efficiency of viewing live video.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can pass through hardwareCompleting, it is also possible to instruct relevant hardware by program and complete, described program can be stored in a kind of computer-readableIn storage medium, storage medium mentioned above can be read only memory, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all spirit in the present invention andWithin principle, any modification, equivalent substitution and improvement etc. made, should be included within the scope of the present invention.