CN106162236B - A kind of method and device of sharing video frequency - Google Patents

A kind of method and device of sharing video frequency Download PDF

Info

Publication number
CN106162236B
CN106162236B CN201510126418.1A CN201510126418A CN106162236B CN 106162236 B CN106162236 B CN 106162236B CN 201510126418 A CN201510126418 A CN 201510126418A CN 106162236 B CN106162236 B CN 106162236B
Authority
CN
China
Prior art keywords
terminal
conversation
video frequency
sharing
sharing video
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510126418.1A
Other languages
Chinese (zh)
Other versions
CN106162236A (en
Inventor
任旻
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201510126418.1A priority Critical patent/CN106162236B/en
Publication of CN106162236A publication Critical patent/CN106162236A/en
Application granted granted Critical
Publication of CN106162236B publication Critical patent/CN106162236B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of method and devices of sharing video frequency, belong to the communications field.It include the video identifier to sharing video frequency and the terminal iidentification for needing to play each terminal to sharing video frequency in the conversation the described method includes: obtaining conversation;To the corresponding video data of video identifier of sharing video frequency and information be played simultaneously described in each terminal broadcast into the conversation, synchronizing information broadcasting is played simultaneously according to sharing video frequency to control each terminal.Described device includes: to obtain module and the first broadcast module.The present invention can be realized is played simultaneously same video over multiple terminals.

Description

A kind of method and device of sharing video frequency
Technical field
The present invention relates to the communications field, in particular to a kind of method and device of sharing video frequency.
Background technique
With the fast development of mobile terminal technology, mobile terminal is widely applied by user.User is usually using movement Terminal listens to music, and makes a phone call or play video etc..For example, user usually watches film using mobile terminal on the road to beat Send out the time.
Currently, mobile terminal is used alone usually when watching film to play film in user, however in some scenes Under, user may need to watch film together with his friends.For example, user and its multiple friend travel together, in journey Middle user needs and its multiple friend watches film together to kill time, and since the number of viewing film is more, and moves end The screen at end is smaller, is difficult meet the needs of user is with its friend together synchronous viewing film.
Summary of the invention
Same video is played simultaneously over multiple terminals in order to realize, the present invention provides a kind of method of sharing video frequency and Device.The technical solution is as follows:
A kind of method of sharing video frequency, which comprises
Obtain conversation, include in the conversation video identifier to sharing video frequency and need to play it is described to point Enjoy the terminal iidentification of each terminal of video;
To the corresponding video data of video identifier of sharing video frequency described in each terminal broadcast into the conversation With information is played simultaneously, with control each terminal be played simultaneously according to synchronizing information play to sharing video frequency.
A kind of method of sharing video frequency, which comprises
It triggers synchronizer and obtains conversation, the conversation includes the video identifier to sharing video frequency and needs Play the terminal iidentification of each terminal to sharing video frequency;
Receive the synchronizer according to the conversation broadcast described in sharing video frequency video data with it is synchronous Broadcast information;
The video data to sharing video frequency is played according to the information that is played simultaneously.
A kind of device of sharing video frequency, described device include:
Acquisition module includes the video identifier to sharing video frequency for obtaining conversation, in the conversation and is needed Play the terminal iidentification of each terminal to sharing video frequency;
First broadcast module, for the video mark described in each terminal broadcast into the conversation to sharing video frequency Know corresponding video data and information is played simultaneously, synchronizing information broadcasting is played simultaneously according to control each terminal To sharing video frequency.
A kind of device of sharing video frequency, described device include:
Trigger module obtains conversation for triggering synchronizer, and the conversation includes described to sharing video frequency Video identifier and need to play the terminal iidentification of each terminal to sharing video frequency;
Receiving module, for receiving view of the synchronizer according to conversation broadcast to sharing video frequency Frequency evidence and information is played simultaneously;
Playing module plays the video data to sharing video frequency for information to be played simultaneously according to.
In embodiments of the present invention, obtain a conversation, include in the conversation institute it is in need and meanwhile play to The corresponding terminal of the user of sharing video frequency, then each terminal broadcast into the conversation waits for the video data of sharing video frequency With information is played simultaneously, make each terminal in conversation that information be played simultaneously according to this, be played simultaneously to sharing video frequency Video data meets multiple users while watching the demand of video.
Detailed description of the invention
Fig. 1-1 is the first network architecture schematic diagram of application of the embodiment of the present invention;
Fig. 1-2 is second of network architecture schematic diagram of application of the embodiment of the present invention;
Fig. 1-3 is the third network architecture schematic diagram of application of the embodiment of the present invention;
Fig. 1-4 is a kind of method flow diagram for sharing video frequency that the embodiment of the present invention 1 provides;
Fig. 2-1 is a kind of method flow diagram for sharing video frequency that the embodiment of the present invention 2 provides;
Fig. 2-2 is the first interface schematic diagram that the embodiment of the present invention 2 provides;
Fig. 2-3 is second of interface schematic diagram that the embodiment of the present invention 2 provides;
Fig. 2-4 is the third interface schematic diagram that the embodiment of the present invention 2 provides;
Fig. 2-5 is the 4th kind of interface schematic diagram that the embodiment of the present invention 2 provides;
Fig. 3 is a kind of method flow diagram for sharing video frequency that the embodiment of the present invention 3 provides;
Fig. 4 is a kind of method flow diagram for sharing video frequency that the embodiment of the present invention 4 provides;
Fig. 5 is a kind of apparatus structure schematic diagram for sharing video frequency that the embodiment of the present invention 5 provides;
Fig. 6 is a kind of apparatus structure schematic diagram for sharing video frequency that the embodiment of the present invention 6 provides;
Fig. 7 is a kind of terminal structure schematic diagram that the embodiment of the present invention 7 provides;
Fig. 8 is a kind of server architecture schematic diagram that the embodiment of the present invention 8 provides.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
The embodiment of the present invention can be applied to following scene: the first user with her friend's second user A together with B, Such as it travels by Train together.On the road, the first user wants to see a film together with friends.However their seat is simultaneously Not in same row, and a terminal plays, and the screen of terminal is too small for them.First terminal can should The mark of film is sent in other people terminal.After everyone opens the mark of the video, the first user clicks and broadcasts Button is put, then all terminals all start simultaneously at broadcasting film on respective screen.
Wherein, what is told about when film is a very complicated story, they do not understand very much, and then they determine to review it Preceding plot.First user or her friend retract film a period of time in respective terminal, and then owner is again Watch the plot of this period.
When someone needs to be gone for a season, it is assumed that it is the first user, he can click pause button, other people All suspend.The first user has put broadcast button back after a period of time, and owner continues to watch movie.
When the network of someone is not so good, it is assumed that be also the first user, the first user needs to wait data buffering.Other people Also all stop, all terminals all continue to play when the first user can continue to play.
For above-mentioned application scenarios, any demand in above-mentioned scene can be met by following any embodiment.
Referring to Fig. 1-1, any embodiment of the present invention is applied to the network architecture shown in Fig. 1-1, includes in the network architecture Synchronizer and multiple terminals, multiple terminal can access synchronizer, synchronizer can to access multiple terminals it is wide The video data is broadcast, makes multiple terminal that the video data be played simultaneously.
Optionally, synchronizer can be sync server, which is located at network side.It can in sync server Can not also include video data comprising video data.If sync server does not include video data, referring to Fig. 1-2, The network architecture further includes video server, and sync server can obtain video data from video server, and to access Multiple terminal broadcasts video data, wherein each terminal can pass through wifi network or the synchronous clothes of mobile communications network access Business device, mobile communications network can be 3G or 4G network etc..
Optionally, synchronizer can be a terminal, and referring to the network architecture shown in Fig. 1-3, synchronizer can be the It include video data in one terminal and first terminal, multiple second terminals access first terminal, and first terminal can be to access Multiple second terminals and the player of itself broadcast the video data, make multiple second terminal and the player that this is played simultaneously Video data.
Embodiment 1
Referring to Fig. 1-4, the embodiment of the invention provides a kind of methods of sharing video frequency, comprising:
Step 101: obtain conversation, include in the conversation video identifier to sharing video frequency and need to play to The terminal iidentification of each terminal of sharing video frequency.
Step 102: each terminal broadcast into the conversation waits for the corresponding video counts of the video identifier of sharing video frequency According to information is played simultaneously, with control each terminal according to this be played simultaneously synchronizing information play to sharing video frequency.
Wherein, terminal iidentification can be the address of terminal.
In embodiments of the present invention, obtain a conversation, include in the conversation institute it is in need and meanwhile play to The corresponding terminal of the user of sharing video frequency, then each terminal broadcast into the conversation waits for the video data of sharing video frequency With information is played simultaneously, make each terminal in conversation that information be played simultaneously according to this, be played simultaneously to sharing video frequency Video data meets multiple users while watching the demand of video.
Embodiment 2
The embodiment of the invention provides a kind of methods of sharing video frequency.In the present embodiment, synchronizer can be synchronization Server is applied to the network architecture as shown in Fig. 1-1 or 1-2.Referring to fig. 2-1, this method comprises:
Step 201: first terminal sends session solicitation message to sync server, which carries wait share The video identifier of video and the terminal iidentification of first terminal.
Wherein, the first user can select a video in the player of first terminal, and then first terminal, which is opened, plays Interface shows in the broadcast interface and shares button and load the video to the broadcast interface.For example, with reference to Fig. 2-2, first eventually End shows a sharing button in the upper right corner of broadcast interface, and the video of the first user selection is loaded into the broadcast interface video.Before first terminal plays the video or during playing the video, the first user can click the sharing button Triggering shares instruction to first terminal, and sharing instruction shares the video to the good friend of the first user for triggering first terminal.
This step can be with are as follows: first terminal, which receives, shares the sharing instruction that button is clicked triggering, broadcasts from what is currently opened Put the video identifier that the video for loading or playing is obtained in the broadcast interface of device as the video identifier to sharing video frequency, so Session solicitation message is sent to sync server afterwards, which carries to the video identifier of sharing video frequency and first eventually The terminal iidentification at end.
For example, the first user can click shares button as shown in Fig. 2-2.First terminal receives the sharing button by point The sharing instruction for hitting triggering, then obtains the video mark of the video video loaded from the broadcast interface as shown in Fig. 2-2 IDvideo is known as the video identifier to sharing video frequency, then sends session solicitation message, the session application to sync server Message carries the terminal iidentification IP1 of first terminal and the video identifier IDvideo to sharing video frequency.
Step 202: sync server receives the session solicitation message, which carries the terminal of first terminal Mark and to sharing video frequency video identifier.
Step 203: simultaneously the terminal iidentification of first terminal is added in the conversation for sync server distribution conversation, Conversational response message is sent to first terminal, which carries the session identification of the conversation.
Further, if there is no video data to sharing video frequency in sync server, sync server can be with According to the video identifier to sharing video frequency, the video data to sharing video frequency is obtained from video server.If synchronous service There is the video data to sharing video frequency in device, then sync server does not need.
For example, sync server receives session solicitation message, which carries the terminal iidentification of first terminal IP1 and video identifier IDvideo to sharing video frequency, distributes a conversation, and the terminal iidentification IP1 of first terminal is added Into the conversation, conversational response message is sent to first terminal, which carries the session of the conversation SessionID is identified, while sync server can also be according to the video identifier IDvideo to sharing video frequency, from Video service The video data to sharing video frequency is obtained in device.
Step 204: first terminal receives the conversational response message, which carries the session of the conversation Mark, control player carries out video playing and prepares operation, and prepares ready for sending signal when operation is completed in video playing and give Sync server.
Step 205: first terminal is sent to second terminal invites request message, which carries wait share view The video identifier of frequency and the session identification of the conversation.
Wherein, first terminal receives the conversational response message, then opens the contacts list of social application, which answers With being application in first terminal.First user can select need to invite second to use in the contacts list of social application The user identifier at family.First terminal obtains the user identifier of the second user of the first user selection, according to the user of second user Mark, is sent to the corresponding second terminal of second user by social application and invites request message, which carries To the video identifier of sharing video frequency and the session identification of the conversation.
For example, first terminal receives the conversational response message, which carries the session mark of the conversation Know SessionID, then opens the contacts list of mounted social application, as Figure 2-3, which includes The user identifier IDC etc. of the user identifier IDB and C of the user identifier IDA, B of second user A.First user can be in the connection The user identifier for the second user that selection needs to invite in list, it is assumed that the first user has selected the user of second user A to mark Know the user identifier IDB of IDA and second user B.First terminal obtains the user identifier IDA's and second user B of second user A User identifier IDB is sent by social application according to the user identifier IDA of second user A and invites request message to second user The corresponding second terminal A of A, and according to the user identifier IDB of second user B, sent by social application and invite request message Give second user B corresponding second terminal B, and this two are invited request message to carry the video identifier to sharing video frequency The session identification SessionID of IDvideo and the conversation.Wherein, which can be an instant messages, For example, " the first user invites you to see video IDvideo together, woulds you please click SessionID ".
Step 206: second terminal receives the invitation request message, sends and request message is added to sync server, should add Enter request message and carries the terminal iidentification of second terminal and the session identification of the conversation.
Second terminal receives the invitation request message, which carries the video identifier to sharing video frequency and should The session identification of conversation is shown the video identifier to sharing video frequency that the invitation request message carries, is used with prompt second Family to be played to sharing video frequency.Then second terminal is sent to sync server is added request message, and addition request disappears Breath carries the terminal iidentification of second terminal and the session identification of the conversation.
For example, second terminal A, which is received, invites request message, which is that " the first user invites you to see together Video IDvideo, woulds you please click SessionID ", which is shown answering in the social application itself installed With in interface, the application interface is as in Figure 2-4, and second user A can click session identification SessionID triggering command to the Two terminal A.Second terminal A receives the instruction, sends to sync server and request message is added, which carries the The terminal iidentification IPA and session identification SessionID of two terminal A.
For another example, second terminal B, which is received, invites request message, which is that " the first user invites you to see together Video IDvideo woulds you please click SessionID ", which is shown the application in the social application of itself installation In interface, the application interface is as in Figure 2-4, and second user B can click session identification SessionID triggering command to second Terminal B.Second terminal B receives the instruction, sends to sync server and request message is added, which carries second The terminal iidentification IPB and session identification SessionID of terminal B.
Step 207: second terminal controls player and carries out video playing preparation operation, and has operated in video playing preparation At when ready for sending signal to sync server.
For example, second terminal A control player, which carries out video playing, prepares operation, and prepares operation in video playing and complete When ready for sending signal to sync server;Second terminal B controls player and carries out video playing preparation operation, and broadcasts in video Ready for sending signal is to sync server when putting preparation operation completion.
Step 208: sync server receives the addition request message that second terminal is sent, which carries the According to the session identification corresponding session point is added in the terminal iidentification of second terminal by the terminal iidentification and session identification of two terminals In group.
For example, sync server receives the addition request message that second terminal A is sent, which carries second The terminal iidentification IPA and session identification SessionID of terminal A, according to session identification SessionID, by the end of second terminal A End mark IPA is added in corresponding conversation.For another example, sync server receives the addition request message that second terminal B is sent, The addition request message carries the terminal iidentification IPB and session identification SessionID of second terminal B, according to the session identification The terminal iidentification IPB of second terminal B is added in corresponding conversation SessionID.
Step 209: sync server receives the ready signal of second terminal, is added in the conversation if received The ready signal of each terminal, each terminal ready for sending into the conversation complete message.
Specifically, sync server receives the ready signal of second terminal, according to each end for including in the conversation The terminal iidentification at end, it is determined whether the ready signal that each terminal is sent is received, if so, including according in the conversation Each terminal terminal iidentification, respectively to corresponding terminal ready for sending complete message.
For example, sync server receives the ready signal and that ready signal, the second terminal A that first terminal is sent are sent The ready signal that two terminal B are sent, according to the terminal of the terminal iidentification IP1 of the first terminal in the conversation, second terminal A The terminal iidentification IPB for identifying IPA and second terminal B, determines that each terminal in the conversation has sent ready signal, According to the end of the terminal iidentification IP1 of the first terminal in the conversation, the terminal iidentification IPA of second terminal A and second terminal B End mark IPB completes message to first terminal, second terminal A and B ready for sending.
Step 210: first terminal receives the ready completion message, to sync server send the first play command, first Play command carries the first play position.
First play position can be the initial position or any middle position to sharing video frequency.For example, can be for wait divide Enjoy the initial position 00:00 of video, middle position 01:03 or middle position 02:23 etc..
When first terminal receives the ready completion message, the first user can be prompted, then the first user, which can choose, broadcasts The play position to sharing video frequency, i.e. the first play position are put, and the triggering of click play button plays command to first terminal.The One terminal receives the play command, obtains the play position of the first user selection, then sends broadcasting life to sync server It enables, which carries the play position.
For each second user, which also can choose the first play position, and trigger second terminal to same It walks server and sends the first play command, the first play command carries the first play position of second user selection.
For example, can give the first user when first terminal receives the ready completion message with display reminding information, join Fig. 2-5, The prompt information is that " second user A and B are ready, please select play position!".Then the first user can be under player The selection on axis that plays just shown plays play position to sharing video frequency video, and click play button triggering command is to the One terminal.First terminal receives the instruction, obtains the first play position of the first user selection, it is assumed that and it is initial position 00:00, Then the first play command is sent to sync server, the first play command carries the first play position.
Step 211: sync server receives the first play command, the first play position carried in the first play command, Each terminal broadcast into conversation waits for the corresponding video data of the video identifier of sharing video frequency and the first play position.
For example, sync server receives the first play command, the first play command carries the first play position, according to the meeting The terminal iidentification of each terminal in words grouping, the video data and the first play position of sharing video frequency are waited for each terminal broadcast 00:00。
Sync server is constantly obtained from video server according to the video identifier to sharing video frequency wait share view The video data of frequency, and constantly by the video data broadcast to sharing video frequency to each terminal in the conversation.
For example, terminal iidentification IP1, second terminal A of the sync server according to the first terminal for including in the conversation Terminal iidentification IPA and second terminal B terminal iidentification IPB, respectively to first terminal, second terminal A and second terminal B broadcast Video data and the first play position 00:00 to sharing video frequency.
Step 212: what first terminal reception sync server was sent plays position to the video data of sharing video frequency and first It sets, plays the video data to sharing video frequency since the first play position by player.
Step 213: what second terminal reception sync server was sent plays position to the video data of sharing video frequency and first It sets, plays the video data to sharing video frequency since the first play position by player.
For example, first terminal receives playing to the video data of sharing video frequency video and first for sync server transmission Position 00:00 plays the video data to sharing video frequency video by player since the first play position 00:00;Second Terminal A receives the video data and the first play position 00:00 to sharing video frequency video that sync server is sent, by broadcasting It puts device and plays video data to sharing video frequency video since the first play position 00:00;Equally, second terminal B receives same The video data and the first play position 00:00 to sharing video frequency video that server is sent are walked, is broadcast by player from first Position 00:00 is put to start to play the video data to sharing video frequency video.
First terminal and second terminal are playing when sharing video frequency, obtain the currently playing progress of itself, Xiang Tong in real time It walks server and sends currently playing progress.Sync server receives the currently playing progress that each terminal is sent, according to each end Progress is played simultaneously in the currently playing progress determination at end, according to the terminal iidentification of each terminal in the conversation to each end It broadcasts this and progress is played simultaneously in end.First terminal and second terminal receive this and progress are played simultaneously, and respectively according to the synchronization Playback progress adjustment plays the playback progress to sharing video frequency.
Wherein, sync server can determine the progress of being played simultaneously as follows, comprising:
Select a playback progress as progress is played simultaneously in playback progress from working as each terminal, for example, synchronous clothes Business device can choose the smallest currently playing progress or the currently playing progress of random selection one is used as and progress is played simultaneously;Or Person, sync server can calculate average playback progress, by the playback progress that is averaged according to the currently playing progress of each terminal As progress is played simultaneously;Alternatively, obtaining the terminal parameter of each terminal, which includes the network connection speed of terminal The parameters such as degree, hardware configuration and degree of being buffered into, calculate the corresponding weight of each terminal, root according to the terminal parameter of each terminal According to the weight and currently playing progress of each terminal, the progress of being played simultaneously is calculated.
First terminal or second terminal can adjust the playback progress played to sharing video frequency as follows, comprising:
If the currently playing progress of itself is slower than this and progress is played simultaneously, by the currently playing broadcasting to sharing video frequency Progress is played simultaneously to this for progress adjustment;If the currently playing progress of itself, which is faster than this, is played simultaneously progress, basis is worked as Preceding playback progress and the progress that is played simultaneously calculate dwell time, and the time that pause plays to sharing video frequency, and suspends reaches this and stops Only continue to play when the time to sharing video frequency.
In the process to sharing video frequency that plays, the first user or second user can select to play position in respective terminal Set, the play position be known as the second play position for ease of description, the second play position can for played position or The position not played.For example, current play position is to be played at the 05:38 to sharing video frequency;If it is desired to looking back the view played Frequently, then it can choose the second play position less than current play position, such as select the second play position for 03:32;If it is desired to fast Into playing to sharing video frequency, then can choose the second play position greater than current play position, such as select the second play position for 06:20。
Correspondingly, first terminal obtains the second play position of the first user selection, uses alternatively, second terminal obtains second Second play position of family selection;First terminal or second terminal send second and play command to sync server, and second plays Order carries the second play position.
Sync server receives the second play command, according to the video identifier to sharing video frequency, from the second play position And video data of the downloading to sharing video frequency from video server, according to the terminal mark of each terminal in the conversation Know, the video data and the second play command of sharing video frequency are waited for each terminal broadcast, the second play command carries second and plays Position.First terminal or second terminal receive video data and the second play command to sharing video frequency, from the second play command Start to play at the second play position carried to sharing video frequency.
First terminal or second terminal can play when sharing video frequency the display halt button on broadcast interface.For First user or second user are playing when sharing video frequency, can click pause button triggering pause command, be broadcast with pause It puts to sharing video frequency.
Correspondingly, first terminal or second terminal are when detecting that the pause button is clicked the pause command of triggering, hair Give the pause command to sync server.Sync server receives the pause command, according to each terminal in the conversation Terminal iidentification broadcast the pause command to each terminal.First terminal or second terminal receive the pause command, and pause plays To sharing video frequency.
First terminal or second terminal pause play after sharing video frequency, show broadcast button on broadcast interface, and first When user or second user are wanted to continue to play, the broadcast button shown in the terminal of oneself can be clicked, trigger command gives oneself Corresponding terminal.
Correspondingly, when first terminal or second terminal receive the order, third play command is sent to sync server, Sync server receives third play command, wide to each terminal according to the terminal iidentification of each terminal in the conversation Broadcast third play command.When first terminal or second terminal receive third play command, continue play be suspended wait share Video.
First terminal or second terminal are playing the process to sharing video frequency, if it find that the poor needs of current network environment The video data to sharing video frequency is buffered, then can send pause command to sync server.It is assumed that first terminal current network Environment is poor to need to buffer the video data to sharing video frequency, and sync server is in the pause command for receiving first terminal transmission When, according to the terminal iidentification of each terminal in the conversation, the pause command is broadcasted to each terminal.In the conversation First terminal and second terminal receive respectively the pause command and suspend broadcasting to sharing video frequency.
When first terminal detects that it has been buffered when the video data of sharing video frequency, first terminal sends third and plays life It enables to sync server.Sync server receives third play command, according to the end for each terminal for including in the conversation End mark sends third play command to each terminal.First terminal or second terminal receive the third that sync server is sent and broadcast Order is put, and starts to continue to play to sharing video frequency.
In embodiments of the present invention, first terminal can be shared to sync server application to sharing video frequency, synchronous service Device distributes conversation, and first terminal invites second terminal that the conversation is added, and then sync server is into conversation First terminal and second terminal broadcast video data and the first play position to sharing video frequency, make first terminal and second eventually End all plays video data to sharing video frequency since the first play position, realize be played simultaneously over multiple terminals it is same Video meets multiple users while watching the demand of video.In addition, play to sharing video frequency during first terminal and Respective currently playing progress is sent to sync server by second terminal, and sync server is currently playing according to each terminal Progress calculation of synchronized progress is played simultaneously each terminal of progress monitoring according to this and keeps synchronizing during broadcasting.
Embodiment 3
Referring to Fig. 3, the embodiment of the invention provides a kind of methods of sharing video frequency, comprising:
Step 301: first terminal sends the video identifier to sharing video frequency to sync server.
It wherein, include social application in first terminal, the first user has communication group, communication group in the social application By one or more member compositions, the chat tools such as QQ, wechat that social application can be current, communication group can be chat Group.
First user can will be shared with the member in communication group to sharing video frequency, invite the member one in communication group Get up to play to sharing video frequency.In the communication group that first user can send the video identifier to sharing video frequency, to invite Member in communication group plays to sharing video frequency.Alternatively, the first user can will be to the video identifier of sharing video frequency and communication The group identification of group is sent to synchronous service, to invite the member in communication group to play to sharing video frequency.
Wherein, the first user can input the video identifier to sharing video frequency into the chat interface of communication group, and first Terminal obtains the video identifier to sharing video frequency, the video identifier to sharing video frequency is sent to social platform, so that social platform Other members video identifier to sharing video frequency being transmitted in communication group.Wherein, sync server can be social flat Platform, and detect the video identifier to sharing video frequency of transmission of first user in communication group, and obtain to sharing video frequency Video identifier.
Step 302: sync server receives the video identifier to sharing video frequency, obtains and needs to share to the logical of sharing video frequency Believe group.
Wherein, when the video identifier to sharing video frequency is sent in communication group by the first user, sync server can be with The video identifier to sharing video frequency that the first user is sent to communication group is detected and obtained, while obtaining the communication group Each member.When the first user will be sent to sync server to the video identifier of sharing video frequency and the group identification of communication group When, sync server is received to the video identifier of sharing video frequency and the group identification of communication group, is obtained according to the group identification Each member in communication group.
Step: 303: for sync server according to each member in communication group, each member into communication group is corresponding Request message is invited in terminal hair judgement.
Further, which also carries the video identifier to sharing video frequency.
Step 304: first terminal receives the invitation request message, and control player carries out video playing and prepares operation, and It sends and request message is added to sync server.
After first terminal receives the invitation request message, the first user can be prompted, the first user triggers to first terminal It takes orders, then first terminal control player carries out video playing preparation operation.
Further, first terminal, can be with ready for sending signal to synchronization after having carried out video playing and having prepared operation Server.
Step 305: second terminal receives the invitation request message, and control player carries out video playing and prepares operation, and It sends and request message is added to sync server.
After second terminal receives the invitation request message, second user can be prompted, if second user participate in play to Sharing video frequency then takes orders to second terminal triggering, and then second terminal control player carries out video playing preparation behaviour Make.
Further, second terminal, can be with ready for sending signal to synchronization after having carried out video playing and having prepared operation Server.
Step 306: sync server receives the addition request message that the terminal in communication group is sent, and obtains session point Group, the conversation include the terminal iidentification that the terminal of request message is added to the video identifier of sharing video frequency and transmission.
The ready signal that sync server can receive first terminal or second terminal is sent, sync server receive this just Thread signal, when receiving the ready signal that each terminal in conversation is sent, according to each end in the conversation The terminal iidentification at end completes signal to each terminal ready for sending.
After first terminal or second terminal receive ready completion signal, the first user or any one second user can be selected Play position is selected, and is played simultaneously from the play position to sharing video frequency.It is assumed that in the present embodiment, the first user is first The first play position has been selected in terminal.
Step 307: first terminal sends the first play command to sync server, and the first play command carries first and plays Position.
First play position can be the initial position or any middle position to sharing video frequency.For example, can be for wait divide Enjoy the initial position 00:00 of video, middle position 01:03 or middle position 02:23 etc..
When first terminal receives the ready completion message, the first user can be prompted, then the first user, which can choose, broadcasts The play position to sharing video frequency, i.e. the first play position are put, and the triggering of click play button plays command to first terminal.The One terminal receives the play command, obtains the first play position of the first user selection, then sends first to sync server Play command, the first play command carry the first play position.
Step 308: sync server receives the first play command, the first play position carried in the first play command, Each terminal broadcast into conversation waits for the corresponding video data of the video identifier of sharing video frequency and the first play position.
Sync server is constantly obtained from video server to sharing video frequency according to the video identifier to sharing video frequency Video data, and constantly by the video data broadcast to sharing video frequency to each terminal in the conversation.
Step 309: what first terminal reception sync server was sent plays position to the video data of sharing video frequency and first It sets, plays the video data to sharing video frequency since the first play position by player.
Step 310: what second terminal reception sync server was sent plays position to the video data of sharing video frequency and first It sets, plays the video data to sharing video frequency since the first play position by player.
First terminal and second terminal are playing when sharing video frequency, obtain the currently playing progress of itself, Xiang Tong in real time It walks server and sends currently playing progress.Sync server receives the currently playing progress that each terminal is sent, according to each end Progress is played simultaneously in the currently playing progress determination at end, according to the terminal iidentification of each terminal in the conversation to each end It broadcasts this and progress is played simultaneously in end.First terminal and second terminal receive this and progress are played simultaneously, and respectively according to the synchronization Playback progress adjustment plays the playback progress to sharing video frequency.
Wherein, sync server can determine the progress of being played simultaneously as follows, comprising:
Select a playback progress as progress is played simultaneously in playback progress from working as each terminal, for example, synchronous clothes Business device can choose the smallest currently playing progress or the currently playing progress of random selection one is used as and progress is played simultaneously;Or Person, sync server can calculate average playback progress, by the playback progress that is averaged according to the currently playing progress of each terminal As progress is played simultaneously;Alternatively, obtaining the terminal parameter of each terminal, which includes the network connection speed of terminal The parameters such as degree, hardware configuration and degree of being buffered into, calculate the corresponding weight of each terminal, root according to the terminal parameter of each terminal According to the weight and currently playing progress of each terminal, the progress of being played simultaneously is calculated.
First terminal or second terminal can adjust the playback progress played to sharing video frequency as follows, comprising:
If the currently playing progress of itself is slower than this and progress is played simultaneously, by the currently playing broadcasting to sharing video frequency Progress is played simultaneously to this for progress adjustment;If the currently playing progress of itself, which is faster than this, is played simultaneously progress, basis is worked as Preceding playback progress and the progress that is played simultaneously calculate dwell time, and the time that pause plays to sharing video frequency, and suspends reaches this and stops Only continue to play when the time to sharing video frequency.
In the process to sharing video frequency that plays, the first user or second user can select to play position in respective terminal Set, the play position be known as the second play position for ease of description, the second play position can for played position or The position not played.For example, current play position is to be played at the 05:38 to sharing video frequency;If it is desired to looking back the view played Frequently, then it can choose the second play position less than current play position, such as select the second play position for 03:32;If it is desired to fast Into playing to sharing video frequency, then can choose the second play position greater than current play position, such as select the second play position for 06:20。
Correspondingly, first terminal obtains the second play position of the first user selection, uses alternatively, second terminal obtains second Second play position of family selection;First terminal or second terminal send second and play command to sync server, and second plays Order carries the second play position.
Sync server receives the second play command, according to the video identifier to sharing video frequency, from the second play position And video data of the downloading to sharing video frequency from video server, according to the terminal mark of each terminal in the conversation Know, the video data and the second play command of sharing video frequency are waited for each terminal broadcast, the second play command carries second and plays Position.First terminal or second terminal receive video data and the second play command to sharing video frequency, from the second play command Start to play at the second play position carried to sharing video frequency.
First terminal or second terminal can play when sharing video frequency the display halt button on broadcast interface.For First user or second user are playing when sharing video frequency, can click pause button triggering pause command, be broadcast with pause It puts to sharing video frequency.
Correspondingly, first terminal or second terminal are when detecting that the pause button is clicked the pause command of triggering, hair Give the pause command to sync server.Sync server receives the pause command, according to each terminal in the conversation Terminal iidentification broadcast the pause command to each terminal.First terminal or second terminal receive the pause command, and pause plays To sharing video frequency.
First terminal or second terminal pause play after sharing video frequency, show broadcast button on broadcast interface, and first When user or second user are wanted to continue to play, the broadcast button shown in the terminal of oneself can be clicked, trigger command gives oneself Corresponding terminal.
Correspondingly, when first terminal or second terminal receive the order, third play command is sent to sync server, Sync server receives third play command, wide to each terminal according to the terminal iidentification of each terminal in the conversation Broadcast third play command.When first terminal or second terminal receive third play command, continue play be suspended wait share Video.
First terminal or second terminal are playing the process to sharing video frequency, if it find that the poor needs of current network environment The video data to sharing video frequency is buffered, then can send pause command to sync server.It is assumed that first terminal current network Environment is poor to need to buffer the video data to sharing video frequency, and sync server is in the pause command for receiving first terminal transmission When, according to the terminal iidentification of each terminal in the conversation, the pause command is broadcasted to each terminal.In the conversation First terminal and second terminal receive respectively the pause command and suspend broadcasting to sharing video frequency.
When first terminal detects that it has been buffered when the video data of sharing video frequency, first terminal sends third and plays life It enables to sync server.Sync server receives third play command, according to the end for each terminal for including in the conversation End mark sends third play command to each terminal.First terminal or second terminal receive the third that sync server is sent and broadcast Order is put, and starts to continue to play to sharing video frequency.
In embodiments of the present invention, first terminal can be shared to sync server application to sharing video frequency, synchronous service Device distributes conversation, and first terminal invites second terminal that the conversation is added, and then sync server is into conversation First terminal and second terminal broadcast video data and the first play position to sharing video frequency, make first terminal and second eventually End all plays video data to sharing video frequency since the first play position, realize be played simultaneously over multiple terminals it is same Video meets multiple users while watching the demand of video.In addition, play to sharing video frequency during first terminal and Respective currently playing progress is sent to sync server by second terminal, and sync server is currently playing according to each terminal Progress calculation of synchronized progress is played simultaneously each terminal of progress monitoring according to this and keeps synchronizing during broadcasting.
Embodiment 4
Referring to fig. 4, the embodiment of the invention provides a kind of methods of sharing video frequency, comprising:
Step 401: first terminal is sent to second terminal invites request message, which carries wait share view The video identifier of frequency.
First user wants that other people is invited to be played together to sharing video frequency, and to sharing video frequency, there are in first terminal.First eventually End may search for the second equipment of surrounding, for example, first terminal search and its second equipment that can establish bluetooth connection, or search Suo Yuqi is located at the second terminal of same wifi network, and the second equipment then searched for, which is sent, invites request message.
Step 402: second terminal receives the invitation request message, and control player carries out video playing and prepares operation, and It sends and request message is added to first terminal.
After second terminal receives the invitation request message, second user can be prompted, second user is triggered to second terminal It takes orders, then second terminal control player carries out video playing preparation operation.
Further, second terminal can give first after having carried out video playing and having prepared operation with ready for sending signal Terminal.
Step 403: first terminal receives the addition request message of second terminal, obtains conversation, the conversation group Include the terminal mark that the second terminal of request message is added to the video identifier of sharing video frequency, the terminal iidentification of first terminal and transmission Know.
After receiving the addition request message of second terminal, the first user can choose play position, and from the broadcasting Position is played simultaneously to sharing video frequency.
Step 404: each terminal of the first terminal into the conversation send the first play position and in itself to Play the video data of video.
First play position can be the initial position or any middle position to sharing video frequency.For example, can be for wait divide Enjoy the initial position 00:00 of video, middle position 01:03 or middle position 02:23 etc..
The player of first terminal receives the first play position and the video data to sharing video frequency, plays position according to first It sets, plays the video data of video to be played.
Step 405: second terminal receives video data and the first play position to sharing video frequency, by player from the One play position starts to play the video data to sharing video frequency.
First terminal and second terminal are playing when sharing video frequency, obtain the currently playing progress of itself in real time, and second Terminal also sends currently playing progress to first terminal.First terminal receives the currently playing progress and each second terminal of itself The currently playing progress sent, progress is played simultaneously in currently playing progress determination based on the received, according in the conversation To each terminal broadcast, progress is played simultaneously in this to the terminal iidentification of each terminal.It is synchronous that first terminal with second terminal receives this Playback progress, and playback progress of the progress adjustment broadcasting to sharing video frequency is respectively played simultaneously according to this.
In embodiments of the present invention, first terminal can invite second terminal to share to sharing video frequency, and first terminal can be with Its own is shared with addition and forms conversation to the second terminal of sharing video frequency, according to each terminal in the conversation The video data and the first play position that sharing video frequency is waited for each terminal broadcast, make first terminal and second terminal all from first Play position starts to play the video data to sharing video frequency, realizes and same video is played simultaneously over multiple terminals, meets Multiple users watch the demand of video simultaneously.
Embodiment 5
Referring to Fig. 5, the embodiment of the invention provides a kind of devices of sharing video frequency, comprising:
Obtain module 501, include for obtaining conversation, in the conversation to sharing video frequency video identifier and Need to play the terminal iidentification of each terminal to sharing video frequency;
First broadcast module 502, for the view described in each terminal broadcast into the conversation to sharing video frequency Frequency marking knows corresponding video data and information is played simultaneously, and synchronizing information is played simultaneously according to control each terminal It plays to sharing video frequency.
Optionally, the acquisition module 501 includes:
First acquisition unit, for obtain the video identifier to sharing video frequency with need to share the leading to sharing video frequency Believe group;
Second acquisition unit, for obtaining conversation, the conversation includes the video mark to sharing video frequency Know the terminal iidentification of terminal corresponding with member some or all of in the communication group.
Optionally, the acquisition module 501 includes:
First receiving unit, for receiving the session solicitation message of first terminal transmission, the session solicitation message is carried The terminal iidentification of first terminal and video identifier to sharing video frequency;
Allocation unit, for distributing conversation, by the terminal of the video identifier to sharing video frequency and first terminal The conversation is added in mark;
First transmission unit, for sending conversational response message to the first terminal, the conversational response message is carried The session identification of the conversation;
Second receiving unit, for receiving the addition request message of second terminal transmission, the addition request message is carried The terminal iidentification of the second terminal and the session identification, the session identification are that the first terminal is sent to described second Terminal;
Adding unit, for according to the session identification, the terminal iidentification of the second terminal to be added to the session Grouping.
Optionally, first broadcast module 502 includes:
Third receiving unit, the first play command sent for receiving the terminal in the conversation, described first Play command carries the first play position;
Radio unit, it is wide to each terminal for the terminal iidentification according to each terminal in the conversation The corresponding video data of video identifier to sharing video frequency and first play position are broadcast, makes each terminal from institute The first play position is stated to start to play the video data.
Further, described device further include:
Second broadcast module, it is described when receiving for receiving the ready signal of the transmission of the terminal in the conversation When the ready signal that each terminal in conversation is sent, the ready completion of each terminal broadcast in Xiang Suoshu conversation disappears Breath, so that the first play command that the terminal in the conversation is sent.
Further, described device further include:
Determining module, for receiving the currently playing progress of the transmission of each terminal in the conversation, according to described Progress is played simultaneously in the currently playing progress determination of each terminal, and progress is played simultaneously to described in each terminal transmission, makes Progress adjustment is played simultaneously according to and plays the playback progress to sharing video frequency for each terminal.
In embodiments of the present invention, obtain a conversation, include in the conversation institute it is in need and meanwhile play to The corresponding terminal of the user of sharing video frequency, then each terminal broadcast into the conversation waits for the video data of sharing video frequency With information is played simultaneously, make each terminal in conversation that information be played simultaneously according to this, be played simultaneously to sharing video frequency Video data meets multiple users while watching the demand of video.
Embodiment 6
Referring to Fig. 6, the embodiment of the invention provides a kind of devices of sharing video frequency, comprising:
Trigger module 601 obtains conversation for triggering synchronizer, and the conversation includes described wait share view The video identifier of frequency and the terminal iidentification for needing to play each terminal to sharing video frequency;
Receiving module 602, for receiving the synchronizer according to conversation broadcast to sharing video frequency Video data and information is played simultaneously;
Playing module 603 plays the video data to sharing video frequency for information to be played simultaneously according to.
Optionally, the trigger module 601 includes:
First transmission unit obtains the synchronizer for sending the video identifier to sharing video frequency to synchronizer It takes and needs to share the communication group to sharing video frequency;
First receiving unit is asked for receiving the synchronizer according to the invitation of member's broadcast in the communication group Message is sought, it is described that request message is invited to be used to invite the member in the communication group that conversation is added;
Adding unit, for the conversation to be added.
Optionally, the trigger module 601 includes:
Second transmission unit, for sending session solicitation message to synchronizer, the session solicitation message is carried wait divide The terminal iidentification for enjoying video video mark and first terminal makes the synchronizer creation conversation, the conversation group Include the terminal iidentification of the first terminal and the video identifier to sharing video frequency;
Second receiving unit, the conversational response message sent for receiving the synchronizer, the conversational response message Carry the session identification of the conversation;
The third transmission unit is also used to send to second terminal and invites request message, and the invitation request message is taken With the session identification, make the second terminal that the conversation be added according to the session identification.
Further, described device further include:
Module is obtained, for obtaining currently playing progress, the currently playing progress is sent to the synchronizer, makes institute It states synchronizer and progress is played simultaneously according to the currently playing progress acquisition, institute is played according to the progress adjustment that is played simultaneously State the playback progress to sharing video frequency.
In embodiments of the present invention, triggering synchronizer obtains a conversation, includes all need in the conversation The corresponding terminal of user to sharing video frequency is played simultaneously, and then each terminal of the synchronizer into the conversation is wide It broadcasts the video data to sharing video frequency and information is played simultaneously, make each terminal in conversation that letter be played simultaneously according to this Breath, is played simultaneously the video data to sharing video frequency, meets multiple users while watching the demand of video.
Embodiment 7
Referring to Fig. 7, it illustrates terminal structure schematic diagram involved in the embodiment of the present invention, which can be above-mentioned visitor Family end provides hardware running environment, the method for the protection database for implementing to provide in above-described embodiment.Specifically:
Terminal 900 may include RF (Radio Frequency, radio frequency) circuit 110, include one or more meter The memory 120 of calculation machine readable storage medium storing program for executing, input unit 130, display unit 140, sensor 150, voicefrequency circuit 160, WiFi (wireless fidelity, Wireless Fidelity) module 170, the processing for including one or more than one processing core The components such as device 180 and power supply 190.It will be understood by those skilled in the art that terminal structure shown in Fig. 7 is not constituted pair The restriction of terminal may include perhaps combining certain components or different component cloth than illustrating more or fewer components It sets.Wherein:
RF circuit 110 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, one or the processing of more than one processor 180 are transferred to;In addition, the data for being related to uplink are sent to Base station.In general, RF circuit 110 includes but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, uses Family identity module (SIM) card, transceiver, coupler, LNA (Low Noise Amplifier, low-noise amplifier), duplex Device etc..In addition, RF circuit 110 can also be communicated with network and other equipment by wireless communication.The wireless communication can make With any communication standard or agreement, and including but not limited to GSM (Global System of Mobile communication, entirely Ball mobile communcations system), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), LTE (Long Term Evolution, long term evolution), Email, SMS (Short Messaging Service, short message service) etc..
Memory 120 can be used for storing software program and module, and processor 180 is stored in memory 120 by operation Software program and module, thereby executing various function application and data processing.Memory 120 can mainly include storage journey Sequence area and storage data area, wherein storing program area can the (ratio of application program needed for storage program area, at least one function Such as sound-playing function, image player function) etc.;Storage data area, which can be stored, uses created number according to terminal 900 According to (such as audio data, phone directory etc.) etc..It, can be in addition, memory 120 may include high-speed random access memory Including nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-states Part.Correspondingly, memory 120 can also include Memory Controller, to provide processor 180 and 130 pairs of input unit storages The access of device 120.
Input unit 130 can be used for receiving the number or character information of input, and generate and user setting and function Control related keyboard, mouse, operating stick, optics or trackball signal input.Specifically, input unit 130 may include touching Sensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad are collected and are used Family on it or nearby touch operation (such as user using any suitable object or attachment such as finger, stylus in touch-sensitive table Operation on face 131 or near touch sensitive surface 131), and corresponding attachment device is driven according to preset formula.It is optional , touch sensitive surface 131 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used The touch orientation at family, and touch operation bring signal is detected, transmit a signal to touch controller;Touch controller is from touch Touch information is received in detection device, and is converted into contact coordinate, then gives processor 180, and can receive processor 180 The order sent simultaneously is executed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves Realize touch sensitive surface 131.In addition to touch sensitive surface 131, input unit 130 can also include other input equipments 132.Specifically, Other input equipments 132 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), One of trace ball, mouse, operating stick etc. are a variety of.
Display unit 140 can be used for showing information input by user or the information and terminal 900 that are supplied to user Various graphical user interface, these graphical user interface can be made of figure, text, icon, video and any combination thereof. Display unit 140 may include display panel 141, optionally, can use LCD (Liquid Crystal Display, liquid crystal Show device), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) configure display panel 141.Further, touch sensitive surface 131 can cover display panel 141, when touch sensitive surface 131 detects touching on it or nearby After touching operation, processor 180 is sent to determine the type of touch event, is followed by subsequent processing device 180 according to the type of touch event Corresponding visual output is provided on display panel 141.Although touch sensitive surface 131 and display panel 141 are conducts in Fig. 7 Two independent components realize input and input function, but in some embodiments it is possible to by touch sensitive surface 131 and display Panel 141 is integrated and realizes and outputs and inputs function.
Terminal 900 may also include at least one sensor 150, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 141, and proximity sensor can close display when terminal 900 is moved in one's ear Panel 141 and/or backlight.As a kind of motion sensor, gravity accelerometer can detect in all directions (generally Three axis) acceleration size, can detect that size and the direction of gravity when static, can be used to identify mobile phone posture application (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);Extremely In other sensors such as gyroscope, barometer, hygrometer, thermometer, the infrared sensors that terminal 900 can also configure, herein It repeats no more.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the audio interface between user and terminal 900.Audio Electric signal after the audio data received conversion can be transferred to loudspeaker 161, be converted to sound by loudspeaker 161 by circuit 160 Sound signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, after being received by voicefrequency circuit 160 Audio data is converted to, then by after the processing of audio data output processor 180, such as another end is sent to through RF circuit 110 End, or audio data is exported to memory 120 to be further processed.Voicefrequency circuit 160 is also possible that earphone jack, To provide the communication of peripheral hardware earphone Yu terminal 900.
WiFi belongs to short range wireless transmission technology, and terminal 900 can help user's transceiver electronics by WiFi module 170 Mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 7 is shown WiFi module 170, but it is understood that, and it is not belonging to must be configured into for terminal 900, it can according to need completely Do not change in the range of the essence of invention and omits.
Processor 180 is the control centre of terminal 900, utilizes each portion of various interfaces and connection whole mobile phone Point, by running or execute the software program and/or module that are stored in memory 120, and calls and be stored in memory 120 Interior data execute the various functions and processing data of terminal 900, to carry out integral monitoring to mobile phone.Optionally, processor 180 may include one or more processing cores;Preferably, processor 180 can integrate application processor and modem processor, Wherein, the main processing operation system of application processor, user interface and application program etc., modem processor mainly handles nothing Line communication.It is understood that above-mentioned modem processor can not also be integrated into processor 180.
Terminal 900 further includes the power supply 190 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity Management system and processor 180 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.Power supply 190 can also include one or more direct current or AC power source, recharging system, power supply event Hinder the random components such as detection circuit, power adapter or inverter, power supply status indicator.
Although being not shown, terminal 900 can also include camera, bluetooth module etc., and details are not described herein.Specifically in this reality It applies in example, the display unit of terminal 900 is touch-screen display, and terminal 900 further includes having memory and one or one Above program, one of them perhaps more than one program be stored in memory and be configured to by one or one with Upper processor execution states one or more than one program includes the instruction for performing the following operation:
It triggers synchronizer and obtains conversation, the conversation includes the video identifier to sharing video frequency and needs Play the terminal iidentification of each terminal to sharing video frequency;
Receive the synchronizer according to the conversation broadcast described in sharing video frequency video data with it is synchronous Broadcast information;
The video data to sharing video frequency is played according to the information that is played simultaneously.
Optionally, the triggering synchronizer obtains conversation, comprising:
Video identifier to synchronizer transmission to sharing video frequency obtains the synchronizer and needs sharing described wait divide Enjoy the communication group of video;
The synchronizer is received according to the invitation request message of member's broadcast in the communication group, the invitation is asked Ask message for inviting the member in the communication group that conversation is added;
The conversation is added.
Optionally, the triggering synchronizer obtains conversation, comprising:
Session solicitation message is sent to synchronizer, and the session solicitation message is carried to sharing video frequency video identifier and the The terminal iidentification of one terminal makes the synchronizer creation conversation, and the conversation includes the end of the first terminal End mark and the video identifier to sharing video frequency;
The conversational response message that the synchronizer is sent is received, the conversational response message carries the conversation Session identification;
It is sent to second terminal and invites request message, the invitations request message carrying session identification makes described the The conversation is added according to the session identification in two terminals.
Further, it is described be played simultaneously according to information play it is described to the video data of sharing video frequency after, also Include:
Currently playing progress is obtained, the currently playing progress is sent to the synchronizer, makes the synchronizer root Progress is played simultaneously according to the currently playing progress acquisition, is played simultaneously described in progress adjustment broadcasting according to described to sharing video frequency Playback progress.
In embodiments of the present invention, triggering synchronizer obtains a conversation, includes all need in the conversation The corresponding terminal of user to sharing video frequency is played simultaneously, then each terminal broadcast of the synchronizer into the conversation To sharing video frequency video data and information is played simultaneously, make each terminal in conversation that information be played simultaneously according to this, The video data to sharing video frequency is played simultaneously, meet multiple users while watching the demand of video.
Embodiment 8
Fig. 8 is the structural schematic diagram of server provided in an embodiment of the present invention.Server 1900 can because configuration or performance not Bigger difference is generated together, may include one or more central processing units (central processing Units, CPU) 1922 (for example, one or more processors) and memory 1932, one or more storage applications The storage medium 1930 (such as one or more mass memory units) of program 1942 or data 1944.Wherein, memory 1932 and storage medium 1930 can be of short duration storage or persistent storage.The program for being stored in storage medium 1930 may include one A or more than one module (diagram does not mark), each module may include to the series of instructions operation in server.More into One step, central processing unit 1922 can be set to communicate with storage medium 1930, execute storage medium on server 1900 Series of instructions operation in 1930.
Server 1900 can also include one or more power supplys 1926, one or more wired or wireless nets Network interface 1950, one or more input/output interfaces 1958, one or more keyboards 1956, and/or, one or More than one operating system 1941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM Etc..
Server 1900 may include have memory and one perhaps more than one program one of them or one A procedure above is stored in memory, and is configured to execute one or one by one or more than one processor A procedure above includes the instruction for performing the following operation:
Obtain conversation, include in the conversation video identifier to sharing video frequency and need to play it is described to point Enjoy the terminal iidentification of each terminal of video;
To the corresponding video data of video identifier of sharing video frequency described in each terminal broadcast into the conversation With information is played simultaneously, with control each terminal be played simultaneously according to synchronizing information play to sharing video frequency.
Optionally, the acquisition conversation, comprising:
It obtains and shares the communication group to sharing video frequency with needs to the video identifier of sharing video frequency;
Conversation is obtained, the conversation includes the video identifier to sharing video frequency and the communication group In some or all of the corresponding terminal of member terminal iidentification.
Optionally, the acquisition conversation, comprising:
The session solicitation message that first terminal is sent is received, the session solicitation message carries the terminal iidentification of first terminal With the video identifier to sharing video frequency;
Conversation is distributed, the meeting is added in the terminal iidentification of the video identifier to sharing video frequency and first terminal Words grouping;
Conversational response message is sent to the first terminal, the conversational response message carries the session of the conversation Mark;
Receive the addition request message that second terminal is sent, the terminal that request message is added and carries the second terminal Mark and the session identification, the session identification is that the first terminal is sent to the second terminal;
According to the session identification, the terminal iidentification of the second terminal is added to the conversation.
Optionally, corresponding to the video identifier of sharing video frequency described in each terminal broadcast into the conversation Video data and information is played simultaneously, comprising:
The first play command that the terminal in the conversation is sent is received, first play command carries first and broadcasts Put position;
According to the terminal iidentification of each terminal in the conversation, regarded to described in each terminal broadcast wait share The corresponding video data of the video identifier of frequency and first play position, make each terminal from first play position Start to play the video data.
Further, before the first play command that the terminal received in the conversation is sent, further includes:
The ready signal that terminal in the conversation is sent is received, when receiving each end in the conversation When holding the ready signal sent, the ready completion message of each terminal broadcast in Xiang Suoshu conversation, so that the session point The first play command that terminal in group is sent.
Further, described to be played to described in each terminal broadcast to the video data of sharing video frequency and described first After position, further includes:
The currently playing progress that each terminal in the conversation is sent is received, according to the current of each terminal Progress is played simultaneously in playback progress determination, and progress is played simultaneously to described in each terminal transmission, makes each terminal root The playback progress to sharing video frequency is played according to the progress adjustment that is played simultaneously.
In embodiments of the present invention, create a conversation, include in the conversation institute it is in need and meanwhile play to The corresponding terminal of the user of sharing video frequency, then each terminal broadcast into the conversation waits for the video data of sharing video frequency With information is played simultaneously, make each terminal in conversation that information be played simultaneously according to this, be played simultaneously to sharing video frequency Video data meets multiple users while watching the demand of video.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (16)

