Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Adopt the embodiment of the present invention can make to share between terminal the fragment in media file.
Refer to Fig. 1, Fig. 1 is a kind of schematic flow sheet of sharing the method for media file fragments of the embodiment of the present invention.The media file that the embodiment of the present invention relates to can be the file that audio/video file, matchmaker provide the types such as file and word novel, and related terminal can be the networked devices such as Set Top Box or integration television.The present embodiment is illustrated with video file.
As shown in Figure 1, a kind of method of sharing media file fragments of the embodiment of the present invention can comprise the following steps.
Step 100, arranges according to the bookmark of terminal use's input the characteristic information that media file fragments is obtained in instruction, and characteristic information comprises the identify label of media file and the period information of media file fragments.
In specific implementation, when user watches video to wonderful, if want, be shared with good friend, input bookmark instruction is set, wherein the broadcasting start time point of the video segment that instruction comprises that user selects to be set and to play end time point be period information to bookmark, the terminal reception of clicking user after confirming arranges according to the bookmark of user's input the characteristic information that video segment is obtained in instruction, and characteristic information comprises the identify label of media file and the period information of video segment.Characteristic information also comprises the descriptor of user to video segment input, user terminal can, after user has arranged the broadcasting start time point of video segment and play end time point, eject dialog box and allow user input the general description to the content of video segment.As a kind of enforceable mode, user can choose a plurality of video segments in video file.
Step 110, when receive terminal use input share user's identification information time, according to characteristic information, terminal use's identification information and the identification information of sharing user, generate and share request.
In specific implementation, when user's terminal receives the identification information of sharing user of user's input, be i.e., during good friend that user's input is shared, according to the characteristic information of video segment, user's identification information and good friend's identification information, generate and share request.
Step 120, will share request and send to back-stage management server so that share that user's terminal receives that back-stage management server sends according to the information of sharing request and generating, information comprises terminal use's identification information.
In specific implementation, user's terminal sends to back-stage management server by the request of sharing generating, the request of sharing that back-stage management server sends according to user's terminal generates information, and information is sent to good friend's terminal, information comprises user's identification information, to point out good friend, is which user shares to good friend.
As a kind of enforceable mode, information also can comprise the descriptor of user to video file, makes good friend can understand intuitively the content of user's sharing video frequency file.
As a kind of enforceable mode, back-stage management server sends in the terminal that receives user share request after, the identification information of sharing the characteristic information of the video segment in request, user's identification information and good friend is preserved, to generate according to the characteristic information of video segment the terminal plays that play content is sent to good friend.
By implementing the described method of Fig. 1, the terminal that can make user arranges according to user's bookmark the relevant information that the video file that user shares is obtained in instruction, generation is shared and will be shared request after request and send to back-stage management server, by back-stage management server, sending information watches with prompting good friend to good friend's terminal, can make the fragment in any selecting video file of user, and be shared with and specify good friend, realized sharing of media file fragments between terminal, strengthen user's experience sense.
Refer to Fig. 2, Fig. 2 is the method flow schematic diagram that the another kind of the embodiment of the present invention is shared media file fragments.The media file that the embodiment of the present invention relates to can be the file that audio/video file, matchmaker provide the types such as file and word novel, and related terminal can be the networked devices such as Set Top Box or integration television.The present embodiment is illustrated with video file.
As shown in Figure 2, the method that the another kind of the embodiment of the present invention is shared media file fragments can comprise the following steps.
Step 200, receive the request of sharing that user's terminal sends, share that request comprises the characteristic information of the media file fragments that terminal use need share, terminal use's identification information and the identification information of sharing user, characteristic information comprises the identify label of media file and the period information of media file fragments.
In specific implementation, back-stage management server receives the request of sharing that user's terminal sends, and the process of establishing of sharing request can refer to step 100 and the step 110 of embodiment Fig. 1.
Step 210, generates information and information is sent to the terminal of sharing user according to the request of sharing receiving, and information comprises terminal use's identification information.
In specific implementation, the identification information of sharing the user in request that back-stage management server sends according to user's terminal and good friend's identification information generate information, and information is sent to good friend's terminal, to point out good friend, be which user shares to good friend.
As a kind of enforceable mode, information also can comprise the descriptor of user to video file, makes good friend can understand intuitively the content of user's sharing video frequency file.
As a kind of enforceable mode, back-stage management server sends in the terminal that receives user share request after, the identification information of sharing the characteristic information of the video segment in request, user's identification information and good friend is preserved, to generate play content and play content is sent to good friend's terminal plays according to the characteristic information of video segment.
Step 220, the playing request of user's terminal transmission is shared in reception.
In specific implementation, when good friend clicks information, good friend's terminal sends playing request to back-stage management server.
Step 230, according to the playing request characteristic information extraction receiving, and sends to the play content generating according to characteristic information the terminal of sharing user.
In specific implementation, when back-stage management server receives the playing request that good friend's terminal sends, according to playing request, extract the characteristic information of video segment, the characteristic information of video segment comprises the broadcasting start time point of video segment and plays end time point, the broadcasting start time point of video segment and broadcasting end time point are changed to generation play content through corresponding, and play content is sent to good friend.
By implementing the described method of Fig. 2, the terminal that can make back-stage management server receive user sends shares request, and sends information according to sharing the terminal of request to good friend.When good friend clicks while playing, the characteristic information of the video file that back-stage management server sends user generates corresponding play content, and is sent to good friend's terminal plays, has realized sharing of media file fragments between terminal, strengthens user's experience sense.
Refer to Fig. 3, Fig. 3 is that another of the embodiment of the present invention shared the method flow schematic diagram of media file fragments.The media file that the embodiment of the present invention relates to can be the file that audio/video file, matchmaker provide the types such as file and word novel, and related terminal can be the networked devices such as Set Top Box or integration television.The present embodiment is illustrated with video file.
As shown in Figure 3, the method that another of the embodiment of the present invention shared media file fragments can comprise the following steps.
Step 301, back-stage management server receiving terminal sends shares request, share that request comprises the characteristic information of the media file fragments that terminal use need share, terminal use's identification information and the identification information of sharing user, characteristic information comprises the identify label of media file and the period information of media file fragments.
As a kind of enforceable mode, back-stage management server is adjustable with electronic program guides backstage front-end server (View) so that backstage front-end server receiving terminal send share request.Backstage front-end server is the front end system of electronic program guides, and the information that can be used as back-stage management server transmission is sent to interactive interface through transforming, and realizes man-machine interaction.Receive the request of sharing that user's terminal sends, the process of establishing of sharing request can refer to step 100 and the step 110 of embodiment Fig. 1.
Step 302, back-stage management server is extracted broadcasting start time point from the request of sharing receiving, and obtains corresponding fragment start frame according to playing start time point.
In specific implementation, after back-stage management server is extracted the broadcasting start time point of the video segment of sharing in request by backstage front-end server, according to playing frame corresponding to initial time dot generation, and the generation image data corresponding with frame, image data can be thumbnail.
Step 303, back-stage management server generates bookmark according to fragment start frame and characteristic information, and bookmark is saved to the memory location of terminal use's appointment.
In specific implementation, back-stage management server generates bookmark according to the characteristic information of fragment start frame and video file, and characteristic information comprises identify label, the broadcasting start time point of media file and plays end time point.Bookmark also can comprise the thumbnail that fragment start frame is corresponding, for user, browses.
As a kind of enforceable mode, characteristic information also comprises the title of user to the descriptor of video file segments, user name, video file.
As a kind of enforceable mode, if share, in request, do not play end time point, the broadcasting end time point of back-stage management server using the broadcasting end time point of video file as video file segments.
As a kind of enforceable mode, owing to can in a video, a plurality of bookmarks being set, so only corresponding the identify label of this video file of each bookmark.
Step 304, back-stage management server generates information according to the identification information of terminal use's identification information and bookmark, and information is sent to the terminal of sharing user, and the identification information of bookmark is for identifying the memory location of bookmark.
In specific implementation, back-stage management server generates information according to the identification information of terminal use's identification information and bookmark, and information is sent to good friend's terminal.Information also can comprise the descriptor of user to video file, makes good friend can understand intuitively the content of user's sharing video frequency file, and information also can comprise the thumbnail that fragment start frame is corresponding, for good friend, browses.The identification information of bookmark is for identifying bookmark in the memory location of user's space, as shares record sheet, the thumbnail that video file segments that user can share by the space navigation of oneself is corresponding and the buddy list of sharing.
As a kind of enforceable mode, share record sheet and also can comprise media file fragments type.As the media file fragments type of implementing illustration 1 and Fig. 2 is video type, media file fragments type also can be audio types, word novel types etc.
As a kind of enforceable mode, owing to can in a video file, a plurality of bookmarks being set, so this shares the identification information that can simultaneously store a plurality of bookmarks in record sheet.
Step 305, back-stage management server receives the playing request of the terminal transmission of sharing user.
In specific implementation, when good friend clicks information, good friend's terminal sends playing request to back-stage management server, and wherein playing request is carried the identification information of bookmark, so that back-stage management server can find corresponding bookmark according to the identification information of bookmark in sharing record sheet.
Step 306, the identification information of the bookmark that back-stage management server is carried according to playing request extracts identify label, the broadcasting start time point of media file and plays end time point from bookmark.
Step 307, whether back-stage management server judgement shares user by authentication, mandate, charging aaa authentication.
In specific implementation, whether back-stage management server has to order according to authentication, mandate, charging (Authentication, Authorization and accounting, AAA) authentication determination good friend is watched video billing of services.Aaa protocol is to provide a kind of framework of service charging information needed, and the use of all kinds of resources in network, need to be managed by authentication,authorization,accounting.Only have the identity of having confirmed user, the service providing could be charged to user, also can prevent that disabled user from destroying network simultaneously.After confirming user identity, the service type of applying for while opening an account according to user, system can be authorized client corresponding authority.Finally, when user uses system resource, need to have corresponding equipment come counting user the situation that takies to resource, to client, collect corresponding expense accordingly.
As a kind of enforceable mode, if having to order, back-stage management server judgement good friend watches video billing of services, by aaa protocol, execution step 308; If good friend does not order and watches video billing of services, perform step 309, back-stage management server stops the service for good friend.
Step 308, if be judged as YES, back-stage management server is extracted media file according to the identify label of media file.
In specific implementation, when judgment result is that of step 307 is, back-stage management server is extracted video file according to the identify label of media file, and the video file of extraction is for the play content of generating video file fragment.
Step 309, if be judged as NO, back-stage management server stops the service for good friend.
Step 310, back-stage management server is according to the duration of the broadcasting start time point of media file fragments and broadcasting end time point computing medium file fragment.
In specific implementation, the duration that calculates video file segments is prior art, and the present embodiment repeats no more.
Step 311, back-stage management server generates play content according to the duration of media file and media file fragments.
Back-stage management server generates corresponding play content and play content identifier (Token) according to the duration of video file and video file segments.
Step 312, back-stage management server sends to play content the terminal of sharing user, so that share user's terminal, obtains corresponding video flowing play according to play content to video server.
As a kind of enforceable mode, the embodiment of the present invention can be carried out interactive cooperation by back-stage management server and other servers, and the play content that back-stage management server is generated by step 311 sends to good friend's terminal plays, is specifically described below.
Back-stage management server can be sent to backstage front-end server by the duration of video segment and play content identifier, the duration of the video segment that backstage front-end server sends according to back-stage management server converts time schedule bar to, and send to good friend's terminal, the display terminal being connected by good friend's terminal shows, to demonstrate time schedule and total duration of video segment.
Because backstage front-end server can not directly obtain play content, therefore the play content identifier of video segment need to be sent to session manager, by session manager, to back-stage management server, gather play content.Session manager is the interaction of whole session activation and the server of computer system tracing process that keeps user, its major function is under the negotiation by the explorer of suitable server and networking component, for the essential resource of acquisition conversation, video flowing is passed in good friend's terminal from back-stage management server.Session manager is that backstage front-end server gathers play content to back-stage management server request, keeps session activation process.
In specific implementation, when back-stage management server receives the request of session manager, the play content of generation is sent to session manager.Session manager carries play content to video stream pushing server (Video Stream Server) request plug-flow.Stream pushing server is responsible for the terminal to good friend by digital video frequency flow, when session manager is obtained play content, play content is sent to video stream pushing server, request video stream pushing server plug-flow.
Video stream pushing server after receiving the play content that session manager sends, by play content with the form plug-flow of video flowing the terminal to good friend, by display terminal, play, to reach the object of watching video segment.
By the described method of embodiment Fig. 3, can make good friend browse by back-stage management server the information that user sends, if good friend has ordered video-see service, back-stage management server puts according to the broadcasting start time point in bookmark and broadcasting end time the duration that calculates video segment, generate play content and identifier thereof, and by the backstage front-end server of the duration of video segment and the transmission of play content identifier, by backstage front-end server, according to the duration rise time progress bar of video segment, be sent to good friend's terminal, again play content identifier is obtained from back-stage management server to play content by session manager, and by video stream pushing device by play content plug-flow the terminal to good friend, so that the display terminal that good friend's terminal connects is play, realized the object that good friend watches the video segment that user shares.
Refer to Fig. 4, Fig. 4 is the structural representation of a kind of terminal of the embodiment of the present invention.Terminal as shown in Figure 4 comprises characteristic information receiver module 400, shares request generation module 410 and information sending module 420.
Characteristic information receiver module 400, for the characteristic information that media file fragments is obtained in instruction being set according to the bookmark of terminal use's input, characteristic information comprises the identify label of media file and the period information of media file fragments;
Share request generation module 410, for when receive terminal use input share user's identification information time, according to characteristic information, terminal use's identification information and the identification information generation of sharing user, share request;
Information sending module 420, sends to back-stage management server for sharing request so that share that user's terminal receives that back-stage management server sends according to the information of sharing request and generating, information comprises terminal use's identification information.
By the described terminal of embodiment Fig. 4, the terminal that can make user arranges according to user's bookmark the relevant information that the video file that user shares is obtained in instruction, generation is shared and will be shared request after request and send to back-stage management server, by back-stage management server, sending information shares user to the terminal of sharing user with prompting and watches, can make the fragment in any selecting video file of user, and be shared with to specify and share user, realize sharing of media file fragments between terminal, strengthened user's experience sense.
Refer to Fig. 5, Fig. 5 is the structural representation of a kind of back-stage management server of the embodiment of the present invention.Back-stage management server as shown in Figure 5 comprises: share request receiving module 500, information generation module 510, playing request receiver module 520 and play content generation module 530.
Share request receiving module 500, for receiving the request of sharing that user's terminal sends, share that request comprises the characteristic information of the media file fragments that terminal use need share, terminal use's identification information and the identification information of sharing user, characteristic information comprises the identify label of media file and the period information of media file fragments;
Information generation module 510, for generating information and information sent to the terminal of sharing user according to the request of sharing of sharing 500 receptions of request receiving module, information comprises terminal use's identification information;
Playing request receiver module 520, for receiving the playing request of the terminal transmission of sharing user;
Play content generation module 530, for according to the playing request characteristic information extraction receiving, and sends to the play content generating according to characteristic information the terminal of sharing user.
By the described back-stage management server of embodiment Fig. 5, the terminal that can make back-stage management server receive user sends shares request, and to the terminal of sharing user, sends information according to sharing request.When sharing user, click while playing, the characteristic information of the video file that back-stage management server sends user generates corresponding play content, and be sent to the terminal plays of sharing user, and realized sharing of media file fragments between terminal, strengthen user's experience sense.
Refer to Fig. 6, Fig. 6 is the structural representation of information generation module of a kind of back-stage management server of the embodiment of the present invention.Information generation module 510 as shown in Figure 6 comprises: acquiring unit 600, bookmark generation unit 610 and transmitting element 620.
Acquiring unit 600, for extracting broadcasting start time point from the request of sharing receiving, and obtains corresponding fragment start frame according to playing start time point;
Bookmark generation unit 610, for generating bookmark according to fragment start frame and characteristic information, and is saved to bookmark the memory location of terminal use's appointment;
Transmitting element 620, for generating information according to the identification information of terminal use's identification information and bookmark, and sends to information the terminal of sharing user, and the identification information of bookmark is for identifying the memory location of bookmark.
By the described information generation module of embodiment Fig. 6, can make back-stage management server generate bookmark according to fragment start frame and characteristic information, and provide user to browse in the space that bookmark is kept at user, and generate information prompting and share the media file fragments that user watches user to share, realized sharing of media file fragments between user.
Refer to Fig. 7, Fig. 7 is the structural representation of play content generation module of a kind of back-stage management server of the embodiment of the present invention.Play content generation module 530 as shown in Figure 7 comprises: extraction unit 700, play content generation unit 710 and play content transmitting element 720.
Extraction unit 700, for the identification information of the bookmark that carries according to playing request from bookmark extract media file identify label, play start time point and play end time point;
Play content generation unit 710, for according to the identify label of media file, play start time point and play end time dot generation play content;
Play content transmitting element 720, for play content being sent to the terminal of sharing user, obtains corresponding video flowing according to play content to video server and plays so that share user's terminal.
By the described play content generation module of embodiment Fig. 7, can make back-stage management server generate play content according to the selection of sharing user, and play content is sent to the terminal of sharing user, realized sharing of media file fragments between user.
Refer to Fig. 8, Fig. 8 is the structural representation of play content generation unit of a kind of back-stage management server of the embodiment of the present invention.Play content generation unit 710 as shown in Figure 8 comprises: judgment sub-unit 800, extraction subelement 810, computation subunit 820 and generation subelement 830.
Whether judgment sub-unit 800, share user by authentication, mandate, charging aaa authentication for judgement;
Extract subelement 810, if while for judgment result is that of judgment sub-unit 800 being, according to the identify label of media file, extract media file;
Computation subunit 820, for according to the broadcasting start time point of media file fragments and the duration of playing end time point computing medium file fragment;
Generate subelement 830, for generating play content according to the duration that extracts the media file of subelement 810 extractions and the media file fragments of computation subunit 820 calculating.
By the described play content generation unit of embodiment Fig. 8, can make back-stage management server authenticate sharing user, and generate play content according to the duration of media file and media file fragments, safeguard the order of back-stage management displaying video, also realized sharing of media file fragments between user.
Device embodiment described above is only schematic, the wherein said unit as separating component explanation can or can not be also physically to separate, the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in a plurality of network element.Can select according to the actual needs some or all of module wherein to realize the object of the present embodiment scheme.Those of ordinary skills, in the situation that not paying performing creative labour, are appreciated that and implement.
Step in embodiment of the present invention method can be carried out according to actual needs order and adjusted, merges and delete.
Module in embodiment of the present invention device or unit can merge according to actual needs, divide and delete.
The module of the embodiment of the present invention or module, can be with universal integrated circuit (as central processor CPU), or realizes with application-specific integrated circuit (ASIC) (ASIC).
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that each execution mode can add essential general hardware platform by software and realize, and can certainly pass through hardware.Understanding based on such, the part that technique scheme contributes to prior art in essence in other words can embody with the form of software product, this computer software product can be stored in computer-readable recording medium, as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are with so that a computer equipment (can be personal computer, server, or the network equipment etc.) carry out the method described in some part of each embodiment or embodiment.
Above-described execution mode, does not form the restriction to this technical scheme protection range.The modification of doing within any spirit at above-mentioned execution mode and principle, be equal to and replace and improvement etc., within all should being included in the protection range of this technical scheme.