Summary of the invention
The invention provides a kind of method and system based on the instant messaging watching synchronous TV programs, the user can not see TV synchronously by instant communication software in the prior art in order to solve; Further solving the user changes program channel and causes seeing synchronously the problem that the customer group of TV is lost.
The invention provides following technical scheme:
A kind of method based on the instant messaging watching synchronous TV programs comprises step:
First instant communication client of playing TV programme sends the synchronization request message that comprises the TV programme relevant information to second instant communication client, comprises the programme channel sign in this TV programme relevant information;
Second instant communication client that receives described request message receives and plays the TV programme of corresponding programme channel according to described programme channel sign.
Described TV programme relevant information also comprises television programme title.
Send the instant communication client protocol encapsulation protocol message by appointment of message, and indicate the type of this protocol message; Receive instant communication client this message of agreement decapsulation by appointment of described protocol message, and carry out respective handling according to type of message.
When described first instant communication client or second instant communication client are changed programme channel, the replacing programme channel message that will comprise the programme channel sign of replacing sends to another instant communication client, and this another instant communication client switches to corresponding programme channel and plays corresponding TV programme according to the programme channel sign of described replacing.
Described first instant communication client and second instant communication client identify the synchronous situation that writes down local terminal and opposite end TV reception by synchronous regime is set in this locality.
When described first instant communication client sends synchronization request message to second instant communication client, the synchronous regime identification record is the wait synchronous regime, receiving after second instant communication client accepts synchronous message, with the synchronous regime identification record for just in synchronous regime.
The instant communication client that receives replacing programme channel message automatically switches to corresponding programme channel when synchronous regime is designated just in synchronous regime; Otherwise, abandon this request.
When described first the or second instant communication client user withdrawed from watching synchronous TV programs, first and second instant communication clients were respectively asynchronous state with the synchronous regime identification record and write down the current television program channel identication respectively.
A kind of system based on the instant messaging watching synchronous TV programs comprises the TV services device, and first instant communication client and second instant communication client that are connected with described television server by network;
Described TV services device is used to instant communication client that TV programme is provided;
The instant message that described first instant communication client will comprise the TV programme relevant information sends to second instant communication client, and this relevant information comprises the programme channel sign at least; Second instant communication client receives and plays the TV programme identical with first instant communication client according to described programme channel sign from described TV services device or from other instant communication clients.
When described first instant communication client or second instant communication client are changed programme channel, the programme channel sign of correspondence is sent to another instant communication client, and this another instant communication client switches to corresponding programme channel and plays corresponding TV programme according to the programme channel sign of changing.
Send the instant communication client protocol encapsulation protocol message by appointment of message, and indicate the type of this protocol message; Receive instant communication client this message of agreement decapsulation by appointment of described protocol message, and carry out respective handling according to type of message.
Described first instant communication client and second instant communication client identify the synchronous situation that writes down local terminal and opposite end TV reception by synchronous regime is set in this locality.
Beneficial effect of the present invention is as follows:
1, the present invention is transplanted to the live telecast control on the chat window of instant communication software, user and good friend can pass through the chat window TV reception, increase the viscosity of user on instant communication software, satisfied the online demand of seeing TV of user to a great extent;
2, the present invention does not need to set up and program channel corresponding virtual room, because changing channel functions is provided by live telecast software, and instant communication software has the function of preserving the contact person, therefore can not occur seeing synchronously the situation that the customer group of TV is lost when the user changes channel;
3, the present invention adopts the synchronous function of programme channel, make the user can know the programme channel that the other user watches, and meeting synchronously switches to the programme channel of this locality on the programme channel identical with the other side automatically, has realized the tight interaction between the user;
4, the present invention can satisfy user and good friend chat on one side on instant communication software, on one side the demand of TV reception, user both sides share identical TV program information, have promoted the interchange between the good friend, have also improved entertainment effect.
Embodiment
The user can not see TV synchronously by instant communication software in the prior art in order to solve, and when televiewing by the live software synchronization of associated television because the user changes the problem that customer group that program channel causes seeing synchronously TV is lost, the present invention is transplanted to the live telecast control on the chat window of instant communication software, first instant communication client sends the instant message of seeing TV synchronously that comprises the program channel sign by chat window to second instant communication client, and second instant communication client receives and play corresponding TV programme according to described program channel sign; Further, when side's instant communication client is changed programme channel the program channel sign of changing is sent to another instant communication client, this another instant communication client identifies the automatic switchover programme channel and plays corresponding TV programme according to the program channel of described replacing.
The system configuration schematic diagram that the instant communication client user sees TV synchronously in the embodiment of the invention as shown in Figure 1, this system comprises instant communication server 10, TV services device 11 and the instant communication client 12 by the network interconnection, and described TV services device 11 provides the TV programme download service to instant communication client 12; Described instant communication client 12 carries out instant messaging by described instant communication server 10 transfer instant messages, perhaps carry out the instant messaging of point-to-point with other instant communication clients, and receive and play TV programme from described TV services device 11 according to programme channel sign, perhaps, receive and play TV programme from this instant communication client by behind the instant communication client of described TV services device 11 for the TV programme of its this programme channel of distribution broadcast; And the programme channel sign of changing sent to another instant communication client, make another instant communication client according to the programme channel sign automatic switchover programme channel that upgrades and play corresponding TV programme.
Present embodiment is example with instant communication client from the direct received television program of TV services device, and the implementation procedure of the inventive method is elaborated.
As shown in Figure 2, the instant communication client user sees that the implementation procedure of TV is as follows:
Step 200, instant communication client user start the live telecast control.
Step 201, TV services device provide the program channel tabulation for the user.
Step 202, instant communication client user select program channel in the live telecast control, obtain relevant programme information; Comprise information such as programme channel sign, television programme title and TV program time in the described programme information.
Step 203, instant communication client receive and play corresponding TV programme according to described programme channel sign from the TV services device.
When the instant communication client user sees TV by instant communication software, can carry out instant messaging with good friend user, but also can see TV synchronously with good friend user, protocol message between the inner pre-defined instant communication client of instantaneous communication system in embodiments of the present invention: send the instant communication client protocol encapsulation protocol message by appointment of message, and indicate the type of this protocol message; This protocol message type comprises:
Protocol number 1 message is defined as synchronization request message;
Protocol number 2 message are defined as and accept synchronization message;
Protocol number 3 message are defined as the refusal synchronization message;
Protocol number 4 message are defined as and change the programme channel request message;
Protocol number 5 message are defined as to withdraw from and see TV or instantaneous communication system message.
Receive instant communication client this message of agreement decapsulation by appointment of above-mentioned protocol message, and carry out respective handling according to type of message; When if the message that receives is protocol number 1 message or protocol number 4 message, obtain corresponding programme channel sign and other TV programme relevant informations (as television programme title etc.) behind the instant communication client decapsulation protocol message; If it is not above-mentioned protocol message that the message that receives is judged, then handle as the instant message of other types.
The instant communication client user sees in the process of TV synchronously, instant communication client can be preserved instant communication client user corresponding synchronous status indicator in this locality, described synchronous regime sign is used to write down the synchronous situation of local terminal instant communication users and opposite end instant communication users TV reception, can be divided into asynchronous state, wait for synchronous regime and just in synchronous regime; When the instant communication client user withdrawed from instantaneous communication system, its corresponding synchronous status indicator was removed by instant communication client, once more record again during login system.
At the recording process of following process in conjunction with explanation instant communication client user's synchronous regime sign, as shown in Figure 3, the instant communication client user sees that synchronously the implementation procedure of TV is as follows below:
Step 300, instant communication client party A-subscriber start the live telecast control, select the programme channel of watching.
Step 301, instant communication client A receive and play corresponding TV programme from the TV services device; At this moment, instant communication client party A-subscriber and instant communication client party B-subscriber's synchronous regime identification record is asynchronous state.
Step 302, instant communication client A are encapsulated as protocol number 1 information and sending to instant communication client B with instant communication client party A-subscriber's the request message of seeing TV synchronously, comprise programme channel sign and other TV programme relevant informations of encryption in this request message; At this moment, instant communication client party A-subscriber's synchronous regime identification renewal is for waiting for synchronous regime.
Step 303, instant communication client B judge the message that receives, if protocol number 1 message then decrypts corresponding programme channel sign, continue step 304; Otherwise, handle as the instant message of other types.
Step 304, instant communication client party B-subscriber accept synchronization request, and instant communication client B receives and play corresponding TV programme according to the sign of the programme channel after the deciphering from the TV services device after the instant communication client party B-subscriber starts the live telecast control.
Step 305, instant communication client B will accept synchronization request message and be encapsulated as protocol number 2 message and send to instant communication client A, and at this moment, instant communication client party B-subscriber's synchronous regime identification record is for just in synchronous regime;
If the instant communication client party B-subscriber refuses synchronization request, then instant communication client B will refuse synchronization request message and be encapsulated as protocol number 3 message and send to instant communication client A, and instant communication client party B-subscriber's synchronous regime identification record is asynchronous state.
Step 306, instant communication client A judge the message that instant communication client B sends, if judge it is protocol number 2 message, then instant communication client A record instant communication client party A-subscriber's synchronous regime is designated just in synchronous regime; If judge it is protocol number 3 message, then cancel synchronization request to the instant communication client party B-subscriber, carry out the processing of the instant message of other types, at this moment, instant communication client party A-subscriber's synchronous regime identification record is asynchronous state.
Entering the instant communication client user who sees tv state synchronously can be while watching TV programme to transfer immediate news, when side's instant communication client user changes programme channel, can automatically programme channel be switched to the programme channel identical with the other user with its instant communication client user who watches same television program synchronously.
Step 307, instant communication client party A-subscriber change programme channel.
Step 308, instant communication client A are encapsulated as protocol number 4 information and sending to customer end B with user's replacing program channel request message, comprise the new TV programme relevant informations such as program channel sign of encryption in this message.
Step 309, instant communication client B judge the message that receives, if protocol number 4 message according to the corresponding programme channel sign of protocol number 4 decrypt messages, continue step 310; Otherwise, handle as the instant message of other types.
Step 310, instant communication client B are checked the synchronous regime sign, if record is just in synchronous regime, then continue step 311; Otherwise, handle as the instant message of other types.
Step 311, instant communication client B send to the TV services device and change the programme channel request message.
Step 312, TV services device switch to new programme channel with the programme channel that instant communication client B receives.
Instant communication client is when the transmission of TV services device is watched the TV programme request or changed the programme channel request in the said process, also can distribute the instant communication client of the TV programme of playing this programme channel for it by the TV services device, receive and play corresponding TV programme from this instant communication client then, the specific implementation process is not given unnecessary details.
Because instant communication software has the function of preserving the contact person, and replacing programme channel function is provided by the TV services device, therefore can not occur seeing synchronously the situation that the customer group of TV is lost when instant communication users is changed programme channel, the user still can carry out instant messaging with its contact person.
Withdraw from when seeing TV or withdrawing from instant communication software as the instant communication client user either party who sees TV synchronously in the present embodiment, as shown in Figure 4, the processing procedure of instant communication client is as follows:
Step 400, instant communication client party A-subscriber withdraw from and see TV or withdraw from instant communication software.
Step 401, instant communication client A are asynchronous state with local synchronous regime identification record, preserve current programme channel sign simultaneously.
Step 402, instant communication client A send protocol number 5 message to instant communication client B.
Step 403, instant communication client B receive protocol message, and are asynchronous state with local synchronous regime identification record, preserve current programme channel sign simultaneously.
Restart live telecast control or access of instant communicating system and start the live telecast control the instant communication client party A-subscriber, instant communication client A and instant communication client B switch to programme channel the local programme channel of preserving automatically and play corresponding TV programme.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.