CN105373306B - Virtual objects presentation method and device - Google Patents

Virtual objects presentation method and device Download PDF

Info

Publication number
CN105373306B
CN105373306B CN201510656802.2A CN201510656802A CN105373306B CN 105373306 B CN105373306 B CN 105373306B CN 201510656802 A CN201510656802 A CN 201510656802A CN 105373306 B CN105373306 B CN 105373306B
Authority
CN
China
Prior art keywords
present
coordinate
net cast
sliding trace
virtual
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510656802.2A
Other languages
Chinese (zh)
Other versions
CN105373306A (en
Inventor
刘俊杰
曾智旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201510656802.2A priority Critical patent/CN105373306B/en
Publication of CN105373306A publication Critical patent/CN105373306A/en
Application granted granted Critical
Publication of CN105373306B publication Critical patent/CN105373306B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a kind of virtual objects presentation methods, belong to network multimedia field.The method includes:During net cast, receive the slip gesture on net cast picture, record the sliding trace parameter of the slip gesture, according to the sliding trace parameter present animation is shown on the net cast picture, present being sent to server according to the slip gesture and giving instruction, the present, which is given to instruct to be used to indicate, asks the server to give virtual present to the live streaming user of the net cast.So that user only need to be in net cast region slip gesture, so that it may to give virtual present directly to live streaming user.Live streaming picture, and problem complicated for operation when selection virtual present are blocked when solving selection present inventory, net cast picture need not be blocked by having reached during giving virtual present, simplified the step of giving virtual present, saved the effect of operating time.

Description

Virtual objects presentation method and device
Technical field
The present invention relates to network multimedia field, more particularly to a kind of virtual objects presentation method and device.
Background technology
With the development of internet, live streaming user can pass through the side in establishment net cast room on video living transmission system Formula shows intelligence and art to spectators user.Video living transmission system includes:Direct broadcast server and each client used by a user.It is optional Ground, is broadcast live user and spectators user is in same net cast room.
During user is broadcast live showing intelligence and art to spectators user by net cast room, spectators user can be to straight Broadcasting user gives virtual objects as present.For example, spectators user first clicks present icon in the client, client pops up gift Object inventory.Spectators user selectes the virtual objects to be sent out from present inventory, then clicks ACK button and is sent.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems:Above-mentioned virtual objects Operation on the unsuitable mobile terminal of presentation method, on the one hand, the display area on mobile terminal is limited, and present inventory can hide Net cast picture is kept off, the normal viewing of user is influenced;On the other hand, spectators user needs three or more to operate, Giving for virtual objects can be completed, operating efficiency is relatively low.
Invention content
In order to solve problems in the prior art, an embodiment of the present invention provides a kind of virtual Presents Giving method and devices. The technical solution is as follows:
In a first aspect, a kind of virtual objects presentation method is provided, the method includes:
During net cast, the slip gesture on net cast picture is received;
Record the sliding trace parameter of the slip gesture;
According to the sliding trace parameter present animation is shown on the net cast picture;
Present being sent to server according to the slip gesture and giving instruction, the present gives instruction and is used to indicate request The server gives virtual present to the live streaming user of the net cast.
In the first possible embodiment of first aspect, it is described according to the sliding trace parameter in the video Present animation is shown on live streaming picture, including:
Present is generated on the net cast picture show track according to the sliding trace parameter;
The virtual present is shown that track carries out animation and shows along the present.
In second of possible embodiment, the sliding trace parameter includes:The starting point coordinate of the sliding trace, With the coordinate of other sampled points in the sliding trace in addition to starting point;
The present that generated on the net cast picture according to the sliding trace parameter shows track, including:
The starting point coordinate, the coordinate of other sampled points and scheduled terminal point coordinate input Bezier are generated In algorithm, target Bezier is obtained;
According to the target bezier curve, at least one crucial frame coordinate of the virtual present is determined,
The virtual present, which is obtained, according at least one crucial frame coordinate shows track.
In the third possible embodiment, the sliding trace parameter further includes:The sliding of other sampled points Direction and sliding speed;
The method further includes:
Whether the number for detecting other sampled points reaches predetermined number;
If the not up to described predetermined number, according to the glide direction of other sampled points and sliding speed predict to A few prediction samples point;
It is described that the starting point coordinate, the coordinate of other sampled points and scheduled terminal point coordinate are inputted into Bezier In generating algorithm, target Bezier is obtained, including:
By the starting point coordinate, the coordinate of other sampled points, the coordinate of prediction samples point and scheduled terminal Coordinate inputs in Bezier generating algorithm, obtains target Bezier.
With reference to first aspect, the possible embodiment of the first of first aspect, second of possible reality of first aspect The third the possible embodiment for applying mode or first aspect, it is described according to institute in the 4th kind of possible embodiment It states before sliding trace parameter shows present animation on the net cast picture, further includes:
Detection active user's account number whether there is in the virtual present that can give state;
If active user's account number exists in the virtual present that can give state, execute described according to the sliding Trajectory parameters on the net cast picture the step of showing present animation.
Second aspect provides a kind of virtual objects and gives device, and described device includes:
Gesture receiving module is configured as during net cast, receives the slip gesture on net cast picture;
Reference record module is configured as recording the sliding trace parameter of the slip gesture;
Animation display module, the sliding trace parameter for being configured as being recorded according to the reference record module is in the video Present animation is shown on live streaming picture;
Instruction sending module is configured as the slip gesture received according to the gesture receiving module and sends gift to server Object gives instruction, and the present, which is given to instruct to be used to indicate, asks the server to be given to the live streaming user of the net cast Virtual present.
In the first possible embodiment of second aspect, the animation display module, including:
Track Pick-up subelement is configured as being regarded described according to the sliding trace parameter that the reference record module records Present, which is generated, on frequency live streaming picture shows track;
Animation shows subelement, is configured as showing the present that the virtual present is generated along the Track Pick-up subelement Show that track carries out animation and shows.
In second of possible embodiment, the sliding trace parameter includes:The starting point coordinate of the sliding trace, With the coordinate of other sampled points in the sliding trace in addition to starting point;
The Track Pick-up subelement, including:
First generates subelement, is configured as the starting point coordinate for recording the reference record module, other samplings In the coordinate of point and scheduled terminal point coordinate input Bezier generating algorithm, target Bezier is obtained;
Coordinate determination subelement is configured as generating the target bezier curve that subelement generates according to described first, really At least one crucial frame coordinate of the fixed virtual present,
Track obtains subelement, is configured as obtaining the virtual present according at least one crucial frame coordinate showing Track.
In the third possible embodiment, the sliding trace parameter further includes:The sliding of other sampled points Direction and sliding speed;
Described device further includes:
Whether first detection module, the number for being configured as detecting other sampled points reach predetermined number;
Prediction module, if being configured as first detection module detection is not up to the predetermined number, according to described other The glide direction and sliding speed of sampled point predict at least one prediction samples point;
Described first generates subelement, including:
Second generates subelement, is configured as the starting point coordinate, the coordinate of other sampled points, the prediction mould In the coordinate and scheduled terminal point coordinate input Bezier generating algorithm of the prediction samples point of block prediction, target shellfish plug is obtained That curve.
The first possible embodiment, second of possible reality of second aspect in conjunction with second aspect, second aspect The third possible embodiment of mode or second aspect is applied, in the 4th kind of possible embodiment, described device is also Including:
Second detection module is configured as showing present on the net cast picture according to the sliding trace parameter Before animation, detection active user's account number whether there is in the virtual present that can give state;
Animation display module is in and can give if being configured as second detection module and detecting that active user's account number exists The virtual present of state is sent, then executes the sliding trace parameter recorded according to the reference record module and is drawn in the net cast The operation of present animation is shown on face.
The advantageous effect that technical solution provided in an embodiment of the present invention is brought is:
It is triggered to server by slip gesture and sends the method that present gives instruction, make user can be by net cast Region slip gesture can give live streaming user to give virtual present, it is not necessary to select present to be sent from present inventory, make User can send virtual present while watching video live broadcast, and live streaming picture is blocked when solving selection present inventory Face gives virtual present problem complicated for operation, and net cast picture need not be blocked during giving virtual present by having reached, Simplify the step of giving virtual present, saves the effect of operating time.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, other are can also be obtained according to these attached drawings Attached drawing.
Fig. 1 is a kind of virtual objects presentation method flow chart shown according to an exemplary embodiment;
Fig. 2A is a kind of virtual objects presentation method flow chart shown according to an exemplary embodiment;
Fig. 2 B are the schematic diagrames of other sampled points sampled out to slip gesture shown according to an exemplary embodiment;
Fig. 2 C are the display animation effect figures that the virtual objects shown according to an exemplary embodiment are given;
Effect that virtual objects when being straight line give that Fig. 2 D are the slip gestures that show according to an exemplary embodiment Figure;
Fig. 2 E be the prediction samples point coordinates that shows according to an exemplary embodiment on the outside of net cast picture when The design sketch that virtual objects are given;
Fig. 3 is that a kind of virtual objects shown according to an exemplary embodiment give the block diagram of device;
Fig. 4 is that a kind of virtual objects shown according to an exemplary embodiment give the block diagram of device.
Specific implementation mode
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects being described in detail in claims, of the invention.
Referring to FIG. 1, it illustrates the flow chart of virtual objects presentation method provided by one embodiment of the present invention, this reality Example is applied with the virtual objects presentation method applied to coming in terminal for example, operation has the visitor of video living transmission system in the terminal Family end, the client are application client or webpage client.The present presentation method can include but is not limited to following Step:
In a step 101, during net cast, the slip gesture on net cast picture is received.
In a step 102, the sliding trace parameter of the slip gesture is recorded.
In step 103, present animation is shown on net cast picture according to the sliding trace parameter.
At step 104, present is sent to server according to slip gesture and gives instruction, which gives instruction for referring to Show that request server gives virtual present to the live streaming user of net cast.
In conclusion virtual objects presentation method provided in an embodiment of the present invention, by during net cast, receiving Slip gesture on net cast picture;Record the sliding trace parameter of the slip gesture;According to sliding trace parameter regarding Present animation is shown on frequency live streaming picture;Present being sent to server according to slip gesture and giving instruction, which gives instruction It is used to indicate request server and gives virtual present to the live streaming user of net cast.So that user only need to be in net cast region Slip gesture, so that it may to give virtual present directly to live streaming user, without selecting present from present inventory, click and send Button could give live streaming user to send virtual present, and net cast picture, and selection are blocked when solving selection present inventory Problem complicated for operation when virtual present, net cast picture need not be blocked during giving virtual present by having reached, and be simplified The step of giving virtual present saves the effect of operating time.
A is please referred to Fig.2, it illustrates the flow charts of virtual objects presentation method provided by one embodiment of the present invention, originally Embodiment with the virtual objects presentation method applied to come in terminal for example, in the terminal operation have video living transmission system Client, the client be application client or webpage client, the present presentation method can include but is not limited to Lower step:
In step 201, during net cast, the slip gesture on net cast picture is received.
Video living transmission system includes:Server and client side.Client includes:Main broadcaster client used by a user is broadcast live End, and, spectators' spectator client used by a user.
In the same net cast room, spectators user can watch the live video of live streaming user.That is, live streaming is used Family uploads live video stream by main broadcaster's user end to server, and server is by live video stream multicast or is broadcast to same video Multiple spectator clients in room are broadcast live, are checked for spectator client." net cast room " is in different video living transmission systems In, " channel ", " studio " etc. can also be known as.
During spectators user uses spectator client watching video live broadcast picture, if terminal has detected touch screen The action of curtain judges whether the touch action is slip gesture, or, judging the touch operation when occurring on net cast picture Whether it is scheduled slip gesture.
Optionally, when the IOS operating system provided using American apple company in terminal, a kind of judgment method is:Root Judge whether touch action is slip gesture according to the detection program of common slip gesture Pan in IOS systems (towing gesture).It can Choosing, terminal identifies that this is touched according to the detection program of UISwipeGestureRecognizer (gently sweeping gesture) in IOS systems Touch whether action is slip gesture, but the present embodiment is not specifically limited the judgment method of slip gesture.
During net cast, if terminal judges that the touch action on net cast picture is slip gesture, eventually End receives the slip gesture.Optionally, terminal detects whether the slip gesture is scheduled slip gesture, scheduled slip gesture It is for triggering the slip gesture for giving virtual present, for example, the gesture slided from the bottom of net cast picture to top.Only When slip gesture is scheduled slip gesture, step 202 is executed.
In step 202, detection active user's account number whether there is in the virtual present that can give state.
In one possible implementation, the user account number of spectators user possesses unlimited use condition and/or uses number The virtual present of amount;In alternatively possible realization method, just possess when the user account number of spectators user conforms to a predetermined condition In the virtual present that can give state, for example, the user account number of spectators user is paid for user or VIP user;At another In possible realization method, the user account number of spectators user be only capable of possessing within each period limited quantity in can give The virtual present of state possesses 5 in the virtual present that can give state for example, per an online hour.
In a possible embodiment, it in net cast room, after virtual present is sent once, needs in identical live streaming Viewed status is maintained in room for a period of time, and client can be just obtained again in the virtual present that can give state.Therefore, exist When receiving slip gesture or scheduled slip gesture, the client that is run in terminal whether there is in can active user's account number The virtual present for giving state is detected.
Such as:When a certain user to live streaming user gave virtual present after, this live streaming room in watch 600s Just there can be virtual present to give qualification again afterwards.
Optionally, the qualification for giving virtual present can not also be limited, that is, during net cast, user After giving a virtual present to live streaming user, virtual present can be given again at any time, it is not necessary in identical live streaming room Between middle waiting.
If it is detected that active user's account number exists in the virtual present that can give state, 203 are thened follow the steps;Otherwise, Then execute 212.
In step 203, the sliding trace parameter of slip gesture is recorded;The sliding trace parameter includes:The sliding trace Starting point coordinate, and, the coordinate of other sampled points in the sliding trace in addition to starting point;The sliding trace parameter further includes: The glide direction and sliding speed of other sampled points.
Terminal can sample the slip gesture received, and record the sliding trace parameter of slip gesture.Slide rail Mark parameter includes:The starting point coordinate of sliding trace, and the coordinate of other sampled points in addition to starting point, glide direction and sliding speed Degree.
Optionally, other sampled points are terminals every pre- fixed sample interval point collected to sliding trace.
Optionally, other sampled points are the inflection point that is identified in sliding trace of terminal, and the recognition methods of the inflection point can be with For:When terminal detects that coordinate of certain point on sliding trace makes the second dervative of sliding trace be zero, and three order derivatives are not When zero, judge the point for the inflection point of sliding trace.The present embodiment is not defined the judgment method of inflection point in sliding trace.
In conjunction with examining Fig. 2 B, on net cast picture 1, terminal receives sliding trace 20, and to the sliding trace 20 into Row sampling, midpoint 21 are starting point, and point 22 is other sampled points.
In step 204, whether the number for detecting other sampled points reaches predetermined number.
After terminal-pair slip gesture is sampled, the other sampled points obtained will at least reach predetermined number, this default Number is set by developer, and numerical value can be 4,5,6,7 etc., and the present embodiment does not limit.
After terminal collects other sampled points, need whether the number for detecting other sampled points reaches predetermined number.If reaching To predetermined number, 205 are thened follow the steps;If not up to predetermined number thens follow the steps 210.
In step 205, starting point coordinate, the coordinate of other sampled points and scheduled terminal point coordinate are inputted into Bezier In generating algorithm, target Bezier is obtained;
When other sampled point numbers are more than or equal to predetermined number, then terminal can be other by the starting point coordinate of record The coordinate of sampled point and scheduled terminal point coordinate are input in Bezier generating algorithm.The scheduled terminal point coordinate can be Coordinate positioned at a corner of net cast picture, for example, upper left corner or bottom right corner.
Optionally, terminal is according to Bezier formula:
Set point P0, P1, P2 ... Pn, Bezier are:
Wherein, time/time for consume from animation starting point to scheduled terminal of t=current sampling points consumption, current wiping The time of itchy points consumption is time for being consumed to current sampling point since animation;Pn is the coordinate of n-th of point point, and n is big In the positive integer equal to 0.
Target Bezier is obtained by above-mentioned algorithm.
In step 206, according to target bezier curve, at least one crucial frame coordinate of virtual present is determined.
Terminal determines at least one crucial frame coordinate according to obtained target Bezier.Crucial frame coordinate is virtual Coordinate of the present on the animation key frame when sliding display on net cast picture.
Specifically, the method linearly filled up may be used in terminal or the method for IOS system curve animations sits key frame Mark is determined.The present embodiment does not limit the determination method of crucial frame coordinate.
In step 207, present is obtained according at least one crucial frame coordinate and shows track.
Terminal obtains display rail of the virtual present in live video picture according to determining at least one crucial frame coordinate Mark.
In a step 208, virtual present is shown that track carries out animation and shows along present.
In conjunction with reference to figure 2C, on net cast picture 1, virtual present " star " 5 shows track 23 into action along present Draw display.That is, virtual present " star " 5 shows that the starting point of track 23 occurs from present, sliding display to scheduled terminal 4 It disappears.The present shows that the starting point of track 23 is also the starting point of slip gesture.
In step 209, present is sent to server according to slip gesture and gives instruction, which gives instruction for referring to Show that request server gives virtual present to the live streaming user of net cast.
After slip gesture or scheduled slip gesture that terminal receives, while showing virtual present, terminal can also It generates and gives instruction for giving the present of virtual present to live streaming user.At this moment, terminal can send present to server and give Instruction and the user account number logged in the terminal, the present give instruction and are used to indicate live streaming of the request server to net cast User gives virtual present.
Live streaming user is the supplier in net cast room.
As the alternatively possible branch of step 204, if the number for other sampled points that terminal is got is not up to pre- If number thens follow the steps 210.
In step 210, at least one prediction samples are predicted according to the glide direction of other sampled points and sliding speed Point.
When inflection point is less in the sliding trace that terminal receives, alternatively, the sliding trace received is shorter, alternatively, sliding rail Mark has one section when marking except net cast picture, the case where causing the number of other sampled points that predetermined number is not achieved.
When getting the number of other sampled points and other sampled points in terminal and being not up to predetermined number, terminal is according to acquisition Glide direction, sliding speed and the coordinate of the last one the other sampled point arrived predict the coordinate of first prediction samples point. If the number summation of other sampled points and first prediction samples point does not reach predetermined number also, terminal is adopted according to the first prediction The coordinate of sampling point and the glide direction of the last one other sampled point and sliding speed continue to predict second prediction samples point, Until reaching predetermined number.Optionally, following algorithm can be used in prediction technique:
The coordinate of the coordinate of first prediction samples point=the last one other sampled point+the last one other sampled point Direction vector × preset time of speed × the last one other sampled point.
The speed of coordinate+the last one other sampled point of the coordinate=the (n-1)th prediction samples point of n-th of prediction samples point Direction vector × predetermined time of degree × the last one other sampled point.
Preset time in above-mentioned algorithm can be by Developmental Engineer's sets itself, such as:0.1s, 0.2s, 0.3s etc., this implementation Example does not limit.
In step 211, by starting point coordinate, the coordinate of other sampled points, the coordinate of prediction samples point and scheduled terminal Coordinate inputs in Bezier generating algorithm, obtains target Bezier.
The coordinate of starting point coordinate, scheduled terminal point coordinate, the coordinate of other sampled points and prediction samples point is input to shellfish In Sai Er Curve derivative algorithms.
Optionally, according to Bezier formula:
Set point P0, P1, P2 ... Pn, Bezier are:
Wherein, it time/time for being consumed from animation starting point to scheduled terminal of t=current sampling points consumption, currently adopts The time of sampling point consumption is time for being consumed to current sampling point since animation;Pn is the coordinate of n-th of point point, and n is big In the positive integer equal to 0.
Target Bezier is obtained by above-mentioned algorithm, executes step 206.
As a possible branch of step 202, if active user's account number, which is not present to be in, can give the virtual of state Present thens follow the steps 212.
In the step 212, it if it is detected that active user's account number is not present in the virtual present that can give state, reminds There is no in the virtual present that can give state.
For example, will appear the printed words of " present that can be given is not present in you " on the display interface of terminal.
In conclusion virtual objects presentation method provided in an embodiment of the present invention, by according to slip gesture to server It sends present and gives instruction;It is sampled according to slip gesture, shellfish plug is generated according to sampled point and track starting point and default terminal That curve;According to target bezier curve, at least one crucial frame coordinate of virtual present is determined;According at least one key frame Coordinate obtains present and shows track;The virtual present is shown that track carries out animation and shows along the present.So that user can By that live streaming user can be given to give virtual present in net cast region slip gesture, it is not necessary to select gift from present inventory Object is sent, and is blocked live streaming picture when solving selection present inventory, is given virtual present problem complicated for operation, reach Net cast picture need not be blocked in the process by giving virtual present, simplify the step of giving virtual present, save the operating time Effect.
In addition, by generating target Bezier according to the slip gesture of user, determined according to target Bezier Crucial frame coordinate, the method for finally showing track according to key frame Coordinate generation present solve aobvious according to user's sliding trace The undesirable problem of the animation curve that shows has reached the present shown in video area more coherent, essence of giving curve of sliding Accurate effect.
It should be added that in this step 210, when being sampled to sliding trace, there may be two kinds of special feelings Condition, optionally, terminal-pair should make following processing:
1) when the slip gesture received is straight line, inflection point, other sampled points that terminal obtains are not present at this time Number is zero, and at this moment, the predetermined animation that terminal can use developer to set in advance shows track giving virtual present Journey is shown in net cast picture.
D is please referred to Fig.2, Fig. 2 D are slip gesture design sketch that virtual objects when being straight line give, user is straight in video The gesture 30 that a upward sliding is made in picture 1 is broadcast, the gesture of the upward sliding is straight line.At this point, virtual present 5 is pressed Show that track 24 reaches scheduled terminal 4 according to predetermined animation.That is, virtual present 5 can be a star present, the virtual gift Object 5 shows that the starting point of track 24 occurs from predetermined animation, then shows that track 24 is moved along predetermined animation, and predetermined being moved to Terminal 4 when disappear.
If 2) sat according to the prediction samples point that the last one other sample point coordinate predicts according to the method in this step It is marked on the outside of net cast picture, then uses following algorithm:
The speed of first prediction samples point coordinates=the last one sample point coordinate+the last one other sampled point × pre- Direction vector × time of fixed terminal, alternatively,
The speed of coordinate+the last one other sampled point of the coordinate=the (n-1)th prediction samples point of n-th of prediction samples point Direction vector × time of degree × scheduled terminal.
The direction vector of the scheduled terminal is the vector that scheduled terminal is directed toward from the last one other sampled point.
Scheduled terminal in above-mentioned algorithm is the terminal that virtual present shows arrival in net cast picture, it is one A fixed position, is set by developer.Such as:In the upper left corner of net cast picture, the upper right corner, the lower left corner, lower right corner etc..
Please refer to Fig.2 E be prediction samples point coordinates on the outside of net cast picture when the design sketch given of virtual objects. User makes a slip gesture 31 in net cast picture 1, in the last one other sampled point according to slip gesture 31 When the prediction samples point coordinates that coordinate predicts is located at the outside of net cast picture 1, virtual present 5 shows track according to present 25 reach scheduled terminal 4.
Referring to FIG. 3, it illustrates the block diagram that virtual objects provided by one embodiment of the present invention give device, this implementation Example with the virtual objects give device applied to come in terminal for example, the present give device can include but is not limited to Lower module:Gesture receiving module 310, reference record module 320, animation display module 330, instruction sending module 340.
The gesture receiving module 310, for during net cast, receiving the sliding hand on net cast picture Gesture;
The reference record module 320, the sliding trace parameter for recording the slip gesture;
The animation display module 330, the sliding trace parameter for being recorded according to reference record module 320 is in net cast Present animation is shown on picture;
The instruction sending module 340, the slip gesture for being received according to gesture receiving module 310 send gift to server Object gives instruction, which gives instruction and be used to indicate request server and give virtual present to the live streaming user of net cast.
In conclusion virtual objects provided in an embodiment of the present invention give device, by during net cast, receiving Slip gesture on net cast picture;Record the sliding trace parameter of the slip gesture;According to sliding trace parameter regarding Present animation is shown on frequency live streaming picture;Present being sent to server according to slip gesture and giving instruction, which gives instruction It is used to indicate request server and gives virtual present to the live streaming user of net cast.So that user only need to be in net cast region Slip gesture, so that it may to give virtual present directly to live streaming user, without selecting present from present inventory, click and send Button could give live streaming user to send virtual present, and live streaming picture is blocked when solving selection present inventory, and select virtual Problem complicated for operation when present, net cast picture need not be blocked by having reached during giving virtual present, simplification is given The step of virtual present, saves the effect of operating time.
Referring to FIG. 4, it illustrates the block diagram that virtual objects provided by one embodiment of the present invention give device, this implementation Example with the virtual objects give device applied to come in terminal for example, the present give device can include but is not limited to Lower module:Gesture receiving module 410, reference record module 420, animation display module 430, instruction sending module 440.
The gesture receiving module 410, for during net cast, receiving the sliding hand on net cast picture Gesture;
The reference record module 420, the sliding trace parameter for recording the slip gesture;
The animation display module 430, the sliding trace parameter for being recorded according to reference record module 420 is in net cast Present animation is shown on picture;
The instruction sending module 440, the slip gesture for being received according to gesture receiving module 410 send gift to server Object gives instruction, which gives instruction and be used to indicate request server and give virtual present to the live streaming user of net cast.
Optionally, the animation display module 430, including:Track Pick-up unit 431, animation display unit 432;
The Track Pick-up unit 431, the sliding trace parameter for being recorded according to reference record module 420 is in net cast Present is generated on picture shows track;
The animation display unit 432, the present for generating virtual present along Track Pick-up unit 431 show track into Action picture is shown.
The sliding trace parameter includes:The starting point coordinate of sliding trace, and, other in addition to starting point adopt in sliding trace The coordinate of sampling point.
Optionally, the Track Pick-up unit 431, including:First generate subelement 431A, coordinate determination subelement 431B, Track obtains subelement 431C;
This first generates subelement 431A, starting point coordinate, other sampled points for recording reference record module 430 In coordinate and scheduled terminal point coordinate input Bezier generating algorithm, target Bezier is obtained;
Coordinate determination subelement 431B, for generating the target bezier curve that subelement 431A is generated according to first, Determine at least one crucial frame coordinate of virtual present,
The track obtains subelement 431C, and at least one key frame for being determined according to coordinate determination subelement 431B is sat Mark obtains present and shows track.
The sliding trace parameter further includes:The glide direction and sliding speed of other sampled points.
Optionally, the virtual present sending device further includes:First detection module 450, sampled point prediction module 460.
Whether the first detection module 450, the number for detecting other sampled points reach predetermined number;
The sampled point prediction module 460, if not up to predetermined number is detected for detection module 450, according to other The glide direction and sliding speed of sampled point predict at least one prediction samples point;
Optionally, first generation subelement 431A, including:Second generates subelement 431D;
Second generation subelement 431D, is used for starting point coordinate, the coordinate of other sampled points, sampled point prediction module In the coordinate and scheduled terminal point coordinate input Bezier generating algorithm of the prediction samples point of 460 predictions, target shellfish is obtained Sai Er curves.
Optionally, the virtual present sending device further includes:Second detection module 470, animation display module 430.
Second detection module 470, for showing gift on the net cast picture according to the sliding trace parameter Before object animation, detection active user's account number whether there is in the virtual present that can give state;
The animation display module 430 is in if detecting that active user's account number exists for second detection module 470 The virtual present of state can be given, then executes the sliding trace parameter recorded according to reference record module 420 and is drawn in net cast The operation of present animation is shown on face.
The information feedback module 480, if detecting active user's account number for second detection module 470, there is no places When can give the virtual present of state, the letter in the virtual present that can give state is not present to client feedback in server Breath.
In conclusion virtual objects provided in an embodiment of the present invention give device, by according to slip gesture to server It sends present and gives instruction;It is sampled according to slip gesture, shellfish plug is generated according to sampled point and track starting point and default terminal That curve;According to target bezier curve, at least one crucial frame coordinate of virtual present is determined;According at least one key frame Coordinate obtains present and shows track;The virtual present is shown that track carries out animation and shows along the present.So that user can By that live streaming user can be given to give virtual present in net cast region slip gesture, it is not necessary to select gift from present inventory Object is sent, and is blocked live streaming picture when solving selection present inventory, is given virtual present problem complicated for operation, reach Net cast picture need not be blocked in the process by giving virtual present, simplify the step of giving virtual present, save the operating time Effect.
In addition, by generating target Bezier according to the slip gesture of user, determined according to target Bezier Crucial frame coordinate, the method for finally showing track according to key frame Coordinate generation present solve aobvious according to user's sliding trace The undesirable problem of the animation curve that shows has reached the present shown in video area more coherent, essence of giving curve of sliding Accurate effect.
It should be noted that:The device given of virtual objects that above-described embodiment provides when virtual objects are given, only with The division progress of above-mentioned each function module, can be as needed and by above-mentioned function distribution by not for example, in practical application Same function module is completed, i.e., the internal structure of equipment is divided into different function modules, to complete whole described above Or partial function.In addition, the virtual objects that above-described embodiment the provides device given and the method that virtual objects are given are implemented Example belongs to same design, and specific implementation process refers to embodiment of the method, and which is not described herein again.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can be stored in a kind of computer-readable In 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 the present invention spirit and Within principle, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.

Claims (8)

1. a kind of virtual objects presentation method, which is characterized in that the method includes:
During net cast, the slip gesture on net cast picture is received;
Record the sliding trace parameter of the slip gesture;
Present is generated on the net cast picture show track according to the sliding trace parameter;
The virtual objects are shown that track carries out animation and shows along the present;
Present being sent to server according to the slip gesture and giving instruction, the present is given instruction and is used to indicate described in request Server gives virtual present to the live streaming user of the net cast.
2. according to the method described in claim 1, it is characterized in that, the sliding trace parameter includes:The sliding trace Starting point coordinate, and, the coordinate of other sampled points in the sliding trace in addition to starting point;
The present that generated on the net cast picture according to the sliding trace parameter shows track, including:
The starting point coordinate, the coordinate of other sampled points and scheduled terminal point coordinate are inputted into Bezier generating algorithm In, obtain target Bezier;
According to the target bezier curve, at least one crucial frame coordinate of the virtual present is determined,
The virtual present, which is obtained, according at least one crucial frame coordinate shows track.
3. according to the method described in claim 2, it is characterized in that, the sliding trace parameter further includes:Other samplings The glide direction and sliding speed of point;
The method further includes:
Whether the number for detecting other sampled points reaches predetermined number;
If the not up to described predetermined number, at least one is predicted according to the glide direction of other sampled points and sliding speed A prediction samples point;
It is described to generate the starting point coordinate, the coordinate of other sampled points and scheduled terminal point coordinate input Bezier In algorithm, target Bezier is obtained, including:
By the starting point coordinate, the coordinate of other sampled points, the coordinate of prediction samples point and scheduled terminal point coordinate It inputs in Bezier generating algorithm, obtains target Bezier.
4. method according to any one of claims 1 to 3, which is characterized in that it is described according to the sliding trace parameter in institute It states before showing present animation on net cast picture, further includes:
Detection active user's account number whether there is in the virtual present that can give state;
If active user's account number exists in the virtual present that can give state, execute described according to the sliding trace Parameter on the net cast picture the step of showing present animation.
5. a kind of virtual objects give device, which is characterized in that described device includes:
Gesture receiving module, for during net cast, receiving the slip gesture on net cast picture;
Reference record module, the sliding trace parameter for recording the slip gesture;
Animation display module, including:Track Pick-up unit, and, animation display unit;
The Track Pick-up unit, the sliding trace parameter for being recorded according to the reference record module is in the video It is broadcast live on picture and generates present display track;
The animation display unit, present display track for being generated the virtual objects along the Track Pick-up unit into Action picture is shown;
Instruction sending module, the slip gesture for being received according to the gesture receiving module send present to server and give finger It enables, the present, which is given to instruct to be used to indicate, asks the server to give virtual gift to the live streaming user of the net cast Object.
6. device according to claim 5, which is characterized in that the sliding trace parameter includes:The sliding trace Starting point coordinate, and, the coordinate of other sampled points in the sliding trace in addition to starting point;
The Track Pick-up unit, including:
First generates subelement, the coordinate of starting point coordinate, other sampled points for recording the reference record module It is inputted in Bezier generating algorithm with scheduled terminal point coordinate, obtains target Bezier;
Coordinate determination subelement determines the void for generating the target bezier curve that subelement generates according to described first At least one crucial frame coordinate of quasi- present,
Track obtains subelement, and at least one crucial frame coordinate for being determined according to the coordinate determination subelement obtains described Virtual present shows track.
7. device according to claim 6, which is characterized in that the sliding trace parameter further includes:Other samplings The glide direction and sliding speed of point;
Described device further includes:
Whether first detection module, the number for detecting other sampled points reach predetermined number;
Sampled point prediction module, if the not up to described predetermined number is detected for first detection module, according to described other The glide direction and sliding speed of sampled point predict at least one prediction samples point;
Described first generates subelement, including:
Second generates subelement, is used for the starting point coordinate, the coordinate of other sampled points, the sampled point prediction module In the coordinate of the prediction samples point of prediction and scheduled terminal point coordinate input Bezier generating algorithm, target Bezier is obtained Curve.
8. according to any device of claim 5 to 7, which is characterized in that described device further includes:
Second detection module, for shown on the net cast picture according to the sliding trace parameter present animation it Before, detection active user's account number whether there is in the virtual present that can give state;
Animation display module can give state if being additionally operable to second detection module and detecting that active user's account number exists to be in Virtual present, then it is aobvious on the net cast picture to execute the sliding trace parameter that record according to the reference record module It displays courtesy the operation of object animation.
CN201510656802.2A 2015-10-13 2015-10-13 Virtual objects presentation method and device Active CN105373306B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510656802.2A CN105373306B (en) 2015-10-13 2015-10-13 Virtual objects presentation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510656802.2A CN105373306B (en) 2015-10-13 2015-10-13 Virtual objects presentation method and device

Publications (2)

Publication Number Publication Date
CN105373306A CN105373306A (en) 2016-03-02
CN105373306B true CN105373306B (en) 2018-10-30

Family

ID=55375551

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510656802.2A Active CN105373306B (en) 2015-10-13 2015-10-13 Virtual objects presentation method and device

Country Status (1)

Country Link
CN (1) CN105373306B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107678628A (en) * 2017-10-27 2018-02-09 珠海市魅族科技有限公司 Picture display method and device, computer installation and computer-readable recording medium
CN108537863A (en) * 2018-03-28 2018-09-14 武汉斗鱼网络科技有限公司 A kind of implementation method and device of present special efficacy

Families Citing this family (34)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105844533B (en) * 2016-03-31 2021-11-09 腾讯科技(深圳)有限公司 Information transmission method and device
CN105897770B (en) * 2016-06-20 2018-11-27 武汉斗鱼网络科技有限公司 A kind of virtual gift display method and device based on live streaming
CN105959127A (en) * 2016-06-28 2016-09-21 武汉斗鱼网络科技有限公司 Mobile terminal virtual gift effect showing method and device
CN106228348A (en) * 2016-07-29 2016-12-14 天脉聚源(北京)传媒科技有限公司 Method of counting when a kind of virtual present is mutual and device
CN106254910B (en) * 2016-07-29 2020-02-21 广州酷狗计算机科技有限公司 Method and device for recording image
CN106303733B (en) * 2016-08-11 2020-06-26 腾讯科技(深圳)有限公司 Method and device for playing live special effect information
CN107765976B (en) * 2016-08-16 2021-12-14 腾讯科技(深圳)有限公司 Message pushing method, terminal and system
CN107864408A (en) * 2016-09-22 2018-03-30 腾讯科技(深圳)有限公司 Information displaying method, apparatus and system
CN106878825B (en) * 2017-01-09 2021-07-06 腾讯科技(深圳)有限公司 Live broadcast-based sound effect display method and device
WO2018142494A1 (en) * 2017-01-31 2018-08-09 株式会社 ニコン Display control system and display control method
CN106933592A (en) * 2017-03-17 2017-07-07 武汉斗鱼网络科技有限公司 Interactive animation generation method and device
CN106878760B (en) * 2017-03-29 2018-09-04 武汉斗鱼网络科技有限公司 Draw and parse the method and device of present
CN106993235A (en) * 2017-03-30 2017-07-28 福建中金在线信息科技有限公司 A kind of exchange method and device
CN107248186A (en) * 2017-05-25 2017-10-13 北京潘达互娱科技有限公司 A kind of main broadcaster's upgrading method for visualizing and device
CN107509113A (en) * 2017-08-01 2017-12-22 广州酷狗计算机科技有限公司 Virtual objects display methods, terminal and computer-readable recording medium
CN109960546B (en) * 2017-12-14 2021-09-10 腾讯科技(深圳)有限公司 Virtual resource interaction method and device, storage medium and electronic device
CN108900858A (en) * 2018-08-09 2018-11-27 广州酷狗计算机科技有限公司 A kind of method and apparatus for giving virtual present
CN109284714A (en) * 2018-09-21 2019-01-29 上海掌门科技有限公司 Method is provided and is got in a kind of distribution of virtual objects
CN109254708B (en) * 2018-09-27 2022-01-14 努比亚技术有限公司 Application icon control method and device and computer readable storage medium
CN109547836A (en) * 2018-12-05 2019-03-29 网易(杭州)网络有限公司 Exchange method and device, electronic equipment, storage medium is broadcast live
CN109756787B (en) * 2018-12-29 2022-04-08 广州方硅信息技术有限公司 Virtual gift generation method and device and virtual gift presentation system
CN110213607B (en) * 2019-06-03 2020-05-05 广州虎牙信息科技有限公司 Live broadcast room interaction method and device, terminal, server and readable storage medium
CN110648402A (en) * 2019-09-29 2020-01-03 北京金山安全软件有限公司 Method, device and equipment for placing virtual object along curve
CN110753236A (en) * 2019-11-04 2020-02-04 网易(杭州)网络有限公司 Virtual object transmission method and device, storage medium and electronic device
CN111083505B (en) * 2019-11-19 2021-12-28 广州方硅信息技术有限公司 Live broadcast room virtual gift interaction method, electronic equipment and device
CN111010585B (en) * 2019-12-06 2021-10-22 广州方硅信息技术有限公司 Virtual gift sending method, device, equipment and storage medium
CN111163326A (en) * 2019-12-30 2020-05-15 网易(杭州)网络有限公司 Virtual gift presenting method, virtual gift presenting device, medium, and electronic apparatus
CN112669464A (en) * 2020-03-20 2021-04-16 华为技术有限公司 Method and equipment for sharing data
CN111491174A (en) * 2020-05-29 2020-08-04 广州华多网络科技有限公司 Virtual gift acquisition and display method, device, equipment and storage medium
CN111787411B (en) * 2020-06-18 2021-11-19 广州方硅信息技术有限公司 Virtual resource transfer method, device, equipment and storage medium
CN112437338B (en) * 2020-11-24 2022-01-04 腾讯科技(深圳)有限公司 Virtual resource transfer method, device, electronic equipment and storage medium
CN112584188A (en) * 2020-12-01 2021-03-30 北京达佳互联信息技术有限公司 Data processing method, apparatus and medium
CN114025194A (en) * 2021-11-24 2022-02-08 广州方硅信息技术有限公司 Virtual gift presenting method, system, device, equipment and storage medium
CN116761011B (en) * 2023-08-21 2023-11-14 浙江印象软件有限公司 Real-time loading method and system for special effect data of live virtual article

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102801647A (en) * 2012-07-25 2012-11-28 上海量明科技发展有限公司 Realizing method of actual gift in instant communication, client end and system
CN103414627A (en) * 2013-04-10 2013-11-27 广州华多网络科技有限公司 Virtual gift display method and system
CN103634681A (en) * 2013-11-29 2014-03-12 腾讯科技(成都)有限公司 Method, device, client end, server and system for live broadcasting interaction
US8814662B1 (en) * 2011-11-04 2014-08-26 Zynga Inc. Value icon to award virtual currency in a virtual game
CN104184731A (en) * 2014-08-22 2014-12-03 广州华多网络科技有限公司 Information display method, device and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8814662B1 (en) * 2011-11-04 2014-08-26 Zynga Inc. Value icon to award virtual currency in a virtual game
CN102801647A (en) * 2012-07-25 2012-11-28 上海量明科技发展有限公司 Realizing method of actual gift in instant communication, client end and system
CN103414627A (en) * 2013-04-10 2013-11-27 广州华多网络科技有限公司 Virtual gift display method and system
CN103634681A (en) * 2013-11-29 2014-03-12 腾讯科技(成都)有限公司 Method, device, client end, server and system for live broadcasting interaction
CN104184731A (en) * 2014-08-22 2014-12-03 广州华多网络科技有限公司 Information display method, device and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107678628A (en) * 2017-10-27 2018-02-09 珠海市魅族科技有限公司 Picture display method and device, computer installation and computer-readable recording medium
CN108537863A (en) * 2018-03-28 2018-09-14 武汉斗鱼网络科技有限公司 A kind of implementation method and device of present special efficacy

