Video broadcasting method and device
Technical field
The present invention relates to MultiMedia Field, more particularly, to a kind of video broadcasting method and device.
Background technology
At present, in each big video website, the content of video can be shown to user by such as video poster, Yong Hugen
According to introductions such as the picture in video poster, words, choose oneself video interested and play out.User click on video poster it
Afterwards, video network standing-meeting jumps to the new page and carries out video playback, and the new page can not show before the page content.
Content of the invention
Technical problem
In view of this, the technical problem to be solved in the present invention is, how to realize playing the corresponding video of target video poster,
And represent other video posters of the target video poster place page.
Solution
In order to solve above-mentioned technical problem, according to one embodiment of the invention, there is provided a kind of video broadcasting method, bag
Include:
In the case of the signal receiving user's triggering target video poster, send to server and obtain described target video
The request of the corresponding video of poster;
According to the positional information of described target video poster, generate broadcast window in current page;
Play the corresponding video of described target video poster obtaining from described server in described broadcast window.
For said method, in a kind of possible implementation, according to the positional information of described target video poster,
Current page generates broadcast window, comprising:
The band of position of the described target video poster in current page generates described broadcast window, described broadcast window
Cover the band of position of at least partly described target video poster.
For said method, in a kind of possible implementation, according to the positional information of described target video poster,
Current page generates broadcast window, comprising:
Generate described broadcast window, described broadcasting around the band of position of the described target video poster in current page
Window does not cover the band of position of described target video poster.
For said method, in a kind of possible implementation, generate broadcast window in current page, comprising:
Described broadcast window is generated according to the proportion threshold value pre-setting.
For said method, in a kind of possible implementation, also include:
In the case of receiving the signal that described broadcast window is closed, recover each video that described current page includes
Poster.
In order to solve above-mentioned technical problem, according to another embodiment of the present invention, there is provided a kind of video play device, wrap
Include:
Video acquiring module, for, in the case of the signal receiving user's triggering target video poster, sending out to server
Send the request obtaining the corresponding video of described target video poster;
Broadcast window generation module, is connected with described video acquiring module, for the position according to described target video poster
Confidence ceases, and generates broadcast window in current page;
Video playback module, is connected with described broadcast window generation module, for playing from described in described broadcast window
The corresponding video of described target video poster that server obtains.
For said apparatus, in a kind of possible implementation, described broadcast window generation module, comprising:
First broadcast window signal generating unit, the band of position for the described target video poster in current page generates
Described broadcast window, described broadcast window covers the band of position of at least partly described target video poster.
For said apparatus, in a kind of possible implementation, described broadcast window generation module, comprising:
Second broadcast window signal generating unit, for around the band of position of the described target video poster in current page
Generate described broadcast window, described broadcast window does not cover the band of position of described target video poster.
For said apparatus, in a kind of possible implementation, described broadcast window generation module, also include:
Window signal generating unit, for generating described broadcast window according to the proportion threshold value pre-setting.
For said apparatus, in a kind of possible implementation, also include:
Video poster recovery module, in the case of receiving the signal closing described broadcast window, recovering described
Each video poster that current page includes.
Beneficial effect
The video broadcasting method of the embodiment of the present invention, in the case of the signal receiving user's triggering target video poster,
According to the positional information of target video poster, generate broadcast window in current page, and play target in the broadcast window generating
The corresponding video of video poster.The video broadcasting method of the embodiment of the present invention, the page being located in target video poster generates to be broadcast
Put window, it is possible to achieve play the corresponding video of target video poster, and represent other of the target video poster place page and regard
Frequency poster.Thus, user can more quickly carry out the switching of video.
According to below with reference to the accompanying drawings, to detailed description of illustrative embodiments, the further feature of the present invention and aspect will become
Clear.
Brief description
Comprise in the description and constitute the accompanying drawing of a part of description and description together illustrates the present invention's
Exemplary embodiment, feature and aspect, and for explaining the principle of the present invention.
The flow chart that Fig. 1 illustrates video broadcasting method according to an embodiment of the invention;
Fig. 2 illustrates another flow chart of video broadcasting method according to an embodiment of the invention;
Fig. 3 a to 3e illustrates the schematic diagram of a class broadcast window according to an embodiment of the invention;
Fig. 4 illustrates another flow chart of video broadcasting method according to an embodiment of the invention;
Fig. 5 a and 5b illustrates the schematic diagram of another kind of broadcast window according to an embodiment of the invention;
Fig. 6 illustrates another flow chart of video broadcasting method according to an embodiment of the invention;
Fig. 7 illustrates the structured flowchart of video play device according to an embodiment of the invention;
Fig. 8 illustrates another structured flowchart of video play device according to an embodiment of the invention;
Fig. 9 illustrates another structured flowchart of video play device according to an embodiment of the invention;
Figure 10 illustrates another structured flowchart of video play device according to an embodiment of the invention;
Figure 11 illustrates the structured flowchart of video play device according to another embodiment of the present invention.
Specific embodiment
Describe various exemplary embodiments, feature and the aspect of the present invention below with reference to accompanying drawing in detail.Identical in accompanying drawing
Reference represent the same or analogous element of function.Although the various aspects of embodiment shown in the drawings, remove
Non-specifically points out it is not necessary to accompanying drawing drawn to scale.
Special word " exemplary " means " as example, embodiment or illustrative " here.Here as " exemplary "
Illustrated any embodiment should not necessarily be construed as preferred or advantageous over other embodiments.
In addition, in order to better illustrate the present invention, giving numerous details in specific embodiment below.
It will be appreciated by those skilled in the art that not having some details, the present invention equally can be implemented.In some instances, for
Method well known to those skilled in the art, means, element and circuit are not described in detail, in order to highlight the purport of the present invention.
Embodiment 1
The flow chart that Fig. 1 illustrates video broadcasting method according to an embodiment of the invention.As shown in figure 1, described video is broadcast
Put method, may include that
In step s101, in the case of the signal receiving user's triggering target video poster, send to server and obtain
Take the request of the corresponding video of described target video poster.
In step s102, according to the positional information of described target video poster, generate broadcast window in current page.
In step s103, play, in described broadcast window, the described target video poster obtaining from described server and correspond to
Video.
At present, show video content to user and attract user's viewing video in order to quick, in the page of video website
On in the form of video poster, often assume all kinds of videos.The content a certain video poster being represented in user produces interest
When, can be chosen by for example operating the modes such as mouse or remote control to realize and click on target video poster.Further, browse
Device, after target video poster is detected and be clicked, plays the corresponding video of target video poster to server request.
What the embodiment of the present invention did not limit video poster specifically represents form.For example, video poster can pass through picture (example
As jpg form), dynamic picture (such as gif form), short-sighted frequency (such as mpeg, mp4 form) or other forms represent.Wherein,
The shape of video poster can be rectangle, square or circular etc., and this is not construed as limiting.Further, picture, Dynamic Graph
Piece, short-sighted frequency can be related to the content of video.For example, video poster can be a certain frame of video or a few frame.Again for example,
For the video poster of film video, can be using propagating poster during movie show.Further, it is also possible to add on video poster
Plus the such as content such as word, icon (logo) so that user can more convenient, more clearly understand that video poster is corresponding and regard
The content of frequency.The embodiment of the present invention does not limit the type of the corresponding video of video poster, for example, it may be film, TV play, new
News or advertisement etc..
The positional information of the target video poster of the embodiment of the present invention can be the position in current page for the target video poster
Put.It should be noted that those skilled in the art are it should be understood that there are various methods can realize obtaining mesh in prior art
The positional information of mark video poster.For example rectangular coordinate system, grid etc. can be set up to determine video poster in current page
Position, is not construed as limiting to this.Further, after obtaining the position of target video poster, target can be correspondingly made available and regard
The position of other video posters around frequency poster, and the shape of target video poster and other video posters etc..
In the embodiment of the present invention, the broadcast window being generated in current page can be used for playing target video poster correspondence
Video.Wherein, the broadcast window being generated can be rectangle, square or circular etc. or other self-defined shapes
Shape, the embodiment of the present invention is not construed as limiting to this.Additionally, the embodiment of the present invention does not limit generated broadcast window and target video
The particular location relation of poster.For example, the broadcast window being generated can all or part of coverage goal video poster it is also possible to
Not coverage goal video poster.
In a kind of possible implementation, generate broadcast window (step s102) in current page, comprising: according in advance
The proportion threshold value of setting generates described broadcast window.
In video website, the size of broadcast window can include the size of such as broadcast window, broadcast window
The parameters such as wide high proportion.Further, the size of broadcast window can be for example 4.7 cun, 5.5 cun etc., and this is not limited
Fixed.The wide high proportion of broadcast window can be for example 4:3,16:9,1:1 etc., and this is not construed as limiting.In actual application,
The size of broadcast window can be pre-set, browser can generate broadcast window according to the proportion threshold value pre-setting.
The proportion threshold value of the embodiment of the present invention can be the size to broadcast window (such as size, wide high proportion etc.)
Restriction.Wherein, proportion threshold value can be based on system default or user setup, and this is not limited.For example, browser is permissible
The wide high proportion of acquiescence broadcast window is 16:9, then the broadcast window being generated is rectangular broadcast window.User is permissible
The wide high proportion of broadcast window is set to by 1:1 according to personal viewing custom, then the broadcast window being generated is foursquare
Broadcast window.
Fig. 2 illustrates another flow chart of video broadcasting method according to an embodiment of the invention.As shown in Fig. 2 described regard
Frequency player method, may include that
In step s101, in the case of the signal receiving user's triggering target video poster, send to server and obtain
Take the request of the corresponding video of described target video poster.
In step s201, the band of position of the described target video poster in current page generates described broadcasting window
Mouthful, described broadcast window covers the band of position of at least partly described target video poster.
In step s103, play, in described broadcast window, the described target video poster obtaining from described server and correspond to
Video.
As shown in Figure 3 a, for example, the video poster in user operation click dashed region, now, " " trump spy:
Green Si compare " first broadcast " and video poster be step s101 described in target video poster.Browser is detecting " " between trump
Spy: Green's Si ratio " first broadcast " the clicked trigger of video poster in the case of, play film " trump to server request
Spy: Green's Si ratio ".
As an example of the embodiment of the present invention, as shown in Figure 3 b, browser can the target in current page regard
The band of position of frequency poster generates broadcast window.Further, broadcast window can a coverage goal video poster position area
Domain, and do not cover the band of position of other video posters of current page.Now, user may browse through current page except mesh
Other video posters whole beyond mark video poster, such that it is able to quickly carry out cutting of video according to viewing demand and interest
Change.
Using the broadcast window generated in Fig. 3 b, because the area of broadcast window is less, may be such that broadcasting pictures
Unintelligible, cause poor result of broadcast, affect Consumer's Experience.In actual application, browser can be with adaptive targets
Video poster or display device.For example, target video poster (the video poster of such as " arbitrarily be reluctant to leave ") region area relatively
In the case of big, broadcast window can be generated with the band of position of selection target video poster.Again for example, in display device size
In the case that (such as 20 cun) are more than predetermined threshold value, broadcast window can be generated with the band of position of selection target video poster.
As another example of the embodiment of the present invention, as shown in Fig. 3 c to Fig. 3 e, browser can be in current page
Target video poster and target video poster around other video posters the band of position, generate rectangle or foursquare
Broadcast window.Further, broadcast window not only can coverage goal video poster the band of position, current page can also be covered
The band of position of other video posters in face.Now, user may browse through other video posters of part of current page, thus
The switching of video can quickly be carried out according to viewing demand and interest.Wherein, the broadcast window in Fig. 3 c and Fig. 3 d can be
Rectangular broadcast window, the region area of the broadcast window in Fig. 3 c is less than the region area of the broadcast window in Fig. 3 d.Figure
Broadcast window in 3e can be foursquare broadcast window.In the present embodiment, rectangle or square are only the shapes of broadcast window
Shape example, and non-limiting.
Further, the video data of the film " trump spy: Green's Si ratio " of server return is received in browser
In the case of, film " trump spy: Green's Si ratio " can be play in the broadcast window generated in Fig. 3 b to Fig. 3 e.
Fig. 4 illustrates another flow chart of video broadcasting method according to an embodiment of the invention.As shown in figure 4, described regard
Frequency player method, may include that
In step s101, in the case of the signal receiving user's triggering target video poster, send to server and obtain
Take the request of the corresponding video of described target video poster.
In step s401, around the band of position of the described target video poster in current page, generate described broadcasting
Window, described broadcast window does not cover the band of position of described target video poster.
In step s103, play, in described broadcast window, the described target video poster obtaining from described server and correspond to
Video.
The embodiment of the present invention can operate using with the example identical described in Fig. 3, and for example, user operation click is empty
The video poster of " " trump spy: Green's Si ratio " first broadcast " in line region.
As an example of the embodiment of the present invention, as shown in figure 5 a and 5b, browser can be in current page
The band of position of other video posters around target video poster, generates rectangle or foursquare broadcast window, and should
The band of position of broadcast window not coverage goal video poster.Wherein, the broadcast window in Fig. 5 a can be rectangular broadcasting
Window, the broadcast window in Fig. 5 b can be foursquare broadcast window.In the present embodiment, rectangle or square are only to play
The example of shape of window, and non-limiting.
Further, the video data of the film " trump spy: Green's Si ratio " of server return is received in browser
In the case of, in the broadcast window that can be generated in figs. 5 a and 5b, play film " trump spy: Green's Si ratio ".
Fig. 6 illustrates another flow chart of video broadcasting method according to an embodiment of the invention.As shown in fig. 6, described regard
Frequency player method, may include that
In step s101, in the case of the signal receiving user's triggering target video poster, send to server and obtain
Take the request of the corresponding video of described target video poster.
In step s102, according to the positional information of described target video poster, generate broadcast window in current page.
In step s103, play, in described broadcast window, the described target video poster obtaining from described server and correspond to
Video.
In step s104, in the case of receiving the signal that described broadcast window is closed, recover described current page
Including each video poster.
Each video poster that the recovery current page of the embodiment of the present invention includes, is not limited to recover target video sea
Before reporting corresponding video playback, each video poster and video poster layout that current page includes.It is possible to further be
By played window cover video poster again represent, can be changed for browsed video poster after weigh
Newly represent, can also be for video poster layout be adjusted after again represent, this is not construed as limiting.
The video broadcasting method of the embodiment of the present invention, in the case of the signal receiving user's triggering target video poster,
According to the positional information of target video poster, generate broadcast window in current page, and play target in the broadcast window generating
The corresponding video of video poster.The video broadcasting method of the embodiment of the present invention, the page being located in target video poster generates to be broadcast
Put window, it is possible to achieve play the corresponding video of target video poster, and represent other of the target video poster place page and regard
Frequency poster.Thus, user can more quickly carry out the switching of video.
Embodiment 2
Fig. 7 illustrates the structured flowchart of video play device according to another embodiment of the present invention.The video play device of Fig. 7
The video broadcasting method shown in Fig. 1, Fig. 2, Fig. 4 and Fig. 6 can be executed.
As shown in fig. 7, described video play device, may include that video acquiring module 11, for receiving user's triggering
In the case of the signal of target video poster, send the request obtaining the corresponding video of described target video poster to server;
Broadcast window generation module 13, is connected with described video acquiring module 11, for the position letter according to described target video poster
Breath, generates broadcast window in current page;Video playback module 15, is connected with described broadcast window generation module 13, for
Described broadcast window plays the corresponding video of described target video poster obtaining from described server.Concrete principle and example can
With the associated description referring to embodiment 1 and Fig. 1.
In a kind of possible implementation, as shown in figure 8, described broadcast window generation module 13, may include that first
Broadcast window signal generating unit 131, the band of position for the described target video poster in current page generates described broadcasting
Window, described broadcast window covers the band of position of at least partly described target video poster.Concrete principle and example can be joined
See embodiment 1 and the associated description of Fig. 2.
In a kind of possible implementation, as shown in figure 9, described broadcast window generation module 13, may include that second
Broadcast window signal generating unit 133, described for generating around the band of position of the described target video poster in current page
Broadcast window, described broadcast window does not cover the band of position of described target video poster.Concrete principle and example may refer to
Embodiment 1 and the associated description of Fig. 4.
In a kind of possible implementation, described broadcast window generation module 13, can also include: window generates single
Unit, for generating described broadcast window according to the proportion threshold value pre-setting.Concrete principle and example may refer to embodiment 1
Associated description.
In a kind of possible implementation, as shown in Figure 10, described video play device, can also include: video sea
Report recovery module 17, includes in the case of receiving the signal closing described broadcast window, recovering described current page
Each video poster.Concrete principle and example may refer to embodiment 1 and the associated description of Fig. 6.
The video play device of the embodiment of the present invention, in the case of the signal receiving user's triggering target video poster,
According to the positional information of target video poster, generate broadcast window in current page, and play target in the broadcast window generating
The corresponding video of video poster.The video play device of the embodiment of the present invention, the page being located in target video poster generates to be broadcast
Put window, it is possible to achieve play the corresponding video of target video poster, and represent other of the target video poster place page and regard
Frequency poster.Thus, user can more quickly carry out the switching of video.
Embodiment 3
Figure 11 illustrates the structured flowchart of video play device according to another embodiment of the present invention.Described video play device
1100 can be host server, personal computer pc or portable portable computer or the end possessing computing capability
End etc..The specific embodiment of the invention does not limit to implementing of calculate node.
Described video play device 1100 includes processor (processor) 1110, communication interface (communications
Interface) 1120, memorizer (memory) 1130 and bus 1140.Wherein, processor 1110, communication interface 1120 and
Memorizer 1130 completes mutual communication by bus 1140.
Communication interface 1120 is used for and network device communications, and wherein the network equipment includes such as Virtual Machine Manager center, is total to
Enjoy storage etc..
Processor 1110 is used for configuration processor.Processor 1110 is probably a central processing unit cpu, or special collection
Become circuit asic (application specific integrated circuit), or be arranged to implement the present invention
One or more integrated circuits of embodiment.
Memorizer 1130 is used for depositing file.Memorizer 1130 may comprise high speed ram memorizer it is also possible to also include non-
Volatile memory (non-volatile memory), for example, at least one disk memory.Memorizer 1130 can also be deposited
Memory array.Memorizer 1130 is also possible to by piecemeal, and described piece can be combined into virtual volume by certain rule.
In a kind of possible embodiment, said procedure can be the program code including computer-managed instruction.This journey
Sequence is particularly used in: realizes the operation of each step in embodiment 1.
Those of ordinary skill in the art are it is to be appreciated that each exemplary cell in embodiment described herein and algorithm
Step, being capable of being implemented in combination in electronic hardware or computer software and electronic hardware.These functions are actually with hardware also
Being software form to realize, the application-specific depending on technical scheme and design constraint.Professional and technical personnel can be directed to
Specifically application selects different methods to realize described function, but this realization is it is not considered that exceed the model of the present invention
Enclose.
If to be realized using in the form of computer software described function and as independent production marketing or use when,
To a certain extent it is believed that all or part (part for example prior art being contributed) of technical scheme is
Embody in form of a computer software product.This computer software product is generally stored inside the non-volatile of embodied on computer readable
In storage medium, including some instructions with so that computer equipment (can be that personal computer, server or network set
Standby etc.) all or part of step of execution various embodiments of the present invention method.And aforesaid storage medium include u disk, portable hard drive,
Read only memory (rom, read-only memory), random access memory (ram, random access memory), magnetic
Dish or CD etc. are various can be with the medium of store program codes.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, and any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, all should contain
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by described scope of the claims.