Summary of the invention
Embodiment of the invention technical problem to be solved is, a kind of implementation method, terminal, server end and IPTV system of the Kara OK service based on the IPTV system are provided, can long-range invitation good friend participate in Karaoke, solve the space problem of the Kara OK service of existing IPTV system, promote user's experience, improve service competitiveness.
In order to solve the problems of the technologies described above, the embodiment of the invention provides a kind of implementation method of the Kara OK service based on the IPTV system, and described IPTV system comprises: server end and at least two terminals comprise:
When sending Karaoke to second terminal, first terminal invites, and set up after Karaoke is connected with described second terminal, described server end is created playlist according to the song of described first terminal and/or the selection of described second terminal, and issues described playlist to described first terminal and described second terminal;
When described first terminal and/or the described playlist of described second starting terminal, described server end sends the Media Stream of the song in the described playlist to described first terminal and described second terminal synchronizes;
Described second terminal is gathered the audio stream that this end subscriber is sung in real time, and the Media Stream that described audio stream and described server end issue is carried out the audio mixing broadcast;
Described second terminal is sent to described first terminal with the audio stream of described real-time collection, and the Media Stream that described first terminal is issued described audio stream and described server end carries out audio mixing and plays.
Wherein, described first terminal sends Karaoke to second terminal and invites, and is connected with described second terminal foundation Karaoke, comprising:
First terminal is logined described server end, by described server end second terminal is added to the good friend, and described server end is that described first terminal and described second terminal are provided with good friend's sign;
Described first terminal sends the Karaoke invitation message to described server end, carries described good friend's sign in the described Karaoke invitation message;
Described server end identifies according to the good friend in the described Karaoke invitation message, whether detect described second terminal online, if testing result is for being, then described Karaoke invitation message is forwarded to described second terminal, when receiving the affirmation invitation message that described second terminal returns in the given time, described server end returns the invitation successful information to described first terminal, and described first terminal and described second terminal foundation Karaoke are connected; When receiving the refusal invitation message that described second terminal returns in the given time, when perhaps not receiving affirmation invitation message that described second terminal returns or refusal invitation message in the given time, described server end returns the invitation failure information to described first terminal;
If testing result is that described server end does not return the invitation failure information to described first terminal.
Wherein, described after receiving the affirmation invitation message that described second terminal returns in the given time, described server end to described first terminal return invite successful information before, also comprise:
Described server end authenticates the service authority of described first terminal and described second terminal, if authentication success then returns the invitation successful information to described first terminal; If authentification failure then returns the invitation failure information to described first terminal.
Wherein, described server end is created playlist according to the song of described first terminal and/or the selection of described second terminal, and issues described playlist to described first terminal and described second terminal, comprising:
Described server end provides alternative list of songs for described first terminal and described second terminal, and receives the selection to the song in the described list of songs of described first terminal and/or described second terminal;
Described server end is created playlist according to the song of described first terminal and/or the selection of described second terminal;
Described server end issues described playlist to described first terminal and described second terminal, comprises the broadcast link of each first song in the described playlist.
Wherein, described when described first terminal and/or the described playlist of described second starting terminal, described server end sends the Media Stream of the song in the described playlist to described first terminal and described second terminal synchronizes, comprising:
The link that described first terminal and/or described second terminal are obtained each first song in the described playlist successively, and to described server end transmission linking request, to start described playlist;
Described server end responds the linking request of described first terminal and/or described second terminal, sends the Media Stream of the song of being asked to described first terminal and described second terminal synchronizes.
Wherein, described second terminal is gathered the audio stream that this end subscriber is sung in real time, and the Media Stream that described audio stream and described server end issue is carried out the audio mixing broadcast, comprising:
Described second terminal is gathered the audio stream that this end subscriber is sung in real time;
Described second terminal is with the STC(System Time Clock of local terminal, the system sequence clock) with the PTS(Presentation Time Stamp of the Media Stream of the current song that issues of described server end, Presentation Time Stamp) calibrates, as the timestamp of described audio stream;
Described second terminal is according to described timestamp, the Media Stream of described audio stream and the current song that issues of described server end carried out audio mixing play.
Wherein, described second terminal is sent to described first terminal with the audio stream of described real-time collection, and the Media Stream that described first terminal is issued described audio stream and described server end carries out audio mixing to be play, and comprising:
Described second terminal is sent to described first terminal with the audio stream of described real-time collection;
Described first terminal is calibrated the PTS of the Media Stream of the STC of local terminal and the current song that issues of described server end, as the timestamp of described audio stream;
Described first terminal is according to described timestamp, the Media Stream of described audio stream and the current song that issues of described server end carried out audio mixing play.
Correspondingly, the embodiment of the invention also provides a kind of terminal, comprising:
The invitation link block, second terminal that is used for beyond local terminal sends Karaoke invitation, and is connected with described second terminal foundation Karaoke;
Interactive module is used for setting up after Karaoke connects in described invitation link block, receives the playlist that described server end issues, and the Media Stream that receives the song in the described playlist that described server end issues;
Processing module is used to receive the audio stream that second terminal use that described second terminal transmits sings, and the Media Stream that the described server end that described audio stream and described interactive module are received issues carries out the audio mixing broadcast.
Wherein, described processing module comprises:
Receiving element is used to receive the audio stream that second terminal use that described second terminal transmits sings;
Alignment unit, the PTS that is used for the Media Stream that STC and described server end with local terminal issue calibrates, the timestamp of the described audio stream that receives as described receiving element;
Processing unit is used for the timestamp that obtains according to described alignment unit, the Media Stream of described audio stream and the current song that issues of described server end is carried out audio mixing play.
Correspondingly, the embodiment of the invention also provides another kind of terminal, comprising:
Invite link block, be used to receive the Karaoke invitation that local terminal first terminal in addition sends, and be connected with described first terminal foundation Karaoke;
Interactive module is used for setting up after Karaoke connects in described invitation link block, receives the playlist that described server end issues, and the Media Stream that receives the song in the described playlist that described server end issues;
Processing module is used for gathering in real time the audio stream that this end subscriber is sung, and the Media Stream that the described server end that described audio stream and described interactive module are received issues carries out the audio mixing broadcast;
Sending module is used for the audio stream that this end subscriber that described processing module is collected in real time sings and is sent to described first terminal, and the Media Stream that described first terminal is issued described audio stream and described server end carries out the audio mixing broadcast.
Wherein, described processing module comprises:
Collecting unit is used for gathering in real time the audio stream that this end subscriber is sung;
Alignment unit, the PTS that is used for the Media Stream that STC and described server end with local terminal issue calibrates, the timestamp of the described audio stream that collects as described collecting unit;
Processing unit is used for the timestamp that obtains according to described alignment unit, the Media Stream of described audio stream and the current song that issues of described server end is carried out audio mixing play.
Correspondingly, the embodiment of the invention also provides a kind of server end, comprising:
Application server is used to manage the various application of described first terminal and described second terminal, and described application comprises that login, good friend are added and Karaoke any one or more in being connected;
EPG(Electronic Program Guide, TV Guide) server, be used for after described first terminal is connected by described application server and described second terminal foundation Karaoke, for described first terminal and described second terminal provide alternative list of songs, and receive the selection of described first terminal and/or described second terminal to the song in the described list of songs, song according to described first terminal and/or the selection of described second terminal is created playlist, and described playlist is issued to described first terminal and described second terminal;
Streaming media server is used for when playlist that described first terminal and/or the described EPG server of described second starting terminal issue, sends the Media Stream of the song in the described playlist to described first terminal and described second terminal synchronizes.
Wherein, described server end also comprises:
Certificate server is used for the service authority of described first terminal and described second terminal is authenticated, if authentication success then notifies described application server to return the invitation successful information to described first terminal; If authentification failure then notifies described application server to return the invitation failure information to described first terminal.
Correspondingly, the embodiment of the invention also provides a kind of IPTV system, comprises server end and at least two terminals,
Described server end, be used for inviting when first terminal sends Karaoke to second terminal, and set up after Karaoke is connected with described second terminal, song according to described first terminal and/or the selection of described second terminal is created playlist, and issues described playlist to described first terminal and described second terminal; When described first terminal and/or the described playlist of described second starting terminal, send the Media Stream of the song in the described playlist to described first terminal and described second terminal synchronizes;
Described second terminal is used for gathering in real time the audio stream that this end subscriber is sung, and the Media Stream that described audio stream and described server end are issued carries out the audio mixing broadcast, and described audio stream is sent to described first terminal;
Described first terminal is used for audio stream that described second terminal is sent and the Media Stream that described server end issues and carries out the audio mixing broadcast.
Implement the embodiment of the invention, have following beneficial effect:
First terminal of the embodiment of the invention and second terminal are set up after Karaoke is connected by server end, server end is determined playlist according to first terminal and/or second terminal to the selection of song, and issue the Media Stream of the song in the described playlist to first terminal and second terminal synchronizes, mutual by first terminal and second terminal, realized the Karaoke synchronous playing of first terminal and second terminal, first terminal use can hear the sound that good friend (second terminal use) sings synchronously, realized that the long-range invitation good friend of first terminal use (second terminal use) participates in Karaoke, solved the space problem of the Kara OK service of existing IPTV system, promote terminal use's experience, improved service competitiveness.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
See also Fig. 1, be the structural representation of the embodiment of IPTV of the present invention system; Described IPTV system comprises: server end 20 and at least two terminal 10(there is shown three, be not limited to three in the practical application), wherein, arbitrary terminal 10 that initiation Karaoke in the described IPTV system is invited is called first terminal, except that described first terminal, invited the arbitrary terminal 10 that participates in Karaoke to be called second terminal in the described IPTV system by described first terminal.
Described server end 20, be used for inviting when described first terminal sends Karaoke to described second terminal, and set up after Karaoke is connected with described second terminal, song according to described first terminal and/or the selection of described second terminal is created playlist, and issues described playlist to described first terminal and described second terminal; When described first terminal and/or the described playlist of described second starting terminal, send the Media Stream of the song in the described playlist to described first terminal and described second terminal synchronizes.
In the specific implementation, described server end 20 is the front-end service system of IPTV system, it is also bearing the basic service function of IPTV system, comprise that providing audio-visual content to terminal 10 is main video content services, as live, program request, wheel broadcast, service function such as time shift, this basic service function is same as the prior art, does not give unnecessary details at this.
Described second terminal is used for gathering in real time the audio stream that this end subscriber is sung, and the Media Stream that described audio stream and described server end 20 are issued carries out the audio mixing broadcast, and described audio stream is sent to described first terminal.
Described first terminal is used for audio stream that described second terminal is sent and the Media Stream that described server end 20 issues and carries out the audio mixing broadcast.
In the specific implementation, the terminal 10 in the described IPTV system can for set-top box (Set Top Box, STB), Web TV, Digital Video Broadcasting Handheld, digital TV integrated machine etc. have the terminal of receiving digital television function.Described first terminal is the arbitrary terminal 10 in the described IPTV system, and described second terminal is the arbitrary terminal 10 except that described first terminal in the described IPTV system.
The embodiment of the invention can long-range invitation good friend participate in Karaoke, has solved the space problem of the Kara OK service of existing IPTV system, has promoted user's experience, has improved service competitiveness.
In order to be illustrated more clearly in the present invention, will the terminal in the IPTV of the present invention system be described in detail below.
See also Fig. 2, be the structural representation of first embodiment of terminal of the present invention; The terminal of present embodiment is arbitrary terminal 10 that the initiation Karaoke in the described IPTV system is invited, and also is first terminal in embodiment illustrated in fig. 1.Described terminal 10 comprises:
Invitation link block 101, second terminal that is used for beyond local terminal sends Karaoke invitation, and is connected with described second terminal foundation Karaoke.
In the specific implementation, the login of first terminal is to described server end, on described server end, add the good friend after logining successfully, as: the ID(Identity that imports second terminal, identify label) number, described second terminal is added to the good friend, and described server end then is that described first terminal and described second terminal are provided with good friend's sign.Described invitation link block 101 can long-range invitation good friend (described second terminal) participate in Karaoke, described invitation link block 101 sends the Karaoke invitation message to described server end, carry described good friend's sign in the described Karaoke invitation message, when receiving the invitation successful information that described server end returns, described invitation link block 101 is set up Karaoke by described server end and described second terminal and is connected.
Interactive module 102 is used for setting up after Karaoke connects in described invitation link block 101, receives the playlist that described server end issues, and the Media Stream that receives the song in the described playlist that described server end issues.
In the specific implementation, described interactive module 102 has been born all information interactions between described first terminal and the described server end.Need to prove that described interactive module 102 can start described playlist after receiving the playlist that described server end issues voluntarily, triggers the Media Stream that described server end issues the song in the described playlist; Also can receive the Media Stream that described server end issues the song in the described playlist synchronously by the described playlist of second starting terminal.
Processing module 103 is used to receive the audio stream that second terminal use that described second terminal transmits sings, and the Media Stream that the described server end that described audio stream and described interactive module 102 are received issues carries out the audio mixing broadcast.
In the specific implementation,, be the structural representation of the embodiment of the processing module among Fig. 2 please in the lump referring to Fig. 3; Described processing module 103 comprises:
Receiving element 301 is used to receive the audio stream that second terminal use that described second terminal transmits sings.
Alignment unit 302, the PTS that is used for the Media Stream that STC and described server end with local terminal issue calibrates, the timestamp of the described audio stream that receives as described receiving element 301.
Processing unit 303 is used for the timestamp that obtains according to described alignment unit 302, the Media Stream of described audio stream and the current song that issues of described server end is carried out audio mixing play.
The embodiment of the invention can long-range invitation good friend participate in Karaoke, has solved the space problem of the Kara OK service of existing IPTV system, has promoted user's experience, has improved service competitiveness.
See also Fig. 4, be the structural representation of second embodiment of terminal of the present invention; The terminal of present embodiment is that being invited by first terminal in the described IPTV system participates in arbitrary terminal 10 Karaoke, except that first terminal, also is second terminal in embodiment illustrated in fig. 1.Described terminal 10 comprises:
Invite link block 111, be used to receive the Karaoke invitation that local terminal first terminal in addition sends, and be connected with described first terminal foundation Karaoke.
Interactive module 112 is used for setting up after Karaoke connects in described invitation link block 111, receives the playlist that described server end issues, and the Media Stream that receives the song in the described playlist that described server end issues.
Processing module 113 is used for gathering in real time the audio stream that this end subscriber is sung, and the Media Stream that the described server end that described audio stream and described interactive module 112 are received issues carries out the audio mixing broadcast.
In the specific implementation,, be the structural representation of the embodiment of the processing module among Fig. 4 please in the lump referring to Fig. 5; Described processing module 113 comprises:
Collecting unit 311 is used for gathering in real time the audio stream that this end subscriber is sung.
Alignment unit 312, the PTS that is used for the Media Stream that STC and described server end with local terminal issue calibrates, the timestamp of the described audio stream that collects as described collecting unit 311.
Processing unit 313 is used for the timestamp that obtains according to described alignment unit 312, the Media Stream of described audio stream and the current song that issues of described server end is carried out audio mixing play.
Sending module 114 is used for the audio stream that this end subscriber that described processing module 113 is collected in real time sings and is sent to described first terminal, and the Media Stream that described first terminal is issued described audio stream and described server end carries out the audio mixing broadcast.
The embodiment of the invention can long-range invitation good friend participate in Karaoke, has solved the space problem of the Kara OK service of existing IPTV system, has promoted user's experience, has improved service competitiveness.
Need to prove that Fig. 2 and terminal shown in Figure 4 can be merged into same terminal, when this terminal when inviting end, possess the functional structure in embodiment illustrated in fig. 2, when this terminal when being invited end, possess the functional structure in embodiment illustrated in fig. 4.In the foregoing description, the PTS of the Media Stream of the song that described first terminal and described second terminal all issue by server end calibrates, can make described first terminal and described second terminal synchronizes play the voice data that second terminal use sings, first terminal use can hear the sound that second terminal use sings synchronously, has realized that the long-range invitation good friend of first terminal use (second terminal use) participates in Karaoke.
In order to be illustrated more clearly in the present invention, will the server end in the IPTV of the present invention system be described in detail below.
See also Fig. 6, be the structural representation of first embodiment of server end of the present invention; Described server end comprises: application server 201, EPG server 202 and streaming media server 203.
Described application server 201 is used to manage the various application of described first terminal and described second terminal.
The application that described application server 201 is managed includes but not limited to: any one or more during login, good friend's interpolation and Karaoke are connected.In the specific implementation, described first terminal login is to described application server 201, and described application server 201 is connected to described first terminal in the IPTV system, finishes the management that login is used.Described first terminal after logining is successfully added the good friend on described application server 201, as: the id number of importing second terminal, described second terminal is added to the good friend, 201 of described application servers are that described first terminal and described second terminal are provided with good friend's sign, by said process, described application server 201 has been finished the management that the good friend adds application.With described second terminal add become the good friend after, described first terminal can long-range invitation good friend (described second terminal) participate in Karaoke, described first terminal sends the Karaoke invitation message to described application server 201, carry described good friend's sign in the described Karaoke invitation message, described application server 201 is according to the good friend's sign in the Karaoke invitation message of described first terminal transmission, whether whether described second terminal that detection possesses described good friend sign online (promptly detecting described second terminal successfully is connected in the IPTV system), if testing result is for being, then described Karaoke invitation message is forwarded to described second terminal, when receiving the affirmation invitation message that described second terminal returns in the given time, described application server 201 returns the invitation successful information to described first terminal, and make between described first terminal and described second terminal and to set up Karaoke and connect, by said process, described application server 201 has been finished Karaoke has been connected the management of using; When receiving the refusal invitation message that described second terminal returns in the given time, when perhaps not receiving affirmation invitation message that described second terminal returns or refusal invitation message in the given time, described application server 201 returns the invitation failure information to described first terminal; If testing result is for denying, described application server 201 returns the invitation failure information to described first terminal, herein, described application server 201 can comprise the information of failure cause in the invitation failure information that described first terminal is returned, return the information of " the second terminal off-line; invite failure ", perhaps " second terminal lack of competence is invited failure " or the like such as: described application server 201 to described first terminal.Be understandable that above-mentioned preset time can be set according to actual needs, this assignment procedure is same as the prior art, does not give unnecessary details at this.
Described EPG server 202, be used for after first terminal is connected by described application server 201 and second terminal foundation Karaoke, for described first terminal and described second terminal provide alternative list of songs, and receive the selection of described first terminal and/or described second terminal to the song in the described list of songs, song according to described first terminal and/or the selection of described second terminal is created playlist, and described playlist is issued to described first terminal and described second terminal.
Described EPG server 202 provides functions such as Kara OK service index and navigation for each terminal 10, in the specific implementation, described EPG server 202 provides various types of list of songs for each terminal 10, the terminal use can carry out song and search and the song selection operation in terminal 10, each terminal 10 is according to terminal use's operation, send corresponding song search request and song is selected request to described EPG server 202,202 of described EPG servers return the list of songs and the corresponding playlist of being asked to each terminal 10.In the present embodiment, after described first terminal is connected by described application server 201 and described second terminal foundation Karaoke, described EPG server 202 provides alternative list of songs for described first terminal and described second terminal, when first terminal use by described first terminal, and/or second after the terminal use selects song respectively by described second terminal, described first terminal and/or described second terminal send song to described EPG server 202 respectively and select request, described EPG server 202 receives the song of described first terminal and/or the transmission of described second terminal and selects request, song according to described first terminal and/or the selection of described second terminal is created playlist, and this playlist is issued to described first terminal and described second terminal, wherein, comprised the song title that first terminal use selects by first terminal in this playlist, play link, and second terminal use is by the song title of second terminal selection, play link.
Described streaming media server 203 is used for when playlist that described first terminal and/or the described EPG server 202 of described second starting terminal issue, sends the Media Stream of the song in the described playlist to described first terminal and described second terminal synchronizes.
In the specific implementation, when playlist that described first terminal and/or the described EPG server 202 of described second starting terminal issue, the linking request of described streaming media server 203 described first terminals of response and/or described second terminal, issue mode with the unicast stream medium, send the Media Stream of the song in the described playlist to described first terminal and described second terminal synchronizes.
The embodiment of the invention can long-range invitation good friend participate in Karaoke, has solved the space problem of the Kara OK service of existing IPTV system, has promoted user's experience, has improved service competitiveness.
See also Fig. 7, be the structural representation of second embodiment of server end of the present invention; Identical with a last embodiment, described server end comprises: application server 201, EPG server 202 and streaming media server 203.In the present embodiment, described server end also comprises: certificate server 204.
Described certificate server 204 is used for the service authority of described first terminal and described second terminal is authenticated, if authentication success then notifies described application server 201 to return the invitation successful information to described first terminal; If authentification failure then notifies described application server 201 to return the invitation failure information to described first terminal.
In the specific implementation, described certificate server 204 can be OSS(Operation Support System, OSS), be used for the service authority of described first terminal and described second terminal is authenticated, when first terminal and described second terminal have all been opened Kara OK service, then authentication success, the two can carry out the long-range invitation Kara OK service of present embodiment, otherwise, authentification failure, the two can not carry out the long-range invitation Kara OK service of present embodiment.
The embodiment of the invention can long-range invitation good friend participate in Karaoke, has solved the space problem of the Kara OK service of existing IPTV system, has promoted user's experience, has improved service competitiveness.
In order to be illustrated more clearly in the present invention, will the implementation method of the Kara OK service based on the IPTV system of the present invention be described in detail below.
See also Fig. 8, be the flow chart of first embodiment of the implementation method of the Kara OK service based on the IPTV system of the present invention; Described method comprises:
S101, first terminal sends Karaoke to second terminal and invites, and is connected with described second terminal foundation Karaoke.
In the specific implementation,, be the particular flow sheet of step S101 shown in Figure 8 please in the lump referring to Fig. 9; Described step S101 comprises:
S201, the first terminal logon server end is added to the good friend by described server end with second terminal, and described server end is that described first terminal and described second terminal are provided with good friend's sign;
S202, described first terminal sends the Karaoke invitation message to described server end, carries described good friend's sign in the described Karaoke invitation message;
S203, described server end is according to the good friend in described Karaoke invitation message sign, and whether online, if testing result is for being then to change S204 over to if detecting described second terminal; Otherwise, change S206 over to;
Whether in the specific implementation, described S203 detects described second terminal, and whether online detailed process is: detect described second terminal and successfully login to application server, if testing result judges then that for being described second terminal is online, change execution in step S204 over to; Otherwise, judge the described second terminal off-line, change execution in step S206 over to;
S204, described server end is forwarded to described second terminal with described Karaoke invitation message;
S205, described server end judge whether receive the affirmation invitation message that described second terminal is returned in the scheduled time, if judged result then changes S206 over to for not; If judged result is for being to change S207 over to;
In the specific implementation, among the described S205, when in described server end is judged the scheduled time, receiving the affirmation invitation message that described second terminal returns, then change over to and carry out S207; When in described server end is judged the scheduled time, receiving the refusal invitation message that described second terminal returns, when perhaps described server end does not receive affirmation invitation message that described second terminal returns or refusal invitation message in the given time, change over to and carry out S206;
S206, described server end returns the invitation failure information to described first terminal, afterwards, finishes;
S207, described server end authenticates the service authority of described first terminal and described second terminal;
S208, whether the service authority of judging described first terminal and described second terminal authentication success, if judged result is for being then to change S209 over to; Otherwise, change S206 over to;
S209, described server end returns the invitation successful information to described first terminal;
S210, described server end make and set up the Karaoke connection between described first terminal and described second terminal, afterwards, finish;
The concrete refinement step of S101 that above-mentioned S201-S210 shown in Figure 9 is a present embodiment.
S102, server end is created playlist according to the song of described first terminal and/or the selection of described second terminal.
In the specific implementation,, be the particular flow sheet of step S102 shown in Figure 8 please in the lump referring to Figure 10; Described step S102 comprises:
S301, server end provides alternative list of songs for described first terminal and described second terminal, and receives the selection to the song in the described list of songs of described first terminal and/or described second terminal;
S302, described server end is created playlist according to the song of described first terminal and/or the selection of described second terminal;
S303, described server end issues described playlist to described first terminal and described second terminal, comprises the broadcast link of each first song in the described playlist;
The concrete refinement step of S102 that above-mentioned S301-S303 shown in Figure 10 is a present embodiment.
S103, described server end issues described playlist to described first terminal and described second terminal.
S104, when described first terminal and/or the described playlist of described second starting terminal, described server end sends the Media Stream of the song in the described playlist to described first terminal and described second terminal synchronizes.
In the specific implementation,, be the particular flow sheet of step S104 shown in Figure 8 please in the lump referring to Figure 11; Described step S104 comprises:
S401, the link that described first terminal and/or described second terminal are obtained each first song in the described playlist successively;
S402, described first terminal and/or described second terminal send linking request to described server end, to start described playlist;
S403, described server end respond the linking request of described first terminal and/or described second terminal, send the Media Stream of the song of being asked to described first terminal and described second terminal synchronizes;
The concrete refinement step of S104 that above-mentioned S401-S403 shown in Figure 11 is a present embodiment.
S105, described second terminal is gathered the audio stream that this end subscriber is sung in real time, and the Media Stream that described audio stream and described server end issue is carried out the audio mixing broadcast.
In the specific implementation,, be the particular flow sheet of step S105 shown in Figure 8 please in the lump referring to Figure 12; Described step S105 comprises:
S501, described second terminal is gathered the audio stream that this end subscriber is sung in real time; Particularly, described second terminal is gathered the audio stream that this end subscriber is sung in real time by devices such as microphones;
S502, described second terminal is calibrated the Presentation Time Stamp PTS of the Media Stream of the STC of local terminal and the current song that issues of described server end, as the timestamp of described audio stream;
S503, described second terminal is according to described timestamp, the Media Stream of described audio stream and the current song that issues of described server end carried out audio mixing play;
The concrete refinement step of S105 that above-mentioned S501-S503 shown in Figure 12 is a present embodiment.
S106, described second terminal is sent to described first terminal with the audio stream of described real-time collection, and the Media Stream that described first terminal is issued described audio stream and described server end carries out audio mixing and plays.
In the specific implementation,, be the particular flow sheet of step S106 shown in Figure 8 please in the lump referring to Figure 13; Described step S106 comprises:
S601, described second terminal is sent to described first terminal with the audio stream of described real-time collection;
S602, described first terminal is calibrated the PTS of the Media Stream of the STC of local terminal and the current song that issues of described server end, the timestamp of the audio stream that sends as described second terminal;
S603, described first terminal is according to described timestamp, the Media Stream of described audio stream and the current song that issues of described server end carried out audio mixing play;
Above-mentioned S601-S603 shown in Figure 13 is the concrete refinement step of the S106 of present embodiment.
In the present embodiment, the PTS of the Media Stream of the song that described first terminal and described second terminal all issue by server end calibrates, can make described first terminal and described second terminal synchronizes play the voice data that second terminal use sings, first terminal use can hear the sound that second terminal use sings synchronously, has realized that the long-range invitation good friend of first terminal use (second terminal use) participates in Karaoke.
The embodiment of the invention can long-range invitation good friend participate in Karaoke, has solved the space problem of the Kara OK service of existing IPTV system, has promoted user's experience, has improved service competitiveness.
See also Figure 14, be the flow chart of second embodiment of the implementation method of the Kara OK service based on the IPTV system of the present invention; Described method comprises:
First terminal is logined to application server, and described application server is connected to described first terminal in the IPTV system.After logining successfully, described first terminal is imported the id number of second terminal on described application server, described second terminal is added to the good friend, and described application server is that described first terminal and described second terminal are provided with good friend's sign.After having added the good friend, described first terminal can long-range invitation good friend participate in Karaoke, and described first terminal sends the Karaoke invitation message to described application server, carries described good friend's sign in the described Karaoke invitation message.It is online that described application server detects described second terminal that possesses described good friend's sign, then described Karaoke invitation message is forwarded to described second terminal; When receiving the affirmation invitation message that described second terminal returns in the given time, the service authority of described first terminal of described application server request authentication server authentication and described second terminal, when receiving the authentication success message that described certificate server returns, return the invitation successful information to described first terminal, and make foundation Karaoke connection between described first terminal and described second terminal.
The EPG server provides alternative list of songs for described first terminal and described second terminal, when first terminal use by described first terminal, and/or second after the terminal use selects song respectively by described second terminal, described first terminal and/or described second terminal send song to described EPG server respectively and select request, described EPG server receives the song of described first terminal and/or the transmission of described second terminal and selects request, song according to described first terminal and/or the selection of described second terminal is created playlist, and this playlist is issued to described first terminal and described second terminal, wherein, comprised the song title that first terminal use selects by first terminal in this playlist, play link, and second terminal use is by the song title of second terminal selection, play link.
Described first terminal is obtained the link of each first song in the described playlist successively, send linking request to streaming media server, to start described playlist, described streaming media server responds the linking request of described first terminal, sends the Media Stream of the song of being asked to described first terminal and described second terminal synchronizes.
Described second terminal is gathered the audio stream that this end subscriber is sung in real time, and the Media Stream that described audio stream and described server end are issued carries out the audio mixing broadcast, and described audio stream is sent to described first terminal; Described first terminal is carried out the audio mixing broadcast with described second terminal audio stream that sends and the Media Stream that described server end issues.
The embodiment of the invention can long-range invitation good friend participate in Karaoke, has solved the space problem of the Kara OK service of existing IPTV system, has promoted user's experience, has improved service competitiveness.
Description by the foregoing description, first terminal of the embodiment of the invention and second terminal are set up after Karaoke is connected by server end, server end is determined playlist according to first terminal and/or second terminal to the selection of song, and issue the Media Stream of the song in the described playlist to first terminal and second terminal synchronizes, mutual by first terminal and second terminal, realized the Karaoke synchronous playing of first terminal and second terminal, first terminal use can hear the sound that good friend (second terminal use) sings synchronously, realized that the long-range invitation good friend of first terminal use (second terminal use) participates in Karaoke, solved the space problem of the Kara OK service of existing IPTV system, promote terminal use's experience, improved service competitiveness.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method, be to instruct relevant hardware to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
Above disclosed only is preferred embodiment of the present invention, certainly can not limit the present invention's interest field with this, one of ordinary skill in the art will appreciate that all or part of flow process that realizes the foregoing description, and, still belong to the scope that invention is contained according to the equivalent variations that claim of the present invention is done.