1. a kind of method of sharing video frequency, which is characterized in that the described method includes:
Conversation is obtained, includes the video identifier to sharing video frequency in the conversation and needs to play and described regarded wait share The terminal iidentification of each terminal of frequency;
To the corresponding video data of video identifier of sharing video frequency and together described in each terminal broadcast into the conversation Broadcast information is walked, synchronizing information broadcasting is played simultaneously according to sharing video frequency to control each terminal;
The currently playing progress that each terminal is sent is received, the terminal parameter of each terminal, the terminal ginseng are obtained Number includes at least one of network connection speed, hardware configuration and the degree of being buffered into of terminal, according to the end of each terminal End parameter calculates the corresponding weight of each terminal, according to the weight of each terminal and currently playing progress, calculates same Playback progress is walked, progress is played simultaneously to described in each terminal broadcast, each terminal is played simultaneously according to Progress adjustment plays the playback progress to sharing video frequency.
2. the method as described in claim 1, which is characterized in that the acquisition conversation, comprising:
It obtains and shares the communication group to sharing video frequency with needs to the video identifier of sharing video frequency;
Conversation is obtained, the conversation includes described to the portion in the video identifier and the communication group of sharing video frequency Point or the corresponding terminal of whole member terminal iidentification.
3. the method as described in claim 1, which is characterized in that the acquisition conversation, comprising:
Receive the session solicitation message that first terminal is sent, the session solicitation message carry first terminal terminal iidentification and to The video identifier of sharing video frequency;
Conversation is distributed, the session point is added in the terminal iidentification of the video identifier to sharing video frequency and first terminal Group;
Conversational response message is sent to the first terminal, the conversational response message carries the session mark of the conversation Know;
Receive the addition request message that second terminal is sent, the terminal iidentification that request message is added and carries the second terminal With the session identification, the session identification is that the first terminal is sent to the second terminal;
According to the session identification, the terminal iidentification of the second terminal is added to the conversation.
4. the method as described in claim 1, which is characterized in that described in each terminal broadcast into the conversation The corresponding video data of video identifier to sharing video frequency and information is played simultaneously, comprising:
The first play command that the terminal in the conversation is sent is received, first play command carries first and plays position It sets;
According to the terminal iidentification of each terminal in the conversation, to described in each terminal broadcast to sharing video frequency The corresponding video data of video identifier and first play position, make each terminal since first play position Play the video data.
5. method as claimed in claim 4, which is characterized in that the terminal that receives in the conversation send the Before one play command, further includes:
The ready signal that the terminal in the conversation is sent is received, is sent out when receiving each terminal in the conversation When the ready signal sent, the ready completion message of each terminal broadcast in Xiang Suoshu conversation, so that in the conversation Terminal send the first play command.
6. a kind of method of sharing video frequency, which is characterized in that the described method includes:
It triggers synchronizer and obtains conversation, the conversation includes the video identifier to sharing video frequency and needs to play institute State the terminal iidentification of each terminal to sharing video frequency;
Receive the synchronizer according to the conversation broadcast described in sharing video frequency video data and be played simultaneously Information;
The video data to sharing video frequency is played according to the information that is played simultaneously;
Currently playing progress is sent to the synchronizer, the synchronizer is made to obtain the terminal parameter of each terminal, The terminal parameter includes at least one of network connection speed, hardware configuration and degree of being buffered into of terminal, according to described every The terminal parameter of a terminal calculates the corresponding weight of each terminal, according to the weight of each terminal and it is currently playing into Degree, calculates the progress of being played simultaneously;
The playback progress to sharing video frequency is played according to the progress adjustment that is played simultaneously.
7. method as claimed in claim 6, which is characterized in that the triggering synchronizer obtains conversation, comprising:
The video identifier to sharing video frequency is sent to synchronizer, the synchronizer is obtained and needs sharing described wait share view The communication group of frequency;
The synchronizer is received according to the invitation request message of member's broadcast in the communication group, the invitation request disappears It ceases for inviting the member in the communication group that conversation is added;
The conversation is added.
8. method as claimed in claim 6, which is characterized in that the triggering synchronizer obtains conversation, comprising:
Session solicitation message is sent to synchronizer, the session solicitation message is carried to sharing video frequency video identifier and first eventually The terminal iidentification at end makes the synchronizer creation conversation, and the conversation includes the terminal mark of the first terminal Know and to sharing video frequency video identifier;
The conversational response message that the synchronizer is sent is received, the conversational response message carries the session of the conversation Mark;
It is sent to second terminal and invites request message, the invitation request message carries the session identification, makes second end The conversation is added according to the session identification in end.
9. a kind of device of sharing video frequency, which is characterized in that described device includes:
Module is obtained, includes broadcasting to the video identifier and needs of sharing video frequency for obtaining conversation, in the conversation Put the terminal iidentification of each terminal to sharing video frequency;
First broadcast module, for the video identifier pair described in each terminal broadcast into the conversation to sharing video frequency The video data answered and information is played simultaneously, synchronizing information is played simultaneously according to control each terminal plays wait divide Enjoy video;
Described device is also used to receive the currently playing progress that each terminal is sent, obtains the terminal of each terminal Parameter, the terminal parameter includes at least one of network connection speed, hardware configuration and degree of being buffered into of terminal, according to institute The terminal parameter for stating each terminal calculates the corresponding weight of each terminal, according to the weight of each terminal and currently playing Progress calculates the progress of being played simultaneously, and progress is played simultaneously to described in each terminal broadcast, make each terminal according to The progress adjustment that is played simultaneously plays the playback progress to sharing video frequency.
10. device as claimed in claim 9, which is characterized in that the acquisition module includes:
First acquisition unit, the communication group for obtaining the video identifier to sharing video frequency with needing described in share to sharing video frequency Group;
Second acquisition unit, for obtaining conversation, the conversation include the video identifier to sharing video frequency and The terminal iidentification of the corresponding terminal of member some or all of in the communication group.
11. device as claimed in claim 9, which is characterized in that the acquisition module includes:
First receiving unit, for receiving the session solicitation message of first terminal transmission, the session solicitation message carries first The terminal iidentification of terminal and video identifier to sharing video frequency;
Allocation unit, for distributing conversation, by the terminal iidentification of the video identifier to sharing video frequency and first terminal The conversation is added;
First transmission unit, described in first terminal transmission conversational response message, the conversational response message is carried The session identification of conversation;
Second receiving unit, for receiving the addition request message of second terminal transmission, described in additions request message carrying The terminal iidentification of second terminal and the session identification, the session identification are that the first terminal is sent to the second terminal 's;
Adding unit, for according to the session identification, the terminal iidentification of the second terminal to be added to the conversation.
12. device as claimed in claim 9, which is characterized in that first broadcast module includes:
Third receiving unit, for receiving the first play command of the transmission of the terminal in the conversation, described first is played Order carries the first play position;
Radio unit, for the terminal iidentification according to each terminal in the conversation, to each terminal broadcast institute The corresponding video data of video identifier to sharing video frequency and first play position are stated, makes each terminal from described One play position starts to play the video data.
13. device as claimed in claim 12, which is characterized in that described device further include:
Second broadcast module, for receiving the ready signal of the transmission of the terminal in the conversation, when receiving the session When the ready signal that each terminal in grouping is sent, the ready completion message of each terminal broadcast in Xiang Suoshu conversation, So that the first play command that the terminal in the conversation is sent.
14. a kind of device of sharing video frequency, which is characterized in that described device includes:
Trigger module obtains conversation for triggering synchronizer, and the conversation includes the video mark to sharing video frequency Know and need to play the terminal iidentification of each terminal to sharing video frequency;
Receiving module, for receiving video counts of the synchronizer according to conversation broadcast to sharing video frequency According to information is played simultaneously;
Playing module plays the video data to sharing video frequency for information to be played simultaneously according to;
Described device is also used to send currently playing progress to the synchronizer, obtains the synchronizer described each The terminal parameter of terminal, the terminal parameter include in network connection speed, hardware configuration and the degree of being buffered into of terminal at least One, the corresponding weight of each terminal is calculated according to the terminal parameter of each terminal, according to the power of each terminal Weight and currently playing progress, calculate the progress of being played simultaneously;It is played simultaneously described in progress adjustment broadcasting according to described wait share view The playback progress of frequency.
15. device as claimed in claim 14, which is characterized in that the trigger module includes:
First transmission unit, for sending the video identifier to sharing video frequency to synchronizer, obtaining the synchronizer is needed Share the communication group to sharing video frequency;
First receiving unit disappears for receiving the synchronizer according to the invitation request of member's broadcast in the communication group Breath, it is described that request message is invited to be used to invite the member in the communication group that conversation is added;
Adding unit, for the conversation to be added.
16. device as claimed in claim 14, which is characterized in that the trigger module includes:
Second transmission unit, for sending session solicitation message to synchronizer, the session solicitation message is carried wait share view The terminal iidentification of frequency video identifier and first terminal makes the synchronizer creation conversation, and the conversation includes institute State the terminal iidentification of first terminal and the video identifier to sharing video frequency;
Second receiving unit, the conversational response message sent for receiving the synchronizer, the conversational response message carry The session identification of the conversation;
Third transmission unit is also used to send to second terminal and invites request message, and the invitation request message carries the meeting Words mark, makes the second terminal that the conversation be added according to the session identification.
CN201510126418.1A 2015-03-23 2015-03-23 A kind of method and device of sharing video frequency Active CN106162236B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510126418.1A CN106162236B (en) 2015-03-23 2015-03-23 A kind of method and device of sharing video frequency

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510126418.1A CN106162236B (en) 2015-03-23 2015-03-23 A kind of method and device of sharing video frequency

