The content of the invention
In view of this, the embodiment of the present invention provides a kind of virtual gift display method and system, can effectively improve video straight
The participation of each user terminal during broadcasting.
Present pre-ferred embodiments provide a kind of virtual gift display method, and methods described includes:
The virtual present triggering command sent according to the first client generates present alert notification;
The present alert notification is sent to multiple second clients, so that the multiple the live of second client is regarded
Frequency domain shows the present alert notification;
For each second client, judge whether to get the triggering of the present alert notification of second client transmission
Event, if getting the trigger event, is shown in live video region to virtual present.
Further, methods described also includes:
Monitor display duration of the present alert notification in the live video region of second client;
Judge whether the display duration reaches preset duration, if the display duration reaches the preset duration, take
Disappear the display of the present alert notification.
Further, methods described also includes:
Record the trigger event that the present alert notification got is triggered by each second client;
The total degree of the trigger event got is counted, and the total degree is broadcasted.
Further, methods described also includes:
Trigger event list corresponding with the present alert notification is generated according to the trigger event of record, and sends described
First client is given in trigger event list.
Further, methods described also includes:
Extract the identification code for the second client for sending trigger event;
Judged whether to have obtained the same present alert notification of second client transmission according to the identification code
Trigger event, if having obtained, is no longer shown to the corresponding virtual present of the present alert notification.
Further, methods described also includes:
Highlighted processing is carried out to the virtual present after displaying;And
It will include for the guiding poster for guiding user to trigger the present alert notification in the multiple second client
Live video region in.
Present pre-ferred embodiments also provide a kind of virtual present display systems, applied to the first client and multiple
The server of second client communication connection, the virtual present display systems include:
Generation module is notified, the virtual present triggering command generation present for being sent according to the first client reminds logical
Know;
Sending module is notified, for the present alert notification to be sent into multiple second clients, so that the multiple
The live video region of second client shows the present alert notification;
Present display module, for for each second client, judging whether to get second client transmission
The trigger event of present alert notification, if getting the trigger event, exhibition is carried out in live video region to virtual present
Show.
Further, the virtual present display systems also include:
Monitoring modular, for monitoring the present alert notification in the live video region of multiple second clients
Display duration;
Notify to cancel module, for judging whether the display duration reaches preset duration, if the display duration reaches
Preset duration, then cancel the display of the present alert notification.
Further, the virtual present display systems also include:
Logging modle, for recording the triggering thing that the present alert notification got is triggered by each second client
Part;
Broadcast module, for counting the total degree of the trigger event got, and is broadcasted the total degree.
Further, the virtual present display systems also include:
List Generating Module, for generating triggering thing corresponding with the present alert notification according to the trigger event of record
Part list, and the list is sent to first client.
Compared with prior art, virtual gift display method and system provided in an embodiment of the present invention, can be according to second
The trigger event of the transmission of client is shown to virtual present, is effectively improved during net cast between each user terminal
Interactive and participation.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
A part of embodiment of the present invention, rather than whole embodiments.The present invention implementation being generally described and illustrated herein in the accompanying drawings
The component of example can be arranged and designed with a variety of configurations.
Therefore, the detailed description of embodiments of the invention below to providing in the accompanying drawings is not intended to limit claimed
The scope of the present invention, but be merely representative of the present invention selected embodiment.Based on the embodiment in the present invention, this area is common
The every other embodiment that technical staff is obtained under the premise of creative work is not made, belongs to the model that the present invention is protected
Enclose.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi
It is defined in individual accompanying drawing, then it further need not be defined and explained in subsequent accompanying drawing.
As shown in figure 1, being that a kind of virtual gift display method provided in an embodiment of the present invention and systematic difference scene are shown
It is intended to.The application scenarios can include server 10, network 20, the first client 30 and the second client 40, wherein, second
Client 40 can be multiple.The server 10 can pass through network 20 and first client 30, multiple described second
Client 40 is communicated.
Alternatively, in the present embodiment, the server 10 may be, but not limited to, Web (website) server, data
Server etc., can also be that computer, mobile internet surfing equipment (mobile Internet device, MID) etc. have processing function
Electronic equipment.First client 30, second client 40 may be, but not limited to, smart mobile phone, PC
(personal computer, PC), tablet personal computer, personal digital assistant (personal digital assistant, PDA),
Mobile internet surfing equipment (mobile Internet device, MID) etc..In the present embodiment, first client 30 and institute
The second client 40 is stated to participate in used terminal device during net cast, the network 20 may be, but not limited to, wired
Network or wireless network.
Fig. 2 is please referred to, the server 10 can include memory 100, processor 200 and communication unit 300.Institute
State memory 100, processor 200 and communication unit 300 to be directly or indirectly electrically connected with each other, to realize the biography of data
Defeated or interaction.It is electrically connected with for example, these elements can be realized by one or more communication bus or signal wire each other.Deposit
Be stored with the software function mould being stored in the form of software or firmware (firmware) in the memory 100 in reservoir 100
Block, the processor 200 is stored in by operation in software program and module in memory 100, such as embodiment of the present invention
Order processing device, so as to perform various function application and data processing, that is, realize at the order in the embodiment of the present invention
Reason method.
Wherein, the memory 100 may be, but not limited to, random access memory (Random Access
Memory, RAM), read-only storage (Read Only Memory, ROM), programmable read only memory (Programmable
Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only
Memory, EPROM), electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only
Memory, EEPROM) etc..Wherein, memory 100 is used for storage program, and processor 200 is performed after execute instruction is received
Described program.Further, the software program and module in above-mentioned memory 100 may also include operating system.It may include
Various component softwares and/or drive for management system task (such as memory management, storage device control, power management)
It is dynamic, and can mutually be communicated with various hardware or component software, so as to provide the running environment of other software component.
The processor 200 is probably a kind of IC chip, the disposal ability with signal.Above-mentioned processor
200 can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit
(Network Processor, NP) etc..Can also be digital signal processor (DSP)), application specific integrated circuit (ASIC), scene
Programmable gate array (FPGA) or other PLDs, discrete gate or transistor logic, discrete hardware group
Part.It can realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor can be with
It is microprocessor or any conventional processor etc..
The communication unit 300 is used for the communication set up by network 20 between the server 10 and external communications terminals
Connection, realizes the transmitting-receiving operation of network signal and data message, and above-mentioned network signal may include wireless signal or wire signal.
It is appreciated that the structure shown in Fig. 2 be only signal, the server 10 may also include it is more more than shown in Fig. 2 or
The less component of person, or with the configuration different from shown in Fig. 2.Each component shown in Fig. 2 can using hardware, software or
It, which is combined, realizes.
Fig. 3 is please referred to, the embodiment of the present invention also provides a kind of virtual present exhibition that can be applied to the server 10
Show method, method and step defined in the relevant flow of methods described can be realized by the processor 200.Below will be to Fig. 3
Shown idiographic flow is described in detail.
Step S402, the virtual present triggering command sent according to the first client 30 generates present alert notification.
The server 10 is before step S402 is performed, and user passes through first client 30 or second client
End 40 logs in live platform, and enters corresponding direct broadcasting room, and the server 10 obtains the room number (ROOMID) of the direct broadcasting room
And first client 30 or the corresponding ID (UserID) of second client 40.For example, Web service can be passed through
Device calls LandUser logID=new WebUserServer.Sign.Room (UserID) program to be obtained.In this reality
Apply in example, first client 30 needs the gift to other client gifts of the direct broadcasting room as between current live
Thing gives end, can be other clients of main broadcaster end or viewing live video, second client 40 is only as difference
In other clients positioned at same direct broadcasting room of first client 30.
Alternatively, after the Web server gets the room number and ID of the direct broadcasting room, checking is also needed
Whether the virtual present list in the live video region of first client 30 links success with the server 10,
It is for instance possible to use following methods judge whether the virtual present list links success with barrage server:
WhetherLink WLink=new BarrageServer.WLink.UserID (logID)
if(WLink!=' null'), Show.GiftLiset ()
Wherein, if WLink is linked as sky, link failure, user can not open corresponding present list by clicking on;Such as
Fruit WLink links are not sky, then it represents that virtual present list successfully links to barrage server.
Further, when the present list successfully links to the server 10, user can be by clicking on the present
Virtual present in list causes the server 10 to call the API of the virtual present to trigger the virtual present, and right
The virtual present is marked.Wherein, can be by the API of the present server calls virtual present, and the virtual present is entered
Line flag, for example, can be triggered by program GiftID GID=WebServer.GiftLiset.Parameter.Click ()
Corresponding virtual present, and pass through program SelectedGift SeGif=new
WebGiftServer.Liset.Selected (GID) calls the API of the virtual present.
Alternatively, when virtual present list successfully links to the server 10, program can be passed through
Corresponding present list is carried out display processing by Show.GiftLiset (), in order to which user passes through first client
30 directly distinguish whether the virtual present list successfully links.
It should be understood that the barrage server mentioned in the present embodiment, present server and Web server are as the service
The child servers of device 10, for a kind of differentiation mode when the concrete function to the server 10 is described in detail.
Further, when the server 10 performs step S402, the response of the first client 30 user needs to give
The triggering command of virtual present is sent, and is sent to the server 10, the server 10 refers to according to the triggering of the virtual present
Order generation present alert notification.Wherein, the present alert notification can include barrage notice and virtual present clickthrough, institute
Barrage is stated to notify by barrage server calls program BarrageServer.Information.Broadcast (GID, logID)
Generation, the barrage notifies can be to include sending the ID of the first client 30 of the triggering command, virtual present type letter
Breath etc..When second client 40 clicks on the virtual present clickthrough, Web server is according to described second got
Virtual present is carried out special efficacy displaying by the trigger event that client 40 is sent.It should be understood that the present alert notification is specific aobvious
Show that form and type are not limited in the present embodiment.
Step S404, multiple second clients 40 are sent to by the present alert notification, so that the multiple second visitor
The live video region at family end 40 shows the present alert notification.
After the API of the virtual present is successfully called, present server access foreground Web server can be passed through
Flash API, so between current live in multiple second clients 40 on live video region floating layer on show
Show the present alert notification, for example, Web server caller Show.FlashSserver.GiftValue (GID) can be passed through
Realize.
Step S405, judges whether to get the trigger event of the present alert notification of second client 40 transmission, if
Get, then perform step S406, conversely, then performing step S408.
Step S406, is shown in live video region to virtual present.
In the present embodiment, holding the user of second client 40 can click on to the present alert notification,
The click commands of the response of second client 40 user simultaneously send the trigger event of the present alert notification to the service
Device 10, if the server 10 gets the trigger event, calls the corresponding virtual present of the trigger event and by the void
Plan present, which is sent to live video region, to be shown.Wherein, Web server caller can be passed through
Open.FlashSserver.MonitorClick () obtains the trigger event.
It should be noted that when being shown by the live video region to the virtual present, the live video region
It can be the live video region in all clients in the direct broadcasting room, may also be only the second visitor for sending the trigger event
Live video region on family end 40, or for the first client 30 and send straight in the second client 40 of the trigger event
Video area is broadcast, the present embodiment is not limited herein.
Alternatively, can be with when the server 10 carries out special efficacy displaying according to the trigger event got to virtual present
Often to get the trigger event that second client 40 is sent, just the corresponding virtual present of the trigger event is carried out
Once comprehensive special efficacy displaying, or often obtain a trigger event, only show the corresponding virtual present of the trigger event
Part special efficacy, when getting the same virtual present of predetermined number corresponding trigger event, just shows the virtual present
Whole special efficacys.
Alternatively, if occurring repeatedly overlapping present in the live video region of second client 40 reminds logical
Know, can one by one be shown according to the sequencing for sending trigger event.
Further, in the present embodiment, in order to guide each 40 pairs of second client virtual present alert notification to enter
Row is clicked on, to improve the participation of each client, as shown in figure 4, the present embodiment can also comprise the following steps, it is specific as follows.
Step S4060, highlighted processing is carried out to the virtual present after displaying.
Step S4062, will include the multiple for the guiding poster for guiding user to trigger the present alert notification
In the live video region of second client 40.
When reality is implemented, poster is guided to guide by carrying out highlighted processing to the virtual present after displaying and sending
Different user in same direct broadcasting room is clicked on simultaneously by corresponding 40 pairs of the second client present alert notification
Trigger corresponding virtual present.Wherein, Web server caller Show.FlashSserver.Highlight can be passed through
(GID) realize that guiding poster is realized in highlighted processing, and caller Show.FlashSserver.RoomGuide (GID)
Send and show.It should be understood that the step S4060 and step S4062 implementation not limited to this.
Further, in order to improve the live-experience of user, referring to Fig. 3, it can be reminded by monitoring the present
The display duration in each second client 40 is notified, decides whether that the present alert notification is continued to show, comprises the following steps that.
Step S408, monitors display of the present alert notification in the live video region of second client 40
Duration.
Step S409, judges whether the display duration reaches preset duration, if reaching, performs step S410, conversely,
Then perform step S408.
Step S410, cancels the display of the present alert notification.
In the present embodiment, the server 10 is sent and including multiple described by each present alert notification
During the live video region of the second client 40, the time monitor of the flash floating layers of Web server can be located at by opening,
To monitor display duration of the present alert notification in the live video region of second client 40.Then, judge
Whether the display duration reaches preset duration, if reaching, cancels the present alert notification, wherein, Web service can be passed through
Device caller Open.FlashSserver.MonitorClick () realizes the opening to the time monitor.If for example,
User does not click on the present alert notification, then can pass through Web server caller Show.FlashSserver.Display
(GID, 5s), to cause the present alert notification is stopped in live video region to be disappeared automatically after preset duration, such as 5S.
Each client in direct broadcasting room knows that virtual present is clicked on the number of times checked by each user terminal in time for convenience, such as
Shown in Fig. 5, the virtual gift display method is further comprising the steps of.
Step S412, records the trigger event that the present alert notification got is triggered by each second client 40.
In the present embodiment, the server 10 can record trigger event institute right when getting the trigger event
The relevant information answered, for example, triggered time, the present alert notification type, notice display duration, room number, the second client
The ID at end 40 etc., the server 10 often obtains a trigger event, just generates a thing corresponding with the trigger event
Part is recorded and preserved.
Step S414, counts the total degree of the trigger event got, and the total degree is broadcasted.
In the present embodiment, according to the logout obtained in the step S412, count corresponding present and remind logical
Know the total degree triggered by each second client 40, and the total degree is broadcasted.Wherein, the total degree is entered
During row broadcast, the different forms of broadcasting can be used, for example, sending barrage notice by barrage server or reminding main broadcaster directly to enter
Row voice circular etc..
Step S416, trigger event list corresponding with the present alert notification is generated according to the trigger event of record,
And the trigger event list is sent to first client 30.
In the present embodiment, the server 10 can according to obtained in step S412 the logout generation with it is described
The corresponding trigger event list of present alert notification, and the trigger event list is sent to first client 30, so as to
Check that given virtual present is clicked on the number of times checked by each second client 40 at any time in first client 30.
It should be understood that in the present embodiment, the trigger event list can be by the active push of server 10 to described
First client 30, also can actively be clicked on to obtain, the present embodiment is without limitation by first client 30.
To avoid the second client 40 described in identical from repeating the corresponding present alert notification of same virtual present
Triggering, and cause described 10 pairs of presents of server to carry out multiplicating displaying, of reduction user live broadcast video-see process
People experiences, as shown in fig. 6, methods described is further comprising the steps of.
Step S418, extracts the identification code for the second client 40 for sending trigger event.
In the present embodiment, when the server 10 performs step S405, it can extract and send the described of the trigger event
The identification code of second client 40 and preservation.Wherein, should because the identification code is used to judge to be directed to same present alert notification
Whether the second client 40 has been transmitted across corresponding trigger event, therefore, and the mark code can be second client 40
Room number, the IP address of ID or second client 40, virtual present type etc., the present embodiment is not limited this
System.
Step S419, judges whether to have obtained the triggering of the same present alert notification of second client 40 transmission
Event, if having obtained, performs step S420, conversely, performing step S406.
Step S420, is no longer shown to the corresponding virtual present of the present alert notification.
In the present embodiment, the server 10 judges whether to have obtained second client according to the identification code
The trigger event of the 40 same present alert notifications sent, if having obtained, no longer to present alert notification correspondence
Virtual present be shown.Alternatively, when the server 10 no longer shows identical virtual present, it can be transmitted for reminding
The reasons why user of second client 40 no longer carries out present displaying, so as to further enhance for watching live-experience.
Fig. 7 is please referred to, the embodiment of the present invention also provides a kind of virtual present exhibition that can be applied to the server 10
Show system 400.The virtual present display systems 400 include notifying generation module 402, notify sending module 404, present displaying
Module 406, monitoring modular 408, notice cancel module 410, logging modle 412, broadcast module 414, the and of List Generating Module 416
Trigger event judge module 418.
It is described to notify generation module 402 to be used for the virtual present triggering command generation present sent according to the first client 30
Alert notification.Specifically, in the present embodiment, it is described to notify generation module 402 to can be used for performing the step S402 in Fig. 3, tool
The operating method of body refers to step S402 detailed description.
The notice sending module 404 is used to the present alert notification being sent to multiple second clients 40, so that
The live video region of the multiple second client 40 shows the present alert notification.Specifically, in the present embodiment, institute
State and notify sending module 404 to can be used for performing the step S404 in Fig. 3, specific operating method refers to the detailed of step S404
Description.
The present display module 406 is used to be directed to each second client 40, judges whether to get second client
The trigger event for the present alert notification that end 40 is sent, if getting the trigger event, in live video region to virtual
Present is shown.Specifically, in the present embodiment, the present display module 406 can be used for performing the step S405 in Fig. 3
Or step S406, specific operating method refers to step S405 and step S406 detailed description.
The monitoring modular 408 is regarded for monitoring the present alert notification in multiple the live of second client 40
Display duration in frequency domain.Specifically, in the present embodiment, the monitoring modular 408 can be used for performing the step in Fig. 3
S408, specific operating method refers to step S408 detailed description.
It is described to notify that cancelling module 410 is used to judge whether the display duration reaches preset duration, if during the display
Length reaches the preset duration, then cancels the display of the present alert notification.Specifically, in the present embodiment, the notice takes
The module that disappears 410 can be used for performing the step S409 or step S410 in Fig. 3, and specific operating method refers to step S409 or step
Rapid S410 detailed description.
The logging modle 412 is used to record what the present alert notification got was triggered by each second client 40
Trigger event.Specifically, in the present embodiment, the logging modle 412 can be used for performing the step S412 in Fig. 5, specifically
Operating method refers to step S412 detailed description.
The broadcast module 414 is used for the total degree for counting the trigger event got, and the total degree is carried out wide
Broadcast.Specifically, in the present embodiment, the broadcast module 414 can be used for performing the step S414 in Fig. 5, specific operation side
Method refers to step S414 detailed description.
The List Generating Module 416 is used for corresponding with the present alert notification according to the generation of the trigger event of record
Trigger event list, and the list is sent to first client 30.Specifically, in the present embodiment, the list life
It can be used for performing the step S416 in Fig. 5 into module 416, specific operating method refers to step S416 detailed description.
The trigger event judge module 418 is used for the identification code for extracting the second client 40 for sending trigger event, and
Judged whether to have obtained the triggering thing for the same present alert notification that second client 40 is sent according to the identification code
Part, if having obtained, is no longer shown to the corresponding virtual present of the present alert notification.Specifically, in this implementation
In example, the trigger event judge module 418 can be used for performing step S418, step S419 or the step S420 in Fig. 6, specifically
Operating method refer to step S418- steps S420 detailed description.
In summary, virtual gift display method and system provided in an embodiment of the present invention, according to the difference visitor got
The trigger event that family end is sent to trigger present alert notification, can effectively improve it is live during interaction between each client
Property and participation.
In the description of the invention, term " setting ", " connected ", " connection " should be interpreted broadly, for example, it may be fixed
Connect or be detachably connected, or be integrally connected;Can be mechanical connection or electrical connection;Can be direct
It is connected, can also be indirectly connected to by intermediary, can be the connection of two element internals.For the ordinary skill of this area
For personnel, the concrete meaning of above-mentioned term in the present invention can be understood with concrete condition.
In several embodiments that the embodiment of the present invention is provided, it should be understood that disclosed apparatus and method, also may be used
To realize by other means.Apparatus and method embodiment described above is only schematical, for example, the stream in accompanying drawing
Journey figure and block diagram show that the device of the predetermined number embodiment according to the present invention, method and computer program product may be real
Existing architectural framework, function and operation.At this point, each square frame in flow chart or block diagram can represent module, a journey
A part for sequence section or code.A part for the module, program segment or code is used to realize comprising one or predetermined number
Defined logic function.
It should also be noted that in some implementations as replacement, the function of being marked in square frame can also be with difference
The order marked in accompanying drawing occurs.For example, two continuous square frames can essentially be performed substantially in parallel, they are sometimes
It can also perform in the opposite order, this is depending on involved function.It is also noted that in block diagram and/or flow chart
The combination of each square frame and the square frame in block diagram and/or flow chart, can be with function as defined in performing or action it is special
Hardware based system is realized, or can be realized with the combination of specialized hardware and computer instruction.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.