Summary of the invention
Embodiment of the present 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 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 present invention provides a kind of implementation method of the Kara OK service based on IPTV system, and described IPTV system comprises: server end and at least two terminals, comprising:
When sending Karaoke to the second terminal, first terminal invites, and after being connected with described the second terminal foundation Karaoke, described server end creates playlist according to the song of described first terminal and/or described the second terminal selection, and issues described playlist to described first terminal and described the second terminal;
When described first terminal and/or described the second terminal start described playlist, described server end sends the Media Stream of the song in described playlist to described first terminal and described the second terminal synchronizes;
The audio stream that described second this end subscriber of terminal Real-time Collection is sung, and the Media Stream that described audio stream and described server end issue is carried out to audio mixing broadcasting;
Described the second terminal is sent to described first terminal by 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 broadcasting.
Wherein, described first terminal sends Karaoke to the second terminal and invites, and is connected with described the second terminal foundation Karaoke, comprising:
First terminal is logined described server end, by described server end, the second terminal is added to good friend, and described server end is that described first terminal and described the second terminal arrange good friend's sign;
Described first terminal sends Karaoke invitation message to described server end, carries described good friend's sign in described Karaoke invitation message;
Described server end is according to the good friend's sign in described Karaoke invitation message, detect described the second terminal whether online, if testing result is yes, described Karaoke invitation message is forwarded to described the second terminal, when receiving the confirmation invitation message that described the second terminal returns in the given time, described server end returns to invitation successful information to described first terminal, and described first terminal is connected with described the second terminal foundation Karaoke; When receiving the refusal invitation message that described the second terminal returns in the given time, or while not receiving in the given time confirmation invitation message that described the second terminal returns or refusal invitation message, described server end returns to invitation failure information to described first terminal;
If testing result is no, described server end returns to invitation failure information to described first terminal.
Wherein, described after receiving the confirmation invitation message that described the second terminal returns in the given time, described server end also comprises before returning and invite successful information to described first terminal:
Described server end authenticates the service authority of described first terminal and described the second terminal, if authentication success returns to invitation successful information to described first terminal; If authentification failure, returns to invitation failure information to described first terminal.
Wherein, described server end creates playlist according to the song of described first terminal and/or described the second terminal selection, and issues described playlist to described first terminal and described the second terminal, comprising:
Described server end provides alternative list of songs for described first terminal and described the second terminal, and receives described first terminal and/or the selection of described the second terminal to the song in described list of songs;
Described server end, according to the song of described first terminal and/or described the second terminal selection, creates playlist;
Described server end issues described playlist to described first terminal and described the second terminal, comprises the broadcasting link of each song in described playlist.
Wherein, described when described first terminal and/or described the second terminal start described playlist, described server end sends the Media Stream of the song in described playlist to described first terminal and described the second terminal synchronizes, comprising:
The link that described first terminal and/or described the second terminal are obtained each song in described playlist successively, and send linking request to described server end, to start described playlist;
Described server end responds the linking request of described first terminal and/or described the second terminal, sends the Media Stream of the song ask to described first terminal and described the second terminal synchronizes.
Wherein, the audio stream that described second this end subscriber of terminal Real-time Collection is sung, and the Media Stream that described audio stream and described server end issue is carried out to audio mixing broadcasting, comprising:
The audio stream that described second this end subscriber of terminal Real-time Collection is sung;
Described the second terminal is by the STC(System Time Clock of local terminal, system sequence clock) with the PTS(Presentation Time Stamp of the Media Stream of the current song issuing of described server end, Presentation Time Stamp) calibrate, as the timestamp of described audio stream;
Described the second terminal, according to described timestamp, is carried out audio mixing broadcasting by the Media Stream of described audio stream and the current song issuing of described server end.
Wherein, described the second terminal is sent to described first terminal by 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 broadcasting, comprising:
Described the second terminal is sent to described first terminal by 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 issuing of described server end, as the timestamp of described audio stream;
Described first terminal, according to described timestamp, carries out audio mixing broadcasting by the Media Stream of described audio stream and the current song issuing of described server end.
Correspondingly, the embodiment of the present invention also provides a kind of terminal, comprising:
Invitation link block, sends Karaoke for the second terminal beyond local terminal and invites, and is connected with described the second terminal foundation Karaoke;
Interactive module, for setting up in described invitation link block after Karaoke connects, 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, the audio stream of singing for receiving the second terminal use that described the second terminal transmits, the Media Stream that the described server end that described audio stream and described interactive module are received issues carries out audio mixing broadcasting.
Wherein, described processing module comprises:
Receiving element, the audio stream of singing for receiving the second terminal use of described the second terminal transmission;
Alignment unit, calibrates the timestamp of the described audio stream receiving as described receiving element for the PTS of Media Stream that the STC of local terminal and described server end are issued;
Processing unit, for the timestamp obtaining according to described alignment unit, carries out audio mixing broadcasting by the Media Stream of described audio stream and the current song issuing of described server end.
Correspondingly, the embodiment of the present invention also provides another kind of terminal, comprising:
Invite link block, the Karaoke invitation sending for receiving local terminal first terminal in addition, and be connected with described first terminal foundation Karaoke;
Interactive module, for setting up in described invitation link block after Karaoke connects, 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, the audio stream of singing for this end subscriber of Real-time Collection, and the Media Stream that the described server end that described audio stream and described interactive module receive is issued carries out audio mixing broadcasting;
Sending module, for by described processing module Real-time Collection to this end subscriber audio stream of singing be sent to described first terminal, the Media Stream that described first terminal is issued described audio stream and described server end carries out audio mixing broadcasting.
Wherein, described processing module comprises:
Collecting unit, the audio stream of singing for this end subscriber of Real-time Collection;
Alignment unit, calibrates the timestamp of the described audio stream collecting as described collecting unit for the PTS of Media Stream that the STC of local terminal and described server end are issued;
Processing unit, for the timestamp obtaining according to described alignment unit, carries out audio mixing broadcasting by the Media Stream of described audio stream and the current song issuing of described server end.
Correspondingly, the embodiment of the present invention also provides a kind of server end, comprising:
Application server, for managing the various application of described first terminal and described the second terminal, described application comprises that login, good friend add any one or more in being connected with Karaoke;
EPG(Electronic Program Guide, TV Guide) server, after being connected by described application server and described the second terminal foundation Karaoke when described first terminal, for described first terminal and described the second terminal provide alternative list of songs, and receive described first terminal and/or the selection of described the second terminal to the song in described list of songs, according to the song of described first terminal and/or described the second terminal selection, create playlist, and described playlist is issued to described first terminal and described the second terminal;
Streaming media server, when starting the playlist that described EPG server issues when described first terminal and/or described the second terminal, sends the Media Stream of the song in described playlist to described first terminal and described the second terminal synchronizes.
Wherein, described server end also comprises:
Certificate server, for the service authority of described first terminal and described the second terminal is authenticated, if authentication success notifies described application server to return to invitation successful information to described first terminal; If authentification failure, notifies described application server to return to invitation failure information to described first terminal.
Correspondingly, the embodiment of the present invention also provides a kind of IPTV system, comprises server end and at least two terminals,
Described server end, for inviting when first terminal sends Karaoke to the second terminal, and after being connected with described the second terminal foundation Karaoke, according to the song of described first terminal and/or described the second terminal selection, create playlist, and issue described playlist to described first terminal and described the second terminal; When described first terminal and/or described the second terminal start described playlist, to described first terminal and described the second terminal synchronizes, send the Media Stream of the song in described playlist;
Described the second terminal, the audio stream of singing for this end subscriber of Real-time Collection, the Media Stream that described audio stream and described server end are issued carries out audio mixing broadcasting, and described audio stream is sent to described first terminal;
Described first terminal, the Media Stream issuing for audio stream that described the second terminal is sent and described server end carries out audio mixing broadcasting.
Implement the embodiment of the present invention, there is following beneficial effect:
The first terminal of the embodiment of the present invention and the second terminal are set up after Karaoke is connected by server end, server end is determined playlist according to first terminal and/or the second terminal to the selection of song, and to first terminal and the second terminal synchronizes, issue the Media Stream of the song in described playlist, mutual by first terminal and the second terminal, having realized the Karaoke of first terminal and the second terminal synchronously plays, first terminal user can synchronously hear the sound that good friend (the second terminal use) sings, realize the long-range invitation good friend of first terminal user (the second terminal use) and participated in Karaoke, solved the space problem of the Kara OK service of existing IPTV system, promoted terminal use's experience, improved service competitiveness.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Referring to Fig. 1, is the structural representation of the embodiment of IPTV system of the present invention; Described IPTV system comprises: server end 20 and at least two terminal 10(there is shown three, in practical application, be not limited to three), wherein, arbitrary terminal 10 that initiation Karaoke in described IPTV system is invited is called first terminal, in described IPTV system, except described first terminal, by described first terminal, invited the arbitrary terminal 10 that participates in Karaoke to be called the second terminal.
Described server end 20, for inviting when described first terminal sends Karaoke to described the second terminal, and after being connected with described the second terminal foundation Karaoke, according to the song of described first terminal and/or described the second terminal selection, create playlist, and issue described playlist to described first terminal and described the second terminal; When described first terminal and/or described the second terminal start described playlist, to described first terminal and described the second terminal synchronizes, send the Media Stream of the song in described playlist.
In 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 to terminal 10, providing audio-visual content is main video content services, as service functions such as live, program request, carousel, time shifts, this basic service function is same as the prior art, is not repeated herein.
Described the second terminal, the audio stream of singing for this end subscriber of Real-time Collection, the Media Stream that described audio stream and described server end 20 are issued carries out audio mixing broadcasting, and described audio stream is sent to described first terminal.
Described first terminal, the Media Stream issuing for audio stream that described the second terminal is sent and described server end 20 carries out audio mixing broadcasting.
In specific implementation, the terminal 10 in described IPTV system can have for Set Top Box (Set Top Box, STB), Web TV, Digital Video Broadcasting Handheld, digital TV integrated machine etc. the terminal of receiving digital television function.Described first terminal is the arbitrary terminal 10 in described IPTV system, and described the second terminal is the arbitrary terminal 10 except described first terminal in described IPTV system.
The embodiment of the present 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, below the terminal in IPTV system of the present invention is described in detail.
Referring to Fig. 2, is the structural representation of the first embodiment of terminal of the present invention; The terminal of the present embodiment is arbitrary terminal 10 that initiation in described IPTV system Karaoke is invited, and is also the first terminal in embodiment illustrated in fig. 1.Described terminal 10 comprises:
Invitation link block 101, sends Karaoke for the second terminal beyond local terminal and invites, and is connected with described the second terminal foundation Karaoke.
In specific implementation, first terminal login is to described server end, after logining successfully, on described server end, add good friend, as: the ID(Identity of input the second terminal, identify label) number, described the second terminal is added to good friend, and described server end is that described first terminal and described the second terminal arrange good friend's sign.Described invitation link block 101 can long-range invitation good friend (described the second terminal) participate in Karaoke, described invitation link block 101 sends Karaoke invitation message to described server end, in described Karaoke invitation message, carry described good friend's sign, when receiving the invitation successful information that described server end returns, described invitation link block 101 is set up Karaoke by described server end with described the second terminal and is connected.
Interactive module 102, for setting up in described invitation link block 101 after Karaoke connects, 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 specific implementation, described interactive module 102 has been born all information interactions between described first terminal and described server end.It should be noted that, described interactive module 102 receives after the playlist that described server end issues, and can start voluntarily described playlist, triggers the Media Stream that described server end issues the song in described playlist; Also can start described playlist by the second terminal, receive the Media Stream that described server end synchronously issues the song in described playlist.
Processing module 103, the audio stream of singing for receiving the second terminal use that described the second terminal transmits, the Media Stream that the described server end that described audio stream and described interactive module 102 are received issues carries out audio mixing broadcasting.
In specific implementation, please also refer to Fig. 3, be the structural representation of the embodiment of the processing module in Fig. 2; Described processing module 103 comprises:
Receiving element 301, the audio stream of singing for receiving the second terminal use of described the second terminal transmission.
Alignment unit 302, calibrates the timestamp of the described audio stream receiving as described receiving element 301 for the PTS of Media Stream that the STC of local terminal and described server end are issued.
Processing unit 303, for the timestamp obtaining according to described alignment unit 302, carries out audio mixing broadcasting by the Media Stream of described audio stream and the current song issuing of described server end.
The embodiment of the present 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.
Referring to Fig. 4, is the structural representation of the second embodiment of terminal of the present invention; The terminal of the present embodiment is by first terminal, invite to be participated in arbitrary terminal 10 Karaoke, except first terminal in described IPTV system, is also the second terminal in embodiment illustrated in fig. 1.Described terminal 10 comprises:
Invite link block 111, the Karaoke invitation sending for receiving local terminal first terminal in addition, and be connected with described first terminal foundation Karaoke.
Interactive module 112, for setting up in described invitation link block 111 after Karaoke connects, 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, the audio stream of singing for this end subscriber of Real-time Collection, and the Media Stream that the described server end that described audio stream and described interactive module 112 receive is issued carries out audio mixing broadcasting.
In specific implementation, please also refer to Fig. 5, be the structural representation of the embodiment of the processing module in Fig. 4; Described processing module 113 comprises:
Collecting unit 311, the audio stream of singing for this end subscriber of Real-time Collection.
Alignment unit 312, calibrates the timestamp of the described audio stream collecting as described collecting unit 311 for the PTS of Media Stream that the STC of local terminal and described server end are issued.
Processing unit 313, for the timestamp obtaining according to described alignment unit 312, carries out audio mixing broadcasting by the Media Stream of described audio stream and the current song issuing of described server end.
Sending module 114, for by described processing module 113 Real-time Collections to this end subscriber audio stream of singing be sent to described first terminal, the Media Stream that described first terminal is issued described audio stream and described server end carries out audio mixing broadcasting.
The embodiment of the present 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.
It should be noted that, the terminal shown in Fig. 2 and Fig. 4 can be merged into same terminal, when this terminal is when inviting end, possesses the functional structure in embodiment illustrated in fig. 2, when this terminal is when being invited to hold, possesses the functional structure in embodiment illustrated in fig. 4.In above-described embodiment, the PTS of the Media Stream of the song that described first terminal and described the second terminal all issue by server end calibrates, can make described first terminal and described the second terminal synchronizes play the voice data that the second terminal use sings, first terminal user can synchronously hear the sound that the second terminal use sings, and has realized the long-range invitation good friend of first terminal user (the second terminal use) and has participated in Karaoke.
In order to be illustrated more clearly in the present invention, below the server end in IPTV system of the present invention is described in detail.
Referring to Fig. 6, is the structural representation of the 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, for managing the various application of described first terminal and described the second terminal.
The application of described application server 201 management includes but not limited to: login, good friend add any one or more in being connected with Karaoke.In specific implementation, described first terminal login is to described application server 201, and described application server 201 is connected to described first terminal in IPTV system, completes the management to login application.Described first terminal after logining successfully adds good friend on described application server 201, as: the id number of input the second terminal, described the second terminal is added to good friend, 201 of described application servers are that described first terminal and described the second terminal arrange good friend's sign, by said process, described application server 201 has completed the management that good friend adds application.Described the second terminal is added to after good friend, described first terminal can long-range invitation good friend (described the second terminal) participate in Karaoke, described first terminal sends Karaoke invitation message to described application server 201, in described Karaoke invitation message, carry described good friend's sign, good friend's sign in the Karaoke invitation message that described application server 201 sends according to described first terminal, whether whether described the second terminal that detection possesses described good friend sign online (detecting described the second terminal is successfully connected in IPTV system), if testing result is yes, described Karaoke invitation message is forwarded to described the second terminal, when receiving the confirmation invitation message that described the second terminal returns in the given time, described application server 201 returns to invitation successful information to described first terminal, and foundation Karaoke between described first terminal and described the second terminal is connected, pass through said process, described application server 201 has completed the management that Karaoke is connected to application, when receiving the refusal invitation message that described the second terminal returns in the given time, or while not receiving in the given time confirmation invitation message that described the second terminal returns or refusal invitation message, described application server 201 returns to invitation failure information to described first terminal, if testing result is no, described application server 201 returns to invitation failure information to described first terminal, herein, the information that can comprise failure cause in the invitation failure information that described application server 201 returns to described first terminal, such as: described application server 201 returns to the information of " the second terminal off-line, invite unsuccessfully " to described first terminal, or " the second terminal lack of competence, invites unsuccessfully " etc.Be understandable that, above-mentioned predetermined time can be set according to actual needs, and this assignment procedure is same as the prior art, is not repeated herein.
Described EPG server 202, after being connected by described application server 201 and the second terminal foundation Karaoke when first terminal, for described first terminal and described the second terminal provide alternative list of songs, and receive described first terminal and/or the selection of described the second terminal to the song in described list of songs, according to the song of described first terminal and/or described the second terminal selection, create playlist, and described playlist is issued to described first terminal and described the second terminal.
Described EPG server 202 provides the functions such as Kara OK service index and navigation for each terminal 10, in specific implementation, described EPG server 202 provides various types of list of songs for each terminal 10, terminal use can carry out song and search and song selection operation in terminal 10, each terminal 10 is according to terminal use's operation, to described EPG server 202, send corresponding song search request and song selection request, 202 of described EPG servers return to asked list of songs and corresponding playlist to each terminal 10.In the present embodiment, after described first terminal is connected by described application server 201 and described the second terminal foundation Karaoke, described EPG server 202 provides alternative list of songs for described first terminal and described the second terminal, when first terminal user is by described first terminal, and/or second terminal use by described the second terminal, select respectively after song, described first terminal and/or described the 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 described the second terminal transmission and selects request, according to the song of described first terminal and/or described the second terminal selection, create playlist, and this playlist is issued to described first terminal and described the second terminal, wherein, in this playlist, comprised the song title that first terminal user selects by first terminal, play link, and second song title selected by the second terminal of terminal use, play link.
Described streaming media server 203, when starting the playlist that described EPG server 202 issues when described first terminal and/or described the second terminal, sends the Media Stream of the song in described playlist to described first terminal and described the second terminal synchronizes.
In specific implementation, when described first terminal and/or described the second terminal start the playlist that described EPG server 202 issues, the linking request of the described streaming media server 203 described first terminals of response and/or described the second terminal, with unicast stream media, issue mode, to described first terminal and described the second terminal synchronizes, send the Media Stream of the song in described playlist.
The embodiment of the present 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.
Referring to Fig. 7, is the structural representation of the second embodiment of server end of the present invention; Identical with a upper 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, for the service authority of described first terminal and described the second terminal is authenticated, if authentication success notifies described application server 201 to return to invitation successful information to described first terminal; If authentification failure, notifies described application server 201 to return to invitation failure information to described first terminal.
In specific implementation, described certificate server 204 can be OSS(Operation Support System, OSS), for the service authority of described first terminal and described the second terminal is authenticated, when first terminal and described the second terminal have all been opened Kara OK service, authentication success, the two can carry out the long-range invitation Kara OK service of the present embodiment, otherwise, authentification failure, the two can not carry out the long-range invitation Kara OK service of the present embodiment.
The embodiment of the present 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 IPTV system of the present invention be described in detail below.
Referring to Fig. 8, is the flow chart of the first embodiment of the implementation method of the Kara OK service based on IPTV system of the present invention; Described method comprises:
S101, first terminal sends Karaoke to the second terminal and invites, and is connected with described the second terminal foundation Karaoke.
In specific implementation, please also refer to Fig. 9, be the particular flow sheet of the step S101 shown in Fig. 8; Described step S101 comprises:
S201, first terminal logon server end, is added to good friend by described server end by the second terminal, and described server end is that described first terminal and described the second terminal arrange good friend's sign;
S202, described first terminal sends Karaoke invitation message to described server end, carries described good friend's sign in described Karaoke invitation message;
S203, whether online described server end, according to the good friend's sign in described Karaoke invitation message, detect described the second terminal, if testing result is yes, proceeds to S204; Otherwise, proceed to S206;
Whether, in specific implementation, described S203 detects the whether online detailed process of described the second terminal and is: detect described the second terminal and successfully login to application server, if testing result is yes, judge that described the second terminal is online, proceed to execution step S204; Otherwise, judge described the second terminal off-line, proceed to execution step S206;
S204, described server end is forwarded to described the second terminal by described Karaoke invitation message;
S205, described server end judges in the scheduled time whether receive the confirmation invitation message that described the second terminal is returned, if the determination result is NO, proceeds to S206; If judgment result is that to be, proceed to S207;
In specific implementation, in described S205, when described server end receives the confirmation invitation message that described the second terminal returns in the judgement scheduled time, proceed to and carry out S207; When described server end receives the refusal invitation message that described the second terminal returns in the judgement scheduled time, or when described server end does not receive confirmation invitation message that described the second terminal returns or refusal invitation message in the given time, proceed to and carry out S206;
S206, described server end returns to invitation failure information to described first terminal, afterwards, finishes;
S207, described server end authenticates the service authority of described first terminal and described the second terminal;
S208, whether the service authority that judges described first terminal and described the second terminal authentication success, if judgment result is that, is to proceed to S209; Otherwise, proceed to S206;
S209, described server end returns to invitation successful information to described first terminal;
S210, described server end makes to set up Karaoke between described first terminal and described the second terminal and connects, and afterwards, finishes;
S201-S210 shown in above-mentioned Fig. 9 is the concrete refinement step of the S101 of the present embodiment.
S102, server end creates playlist according to the song of described first terminal and/or described the second terminal selection.
In specific implementation, please also refer to Figure 10, be the particular flow sheet of the step S102 shown in Fig. 8; Described step S102 comprises:
S301, server end provides alternative list of songs for described first terminal and described the second terminal, and receives described first terminal and/or the selection of described the second terminal to the song in described list of songs;
S302, described server end, according to the song of described first terminal and/or described the second terminal selection, creates playlist;
S303, described server end issues described playlist to described first terminal and described the second terminal, comprises the broadcasting link of each song in described playlist;
S301-S303 shown in above-mentioned Figure 10 is the concrete refinement step of the S102 of the present embodiment.
S103, described server end issues described playlist to described first terminal and described the second terminal.
S104, when described first terminal and/or described the second terminal start described playlist, described server end sends the Media Stream of the song in described playlist to described first terminal and described the second terminal synchronizes.
In specific implementation, please also refer to Figure 11, be the particular flow sheet of the step S104 shown in Fig. 8; Described step S104 comprises:
S401, the link that described first terminal and/or described the second terminal are obtained each song in described playlist successively;
S402, described first terminal and/or described the second terminal send linking request to described server end, to start described playlist;
S403, described server end responds the linking request of described first terminal and/or described the second terminal, sends the Media Stream of the song ask to described first terminal and described the second terminal synchronizes;
S401-S403 shown in above-mentioned Figure 11 is the concrete refinement step of the S104 of the present embodiment.
S105, the audio stream that described second this end subscriber of terminal Real-time Collection is sung, and the Media Stream that described audio stream and described server end issue is carried out to audio mixing broadcasting.
In specific implementation, please also refer to Figure 12, be the particular flow sheet of the step S105 shown in Fig. 8; Described step S105 comprises:
S501, the audio stream that described second this end subscriber of terminal Real-time Collection is sung; Particularly, the audio stream that described the second terminal is sung by this end subscribers of device Real-time Collection such as microphones;
S502, described the second terminal is calibrated the Presentation Time Stamp PTS of the Media Stream of the STC of local terminal and the current song issuing of described server end, as the timestamp of described audio stream;
S503, described the second terminal, according to described timestamp, is carried out audio mixing broadcasting by the Media Stream of described audio stream and the current song issuing of described server end;
S501-S503 shown in above-mentioned Figure 12 is the concrete refinement step of the S105 of the present embodiment.
S106, described the second terminal is sent to described first terminal by 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 broadcasting.
In specific implementation, please also refer to Figure 13, be the particular flow sheet of the step S106 shown in Fig. 8; Described step S106 comprises:
S601, described the second terminal is sent to described first terminal by 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 issuing of described server end, the timestamp of the audio stream sending as described the second terminal;
S603, described first terminal, according to described timestamp, carries out audio mixing broadcasting by the Media Stream of described audio stream and the current song issuing of described server end;
S601-S603 shown in above-mentioned Figure 13 is the concrete refinement step of the S106 of the present embodiment.
In the present embodiment, the PTS of the Media Stream of the song that described first terminal and described the second terminal all issue by server end calibrates, can make described first terminal and described the second terminal synchronizes play the voice data that the second terminal use sings, first terminal user can synchronously hear the sound that the second terminal use sings, and has realized the long-range invitation good friend of first terminal user (the second terminal use) and has participated in Karaoke.
The embodiment of the present 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.
Referring to Figure 14, is the flow chart of the second embodiment of the implementation method of the Kara OK service based on 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 IPTV system.After logining successfully, described first terminal is inputted the id number of the second terminal on described application server, and described the second terminal is added to good friend, and described application server is that described first terminal and described the second terminal arrange good friend's sign.Added after good friend, described first terminal can long-range invitation good friend participate in Karaoke, and described first terminal sends Karaoke invitation message to described application server, carries described good friend's sign in described Karaoke invitation message.Described application server detects that to possess described second terminal of described good friend sign online, described Karaoke invitation message is forwarded to described the second terminal; When receiving the confirmation invitation message that described the second terminal returns in the given time, the service authority of first terminal and described the second terminal described in the server authentication of described application server request authentication, when receiving the authentication success message that described certificate server returns, to described first terminal, return to invitation successful information, and foundation Karaoke between described first terminal and described the second terminal is connected.
EPG server provides alternative list of songs for described first terminal and described the second terminal, when first terminal user is by described first terminal, and/or second terminal use by described the second terminal, select respectively after song, described first terminal and/or described the second terminal send song to described EPG server respectively and select request, described EPG server receives the song of described first terminal and/or described the second terminal transmission and selects request, according to the song of described first terminal and/or described the second terminal selection, create playlist, and this playlist is issued to described first terminal and described the second terminal, wherein, in this playlist, comprised the song title that first terminal user selects by first terminal, play link, and second song title selected by the second terminal of terminal use, play link.
Described first terminal obtains the link of each song in described playlist successively, to streaming media server, send linking request, to start described playlist, described streaming media server responds the linking request of described first terminal, sends the Media Stream of the song ask to described first terminal and described the second terminal synchronizes.
The audio stream that described second this end subscriber of terminal Real-time Collection is sung, the Media Stream that described audio stream and described server end are issued carries out audio mixing broadcasting, and described audio stream is sent to described first terminal; The Media Stream that the audio stream that described first terminal sends described the second terminal and described server end issue carries out audio mixing broadcasting.
The embodiment of the present 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.
By the description of above-described embodiment, the first terminal of the embodiment of the present invention and the second terminal are set up after Karaoke is connected by server end, server end is determined playlist according to first terminal and/or the second terminal to the selection of song, and to first terminal and the second terminal synchronizes, issue the Media Stream of the song in described playlist, mutual by first terminal and the second terminal, having realized the Karaoke of first terminal and the second terminal synchronously plays, first terminal user can synchronously hear the sound that good friend (the second terminal use) sings, realize the long-range invitation good friend of first terminal user (the second terminal use) and participated in Karaoke, solved the space problem of the Kara OK service of existing IPTV system, promoted terminal use's experience, improved service competitiveness.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, to come the hardware that instruction is relevant to complete by computer program, described program can be stored in a computer read/write memory medium, this program, when carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosed is only preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, one of ordinary skill in the art will appreciate that all or part of flow process that realizes above-described embodiment, and the equivalent variations of doing according to the claims in the present invention, still belong to the scope that invention is contained.