Summary of the invention
The embodiment of the invention provides a kind of virtual gift display method and devices, can solve the relevant technologies bandwagon effectThe problem of difference.The technical solution is as follows:
In a first aspect, providing a kind of virtual gift display method, comprising:
Within the period that the main broadcaster user of first terminal is broadcast live, when the special efficacy of giving for detecting virtual present is openedWhen condition is triggered, that opens the virtual present gives special efficacy;
It is given in the preset duration after special efficacy is opened described, receives the present that second terminal is sent and give instruction, it is describedPresent give instruction be used to indicate the spectators user of the second terminal to the main broadcaster user give the virtual present andThe quantity of the virtual present;
The spectators user for counting each second terminal gives the present total quantity of the virtual present to the main broadcaster user;
According to the present total quantity corresponding destination number stage, special-effect information is given in generation, described to give special efficacy letterThe special efficacy of giving for showing the destination number stage corresponding virtual present is ceased, the destination number stage is multipleIn the quantity stage, amount threshold is less than or equal to the maximum quantity rank of amount threshold in the quantity stage of the present total quantitySection, different quantity stages correspond to different amount threshold and different give special efficacy;
The special-effect information of giving is sent to each second terminal, the special-effect information of giving is for described each secondWhat terminal showed the virtual present to each spectators user gives special efficacy.
It is described when detecting when giving special efficacy unlocking condition and being triggered of virtual present in a kind of possible implementation,That opens the virtual present gives special efficacy, comprising:
After receiving the present for the virtual present and giving instruction, the spectators user of each second terminal is to describedWhen the present total quantity that main broadcaster user gives the virtual present is greater than first threshold, that opens the virtual present gives spyEffect;Or,
Instruction is given when receiving the present for the virtual present, and transmission present gives the second terminal of instructionWhen the user gradation of spectators user is greater than second threshold, that opens the virtual present gives special efficacy;Or,
Instruction is given when receiving the present for the virtual present, and the present grade of the virtual present is greater than theWhen three threshold values, that opens the virtual present gives special efficacy;Or,
Give instruction when receiving the present for the virtual present, and receiving time within a preset period of time when, openThat opens the virtual present gives special efficacy.
In a kind of possible implementation, the special-effect information of giving is also used to show the present total quantity and describedThe present total quantity corresponding destination number stage.
It is described to be given described after special-effect information is sent to each second terminal in a kind of possible implementation, instituteState method further include:
When detecting when giving special efficacy closedown condition and being triggered of virtual present, that closes the virtual present gives spyEffect.
It is described when detecting when giving special efficacy closedown condition and being triggered of virtual present in a kind of possible implementation,That closes the virtual present gives special efficacy, comprising:
When the present total quantity is greater than destination number threshold value, the special efficacy of giving of the virtual present, the mesh are closedMarking amount threshold is the maximum quantity threshold value in corresponding amount threshold of the multiple quantity stage.
In a kind of possible implementation, it is described close the virtual present give special efficacy after, the method is also wrappedIt includes:
Special efficacy Stop message is sent to each second terminal, the special efficacy Stop message is used to indicate stopping and shows instituteThat states virtual present gives special efficacy.
Second aspect provides a kind of virtual gift display method, comprising:
Send present to server and give instruction, the present give instruct the spectators user for being used to indicate second terminal toThe main broadcaster user of first terminal gives the quantity of virtual present and the virtual present;
The special-effect information of giving of the server transmission is received, the special-effect information of giving is for showing the destination number stageThe corresponding virtual present gives special efficacy, and the destination number stage is the spectators user of each second terminal to the masterBroadcasting user gives the present total quantity corresponding quantity stage of the virtual present, and the different quantity stages corresponds to different quantityThreshold value and different give special efficacy;
Special-effect information is given according to described, show the virtual present gives special efficacy.
In a kind of possible implementation, the special-effect information of giving is also used to show the present total quantity and describedThe present total quantity corresponding destination number stage.
It is described to be sent after present gives instruction to server in a kind of possible implementation, the method also includes:
When receiving the special efficacy Stop message that the server is sent, stop the displaying virtual present gives spyEffect.
The third aspect provides a kind of virtual present displaying device, comprising:
Opening module, in the period being broadcast live for the main broadcaster user in first terminal, when detecting virtual presentWhen giving special efficacy unlocking condition and being triggered, that opens the virtual present gives special efficacy;
Receiving module receives the present that second terminal is sent for giving in the preset duration after special efficacy is opened describedGive instruction, the present give instruction be used to indicate the second terminal spectators user given to the main broadcaster user it is describedThe quantity of virtual present and the virtual present;
Statistical module, the spectators user for counting each second terminal give the virtual present to the main broadcaster userPresent total quantity;
Generation module, for according to the present total quantity corresponding destination number stage, special-effect information to be given in generation, instituteIt states and gives special-effect information and give special efficacy, the number of targets for show the destination number stage corresponding virtual presentThe amount stage is in multiple quantity stages, and amount threshold is most less than or equal to amount threshold in the quantity stage of the present total quantityBig quantity stage, different quantity stages correspond to different amount threshold and different give special efficacy;
Sending module, it is described to give special-effect information use for the special-effect information of giving to be sent to each second terminalSpecial efficacy is given in what each second terminal showed the virtual present to each spectators user.
In a kind of possible implementation, the opening module is used to give when receiving the present for the virtual presentAfter sending instruction, the spectators user of each second terminal is greater than to the present total quantity that the main broadcaster user gives the virtual presentWhen first threshold, that opens the virtual present gives special efficacy;Or,
The opening module is used to give instruction when receiving the present for the virtual present, and transmission present is givenWhen the user gradation of the spectators user of the second terminal of instruction is greater than second threshold, that opens the virtual present gives special efficacy;Or,
The opening module is used to give instruction, and the virtual present when receiving the present for the virtual presentPresent grade be greater than third threshold value when, that opens the virtual present gives special efficacy;Or,
The opening module is used to give instruction when receiving the present for the virtual present, and receiving time is pre-If when in the period, that opens the virtual present gives special efficacy.
In a kind of possible implementation, the special-effect information of giving is also used to show the present total quantity and describedThe present total quantity corresponding destination number stage.
In a kind of possible implementation, described device further include:
Closedown module, for closing described virtual when detecting when giving special efficacy closedown condition and being triggered of virtual presentPresent gives special efficacy.
In a kind of possible implementation, the closedown module is used to be greater than destination number threshold value when the present total quantityWhen, the special efficacy of giving of the virtual present is closed, the destination number threshold value is corresponding quantity threshold of the multiple quantity stageMaximum quantity threshold value in value.
In a kind of possible implementation, the sending module, which is also used to send special efficacy to each second terminal, to be stoppedInformation, the special efficacy Stop message be used to indicate stop showing the virtual present give special efficacy.
Fourth aspect provides a kind of virtual present displaying device, comprising:
Sending module gives instruction for sending present to server, and the present gives instruction and is used to indicate second eventuallyThe spectators user at end gives the quantity of virtual present and the virtual present to the main broadcaster user of first terminal;
Receiving module, for receiving the special-effect information of giving of the server transmission, the special-effect information of giving is for opening upShow the special efficacy of giving of the destination number stage corresponding virtual present, the destination number stage is the sight of each second terminalThe present total quantity that many users give the virtual present to the main broadcaster user corresponding quantity stage, different quantity stagesCorresponding different amount threshold and different give special efficacy;
Display module, for giving special-effect information according to, show the virtual present gives special efficacy.
In a kind of possible implementation, the special-effect information of giving is also used to show the present total quantity and describedThe present total quantity corresponding destination number stage.
In a kind of possible implementation, the display module is also used to stop when the special efficacy for receiving the server transmissionOnly when information, stop the displaying virtual present gives special efficacy.
5th aspect, provides a kind of server, including processor and memory;The memory is calculated for storingMachine program;The processor realizes any reality of first aspect for executing the computer program stored on the memoryMethod and step described in existing mode.
6th aspect, provides a kind of terminal, including processor and memory;The memory, for storing computerProgram;The processor realizes any realization of second aspect for executing the computer program stored on the memoryMethod and step described in mode.
7th aspect, provides a kind of computer readable storage medium, is stored in the computer readable storage mediumComputer program, the computer program realize side described in any implementation of any of the above-described aspect when being executed by processorMethod step.
Technical solution bring beneficial effect provided in an embodiment of the present invention includes at least:
By in the preset duration given after special efficacy for opening virtual present, after receiving and giving instruction, unite in real timeThe present total quantity that each spectators user gives virtual present to main broadcaster user is counted, and according to the corresponding quantity rank of present total quantitySection, generation give special-effect information and are sent to terminal, allow what terminal showed virtual present to give special efficacy, improve virtualThe bandwagon effect of present, and due to the different number stage correspond to it is different give special efficacy, in this way, reaching different in present total quantityThe quantity stage when, server can be generated it is different give special-effect information, allow terminal to show the difference of virtual presentSpecial efficacy is given, the bandwagon effect of virtual present is further improved.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present inventionFormula is described in further detail.
Fig. 1 is a kind of schematic diagram of the implementation environment of virtual gift display method provided in an embodiment of the present invention.Referring to figure1, which includes first terminal 101, server 102 and multiple second terminals 103.
First terminal 101 refers to that the terminal that main broadcaster user is broadcast live, second terminal 103 are that spectators user watches live streaming viewThe terminal of frequency, server 102 are used to provide service, such as direct broadcast service for first terminal 101 and second terminal 103, specifically, clothesThe application that business device 101 can be installed by first terminal 101 and second terminal 103 provides it service.Main broadcaster user can be withNet cast is carried out in direct broadcasting room (direct broadcast band) by first terminal 101, the spectators user of second terminal 103 can log inServer 102, into the live video of direct broadcasting room viewing main broadcaster user.For example, carrying out the process of net cast in main broadcaster userIn, the live video of main broadcaster user can be sent to server 102 by first terminal in real time, be sent to by server 102 multipleSecond terminal 103, second terminal 103 can play out live video, and spectators user is allowed to watch main broadcaster user'sLive video.During watching live video, spectators user can give virtual present to main broadcaster user.
It can be by wireless between first terminal 101 and server 102 and server 102 and multiple second terminals 103The mode of network or cable network is communicatively coupled.
Fig. 2 is a kind of flow chart of virtual gift display method provided in an embodiment of the present invention.Referring to fig. 2, this method packetIt includes:
201, within the period that the main broadcaster user of first terminal is broadcast live, when detect virtual present gives special efficacyWhen unlocking condition is triggered, that opens the virtual present gives special efficacy.
202, it is given in the preset duration after special efficacy is opened at this, receives the present that second terminal is sent and give instruction, it shouldPresent gives instruction and is used to indicate that the spectators user of the second terminal gives the virtual present to the main broadcaster user and this is virtualThe quantity of present.
203, the spectators user for counting each second terminal gives the present total quantity of the virtual present to the main broadcaster user.
204, according to the present total quantity corresponding destination number stage, special-effect information is given in generation, this gives special efficacy letterIt ceases and gives special efficacy for show the destination number stage corresponding virtual present, which is multiple quantity ranksDuan Zhong, amount threshold is less than or equal to the amount threshold maximum quantity stage in the quantity stage of the present total quantity, differentThe quantity stage corresponds to different amount threshold and different gives special efficacy.
205, it gives this to special-effect information and is sent to each second terminal, this gives special-effect information for each second endHold show the virtual present to each spectators user to give special efficacy.
Method provided in an embodiment of the present invention, by the preset duration given after special efficacy for opening virtual present,It receives after giving instruction, each spectators user of real-time statistics gives the present total quantity of virtual present, and root to main broadcaster userAccording to the present total quantity corresponding quantity stage, generation gives special-effect information and is sent to terminal, and terminal is shown virtuallyPresent gives special efficacy, improves the bandwagon effect of virtual present, and due to the different number stage correspond to it is different give special efficacy,In this way, when present total quantity reaches the different quantity stages, server can be generated it is different give special-effect information so that eventuallyEnd can show that the difference of virtual present gives special efficacy, further improve the bandwagon effect of virtual present.
In a kind of possible implementation, it should detect when giving special efficacy unlocking condition and being triggered of virtual present, openThat opens the virtual present gives special efficacy, comprising:
After receiving the present for the virtual present and giving instruction, the spectators user of each second terminal is to the main broadcasterWhen the present total quantity that user gives the virtual present is greater than first threshold, that opens the virtual present gives special efficacy;Or,
Instruction is given when receiving the present for the virtual present, and sends the sight that present gives the second terminal of instructionWhen the user gradation of many users is greater than second threshold, that opens the virtual present gives special efficacy;Or,
Instruction is given when receiving the present for the virtual present, and the present grade of the virtual present is greater than third thresholdWhen value, that opens the virtual present gives special efficacy;Or,
Give instruction when receiving the present for the virtual present, and receiving time within a preset period of time when, unlatchingThe virtual present gives special efficacy.
In a kind of possible implementation, this is given special-effect information and is also used to show that the present total quantity and the present are totalQuantity corresponding destination number stage.
In a kind of possible implementation, this gives this after special-effect information is sent to each second terminal, this methodFurther include:
When detecting when giving special efficacy closedown condition and being triggered of virtual present, that closes the virtual present gives special efficacy.
In a kind of possible implementation, it should detect when giving special efficacy closedown condition and being triggered of virtual present, closeThat closes the virtual present gives special efficacy, comprising:
When the present total quantity is greater than destination number threshold value, that closes the virtual present gives special efficacy, the destination numberThreshold value is the maximum quantity threshold value in corresponding amount threshold of multiple quantity stage.
In a kind of possible implementation, the closing virtual present give special efficacy after, this method further include:
Special efficacy Stop message is sent to each second terminal, which is used to indicate stopping and shows that this is virtualPresent gives special efficacy.
All the above alternatives can form alternative embodiment of the invention using any combination, herein no longerIt repeats one by one.
Fig. 3 is a kind of flow chart of virtual gift display method provided in an embodiment of the present invention.Referring to Fig. 3, this method packetIt includes:
301, present being sent to server and giving instruction, which gives the spectators user that instruction is used to indicate second terminalVirtual present and the quantity of the virtual present are given to the main broadcaster user of first terminal.
302, receive server transmission gives special-effect information, this gives special-effect information for showing the destination number stageThe corresponding virtual present gives special efficacy, which is the spectators user of each second terminal to the main broadcaster userGive the present total quantity corresponding quantity stage of the virtual present, the different quantity stages correspond to different amount threshold andDifferent gives special efficacy.
303, special-effect information is given according to this, show the virtual present gives special efficacy.
Method provided in an embodiment of the present invention gives instruction by sending present to server, and is receiving serverAfter what is sent gives special-effect information, show virtual present gives special efficacy, improves the bandwagon effect of virtual present, and due to notWith the quantity stage correspond to it is different give special efficacy, in this way, when present total quantity reaches the different quantity stages, server can be withGenerate it is different give special-effect information, allow terminal to show that the difference of virtual present gives special efficacy, further improve voidThe bandwagon effect of quasi- present.
In a kind of possible implementation, this is given special-effect information and is also used to show that the present total quantity and the present are totalQuantity corresponding destination number stage.
In a kind of possible implementation, after this gives instruction to server transmission present, this method further include:
When receiving the special efficacy Stop message of server transmission, the stopping displaying virtual present gives special efficacy.
All the above alternatives can form alternative embodiment of the invention using any combination, herein no longerIt repeats one by one.
Fig. 4 is a kind of flow chart of virtual gift display method provided in an embodiment of the present invention.The embodiment of the present invention is with thisMethod is applied to be illustrated in the implementation environment of embodiment illustrated in fig. 1, referring to fig. 4, this method comprises:
401, within the period that the main broadcaster user of first terminal is broadcast live, when detect virtual present gives special efficacyWhen unlocking condition is triggered, what server opened the virtual present gives special efficacy.
In the embodiment of the present invention, what server can preset each virtual present gives special efficacy unlocking condition, differentThe special efficacy unlocking condition of giving of virtual present may be the same or different.It is sent when server receives any second terminalPresent when giving instruction, it can be determined that whether the present, which is given instruction and can be triggered, gives special efficacy unlocking condition, if triggeringSpecial efficacy unlocking condition is given, then executes and opens the step of giving special efficacy of the virtual present.
In a kind of possible implementation, when detecting when giving special efficacy unlocking condition and being triggered of virtual present, serviceWhat device opened the virtual present gives special efficacy at least following several situations:
The first situation, after receiving the present for the virtual present and giving instruction, the spectators of each second terminalWhen user is greater than first threshold to the present total quantity that the main broadcaster user gives the virtual present, giving for the virtual present is openedSpecial efficacy.
Wherein, instruction is given for the present of the virtual present refer to that the present is given instruction and is used to indicate to main broadcaster userGive the virtual present.First threshold is the threshold value being arranged for the quantity of virtual present, and different virtual presents can correspond to notSame first threshold, can also correspond to identical first threshold.
In this case, the virtual present gives spectators user that special efficacy unlocking condition is each second terminal to the main broadcasterThe present total quantity that user gives the virtual present is greater than first threshold.For example, server often receives any second terminal hairAfter the present sent gives instruction, then it can be given instruction corresponding virtual present according to the present, count each second terminalSpectators user gives the present total quantity of the virtual present to main broadcaster user, if present total quantity is greater than first threshold, tableThe bright present gives the special efficacy unlocking condition of the instruction triggers virtual present, at this point, server can be virtual to this with activation pinPresent gives special efficacy.
The situation is the triggering clothes when the quantity that each spectators user gives the same virtual present to main broadcaster user is moreBusiness device activation pin gives special efficacy to the virtual present.
Second situation gives instruction when receiving the present for the virtual present, and transmission present gives instructionWhen the user gradation of the spectators user of second terminal is greater than second threshold, that opens the virtual present gives special efficacy.
Wherein, second threshold is the threshold value for user gradation setting, for example, multiple users etc. have can be set in serverGrade, and using one of user gradation as second threshold.
In this case, the special efficacy unlocking condition of giving of the virtual present is the sight for sending the second terminal that present gives instructionThe user gradation of many users is greater than second threshold.For example, server, which often receives the present that any second terminal is sent, gives fingerIt enables, then can be given instruction corresponding spectators user according to the present, the user gradation of the spectators user be determined, if user etc.When grade is greater than second threshold, then show that the present gives the special efficacy unlocking condition of the instruction triggers virtual present, at this point, serviceDevice can give special efficacy to the virtual present with activation pin.
The situation is when the higher spectators user of user gradation gives virtual present to main broadcaster user, and trigger the server is openedIt opens and gives special efficacy for the virtual present.
The third situation gives instruction, and the present etc. of the virtual present when receiving the present for the virtual presentWhen grade is greater than third threshold value, that opens the virtual present gives special efficacy.
Wherein, third threshold value is the threshold value being arranged for the present grade of virtual present.
In this case, the special efficacy unlocking condition of giving of the virtual present is that present gives the gift for instructing corresponding virtual presentObject grade is greater than third threshold value.For example, server, which often receives the present that any second terminal is sent, gives instruction, then it can rootIt gives instruction corresponding virtual present according to the present, determines the present grade of the virtual present, if present grade is greater than thirdWhen threshold value, then show that the present gives the special efficacy unlocking condition of the instruction triggers virtual present, at this point, server can be openedSpecial efficacy is given for the virtual present.
The situation is the trigger the server when the present for the virtual present that spectators user gives to main broadcaster user is higher rankedActivation pin gives special efficacy to the virtual present.
4th kind of situation gives instruction when receiving the present for the virtual present, and receiving time is in preset timeWhen in section, that opens the virtual present gives special efficacy.
In this case, the special efficacy unlocking condition of giving of the virtual present is to receive present to give the time of instruction when defaultBetween in section.For example, server, which often receives the present that any second terminal is sent, gives instruction, then it may determine that the present is givenThe receiving time of instruction whether within a preset period of time, if receiving time within a preset period of time when, show that the present is givenThe special efficacy unlocking condition of the instruction triggers virtual present is sent, at this point, server can give the virtual present with activation pinSpecial efficacy.
The situation is when spectators user gives virtual present to main broadcaster user within a preset period of time, and trigger the server is openedIt opens and gives special efficacy for the virtual present.
Above-mentioned four kinds of situations are judged whether to trigger and give when the present for receiving second terminal transmission gives instructionSpecial efficacy unlocking condition, if that opens the virtual present gives special efficacy, provides a variety of modes opened and give special efficacy.Above-mentioned fourKind situation can be used alone, and can also be used in combination.For example, server can basis after receiving present and giving instructionEach spectators user gives the total quantity of the virtual present to the main broadcaster user, the present gives the corresponding spectators user's of instructionUser gradation, the present give the receiving time for instructing the present grade of corresponding virtual present and the present to give instruction,Determine the unlatching virtual present gives special efficacy.When hitting at least one of above situation situation, then the present gives fingerEnable trigger the virtual present to give special efficacy unlocking condition, at this point, server can open the virtual present give special efficacy.
It is understood that above-mentioned four kinds of situations are only the several examples for giving special efficacy unlocking condition of virtual present, it is realOn border, what server was also provided with other forms gives special efficacy condition, and correspondingly, server opens giving for the virtual presentSend special efficacy that there can also be other situations, it is not limited in the embodiment of the present invention.
402, second terminal sends present to server and gives instruction, which gives instruction and be used to indicate second terminalSpectators user gives virtual present and the quantity of the virtual present to the main broadcaster user of first terminal.
In the embodiment of the present invention, within period for being broadcast live of main broadcaster user of first terminal, spectators user can beThe live video of main broadcaster user is watched in second terminal, in watching process, spectators user can grasp in second terminalMake, triggering second terminal sends present to server and gives instruction.For example, spectators user can choose some virtual present andThen corresponding quantity clicks present and gives button, triggering second terminal sends present to server and gives instruction.The present invention is realThe mode that example gives instruction to triggering present is applied to be not specifically limited.
403, in the preset duration after giving special efficacy and opening, server receives the present that second terminal is sent and gives fingerIt enables.
In the embodiment of the present invention, server can give the life cycle of special efficacy, the life for the setting of each virtual presentThe life period can be a preset duration, that is to say, in the preset duration, spectators user gives the virtual gift to main broadcaster userIt can be shown when object and give special efficacy.If having exceeded the preset duration, spectators user gives the virtual present to main broadcaster userSpecial efficacy is given in Shi Buhui displaying.
Server is opening in the preset duration after giving special efficacy, if any one second terminal performs above-mentioned steps402, then server can receive present and give instruction, and then by executing subsequent step 404 to step 407, displaying is directed toThe virtual present gives special efficacy.
404, the spectators user of each second terminal of server statistics gives the present of the virtual present to the main broadcaster userTotal quantity.
In the embodiment of the present invention, server open the virtual present give special efficacy after, can be with each sight of real-time statisticsMany users give the present total quantity of virtual present to main broadcaster user.The present total quantity of the virtual present is to give special efficacy unlatchingIn preset duration afterwards, the spectators user of each second terminal gives the quantity of the virtual present to the main broadcaster user of first terminalThe sum of.
For example, server records the present and gives when receiving the present for the virtual present for the first time and giving instructionThe quantity for instructing the corresponding virtual present is sent, the present total quantity of virtual present is obtained, later, is received every time for the voidWhen the present of quasi- present gives instruction, then server can determine that this present gives the number for instructing the corresponding virtual presentThe quantity recorded is added this quantity given, obtains the present total quantity of virtual present by amount.Certainly, server can alsoIndividually to record the quantity for giving the virtual present every time, when needing to count, the quantity for giving the virtual present every time is calculatedThe sum of, the present total quantity of the virtual present is obtained, the embodiment of the present invention is not specifically limited statistical.
405, server gives special-effect information according to the present total quantity corresponding destination number stage, generation, this is givenWhat special-effect information was used to show the destination number stage corresponding virtual present gives special efficacy.
Wherein, which is in multiple quantity stages, and amount threshold is less than or equal to the present total quantityAmount threshold maximum quantity stage in the quantity stage, different quantity stages correspond to different amount threshold and different giveSend special efficacy.
In the embodiment of the present invention, server can preset multiple quantity stages, the first number of stages stage corresponding numberIt is minimum to measure threshold value, quantity stage at the highest level, corresponding amount threshold was maximum.
Server is after statistics obtains the present total quantity of the virtual present, it can be determined that whether the present total quantity reachesSome quantity stage corresponding amount threshold, that is to say, judge whether the present total quantity is greater than or equal to some quantity rankThe corresponding amount threshold of section.If the present total quantity is greater than or equal to a quantity stage corresponding amount threshold, serviceDevice can be using a quantity stage as the destination number stage;If the present total quantity is greater than or equal at least two quantityStage corresponding amount threshold, then server can make the maximum quantity stage of amount threshold in at least two quantity stageFor the destination number stage.Further, server can according to the destination number stage it is corresponding give special efficacy, generation is givenSpecial-effect information.
Optionally, this gives special-effect information in addition to giving special efficacy for show destination number stage corresponding virtual presentIn addition, be also used to show the spectators user of each second terminal to the main broadcaster user give the present total quantity of the virtual present withAnd the present total quantity corresponding destination number stage.Certainly, this, which is given special-effect information and is also used to show, newest gives the voidThe user identifier of the spectators user of the second terminal of quasi- present.For example, in step 402, gift that second terminal is sent to serverObject gives instruction instruction and gives 3 " hearts of love beans " to main broadcaster user, and the spectators user of the second terminal is user A, then shouldGiving special-effect information may include giving special efficacy, even sending " 3 " and " user identifier of user A " for " hearts of love beans ".
Referring to Fig. 5, the difference for providing a kind of virtual present gives the schematic diagram of special efficacy, and the left figure in Fig. 5 is the first orderThe quantity stage is corresponding to give special efficacy, right figure be the second number of stages stage it is corresponding give special efficacy, the second number of stages stage is correspondingCorresponding to give special efficacy different give special efficacy and the first number of stages stage.
406, server gives this to special-effect information and is sent to each second terminal, this gives special-effect information for each theWhat two terminals showed the virtual present to each spectators user gives special efficacy.
In the embodiment of the present invention, server generate the virtual present give special-effect information after, this can be given to spyEffect information is sent to the second terminal where all spectators users between main broadcaster's user live broadcast, can also be simply sent to thisMain broadcaster user gave the second terminal where the spectators user of the virtual present, can also be according to the special efficacy of each spectators userPermission is sent to the second terminal given where the spectators user of special-effect information permission with reception.
407, when receiving when giving special-effect information of server transmission, second terminal gives special-effect information according to this,Show the virtual present gives special efficacy.
In the embodiment of the present invention, any second terminal receive server transmission give special-effect information after, this secondTerminal can give special-effect information according to this, and show the virtual present to spectators user gives special efficacy.For giving special efficacyDisplay location, second terminal can give special efficacy what predeterminable area showed the virtual present, for example, the predeterminable area can beThe public screen region of direct broadcasting room.
Optionally, for given in step 405 special-effect information be also used to show the spectators user of each second terminal to thisMain broadcaster user gives present total quantity and the present total quantity corresponding destination number stage of the virtual present, accordinglyGround, in the step 407, second terminal in addition to show virtual present give special efficacy other than, can also show present total quantityAnd the information such as destination number stage for reaching of the present total quantity.Further, second terminal can also show that the present is totalDifference between quantity amount threshold corresponding with the quantity stage at the highest level, meanwhile, when second terminal can also show residueLong message can be only achieved with prompting spectators user also to need to give how many a virtual presents to main broadcaster user in residual time lengthThe quantity stage at the highest level, with show the quantity stage at the highest level it is corresponding give special efficacy, by guiding user to participate in presentIn comp process, the interaction between spectators user is enhanced.
Optionally, the special efficacy picture of giving that second terminal is shown may include at least two figures, and specifically, second terminal canTo show that this gives the figure in special efficacy picture respectively according to preset sequence, when showing to each figure, different figures is shownPiece effect.Specifically, it may include " background ", " water level " and " bulletin " three figures that this, which gives special efficacy picture, give special efficacy with thisPicture include " background ", " water level " and " bulletin " three figures for, second terminal can according to it is preset first display " background ", thenIt shows " water level ", finally shows the sequence of " bulletin ", " background ", " water level " and " bulletin " three figures are shown respectively, i.e.,Each figure will singly occur in order, and each figure can modify position according to preset playback rate when being shownSet height.Certainly, second terminal can also be executed for the hardware configuration of itself different gives special efficacy exhibition scheme, exampleSuch as, when the hardware configuration of second terminal, which meets preset configuration, to be required, second terminal can giving with normal presentation virtual presentSpecial efficacy such as shows that this gives the figure in special efficacy picture according to preset sequence respectively;When the hardware configuration of second terminal is unsatisfactory forWhen preset configuration requires, second terminal can only show common animation effect.The embodiment of the present invention gives second terminal displayingThe mode of special efficacy is sent to be not specifically limited.
408, when detecting when giving special efficacy closedown condition and being triggered of virtual present, the server closing virtual presentGive special efficacy.
In the embodiment of the present invention, what server can be previously provided with each virtual present gives special efficacy closedown condition, noSpecial efficacy unlocking condition of giving with virtual present may be the same or different.Server can be with the real-time detection virtual presentGive whether special efficacy closedown condition is triggered, if triggering give special efficacy closedown condition, server can close this in timeVirtual present gives special efficacy, terminates the life cycle for giving special efficacy.
In a kind of possible implementation, when the present total quantity is greater than destination number threshold value, the virtual present is closedGive special efficacy, the destination number threshold value be corresponding amount threshold of multiple quantity stage in maximum quantity threshold value.The partyFormula is to give the spectators user that special efficacy closedown condition the is each second terminal present that the virtual present is given to the main broadcaster userTotal quantity is greater than destination number threshold value, which is server pre-set multiple quantity stages in step 405In, quantity stage at the highest level corresponding amount threshold.For example, server can be used with each spectators user of real-time statistics to main broadcasterThe present total quantity of the virtual present is given at family, if present total quantity is greater than destination number threshold value, triggers the virtual giftObject gives special efficacy closedown condition, at this point, server can close the virtual present give special efficacy.
Optionally, before the present total quantity is greater than destination number threshold value, server can detecte whether reach full gradeCondition that is to say whether present total quantity reaches destination number threshold value, when the present total quantity reaches destination number threshold value,Server, which can be generated, to be given special-effect information and is sent to second terminal, this gives special-effect information for showing the destination number thresholdThe quantity stage belonging to value is corresponding to give special efficacy, for example, this, which gives special efficacy, can be quick-fried lamp special efficacy, is used to indicate and opens in serverIt opens in the preset duration of the virtual present given after special efficacy, the spectators user of each second terminal gives full to the main broadcaster userThe virtual present of destination number threshold value.
409, server sends special efficacy Stop message to each second terminal, which is used to indicate stoppingShow the virtual present gives special efficacy.
In the embodiment of the present invention, server close virtual present give special efficacy after, special efficacy Stop message can be sent,For example, the special efficacy Stop message can be sent to by server is transmitted across give special-effect information each second eventually in step 406End, to notify each second terminal stops showing to spectators user to give special efficacy for the virtual present.
410, when receiving the special efficacy Stop message of server transmission, second terminal stops showing the virtual presentGive special efficacy.
In the embodiment of the present invention, any second terminal is after the special efficacy Stop message for receiving server transmission, this secondTerminal, which can stop showing to spectators user, gives special efficacy for the virtual present, for example, second terminal can be cancelled in public affairsWhat screen region showed the virtual present gives special efficacy.
Optionally, server close the virtual present give special efficacy after, in addition to each second terminal transmission giveSpecial-effect information can also send bonus data to each second terminal, which can be in the virtual presentIt gives in the preset duration after special efficacy is opened, the second terminal of the virtual present was given to the main broadcaster user of first terminal.RespectivelyA second terminal is after receiving bonus data, available corresponding reward, if the reward can be virtual present, thus intoOne step promotes the enthusiasm that spectators user gives virtual present to main broadcaster user, and improve virtual present gives enjoyment.
Referring to Fig. 6, a kind of flow chart of virtual gift display method is provided, as shown in fig. 6, server can receiveAfter giving instruction to present, it can be determined that whether opens virtual present gives special efficacy (four kinds of situations in corresponding step 401);In the preset duration after giving special efficacy and opening, second terminal sends present to server and gives instruction, and server receives giftAfter object gives instruction, each spectators user of real-time statistics gives present total quantity (process pair of virtual present to main broadcaster userAnswer above-mentioned steps 402 to step 404);Server can be generated and give after determining the present total quantity corresponding destination number stageSpecial-effect information is sent to be sent to second terminal, wherein giving special-effect information can be used for showing destination number stage and number of targetsThe amount stage is corresponding to give special efficacy (process corresponds to above-mentioned steps 405 to step 406);Each second terminal is according to giving special efficacyInformation, show virtual present gives special efficacy (process corresponds to above-mentioned steps 407);Server detects whether to reach full grade itemPart, if it is, giving special-effect information to the transmission of each second terminal, this gives special-effect information for showing that quick-fried lamp special efficacy (shouldProcess corresponds to the case where present total quantity reaches destination number threshold value in above-mentioned steps 408);Further, server can beWhen giving special efficacy closedown condition and being triggered, the special efficacy of giving of the virtual present is closed, terminates the life cycle for giving special efficacy, and lead toKnow that each second terminal stops showing that (process corresponds to above-mentioned steps 409 to step 410) for the special efficacy of giving of virtual present.
It should be noted that above-mentioned steps 408 to step 410 is optional step.By detecting giving for virtual presentWhen special efficacy closedown condition being sent to be triggered, to each second terminal send special efficacy Stop message so that each second terminal can andWhen stop showing that virtual present gives special efficacy.
In addition, above-mentioned steps 401 to step 410 only by for virtual present give special efficacy for be illustrated,In fact, server can concurrently open multiple virtual presents give special efficacy, to alternately execute according to the actual situationShow the process for giving special efficacy of multiple virtual presents.
Method provided in an embodiment of the present invention, by the preset duration given after special efficacy for opening virtual present,It receives after giving instruction, each spectators user of real-time statistics gives the present total quantity of virtual present, and root to main broadcaster userAccording to the present total quantity corresponding quantity stage, generation gives special-effect information and is sent to terminal, and terminal is shown virtuallyPresent gives special efficacy, improves the bandwagon effect of virtual present, and due to the different number stage correspond to it is different give special efficacy,In this way, when present total quantity reaches the different quantity stages, server can be generated it is different give special-effect information so that eventuallyEnd can show that the difference of virtual present gives special efficacy, further improve the bandwagon effect of virtual present.
Fig. 7 is the structural schematic diagram that a kind of virtual present provided in an embodiment of the present invention shows device.Referring to Fig. 7, the dressIt sets and includes:
Opening module 701, in the period being broadcast live for the main broadcaster user in first terminal, when detecting virtual giftWhen giving special efficacy unlocking condition and being triggered of object, that opens the virtual present gives special efficacy;
Receiving module 702 receives the present that second terminal is sent for giving in the preset duration after special efficacy is opened at thisInstruction is given, which, which gives, instructs the spectators user for being used to indicate the second terminal to give the virtual present to the main broadcaster userAnd the quantity of the virtual present;
Statistical module 703, the spectators user for counting each second terminal give the virtual present to the main broadcaster userPresent total quantity;
Generation module 704, for generating and giving special-effect information according to the present total quantity corresponding destination number stage,This is given special-effect information and gives special efficacy for show the destination number stage corresponding virtual present, the destination number stageFor in multiple quantity stages, amount threshold is less than or equal to the maximum quantity of amount threshold in the quantity stage of the present total quantityStage, different quantity stages correspond to different amount threshold and different give special efficacy;
Sending module 705 is sent to each second terminal for giving this to special-effect information, this is given special-effect information and is used forWhat each second terminal showed the virtual present to each spectators user gives special efficacy.
In a kind of possible implementation, which is used to give when receiving the present for the virtual presentAfter sending instruction, the spectators user of each second terminal is greater than first to the present total quantity that the main broadcaster user gives the virtual presentWhen threshold value, that opens the virtual present gives special efficacy;Or,
The opening module 701 is used to give instruction when receiving the present for the virtual present, and transmission present is givenWhen the user gradation of the spectators user of the second terminal of instruction is greater than second threshold, that opens the virtual present gives special efficacy;Or,
The opening module 701 is used to give instruction when receiving the present for the virtual present, and the virtual presentWhen present grade is greater than third threshold value, that opens the virtual present gives special efficacy;Or,
The opening module 701 is used to give instruction when receiving the present for the virtual present, and receiving time is pre-If when in the period, that opens the virtual present gives special efficacy.
In a kind of possible implementation, this is given special-effect information and is also used to show that the present total quantity and the present are totalQuantity corresponding destination number stage.
In a kind of possible implementation, referring to Fig. 8, the device further include:
Closedown module 706, for it is virtual to close this when detecting when giving special efficacy closedown condition and being triggered of virtual presentPresent gives special efficacy.
In a kind of possible implementation, which is used to be greater than destination number threshold value when the present total quantityWhen, that closes the virtual present gives special efficacy, which is in corresponding amount threshold of multiple quantity stageMaximum quantity threshold value.
In a kind of possible implementation, which, which is also used to send special efficacy to each second terminal, stopsInformation, which, which is used to indicate, stops showing that the virtual present gives special efficacy.
In the embodiment of the present invention, by being given receiving in the preset duration given after special efficacy for opening virtual presentAfter sending instruction, each spectators user of real-time statistics gives the present total quantity of virtual present to main broadcaster user, and total according to presentQuantity corresponding quantity stage, generation give special-effect information and are sent to terminal, and terminal is allowed to show giving for virtual presentSend special efficacy, improve the bandwagon effect of virtual present, and due to the different number stage correspond to it is different give special efficacy, in this way,When present total quantity reaches the different quantity stages, server can be generated it is different give special-effect information so that terminal can be withIt shows that the difference of virtual present gives special efficacy, further improves the bandwagon effect of virtual present.
Fig. 9 is the structural schematic diagram that a kind of virtual present provided in an embodiment of the present invention shows device.Referring to Fig. 9, the dressIt sets and includes:
Sending module 901 gives instruction for sending present to server, which gives instruction and be used to indicate second eventuallyThe spectators user at end gives virtual present and the quantity of the virtual present to the main broadcaster user of first terminal;
Receiving module 902 gives special-effect information for receive server transmission, this gives special-effect information for showingThe destination number stage corresponding virtual present gives special efficacy, which is the spectators user of each second terminalIn the present total quantity for giving the virtual present to the main broadcaster user corresponding quantity stage, the different quantity stages corresponds to differentAmount threshold and different give special efficacy;
Display module 903, for giving special-effect information according to this, show the virtual present gives special efficacy.
In a kind of possible implementation, this is given special-effect information and is also used to show that the present total quantity and the present are totalQuantity corresponding destination number stage.
In a kind of possible implementation, which is also used to stop when the special efficacy for receiving server transmissionOnly when information, the stopping displaying virtual present gives special efficacy.
In the embodiment of the present invention, instruction is given by sending present to server, and receiving giving for server transmissionAfter sending special-effect information, show virtual present gives special efficacy, improves the bandwagon effect of virtual present, and due to different number rankSection it is corresponding it is different give special efficacy, in this way, difference can be generated in server when present total quantity reaches the different quantity stagesGive special-effect information, allow terminal to show that the difference of virtual present gives special efficacy, further improve virtual presentBandwagon effect.
It should be understood that virtual present provided by the above embodiment show device when virtual present is shown, only more thanThe division progress of each functional module is stated for example, can according to need and in practical application by above-mentioned function distribution by differenceFunctional module complete, i.e., the internal structure of equipment is divided into different functional modules, with complete it is described above whole orPerson's partial function.In addition, virtual present provided by the above embodiment shows that device belongs to virtual gift display method embodimentSame design, specific implementation process are detailed in embodiment of the method, and which is not described herein again.
Figure 10 is a kind of structural schematic diagram of terminal 1000 provided in an embodiment of the present invention.The terminal 1000 may is that intelligenceIt can mobile phone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III, dynamic shadowAs expert's compression standard audio level 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamicImage expert's compression standard audio level 4) player, laptop or desktop computer.Terminal 1000 is also possible to referred to as useOther titles such as family equipment, portable terminal, laptop terminal, terminal console.
In general, terminal 1000 includes: processor 1001 and memory 1002.
Processor 1001 may include one or more processing cores, such as 4 core processors, 8 core processors etc..PlaceReason device 1001 can use DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmedLogic array) at least one of example, in hardware realize.Processor 1001 also may include primary processor and coprocessor, masterProcessor is the processor for being handled data in the awake state, also referred to as CPU (Central ProcessingUnit, central processing unit);Coprocessor is the low power processor for being handled data in the standby state.?In some embodiments, processor 1001 can be integrated with GPU (Graphics Processing Unit, image processor),GPU is used to be responsible for the rendering and drafting of content to be shown needed for display screen.In some embodiments, processor 1001 can also be wrappedAI (Artificial Intelligence, artificial intelligence) processor is included, the AI processor is for handling related machine learningCalculating operation.
Memory 1002 may include one or more computer readable storage mediums, which canTo be non-transient.Memory 1002 may also include high-speed random access memory and nonvolatile memory, such as oneOr multiple disk storage equipments, flash memory device.In some embodiments, the non-transient computer in memory 1002 canStorage medium is read for storing at least one instruction, at least one instruction performed by processor 1001 for realizing this ShenPlease in embodiment of the method provide virtual gift display method.
In some embodiments, terminal 1000 is also optional includes: peripheral device interface 1003 and at least one periphery are setIt is standby.It can be connected by bus or signal wire between processor 1001, memory 1002 and peripheral device interface 1003.It is each outerPeripheral equipment can be connected by bus, signal wire or circuit board with peripheral device interface 1003.Specifically, peripheral equipment includes:In radio circuit 1004, display screen 1005, camera 1006, voicefrequency circuit 1007, positioning component 1008 and power supply 1009 extremelyFew one kind.
Peripheral device interface 1003 can be used for I/O (Input/Output, input/output) is relevant outside at least onePeripheral equipment is connected to processor 1001 and memory 1002.In some embodiments, processor 1001, memory 1002 and peripheryEquipment interface 1003 is integrated on same chip or circuit board;In some other embodiments, processor 1001, memory1002 and peripheral device interface 1003 in any one or two can be realized on individual chip or circuit board, this implementationExample is not limited this.
Radio circuit 1004 is for receiving and emitting RF (Radio Frequency, radio frequency) signal, also referred to as electromagnetic signal.Radio circuit 1004 is communicated by electromagnetic signal with communication network and other communication equipments.Radio circuit 1004 is by telecommunicationsNumber being converted to electromagnetic signal is sent, alternatively, the electromagnetic signal received is converted to electric signal.Optionally, radio circuit1004 include: antenna system, RF transceiver, one or more amplifiers, tuner, oscillator, digital signal processor, volume solutionCode chipset, user identity module card etc..Radio circuit 1004 can by least one wireless communication protocol come with it is otherTerminal is communicated.The wireless communication protocol includes but is not limited to: Metropolitan Area Network (MAN), each third generation mobile communication network (2G, 3G, 4G and5G), WLAN and/or WiFi (Wireless Fidelity, Wireless Fidelity) network.In some embodiments, radio frequency electricalRoad 1004 can also include NFC (Near Field Communication, wireless near field communication) related circuit, the applicationThis is not limited.
Display screen 1005 is for showing UI (UserInterface, user interface).The UI may include figure, text, figureMark, video and its their any combination.When display screen 1005 is touch display screen, display screen 1005 also has acquisition aobviousThe ability of the touch signal on the surface or surface of display screen 1005.The touch signal can be used as control signal and be input to processingDevice 1001 is handled.At this point, display screen 1005 can be also used for providing virtual push button and/or dummy keyboard, also referred to as soft buttonAnd/or soft keyboard.In some embodiments, display screen 1005 can be one, and the front panel of terminal 1000 is arranged;At otherIn embodiment, display screen 1005 can be at least two, be separately positioned on the different surfaces of terminal 1000 or in foldover design;?In still other embodiments, display screen 1005 can be flexible display screen, be arranged on the curved surface of terminal 1000 or fold planeOn.Even, display screen 1005 can also be arranged to non-rectangle irregular figure, namely abnormity screen.Display screen 1005 can be adoptedWith LCD (Liquid Crystal Display, liquid crystal display), (Organic Light-Emitting Diode, has OLEDMachine light emitting diode) etc. materials preparation.
CCD camera assembly 1006 is for acquiring image or video.Optionally, CCD camera assembly 1006 includes front cameraAnd rear camera.In general, the front panel of terminal is arranged in front camera, the back side of terminal is arranged in rear camera.?In some embodiments, rear camera at least two is that main camera, depth of field camera, wide-angle camera, focal length are taken the photograph respectivelyAs any one in head, to realize that main camera and the fusion of depth of field camera realize background blurring function, main camera and widePan-shot and VR (Virtual Reality, virtual reality) shooting function or other fusions are realized in camera fusion in angleShooting function.In some embodiments, CCD camera assembly 1006 can also include flash lamp.Flash lamp can be monochromatic temperature flash of lightLamp is also possible to double-colored temperature flash lamp.Double-colored temperature flash lamp refers to the combination of warm light flash lamp and cold light flash lamp, can be used forLight compensation under different-colour.
Voicefrequency circuit 1007 may include microphone and loudspeaker.Microphone is used to acquire the sound wave of user and environment, andIt converts sound waves into electric signal and is input to processor 1001 and handled, or be input to radio circuit 1004 to realize that voice is logicalLetter.For stereo acquisition or the purpose of noise reduction, microphone can be separately positioned on the different parts of terminal 1000 to be multiple.Microphone can also be array microphone or omnidirectional's acquisition type microphone.Loudspeaker is then used to that processor 1001 or radio frequency will to be come fromThe electric signal of circuit 1004 is converted to sound wave.Loudspeaker can be traditional wafer speaker, be also possible to piezoelectric ceramics loudspeakingDevice.When loudspeaker is piezoelectric ceramic loudspeaker, the audible sound wave of the mankind can be not only converted electrical signals to, can also be incited somebody to actionElectric signal is converted to the sound wave that the mankind do not hear to carry out the purposes such as ranging.In some embodiments, voicefrequency circuit 1007 may be used alsoTo include earphone jack.
Positioning component 1008 is used for the current geographic position of positioning terminal 1000, to realize navigation or LBS (LocationBased Service, location based service).Positioning component 1008 can be the GPS (Global based on the U.S.Positioning System, global positioning system), the dipper system of China, Russia Gray receive this system or European UnionThe positioning component of Galileo system.
Power supply 1009 is used to be powered for the various components in terminal 1000.Power supply 1009 can be alternating current, direct currentElectricity, disposable battery or rechargeable battery.When power supply 1009 includes rechargeable battery, which can support wiredCharging or wireless charging.The rechargeable battery can be also used for supporting fast charge technology.
In some embodiments, terminal 1000 further includes having one or more sensors 1010.One or more sensingDevice 1010 includes but is not limited to: acceleration transducer 1011, gyro sensor 1012, pressure sensor 1013, fingerprint sensingDevice 1014, optical sensor 1015 and proximity sensor 1016.
Acceleration transducer 1011 can detecte the acceleration in three reference axis of the coordinate system established with terminal 1000Size.For example, acceleration transducer 1011 can be used for detecting component of the acceleration of gravity in three reference axis.ProcessorThe 1001 acceleration of gravity signals that can be acquired according to acceleration transducer 1011, control touch display screen 1005 with transverse viewsOr longitudinal view carries out the display of user interface.Acceleration transducer 1011 can be also used for game or the exercise data of userAcquisition.
Gyro sensor 1012 can detecte body direction and the rotational angle of terminal 1000, gyro sensor 1012Acquisition user can be cooperateed with to act the 3D of terminal 1000 with acceleration transducer 1011.Processor 1001 is according to gyro sensorsThe data that device 1012 acquires, following function may be implemented: action induction (for example changing UI according to the tilt operation of user) is clappedImage stabilization, game control and inertial navigation when taking the photograph.
The lower layer of side frame and/or touch display screen 1005 in terminal 1000 can be set in pressure sensor 1013.WhenWhen the side frame of terminal 1000 is arranged in pressure sensor 1013, user can detecte to the gripping signal of terminal 1000, byReason device 1001 carries out right-hand man's identification or prompt operation according to the gripping signal that pressure sensor 1013 acquires.Work as pressure sensor1013 when being arranged in the lower layer of touch display screen 1005, is grasped by processor 1001 according to pressure of the user to touch display screen 1005Make, realization controls the operability control on the interface UI.Operability control include button control, scroll bar control,At least one of icon control, menu control.
Fingerprint sensor 1014 is used to acquire the fingerprint of user, is collected by processor 1001 according to fingerprint sensor 1014Fingerprint recognition user identity, alternatively, by fingerprint sensor 1014 according to the identity of collected fingerprint recognition user.KnowingNot Chu the identity of user when being trusted identity, authorize the user to execute relevant sensitive operation by processor 1001, which graspsMake to include solving lock screen, checking encryption information, downloading software, payment and change setting etc..Fingerprint sensor 1014 can be setSet the front, the back side or side of terminal 1000.When being provided with physical button or manufacturer Logo in terminal 1000, fingerprint sensor1014 can integrate with physical button or manufacturer Logo.
Optical sensor 1015 is for acquiring ambient light intensity.In one embodiment, processor 1001 can be according to lightThe ambient light intensity that sensor 1015 acquires is learned, the display brightness of touch display screen 1005 is controlled.Specifically, work as ambient light intensityWhen higher, the display brightness of touch display screen 1005 is turned up;When ambient light intensity is lower, the aobvious of touch display screen 1005 is turned downShow brightness.In another embodiment, the ambient light intensity that processor 1001 can also be acquired according to optical sensor 1015, is movedThe acquisition parameters of state adjustment CCD camera assembly 1006.
Proximity sensor 1016, also referred to as range sensor are generally arranged at the front panel of terminal 1000.Proximity sensor1016 for acquiring the distance between the front of user Yu terminal 1000.In one embodiment, when proximity sensor 1016 is examinedWhen measuring the distance between the front of user and terminal 1000 and gradually becoming smaller, by processor 1001 control touch display screen 1005 fromBright screen state is switched to breath screen state;When proximity sensor 1016 detect the distance between front of user and terminal 1000 byWhen gradual change is big, touch display screen 1005 is controlled by processor 1001 and is switched to bright screen state from breath screen state.
It, can be with it will be understood by those skilled in the art that the restriction of the not structure paired terminal 1000 of structure shown in Figure 10Including than illustrating more or fewer components, perhaps combining certain components or being arranged using different components.
Figure 11 is a kind of structural schematic diagram of server 1100 provided in an embodiment of the present invention, which can be because matchingIt sets or performance is different and generate bigger difference, may include one or more processors (centralProcessing units, CPU) 1101 and one or more memory 1102, wherein it is deposited in the memory 1102At least one instruction is contained, at least one instruction is loaded by the processor 1101 and executed to realize above-mentioned each methodThe method that embodiment provides.Certainly, which can also have wired or wireless network interface, keyboard and input and output to connectThe components such as mouth, to carry out input and output, which can also include other components for realizing functions of the equipments, herein notIt repeats.
In the exemplary embodiment, a kind of computer readable storage medium for being stored with computer program, example are additionally providedIt is such as stored with the memory of computer program, above-mentioned computer program is realized virtual in above-described embodiment when being executed by processorPresent methods of exhibiting.For example, the computer readable storage medium can be read-only memory (Read-Only Memory, ROM),Random access memory (Random Access Memory, RAM), CD-ROM (Compact Disc Read-OnlyMemory, CD-ROM), tape, floppy disk and optical data storage devices etc..
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardwareIt completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readableIn storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention andWithin principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.