Embodiment
The present invention program is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the embodiment of a part of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, should belong to the scope of protection of the invention.
It should be noted that, term " first ", " second " etc. in specification of the present invention and claims and above-mentioned accompanying drawing are for distinguishing similar object, and need not be used for describing specific order or precedence.Should be appreciated that the data used like this can be exchanged in the appropriate case, so as embodiments of the invention described herein can with except here diagram or describe those except order implement.In addition, term " comprises " and " having " and their any distortion, intention is to cover not exclusive comprising, such as, contain those steps or unit that the process of series of steps or unit, method, system, product or equipment is not necessarily limited to clearly list, but can comprise clearly do not list or for intrinsic other step of these processes, method, product or equipment or unit.
Embodiment 1
According to the embodiment of the present invention, provide the embodiment that a kind of multimedia file shares method, above-mentioned multimedia file is shared method and be can be, but not limited to be applied in network environment as shown in Figure 1, the terminal 102-1 being provided with the first client sends the request instruction sharing play multimedia file to server 104, server 104 is after the broadcasting obtaining the terminal 102-2 transmission being provided with the second client confirms instruction, the above-mentioned multimedia file being stored in network side is shared to the terminal 102-1 being provided with the first client and the terminal 102-2 being provided with the second client, directly can share with the second account of the first account and the second client that make the first client engaged in the dialogue and play same multimedia file.Alternatively, in the present embodiment, above-mentioned network can include but not limited to: wide area network, metropolitan area network, local area network (LAN).Alternatively, in the present embodiment, above-mentioned terminal can include but not limited to following one of at least: mobile phone, panel computer, notebook computer, PC.Above-mentioned just a kind of example, the present embodiment does not do any restriction to this.
According to the embodiment of the present invention, provide a kind of multimedia file and share method, as shown in Figure 2, the method comprises:
S202, the first user end to server sends sharing request instruction, and wherein, sharing request instruction is used to indicate server and the multimedia file being stored in network side is shared to the first client and the second client;
S204, the data flow of the multimedia file that the first client reception server sends;
S206, the first client is according to play multimedia file in the dialog box of the data flow of multimedia file in the first client, and wherein, dialog box engages in the dialogue with the second account signing in the second client for the first account signing in the first client.
Alternatively, in the present embodiment, above-mentioned multimedia file is shared method and be can be, but not limited to be applied in the process of communication session, thus realize sharing same multimedia file by the dialog box in the client that directly utilizes dialogue both sides to log in, and then overcome in prior art and share the higher problem of caused operation complexity owing to carrying out multimedia file by third party's instrument.Such as, shown in composition graphs 1, Fig. 3, the second account ID_2 of the second client logs on the first client logs first account ID_1 and terminal 102-2 on terminal 102-1 carries out video conversation, as Fig. 3 (a) is depicted as the head portrait of dialogue both sides.In dialog procedure, first user end to server 104 have sent the sharing request instruction sharing multimedia file (film M as shown in Figure 3) with the second client, server 104 is after the broadcasting receiving the second client transmission confirms instruction, the data flow of above-mentioned film M is sent to the first client, wherein, above-mentioned film M plays in the dialog box of the first client, as Fig. 3 (b) the window be shown in dialog box play.Above-mentioned citing is a kind of example, and the present embodiment does not do any restriction to this.
Alternatively, in the present embodiment, before the first user end to server sends sharing request instruction, also comprise:
S1, receives the second client being used to indicate the first client and dialogue and carries out the shared control command of multimedia file;
S2, respond above-mentioned control command display multimedia file list, and receive file selection instruction, wherein, file selection instruction is for selecting the multimedia file that will share;
S3, generates sharing request instruction according to above-mentioned file selection instruction.
Alternatively, in the present embodiment, in dialog box in the first client during play multimedia file, the both sides that first client and the second client engage in the dialogue can also proceed to talk with, wherein, the mode of dialogue comprise following one of at least: text conversation, voice dialogue, video conversation.
Alternatively, in the present embodiment, above-mentioned dialog box can include but not limited to following one of at least: video window, comprise the client dialog box of video window.Wherein, when above-mentioned dialog box is video window, when the first above-mentioned multimedia file of client terminal playing, can also but be not limited to play the image being provided with the camera in the terminal of the second client and photographing in a certain region of video window, and then to realize and the other side carries out voice dialogue and/or video conversation.When above-mentioned dialog box is the client dialog box comprising video window, when the first above-mentioned multimedia file of client terminal playing, can also but a certain region display text conversation frame be not limited at this dialog box, to realize the text conversation with the other side.
Alternatively, in the present embodiment, in the dialog box in the first client during play multimedia file, in this dialog box can also but be not limited to the indication information that displays the play, wherein, above-mentioned broadcasting indication information can include but not limited to following one of at least:
1) whether the second client is used to indicate just at the indication information of play multimedia file;
2) indication information of multimedia file playing progress rate is on a second client used to indicate.
Alternatively, in the present embodiment, in the dialog box in the first client during play multimedia file, Play Control can also be carried out to above-mentioned multimedia file, wherein, above-mentioned Play Control can include but not limited to following one of at least: F.F., rewind, time-out, closedown.Alternatively, in the present embodiment, receive be used to indicate the mode that the Play Control instruction of Play Control carried out to multimedia file can include but not limited to following one of at least: Play Control operation detected in this locality, receive server and respond the Play Control instruction that request that the second client sends produces.
Alternatively, in the present embodiment, in dialog box in the first client during play multimedia file, if after the Play Control instruction of instruction " closedown " this multimedia file being detected, also comprise: turn back to former dialog box and proceed dialogue, stop two-party conversation.
Specifically be described in conjunction with following example, for video conversation, suppose that the first client 402 and the second client 404 carry out video conversation, wherein, the head portrait (as Suo Shi Fig. 3 (a)) of dialogue both sides is shown in dialog box in first client 402, then, first client 402 shares film M by server request and the second client 404, server is after the broadcasting receiving the second client 404 confirms instruction, the first client 402 and the second client 404 is given by the data flow of film M, this film M can be seen by dialog box to make both sides simultaneously, as shown in Figure 4, the other side's (namely captured by the second client 404) head portrait and film M will be shown in the dialog box of the first client 402, simultaneously the second client 404 also will show the other side's (namely captured by the first client 402) head portrait and film M, thus realize directly by dialog box play multimedia file, reach the object reducing operation complexity.
By the embodiment that the application provides, the communication link between the first client and the second client is set up by server, and utilize this server to send the data flow of the multimedia file that will share to the first client, thus make sign in the first account of the first client and sign in the window sharing same multimedia file of the second account by talking with of the second client, overcome in prior art owing to realizing by third party's instrument the problem that multimedia file shares caused complicated operation, and then while achieving and simplifying the operation, also assures that dialogue both sides synchronously can share same multimedia file, improve Consumer's Experience.
As the optional scheme of one, the first client comprises according to play multimedia file in the dialog box of the data flow of multimedia file in the first client:
S1, the data flow of the first client to multimedia file is decoded, and obtains the Frame of multimedia file;
S2, the Frame that the first client broadcast decoder in dialog box obtains.
Alternatively, in the present embodiment, before the data flow of the first client to multimedia file is decoded, also comprise: server obtains the multimedia file that will share according to the instruction of sharing request instruction, and downloaded, resolve, send according to predetermined protocol again subpackage, packing.Further, the first client receive server send multimedia data stream after, can directly decode and broadcast decoder after Frame, wherein, above-mentioned Frame can include but not limited to: audio frame, image are just.
Specifically be described in conjunction with following example, as shown in Figure 5, server obtains the memory address of the multimedia file that will share, from this memory address downloading multimedia file, as shown in step S502, then step S504 is performed, resolve this multimedia file, by the multimedia file that the obtains RTP (RTP according to standard, Real-time Transport Protocol) re-start packing and the subpackage of data, as step S506, and perform step S508, above-mentioned multimedia file data stream is sent to the first client 502 and the second client 504.Then as step S510-S516, the multimedia file data stream that reception server sends by the first client 502 and the second client 504, and utilize the Frame of the decoder of audio frequency and video engine to multimedia file to decode.Alternatively, above-mentioned steps S512 operates with the reception of step S514 and can be, but not limited to: synchronously perform reception, asynchronous execution receives.
By the embodiment that the application provides, directly the data flow of the multimedia file received is carried out decoding display in client, and without the need to performing complicated sharing operation, reach and the logic of complexity is transferred to server process, thus reduce the workload of client, and then achieve loading velocity when improving client terminal playing multimedia file.
As the optional scheme of one, the first client comprises according to play multimedia file in the dialog box of the data flow of multimedia file in the first client:
S1, the first client is play multimedia file in the first area of dialog box, and wherein, dialog box also comprises: second area, and second area is for receiving the information of input; 3rd region, the 3rd region is for showing the information from the second client.
Alternatively, in the present embodiment, the above-mentioned information from the second client can include but not limited to following one of at least: the broadcasting indication information being provided with play multimedia file in the image captured by the camera in the terminal of the second client, the second client.Wherein, the image of above-mentioned camera shooting can be, but not limited to the head portrait of the user for using the second client.Wherein, above-mentioned broadcasting indication information include but not limited to following one of at least: be used to indicate the second client whether just play multimedia file indication information, be used to indicate the indication information of multimedia file playing progress rate on a second client.
Alternatively, in the present embodiment, above-mentioned dialog box can be, but not limited to: the client dialog box comprising video window, as shown in Figure 6 at the first half display video window of above-mentioned dialog box.
Specifically be described in conjunction with following example, as shown in Figure 6, first client plays the multimedia file shared in the first area (player window of the first half in dialog box as shown in Figure 6) of dialog box, the text message of input is received in second area (the text conversation window of the latter half in dialog box as shown in Figure 6), to realize continuing to keep actual conversation with the other side, and the 3rd region (window in the upper left corner as shown in Figure 6) display from the second client information (such as, Figure 6 shows that the head portrait captured by camera in the terminal being provided with the second client).
By the embodiment that the application provides, while play multimedia file in the dialog box of the first client, also by keeping the actual conversation with the second client from the information of the second client, achieve the dialogue of broadcasting limit, limit, make dialogue both sides on the basis of shared multimedia file, the viewing gains in depth of comprehension to multimedia file can also be shared.
As the optional scheme of one, dialog box is video conversation window, and wherein, the first client comprises according to play multimedia file in the dialog box of the data flow of multimedia file in the first client:
S1, first client is play multimedia file in the 4th region of video conversation window, wherein, video conversation window also comprises: the 5th region, 5th region is for showing the image received, and wherein, image is taken by the camera installed in the terminal of the second client and obtained, or image is the image in the multimedia file of current broadcasting in the second client.
Alternatively, in the present embodiment, the above-mentioned information from the second client can also include but not limited to except above-mentioned information: the image in the multimedia file of current broadcasting in the second client.
Alternatively, in the present embodiment, above-mentioned dialog box can be, but not limited to: video window, is displayed in full screen video conversation window as shown in Figure 7.
Specifically be described in conjunction with following example, as shown in Figure 7, first client plays the multimedia file shared in the 4th region (player window of the latter half in dialog box as shown in Figure 7) of dialog box, in the information (such as, Figure 7 shows that image in the multimedia file of second client in current broadcasting) of the 5th region the window of the upper left corner (in the dialog box as shown in Figure 7) display from the second client.
By the embodiment that the application provides, while played in full screen multimedia file in the dialog box of the first client, also by keeping the actual conversation with the second client from the information of the second client, when watching local shared multimedia file, the situation that the other side watches can also be seen, achieve when played in full screen shares multimedia file, can talk with to make dialogue both sides on the basis of shared multimedia file on broadcasting limit, limit, the viewing gains in depth of comprehension to multimedia file can also be shared.
As the optional scheme of one, in the first client according in the dialog box of the data flow of multimedia file in the first client during play multimedia file, also comprise:
S1, the first client displays the play indication information on dialog box, wherein, plays instruction and whether is used to indicate the second client just at play multimedia file; And/or
S2, the first client displays the play tempo instructions information on dialog box, and wherein, playing progress rate indication information is used to indicate multimedia file playing progress rate on a second client.
Specifically be described in conjunction with following example, as shown in Figure 8, can be, but not limited in the dialog box of the first client arrange an indicator light, when this indicator light lights, represent the second client playing the first client share cross media file; When indicator light extinguishes, represent the second client stopped broadcasting first client share cross media file.
Again such as, as shown in Figure 9, can be, but not limited to arrange a progress bar in the dialog box of the first client, wherein, this progress bar is used to indicate multimedia file playing progress rate on a second client, and as shown in the figure, the second client plays to 40%.
By the embodiment that the application provides, by arranging for pointing out multimedia file at the broadcasting indication information of the broadcasting situation of the second client in dialog box, achieve while multimedia file is shared in first client this locality viewing, the broadcasting situation of multimedia file in the second client can also be seen, while reaching shared multimedia file, the broadcast state of multimedia file can also be shared, further improve the result of broadcast that multimedia file is shared.
As the optional scheme of one, after the first client is according to play multimedia file in the dialog box of the data flow of multimedia file in the first client, also comprise:
S1, the first client judges whether to detect that Play Control operates in this locality, or whether receive Play Control instruction from server, wherein, Play Control instruction is responded by server that request that the second client sends produces;
S2, detect that Play Control operates if judge in this locality, then the first client end response Play Control operation carries out Play Control to the multimedia file play in dialog box, and sends the instruction being used to indicate the second client and operating the multimedia file execution Play Control play on a second client to server;
S3, receive Play Control instruction if judge from server, then the first client end response Play Control instruction carries out Play Control to the multimedia file play in dialog box.
Alternatively, in the present embodiment, the Play Control instruction that above-mentioned server produces can be, but not limited to: after the second client detects Play Control operation, to the Play Control signaling that the request of server transmission Play Control produces.Wherein, the mode of operation of above-mentioned Play Control operation can include but not limited to following one of at least: click, drag.Wherein, the operation of above-mentioned Play Control can include but not limited to following one of at least: F.F., rewind, time-out, closedown.
Specifically be described in conjunction with following example, as shown in Figure 10, can be, but not limited in the dialog box of the first client arrange Play Control operation keys, such as, when local operation multimedia file being performed to F.F. 10s (as shown in phantom in FIG.) being detected, after then proceeding to 10s soon from multimedia file (such as, picture frame corresponding to position 15m20s) starts to continue to play, this Play Control is operated the operational order produced simultaneously and send to server, to make server, this operational order is sent to the second client, thus control the multimedia file also F.F. 10s that plays in the dialog box of the second client simultaneously.
By the embodiment that the application provides, judge whether to detect that Play Control operates in this locality by the first client, or, whether receive from server and respond by server the Play Control instruction that request that the second client sends produces, thus the multimedia file achieved sharing carries out Play Control in real time, further, also achieve the Synchronization Control to shared both sides, synchronous broadcasting can be realized to make dialogue both sides.
As the optional scheme of one, before the first user end to server sends sharing request instruction, also comprise:
S1, the first client display multimedia file list, wherein, multimedia file list comprises: one or more title being stored in the multimedia file to be played of network side, and multimedia file to be played comprises: multimedia file;
S2, the first client receives file selection instruction, and wherein, file selection instruction is for selecting multimedia file;
S3, the first client end response file selection instruction generates sharing request instruction.
Alternatively, in the present embodiment, above-mentioned multimedia file list can include but not limited to the title of the multimedia file one or more to be played being stored in network side.Wherein, the title of above-mentioned multimedia file to be played can be selected according to following at least one principle: area, time, type.
Specifically be described in conjunction with following example, as shown in figure 11, first client is after click is shared, demonstrate multimedia file list as shown in figure 12, after receiving file selection instruction, the first client will respond above-mentioned file selection instruction and generate sharing request instruction, such as, suppose that film B is selected in the instruction of file selection instruction, then will generate the sharing request instruction sharing film B.
By the embodiment that the application provides, by selecting the multimedia file that will share in the multimedia file list of display, and then generate sharing request instruction, thus make the first client of engaging in the dialogue and the second client can share same multimedia file.
As the optional scheme of one, the first client generates sharing request instruction and comprises:
S1, the first client carries the network storage address of multimedia file at network side or the mark of multimedia file in sharing request instruction.
Alternatively, in the present embodiment, can be, but not limited in above-mentioned sharing request instruction carry following at least one information: multimedia file in the network storage address of network side, multimedia file is in the mark of database.Wherein, when the client for talking with belongs to same company with the multimedia file shared, directly can obtain by the mark ID of intra-company's database the multimedia file that will share.
Specifically be described in conjunction with following example, to carry the sharing request instruction of multimedia file in the network storage address of network side, server is after receiving above-mentioned sharing request instruction, by the multimedia file will shared with acquisition by the application server corresponding to access address above mentioned, and its download parsing is preserved.
By the embodiment that the application provides, by corresponding to shared multimedia file in the network storage address of network side or the mark of multimedia file, realize obtaining by the identifier lookup of the above-mentioned network storage address of server by utilizing or multimedia file the multimedia file that will share, and then give the first client and the second client by the data flow of this multimedia file, reach the object of shared multimedia file.
It should be noted that, for aforesaid each embodiment of the method, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not by the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and involved action and module might not be that the present invention is necessary.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that can add required general hardware platform by software according to the method for above-described embodiment and realize, hardware can certainly be passed through, but in a lot of situation, the former is better execution mode.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium (as ROM/RAM, magnetic disc, CD), comprising some instructions in order to make a station terminal equipment (can be mobile phone, computer, server, or the network equipment etc.) perform method described in each embodiment of the present invention.
Embodiment 2
The embodiment of the present invention also provides another kind of multimedia file to share embodiment of the method, and the applied environment of this embodiment is identical with embodiment 1, and the present embodiment does not repeat them here.
According to the embodiment of the present invention, additionally provide a kind of multimedia file and share method, as shown in figure 13, the method comprises:
S1302, the sharing request instruction that the second client reception server sends, wherein, sharing request instruction is used to indicate server and the multimedia file being stored in network side is shared to the first client and the second client;
S1304, the second user end to server sends to share and confirms instruction;
S1306, the data flow of the multimedia file that the second client reception server sends, and according to play multimedia file in the data flow of multimedia file dialog box on a second client, wherein, dialog box engages in the dialogue with the first account signing in the first client for the second account signing in the second client.
Alternatively, in the present embodiment, above-mentioned multimedia file is shared method and be can be, but not limited to be applied in the process of communication session, thus realize sharing same multimedia file by the dialog box in the client that directly utilizes dialogue both sides to log in, and then overcome in prior art and share the higher problem of caused operation complexity owing to carrying out multimedia file by third party's instrument.Such as, shown in composition graphs 1, Fig. 3, the second account ID_2 of the second client logs on the first client logs first account ID_1 and terminal 102-2 on terminal 102-1 carries out video conversation, as Fig. 3 (a) is depicted as the head portrait of dialogue both sides.In dialog procedure, first user end to server 104 have sent the sharing request instruction sharing multimedia file (film M as shown in Figure 3) with the second client, server 104 is after the broadcasting receiving the second client transmission confirms instruction, the data flow of above-mentioned film M is sent to the first client, wherein, above-mentioned film M plays in the dialog box of the first client, as Fig. 3 (b) the window be shown in dialog box play.Above-mentioned citing is a kind of example, and the present embodiment does not do any restriction to this.
Alternatively, in the present embodiment, before the first user end to server sends sharing request instruction, also comprise:
S1, receives the second client being used to indicate the first client and dialogue and carries out the shared control command of multimedia file;
S2, respond above-mentioned control command display multimedia file list, and receive file selection instruction, wherein, file selection instruction is for selecting the multimedia file that will share;
S3, generates sharing request instruction according to above-mentioned file selection instruction.
Alternatively, in the present embodiment, in dialog box in the first client during play multimedia file, the both sides that first client and the second client engage in the dialogue can also proceed to talk with, wherein, the mode of dialogue comprise following one of at least: text conversation, voice dialogue, video conversation.
Alternatively, in the present embodiment, above-mentioned dialog box can include but not limited to following one of at least: video window, comprise the client dialog box of video window.Wherein, when above-mentioned dialog box is video window, when the first above-mentioned multimedia file of client terminal playing, can also but be not limited to play the image being provided with the camera in the terminal of the second client and photographing in a certain region of video window, and then to realize and the other side carries out voice dialogue and/or video conversation.When above-mentioned dialog box is the client dialog box comprising video window, when the first above-mentioned multimedia file of client terminal playing, can also but a certain region display text conversation frame be not limited at this dialog box, to realize the text conversation with the other side.
Alternatively, in the present embodiment, in the dialog box in the first client during play multimedia file, in this dialog box can also but be not limited to the indication information that displays the play, wherein, above-mentioned broadcasting indication information can include but not limited to following one of at least:
1) whether the second client is used to indicate just at the indication information of play multimedia file;
2) indication information of multimedia file playing progress rate is on a second client used to indicate.
Alternatively, in the present embodiment, in the dialog box in the first client during play multimedia file, Play Control can also be carried out to above-mentioned multimedia file, wherein, above-mentioned Play Control can include but not limited to following one of at least: F.F., rewind, time-out, closedown.Alternatively, in the present embodiment, receive be used to indicate the mode that the Play Control instruction of Play Control carried out to multimedia file can include but not limited to following one of at least: Play Control operation detected in this locality, receive server and respond the Play Control instruction that request that the second client sends produces.
Alternatively, in the present embodiment, in dialog box in the first client during play multimedia file, if after the Play Control instruction of instruction " closedown " this multimedia file being detected, also comprise: turn back to former dialog box and proceed dialogue, stop two-party conversation.
Specifically be described in conjunction with following example, for video conversation, suppose that the first client 402 and the second client 404 carry out video conversation, wherein, the head portrait (as Suo Shi Fig. 3 (a)) of dialogue both sides is shown in dialog box in first client 402, then, first client 402 shares film M by server request and the second client 404, server is after the broadcasting receiving the second client 404 confirms instruction, the first client 402 and the second client 404 is given by the data flow of film M, this film M can be seen by dialog box to make both sides simultaneously, as shown in Figure 4, the other side's (namely captured by the second client 404) head portrait and film M will be shown in the dialog box of the first client 402, simultaneously the second client 404 also will show the other side's (namely captured by the first client 402) head portrait and film M, thus realize directly by dialog box play multimedia file, reach the object reducing operation complexity.
By the embodiment that the application provides, the communication link between the first client and the second client is set up by server, and utilize this server to send the data flow of the multimedia file that will share to the first client, thus make sign in the first account of the first client and sign in the window sharing same multimedia file of the second account by talking with of the second client, overcome in prior art owing to realizing by third party's instrument the problem that multimedia file shares caused complicated operation, and then while achieving and simplifying the operation, also assures that dialogue both sides synchronously can share same multimedia file, improve Consumer's Experience.
As the optional scheme of one, after the second client is according to play multimedia file in the data flow of multimedia file dialog box on a second client, also comprise:
S1, the second client judges whether to detect that Play Control operates in this locality, or whether receive Play Control instruction from server, wherein, Play Control instruction is responded by server that request that the first client sends produces;
S2, detect that Play Control operates if judge in this locality, then the second client end response Play Control operation carries out Play Control to the multimedia file play in dialog box, and sends the instruction being used to indicate the first client and operating the multimedia file execution Play Control play in the first client to server;
S3, receives Play Control instruction if judge from server, then responds Play Control instruction and carry out Play Control to the multimedia file play in dialog box.
Alternatively, in the present embodiment, the Play Control instruction that above-mentioned server produces can be, but not limited to: after the second client detects Play Control operation, to the Play Control signaling that the request of server transmission Play Control produces.Wherein, the mode of operation of above-mentioned Play Control operation can include but not limited to following one of at least: click, drag.Wherein, the operation of above-mentioned Play Control can include but not limited to following one of at least: F.F., rewind, time-out, closedown.
Specifically be described in conjunction with following example, as shown in Figure 10, can be, but not limited in the dialog box of the first client arrange Play Control operation keys, such as, when local operation multimedia file being performed to F.F. 10s (as shown in phantom in FIG.) being detected, after then proceeding to 10s soon from multimedia file (such as, picture frame corresponding to position 15m20s) starts to continue to play, this Play Control is operated the operational order produced simultaneously and send to server, to make server, this operational order is sent to the second client, thus control the multimedia file also F.F. 10s that plays in the dialog box of the second client simultaneously.
By the embodiment that the application provides, judge whether to detect that Play Control operates in this locality by the first client, or, whether receive from server and respond by server the Play Control instruction that request that the second client sends produces, thus the multimedia file achieved sharing carries out Play Control in real time, further, also achieve the Synchronization Control to shared both sides, synchronous broadcasting can be realized to make dialogue both sides.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Embodiment 3
The embodiment of the present invention also provides another multimedia file to share embodiment of the method, and the applied environment of this embodiment is identical with embodiment 1, and the present embodiment does not repeat them here.
According to the embodiment of the present invention, additionally provide a kind of multimedia file and share method, as shown in figure 14, the method comprises:
S1402, server receives the first sharing request instruction that the first client sends, and wherein, the first sharing request instruction is used to indicate server and the multimedia file being stored in network side is shared to the first client and the second client;
S1404, server sends the second sharing request instruction to the second client, wherein, the second sharing request instruction for ask the second client to accept to play the multimedia file shared;
S1406, if server receives the broadcasting confirmation instruction being used to indicate play multimedia file that the second client sends, then gives the first client and the second client by the data flow of multimedia file.
Alternatively, in the present embodiment, above-mentioned multimedia file is shared method and be can be, but not limited to be applied in the process of communication session, thus realize sharing same multimedia file by the dialog box in the client that directly utilizes dialogue both sides to log in, and then overcome in prior art and share the higher problem of caused operation complexity owing to carrying out multimedia file by third party's instrument.Such as, shown in composition graphs 1, Fig. 3, the second account ID_2 of the second client logs on the first client logs first account ID_1 and terminal 102-2 on terminal 102-1 carries out video conversation, as Fig. 3 (a) is depicted as the head portrait of dialogue both sides.In dialog procedure, first user end to server 104 have sent the sharing request instruction sharing multimedia file (film M as shown in Figure 3) with the second client, server 104 is after the broadcasting receiving the second client transmission confirms instruction, the data flow of above-mentioned film M is sent to the first client, wherein, above-mentioned film M plays in the dialog box of the first client, as Fig. 3 (b) the window be shown in dialog box play.Above-mentioned citing is a kind of example, and the present embodiment does not do any restriction to this.
Alternatively, in the present embodiment, can include but not limited in above-mentioned first sharing request instruction: share recipient's title, the title sharing multimedia file and address.Can include but not limited in above-mentioned second sharing request instruction: sharing request party name, share multimedia file title, for asking whether to receive the request message of this sharing request.
Alternatively, in the present embodiment, before the first user end to server sends sharing request instruction, also comprise:
S1, receives the second client being used to indicate the first client and dialogue and carries out the shared control command of multimedia file;
S2, respond above-mentioned control command display multimedia file list, and receive file selection instruction, wherein, file selection instruction is for selecting the multimedia file that will share;
S3, generates sharing request instruction according to above-mentioned file selection instruction.
Alternatively, in the present embodiment, in dialog box in the first client during play multimedia file, the both sides that first client and the second client engage in the dialogue can also proceed to talk with, wherein, the mode of dialogue comprise following one of at least: text conversation, voice dialogue, video conversation.
Alternatively, in the present embodiment, above-mentioned dialog box can include but not limited to following one of at least: video window, comprise the client dialog box of video window.Wherein, when above-mentioned dialog box is video window, when the first above-mentioned multimedia file of client terminal playing, can also but be not limited to play the image being provided with the camera in the terminal of the second client and photographing in a certain region of video window, and then to realize and the other side carries out voice dialogue and/or video conversation.When above-mentioned dialog box is the client dialog box comprising video window, when the first above-mentioned multimedia file of client terminal playing, can also but a certain region display text conversation frame be not limited at this dialog box, to realize the text conversation with the other side.
Alternatively, in the present embodiment, in the dialog box in the first client during play multimedia file, in this dialog box can also but be not limited to the indication information that displays the play, wherein, above-mentioned broadcasting indication information can include but not limited to following one of at least:
1) whether the second client is used to indicate just at the indication information of play multimedia file;
2) indication information of multimedia file playing progress rate is on a second client used to indicate.
Alternatively, in the present embodiment, in the dialog box in the first client during play multimedia file, Play Control can also be carried out to above-mentioned multimedia file, wherein, above-mentioned Play Control can include but not limited to following one of at least: F.F., rewind, time-out, closedown.Alternatively, in the present embodiment, receive be used to indicate the mode that the Play Control instruction of Play Control carried out to multimedia file can include but not limited to following one of at least: Play Control operation detected in this locality, receive server and respond the Play Control instruction that request that the second client sends produces.
Alternatively, in the present embodiment, in dialog box in the first client during play multimedia file, if after the Play Control instruction of instruction " closedown " this multimedia file being detected, also comprise: turn back to former dialog box and proceed dialogue, stop two-party conversation.
Specifically be described in conjunction with following example, for video conversation, suppose that the first client 402 and the second client 404 carry out video conversation, wherein, the head portrait (as Suo Shi Fig. 3 (a)) of dialogue both sides is shown in dialog box in first client 402, then, first client 402 shares film M by server request and the second client 404, server is after the broadcasting receiving the second client 404 confirms instruction, the first client 402 and the second client 404 is given by the data flow of film M, this film M can be seen by dialog box to make both sides simultaneously, as shown in Figure 4, the other side's (namely captured by the second client 404) head portrait and film M will be shown in the dialog box of the first client 402, simultaneously the second client 404 also will show the other side's (namely captured by the first client 402) head portrait and film M, thus realize directly by dialog box play multimedia file, reach the object reducing operation complexity.
By the embodiment that the application provides, the communication link between the first client and the second client is set up by server, and utilize this server to send the data flow of the multimedia file that will share to the first client, thus make sign in the first account of the first client and sign in the window sharing same multimedia file of the second account by talking with of the second client, overcome in prior art owing to realizing by third party's instrument the problem that multimedia file shares caused complicated operation, and then while achieving and simplifying the operation, also assures that dialogue both sides synchronously can share same multimedia file, improve Consumer's Experience.
As the optional scheme of one, comprise the data flow of multimedia file to the first client and the second client:
S1, server obtains the network storage address of multimedia file from sharing request instruction, or server obtains the mark of multimedia file from sharing request instruction, and obtains the network storage address of multimedia file according to mark;
S2, the data flow of multimedia file to obtain multimedia file, and is given the first client and the second client according to predetermined condition by server access network storage address.
Specifically be described in conjunction with following example, to carry the sharing request instruction of multimedia file in the network storage address of network side, server is after receiving above-mentioned sharing request instruction, by the multimedia file will shared with acquisition by the application server corresponding to access address above mentioned, and its download parsing is preserved.
By the embodiment that the application provides, by corresponding to shared multimedia file in the network storage address of network side or the mark of multimedia file, realize obtaining by the identifier lookup of the above-mentioned network storage address of server by utilizing or multimedia file the multimedia file that will share, and then give the first client and the second client by the data flow of this multimedia file, reach the object of shared multimedia file.
As the optional scheme of one, comprise the data flow of multimedia file to the first client and the second client according to predetermined condition:
S1, server obtains the first client and the second client place network of network transmission speed;
S2, server sends the transmission speed of the data flow of multimedia file to the first client and the second client according to network transfer speeds adjustment, to make the first client and the second client synchronization play multimedia file.
Alternatively, in the present embodiment, while transmission RTP packet, also want timed sending RTCP (RTP Control Protocol, RTP Control Protocol) control bag, the response controlling bag by the RTCP terminal being provided with the first client fed back and the terminal place network of network transmission speed being provided with the second client, judge whether to need adjustment to send the transmission speed of the data flow of multimedia file to the first client and the second client.
Specifically be described in conjunction with following example, supposing that the response data packet controlling to wrap by RTCP feeds back the network transfer speeds obtaining the first client is 20M/s, the network transfer speeds of the second client is 25M/s, and before according to 15M/s transmission, then need the transmission speed adjusting the data flow sending multimedia file.
By the embodiment that the application provides, the transmission speed of the data flow of the multimedia file sending to the first client and the second client is adjusted in real time by server, realize controlling flexibly the first client and the second client the multimedia file shared, reach the object making the synchronous play multimedia file of dialogue both sides.
Embodiment 4
According to the embodiment of the present invention, provide a kind of embodiment of multimedia file shared terminal, above-mentioned multimedia file shared terminal can be, but not limited to be applied to the terminal 102-1 in network environment as shown in Figure 1, the terminal 102-1 being provided with the first client sends the request instruction sharing play multimedia file to server 104, server 104 is after the broadcasting obtaining the terminal 102-2 transmission being provided with the second client confirms instruction, the above-mentioned multimedia file being stored in network side is shared to the terminal 102-1 being provided with the first client and the terminal 102-2 being provided with the second client, directly can share with the second account of the first account and the second client that make the first client engaged in the dialogue and play same multimedia file.Alternatively, in the present embodiment, above-mentioned network can include but not limited to: wide area network, metropolitan area network, local area network (LAN).Alternatively, in the present embodiment, above-mentioned terminal can include but not limited to following one of at least: mobile phone, panel computer, notebook computer, PC.Above-mentioned just a kind of example, the present embodiment does not do any restriction to this.
According to the embodiment of the present invention, provide a kind of multimedia file shared terminal, as shown in figure 15, this terminal comprises:
1) transmitting element 1502, for sending sharing request instruction by the first user end to server, wherein, sharing request instruction is used to indicate server and the multimedia file being stored in network side is shared to the first client and the second client;
2) the first receiving element 1504, for the data flow of the multimedia file by the first client reception server transmission;
3) the first broadcast unit 1506, for by the first client according to play multimedia file in the dialog box of the data flow of multimedia file in the first client, wherein, dialog box engages in the dialogue with the second account signing in the second client for the first account signing in the first client.
Alternatively, in the present embodiment, above-mentioned multimedia file is shared method and be can be, but not limited to be applied in the process of communication session, thus realize sharing same multimedia file by the dialog box in the client that directly utilizes dialogue both sides to log in, and then overcome in prior art and share the higher problem of caused operation complexity owing to carrying out multimedia file by third party's instrument.Such as, shown in composition graphs 1, Fig. 3, the second account ID_2 of the second client logs on the first client logs first account ID_1 and terminal 102-2 on terminal 102-1 carries out video conversation, as Fig. 3 (a) is depicted as the head portrait of dialogue both sides.In dialog procedure, first user end to server 104 have sent the sharing request instruction sharing multimedia file (film M as shown in Figure 3) with the second client, server 104 is after the broadcasting receiving the second client transmission confirms instruction, the data flow of above-mentioned film M is sent to the first client, wherein, above-mentioned film M plays in the dialog box of the first client, as Fig. 3 (b) the window be shown in dialog box play.Above-mentioned citing is a kind of example, and the present embodiment does not do any restriction to this.
Alternatively, in the present embodiment, before the first user end to server sends sharing request instruction, also comprise:
S1, receives the second client being used to indicate the first client and dialogue and carries out the shared control command of multimedia file;
S2, respond above-mentioned control command display multimedia file list, and receive file selection instruction, wherein, file selection instruction is for selecting the multimedia file that will share;
S3, generates sharing request instruction according to above-mentioned file selection instruction.
Alternatively, in the present embodiment, in dialog box in the first client during play multimedia file, the both sides that first client and the second client engage in the dialogue can also proceed to talk with, wherein, the mode of dialogue comprise following one of at least: text conversation, voice dialogue, video conversation.
Alternatively, in the present embodiment, above-mentioned dialog box can include but not limited to following one of at least: video window, comprise the client dialog box of video window.Wherein, when above-mentioned dialog box is video window, when the first above-mentioned multimedia file of client terminal playing, can also but be not limited to play the image being provided with the camera in the terminal of the second client and photographing in a certain region of video window, and then to realize and the other side carries out voice dialogue and/or video conversation.When above-mentioned dialog box is the client dialog box comprising video window, when the first above-mentioned multimedia file of client terminal playing, can also but a certain region display text conversation frame be not limited at this dialog box, to realize the text conversation with the other side.
Alternatively, in the present embodiment, in the dialog box in the first client during play multimedia file, in this dialog box can also but be not limited to the indication information that displays the play, wherein, above-mentioned broadcasting indication information can include but not limited to following one of at least:
1) whether the second client is used to indicate just at the indication information of play multimedia file;
2) indication information of multimedia file playing progress rate is on a second client used to indicate.
Alternatively, in the present embodiment, in the dialog box in the first client during play multimedia file, Play Control can also be carried out to above-mentioned multimedia file, wherein, above-mentioned Play Control can include but not limited to following one of at least: F.F., rewind, time-out, closedown.Alternatively, in the present embodiment, receive be used to indicate the mode that the Play Control instruction of Play Control carried out to multimedia file can include but not limited to following one of at least: Play Control operation detected in this locality, receive server and respond the Play Control instruction that request that the second client sends produces.
Alternatively, in the present embodiment, in dialog box in the first client during play multimedia file, if after the Play Control instruction of instruction " closedown " this multimedia file being detected, also comprise: turn back to former dialog box and proceed dialogue, stop two-party conversation.
Specifically be described in conjunction with following example, for video conversation, suppose that the first client 402 and the second client 404 carry out video conversation, wherein, the head portrait (as Suo Shi Fig. 3 (a)) of dialogue both sides is shown in dialog box in first client 402, then, first client 402 shares film M by server request and the second client 404, server is after the broadcasting receiving the second client 404 confirms instruction, the first client 402 and the second client 404 is given by the data flow of film M, this film M can be seen by dialog box to make both sides simultaneously, as shown in Figure 4, the other side's (namely captured by the second client 404) head portrait and film M will be shown in the dialog box of the first client 402, simultaneously the second client 404 also will show the other side's (namely captured by the first client 402) head portrait and film M, thus realize directly by dialog box play multimedia file, reach the object reducing operation complexity.
By the embodiment that the application provides, the communication link between the first client and the second client is set up by server, and utilize this server to send the data flow of the multimedia file that will share to the first client, thus make sign in the first account of the first client and sign in the window sharing same multimedia file of the second account by talking with of the second client, overcome in prior art owing to realizing by third party's instrument the problem that multimedia file shares caused complicated operation, and then while achieving and simplifying the operation, also assures that dialogue both sides synchronously can share same multimedia file, improve Consumer's Experience.
As the optional scheme of one, the first broadcast unit 1506 comprises:
1) decoder module, for being decoded by the data flow of the first client to multimedia file, obtains the Frame of multimedia file;
2) the first playing module, for the Frame obtained by the first client broadcast decoder in dialog box.
Alternatively, in the present embodiment, before the data flow of the first client to multimedia file is decoded, also comprise: server obtains the multimedia file that will share according to the instruction of sharing request instruction, and downloaded, resolve, send according to predetermined protocol again subpackage, packing.Further, the first client receive server send multimedia data stream after, can directly decode and broadcast decoder after Frame, wherein, above-mentioned Frame can include but not limited to: audio frame, image are just.
Specifically be described in conjunction with following example, as shown in Figure 5, server obtains the memory address of the multimedia file that will share, from this memory address downloading multimedia file, as shown in step S502, then step S504 is performed, resolve this multimedia file, by the multimedia file that the obtains RTP (RTP according to standard, Real-time Transport Protocol) re-start packing and the subpackage of data, as step S506, and perform step S508, above-mentioned multimedia file data stream is sent to the first client 502 and the second client 504.Then as step S510-S516, the multimedia file data stream that reception server sends by the first client 502 and the second client 504, and utilize the Frame of the decoder of audio frequency and video engine to multimedia file to decode.Alternatively, above-mentioned steps S512 operates with the reception of step S514 and can be, but not limited to: synchronously perform reception, asynchronous execution receives.
By the embodiment that the application provides, directly the data flow of the multimedia file received is carried out decoding display in client, and without the need to performing complicated sharing operation, reach and the logic of complexity is transferred to server process, thus reduce the workload of client, and then achieve loading velocity when improving client terminal playing multimedia file.
As the optional scheme of one, the first broadcast unit 1506 comprises:
1) the second playing module, for passing through the first client play multimedia file in the first area of dialog box, wherein, dialog box also comprises: second area, and second area is for receiving the information of input; 3rd region, the 3rd region is for showing the information from the second client.
Alternatively, in the present embodiment, the above-mentioned information from the second client can include but not limited to following one of at least: the broadcasting indication information being provided with play multimedia file in the image captured by the camera in the terminal of the second client, the second client.Wherein, the image of above-mentioned camera shooting can be, but not limited to the head portrait of the user for using the second client.Wherein, above-mentioned broadcasting indication information include but not limited to following one of at least: be used to indicate the second client whether just play multimedia file indication information, be used to indicate the indication information of multimedia file playing progress rate on a second client.
Alternatively, in the present embodiment, above-mentioned dialog box can be, but not limited to: the client dialog box comprising video window, as shown in Figure 6 at the first half display video window of above-mentioned dialog box.
Specifically be described in conjunction with following example, as shown in Figure 6, first client plays the multimedia file shared in the first area (player window of the first half in dialog box as shown in Figure 6) of dialog box, the text message of input is received in second area (the text conversation window of the latter half in dialog box as shown in Figure 6), to realize continuing to keep actual conversation with the other side, and the 3rd region (window in the upper left corner as shown in Figure 6) display from the second client information (such as, Figure 6 shows that the head portrait captured by camera in the terminal being provided with the second client).
By the embodiment that the application provides, while play multimedia file in the dialog box of the first client, also by keeping the actual conversation with the second client from the information of the second client, achieve the dialogue of broadcasting limit, limit, make dialogue both sides on the basis of shared multimedia file, the viewing gains in depth of comprehension to multimedia file can also be shared.
As the optional scheme of one, dialog box is video conversation window, and the first broadcast unit 1506 comprises:
1) the 3rd playing module, for passing through the first client play multimedia file in the 4th region of video conversation window, wherein, video conversation window also comprises: the 5th region, 5th region is for showing the image received, and wherein, image is taken by the camera installed in the terminal of the second client and obtained, or image is the image in the multimedia file of current broadcasting in the second client.
Alternatively, in the present embodiment, the above-mentioned information from the second client can also include but not limited to except above-mentioned information: the image in the multimedia file of current broadcasting in the second client.
Alternatively, in the present embodiment, above-mentioned dialog box can be, but not limited to: video window, is displayed in full screen video conversation window as shown in Figure 7.
Specifically be described in conjunction with following example, as shown in Figure 7, first client plays the multimedia file shared in the 4th region (player window of the latter half in dialog box as shown in Figure 7) of dialog box, in the information (such as, Figure 7 shows that image in the multimedia file of second client in current broadcasting) of the 5th region the window of the upper left corner (in the dialog box as shown in Figure 7) display from the second client.
By the embodiment that the application provides, while played in full screen multimedia file in the dialog box of the first client, also by keeping the actual conversation with the second client from the information of the second client, when watching local shared multimedia file, the situation that the other side watches can also be seen, achieve when played in full screen shares multimedia file, can talk with to make dialogue both sides on the basis of shared multimedia file on broadcasting limit, limit, the viewing gains in depth of comprehension to multimedia file can also be shared.
As the optional scheme of one, above-mentioned terminal also comprises:
1) the second broadcast unit, for in the first client according in the dialog box of the data flow of multimedia file in the first client during play multimedia file, to be displayed the play on dialog box indication information by the first client, wherein, play instruction and whether be used to indicate the second client just at play multimedia file; And/or
2) the 3rd broadcast unit, the first client displays the play tempo instructions information on dialog box, and wherein, playing progress rate indication information is used to indicate multimedia file playing progress rate on a second client.
Specifically be described in conjunction with following example, as shown in Figure 8, can be, but not limited in the dialog box of the first client arrange an indicator light, when this indicator light lights, represent the second client playing the first client share cross media file; When indicator light extinguishes, represent the second client stopped broadcasting first client share cross media file.
Again such as, as shown in Figure 9, can be, but not limited to arrange a progress bar in the dialog box of the first client, wherein, this progress bar is used to indicate multimedia file playing progress rate on a second client, and as shown in the figure, the second client plays to 40%.
By the embodiment that the application provides, by arranging for pointing out multimedia file at the broadcasting indication information of the broadcasting situation of the second client in dialog box, achieve while multimedia file is shared in first client this locality viewing, the broadcasting situation of multimedia file in the second client can also be seen, while reaching shared multimedia file, the broadcast state of multimedia file can also be shared, further improve the result of broadcast that multimedia file is shared.
As the optional scheme of one, above-mentioned terminal also comprises:
1) judging unit, for after the first client is according to play multimedia file in the dialog box of the data flow of multimedia file in the first client, judge whether to detect that Play Control operates in this locality by the first client, or, whether receive Play Control instruction from server, wherein, Play Control instruction responds by server the request that the second client sends and produces;
2) the first control unit, for when judging to detect that Play Control operates in this locality, by the first client end response Play Control operation, Play Control is carried out to the multimedia file play in dialog box, and send the instruction being used to indicate the second client and the multimedia file execution Play Control play on a second client is operated to server;
3) the second control unit, for when judging to receive Play Control instruction from server, carries out Play Control by the first client end response Play Control instruction to the multimedia file play in dialog box.
Alternatively, in the present embodiment, the Play Control instruction that above-mentioned server produces can be, but not limited to: after the second client detects Play Control operation, to the Play Control signaling that the request of server transmission Play Control produces.Wherein, the mode of operation of above-mentioned Play Control operation can include but not limited to following one of at least: click, drag.Wherein, the operation of above-mentioned Play Control can include but not limited to following one of at least: F.F., rewind, time-out, closedown.
Specifically be described in conjunction with following example, as shown in Figure 10, can be, but not limited in the dialog box of the first client arrange Play Control operation keys, such as, when local operation multimedia file being performed to F.F. 10s (as shown in phantom in FIG.) being detected, after then proceeding to 10s soon from multimedia file (such as, picture frame corresponding to position 15m20s) starts to continue to play, this Play Control is operated the operational order produced simultaneously and send to server, to make server, this operational order is sent to the second client, thus control the multimedia file also F.F. 10s that plays in the dialog box of the second client simultaneously.
By the embodiment that the application provides, judge whether to detect that Play Control operates in this locality by the first client, or, whether receive from server and respond by server the Play Control instruction that request that the second client sends produces, thus the multimedia file achieved sharing carries out Play Control in real time, further, also achieve the Synchronization Control to shared both sides, synchronous broadcasting can be realized to make dialogue both sides.
As the optional scheme of one, above-mentioned terminal also comprises:
1) display unit, before sending sharing request instruction at the first user end to server, by the first client display multimedia file list, wherein, multimedia file list comprises: one or more title being stored in the multimedia file to be played of network side, and multimedia file to be played comprises: multimedia file;
2) the second receiving element, for receiving file selection instruction by the first client, wherein, file selection instruction is for selecting multimedia file;
3) generation unit, for generating sharing request instruction by the first client end response file selection instruction.
Alternatively, in the present embodiment, above-mentioned multimedia file list can include but not limited to the title of the multimedia file one or more to be played being stored in network side.Wherein, the title of above-mentioned multimedia file to be played can be selected according to following at least one principle: area, time, type.
Specifically be described in conjunction with following example, as shown in figure 11, first client is after click is shared, demonstrate multimedia file list as shown in figure 12, after receiving file selection instruction, the first client will respond above-mentioned file selection instruction and generate sharing request instruction, such as, suppose that film B is selected in the instruction of file selection instruction, then will generate the sharing request instruction sharing film B.
By the embodiment that the application provides, by selecting the multimedia file that will share in the multimedia file list of display, and then generate sharing request instruction, thus make the first client of engaging in the dialogue and the second client can share same multimedia file.
As the optional scheme of one, generation unit comprises:
1) generation module, for carrying the network storage address of multimedia file at network side or the mark of multimedia file by the first client in sharing request instruction.
Alternatively, in the present embodiment, can be, but not limited in above-mentioned sharing request instruction carry following at least one information: multimedia file in the network storage address of network side, multimedia file is in the mark of database.Wherein, when the client for talking with belongs to same company with the multimedia file shared, directly can obtain by the mark ID of intra-company's database the multimedia file that will share.
Specifically be described in conjunction with following example, to carry the sharing request instruction of multimedia file in the network storage address of network side, server is after receiving above-mentioned sharing request instruction, by the multimedia file will shared with acquisition by the application server corresponding to access address above mentioned, and its download parsing is preserved.
By the embodiment that the application provides, by corresponding to shared multimedia file in the network storage address of network side or the mark of multimedia file, realize obtaining by the identifier lookup of the above-mentioned network storage address of server by utilizing or multimedia file the multimedia file that will share, and then give the first client and the second client by the data flow of this multimedia file, reach the object of shared multimedia file.
Embodiment 5
The embodiment of the present invention also provides another kind of multimedia file shared terminal embodiment, the applied environment of this embodiment is identical with embodiment 1, above-mentioned multimedia file shared terminal can be, but not limited to be applied to the terminal 102-2 in network environment as shown in Figure 1, and the present embodiment does not repeat them here.
According to the embodiment of the present invention, additionally provide a kind of multimedia file shared terminal, as shown in figure 16, this terminal comprises:
1) the first receiving element 1602, for the sharing request instruction sent by the second client reception server, wherein, sharing request instruction is used to indicate server and the multimedia file being stored in network side is shared to the first client and the second client;
2) transmitting element 1604, confirms instruction for sending to share by the second user end to server;
3) the first broadcast unit 1606, for the data flow of the multimedia file by the second client reception server transmission, and according to play multimedia file in the data flow of multimedia file dialog box on a second client, wherein, dialog box engages in the dialogue with the first account signing in the first client for the second account signing in the second client.
Alternatively, in the present embodiment, above-mentioned multimedia file is shared method and be can be, but not limited to be applied in the process of communication session, thus realize sharing same multimedia file by the dialog box in the client that directly utilizes dialogue both sides to log in, and then overcome in prior art and share the higher problem of caused operation complexity owing to carrying out multimedia file by third party's instrument.Such as, shown in composition graphs 1, Fig. 3, the second account ID_2 of the second client logs on the first client logs first account ID_1 and terminal 102-2 on terminal 102-1 carries out video conversation, as Fig. 3 (a) is depicted as the head portrait of dialogue both sides.In dialog procedure, first user end to server 104 have sent the sharing request instruction sharing multimedia file (film M as shown in Figure 3) with the second client, server 104 is after the broadcasting receiving the second client transmission confirms instruction, the data flow of above-mentioned film M is sent to the first client, wherein, above-mentioned film M plays in the dialog box of the first client, as Fig. 3 (b) the window be shown in dialog box play.Above-mentioned citing is a kind of example, and the present embodiment does not do any restriction to this.
Alternatively, in the present embodiment, before the first user end to server sends sharing request instruction, also comprise:
S1, receives the second client being used to indicate the first client and dialogue and carries out the shared control command of multimedia file;
S2, respond above-mentioned control command display multimedia file list, and receive file selection instruction, wherein, file selection instruction is for selecting the multimedia file that will share;
S3, generates sharing request instruction according to above-mentioned file selection instruction.
Alternatively, in the present embodiment, in dialog box in the first client during play multimedia file, the both sides that first client and the second client engage in the dialogue can also proceed to talk with, wherein, the mode of dialogue comprise following one of at least: text conversation, voice dialogue, video conversation.
Alternatively, in the present embodiment, above-mentioned dialog box can include but not limited to following one of at least: video window, comprise the client dialog box of video window.Wherein, when above-mentioned dialog box is video window, when the first above-mentioned multimedia file of client terminal playing, can also but be not limited to play the image being provided with the camera in the terminal of the second client and photographing in a certain region of video window, and then to realize and the other side carries out voice dialogue and/or video conversation.When above-mentioned dialog box is the client dialog box comprising video window, when the first above-mentioned multimedia file of client terminal playing, can also but a certain region display text conversation frame be not limited at this dialog box, to realize the text conversation with the other side.
Alternatively, in the present embodiment, in the dialog box in the first client during play multimedia file, in this dialog box can also but be not limited to the indication information that displays the play, wherein, above-mentioned broadcasting indication information can include but not limited to following one of at least:
1) whether the second client is used to indicate just at the indication information of play multimedia file;
2) indication information of multimedia file playing progress rate is on a second client used to indicate.
Alternatively, in the present embodiment, in the dialog box in the first client during play multimedia file, Play Control can also be carried out to above-mentioned multimedia file, wherein, above-mentioned Play Control can include but not limited to following one of at least: F.F., rewind, time-out, closedown.Alternatively, in the present embodiment, receive be used to indicate the mode that the Play Control instruction of Play Control carried out to multimedia file can include but not limited to following one of at least: Play Control operation detected in this locality, receive server and respond the Play Control instruction that request that the second client sends produces.
Alternatively, in the present embodiment, in dialog box in the first client during play multimedia file, if after the Play Control instruction of instruction " closedown " this multimedia file being detected, also comprise: turn back to former dialog box and proceed dialogue, stop two-party conversation.
Specifically be described in conjunction with following example, for video conversation, suppose that the first client 402 and the second client 404 carry out video conversation, wherein, the head portrait (as Suo Shi Fig. 3 (a)) of dialogue both sides is shown in dialog box in first client 402, then, first client 402 shares film M by server request and the second client 404, server is after the broadcasting receiving the second client 404 confirms instruction, the first client 402 and the second client 404 is given by the data flow of film M, this film M can be seen by dialog box to make both sides simultaneously, as shown in Figure 4, the other side's (namely captured by the second client 404) head portrait and film M will be shown in the dialog box of the first client 402, simultaneously the second client 404 also will show the other side's (namely captured by the first client 402) head portrait and film M, thus realize directly by dialog box play multimedia file, reach the object reducing operation complexity.
By the embodiment that the application provides, the communication link between the first client and the second client is set up by server, and utilize this server to send the data flow of the multimedia file that will share to the first client, thus make sign in the first account of the first client and sign in the window sharing same multimedia file of the second account by talking with of the second client, overcome in prior art owing to realizing by third party's instrument the problem that multimedia file shares caused complicated operation, and then while achieving and simplifying the operation, also assures that dialogue both sides synchronously can share same multimedia file, improve Consumer's Experience.
As the optional scheme of one, above-mentioned terminal also comprises:
1) judging unit, for after the second client is according to play multimedia file in the data flow of multimedia file dialog box on a second client, judge whether to detect that Play Control operates in this locality by the second client, or, whether receive Play Control instruction from server, wherein, Play Control instruction responds by server the request that the first client sends and produces;
2) the first control unit, for when judging to detect that Play Control operates in this locality, by the second client end response Play Control operation, Play Control is carried out to the multimedia file play in dialog box, and send the instruction being used to indicate the first client and the multimedia file execution Play Control play in the first client is operated to server;
3) the second control unit, for when judging to receive Play Control instruction from server, carries out Play Control by the second client end response Play Control instruction to the multimedia file play in dialog box.
Alternatively, in the present embodiment, the Play Control instruction that above-mentioned server produces can be, but not limited to: after the second client detects Play Control operation, to the Play Control signaling that the request of server transmission Play Control produces.Wherein, the mode of operation of above-mentioned Play Control operation can include but not limited to following one of at least: click, drag.Wherein, the operation of above-mentioned Play Control can include but not limited to following one of at least: F.F., rewind, time-out, closedown.
Specifically be described in conjunction with following example, as shown in Figure 10, can be, but not limited in the dialog box of the first client arrange Play Control operation keys, such as, when local operation multimedia file being performed to F.F. 10s (as shown in phantom in FIG.) being detected, after then proceeding to 10s soon from multimedia file (such as, picture frame corresponding to position 15m20s) starts to continue to play, this Play Control is operated the operational order produced simultaneously and send to server, to make server, this operational order is sent to the second client, thus control the multimedia file also F.F. 10s that plays in the dialog box of the second client simultaneously.
By the embodiment that the application provides, judge whether to detect that Play Control operates in this locality by the first client, or, whether receive from server and respond by server the Play Control instruction that request that the second client sends produces, thus the multimedia file achieved sharing carries out Play Control in real time, further, also achieve the Synchronization Control to shared both sides, synchronous broadcasting can be realized to make dialogue both sides.
Embodiment 6
The embodiment of the present invention also provides another multimedia file shared server embodiment, the applied environment of this embodiment is identical with embodiment 1, above-mentioned multimedia file shared server can be, but not limited to the server 104 be applied in network environment as shown in Figure 1, and the present embodiment does not repeat them here.
According to the embodiment of the present invention, additionally provide a kind of multimedia file shared server, as shown in figure 17, this server comprises:
1) receiving element 1702, for receiving the first sharing request instruction that the first client sends, wherein, the first sharing request instruction is used to indicate server and the multimedia file being stored in network side is shared to the first client and the second client;
2) the first transmitting element 1704, for sending the second sharing request instruction to the second client, wherein, the second sharing request instruction for ask the second client to accept to play the multimedia file shared;
3) the second transmitting element 1706, during for confirming instruction in the broadcasting being used to indicate play multimedia file receiving the second client transmission, gives the first client and the second client by the data flow of multimedia file.
Alternatively, in the present embodiment, above-mentioned multimedia file is shared method and be can be, but not limited to be applied in the process of communication session, thus realize sharing same multimedia file by the dialog box in the client that directly utilizes dialogue both sides to log in, and then overcome in prior art and share the higher problem of caused operation complexity owing to carrying out multimedia file by third party's instrument.Such as, shown in composition graphs 1, Fig. 3, the second account ID_2 of the second client logs on the first client logs first account ID_1 and terminal 102-2 on terminal 102-1 carries out video conversation, as Fig. 3 (a) is depicted as the head portrait of dialogue both sides.In dialog procedure, first user end to server 104 have sent the sharing request instruction sharing multimedia file (film M as shown in Figure 3) with the second client, server 104 is after the broadcasting receiving the second client transmission confirms instruction, the data flow of above-mentioned film M is sent to the first client, wherein, above-mentioned film M plays in the dialog box of the first client, as Fig. 3 (b) the window be shown in dialog box play.Above-mentioned citing is a kind of example, and the present embodiment does not do any restriction to this.
Alternatively, in the present embodiment, can include but not limited in above-mentioned first sharing request instruction: share recipient's title, the title sharing multimedia file and address.Can include but not limited in above-mentioned second sharing request instruction: sharing request party name, share multimedia file title, for asking whether to receive the request message of this sharing request.
Alternatively, in the present embodiment, before the first user end to server sends sharing request instruction, also comprise:
S1, receives the second client being used to indicate the first client and dialogue and carries out the shared control command of multimedia file;
S2, respond above-mentioned control command display multimedia file list, and receive file selection instruction, wherein, file selection instruction is for selecting the multimedia file that will share;
S3, generates sharing request instruction according to above-mentioned file selection instruction.
Alternatively, in the present embodiment, in dialog box in the first client during play multimedia file, the both sides that first client and the second client engage in the dialogue can also proceed to talk with, wherein, the mode of dialogue comprise following one of at least: text conversation, voice dialogue, video conversation.
Alternatively, in the present embodiment, above-mentioned dialog box can include but not limited to following one of at least: video window, comprise the client dialog box of video window.Wherein, when above-mentioned dialog box is video window, when the first above-mentioned multimedia file of client terminal playing, can also but be not limited to play the image being provided with the camera in the terminal of the second client and photographing in a certain region of video window, and then to realize and the other side carries out voice dialogue and/or video conversation.When above-mentioned dialog box is the client dialog box comprising video window, when the first above-mentioned multimedia file of client terminal playing, can also but a certain region display text conversation frame be not limited at this dialog box, to realize the text conversation with the other side.
Alternatively, in the present embodiment, in the dialog box in the first client during play multimedia file, in this dialog box can also but be not limited to the indication information that displays the play, wherein, above-mentioned broadcasting indication information can include but not limited to following one of at least:
1) whether the second client is used to indicate just at the indication information of play multimedia file;
2) indication information of multimedia file playing progress rate is on a second client used to indicate.
Alternatively, in the present embodiment, in the dialog box in the first client during play multimedia file, Play Control can also be carried out to above-mentioned multimedia file, wherein, above-mentioned Play Control can include but not limited to following one of at least: F.F., rewind, time-out, closedown.Alternatively, in the present embodiment, receive be used to indicate the mode that the Play Control instruction of Play Control carried out to multimedia file can include but not limited to following one of at least: Play Control operation detected in this locality, receive server and respond the Play Control instruction that request that the second client sends produces.
Alternatively, in the present embodiment, in dialog box in the first client during play multimedia file, if after the Play Control instruction of instruction " closedown " this multimedia file being detected, also comprise: turn back to former dialog box and proceed dialogue, stop two-party conversation.
Specifically be described in conjunction with following example, for video conversation, suppose that the first client 402 and the second client 404 carry out video conversation, wherein, the head portrait (as Suo Shi Fig. 3 (a)) of dialogue both sides is shown in dialog box in first client 402, then, first client 402 shares film M by server request and the second client 404, server is after the broadcasting receiving the second client 404 confirms instruction, the first client 402 and the second client 404 is given by the data flow of film M, this film M can be seen by dialog box to make both sides simultaneously, as shown in Figure 4, the other side's (namely captured by the second client 404) head portrait and film M will be shown in the dialog box of the first client 402, simultaneously the second client 404 also will show the other side's (namely captured by the first client 402) head portrait and film M, thus realize directly by dialog box play multimedia file, reach the object reducing operation complexity.
By the embodiment that the application provides, the communication link between the first client and the second client is set up by server, and utilize this server to send the data flow of the multimedia file that will share to the first client, thus make sign in the first account of the first client and sign in the window sharing same multimedia file of the second account by talking with of the second client, overcome in prior art owing to realizing by third party's instrument the problem that multimedia file shares caused complicated operation, and then while achieving and simplifying the operation, also assures that dialogue both sides synchronously can share same multimedia file, improve Consumer's Experience.
As the optional scheme of one, the second transmitting element 1706 comprises:
1) acquisition module, for obtaining the network storage address of multimedia file from sharing request instruction, or server obtains the mark of multimedia file from sharing request instruction, and obtains the network storage address of multimedia file according to mark;
2) sending module, for accesses network memory address to obtain multimedia file, and gives the first client and the second client according to predetermined condition by the data flow of multimedia file.
Specifically be described in conjunction with following example, to carry the sharing request instruction of multimedia file in the network storage address of network side, server is after receiving above-mentioned sharing request instruction, by the multimedia file will shared with acquisition by the application server corresponding to access address above mentioned, and its download parsing is preserved.
By the embodiment that the application provides, by corresponding to shared multimedia file in the network storage address of network side or the mark of multimedia file, realize obtaining by the identifier lookup of the above-mentioned network storage address of server by utilizing or multimedia file the multimedia file that will share, and then give the first client and the second client by the data flow of this multimedia file, reach the object of shared multimedia file.
As the optional scheme of one, sending module comprises:
1) submodule is obtained, for obtaining the first client and the second client place network of network transmission speed;
2) submodule is sent, for sending the transmission speed of the data flow of multimedia file to the first client and the second client according to network transfer speeds adjustment, to make the first client and the second client synchronization play multimedia file.
Alternatively, in the present embodiment, while transmission RTP packet, also want timed sending RTCP (RTP Control Protocol, RTP Control Protocol) control bag, the response controlling bag by the RTCP terminal being provided with the first client fed back and the terminal place network of network transmission speed being provided with the second client, judge whether to need adjustment to send the transmission speed of the data flow of multimedia file to the first client and the second client.
Specifically be described in conjunction with following example, supposing that the response data packet controlling to wrap by RTCP feeds back the network transfer speeds obtaining the first client is 20M/s, the network transfer speeds of the second client is 25M/s, and before according to 15M/s transmission, then need the transmission speed adjusting the data flow sending multimedia file.
By the embodiment that the application provides, the transmission speed of the data flow of the multimedia file sending to the first client and the second client is adjusted in real time by server, realize controlling flexibly the first client and the second client the multimedia file shared, reach the object making the synchronous play multimedia file of dialogue both sides.
Embodiment 7
The embodiment of the present invention also provides another multimedia file shared terminal embodiment, and the applied environment of this embodiment is identical with embodiment 1, and the present embodiment does not repeat them here.
According to the embodiment of the present invention, additionally provide a kind of terminal sharing method for implementing above-mentioned multimedia file, this terminal comprises:
1) memory, be set to buffer memory the Frame of multimedia file shared.
2) processor, is set to the data stream of the multimedia file received, to obtain the Frame of multimedia file.
3) communication interface, be set to send sharing request instruction to server, and the data flow of the multimedia file of reception server transmission, wherein, sharing request instruction is used to indicate server and the multimedia file being stored in network side is shared to the first client and the second client.
Alternatively, in the present embodiment, above-mentioned memory can also be used for storing other data stored in the shared procedure in above-described embodiment 1.
Alternatively, the concrete example in the present embodiment can with reference to the example described in above-described embodiment 1 and embodiment 2, and the present embodiment does not repeat them here.
Embodiment 8
The embodiment of the present invention also provides another multimedia file shared server embodiment, and the applied environment of this embodiment is identical with embodiment 1, and the present embodiment does not repeat them here.
According to the embodiment of the present invention, additionally provide a kind of server sharing method for implementing above-mentioned multimedia file, this server comprises:
1) memory, be set to store the multimedia file shared.
2) processor, is set to resolve and downloads shared multimedia file, and by multimedia file according to predetermined condition again subpackage and packing.
3) communication interface, is set to the sharing request instruction that reception first client sends, and by the data flow of multimedia file that gets to the first client and the second client.
Alternatively, in the present embodiment, above-mentioned memory can also be used for storing other data stored in the shared procedure in above-described embodiment 1.
Alternatively, the concrete example in the present embodiment can with reference to the example described in above-described embodiment 3, and the present embodiment does not repeat them here.
Embodiment 9
The embodiment of the present invention also provides another multimedia file to share storage medium embodiment, and the applied environment of this embodiment is identical with embodiment 1, and the present embodiment does not repeat them here.
Alternatively, in the present embodiment, storage medium is set to store the program code for performing following steps:
S1, send sharing request instruction by the first user end to server, wherein, sharing request instruction is used to indicate server and the multimedia file being stored in network side is shared to the first client and the second client;
S2, the data flow of the multimedia file sent by the first client reception server;
S3, by the first client according to play multimedia file in the dialog box of the data flow of multimedia file in the first client, wherein, dialog box engages in the dialogue with the second account signing in the second client for the first account signing in the first client.
Alternatively, in the present embodiment, above-mentioned storage medium can include but not limited to: USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), portable hard drive, magnetic disc or CD etc. various can be program code stored medium.
Alternatively, the concrete example in the present embodiment can with reference to the example described in above-described embodiment 1, and the present embodiment does not repeat them here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
If the integrated unit in above-described embodiment using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in the storage medium that above computer can read.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in storage medium, comprises all or part of step of some instructions in order to make one or more computer equipment (can be personal computer, server or the network equipment etc.) perform method described in each embodiment of the present invention.
In the above embodiment of the present invention, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
In several embodiments that the application provides, should be understood that, disclosed client, the mode by other realizes.Wherein, device embodiment described above is only schematic, the such as division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of unit or module or communication connection can be electrical or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.