Publications (2)

Publication Number Publication Date
CN106162236A CN106162236A (en) 2016-11-23
CN106162236B true CN106162236B (en) 2019-07-19

Family

ID=58063735

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510126418.1A Active CN106162236B (en) 2015-03-23 2015-03-23 A kind of method and device of sharing video frequency

Country Status (1)

Country Link
CN (1) CN106162236B (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106231372A (en) * 2016-08-30 2016-12-14 北京奇艺世纪科技有限公司 The synchronous broadcast method of a kind of Online Video and device
US20180241580A1 (en) * 2017-02-18 2018-08-23 Seng-Feng Chen Method and apparatus for spontaneously initiating real-time interactive groups on network
CN107529075B (en) * 2017-07-25 2020-04-14 触信(厦门)智能科技有限公司 Cross-screen continuous playing method, system, server, equipment and cross-screen continuous playing equipment
CN110300319A (en) * 2019-07-08 2019-10-01 深圳创维-Rgb电子有限公司 Audio video synchronization playback method, system and storage medium
CN110677723B (en) * 2019-10-08 2020-10-13 腾讯科技(深圳)有限公司 Information processing method, device and system
CN110719516A (en) * 2019-10-21 2020-01-21 北京字节跳动网络技术有限公司 Video synchronization method and device, terminal and storage medium
CN110830823B (en) * 2019-11-27 2022-02-08 北京奇艺世纪科技有限公司 Play progress correction method and device, electronic equipment and readable storage medium
CN111277884B (en) * 2020-02-24 2022-10-18 聚好看科技股份有限公司 Video playing method and device
CN112015506B (en) * 2020-08-19 2023-08-22 北京字节跳动网络技术有限公司 Content display method and device
CN114244955B (en) * 2020-09-08 2022-12-30 华为技术有限公司 Service sharing method and system, electronic device and computer readable storage medium
CN112218145A (en) * 2020-10-15 2021-01-12 聚好看科技股份有限公司 Smart television, VR display device and related methods
CN112528052A (en) * 2020-12-22 2021-03-19 北京百度网讯科技有限公司 Multimedia content output method, device, electronic equipment and storage medium
CN115134640A (en) * 2021-03-25 2022-09-30 华为技术有限公司 Synchronous playing method and device
CN114143584B (en) * 2021-09-29 2024-03-26 杭州当虹科技股份有限公司 Broadcasting system and method for realizing synchronous broadcasting among multiple terminals
CN114125525A (en) * 2021-11-17 2022-03-01 维沃移动通信有限公司 Video playing control method and device
CN114339328B (en) * 2021-12-31 2023-09-01 杭州当虹科技股份有限公司 Method and system for realizing time stamp synchronous service
CN114727141A (en) * 2022-03-21 2022-07-08 康键信息技术(深圳)有限公司 Video synchronous playing method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103517095A (en) * 2012-06-18 2014-01-15 鸿富锦精密工业(深圳)有限公司 A set top box which enables video synchronization sharing to be carried out and a video signal synchronization sharing method
CN103533388A (en) * 2013-10-25 2014-01-22 潘伟洲 Method and system for synchronously playing multimedia files
CN104125476A (en) * 2013-04-28 2014-10-29 腾讯科技(深圳)有限公司 Video playing method and device
CN104168503A (en) * 2014-07-24 2014-11-26 小米科技有限责任公司 Video information sharing method and device
EP2603986A4 (en) * 2010-08-13 2015-11-18 Netflix Inc A system and method for synchronized playback of streaming digital content

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2603986A4 (en) * 2010-08-13 2015-11-18 Netflix Inc A system and method for synchronized playback of streaming digital content
CN103517095A (en) * 2012-06-18 2014-01-15 鸿富锦精密工业(深圳)有限公司 A set top box which enables video synchronization sharing to be carried out and a video signal synchronization sharing method
CN104125476A (en) * 2013-04-28 2014-10-29 腾讯科技(深圳)有限公司 Video playing method and device
CN103533388A (en) * 2013-10-25 2014-01-22 潘伟洲 Method and system for synchronously playing multimedia files
CN104168503A (en) * 2014-07-24 2014-11-26 小米科技有限责任公司 Video information sharing method and device

Also Published As

Publication number Publication date
CN106162236A (en) 2016-11-23

Similar Documents

Publication Publication Date Title
CN106162236B (en) A kind of method and device of sharing video frequency
CN106060597B (en) A kind of method and system carrying out main broadcaster's contest
US10636221B2 (en) Interaction method between user terminals, terminal, server, system, and storage medium
CN106101736B (en) A kind of methods of exhibiting and system of virtual present
CN105430424B (en) A kind of methods, devices and systems of net cast
CN106686396B (en) Method and system for switching live broadcast room
CN106454404B (en) A kind of methods, devices and systems playing live video
WO2016169465A1 (en) Method, apparatus and system for displaying screen information
CN104883358B (en) Interactive approach based on recommendation and device
CN108307140B (en) Network call method, device and computer readable storage medium
WO2017133547A1 (en) Information processing method and device
US10805248B2 (en) Instant messaging method and apparatus for selecting motion for a target virtual role
CN106331826B (en) A kind of methods, devices and systems of setting live streaming template and video mode
CN109542378A (en) Screen sharing method, device, electronic equipment and readable storage medium storing program for executing
WO2015124033A1 (en) Video interaction method, terminal, server and system
CN105025043B (en) Information sharing method, apparatus and system
WO2016150270A1 (en) Method and apparatus for processing group session message
CN105208458B (en) Virtual screen methods of exhibiting and device
CN106791955B (en) A kind of method and system of determining live streaming duration
US10854009B2 (en) Method, apparatus, and system for obtaining virtual object, and storage medium
CN104159140B (en) A kind of methods, devices and systems of Video processing
WO2022183707A1 (en) Interaction method and apparatus thereof
CN106330917B (en) Method for exhibiting data and device
CN108900407B (en) Method and device for managing session record and storage medium
CN106303605B (en) A kind of methods, devices and systems to send a notification message

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant