Summary of the invention
In view of this, the invention provides a kind of video broadcasting method, for player interface playing video file, it is characterized in that, comprising:
Monitor the primary importance information of the first video file play in this player interface;
The second place information of this primary importance information monitored and this player interface is compared;
Determine whether the first video file that this is being play continues to be positioned within the scope of this player interface; And
When the first video file determining that this is being play is positioned at outside the scope of this player interface, produce the first float icon on this player interface, this first float icon plays this first video file in order to continue.
Preferably, wherein, comprise further:
Monitor this player interface and whether play the second video file;
When monitoring this player interface and playing this second video file, this first float icon stops playing this first video file;
When the second video file determining that this is being play is positioned at outside the scope of this player interface, produce the second float icon on this player interface, this second float icon plays this second video file in order to continue.
Preferably, wherein, comprise further:
Monitor this first float icon or whether this second float icon is selected; And
When monitoring this selection, this video file corresponding to the float icon this selected turns and carries out by this player interface the broadcasting that continues.
Preferably, wherein, comprise further:
After this player interface continues this video file of broadcasting, this float icon selected stops playing this corresponding video file.
Preferably, wherein, floating multiple float icon on this player interface, when the area that the plurality of float icon hides this player interface is more than a threshold value, some float icon in the plurality of float icon are hidden, until the area that the plurality of icon after process hides this player interface is no more than this threshold value according to a definite sequence.
Present invention also offers a kind of video play device, for player interface playing video file, it is characterized in that, comprising:
Monitor, for monitoring the primary importance information of the first video file play in this player interface;
Comparator, for the second place information of this primary importance information monitored and this player interface being compared, and determines whether the first video file that this is being play continues to be positioned within the scope of this player interface; And
Float icon generator, during for being positioned at outside the scope of this player interface when the first video file determining that this is being play, produces the first float icon on this player interface, and this first float icon plays this first video file in order to continue.
Preferably, wherein, comprise further:
Whether this monitor plays the second video file in order to monitor this player interface;
When this monitor monitors plays this second video file to this player interface, this float icon generator makes this first float icon stop playing this first video file;
When this comparator determines that the second video file that this is being play is positioned at outside the scope of this player interface, this float icon generator produces the second float icon on this player interface, and this second float icon plays this second video file in order to continue.
Preferably, wherein, comprise further:
Whether this first float icon of this monitor monitors or this second float icon are selected; And
When this monitor monitors is to this selection, this video file corresponding to the float icon this selected of this float icon generator turns and carries out by this player interface the broadcasting that continues.
Preferably, wherein, comprise further:
After this player interface continues this video file of broadcasting, the float icon that this float icon generator makes this select stops playing this corresponding video file.
Preferably, wherein, floating multiple float icon on this player interface, when the area that the plurality of float icon hides this player interface is more than a threshold value, some float icon in the plurality of float icon hidden by this float icon generator according to a definite sequence, until the area that the plurality of icon after process hides this player interface is no more than this threshold value.
The video broadcasting method that the present invention proposes and device thereof, have the following advantages:
1) when the video file that player interface is play is marked player interface, continue in the mode of float icon and play this video file, so can not interrupt the viewing of user, improve user experience.
2) multiple float icon can being provided on player interface, multiplely being marked the video file of player interface with thinking that user shows, for user's viewing with select.
Certainly, implement arbitrary product of the present invention must not necessarily need to reach above-described all technique effects simultaneously.
Embodiment
As employed some vocabulary to censure specific components in the middle of specification and claim.Those skilled in the art should understand, and hardware manufacturer may call same assembly with different noun.This specification and claims are not used as with the difference of title the mode distinguishing assembly, but are used as the criterion of differentiation with assembly difference functionally." comprising " as mentioned in the middle of specification and claim is in the whole text an open language, therefore should be construed to " comprise but be not limited to ".Specification subsequent descriptions is for implementing better embodiment of the present invention, and right described description is to illustrate for the purpose of rule of the present invention, and is not used to limit scope of the present invention.Protection scope of the present invention is when being as the criterion depending on the claims person of defining.
The scene that video broadcasting method provided by the invention uses is: user to be slided list of videos by gesture on player interface, and the video file that player interface is being play also can slide in list of videos along with the gesture of user.
Fig. 2 is the schematic flow sheet of the video broadcasting method 200 according to one embodiment of the invention.
Step 201, in step 201, the primary importance information of the first video file play in monitoring player interface.
In one embodiment of this invention, the position of the video file play is monitored by the onscrolllistener monitored in the listview of player.
Step 202, in step 202., compares the second place information of the primary importance information monitored and player interface.
In one embodiment of this invention, listview by player obtains the positional information of the current project (item) shown in player interface, now, the second place information of player interface is then the positional information of the project (item) of this display.The second place information of the project shown by the primary importance information of the first video file play and player interface is compared.
Step 203, in step 203, determines whether the first video file that this is being play continues to be positioned within the scope of player interface.
In one embodiment of this invention, the second place information of the project shown by the primary importance information of the first video file play and player interface is compared.Time within the scope that primary importance information falls into second place information, then judge that the first video file also continues to be positioned within player interface.Time outside the scope that primary importance information falls into second place information, then judge that the first video file has been positioned at outside player interface.
Such as, in one embodiment of this invention, when the positional information that the upper edge of the first video file play is corresponding represents that it has exceeded the position of the lower edge of the project shown by player interface, then judge that the first video file has been positioned at outside player interface.Again such as, in one embodiment of this invention, when the positional information that the lower edge of the first video file play is corresponding represents that it has exceeded the position of the upper edge of the project shown by player interface, then judge that the first video file has been positioned at outside player interface.
Step 204, in step 204, when the first video file determining that this is being play is positioned at outside the scope of this player interface, produces the first float icon on this player interface, and this first float icon plays this first video file in order to continue.
In one embodiment of this invention, do not limit the way of realization of float icon and realize position.Such as shown in Figure 3, float icon can be floated in the below of player interface with rectangular form.Such as shown in Fig. 4, float icon can be floated above player interface with rectangular form.Those skilled in the art should understand, and float icon with square, rhombus, circle or irregularly shapedly can also to be floated in any position of player interface.Such as, float icon can be floated on the left side of player interface or right side.
Fig. 5 is the schematic flow sheet of the video broadcasting method 500 according to one embodiment of the invention.Video broadcasting method shown in Fig. 5 is compared to the video broadcasting method shown in Fig. 2, further comprising the steps.
Step 505, in step 505, whether monitoring player interface plays the second video file.
In one embodiment of this invention, monitor user ' broadcasting second video file can whether be selected on player interface.Such as, whether the broadcasting button by the video file in monitoring playlist is selected to judge.
Step 506, in step 506, when monitoring player interface and playing the second video file, this first float icon stops playing this first video file.
In one embodiment of this invention, when user selects broadcasting second video file on player interface, player interface starts to play the second video file.Now, in order to not affect the viewing experience of user, the first float icon stops broadcasting first video file.In one embodiment of this invention, after the first float icon stops broadcasting first video file, the picture showing the stop timing can be continued, for the follow-up selection of user.
Step 507, in step 507, when the second video file determining that this is being play is positioned at outside the scope of this player interface, produces the second float icon on this player interface, and this second float icon plays this second video file in order to continue.
In one embodiment of this invention, determine whether the second video file that this is being play is positioned at outside the scope of this player interface by step 201 ~ 203 shown in Fig. 2.
In one embodiment of this invention, do not limit the way of realization of the second float icon and realize position.Second float icon with square, rhombus, circle or irregularly shapedly can be floated in any position of player interface.In one embodiment of this invention, the second float icon is not overlapping with the first float icon.Such as, the second float icon can be positioned at the top of the first float icon, below, left side or right side.
Fig. 6 is the schematic flow sheet of the video broadcasting method 600 according to one embodiment of the invention.Video broadcasting method shown in Fig. 6 is compared to the video broadcasting method shown in Fig. 2 and Fig. 5, further comprising the steps.
Step 601, in step 601, monitors this first float icon or whether this second float icon is selected.
In one embodiment of this invention, can monitor user ' for the operation of float icon.When user selects float icon, this selection can be monitored.
When method as shown in Figure 2, during the first float icon that player interface floats, whether monitor user ' selects this first float icon.When method as shown in Figure 5, during the first float icon and the second float icon that player interface floats, whether monitor user ' selects the first float icon or the second float icon.
Step 602, in step 602, when monitoring this selection, this video file corresponding to the float icon this selected turns and carries out by this player interface the broadcasting that continues.
When monitoring float icon and being selected, player interface can transfer the video file continuing and play corresponding to float icon to.In one embodiment of this invention, after player interface continues playing video file, this float icon stops playing this video file and automatically hides.For user, now on player interface, then can not see this float icon.
Such as, monitor user ' selects the first float icon, and player interface can transfer the first video file continued corresponding to broadcasting first float icon to, and the first float icon can stop playing this first video file and automatically hide.Monitor user ' selects the second float icon, and player interface can transfer the second video file continued corresponding to broadcasting second float icon to, and the second float icon can stop playing this second video file and automatically hide.
Fig. 7 is the block schematic diagram of the video play device 700 according to one embodiment of the invention.
Monitor 701, in order to monitor the primary importance information of the first video file play in player interface.
In one embodiment of this invention, the position of the video file play is monitored by the onscrolllistener monitored in the listview of player.
Comparator 702, in order to compare the second place information of the primary importance monitored information and player interface.
In one embodiment of this invention, listview by player obtains the positional information of the current project (item) shown in player interface, now, the second place information of player interface is then the positional information of the project (item) of this display.The second place information of the project shown by the primary importance information of the first video file play and player interface is compared.
Comparator 702 determines whether the first video file that this is being play continues to be positioned within the scope of player interface further.
In one embodiment of this invention, the second place information of the project shown by the primary importance information of the first video file play and player interface is compared.Time within the scope that primary importance information falls into second place information, then judge that the first video file also continues to be positioned within player interface.Time outside the scope that primary importance information falls into second place information, then judge that the first video file has been positioned at outside player interface.
Such as, in one embodiment of this invention, when the positional information that the upper edge of the first video file play is corresponding represents that it has exceeded the position of the lower edge of the project shown by player interface, then judge that the first video file has been positioned at outside player interface.Again such as, in one embodiment of this invention, when the positional information that the lower edge of the first video file play is corresponding represents that it has exceeded the position of the upper edge of the project shown by player interface, then judge that the first video file has been positioned at outside player interface.
Float icon generator 703, when the first video file determining that this is being play is positioned at outside the scope of this player interface, is used to produce the first float icon on this player interface, and this first float icon plays this first video file in order to continue.
In one embodiment of this invention, do not limit the way of realization of float icon and realize position.Such as shown in Figure 3, float icon can be floated in the below of player interface with rectangular form.Such as shown in Fig. 4, float icon can be floated above player interface with rectangular form.Those skilled in the art should understand, and float icon with square, rhombus, circle or irregularly shapedly can also to be floated in any position of player interface.Such as, float icon can be floated on the left side of player interface or right side.
In an embodiment of the present invention, whether comparator 702 also plays the second video file in order to monitor player interface.
In one embodiment of this invention, whether monitor 701 also monitor user ' can select broadcasting second video file on player interface.Such as, whether the broadcasting button by the video file in monitoring playlist is selected to judge.
When monitoring player interface and playing the second video file, float icon generator 703 makes this first float icon stop playing this first video file.
In one embodiment of this invention, when user selects broadcasting second video file on player interface, player interface starts to play the second video file.Now, in order to not affect the viewing experience of user, float icon generator 703 makes the first float icon stop broadcasting first video file.In one embodiment of this invention, after the first float icon stops broadcasting first video file, the picture showing the stop timing can be continued, for the follow-up selection of user.
When comparator 702 determines that the second video file that this is being play is positioned at outside the scope of this player interface, float icon generator 703 produces the second float icon on this player interface, and this second float icon plays this second video file in order to continue.
In one embodiment of this invention, by step 201 ~ 203 shown in Fig. 2, comparator 702 determines whether the second video file that this is being play is positioned at outside the scope of this player interface.
In one embodiment of this invention, do not limit the way of realization of the second float icon and realize position.Second float icon with square, rhombus, circle or irregularly shapedly can be floated in any position of player interface.In one embodiment of this invention, the second float icon is not overlapping with the first float icon.Such as, the second float icon can be positioned at the top of the first float icon, below, left side or right side.
It should be noted that, the present invention does not limit the quantity of the float icon that player interface floats, can according to the method shown in Fig. 5, and float icon generator 703 is floating multiple float icon on player interface.
The a part of area on player interface can be hidden due to float icon, when the quantity of float icon is too many, the operation of user for player interface can be affected.Therefore, in one embodiment of this invention, float icon generator 703 can judge that whether float icon hides the area of this player interface more than a threshold value, when the threshold value is exceeded, float icon generator 703 hides float icon according to a definite sequence until the area that float icon after process hides this player interface is no more than this threshold value.Such as, the automatic first in first out of order that can produce according to float icon float icon is hidden, until the area that the float icon after process hides this player interface is no more than this threshold value.Such as, when judging that float icon has hidden the player interface area of 50%, then according to the order of first in first out, hide the first float icon, the second float icon, the 3rd float icon etc. successively, until the area that the float icon after process covers is less than 50%.It is noted that the concrete numerical value of the present invention's not threshold limit, those skilled in the art can adjust according to design requirement.
Utilize video broadcasting method provided by the invention and device thereof, have the following advantages:
1) when the video file that player interface is play is marked player interface, continue in the mode of float icon and play this video file, so can not interrupt the viewing of user, improve user experience.
2) multiple float icon can being provided on player interface, multiplely being marked the video file of player interface with thinking that user shows, for user's viewing with select.
Also it should be noted that, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, commodity or system and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, commodity or system.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, commodity or the system comprising described key element and also there is other identical element.
It will be understood by those skilled in the art that embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code.
The foregoing is only embodiments of the invention, be not limited to the present invention.To those skilled in the art, the present invention can have various modifications and variations.All do within spirit of the present invention and principle any amendment, equivalent replacement, improvement etc., all should be included within right of the present invention.