A kind of personalized barrage sending method and device
Technical field
The invention belongs to field of computer technology, more particularly, to a kind of personalized barrage sending method and device.
Background technology
Barrage is typically all above screen at present so that barrage passes through video from right to left.But sometimes above video
There will be important information, such as information etc., common barrage may affect video-see.
Summary of the invention
For disadvantages described above or the Improvement requirement of prior art, the invention provides a kind of personalized rage sending method and
Device, its object is to be arranged by the position personalized to barrage and transparency so that beholder can unrestricted choice video and
Barrage information obtains, and thus solving barrage may affect the technical problem of video-see.
For achieving the above object, according to one aspect of the present invention, it is provided that a kind of personalized barrage sending method, including
Following steps:
(1) the barrage region that user selects is obtained;
(2) judge that the barrage region that step (1) obtains is the most overlapping with caption area;Step is entered when judging to have overlap
(3);Otherwise using barrage region as barrage viewing area, enter step (4);
(3) obtain user and protect operation, when described protection operation is for opening captions protection, by what step (1) obtained
Evade in barrage region after caption area as barrage viewing area;When described protection operation is for barrage protection operation, will step
Suddenly the barrage region obtained in (1) is as barrage viewing area, and the caption area in barrage viewing area is as Transparence Display district
Territory;
(4) in barrage viewing area, barrage is shown, at the barrage of Transparence Display region display transparence.
Preferably, described personalized barrage sending method, the barrage region that its step (1) described user selects, can by with
Family unrestricted choice or selected the region unit specified by user in video playback area.
Preferably, described personalized barrage sending method, its, described by user in video playback area unrestricted choice,
Particularly as follows: obtain the video playback area that user is selected by rectangular selection frame, polygon choice box or track choice box, make
For barrage region.
Preferably, described personalized barrage sending method, its described region unit being selected by user to specify, particularly as follows: will
Video playback area is divided into top, lower section, middle part, the left side and the right;User is by clicking on or selecting really in prompting frame
Determine one piece of region of wherein that as barrage region.
Preferably, described personalized barrage sending method, when by user's unrestricted choice in video playback area,
The described barrage region judging that step (1) obtains of step (2) is the most overlapping with caption area, particularly as follows: work as barrage
The region common with caption area, region show more than 2/3 character needed for region time, it is judged that barrage region and character zone weight
Folded;Otherwise it is judged as the most overlapping;
When being selected, by user, the region unit specified,
The described barrage region judging that step (1) obtains of step (2) is the most overlapping with caption area, is specially;Work as barrage
When region is the region unit overlapping with caption area, it is judged that barrage region is overlapping with character zone;Otherwise it is judged as the most overlapping.
According to another aspect of the present invention, it is provided that a kind of personalized barrage dispensing device, including:
Barrage region selection module, for obtaining the barrage region that user selects;
Judge module, the barrage region obtained for barrage region selection module is the most overlapping with caption area, works as judgement
During for there being overlap, submit to described barrage region protect module;Otherwise using described barrage region as barrage viewing area, carry
Hand over barrage display module;
Described protection module, for obtaining the protection operation that user selects, when described protection operation is for opening captions protection
Time, evade caption area in will determine that the barrage region that mould is submitted to as barrage viewing area;When described protection operation is barrage
During protection operation, will determine that barrage region that module submits to is as barrage viewing area, the caption area in barrage viewing area
As Transparence Display region;
Described barrage display module, for showing barrage in barrage viewing area, shows transparence in Transparence Display region
Barrage.
Preferably, described personalized barrage dispensing device, the barrage region that its described user selects, can be that user is at video
The region that in play area, in the region of unrestricted choice or the region unit specified, user selects.
Preferably, described personalized barrage dispensing device, the barrage region that its described user selects, can be that user is at video
The region that in play area, in the region of unrestricted choice or the region unit specified, user selects.
Preferably, described personalized barrage dispensing device, rectangle is passed through in the region of its described unrestricted choice, specially user
The video playback area that choice box, polygon choice box or track choice box select.
Preferably, described personalized barrage dispensing device, when the barrage region that described user selects is that user broadcasts at video
When putting the region of unrestricted choice in region,
Judge module judges that the barrage region that barrage region selection module obtains is the most overlapping with caption area, particularly as follows:
The region common with caption area when barrage region show more than 2/3 character needed for region time, it is judged that barrage region and character
Region is overlapping;Otherwise it is judged as the most overlapping;
When the barrage region that described user selects be user select the region unit specified time,
Judge module judges that the barrage region that barrage region selection module obtains is the most overlapping with caption area, is specially;
When barrage region is the region unit overlapping with caption area, it is judged that barrage region is overlapping with character zone;Otherwise it is judged as not
Overlapping.
In general, by the contemplated above technical scheme of the present invention compared with prior art, due to can be personalized
Select barrage viewing area, it is possible to obtain the beneficial effect reducing barrage to video display impact.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the method that the present invention provides;
Fig. 2 is the structural representation of the device that the present invention provides;
Fig. 3 is the schematic flow sheet of the method that embodiment 1 provides.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, right
The present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, and
It is not used in the restriction present invention.If additionally, technical characteristic involved in each embodiment of invention described below
The conflict of not constituting each other just can be mutually combined.
The personalized barrage sending method that the present invention provides, comprises the following steps:
(1) the barrage region that user selects is obtained;
Described user select barrage region, can by user in video playback area unrestricted choice or by user select refer to
Fixed region unit.
By user's unrestricted choice in video playback area, selected particularly as follows: obtain user by rectangular selection frame, polygon
Select frame or the video playback area of track choice box selection, as barrage region.
The region unit specified is selected, particularly as follows: video playback area to be divided into top, lower section, middle part, the left side by user
And the right;By clicking on or selecting in prompting frame, user determines that one piece of region of wherein that is as barrage region.
(2) judge that the barrage region that step (1) obtains is the most overlapping with caption area;Step is entered when judging to have overlap
(3);Otherwise using barrage region as barrage viewing area, enter step (4);
(3) obtain user and protect operation, when described protection operation is for opening captions protection, by what step (1) obtained
Evade in barrage region after caption area as barrage viewing area;When described protection operation is for barrage protection operation, will step
Suddenly the barrage region obtained in (1) is as barrage viewing area, and the caption area in barrage viewing area is as Transparence Display district
Territory;
(4) in barrage viewing area, barrage is shown, at the barrage of Transparence Display region display transparence.
The personalized barrage dispensing device that the present invention provides, including:
Barrage region selection module, for obtaining the barrage region that user selects;
The barrage region that described user selects, can be region or the appointment of user's unrestricted choice in video playback area
Region unit in user select region.
The region of described unrestricted choice, specially user are selected by rectangular selection frame, polygon choice box or track
The video playback area that frame selects.
Top, lower section, middle part, the left side and the right that the region unit specified, specially video playback area are divided into.
Judge module, the barrage region obtained for barrage region selection module is the most overlapping with caption area, works as judgement
During for there being overlap, submit to described barrage region protect module;Otherwise using described barrage region as barrage viewing area, carry
Hand over barrage display module;
Described protection module, for obtaining the protection operation that user selects, when described protection operation is for opening captions protection
Time, evade in will determine that the barrage region that mould is submitted to after caption area as barrage viewing area;When described protection operation is bullet
During curtain protection operation, will determine that barrage region that module submits to is as barrage viewing area, the subtitle region in barrage viewing area
Territory is as Transparence Display region;
Described barrage display module, for showing barrage in barrage viewing area, shows transparence in Transparence Display region
Barrage.
It is below embodiment:
Embodiment 1
The personalized barrage sending method that the present invention provides, as it is shown on figure 3, after user selects to carry out barrage transmission, carry
Show whether user carries out personalized barrage and send, after user determines that carrying out personalized barrage sends, follow the steps below:
(1) the barrage region that user selects is obtained;
Video area is divided into top, lower section, middle part, the left side and right area block, ejects personalized barrage choice box,
Prompting user selects barrage region in area above block.
Obtain the selection of user, and using corresponding region as barrage region.
(2) judge that the barrage region that step (1) obtains is the most overlapping with caption area;Step is entered when judging to have overlap
(3);Otherwise using barrage region as barrage viewing area;
If the barrage region obtained in step (1) is lower section, the left side, the right, then judgement has overlapping with caption area;As
The barrage region really obtained in step (1) is top, middle part, then judgement does not has overlapping with caption area, enters step (4).
(3) obtain user and protect operation, when described protection operation is for opening captions protection, by what step (1) obtained
Caption area is evaded as barrage viewing area in barrage region;When described protection operation is for barrage protection operation, by step
(1) the barrage region obtained in is as barrage viewing area, and the caption area in barrage viewing area is as Transparence Display region;
(4) in barrage viewing area, barrage is shown, at the barrage of Transparence Display region display transparence.
The barrage of described display transparence, will be arranged between 30% to 80% by barrage font transparency, and display is in institute
State Transparence Display region.
Embodiment 2
A kind of personalized barrage dispensing device, including:
Barrage region selection module, for obtaining the barrage region that user selects;
The barrage region that described user selects, for user region of unrestricted choice in video playback area, described freedom
The video playback that the region selected, specially user are selected by rectangular selection frame, polygon choice box or track choice box
Region.
Judge module, the barrage region obtained for barrage region selection module is the most overlapping with caption area, works as judgement
During for there being overlap, submit to described barrage region protect module;Otherwise using described barrage region as barrage viewing area, carry
Hand over barrage display module;
The region common with caption area when barrage region show more than 2/3 character needed for region time, it is judged that barrage district
Territory is overlapping with character zone.
Protection module, for obtaining the protection operation that user selects, when described protection operation is for opening captions protection, will
Evade in judging the barrage region that mould is submitted to after caption area as barrage viewing area;When described protection operation is protected for barrage
During operation, will determine that barrage region that module submits to is as barrage viewing area, the caption area conduct in barrage viewing area
Transparence Display region;
Described barrage display module, for showing barrage in barrage viewing area, shows transparence in Transparence Display region
Barrage.
The barrage of described display transparence, will be arranged between 30% to 80% by barrage font transparency, and display is in institute
State Transparence Display region.
As it will be easily appreciated by one skilled in the art that and the foregoing is only presently preferred embodiments of the present invention, not in order to
Limit the present invention, all any amendment, equivalent and improvement etc. made within the spirit and principles in the present invention, all should comprise
Within protection scope of the present invention.