CN106302463B - Data interactive method and device - Google Patents
Data interactive method and device Download PDFInfo
- Publication number
- CN106302463B CN106302463B CN201610677677.8A CN201610677677A CN106302463B CN 106302463 B CN106302463 B CN 106302463B CN 201610677677 A CN201610677677 A CN 201610677677A CN 106302463 B CN106302463 B CN 106302463B
- Authority
- CN
- China
- Prior art keywords
- client
- interaction
- play position
- data
- interaction data
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/61—Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
- H04L65/612—Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for unicast
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/80—Responding to QoS
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/222—Secondary servers, e.g. proxy server, cable television Head-end
- H04N21/2225—Local VOD servers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/239—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
- H04N21/2393—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of data interactive method and devices.This method comprises: during the first client terminal playing media file logged in using the first account, obtain the interaction request of the first client transmission, interaction request carries the first play position of the first client terminal playing media file, interaction request uses the second client of the second account login when playing media file for request, in the first interaction data of the first session publication;Judged whether to meet the pushing condition to first the first interaction data of client push according to the first play position, pushing condition receives the first interaction data for controlling the first client after the target play position being played in media file, and target play position is located at after the first play position;When meeting pushing condition, to first the first interaction data of client push.It is consistent that the present invention solves the problems, such as that the content interacted between client different when carrying out data interaction based on live streaming cannot keep.
Description
Technical field
The present invention relates to computer fields, in particular to a kind of data interactive method and device.
Background technique
Nowadays during network direct broadcasting, often there are many media for playing applications client and watching live streaming by network
File, but the network environment as locating for each client is different, for same in the raw media file that is played
Fragment data, in the content distributing network (Content delivery Network, CDN) where the different client of arrival
Time is also different, especially when transprovincial or even transnational, thus, it is also difficult to keep in each client at present
Completely the same play position.
Further, many play is configured with the permission based on broadcasting content progress data interaction using for each client,
Wherein, during data interaction, the real-time of data transmission is usually relatively high, thus during network direct broadcasting, lead to
For each client for crossing network to watch when carrying out data interaction, the client different for play position will be difficult to ensure institute
The consistency of interactive content plays position if the fast client of play position issues the content watched by interactive mode
Slow client is set by the passive content for receiving the fast client of play position and being watched;The slow client of play position passes through friendship
When mutual mode issues content, the fast client of play position early has already viewed above content, and the content of publication is fast to play position
Client for delay time it is longer.That is, currently, during carrying out data interaction based on network direct broadcasting, it is different
Client between to there is a problem of that the content of data interaction cannot keep consistent.
For above-mentioned problem, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides a kind of data interactive method and devices, at least to solve to carry out data friendship based on live streaming
The content interacted between different clients when mutually cannot keep consistent technical problem.
According to an aspect of an embodiment of the present invention, a kind of data interactive method is provided, comprising: using the first account
During the first client terminal playing media file logged in, the interaction request that above-mentioned first client is sent is obtained, wherein on
The first play position that interaction request carries the above-mentioned above-mentioned media file of first client terminal playing is stated, above-mentioned interaction request is used for
The second client that request is logged in using the second account is when playing above-mentioned media file, the first of the first session publication
Interaction data, above-mentioned second account carry out data interaction by above-mentioned first session and above-mentioned first account;According to above-mentioned first
Play position judges whether to meet the pushing condition to above-mentioned first interaction data of above-mentioned first client push, wherein above-mentioned
Pushing condition receives after the target play position being played in above-mentioned media file for controlling above-mentioned first client
Above-mentioned first interaction data, above-mentioned target play position are located at after above-mentioned first play position;Meeting above-mentioned pushing condition
When, above-mentioned first interaction data of the first client push of Xiang Shangshu.
According to another aspect of an embodiment of the present invention, a kind of data interaction device is additionally provided, comprising: first obtains list
Member, for obtaining above-mentioned first client during the first client terminal playing media file logged in using the first account
The interaction request of transmission, wherein what above-mentioned interaction request carried the above-mentioned above-mentioned media file of first client terminal playing first broadcasts
Position is put, second client of the above-mentioned interaction request for request to be logged in using the second account is playing above-mentioned media file
When, in the first interaction data of the first session publication, above-mentioned second account by above-mentioned first session and above-mentioned first account into
Row data interaction;Judging unit, for judging whether to meet to above-mentioned first client push according to above-mentioned first play position
The pushing condition of above-mentioned first interaction data, wherein above-mentioned pushing condition is being played to for controlling above-mentioned first client
It states the target play position in media file and receives above-mentioned first interaction data later, above-mentioned target play position is located at above-mentioned
After first play position;Push unit, for when meeting above-mentioned pushing condition, the first client push of Xiang Shangshu above-mentioned
One interaction data.
According to another aspect of an embodiment of the present invention, a kind of data interaction system is additionally provided, which includes: terminal,
The first client logged in using the first account is installed, for sending interaction request, wherein above-mentioned interaction request carries
The first play position of the first client terminal playing media file is stated, above-mentioned interaction request is stepped on for request using the second account
Second client of record is when playing above-mentioned media file, in the first interaction data of the first session publication, above-mentioned second account
Data interaction is carried out by above-mentioned first session and above-mentioned first account;Server, during playing above-mentioned media file,
Obtain the above-mentioned interaction request that above-mentioned first client is sent;Judge whether to meet to above-mentioned the according to above-mentioned first play position
The pushing condition of above-mentioned first interaction data of one client push, wherein above-mentioned pushing condition is for controlling above-mentioned first client
End receives above-mentioned first interaction data after the target play position being played in above-mentioned media file, and above-mentioned target plays
Position is located at after above-mentioned first play position;When meeting above-mentioned pushing condition, the first client push of Xiang Shangshu above-mentioned
One interaction data.
In embodiments of the present invention, by judging first of the first client terminal playing media file entrained by interaction request
Play position is to determine whether to first the first interaction data of client push, to realize that the first client of control is being played to
In media file be located at the first play position after target play position after receive the first interaction data, and be not
The first interaction data is pushed when receiving interaction request, directly to overcome the different clients for playing media file in the related technology
Between the inconsistent problem of the interaction content caused by network delay, avoid causing contents of media files to the first client
Play thoroughly, and then realize while guaranteeing data interaction consistency, achieve the effect that raising data interaction interactive efficiency.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of application environment schematic diagram of optional data interactive method according to an embodiment of the present invention;
Fig. 2 is a kind of flow chart of optional data interactive method according to an embodiment of the present invention;
Fig. 3 is a kind of schematic diagram of optional data interactive method according to an embodiment of the present invention;
Fig. 4 is the schematic diagram of another optional data interactive method according to an embodiment of the present invention;
Fig. 5 is the schematic diagram of another optional data interactive method according to an embodiment of the present invention;
Fig. 6 is the schematic diagram of another optional data interactive method according to an embodiment of the present invention;
Fig. 7 is the schematic diagram of another optional data interactive method according to an embodiment of the present invention;
Fig. 8 is a kind of schematic diagram of optional data interaction device according to an embodiment of the present invention;
Fig. 9 is a kind of schematic diagram of optional data interaction server according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work
It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to
Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product
Or other step or units that equipment is intrinsic.
Embodiment 1
In embodiments of the present invention, a kind of embodiment of above-mentioned data interactive method is provided.As a kind of optional reality
Mode is applied, which can be, but not limited to be applied in application environment as shown in Figure 1, wherein pacify in terminal 102
Equipped with the first client for using the first account to log in, during the first client terminal playing media file, terminal 102 is logical
It crosses network 104 and sends interaction request to server 106, wherein interaction request carries the first client terminal playing media file
First play position, second client of the interaction request for request to be logged in using the second account are playing media file
When, in the first interaction data of the first session publication, the second account carries out data interaction by the first session and the first account;Clothes
Business device 106 judged whether to meet the pushing condition to first the first interaction data of client push according to the first play position,
In, pushing condition receives the first friendship after the target play position being played in media file for controlling the first client
Mutual data, target play position are located at after the first play position;And when judging to meet pushing condition, to the first client
Push the first interaction data.
In the present embodiment, during the first client terminal playing media file logged in using the first account, service
Device passes through the first client terminal playing media file entrained in the interaction request sent using the first client received
First play position, to determine whether meeting the pushing condition to first the first interaction data of client push, to realize control
It makes and receives the after the target play position after the first client is located at the first play position in being played to media file
One interaction data, to overcome the friendship caused by network delay between the different clients for playing media file in the related technology
The inconsistent problem of mutual content avoids client from occurring contents of media files play in data exchange process thoroughly, to guarantee data
Interactive consistency and interactive efficiency.
Optionally, in the present embodiment, above-mentioned terminal can include but is not limited at least one of: mobile phone, plate electricity
Brain, laptop, desktop PC, DTV and other operations have the hardware device of playback of media files applications client.
Above-mentioned network can include but is not limited at least one of: wide area network, Metropolitan Area Network (MAN), local area network.A kind of above-mentioned only example, this
Embodiment does not do any restriction to this.
According to embodiments of the present invention, a kind of data interactive method is provided, as shown in Fig. 2, this method comprises:
S202 obtains the first client during the first client terminal playing media file logged in using the first account
Hold the interaction request sent, wherein interaction request carries the first play position of the first client terminal playing media file, interaction
Request uses the second client of the second account login when playing media file for request, in the first session publication
First interaction data, the second account carry out data interaction by the first session and the first account;
S204 judges whether to meet the push item to first the first interaction data of client push according to the first play position
Part, wherein pushing condition receives after the target play position being played in media file for controlling the first client
First interaction data, target play position are located at after the first play position;
S206, when meeting pushing condition, to first the first interaction data of client push.
Optionally, in the present embodiment, above-mentioned data interactive method can be, but not limited to answer applied to playback of media files
In, based on the broadcasting to media file, the data interaction about media file is carried out between different accounts, is handed over by judgement
Mutually the first play position of the first entrained client terminal playing media file of request is to determine whether to the first client push
First interaction data, to realize the mesh that the first client of control is located at after the first play position in being played to media file
The first interaction data is received after mark play position, and is not directly to push the first interaction number when receiving interaction request
According to, with overcome in the related technology play media file different clients between the interaction content caused by network delay not
Consistent problem avoids the play for causing contents of media files to the first client saturating, and then realizes and guaranteeing that data interaction is consistent
Property while, achieve the effect that improve data interaction interactive efficiency.Wherein, the first client and the second client are played
Same media file can be, but not limited to as live media file.Above-mentioned is only a kind of example, is not appointed in the present embodiment to this
What is limited.
It should be noted that it is currently used barrage carry out data interaction by way of in, the content issued is often
It is to match with play position, that is to say, that when being played to corresponding play position, client, which can just be seen, to be issued
Content, and the client for playing same media file, the slow client of playback progress can see the fast visitor of playback progress
The content of family end publication, on the contrary, the fast client of playback progress can not but see the content of the fast client publication of playback progress,
I.e. each client can only realize one-way data interaction, cannot achieve two-way interactive, thus data interaction between each client
Efficiency it is lower;Further, since the client publication that the slow client of playback progress can't watch playback progress fast in advance
Content, therefore also there is no acute saturating problems.
Optionally, in the present embodiment, the first session can be, but not limited to build based on the account for watching same media file
Vertical, the first client that the first account viewing media file A is such as used and can use the second account by way of invitation
Number also the first session is established in the second client of viewing media file A.In addition, in the present embodiment, above-mentioned first session is also
It can be, but not limited to after receiving dismission instruction, dismiss all member's accounts in session.That is, above-mentioned first session
It can be, but not limited to as interim conversation.
It should be noted that in the present embodiment, the account in above-mentioned first session can be, but not limited to by different
Applications client invites addition.Assuming that the first client (playback of media files of the first account viewing media file A is used
Applications client), it can invite account a that the first session is added by instant messaging application, can also be invited by microblogging application
The first session is added in account b, can also invite account c that the first session is added by community space application, as shown in figure 3, having become
Function invites account a by instant messaging application.
Further, in the present embodiment, for creating above-mentioned first session or dismissing the operation button of above-mentioned first session
It can be, but not limited to the broadcast interface that media file is set, do not do any restriction to this in the present embodiment.
Optionally, in the present embodiment, judge whether to meet to the first client push first according to the first play position
The pushing condition of interaction data includes:
S1 obtains the issuing time that the second account issues the first interaction data in the first session;
S2 judges whether to meet pushing condition according to the issuing time of the first play position and the first interaction data.
It should be noted that in the present embodiment, above-mentioned issuing time be can be, but not limited to for natural time, and in the hair
The playback progress of media file is the second play position in the second client of cloth time, the broadcasting of media file in the first client
Progress is third play position, and third play position is before the second play position here, that is, the playback progress of the second client
It is faster than the playback progress of the first client.In addition, in the present embodiment, above-mentioned first play position can be, but not limited to and third
Play position is overlapped, and also be can be, but not limited to after third play position, is not done any restriction in the present embodiment to this.
Optionally, in the present embodiment, S2 is according to the judgement of the issuing time of the first play position and the first interaction data
The no pushing condition that meets includes:
S21 obtains the second client media file when issuing the first interaction data according to issuing time and is played extremely
Second play position, wherein when issuing the first interaction data, be played in the first client media file to third and play position
It sets, third play position is before the second play position;
It is poor to obtain the second play position first time between the two with the first play position by S22;
Whether S23, it is poor less than or equal to predetermined threshold at the first time to judge;
S24, at the first time it is poor be less than or equal to predetermined threshold when, to first the first interaction data of client push.
That is, being converted to the second broadcasting position by the issuing time that the second client is issued the first interaction data
It sets, realizes the comparison to the first play position and the second play position, if first time between the two is poor less than or equal to predetermined
Otherwise threshold value, is refused to above-mentioned first interaction of the first client push then to above-mentioned first interaction data of the first client push
Data.
For example, as shown in figure 4, the faster customer end B of playback progress (the second client) is in natural time 20s
The play position of 20s has issued the first interaction data, the slower customer end A of playback progress (the first client) broadcasting in 10s
It puts position and has sent interaction request, then server to the first play position carried in interaction request by judging whether to meet
Push request, so that target play position of first client after the play position of 10s be made to receive the first interaction number
According to reach the consistency for the content for guaranteeing the data interaction between different clients.
Optionally, in the present embodiment, above-mentioned predetermined threshold can be, but not limited to be greater than zero, and is less than or equal to second and plays
Position and third play position time difference between the two.It should be noted that above-mentioned predetermined threshold is used to guarantee data friendship
In the case where mutual real-time, in the data that the fast client of reduction playback progress the is issued client slow to playback progress
Hold acute saturating.
Optionally, in the present embodiment, at the first time it is poor be greater than predetermined threshold when, not only refuse to push away to the first client
Serve and state the first interaction data, can with but be not limited to also indicate the adjustment of the first client and sent next time for request
Waiting interval before the interaction request of first interaction data, so that the first client is sent again after waiting interval for asking
It asks and obtains the first interaction data.
It should be noted that in the present embodiment, after according to waiting interval to wait for a period of time, at this moment sending again
Playback progress corresponding to interaction request has met push request, then the first client will receive service in target play position
The second interaction data that second client of device push is issued.
Optionally, in the present embodiment, before obtaining the interaction request that the first client is sent, further includes: obtain clothes
The issuing time of the interaction data issued in the first session and be not pushed to the first client stored in business device;According to
The sequence of issuing time successively obtains the second time difference between play position corresponding to issuing time and the first play position,
Wherein, corresponding to the issuing time for the first interaction data that the second account is issued between play position and the first play position
The second time difference it is minimum;Interaction request is responded using the first interaction data as the data for being pushed to the first client.
That is, including multiple accounts in the first session when carrying out data interaction, server can be, but not limited to
When successively obtaining second between play position corresponding to issuing time and the first play position according to the sequence of issuing time
Between it is poor, by the interaction data of the second time difference the smallest client publication, be sent to the first client for sending interaction request.
By embodiment provided by the present application, by judging the first client terminal playing media file entrained by interaction request
The first play position to determine whether to first the first interaction data of client push, to realize that the first client of control exists
It is played to the target play position after being located at the first play position in media file and receives the first interaction data later, and simultaneously
It is not that the first interaction data is directly pushed when receiving interaction request, to overcome the difference for playing media file in the related technology
The inconsistent problem of the interaction content caused by network delay between client avoids causing the first client media literary
The play of part content thoroughly, and then is realized while guaranteeing data interaction consistency, and the interactive efficiency for improving data interaction is reached
Effect.Wherein, the same media file that the first client and the second client are played can be, but not limited to as live media text
Part.Above-mentioned is only a kind of example, does not do any restriction to this in the present embodiment.
As a kind of optional scheme, judges whether to meet to the first client push first according to the first play position and hand over
Mutually the pushing condition of data includes:
S1 obtains the issuing time that the second account issues the first interaction data in the first session;
S2 judges whether to meet pushing condition according to the issuing time of the first play position and the first interaction data.
Optionally, in the present embodiment, step S2 sentences according to the first play position and the issuing time of the first interaction data
It is disconnected whether to meet pushing condition and include:
S21 obtains the second client media file when issuing the first interaction data according to issuing time and is played extremely
Second play position, wherein when issuing the first interaction data, be played in the first client media file to third and play position
It sets, third play position is before the second play position;
It is poor to obtain the second play position first time between the two with the first play position by S22;
Whether S23, it is poor less than or equal to predetermined threshold at the first time to judge;
S24, at the first time it is poor be less than or equal to predetermined threshold when, to first the first interaction data of client push.
Optionally, in order to which the real-time for guaranteeing data is interactive, avoid delay time too long, it is in the present embodiment, above-mentioned pre-
Determine threshold value configuration range can be, but not limited to be greater than zero, and be less than or equal to both the second play position and third play position it
Between time difference.Above-mentioned is only a kind of example, does not do any restriction to this in the present embodiment.
It is specifically illustrated as shown in connection with fig. 5, it is assumed that in natural time 20s, the faster customer end B of playback progress is (i.e.
Second client) in the second play position of 20s issue the first interaction data, the slower customer end A of playback progress (i.e.
One client) in the first play position of 18s have sent interaction request, then server will be by carrying in the interaction request
The first play position judge whether to be less than predetermined threshold (assuming that predetermined threshold be 5), here according to above-mentioned example, 20-18=2
< 5, that is, judge to be less than predetermined threshold 5, then it can be to first the first interaction data of client push.
By embodiment provided by the present application, by the way that issuing time is converted to the second client in the interaction number of publication first
According to when media file be played the second play position extremely, further according between the second play position and the first play position
It is poor at the first time to judge whether to be less than or equal to predetermined threshold, it controls whether to realize using the predetermined threshold that can configure to the
One the first interaction data of client push, to avoid due to the inconsistent caused acute saturating problem of data interaction content.
As a kind of optional scheme, judging that first time is poor whether less than or equal to after predetermined threshold, further includes:
S1, at the first time it is poor be greater than predetermined threshold when, then to the first client send adjustment instruction, wherein adjustment refer to
It enables for refusing to first the first interaction data of client push, and is used to indicate the adjustment of the first client and is used in transmission next time
Waiting interval before the interaction request of the first interaction data of request so that the first client wait interval after again
It sends and is used for the first interaction data of request.
It is specifically illustrated as shown in connection with fig. 6, it is assumed that in natural time 20s, the faster customer end B of playback progress is (i.e.
Second client) in the second play position of 20s issue the first interaction data, the slower customer end A of playback progress (i.e.
One client) in the first play position of 13s have sent interaction request, then server will be by carrying in the interaction request
The first play position judge whether to be less than predetermined threshold (assuming that predetermined threshold be 5), here according to above-mentioned example, 20-13=7
> 5, that is, judge to be greater than predetermined threshold 5, then send adjustment instruction to the first client, wherein adjustment instruction is for refusing to the
One the first interaction data of client push is also used to indicate that the adjustment of the first client is being sent next time for request first
Waiting interval before the interaction request of interaction data, so that the first client is sent again after waiting interval for requesting to obtain
Take the first interaction data.Here, suppose that being divided into 2s between waiting, then the first client can be notified in the broadcasting of 13+2=15s
Position sends interaction request again to obtain the first interaction data of above-mentioned second account publication.
By embodiment provided by the present application, at the first time it is poor be greater than predetermined threshold when, by being sent out to the first client
Adjustment instruction is sent, with refusal to first the first interaction data of client push, and indicates that the adjustment of the first client is sent out next time
The waiting interval before the interaction request for the first interaction data of request is sent, accurately controls the first client to realize
It is sent again after waiting interval for requesting to obtain the first interaction data, in order to which the first client is in target play position
It can receive the accuracy rate for reaching to the first interaction data and improving data interaction, and then guarantee the first client and the second client
The consistency and data interactive efficiency of end data interaction.
As a kind of optional scheme, sending adjustment instruction to the first client includes:
S1 obtains the first difference between the second play position and predetermined threshold;
S2 obtains the second difference between the first difference and the first play position as waiting interval;
S3 sends to the first client and carries the adjustment instruction for waiting interval.
Specifically be illustrated in conjunction with following example, still illustrated with above-mentioned example, it is assumed that in natural time 20s, play into
It spends faster customer end B (i.e. the second client) and has issued the first interaction data, playback progress in the second play position of 20s
Slower customer end A (i.e. the first client) has sent interaction request in the first play position of 13s, then server will pass through
The first play position carried in the interaction request is judged whether to be less than predetermined threshold (assuming that predetermined threshold is 5).
Further, in this example, above-mentioned waiting interval can be, but not limited to be calculated according to following manner:
20-5=15,
15-13=2.
Wherein, 15 the first difference between the second play position 20 and predetermined threshold 5,2 broadcast for the first difference with first
Put the second difference between position, that is to say, that is carried in adjustment instruction is used to control the waiting that the first client is waited
Interval can be 2s.
By embodiment provided by the present application, calculated between obtaining waiting entrained in adjustment instruction through the above way
Every, thus realize accurately control the first client obtain the first interaction data time, improve the accuracy and friendship of data interaction
Mutual efficiency.
As a kind of optional scheme, before obtaining the interaction request that the first client is sent, further includes:
S1 obtains the interaction number issued in the first session and be not pushed to the first client stored in server
According to issuing time;
S2, according to the sequence of issuing time successively obtain play position corresponding to issuing time and the first play position it
Between the second time difference, wherein play position corresponding to the issuing time for the first interaction data that the second account is issued with
The second time difference between first play position is minimum;
S3 responds interaction request using the first interaction data as the data for being pushed to the first client.
Optionally, in the present embodiment, it can be, but not limited to store in server and issued in the first session and not
The multiple interaction datas and corresponding issuing time, multiple interaction datas here for being pushed to the first client can be, but not limited to
The data issued in the first session for one or more clients.
It should be noted that in the present embodiment, in issuing time difference, can be, but not limited to according to issuing time
Sequentially, the play position that issuing time is successively converted to the media file played in corresponding client, obtains above-mentioned broadcast
The minimum value in the second time difference between position and the first play position is put, by the corresponding issuing time publication of the minimum value
Interaction data is as the data for being pushed to the first client;In addition, in the present embodiment, in issuing time phase simultaneously as broadcasting
Degree of putting into is different, then corresponding play position in the media file that above-mentioned issuing time is played in corresponding client
Difference, still can by obtaining the minimum value in the second time difference between above-mentioned play position and the first play position, and
Using the interaction data of the corresponding issuing time publication of the minimum value as the data for being pushed to the first client, to realize to friendship
The control of mutual consistency.
By embodiment provided by the present application, what is stored in acquisition server has issued in the first session and has not pushed
To the issuing time of the interaction data of the first client;And it is successively obtained corresponding to issuing time according to the sequence of issuing time
The second time difference between play position and the first play position is obtained using the minimum value in the second time difference as being pushed to
The data of first client avoid omitting interaction data to guarantee the integrality of data interaction.
As a kind of optional scheme, before obtaining the interaction request that the first client is sent, further includes:
S1 receives the invitation operations instruction that the first client is sent, wherein invitation operations instruction is for inviting the second account
The first session is added with the first account;
S2 sends to the second client and invites request, to invite the second account used in the second client to be added first
Session.
Optionally, in the present embodiment, before receiving the invitation operations instruction that the first client is sent, further includes:
When the first client terminal playing media file, the point executed to the conversation establishing button in the broadcasting pictures for being located at media file is received
Hit operation invitation operations instruction generated.
Specifically example is illustrated as shown in connection with fig. 7, shown in the broadcasting pictures for being located at media file by clicking
Button (i.e. conversation establishing button) is invited to generate for inviting the operational order for inviting the second account that the first session is added.
For example, as shown in figure 3, the first client (playback of media files of the first account viewing media file A is used
Applications client), it can invite account a that the first session is added by instant messaging application, can also be invited by microblogging application
The first session is added in account b, can also invite account c that the first session is added by community space application, as shown in figure 3, having become
Function invites account a by instant messaging application.
By embodiment provided by the present application, by creating and using between different accounts based on the broadcasting to media file
In the session for carrying out data interaction to the content about media file, to realize the real-time, interactive to media file.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because
According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention
It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much
In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing
The part that technology contributes can be embodied in the form of software products, which is stored in a storage
In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate
Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 2
According to embodiments of the present invention, additionally provide it is a kind of for implementing the data interaction device of above-mentioned data interactive method,
As shown in figure 8, the device includes:
1) first acquisition unit 802, for the mistake in the first client terminal playing media file logged in using the first account
Cheng Zhong obtains the interaction request that the first client is sent, wherein interaction request carries the first client terminal playing media file
First play position, second client of the interaction request for request to be logged in using the second account are playing media file
When, in the first interaction data of the first session publication, the second account carries out data interaction by the first session and the first account;
2) judging unit 804 are handed over for judging whether to meet to the first client push first according to the first play position
The pushing condition of mutual data, wherein pushing condition is used to control the first client and plays in the target being played in media file
The first interaction data is received after position, target play position is located at after the first play position;
3) push unit 806, for when meeting pushing condition, to first the first interaction data of client push.
Optionally, in the present embodiment, above-mentioned data interactive method can be, but not limited to answer applied to playback of media files
In, based on the broadcasting to media file, the data interaction about media file is carried out between different accounts, is handed over by judgement
Mutually the first play position of the first entrained client terminal playing media file of request is to determine whether to the first client push
First interaction data, to realize the mesh that the first client of control is located at after the first play position in being played to media file
The first interaction data is received after mark play position, and is not directly to push the first interaction number when receiving interaction request
According to, with overcome in the related technology play media file different clients between the interaction content caused by network delay not
Consistent problem avoids the play for causing contents of media files to the first client saturating, and then realizes and guaranteeing that data interaction is consistent
Property while, achieve the effect that improve data interaction interactive efficiency.Wherein, the first client and the second client are played
Same media file can be, but not limited to as live media file.Above-mentioned is only a kind of example, is not appointed in the present embodiment to this
What is limited.
It should be noted that it is currently used barrage carry out data interaction by way of in, the content issued is often
It is to match with play position, that is to say, that when being played to corresponding play position, client, which can just be seen, to be issued
Content, and the client for playing same media file, the slow client of playback progress can see the fast visitor of playback progress
The content of family end publication, on the contrary, the fast client of playback progress can not but see the content of the fast client publication of playback progress,
I.e. each client can only realize one-way data interaction, cannot achieve two-way interactive, thus data interaction between each client
Efficiency it is lower;Further, since the client publication that the slow client of playback progress can't watch playback progress fast in advance
Content, therefore also there is no acute saturating problems.
Optionally, in the present embodiment, the first session can be, but not limited to build based on the account for watching same media file
Vertical, the first client that the first account viewing media file A is such as used and can use the second account by way of invitation
Number also the first session is established in the second client of viewing media file A.In addition, in the present embodiment, above-mentioned first session is also
It can be, but not limited to after receiving dismission instruction, dismiss all member's accounts in session.That is, above-mentioned first session
It can be, but not limited to as interim conversation.
It should be noted that in the present embodiment, the account in above-mentioned first session can be, but not limited to by different
Applications client invites addition.Assuming that the first client (playback of media files of the first account viewing media file A is used
Applications client), it can invite account a that the first session is added by instant messaging application, can also be invited by microblogging application
The first session is added in account b, can also invite account c that the first session is added by community space application, as shown in figure 3, having become
Function invites account a by instant messaging application.
Further, in the present embodiment, for creating above-mentioned first session or dismissing the operation button of above-mentioned first session
It can be, but not limited to the broadcast interface that media file is set, do not do any restriction to this in the present embodiment.
Optionally, in the present embodiment, judge whether to meet to the first client push first according to the first play position
The pushing condition of interaction data includes:
S1 obtains the issuing time that the second account issues the first interaction data in the first session;
S2 judges whether to meet pushing condition according to the issuing time of the first play position and the first interaction data.
It should be noted that in the present embodiment, above-mentioned issuing time be can be, but not limited to for natural time, and in the hair
The playback progress of media file is the second play position in the second client of cloth time, the broadcasting of media file in the first client
Progress is third play position, and third play position is before the second play position here, that is, the playback progress of the second client
It is faster than the playback progress of the first client.In addition, in the present embodiment, above-mentioned first play position can be, but not limited to and third
Play position is overlapped, and also be can be, but not limited to after third play position, is not done any restriction in the present embodiment to this.
Optionally, in the present embodiment, judgment module includes:
(1) first acquisition submodule, for obtaining the second client when issuing the first interaction data according to issuing time
Media file is played the second play position extremely, wherein when issuing the first interaction data, in the first client media file
It is played to third play position, third play position is before the second play position;
(2) second acquisition submodules, when for obtaining first of the second play position and the first play position therebetween
Between it is poor;
(3) judging submodule, it is poor whether less than or equal to predetermined threshold at the first time for judging;
(4) push submodule, at the first time it is poor be less than or equal to predetermined threshold when, to the first client push first
Interaction data.
That is, being converted to the second broadcasting position by the issuing time that the second client is issued the first interaction data
It sets, realizes the comparison to the first play position and the second play position, if first time between the two is poor less than or equal to predetermined
Otherwise threshold value, is refused to above-mentioned first interaction of the first client push then to above-mentioned first interaction data of the first client push
Data.
For example, as shown in figure 4, the faster customer end B of playback progress (the second client) is in natural time 20s
The play position of 20s has issued the first interaction data, the slower customer end A of playback progress (the first client) broadcasting in 10s
It puts position and has sent interaction request, then server to the first play position carried in interaction request by judging whether to meet
Push request, so that target play position of first client after the play position of 10s be made to receive the first interaction number
According to reach the consistency for the content for guaranteeing the data interaction between different clients.
Optionally, in the present embodiment, above-mentioned predetermined threshold can be, but not limited to be greater than zero, and is less than or equal to second and plays
Position and third play position time difference between the two.It should be noted that above-mentioned predetermined threshold is used to guarantee data friendship
In the case where mutual real-time, in the data that the fast client of reduction playback progress the is issued client slow to playback progress
Hold acute saturating.
Optionally, in the present embodiment, at the first time it is poor be greater than predetermined threshold when, not only refuse to push away to the first client
Serve and state the first interaction data, can with but be not limited to also indicate the adjustment of the first client and sent next time for request
Waiting interval before the interaction request of first interaction data, so that the first client is sent again after waiting interval for asking
It asks and obtains the first interaction data.
It should be noted that in the present embodiment, after according to waiting interval to wait for a period of time, at this moment sending again
Playback progress corresponding to interaction request has met push request, then the first client will receive service in target play position
The second interaction data that second client of device push is issued.
Optionally, in the present embodiment, before obtaining the interaction request that the first client is sent, further includes: obtain clothes
The issuing time of the interaction data issued in the first session and be not pushed to the first client stored in business device;According to
The sequence of issuing time successively obtains the second time difference between play position corresponding to issuing time and the first play position,
Wherein, corresponding to the issuing time for the first interaction data that the second account is issued between play position and the first play position
The second time difference it is minimum;Interaction request is responded using the first interaction data as the data for being pushed to the first client.
That is, including multiple accounts in the first session when carrying out data interaction, server can be, but not limited to
When successively obtaining second between play position corresponding to issuing time and the first play position according to the sequence of issuing time
Between it is poor, by the interaction data of the second time difference the smallest client publication, be sent to the first client for sending interaction request.
By embodiment provided by the present application, by judging the first client terminal playing media file entrained by interaction request
The first play position to determine whether to first the first interaction data of client push, to realize that the first client of control exists
It is played to the target play position after being located at the first play position in media file and receives the first interaction data later, and simultaneously
It is not that the first interaction data is directly pushed when receiving interaction request, to overcome the difference for playing media file in the related technology
The inconsistent problem of the interaction content caused by network delay between client avoids causing the first client media literary
The play of part content thoroughly, and then is realized while guaranteeing data interaction consistency, and the interactive efficiency for improving data interaction is reached
Effect.Wherein, the same media file that the first client and the second client are played can be, but not limited to as live media text
Part.Above-mentioned is only a kind of example, does not do any restriction to this in the present embodiment.
As a kind of optional scheme, judging unit 804 includes:
1) module is obtained, for obtaining the second account in the issuing time of the first session the first interaction data of publication;
2) judgment module is pushed away for judging whether to meet according to the issuing time of the first play position and the first interaction data
Send condition.
Optionally, in the present embodiment, judgment module includes:
(1) first acquisition submodule, for obtaining the second client when issuing the first interaction data according to issuing time
Media file is played the second play position extremely, wherein when issuing the first interaction data, in the first client media file
It is played to third play position, third play position is before the second play position;
(2) second acquisition submodules, when for obtaining first of the second play position and the first play position therebetween
Between it is poor;
(3) judging submodule, it is poor whether less than or equal to predetermined threshold at the first time for judging;
(4) push submodule, at the first time it is poor be less than or equal to predetermined threshold when, to the first client push first
Interaction data.
Optionally, in order to which the real-time for guaranteeing data is interactive, avoid delay time too long, it is in the present embodiment, above-mentioned pre-
Determine threshold value configuration range can be, but not limited to be greater than zero, and be less than or equal to both the second play position and third play position it
Between time difference.Above-mentioned is only a kind of example, does not do any restriction to this in the present embodiment.
It is specifically illustrated as shown in connection with fig. 5, it is assumed that in natural time 20s, the faster customer end B of playback progress is (i.e.
Second client) in the second play position of 20s issue the first interaction data, the slower customer end A of playback progress (i.e.
One client) in the first play position of 18s have sent interaction request, then server will be by carrying in the interaction request
The first play position judge whether to be less than predetermined threshold (assuming that predetermined threshold be 5), here according to above-mentioned example, 20-18=2
< 5, that is, judge to be less than predetermined threshold 5, then it can be to first the first interaction data of client push.
By embodiment provided by the present application, by the way that issuing time is converted to the second client in the interaction number of publication first
According to when media file be played the second play position extremely, further according between the second play position and the first play position
It is poor at the first time to judge whether to be less than or equal to predetermined threshold, it controls whether to realize using the predetermined threshold that can configure to the
One the first interaction data of client push, to avoid due to the inconsistent caused acute saturating problem of data interaction content.
As a kind of optional scheme, further includes:
1) sending submodule, for judge at the first time it is poor whether be less than or equal to predetermined threshold after, first time
When difference is greater than predetermined threshold, then adjustment instruction is sent to the first client, wherein adjustment instruction is for refusing to the first client
The first interaction data is pushed, and is used to indicate the adjustment of the first client and is being sent next time for the first interaction data of request
Interaction request before waiting interval so that the first client wait interval after again send for request first hand over
Mutual data.
It is specifically illustrated as shown in connection with fig. 6, it is assumed that in natural time 20s, the faster customer end B of playback progress is (i.e.
Second client) in the second play position of 20s issue the first interaction data, the slower customer end A of playback progress (i.e.
One client) in the first play position of 13s have sent interaction request, then server will be by carrying in the interaction request
The first play position judge whether to be less than predetermined threshold (assuming that predetermined threshold be 5), here according to above-mentioned example, 20-13=7
> 5, that is, judge to be greater than predetermined threshold 5, then send adjustment instruction to the first client, wherein adjustment instruction is for refusing to the
One the first interaction data of client push is also used to indicate that the adjustment of the first client is being sent next time for request first
Waiting interval before the interaction request of interaction data, so that the first client is sent again after waiting interval for requesting to obtain
Take the first interaction data.Here, suppose that being divided into 2s between waiting, then the first client can be notified in the broadcasting of 13+2=15s
Position sends interaction request again to obtain the first interaction data of above-mentioned second account publication.
By embodiment provided by the present application, at the first time it is poor be greater than predetermined threshold when, by being sent out to the first client
Adjustment instruction is sent, with refusal to first the first interaction data of client push, and indicates that the adjustment of the first client is sent out next time
The waiting interval before the interaction request for the first interaction data of request is sent, accurately controls the first client to realize
It is sent again after waiting interval for requesting to obtain the first interaction data, in order to which the first client is in target play position
It can receive the accuracy rate for reaching to the first interaction data and improving data interaction, and then guarantee the first client and the second client
The consistency and data interactive efficiency of end data interaction.
As a kind of optional scheme, sending submodule realizes that sending adjustment to the first client refers to by following steps
It enables:
S1 obtains the first difference between the second play position and predetermined threshold;
S2 obtains the second difference between the first difference and the first play position as waiting interval;
S3 sends to the first client and carries the adjustment instruction for waiting interval.
Specifically be illustrated in conjunction with following example, still illustrated with above-mentioned example, it is assumed that in natural time 20s, play into
It spends faster customer end B (i.e. the second client) and has issued the first interaction data, playback progress in the second play position of 20s
Slower customer end A (i.e. the first client) has sent interaction request in the first play position of 13s, then server will pass through
The first play position carried in the interaction request is judged whether to be less than predetermined threshold (assuming that predetermined threshold is 5).
Further, in this example, above-mentioned waiting interval can be, but not limited to be calculated according to following manner:
20-5=15,
15-13=2.
Wherein, 15 the first difference between the second play position 20 and predetermined threshold 5,2 broadcast for the first difference with first
Put the second difference between position, that is to say, that is carried in adjustment instruction is used to control the waiting that the first client is waited
Interval can be 2s.
By embodiment provided by the present application, calculated between obtaining waiting entrained in adjustment instruction through the above way
Every, thus realize accurately control the first client obtain the first interaction data time, improve the accuracy and friendship of data interaction
Mutual efficiency.
As a kind of optional scheme, further includes:
1) second acquisition unit, for obtaining and being deposited in server before obtaining the interaction request that the first client is sent
The issuing time for the interaction data of storage issued in the first session and be not pushed to the first client;
2) third acquiring unit successively obtains play position corresponding to issuing time for the sequence according to issuing time
The second time difference between the first play position, wherein the issuing time institute for the first interaction data that the second account is issued
The second time difference between corresponding play position and the first play position is minimum;
3) determination unit, for responding interaction request using the first interaction data as the data for being pushed to the first client.
Optionally, in the present embodiment, it can be, but not limited to store in server and issued in the first session and not
The multiple interaction datas and corresponding issuing time, multiple interaction datas here for being pushed to the first client can be, but not limited to
The data issued in the first session for one or more clients.
It should be noted that in the present embodiment, in issuing time difference, can be, but not limited to according to issuing time
Sequentially, the play position that issuing time is successively converted to the media file played in corresponding client, obtains above-mentioned broadcast
The minimum value in the second time difference between position and the first play position is put, by the corresponding issuing time publication of the minimum value
Interaction data is as the data for being pushed to the first client;In addition, in the present embodiment, in issuing time phase simultaneously as broadcasting
Degree of putting into is different, then corresponding play position in the media file that above-mentioned issuing time is played in corresponding client
Difference, still can by obtaining the minimum value in the second time difference between above-mentioned play position and the first play position, and
Using the interaction data of the corresponding issuing time publication of the minimum value as the data for being pushed to the first client, to realize to friendship
The control of mutual consistency.
By embodiment provided by the present application, what is stored in acquisition server has issued in the first session and has not pushed
To the issuing time of the interaction data of the first client;And it is successively obtained corresponding to issuing time according to the sequence of issuing time
The second time difference between play position and the first play position is obtained using the minimum value in the second time difference as being pushed to
The data of first client avoid omitting interaction data to guarantee the integrality of data interaction.
As a kind of optional scheme, further includes:
1) the first receiving unit, for receiving the first client before obtaining the interaction request that the first client is sent
The invitation operations of transmission instruct, wherein invitation operations instruction is for inviting the second account and the first account that the first session is added;
2) transmission unit invites request for sending to the second client, to invite second used in the second client
The first session is added in account.
Optionally, in the present embodiment, further includes: the second receiving unit, for receiving inviting for the first client transmission
It please receive before operational order, in the first client terminal playing media file to the meeting in the broadcasting pictures for being located at media file
The clicking operation that words creation button executes invitation operations instruction generated.
Specifically example is illustrated as shown in connection with fig. 7, shown in the broadcasting pictures for being located at media file by clicking
Button (i.e. conversation establishing button) is invited to generate for inviting the operational order for inviting the second account that the first session is added.
For example, as shown in figure 3, the first client (playback of media files of the first account viewing media file A is used
Applications client), it can invite account a that the first session is added by instant messaging application, can also be invited by microblogging application
The first session is added in account b, can also invite account c that the first session is added by community space application, as shown in figure 3, having become
Function invites account a by instant messaging application.
By embodiment provided by the present application, by creating and using between different accounts based on the broadcasting to media file
In the session for carrying out data interaction to the content about media file, to realize the real-time, interactive to media file.
Embodiment 3
According to embodiments of the present invention, it additionally provides a kind of for implementing the data interaction service of above-mentioned data interactive method
Device, as shown in figure 9, the server includes:
1) communication interface 902 are set as the process in the first client terminal playing media file logged in using the first account
In, obtain the interaction request that the first client is sent, wherein interaction request carries the of the first client terminal playing media file
One play position, interaction request use the second client of the second account login when playing media file for request,
In the first interaction data of the first session publication, the second account carries out data interaction by the first session and the first account;
2) processor 904 are connect with communication interface 902, are set as being judged whether according to the first play position meeting to the
The pushing condition of one the first interaction data of client push, wherein pushing condition is being played to matchmaker for controlling the first client
Receive the first interaction data after target play position in body file, target play position be located at the first play position it
Afterwards;
Above-mentioned communication interface is also configured to when meeting pushing condition, to first the first interaction data of client push.
3) memory 906 are connect with communication interface 902 with processor 904, are set as storing above-mentioned play position and interaction
Data.
Optionally, the specific example in the present embodiment can be shown with reference to described in above-described embodiment 1 and embodiment 2
Example, details are not described herein for the present embodiment.
Embodiment 5
The embodiments of the present invention also provide a kind of storage mediums.Optionally, in the present embodiment, above-mentioned storage medium can
With at least one network equipment in multiple network equipments in network.
Optionally, in the present embodiment, storage medium is arranged to store the program code for executing following steps:
S1 obtains first visitor during the first client terminal playing media file logged in using the first account
The interaction request that family end is sent, wherein the interaction request carries the of media file described in first client terminal playing
One play position, second client of the interaction request for request to be logged in using the second account are playing the media
When file, in the first interaction data of the first session publication, second account passes through first session and first account
Number carry out data interaction;
S2 judges whether to meet to the first interaction number described in first client push according to first play position
According to pushing condition, wherein the pushing condition is for controlling first client in being played to the media file
Receive first interaction data after target play position, the target play position be located at first play position it
Afterwards;
S3, when meeting the pushing condition, the first interaction data described in the first client push of Xiang Suoshu.
Optionally, storage medium is also configured to store the program code for executing following steps:
S1 obtains the issuing time that second account issues first interaction data in first session;
S2 judges whether to meet institute according to the issuing time of first play position and first interaction data
State pushing condition.
Optionally, storage medium is also configured to store the program code for executing following steps: according to issuing time
It obtains the second client media file when issuing the first interaction data and is played the second play position extremely, wherein issuing
When the first interaction data, it is played in the first client media file to third play position, third play position is broadcast second
Before putting position;It is poor to obtain the second play position first time between the two with the first play position;Judgement is poor at the first time
Whether predetermined threshold is less than or equal to;At the first time it is poor be less than or equal to predetermined threshold when, to the first client push first interaction
Data.
Optionally, storage medium is also configured to store the program code for executing following steps: when judging first
Between difference whether be less than or equal to predetermined threshold after, at the first time it is poor be greater than predetermined threshold when, then to the first client send adjust
Whole instruction, wherein adjustment instruction is used to indicate the first client for refusing to first the first interaction data of client push
The waiting interval before sending the interaction request for the first interaction data of request next time is adjusted, so that the first client
End sends again after waiting interval and is used for the first interaction data of request.
Optionally, storage medium is also configured to store the program code for executing following steps: obtaining the first visitor
Before the interaction request that family end is sent, what is stored in acquisition server has issued in the first session and has not been pushed to the first visitor
The issuing time of the interaction data at family end;According to the sequence of issuing time successively obtain play position corresponding to issuing time with
The second time difference between first play position, wherein the issuing time institute for the first interaction data that the second account is issued is right
The second time difference between the play position and the first play position answered is minimum;Respond interaction request using the first interaction data as
It is pushed to the data of the first client.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (ROM,
Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or
The various media that can store program code such as CD.
Optionally, the specific example in the present embodiment can be shown with reference to described in above-described embodiment 1 and embodiment 2
Example, details are not described herein for the present embodiment.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and as independent product
When selling or using, it can store in above-mentioned computer-readable storage medium.Based on this understanding, skill of the invention
Substantially all or part of the part that contributes to existing technology or the technical solution can be with soft in other words for art scheme
The form of part product embodies, which is stored in a storage medium, including some instructions are used so that one
Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) execute each embodiment institute of the present invention
State all or part of the steps of method.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment
The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed client, it can be by others side
Formula is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, and only one
Kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
It is desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed it is mutual it
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module
It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (19)
1. a kind of data interactive method characterized by comprising
During the first client terminal playing media file logged in using the first account, obtains first client and send
Interaction request, wherein the interaction request carry media file described in first client terminal playing first play position
It sets, the interaction request uses the second client of the second account login when playing the media file for request,
In the first interaction data of the first session publication, second account is counted by first session and first account
According to interaction;The playback progress of second client is faster than the playback progress of first client;Second client exists
When issuing first interaction data, the media file is played in second client to the second play position;
Judged whether to meet pushing away to the first interaction data described in first client push according to first play position
Send condition, wherein the pushing condition is broadcast for controlling first client in the target being played in the media file
It puts position and receives first interaction data later, the target play position is located at after first play position;
When meeting the pushing condition, the first interaction data described in the first client push of Xiang Suoshu.
2. the method according to claim 1, wherein described judge whether to meet according to first play position
Pushing condition to the first interaction data described in first client push includes:
Obtain the issuing time that second account issues first interaction data in first session;
Judge whether to meet the push according to the issuing time of first play position and first interaction data
Condition.
3. according to the method described in claim 2, it is characterized in that, described hand over according to first play position with described first
The issuing time of mutual data judges whether that meeting the pushing condition includes:
The second client media file quilt when issuing first interaction data is obtained according to the issuing time
Play the second play position extremely, wherein when issuing first interaction data, the text of the media described in first client
Part is played to third play position, and the third play position is before second play position;
It is poor to obtain second play position first time between the two with first play position;
Judge that the first time is poor whether less than or equal to predetermined threshold;
The first time it is poor be less than or equal to the predetermined threshold when, the first interaction number described in the first client push of Xiang Suoshu
According to.
4. according to the method described in claim 3, it is characterized in that, the predetermined threshold is greater than zero, and being less than or equal to described the
Two play position and third play position time difference between the two.
5. according to the method described in claim 3, it is characterized in that, judging that the first time is poor whether less than or equal to predetermined
After threshold value, further includes:
The first time it is poor be greater than the predetermined threshold when, then to first client send adjustment instruction, wherein institute
State adjustment instruction for refuse to the first interaction data described in first client push, and be used to indicate first client
Waiting interval of the end adjustment before transmission next time is used for the interaction request of the first interaction data described in request, with
Send first client again behind waiting interval for the first interaction data described in request.
6. according to the method described in claim 5, it is characterized in that, described send adjustment instruction packet to first client
It includes:
Obtain the first difference between second play position and the predetermined threshold;
The second difference obtained between first difference and first play position is spaced as the waiting;
It is sent to first client and carries the adjustment instruction for waiting interval.
7. the method according to claim 1, wherein being asked in the interaction for obtaining the first client transmission
Before asking, further includes:
Obtain the interaction number issued in first session and be not pushed to first client stored in server
According to issuing time;
Play position corresponding to the issuing time and described first is successively obtained according to the sequence of the issuing time to play
The second time difference between position, wherein the issuing time for first interaction data that second account is issued
Second time difference between corresponding play position and first play position is minimum;
The interaction request is responded using first interaction data as the data for being pushed to first client.
8. the method according to claim 1, wherein obtain interaction request that first client is sent it
Before, further includes:
Receive the invitation operations instruction that first client is sent, wherein the invitation operations instruction is for inviting described the
First session is added in two accounts and first account;
It is sent to second client and invites request, to invite second account used in second client to be added
First session.
9. according to the method described in claim 8, it is characterized in that, referring to receiving the invitation operations that first client is sent
Before order, further includes:
When the media file described in first client terminal playing, receive to the meeting in the broadcasting pictures for being located at the media file
The clicking operation that words creation button the executes invitation operations instruction generated.
10. a kind of data interaction device characterized by comprising
First acquisition unit, for obtaining during the first client terminal playing media file logged in using the first account
The interaction request that first client is sent, wherein the interaction request carries matchmaker described in first client terminal playing
First play position of body file, the interaction request are being broadcast for request using the second client that the second account logs in
When putting the media file, in the first interaction data of the first session publication, second account by first session and
First account carries out data interaction;The playback progress of second client be faster than the broadcasting of first client into
Degree;When issuing first interaction data, the media file is played second client in second client
To the second play position;
Judging unit, for judging whether to meet to first described in first client push according to first play position
The pushing condition of interaction data, wherein the pushing condition is being played to the media text for controlling first client
First interaction data is received after target play position in part, the target play position is located at described first and plays
After position;
Push unit, for when meeting the pushing condition, the first interaction data described in the first client push of Xiang Suoshu.
11. device according to claim 10, which is characterized in that the judging unit includes:
Module is obtained, for obtaining second account when the publication of first interaction data is issued in first session
Between;
Judgment module, for being judged whether according to first play position and the issuing time of first interaction data
Meet the pushing condition.
12. device according to claim 11, which is characterized in that the judgment module includes:
First acquisition submodule is issuing the first interaction number for obtaining second client according to the issuing time
According to when the media file be played the second play position extremely, wherein when issuing first interaction data, described
Media file described in one client is played to third play position, the third play position second play position it
Before;
Second acquisition submodule, when for obtaining first of second play position and first play position therebetween
Between it is poor;
Judging submodule, for judging that the first time is poor whether less than or equal to predetermined threshold;
Push submodule, for the first time it is poor be less than or equal to the predetermined threshold when, the first client of Xiang Suoshu pushes away
Send first interaction data.
13. device according to claim 12, which is characterized in that the predetermined threshold is greater than zero, and is less than or equal to described
Second play position and third play position time difference between the two.
14. device according to claim 12, which is characterized in that further include:
Sending submodule, for judge that the first time is poor whether less than or equal to after predetermined threshold, at described first
Between difference when being greater than the predetermined threshold, then send adjustment instruction to first client, wherein the adjustment instruction is for refusing
Absolutely to the first interaction data described in first client push, and it is used to indicate the first client adjustment and is sent out next time
The waiting interval before the interaction request for the first interaction data described in request is sent, so that first client
It is sent again behind waiting interval for the first interaction data described in request.
15. device according to claim 14, which is characterized in that the sending submodule is realized by following steps to institute
It states the first client and sends adjustment instruction:
Obtain the first difference between second play position and the predetermined threshold;
The second difference obtained between first difference and first play position is spaced as the waiting;
It is sent to first client and carries the adjustment instruction for waiting interval.
16. device according to claim 10, which is characterized in that further include:
Second acquisition unit, for obtaining in server before the interaction request for obtaining the first client transmission
The issuing time for the interaction data of storage issued in first session and be not pushed to first client;
Third acquiring unit successively obtains broadcasting position corresponding to the issuing time for the sequence according to the issuing time
Set the second time difference between first play position, wherein the first interaction number that second account is issued
According to the issuing time corresponding to second time difference between play position and first play position it is minimum;
Determination unit, for responding the interaction request using first interaction data as being pushed to first client
Data.
17. device according to claim 10, which is characterized in that further include:
First receiving unit, for receiving first client before obtaining the interaction request that first client is sent
The invitation operations instruction that end is sent, wherein the invitation operations instruction is for inviting second account and first account
First session is added;
Transmission unit invites request for sending to second client, to invite institute used in second client
It states the second account and first session is added.
18. device according to claim 17, which is characterized in that further include:
Second receiving unit, for before receiving the invitation operations instruction that first client is sent, in first visitor
When family end plays the media file, receive to the conversation establishing button execution in the broadcasting pictures for being located at the media file
The clicking operation invitation operations instruction generated.
19. a kind of data interaction system characterized by comprising
Terminal is equipped with the first client logged in using the first account, for sending interaction request, wherein the interaction is asked
The first play position for carrying the first client terminal playing media file is sought, the interaction request is used for request
The second client that second account logs in is when playing the media file, in the first interaction data of the first session publication, institute
It states the second account and data interaction is carried out by first session and first account;The playback progress of second client
It is faster than the playback progress of first client;Second client is when issuing first interaction data, the media
File is played in second client to the second play position;Server obtains during playing the media file
The interaction request for taking first client to send;Judge whether to meet to described first according to first play position
The pushing condition of first interaction data described in client push,
Wherein, the pushing condition is used to control first client and plays position in the target being played in the media file
First interaction data is received after setting, the target play position is located at after first play position;
When meeting the pushing condition, the first interaction data described in the first client push of Xiang Suoshu.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610677677.8A CN106302463B (en) | 2016-08-16 | 2016-08-16 | Data interactive method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610677677.8A CN106302463B (en) | 2016-08-16 | 2016-08-16 | Data interactive method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106302463A CN106302463A (en) | 2017-01-04 |
CN106302463B true CN106302463B (en) | 2019-04-02 |
Family
ID=57678695
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610677677.8A Active CN106302463B (en) | 2016-08-16 | 2016-08-16 | Data interactive method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106302463B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109729375B (en) | 2018-12-29 | 2020-01-17 | 北京字节跳动网络技术有限公司 | Interactive data distribution control method, device, equipment and storage medium |
CN112637689B (en) * | 2019-09-24 | 2021-12-24 | 广州虎牙科技有限公司 | Bullet screen processing method, device and system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103517092A (en) * | 2012-06-29 | 2014-01-15 | 腾讯科技(深圳)有限公司 | Method and device for video displaying |
CN104967876A (en) * | 2014-09-30 | 2015-10-07 | 腾讯科技(深圳)有限公司 | Pop-up information processing method and apparatus, and pop-up information display method and apparatus |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105338394B (en) * | 2014-06-19 | 2018-11-30 | 阿里巴巴集团控股有限公司 | The processing method and system of caption data |
-
2016
- 2016-08-16 CN CN201610677677.8A patent/CN106302463B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103517092A (en) * | 2012-06-29 | 2014-01-15 | 腾讯科技(深圳)有限公司 | Method and device for video displaying |
CN104967876A (en) * | 2014-09-30 | 2015-10-07 | 腾讯科技(深圳)有限公司 | Pop-up information processing method and apparatus, and pop-up information display method and apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN106302463A (en) | 2017-01-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11457283B2 (en) | System and method for multi-user digital interactive experience | |
CN106385603B (en) | The method for message transmission and device of media file | |
CA2977035C (en) | System and method for video communication | |
CN111385592A (en) | Cross-room live broadcast connection method and device, storage medium and server | |
CN107690085B (en) | Data sharing method and device | |
US9185342B2 (en) | Systems and methods for implementing instant social image cobrowsing through the cloud | |
US8849900B2 (en) | Method and system supporting mobile coalitions | |
US9621958B2 (en) | Deferred, on-demand loading of user presence within a real-time collaborative service | |
CN109962833A (en) | The creation method and device of session on instant communication client | |
US11889159B2 (en) | System and method for multi-user digital interactive experience | |
AU2015298941A1 (en) | An online meeting system and method | |
CN102185924A (en) | Method and equipment for sharing video screenshot | |
CN105187296B (en) | Direct broadcasting room authority acquiring method and system | |
CN105898181A (en) | Video conversation system and method and related equipment | |
WO2015135476A1 (en) | Voice interaction method and apparatus | |
CN103955984A (en) | Method, server, voting processing node and system for achieving interconnection network voting | |
CN113411652A (en) | Media resource playing method and device, storage medium and electronic equipment | |
CN106302463B (en) | Data interactive method and device | |
CN103297858A (en) | Smart television user state displaying system and smart television user state displaying method | |
CN106375784A (en) | Method and apparatus for commenting program and receiving comment information of program | |
JP2017037636A (en) | System and method for providing virtual communication session for partial participant on communication session | |
CN113949596B (en) | Device connection method, device and storage medium | |
CN108574878A (en) | Data interactive method and device | |
WO2015010644A1 (en) | Method, apparatus, and system for achieving privilege separation | |
CN110391969A (en) | Based on multimedia chat method and device, storage medium, electronic 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |