Summary of the invention
In view of this, the embodiment of the present invention provides a kind of video request method and system, to avoid terminal capabilities limited
On the basis of, it is achieved the request to video.
To achieve these goals, the technical scheme that the embodiment of the present invention provides is as follows:
A kind of video request method, including:
Receiving the video request that terminal sends, the instruction of described video request has the video labeling of request video;
Corresponding relation based on default video labeling Yu Video Composition file, obtains regard corresponding with described video labeling
Frequently composite document;Described Video Composition file includes the video template information for synthetic video and pictures;
Video information is generated according to described video template information and pictures;
Described video information is sent to described terminal.
Preferably, when described video request includes viewing mark, described raw according to described video template information and pictures
Become video information, including:
According to described video template information and pictures synthetic video file;
Described to described terminal send described video information, including: to described terminal send described video file.
Preferably, when described video request includes sharing mark, described raw according to described video template information and pictures
Become video information, including:
According to described video template information and pictures synthetic video file;
Described video file is incorporated into webpage, and obtains the web page interlinkage of described webpage;
Described to described terminal send described video information, including: to described terminal send described web page interlinkage.
Preferably, also include:
Receive the Video Composition file uploaded of terminal, described in the Video Composition file uploaded include regarding for synthetic video
Frequently Template Information and pictures;
Unique video labeling, and the Video Composition literary composition uploaded described in foundation is distributed for the described Video Composition file uploaded
Part and the corresponding relation of described video labeling.
Preferably, the video template information in the Video Composition file uploaded described in is original to download from server
Video template modify after video template information.
A kind of video request system, including: first terminal and server,
Described first terminal, for sending video request to server, and receives the video letter that described server returns
Breath, the instruction of described video request has the video labeling of request video;
Described server, for when receiving described video request, based on default video labeling and Video Composition literary composition
The corresponding relation of part, obtains the Video Composition file corresponding with described video labeling;Described Video Composition file includes for closing
Become video template information and the pictures of video;According to described video template information and pictures generation video information, and to
Described first terminal sends.
Preferably, when described video request includes viewing mark, described server is according to described video template information and figure
Sheet collection generates video information, specifically for:
Described server is according to described video template information and pictures synthetic video file;
Described server sends described video information to described first terminal, specifically for: described server to described the
One terminal sends described video file.
Preferably, when described video request includes sharing mark, described server is according to described video template information and figure
Sheet collection generates video information, specifically for:
According to described video template information and pictures synthetic video file;
Described video file is incorporated into webpage, and obtains the web page interlinkage of described webpage;
Described server sends described video information to described first terminal, specifically for: described server to described the
One terminal sends described web page interlinkage.
Preferably, also include the second terminal,
Described first terminal is additionally operable to be sent to described web page interlinkage described second terminal;
Described second terminal is for accessing the webpage that described web page interlinkage is corresponding, to consult described video file.
Preferably, also include the second terminal,
Described server is additionally operable to be sent to described web page interlinkage described second terminal;
Described second terminal is for accessing the webpage that described web page interlinkage is corresponding, to consult described video file.
The embodiment of the present application provides a kind of video request method and system, and the video that the method sends by receiving terminal please
Ask (video labeling that the instruction of described video request has request video);Based on default video labeling and Video Composition file right
Should be related to, (described Video Composition file includes for synthetic video to obtain the Video Composition file corresponding with described video labeling
Video template information and pictures);And then generate video information according to described video template information and pictures;And to institute
State terminal and send the mode of described video information, on the basis of avoiding terminal capabilities limited, it is achieved that the request to video.
Embodiment:
A kind of video request method flow diagram that Fig. 1 provides for the embodiment of the present application.
It should be understood that the video request method as shown in Figure 1 that the embodiment of the present application provides is applied to server.
As it is shown in figure 1, the method includes:
The video request that S101, reception terminal send, the instruction of described video request has the video labeling of request video;
In the embodiment of the present application, it is preferred that user can send video request by terminal to described server, accordingly
Described server can receive described video request.
Optionally, user indicates the video labeling of the video having request by the video request that terminal to server sends.
In the embodiment of the present application, it is preferred that described terminal can show list of videos, each in described list of videos regards
Frequency carries video labeling;After user determines the video asked in described list of videos, can obtain what described video carried
Video labeling, generates video request;The video labeling of described video request instruction is acquired video labeling.
In the embodiment of the present application, it is preferred that the corresponding unique video labeling of each video.
S102, corresponding relation based on default video labeling Yu Video Composition file, obtain and described video labeling pair
The Video Composition file answered;Described Video Composition file includes the video template information for synthetic video and pictures;
In the embodiment of the present application, it is preferred that server end is preset with video labeling pass corresponding with Video Composition file
System;When receive terminal send video request after, can based on the corresponding relation of default video labeling Yu Video Composition file,
Obtain the Video Composition file corresponding with the video labeling of described video request instruction.
It should be understood that Video Composition file includes the video template information for synthetic video and pictures.Can
Choosing, can synthesize according to the video template information for synthetic video in Video Composition file and image set and regard with described
Frequently the video file of the corresponding video of composite document.
In the embodiment of the present application, it is preferred that pictures include at least one pictures.
In the embodiment of the present application, it is preferred that video template information includes: video negative picture file, background music literary composition
Part and/or for indicating the attribute information of multiple picture arranging rule.
Optionally, video negative picture file includes at least one video negative picture;Background music file includes
At least one background music.
More than be only the embodiment of the present application optimal way, inventor can according to oneself demand arbitrarily arrange pictures or
The particular content that video template information includes, does not limits at this.
S103, generate video information according to described video template information and pictures;
In the embodiment of the present application, it is preferred that server receives the video request that terminal sends, obtaining please with described video
After seeking the video labeling correspondence Video Composition file of instruction, the video template that can include according to Video Composition file and pictures
Generate video information.
Optionally, when described video request includes viewing mark, described raw according to described video template information and pictures
Become video information, including: according to described video template information and pictures synthetic video file.
When described video request includes watching video labeling, regarding of described video request instruction viewing request is described
Frequently.Now, described generate video information according to described video template information and pictures, including: according to described Video Composition literary composition
The video file of the video that the described video template information in part is corresponding with described Video Composition file with pictures synthesis, and will
Described video file generates video information as according to described video template information and pictures.
Optionally, when described video request includes sharing mark, described raw according to described video template information and pictures
Become video information, including: according to described video template information and pictures synthetic video file;Described video file is incorporated into net
Page, and obtain the web page interlinkage of described webpage.
When described video request includes sharing mark, illustrate that the video of request is shared in the instruction of described video request.Now,
Described generate video information according to described video template information and pictures, including: according to the institute in described Video Composition file
State the video file of the video information Template Information video corresponding with described Video Composition file with pictures synthesis;Regard described
Frequency file is integrated with in html web page by JS code, obtains the web page interlinkage of described html web page, and by described web page interlinkage
Video information is generated as according to described video template information and pictures.
S104, to described terminal send described video information.
In the embodiment of the present application, it is preferred that after having performed step S103, can be by the result (video of step S103
Information) return to described terminal.
Optionally, when described video request includes viewing mark, described raw according to described video template information and pictures
Become video information, including: according to described video template information and pictures synthetic video file;Described to described terminal send institute
State video information, including: send described video file to described terminal.
Optionally, when described video request includes sharing mark, described raw according to described video template information and pictures
Become video information, including: according to described video template information and pictures synthetic video file;Described video file is incorporated into net
Page, and obtain the web page interlinkage of described webpage;Described to described terminal send described video information, including: send out to described terminal
Send described web page interlinkage.
The embodiment of the present application provides a kind of video request method, and the method is by receiving the video request (institute that terminal sends
State video request instruction and have the video labeling of request video);Close based on default video labeling is corresponding with Video Composition file
System, (described Video Composition file includes regarding for synthetic video to obtain the Video Composition file corresponding with described video labeling
Frequently Template Information and pictures);And then generate video information according to described video template information and pictures;And to described end
End sends the mode of described video information, on the basis of avoiding terminal capabilities limited, it is achieved that the request to video.
The another kind of video request method flow that Fig. 2 provides for the embodiment of the present application.
As in figure 2 it is shown, the method includes:
S201, receive the Video Composition file uploaded of terminal, described in the Video Composition file uploaded include regarding for synthesis
The video template information of frequency and pictures;
In the embodiment of the present application, it is preferred that user can be by described terminal to described server uploaded videos synthesis literary composition
Part, corresponding described server can receive the Video Composition file that described terminal is uploaded.Wherein, the Video Composition literary composition uploaded described in
Part includes the video template information for synthetic video and pictures.
S202, be described in the Video Composition file uploaded distribute unique video labeling, and the video uploaded described in setting up
Composite document and the corresponding relation of described video labeling.
In the embodiment of the present application, it is preferred that described server, can after the Video Composition file uploaded described in receiving
Distribute unique video labeling for the described Video Composition file uploaded, and the Video Composition file uploaded described in foundation is with described
The corresponding relation of video labeling.
In the embodiment of the present application, it is preferred that described in video template information in the Video Composition file uploaded for from
Video template information after the original video template of download is modified in described server.
Or, in the embodiment of the present application, it is preferred that described in video template information in the Video Composition file uploaded be
The original video template downloaded from described server.
It should be understood that described terminal is to the Video Composition file uploaded described in described server, including: described terminal
Sending Video Composition request to described server, and receive described server response described Video Composition request, return is at least
One original video Template Information;At least one original video Template Information described in described terminal demonstration;And receive user to former
The selection operation of beginning video template information;Prompting user inputs pictures;Described pictures according to user's input and described choosing
Select the original video Template Information synthetic video preview design sketch that operation selects;The video of user's input that response receives is uploaded
Request, the original video Template Information described selection operation selected and described pictures, as Video Composition file, upload to
Described server.
Wherein, before receiving the video upload request of user's input, if described terminal response user regards according to described
Frequently the amendment operation that the described original video Template Information selecting operation to select is carried out by preview design sketch, obtains amended regarding
Frequently Template Information;Then when after the video upload request receiving user's input, upload to the Video Composition of described service server
File includes described pictures and described amended video template information.
Optionally, the embodiment of the present application provide step S201-S202 be in described server preset video labeling and
The process of the corresponding relation of Video Composition file.
The video request that S203, reception terminal send, the instruction of described video request has the video labeling of request video;
S204, corresponding relation based on default video labeling Yu Video Composition file, obtain and described video labeling pair
The Video Composition file answered;Described Video Composition file includes the video template information for synthetic video and pictures;
S205, generate video information according to described video template information and pictures;
S206, to described terminal send described video information.
Step S101-that the execution process of step S203-S206 that the embodiment of the present application provides provides with above-described embodiment
The execution process of S104 is identical, refers to above-mentioned to step S101-S104 in detail about the execution process of step S203-S206
Describe, do not repeat at this.
By above-mentioned being further described the another kind of video request method that the embodiment of the present application provides so that the application
The video request method that embodiment provides becomes apparent from, completely, it is simple to skilled artisan understands that.
The structural representation of a kind of video request system that Fig. 3 provides for the embodiment of the present application.
As it is shown on figure 3, a kind of video request system that the embodiment of the present application provides includes first terminal 31 and server 32.
Described first terminal 31, for sending video request to server, and receives the video that described server returns
Information, the instruction of described video request has the video labeling of request video;
Described server 32, for for when receiving described video request, based on default video labeling and video
The corresponding relation of composite document, obtains the Video Composition file corresponding with described video labeling;Described Video Composition file includes
Video template information and pictures for synthetic video;Video letter is generated according to described video template information and pictures
Breath, and send to described first terminal.
The embodiment of the present application provides a kind of video request system, and this system includes first terminal and server, described service
The video request (instruction of described video request has the video labeling asking video) that device sends by receiving described first terminal;Base
In the corresponding relation of default video labeling Yu Video Composition file, obtain the Video Composition file corresponding with described video labeling
(described Video Composition file includes the video template information for synthetic video and pictures);And then according to described video screen module
Plate information and pictures generate video information;And to the mode of the described first terminal described video information of transmission, avoiding first
On the basis of terminal capabilities is limited, it is achieved that the request to video.
In the embodiment of the present application, it is preferred that when described video request includes viewing mark, described server is according to described
Video template information and pictures generate video information, specifically for: described server is according to described video template information and figure
Sheet assembles video file;Described server sends described video information to described first terminal, specifically for: described server
Described video file is sent to described first terminal.
In the embodiment of the present application, it is preferred that when described video request includes sharing mark, described server is according to described
Video template information and pictures generate video information, specifically for: synthesize according to described video template information and pictures and regard
Frequency file;Described video file is incorporated into webpage, and obtains the web page interlinkage of described webpage;Described server is to described first eventually
End sends described video information, specifically for: described server sends described web page interlinkage to described first terminal.
The structural representation of the another kind of video request system that Fig. 4 provides for the embodiment of the present application.
As shown in Figure 4, this video request system includes: first terminal 41, server 42 and the second terminal 43,
Described first terminal 41, for sending video request to server, receives the web page interlinkage that described server returns,
And described web page interlinkage is sent to described second terminal;Described video request includes sharing mark and instruction has request video
Video labeling;
Described server 42, for when receiving described video request, based on default video labeling and Video Composition
The corresponding relation of file, obtains the Video Composition file corresponding with described video labeling;Described Video Composition file include for
The video template information of synthetic video and pictures;According to described video template information and pictures synthetic video file;Will
Described video file is incorporated into webpage, and obtains the web page interlinkage of described webpage, and sends to described first terminal;
Described second terminal 43, for accessing the webpage that described web page interlinkage is corresponding, to consult described video file.
In the embodiment of the present application, it is preferred that the webpage that web page interlinkage described in described second terminal access is corresponding, to consult
Described video file, including: the webpage that web page interlinkage described in the second terminal access is corresponding, described webpage is play and has described video
The video that file is corresponding.Concrete, user is by watching the video corresponding with described video file play in described webpage, real
Now described video file is consulted.
The structural representation of another video request system that Fig. 5 provides for the embodiment of the present application.
As it is shown in figure 5, this video request system includes: first terminal 51, server 52 and the second terminal 53,
Described first terminal 51, for sending video request to server, and receives the video that described server returns
Information;Described video request includes sharing mark and instruction has the video labeling asking video;
Described server 52, for when receiving described video request, based on default video labeling and Video Composition
The corresponding relation of file, obtains the Video Composition file corresponding with described video labeling;Described Video Composition file include for
The video template information of synthetic video and pictures;According to described video template information and pictures synthetic video file;Will
Described video file is incorporated into webpage, and obtains the web page interlinkage of described webpage, and respectively to described first terminal and described second
Terminal sends;
Described second terminal 53, for accessing the webpage that described web page interlinkage is corresponding, to consult described video file.
The embodiment of the present application provide another video request system also can arrange " described video file is incorporated into webpage,
And obtain the web page interlinkage of described webpage, and send to described first terminal and described second terminal respectively " step, it is specially
" described video file is incorporated into webpage, and obtains the web page interlinkage of described webpage, and send to described second terminal ".So logical
Cross and avoid described server to send described web page interlinkage to described first terminal, and directly send webpage chain to described second terminal
The mode connect, it is achieved that described web page interlinkage is directly shared with the purpose of described second terminal by described server, it is to avoid institute
State server and described web page interlinkage be sent to described first terminal, described first terminal by described web page interlinkage being sent to
State the second terminal, the problem of the flow wasting described first terminal caused.
By above-mentioned being further described the another kind of video request system that the embodiment of the present application provides so that the application
The video request system that embodiment provides becomes apparent from, completely, it is simple to skilled artisan understands that.
In the present invention, each embodiment uses the mode gone forward one by one to describe, and what each embodiment stressed is real with other
Executing the difference of example, between each embodiment, identical similar portion sees mutually.For device disclosed in embodiment
Speech, owing to it corresponds to the method disclosed in Example, so describe is fairly simple, relevant part sees method part explanation
?.
Below it is only the preferred embodiment of the present invention, makes to skilled artisans appreciate that or realize the present invention.Right
The multiple amendment of these embodiments will be apparent to one skilled in the art, as defined herein the most former
Reason can realize without departing from the spirit or scope of the present invention in other embodiments.Therefore, the present invention will not
Be intended to be limited to the embodiments shown herein, and be to fit to consistent with principles disclosed herein and features of novelty
Wide scope.