Also Published As

Publication number Publication date
CN105373306A (en) 2016-03-02

Similar Documents

Publication Publication Date Title
CN105373306B (en) Virtual objects presentation method and device
CN109640188B (en) Video preview method and device, electronic equipment and computer readable storage medium
US20220413661A1 (en) List flow implementation method, electronic device, and storage medium
CN109862414B (en) Mask bullet screen display method and device and server
US9230352B2 (en) Information processing apparatus, information processing method, and computer program product
WO2017107441A1 (en) Method and device for capturing continuous video pictures
CN104081760B (en) Play method, terminal and the system of video
CN104486339B (en) The method and apparatus that recommending data is shown in social networking application
CN106846040A (en) Virtual present display methods and system in a kind of direct broadcasting room
CN109120954B (en) Video message pushing method and device, computer equipment and storage medium
EP2894852A1 (en) Process for increasing the quality of experience for users that watch on their terminals a high definition video stream
CN111095939B (en) Identifying previously streamed portions of media items to avoid repeated playback
CN109710805A (en) Video interactive method and device based on interest cluster
KR102331290B1 (en) Enhanced interactive television experiences
US10110950B2 (en) Attentiveness-based video presentation management
CN104394422A (en) Video segmentation point acquisition method and device
CN109120949B (en) Video message pushing method, device, equipment and storage medium for video set
CN115474085B (en) Media content playing method, device, equipment and storage medium
CN109462779B (en) Video preview information playing control method, application client and electronic equipment
CN112153470A (en) Video playing method and device, computer equipment and storage medium
CN111698521A (en) Network live broadcast method and device
CN110673774A (en) List stream implementation method and device, electronic equipment and storage medium
WO2017011084A1 (en) System and method for interaction between touch points on a graphical display
CN105122826B (en) System and method for displaying annotated video content by a mobile computing device
CN109857907B (en) Video positioning method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 510660 Guangzhou City, Guangzhou, Guangdong, Whampoa Avenue, No. 315, self - made 1-17

Applicant after: Guangzhou KuGou Networks Co., Ltd.

Address before: 510000 B1, building, No. 16, rhyme Road, Guangzhou, Guangdong, China 13F

Applicant before: Guangzhou KuGou Networks Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant