A kind of barrage display control method and device
Technical field
The present invention relates to a kind of control method and device, belong to video information process field, be specifically related to a kind of barrage display control method and device.
Background technology
The progress of the network communications technology at any time and the speed-raising of broadband network, Internet video is applied and has been obtained carrying out the most widely at industry-by-industry.HD video application directly perceived and lively, can greatly further the distance between user, and reaches best communicative effect, and cost is minimum, so having obtained the popular welcome of every profession and trade user.
Barrage is a big characteristic of internet video.Barrage refers to the comment being directly apparent on video, can occur on video to roll, to stop even more many actions Special effects mode, be the brief comment of people's transmission of viewing video." barrage video " as the term suggests i.e. with the video of " barrage ".A lot of websites provide the function that video sends barrage.
But, when barrage content is too much, easily affect the user's normal viewing to video.Not supporting the personalized customization showing barrage in prior art, when the impact viewing of barrage content, user can only select to close whole barrage.
Summary of the invention
For disadvantages described above or the Improvement requirement of prior art, the invention provides a kind of barrage display control method and device.Its object is to the viewing area to barrage and quantity, form limit and manage, prevent the viewing of too much barrage informational influence user.
In order to solve the problems referred to above, according to an aspect of the invention, it is provided a kind of barrage display control method, comprise the following steps:
Step 1, loads video and the first barrage display parameters of correspondence thereof, it is judged that whether user opens video protection mechanism, if opened, then performs step 2;Otherwise, barrage information is shown according to the first barrage display parameters;
Step 2, receives user and arranges the second barrage display parameters of boundary and middle setting at barrage;According to the second barrage display parameters display barrage information.
Preferably, above-mentioned a kind of barrage display control method, when the quantity that user does not opens video protection mechanism and currently displaying barrage information exceedes predetermined quantity, prompting user opens video protection mechanism.
Preferably, above-mentioned a kind of barrage display control method, also include:
Second barrage display parameters and user information correlation are preserved by step 3;When user loads video again, the second barrage display parameters preserved the last time read are utilized to show to control barrage.
Preferably, above-mentioned a kind of barrage display control method, described step 2 specifically includes following sub-step:
Step 2.1, when judge user open barrage screen arrange time, the viewing area of barrage information is defined to the player region beyond video pictures region;
Step 2.2, when judging that user opens captions protection setting, prohibits barrage information and comes across the top of video caption;
Step 2.3, when judge user open barrage speed arrange time, then reduce the translational speed of current barrage information;
Step 2.4, when judging that user opens the restriction of barrage quantity, is defined to the maximum barrage quantity in the unit interval of user's input by the barrage quantity in the unit interval.
Preferably, above-mentioned a kind of barrage display control method, in described step 2:
The viewing area of barrage is defined to the viewing area that user selectes, and/or
One or more in following information according to user's input arrange the second barrage display parameters: barrage font size, barrage translational speed, barrage maximum quantity in the unit interval.
In order to solve the problems referred to above, according to a further aspect in the invention, it is provided that a kind of barrage display control unit, including with lower module:
Video load-on module, for loading the first barrage display parameters of video and correspondence thereof, it is judged that whether user opens video protection mechanism, if opened, then calls barrage and arranges module;Otherwise, barrage information is shown according to the first barrage display parameters;
Barrage arranges module, arranges the second barrage display parameters of boundary and middle setting at barrage for receiving user;According to the second barrage display parameters display barrage information.
Preferably, above-mentioned a kind of barrage display control unit, when the quantity that user does not opens video protection mechanism and currently displaying barrage information exceedes predetermined quantity, prompting user opens video protection mechanism.
Preferably, above-mentioned a kind of barrage display control unit, also include:
Parameter preserves module, for the second barrage display parameters and user information correlation being preserved;When user loads video again, the second barrage display parameters preserved the last time read are utilized to show to control barrage.
Preferably, above-mentioned a kind of barrage display control unit, described barrage arranges module and specifically includes following subelement:
Screen protection unit, when judge user open barrage screen arrange time, the viewing area of barrage information is defined to the player region beyond video pictures region;
Captions protected location, when judging that user opens captions protection setting, prohibits barrage information and comes across the top of video caption;
Speed control unit, when judge user open barrage speed arrange time, then reduce the translational speed of current barrage information;
Quantity limiting unit, when judging that user opens the restriction of barrage quantity, is defined to the maximum barrage quantity in the unit interval of user's input by the barrage quantity in the unit interval.
Preferably, above-mentioned a kind of barrage display control unit, described barrage arranges module
The viewing area of barrage is defined to the viewing area that user selectes, and/or
One or more in following information according to user's input arrange the second barrage display parameters: barrage font size, barrage translational speed, barrage maximum quantity in the unit interval.
In general, the above technical scheme that the present invention is contemplated is compared with prior art, it is possible to viewing area and quantity, form to barrage limit and manage, and prevents the viewing of too much barrage informational influence user.
Accompanying drawing explanation
Accompanying drawing 1 is a kind of flow chart of the present invention.
Accompanying drawing 2 is a kind of structured flowchart of the present invention.
Detailed description of the invention
Below by embodiment, and combine accompanying drawing, technical scheme is described in further detail.
A kind of barrage display control method, comprises the following steps:
Step 1, loads video and the first barrage display parameters of correspondence thereof, it is judged that whether user opens video protection mechanism, if opened, then performs step 2;Otherwise, barrage information is shown according to the first barrage display parameters;
When the quantity that user does not opens video protection mechanism and currently displaying barrage information exceedes predetermined quantity, prompting user opens video protection mechanism.
Step 2, receives user and arranges the second barrage display parameters of boundary and middle setting at barrage;According to the second barrage display parameters display barrage information.Concrete, the viewing area of barrage can be defined to the viewing area that user selectes, and/or the second barrage display parameters are set according to one or more in the following information of user's input: barrage font size, barrage translational speed, barrage maximum quantity in the unit interval.
Described step 2 specifically includes following sub-step:
Step 2.1, when judge user open barrage screen arrange time, the viewing area of barrage information is defined to the player region beyond video pictures region;
Step 2.2, when judging that user opens captions protection setting, prohibits barrage information and comes across the top of video caption;
Step 2.3, when judge user open barrage speed arrange time, then reduce the translational speed of current barrage information;
Step 2.4, when judging that user opens the restriction of barrage quantity, is defined to the maximum barrage quantity in the unit interval of user's input by the barrage quantity in the unit interval.
Second barrage display parameters and user information correlation are preserved by step 3;When user loads video again, the second barrage display parameters preserved the last time read are utilized to show to control barrage.
A kind of barrage display control unit, including with lower module: video load-on module, barrage arrange module, parameter preserves module.
Video load-on module is for loading the first barrage display parameters of video and correspondence thereof, it is judged that whether user opens video protection mechanism, if opened, then calls barrage and arranges module;Otherwise, barrage information is shown according to the first barrage display parameters;
When the quantity that user does not opens video protection mechanism and currently displaying barrage information exceedes predetermined quantity, prompting user opens video protection mechanism.
Barrage arranges module and arranges the second barrage display parameters of boundary and middle setting for receiving user at barrage;According to the second barrage display parameters display barrage information.Tool is stopped, the viewing area of barrage is defined to the viewing area that user selectes, and/or the second barrage display parameters are set according to one or more in the following information of user's input: barrage font size, barrage translational speed, barrage maximum quantity in the unit interval.
Barrage arranges module and specifically includes following subelement:
Screen protection unit, when judge user open barrage screen arrange time, the viewing area of barrage information is defined to the player region beyond video pictures region;
Captions protected location, when judging that user opens captions protection setting, prohibits barrage information and comes across the top of video caption;
Speed control unit, when judge user open barrage speed arrange time, then reduce the translational speed of current barrage information;
Quantity limiting unit, when judging that user opens the restriction of barrage quantity, is defined to the maximum barrage quantity in the unit interval of user's input by the barrage quantity in the unit interval.
Parameter preserves module for the second barrage display parameters and user information correlation being preserved;When user loads video again, the second barrage display parameters preserved the last time read are utilized to show to control barrage.
Embodiment 1:
As it is shown in figure 1, a kind of barrage display control method, this control method needs to reach the protection purpose of video-frequency playing content.
Detailed step is as follows:
(1) user watches video: member user, when carrying out video-see, needs to watch the content of video.If the barrage of current video is too much.User can open video protection mechanism.
(2) video content protection is carried out: user, by the feature operation button in video, starts video content protection.
(3) whether open video protection to arrange: eject video protection and arrange.Video protection exploitation is set on.If not opening, giving tacit consent to and not protecting video content.
(4) whether open barrage screen to arrange: judge whether that opening barrage screen is arranged.If being provided with barrage screen to arrange, then barrage does not haves the main contents play area (barrage rolls above video content) of video.If not opening, giving tacit consent to and not protecting video content.
(5) video caption protection setting whether is opened: judge whether to open video caption protection setting.If being provided with video caption protection, then all of barrage then can not rolling at video caption.If not opening, giving tacit consent to and not protecting video caption content.
(6) whether open barrage translational speed to control: judge whether that opening barrage translational speed controls.If being provided with the captions translational speed of barrage.The translational speed of barrage can be reduced when barrage moves, thus reduce the barrage interference to video content.If not opening barrage translational speed to control, the translational speed of barrage keeps original speed.
(7) whether open barrage maximum per minute to control: judge whether to open the per minute the maximum amount of control of barrage.If be provided with barrage maximum barrage amount per minute (acquiescence can arrange maximum barrage data volume per minute be high (1000), in (600), low (200)), most barrage data allowing to occur the most per minute will be controlled, in maximum higher limit.If being not provided with barrage maximum per minute to control, the highest barrage amount that barrage amount is arranged according to video shows.
(8) video content is preserved: preserve video protection arranges content.
Embodiment 2:
The present embodiment additionally provides a kind of barrage display control unit, including with lower module: video load-on module, barrage arrange module, parameter preserves module.
Video load-on module is for loading the first barrage display parameters of video and correspondence thereof, it is judged that whether user opens video protection mechanism, if opened, then calls barrage and arranges module;Otherwise, barrage information is shown according to the first barrage display parameters;
When the quantity that user does not opens video protection mechanism and currently displaying barrage information exceedes predetermined quantity, prompting user opens video protection mechanism.
Barrage arranges module and arranges the second barrage display parameters of boundary and middle setting for receiving user at barrage;According to the second barrage display parameters display barrage information.Tool is stopped, the viewing area of barrage is defined to the viewing area that user selectes, and/or the second barrage display parameters are set according to one or more in the following information of user's input: barrage font size, barrage translational speed, barrage maximum quantity in the unit interval.
Barrage arranges module and specifically includes following subelement:
Screen protection unit, when judge user open barrage screen arrange time, the viewing area of barrage information is defined to the player region beyond video pictures region;
Captions protected location, when judging that user opens captions protection setting, prohibits barrage information and comes across the top of video caption;
Speed control unit, when judge user open barrage speed arrange time, then reduce the translational speed of current barrage information;
Quantity limiting unit, when judging that user opens the restriction of barrage quantity, is defined to the maximum barrage quantity in the unit interval of user's input by the barrage quantity in the unit interval.
Parameter preserves module for the second barrage display parameters and user information correlation being preserved;When user loads video again, the second barrage display parameters preserved the last time read are utilized to show to control barrage.
Specific embodiment described herein is only to present invention spirit explanation for example.Described specific embodiment can be made various amendment or supplements or use similar mode to substitute by those skilled in the art, but without departing from the spirit of the present invention or surmount scope defined in appended claims.