Invention content
For the drawbacks described above of the prior art, the present invention provides a kind of video barrage adding method and device and corresponding
Video broadcasting method and video player, allow users to quickly to share and check that film is commented on, and can be accurately positioned and be commented
The splendid moment of the film of opinion or bright spot.
The technical solution adopted by the present invention to solve the technical problems is:It is proposed a kind of video barrage adding method, including
Following steps:
S11, barrage input frame is activated based on first specific operation of the user on player interface, receives user to current
The comment word of the video pictures input of play position;
S12, the video pictures figure that current play position is intercepted based on the second specific operation of the user on player interface
Picture, and sectional drawing and at least described comment word, play position and video source cryptographic Hash are uploaded to barrage clothes as barrage information
Business device.
In one embodiment, the method is gone back before intercepting the video pictures image of current play position in step s 12
Including:
It verifies whether the user has logged in, has such as logged in, then directly acquired the user identifier of the user, do not step on such as
Record, then receive log-on message input by user to obtain the user identifier of the user;
Barrage information in the step S12 further includes the user identifier.
Barrage information is uploaded to barrage server in one embodiment, in the step S12 to further comprise:
The sectional drawing is sent to barrage picture servers, and obtains the sectional drawing storing path of barrage picture servers return
Information;
The sectional drawing that the comment word, play position, video source cryptographic Hash and barrage picture servers return is preserved
Routing information is sent to barrage text server as barrage text message.
In one embodiment, the method further includes:
With the barrage list shown on barrage information update player interface.
In one embodiment, the method further includes:
The comment word is shown on the video pictures of current play position.
The present invention also proposes a kind of video barrage adding set to solve technical problem, including:
Barrage input module, for activating barrage input frame based on first specific operation of the user on player interface,
Receive the comment word that user inputs the video pictures of current play position;
Barrage uploading module, for intercepting current play position based on second specific operation of the user on player interface
Video pictures image, and using sectional drawing at least described comment word, play position and video source cryptographic Hash as barrage information
It is uploaded to barrage server.
In one embodiment, described device further includes:
User profile acquisition module, in the video pictures image of barrage uploading module interception current play position
It verifies whether the user has logged in before, has such as logged in, then directly acquired the user identifier of the user, be such as not logged in, then
Log-on message input by user is received to obtain the user identifier of the user;
The barrage information that the barrage uploading module uploads further includes the user identifier.
The present invention also proposes a kind of video broadcasting method to solve its technical problem, includes the following steps:
S21, playing video file;
S22, from barrage server download since initial play position with the relevant specified item number of the video file
Barrage information, wherein every barrage information includes at least comment word, play position and video source cryptographic Hash;
S23, judge whether also have the download for meeting certain condition after current play position at predetermined intervals
Barrage information, such as nothing, then again from barrage server download current play position after specified item number barrage information;
S24, the corresponding barrage information downloaded is shown according to current play position.
In one embodiment, further wrapped from barrage server download barrage information in the step S22 and step S23
It includes:Barrage text message is downloaded from barrage text server, the barrage text message includes at least the comment word, plays
Position and video source cryptographic Hash and sectional drawing are in the storing path information of barrage picture servers.
In one embodiment, the step S24 further comprises:
Show the comment word in barrage information corresponding with current play position one by one in video display process.
In one embodiment, the step S24 further comprises:
Third specific operation based on user on player interface generates a barrage list, and the barrage list display goes out
At least play position and comment word in the barrage text message downloaded after current play position;
Sectional drawing in the one article of barrage text message selected based on user to the 4th specific operation of the barrage list is protected
Routing information is deposited to be shown from the corresponding sectional drawing of barrage picture servers download.
In one embodiment, the step S24 is further included:
Broadcasting position in the one article of barrage text message selected based on user to the 5th specific operation of the barrage list
It puts and navigates to corresponding video pictures, and the comment word in the barrage text message is shown on the video pictures.
The present invention also proposes a kind of video broadcasting method to solve its technical problem, includes the following steps:
S31, the Initialize installation based on acquiescence or the 6th specific operation generation one based on user on player interface
The related barrage information downloaded from barrage server is listed in barrage list, the barrage list by preset classification respectively, every
The barrage information includes at least comment word, play position and video source cryptographic Hash;
One article of barrage information that S32, parsing select the 7th specific operation of the barrage list based on user, obtains institute
State comment word, play position and the video source cryptographic Hash in barrage information;
S33, detection it is current whether just playing video file and in the case of currently non-playing video file according to institute
State acquisition video source cryptographic Hash play corresponding video file and in the case of current positive playing video file it is further
Whether the video source cryptographic Hash for comparing acquisition is identical with the video source cryptographic Hash for the video being currently played, and different
In the case of terminate the broadcasting of current video, corresponding video file is played according to the video source cryptographic Hash of acquisition;
S34, the correspondence video pictures that currently playing video file is navigated to according to the play position of acquisition, and described
The comment word of the acquisition is shown on video pictures.
The present invention also proposes a kind of video player to solve its technical problem, including:
Video playback module, for playing video file;
Barrage acquisition module is related to the video file since initial play position for being downloaded from barrage server
Specified item number barrage information, and judge whether to also have after current play position at predetermined intervals and meet certain item
The barrage information downloaded of part, such as nothing, then again from barrage server download current play position after specified item number
Barrage information, wherein every barrage information includes at least comment word, play position and video source cryptographic Hash;
Barrage display module, for showing the corresponding barrage information downloaded according to current play position.
In one embodiment, the barrage acquisition module is additionally operable to download barrage text message from barrage text server,
The barrage text message includes at least the comment word, play position and video source cryptographic Hash and sectional drawing in barrage picture
The storing path information of server;
The barrage display module further comprises:
Barrage list display module, for generating barrage row based on third specific operation of the user on player interface
Table, the barrage list display go out at least play position and comment in the barrage text message downloaded after current play position
Word;
Barrage sectional drawing display module, for the one bar of bullet selected based on user to the 4th specific operation of the barrage list
Sectional drawing storing path information in curtain text message is downloaded corresponding sectional drawing from barrage picture servers and is shown;
Barrage positioning display module, for the one bar of bullet selected based on user to the 5th specific operation of the barrage list
Play position in curtain text message navigates to corresponding video pictures, and the barrage text is shown on the video pictures
Comment word in information.
The present invention also proposes a kind of video player to solve its technical problem, including:
Barrage list block, the 6th spy for the Initialize installation based on acquiescence or based on user on player interface
The related bullet downloaded from barrage server is listed in one barrage list of fixed operation generation, the barrage list by preset classification respectively
Curtain information, every barrage information include at least comment word, play position and video source cryptographic Hash;
Barrage parsing module, for parsing the one bar of bullet selected based on user to the 7th specific operation of the barrage list
Curtain information, obtains comment word, play position and the video source cryptographic Hash in the barrage information;
Video playback module, it is current whether just in playing video file for detecting, and in currently non-playing video file
In the case of corresponding video file played and for positive playing video current according to the video source cryptographic Hash of the acquisition
The video source cryptographic Hash and the video source cryptographic Hash for the video being currently played for further comparing acquisition in the case of file be
It is no identical, and in the case that it is different terminate current video broadcasting, according to the video source cryptographic Hash of acquisition play it is corresponding
Video file;
Barrage positioning display module, for navigating to currently playing video file according to the play position of the acquisition
Video pictures are corresponded to, and the comment word of the acquisition is shown on the video pictures.
By the video barrage adding method and device of the present invention, user need to only pass through specific operation on player interface
Activate the input comment of barrage input frame, you can addition barrage information is rapidly completed and once shares, greatly save to barrage server
Operating time and resource.And due to containing film sectional drawing in barrage information, the comment of user is more intuitive;Since barrage is believed
Video source cryptographic Hash and play position are contained in breath, user can be pin-pointed to the picture commented in targeted film.
The barrage list generated by the video broadcasting method and video player of the present invention, user can quickly check what is watched
The film of hot broadcast, newest film have which or bright spot splendid moment on film and internet, and can quick positioning playing.Therefore
Invention achieves quick obtaining information or the purposes of sharing information, optimize user experience.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, it is right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
Fig. 1 shows the flow chart of the video barrage adding method 100 of first embodiment of the invention.As shown in Figure 1, this is regarded
Frequency barrage adding method 100 includes the following steps:
In step S101, the first specific operation based on user on player interface activates barrage input frame, receives and uses
The comment word that family inputs the video pictures of current play position.
In one specific example, barrage input frame can be equipped on player interface, when user is wished to being currently played
Video pictures when being commented on, can be activated by clicking the barrage input frame, be inputted with receiving user in the barrage
The comment word inputted in frame.In another specific example, user can be activated by shortcut key such as "enter" key" on player interface
And barrage input frame is opened, corresponding comment word is inputted in the barrage input frame.When there is no input content in input frame,
Again input frame can be closed by "enter" key".
In step S102, the video of the second specific operation interception current play position based on user on player interface
Picture image, and sectional drawing and at least described comment word, play position and video source cryptographic Hash are uploaded to as barrage information
Barrage server.
As previously mentioned, after user completes the input of comment content, it can be specific by second on player interface
Operation generates a trigger signal to intercept the video pictures image of current play position, and after by sectional drawing and the comment text of input
The play position of video pictures and the video source cryptographic Hash of video corresponding to word and comment are uploaded together as barrage information
Give barrage server.In one specific example, user can generate this by clicking the send button beside barrage input frame
Trigger signal.In another specific example, user can generate time trigger signal by shortcut key such as "enter" key".The sectional drawing can be with
It is the thumbnail of the video picture data generation according to the current play position obtained from player.
In the specific example of the present invention, barrage information is uploaded to barrage server in step S102 can be further
It performs in the following way:
First, sectional drawing is sent to by barrage picture servers using Transmission Control Protocol, and obtains the return of barrage picture servers
Sectional drawing storing path information;
Then, it is returned using http protocol by word, play position, video source cryptographic Hash and barrage picture servers are commented on
The sectional drawing storing path information returned is sent to barrage text server as barrage text message.
In further specific example, which can be the unique of barrage picture servers distribution
Sectional drawing title can get corresponding sectional drawing based on the sectional drawing title from barrage picture servers.
In the above manner by picture and text message separately send and preservation, operation can be simplified, mitigate server pressure
Power.When player loads barrage information, first quickly barrage text message can be downloaded from barrage text server and be shown,
It needs to decide whether to download from barrage picture servers according to the sectional drawing path included in barrage text message further according to user
Corresponding sectional drawing.
Using the video barrage adding method 100 of first embodiment of the invention, user need to only pass through on player interface
Specific operation activation barrage input frame input comment, you can addition barrage information is rapidly completed and once shares to barrage server.
Due to containing film sectional drawing in barrage information, the comment of user is more intuitive;It is breathed out due to containing video source in barrage information
Uncommon value and play position, user can be pin-pointed to the picture commented in targeted film.
Fig. 2 shows the flow charts of the video barrage adding method 200 of second embodiment of the invention.As shown in Fig. 2, this is regarded
Frequency barrage adding method 200 includes the following steps:
In step S201, the first specific operation based on user on player interface activates barrage input frame.Such as preceding knot
It closes described in Fig. 1, user can pass through a variety of known operation activation barrage input frames.
In step S202, the video pictures for current play position that user inputs in the barrage input frame are received
Comment on word.
In step S203, judge whether to detect the second specific operation of user.In specific example, second specific operation
Can click send button or by shortcut key, shot operation is triggered with this.If do not detect user's in step S203
Second specific operation, then return to step S202, waits for user to input comment word.If the second of user is detected in step S203
Specific operation then performs step S204.
In step S204, verify whether user has logged in.If being verified in step S204, user has logged in, and performs step
S206.If being verified in step S204, user is not logged in, and performs step S205.
In step S205, receive log-on message input by user and logged in.It, can be in player in one specific example
A login window is popped up on interface, inputting username and password by user logs in.
In step S206, the log-on message based on user obtains the user identifier of user.In one specific example, the user
Mark is the user name of user.
In step S207, the video pictures image of current play position is intercepted.As previously mentioned, the sectional drawing can be according to from
The thumbnail of the video picture data generation for the current play position that player obtains.
In step S208, by sectional drawing with comment word, user identifier, play position and video source cryptographic Hash together as bullet
Curtain information is uploaded to barrage server.
The second embodiment of the present invention shown in Fig. 2 increases verification user compared with first embodiment shown in FIG. 1
No the step of having logged in obtain user identifier, its purpose is to user identity information is included in barrage information.Using Fig. 2
Shown barrage adding method 200 shares comment information, can player load barrage information when based on user identifier to
Family provides the review record of user oneself, helps user's video that positioning playing oneself was commented on different machines.
Fig. 3 shows the flow chart of the video barrage adding method 300 of third embodiment of the invention.Video shown in Fig. 3
To working as while barrage adding method 300 checks the barrage list of currently playing video file on a player corresponding to user
Preceding video pictures share the situation of comment.As shown in figure 3, the video barrage adding method 300 includes the following steps:
In step S301, the first specific operation based on user on player interface activates barrage input frame, receives and uses
The comment word that family inputs the video pictures of current play position.
In step S302, the video of the second specific operation interception current play position based on user on player interface
Picture image, and sectional drawing and at least described comment word, play position and video source cryptographic Hash are uploaded to as barrage information
Barrage server.
Step S301, S302 of method 300 and step S101, S102 in video barrage adding method 100 shown in FIG. 1
It is identical, therefore details are not described herein.On the basis of method 100 shown in Fig. 1, method 300 further includes following steps:
In step S303, with the barrage list shown on barrage information update player interface.
In step S304, the comment word is shown on the video pictures of current play position.
As previously mentioned, method 300 corresponds to the barrage list that user checks currently playing video file on a player
While share the situation of comment to current video picture.Therefore, add while user checks barrage list on a player
When adding barrage information, the barrage information of user's addition is preserved in addition to being uploaded to barrage server, can be also immediately presented at and be checked
Barrage list in, and it is input by user comment word can also be shown on the video pictures of current play position.Tool
In body example, comment word known various display formats may be used to show, for example, can in the form of subtitles from the right side to
It rolls left to move and show.
Fig. 4 shows the logic diagram of the video barrage adding set 400 of first embodiment of the invention.It as shown in figure 4, should
Video barrage adding set 400 includes barrage input module 401 and barrage uploading module 402.Barrage input module 401 is used for base
Barrage input frame is activated in first specific operation of the user on player interface, receives video of the user to current play position
The comment word of picture input.If preceding combination Fig. 1 is introduced, which can be various known operations, such as
User can click barrage input frame to be activated or user can be activated by shortcut key such as "enter" key" and open one
A barrage input frame.Barrage uploading module 402 is used for current based on second specific operation interception of the user on player interface
The video pictures image of play position, and using sectional drawing and at least described comment word, play position and video source cryptographic Hash as
Barrage information is uploaded to barrage server 10.As preceding with reference to shown in Fig. 1, in specific example, which can be a little
It hits send button or by shortcut key, shot operation is triggered with this.Barrage uploading module 402 can obtain currently playing from player
The video picture data of position, and sectional drawing of the thumbnail as the video pictures is generated, it is received with barrage input module 401
It comments on word and the corresponding play position of current video picture, the video source cryptographic Hash of current video is believed together as barrage
Breath is sent to barrage server 10 and preserves, subsequently to be loaded by player and to be shown to user.
Using the video barrage adding set 400 of first embodiment of the invention, user need to only pass through on player interface
Specific operation activation barrage input frame input comment, you can addition barrage information is rapidly completed and once shares to barrage server.
Due to containing film sectional drawing in barrage information, the comment of user is more intuitive;It is breathed out due to containing video source in barrage information
Uncommon value and play position, user can be pin-pointed to the picture commented in targeted film.
Fig. 5 shows the logic diagram of the barrage information adding set 500 of second embodiment of the invention.It as shown in figure 5, should
Barrage information adding set 500 includes barrage input module 501, barrage uploading module 502, User profile acquisition module 503, more
New module 504 and barrage display module 505.Wherein, barrage input module 501 be used for based on user on player interface the
One specific operation activates barrage input frame, receives the comment word that user inputs the video pictures of current play position.Barrage
Input module 501 is identical with the feature of the barrage input module 401 in Fig. 4 and effect, therefore details are not described herein.
Barrage uploading module 502 is used to intercept currently playing position based on second specific operation of the user on player interface
The video pictures image put, and sectional drawing and at least described comment word, play position and video source cryptographic Hash are believed as barrage
Breath is uploaded to barrage server.In specific example, as shown in figure 5, barrage server further comprises barrage picture servers 11
With barrage text server 12.Sectional drawing is sent to barrage picture servers by barrage uploading module 502 using Transmission Control Protocol first
11, and obtain the sectional drawing storing path information of the return of barrage picture servers 11;Then barrage uploading module 502 is assisted using HTTP
The sectional drawing returned including at least comment word, play position, video source cryptographic Hash and barrage picture servers is preserved road by view
The barrage text message of diameter information is sent to barrage text server.In the above manner by picture and text message separately send
And preservation, operation can be simplified, mitigate server stress.It, can be first quickly from barrage text when player loads barrage information
Book server is downloaded barrage text message and is shown, needs to decide whether to wrap in foundation barrage text message further according to user
Corresponding sectional drawing is downloaded from barrage picture servers in the sectional drawing path contained.
User profile acquisition module 503 is used to intercept the video pictures figure of current play position in barrage uploading module 502
First whether verification user has logged in as before.If user has logged in, then User profile acquisition module 503 directly acquires the use of user
Family identifies.If user is not logged in, then User profile acquisition module 503 receives log-on message input by user to obtain the use of user
Family identifies.In one specific example, a login window can be popped up on player interface, username and password is inputted by user
It logs in, the user name of user identifier, that is, user.In the present embodiment, barrage uploading module 502 is being uploaded to barrage text server
User identifier is further comprised in 12 barrage text message, can be marked in this way when player loads barrage information based on user
Know the review record for providing a user user oneself, help user's video that positioning playing oneself was commented on different machines.
Update module 504 is used in the case of adding barrage information while user checks barrage list, is added with user
The barrage list shown on the barrage information update player interface added, the barrage list is shown in by the barrage letter that user adds
In.Barrage display module 505 is used to show comment word input by user on the video pictures of current play position, such as with
The form of subtitle is scrolled from right to left on current video picture.
Based on video barrage adding method described above, the present invention also proposes a kind of video broadcasting method.Fig. 6 is shown
The flow chart of the video broadcasting method 600 of first embodiment of the invention.Method 600 shown in fig. 6 is seeing piece corresponding to user
In the process it should be understood that the situation of the related commentary of film subsequent content.As shown in fig. 6, the video broadcasting method 600 is included such as
Lower step:
In step S601, playing video file.
In step S602, from barrage server download since initial play position with the relevant specified item of the video file
Several barrage information, wherein every barrage information includes at least comment word, play position and video source cryptographic Hash.It thus can be with
It is found out by way of matching video source cryptographic Hash and the relevant certain item number of currently playing video file(Such as 30)
Barrage information.
In step S603, start timer.
In step S604, judge whether the predetermined time interval for reaching timer(Such as 300 milliseconds).If not up to,
It is continued waiting in return to step S603.If reaching, step S605 is performed.
In step S605, judge whether there be the barrage the downloaded letter for meeting certain condition after current play position
Breath.In one specific example, it may determine that after current play position whether also have the barrage information downloaded in step S605.
In another specific example, it may determine that after current play position whether also have the download for being more than certain item number in step S605
Barrage information.If so, return to step S603 continues waiting for next time interval.If it is not, then perform step S606.
In step S606, again from the specified item number after barrage server download current play position(Such as 30)'s
Barrage information.
In step S607, the corresponding barrage information downloaded is shown according to current play position.
The display of barrage information can have different forms according to the setting of player and the operation of user.For example, one
In a specific example, barrage corresponding with current play position can be shown one by one on video pictures in video display process
Comment word in information.
In another specific example, when the barrage information downloaded in step S602 and step S606 directly contains sectional drawing
In the case of, as shown in fig. 7, the step S607 further comprises:
In step S6071, the third specific operation based on user on player interface generates a barrage list, the bullet
Curtain list display goes out at least play position, sectional drawing and comment word in the barrage information downloaded after current play position.Example
Such as, pause button is clicked during the video that user can play in viewing, can be based on user in step S6071 clicks temporarily
Stop button and generate a barrage list.In specific example, which can be shown in player in the form of translucent pop-up
The center at interface shows play position, sectional drawing and comment in the barrage information downloaded after current play position in pop-up
Word.In this way, user can quicklook the comment checked to currently playing video further part content, understand video
In splendid moment or bright spot.
In step S6072, broadcasting in the one article of barrage information selected based on user to the 5th specific operation of barrage list
It puts position and navigates to corresponding video pictures, and the comment word in the barrage information is shown on the video pictures.Example
Such as, user can select corresponding barrage information by double-clicking wherein one comment, be based on after barrage list has been browsed
The play position player included in the barrage information can navigate to corresponding video pictures, then on the video pictures
Show corresponding comment word.In specific example, known various display formats may be used to show in comment word, for example,
It can scroll out from right to left in the form of subtitles.
Using the video broadcasting method 600 of first embodiment of the invention, user can need to select according to seeing during piece
It selects and whether checks barrage list, and barrage list can quickly understand the film watched by checking which subsequently has is excellent
Moment or bright spot, and can quick positioning playing.
Fig. 8 shows the flow chart of the video broadcasting method 700 of second embodiment of the invention.Video playing shown in Fig. 8
Method 700 corresponds to the situation about being separately maintained in the sectional drawing in barrage information and text in different server of the present invention.Such as
Shown in Fig. 7, which includes the following steps:
In step S701, playing video file.
In step S702, from barrage text server download since initial play position with the relevant finger of the video file
Determine item number(Such as 30)Barrage text message.There is comment word as previously mentioned, the barrage text message includes at least, broadcast
Position, video source cryptographic Hash and sectional drawing storing path information are put, thus can be looked for by way of matching video source cryptographic Hash
Go out the barrage text message with the relevant certain item number of currently playing video file.
In step S703, start timer.
In step S704, judge whether the predetermined time interval for reaching timer(Such as 300 milliseconds).If not up to,
Continue to wait until in return to step S703.If reaching, step S705 is performed.
In step S705, judge whether also have the barrage text downloaded for meeting certain condition after current play position
Information.If so, return to step S703 continues waiting for next time interval.If it is not, then perform step S706.
In step S706, again from the specified item number after barrage text server download current play position(Such as 30
Item)Barrage text message.
In step S707, the third specific operation based on user on player interface generates a barrage list, the bullet
Curtain list display goes out at least play position and comment word in the barrage information downloaded after current play position.For example, with
Pause button is clicked during the video that family can be played in viewing, can be based on user in step S707 clicks pause button
Generate a barrage list.In specific example, which can be shown in player interface in the form of translucent pop-up
Center shows play position and comment word in the barrage text message downloaded after current play position in pop-up(Ginseng
As shown in Figure 13).
In step 708, in the one article of barrage text message selected based on user to the 4th specific operation of barrage list
Sectional drawing storing path information downloads corresponding sectional drawing from barrage picture servers, and shows the sectional drawing.For example, user is browsing
It, can be by clicking the preview button in every comment after the comment word of barrage list(Referring to the label 1210 in Figure 13
It is shown)To select to check the sectional drawing in corresponding barrage information.Specifically, user can be based on and clicks preview button, obtained
Sectional drawing storing path information in selected barrage text message downloads corresponding sectional drawing, and will from barrage picture servers
It is shown to user.According to scheduled setting diversified forms may be used, such as can also pass through the shape of pop-up in the display of sectional drawing
Formula is shown, can also provide the function that user closes sectional drawing.
In step 709, in the one article of barrage text message selected based on user to the 5th specific operation of barrage list
Play position navigates to corresponding video pictures, and the comment word in the barrage information is shown on the video pictures.
It, can be with for example, user is after barrage list has been browsed or user is after the sectional drawing in further having checked barrage information
Corresponding barrage information is selected by double-clicking wherein one comment word, based on the play position that is included in the barrage information,
Player can navigate to corresponding video pictures, and corresponding comment word is then shown on the video pictures.Specifically show
In example, known various display formats may be used to show in comment word, for example, can roll from right to left in the form of subtitles
It is dynamic to show.
Using the video broadcasting method 700 of second embodiment of the invention shown in Fig. 8, player is in loading barrage information
When, can picture of the barrage text message without loading big data quantity only first be downloaded from barrage text server, so as to significantly
Accelerate loading velocity.When user needs to check sectional drawing, also can according to the sectional drawing storing path information in barrage text message from
Barrage picture servers download corresponding sectional drawing.
Fig. 9 shows the flow chart of the video broadcasting method 800 of third embodiment of the invention.As shown in figure 8, the video is broadcast
Method 800 is put to include the following steps:
In step S801, the Initialize installation based on acquiescence or the 6th specific operation based on user on player interface
A barrage list is generated, the barrage list is listed the related barrage downloaded from barrage server by preset classification and believed respectively
Breath, every barrage information include at least comment word, play position and video source cryptographic Hash.Further, every barrage letter
Breath further includes the user identifier for the user for adding the barrage information.In a specific example of step S801, when user opens
During player, player can Initialize installation to automatically generate a barrage list, which may be used the shape of suspended window
Formula directly displays webpage barrage list content using WebBrowser components(It is shown in Figure 14).Barrage list content can be with
It is divided into such as this film comment, most comments four opinion, recent reviews and my comment classifications warmly, so that user's switching is checked.Step
In another specific example of S801, player can be clicked based on user when opening player or during video is played
Such as suspended window button on interface(Referring to shown in the label 1206 of Figure 12)Above-mentioned barrage list is generated, is shown different classes of
Barrage information(It is shown in Figure 14).
In the further specific example of step S801, each barrage information in barrage list has further included sectional drawing preservation
Routing information based on the information, can download to corresponding sectional drawing from barrage picture servers.The another of step S801 specifically shows
In example, each barrage information in barrage list directly displays out sectional drawing, understands the film watched to be more convenient user
Subsequently there are which or bright spot splendid moment.
In step S802, parse and one article of barrage that the 7th specific operation of the barrage list is selected is believed based on user
Breath, obtains comment word, play position and the video source cryptographic Hash in the barrage information.For example, user is browsing step
After the barrage list generated in S801, corresponding barrage information can be selected by double-clicking wherein one comment.Parsing should
Barrage information can obtain corresponding comment word, play position and video source cryptographic Hash.
In step S803, whether detection is current just in playing video file.If player is currently without playing video file
If(Such as user has merely turned on situation of the player without selecting playing video file), then execution step is skipped to
S806.If if video file is currently played in player, perform step S804.
In step S804, the video source cryptographic Hash obtained in comparison step S802 and the video of video being currently played
Whether source cryptographic Hash is identical.If identical, step S807 is performed, if it is different, then performing step S805, terminates broadcasting for current video
It puts.
In step S806, corresponding video file is played according to the video source cryptographic Hash obtained in step S802.According to regarding
Frequency source cryptographic Hash, which parses video path and passes through the video path, plays corresponding video file, be those skilled in the art
The prior art known, therefore be not described in detail herein.
In step S807, the correspondence of currently playing video file is navigated to according to the play position obtained in step S802
Video pictures, and show on the video pictures comment word of acquisition.In specific example, comment word may be used known
Various display formats show, for example, can scroll out from right to left in the form of subtitles.
Using the video broadcasting method 800 of third embodiment of the invention, user can pass through during film is watched
Barrage list suspended window quickly checks the film of hot broadcast on the film and internet watched, which newest film has is excellent
Moment or bright spot, and can quick positioning playing.In addition, user can also be arranged in the case of no broadcasting film by barrage
The sectional drawing and comment content that table suspended window is shown, find which splendid moment or bright most hot broadcast and newest film on internet have
Point, and can quick positioning playing.
Figure 10 shows the logic diagram of the video player 1000 of first embodiment of the invention.As shown in Figure 10, this is regarded
Frequency player 1000 includes video playback module 1010, barrage acquisition module 1020 and barrage display module 1030.Wherein, video
Playing module 1010 is used for playing video file.Barrage acquisition module 1020 is used to download from initial play from barrage server 10
Position starts and the relevant specified item number of the video file(Such as 30)Barrage information, wherein every barrage information
Including at least comment word, play position and video source cryptographic Hash.Barrage acquisition module 1020 is also at predetermined intervals(Example
Such as 300 milliseconds)Judge whether also have the barrage information downloaded for meeting certain condition after current play position, such as nothing, then
Again from the barrage information of the specified item number after barrage server download current play position.Such as in a specific example,
Barrage acquisition module 1020 can be based on whether the barrage information also downloaded is to determine whether again after current play position
It is secondary to be downloaded from server.Such as in another specific example, barrage acquisition module 1020, which can be based on current play position, is later
The no barrage information downloaded also having more than certain item number from server to determine whether download again.
Barrage display module 1030 is used to show the corresponding barrage information downloaded according to current play position.Barrage is believed
The display of breath can have different forms according to the setting of player and the operation of user.For example, in a specific example, bullet
Curtain display module 1030 can show bullet corresponding with current play position one by one in video display process on video pictures
Comment word in curtain information.In another specific example, as shown in Figure 10, barrage display module 1030 further comprises that barrage arranges
Table display module 1031, barrage sectional drawing display module 1032 and barrage positioning display module 1033.
In the case that the barrage information that barrage acquisition module 1020 is downloaded from barrage server directly contains sectional drawing,
Barrage list display module 1031 generates a barrage list, the bullet based on third specific operation of the user on player interface
Curtain list display goes out at least play position, sectional drawing and comment word in the barrage information downloaded after current play position.Example
Such as, pause button is clicked during the video that user can play in viewing, barrage list display module 1031 can be based on
User clicks pause button and generates a barrage list.Then, barrage positioning display module 1033 based on user to barrage list
Play position in one article of barrage information that 5th specific operation is selected navigates to corresponding video pictures, and is drawn in the video
The comment word in the barrage information is shown on face.For example, user has been after barrage list has been browsed, it can be by double-clicking it
In a comment select corresponding barrage information, can be positioned based on the play position player included in the barrage information
To corresponding video pictures, corresponding comment word is then shown on the video pictures.
When barrage acquisition module 1020 is only from the case that barrage text server has downloaded barrage text message, barrage row
Third specific operation of the table display module 1031 based on user on player interface(Such as pausing operation)Generate barrage row
Table, the barrage list display go out at least play position and comment in the barrage text message downloaded after current play position
Word.In specific example, which can be shown in the center of player interface in the form of translucent pop-up, in pop-up
Show the play position and comment word in the barrage text message downloaded after current play position(It is shown in Figure 13).
In this way, user can quicklook the comment checked to currently playing video further part content, understand video in
Splendid moment or bright spot.Barrage sectional drawing display module 1032 is based on user to the 4th specific operation of barrage list(Such as it clicks
Preview button in every comment)Sectional drawing storing path information in a selected barrage text message is from barrage photo services
Device downloads corresponding sectional drawing, and shows the sectional drawing.Specifically, it is pre- can be based on user's click for barrage sectional drawing display module 1032
It lookes at button, obtains the sectional drawing storing path information in selected barrage text message, download and correspond to from barrage picture servers
Sectional drawing, and display it to user.According to scheduled setting diversified forms may be used, such as can also lead in the display of sectional drawing
The form of pop-up is crossed to show, the function that user closes sectional drawing can also be provided.Barrage positioning display module 1033 is based on user
To the 5th specific operation of barrage list(Such as it double-clicks)Play position in a selected barrage information navigates to corresponding
Video pictures, and show on the video pictures comment word in the barrage information, such as in the form of subtitles from the right side
Comment word is shown to rolling left to move.
Figure 11 shows the logic diagram of the video player 2000 of second embodiment of the invention.As shown in figure 11, this is regarded
Frequency player 2000 includes barrage list block 2010, barrage parsing module 2020, video playback module 2030 and barrage positioning
Display module 2040.
Barrage list block 2010 for the Initialize installation based on acquiescence or based on user on player interface the
Five specific operations generate a barrage list, and the phase downloaded from barrage server is listed in the barrage list by preset classification respectively
Barrage information is closed, every barrage information includes at least comment word, play position and video source cryptographic Hash, and can be further
Include the user identifier for the user for adding the barrage information.In one specific example, barrage list block 2010 can with
Family opens when player is initialized and automatically generates a barrage list, which may be used the form of suspended window, profit
Webpage barrage list content is directly displayed with WebBrowser components(It is shown in Figure 14), barrage list content can be divided into example
Such as this film comment, four opinion, recent reviews and my comment classifications are most commentd warmly, so that user's switching is checked.Another specific example
In, barrage list block 2010 can click player circle when opening player or during video is played based on user
Such as suspended window button on face(It is shown in Figure 12)Above-mentioned barrage list is generated, shows different classes of barrage information(Ginseng
As shown in Figure 14).
In further specific example, each barrage information in the barrage list that barrage list block 2010 generates also is wrapped
Sectional drawing storing path information has been included, based on the information, corresponding sectional drawing can be downloaded to from barrage picture servers.It is another specific
In example, each barrage information in the barrage list that barrage list block 2010 generates directly displays out sectional drawing, with more square
Just user understands the film watched subsequently which or bright spot splendid moment.
Barrage parsing module 2020 is for parsing the of the barrage list generated based on user to barrage list block 2010
The barrage information that six specific operations are selected, comment word, play position and the video source obtained in the barrage information are breathed out
Uncommon value.For example, barrage parsing module 2020 can double-click a comment in barrage list to select corresponding barrage based on user
Information parses the barrage information, can obtain corresponding comment word, play position and video source cryptographic Hash.
Whether video playback module 2030 is current just in playing video file for detecting, and is not playing video text currently
In the case of part according to the video source cryptographic Hash that barrage parsing module 2020 obtains play corresponding video file and for
Further compare the video source cryptographic Hash of acquisition and the video being currently played in the case of current positive playing video file
Whether video source cryptographic Hash identical, and in the case that it is different terminate current video broadcasting, according to the video source of acquisition breathe out
Uncommon value plays corresponding video file.
The play position that barrage positioning display module 2040 is used to be obtained according to barrage parsing module 2020 navigates to video
The correspondence video pictures of the currently playing video file of playing module 2030, and the acquisition is shown on the video pictures
Comment on word.
As shown in figure 11, video playback module 2030 further comprises detection sub-module 2031,2032 and of comparison sub-module
Play submodule 2033.Wherein, whether detection sub-module 2031 is current just in playing video file for detecting.If detect submodule
Block 2031 detects current non-playing video file, then is directly obtained by broadcasting submodule 2033 according to barrage parsing module 2020
Video source cryptographic Hash play corresponding video file, then by barrage positioning display module 2040 according to barrage parsing module
2020 play position obtained navigate to the correspondence video pictures for playing the currently playing video file of submodule 2033, and in institute
State the comment word that the acquisition is shown on video pictures.If detection sub-module 2031 detects current positive playing video file,
Then further compare the video source cryptographic Hash of acquisition by comparison sub-module 2032 to breathe out with the video source for the video being currently played
Whether uncommon value is identical.If it is identical that comparison sub-module 2032 compares video cryptographic Hash, by 2040 basis of barrage positioning display module
The play position of acquisition navigates to the correspondence video pictures for playing the currently playing video file of submodule 2033, and is regarded described
The comment word of the acquisition is shown on frequency picture.If comparison sub-module 2032 compares video cryptographic Hash difference, by playing son
Module 2033 terminates the broadcasting of current video, and the video source cryptographic Hash obtained according to barrage parsing module 2020 plays corresponding regard
Then frequency file navigates to broadcasting submodule 2033 according to the play position of acquisition by barrage positioning display module 2040 and currently broadcasts
The correspondence video pictures for the video file put, and show on the video pictures comment word of the acquisition.
Figure 12 shows the schematic diagram of the player interface 1200 of one embodiment of the invention.As shown in figure 12, player
Interface 1200 is equipped with video playing interface 1201, shows the video pictures in playing thereon.Player interface 1200 is additionally provided with example
Such as progress monitoring button(F.F., rewind, pause), progress monitoring item, volume knob etc., to control the broadcasting of video.Into
One step is additionally provided with barrage switch button 1202 on player interface 1200, and user can be by clicking the barrage switch button
1202 open and close the barrage function of player.Provided with player, which can be given tacit consent to, for the first time opens barrage function.It if will be to working as
The video pictures publication comment of preceding play position, user can click barrage input frame 1203 and be activated or by shortcut key
Such as "enter" key" activation barrage input frame 1203, then word is commented in input in the input frame 1203.After the completion of input, user
Send button 1204 can be clicked or complete the addition of barrage information by shortcut key again.Do not have when in barrage input frame 1203
During input content, then by shortcut key it can close barrage input frame 1203.
In video display process, if the user desired that it is quick understand subsequently have which or bright spot, Ke Yidian splendid moment
It hits pause button 1205 and suspends video playing, can show a translucent barrage list in the center of player interface 1200 at this time
Pop-up, as shown in the barrage list 1208 in Figure 13.Show what is downloaded after current play position in the barrage list 1208
Play position and comment word in every barrage information 1209, so as to checking for user's quicklook.User is by double-clicking it
In a barrage information, the corresponding video pictures of play position of the barrage information can be navigated on a player, and at this
The comment word 1207 in barrage information is shown on video pictures.Moreover, every barrage information 1209 is also provided with preview button
1210, the preview button 1210 is clicked, the sectional drawing storing path information in corresponding barrage information 1209 can be taken out, according to this section
Figure storing path information can download to corresponding sectional drawing from barrage picture servers, and be shown to user.
Further as shown in figure 12, suspended window button 1206 is additionally provided on player interface 1200.User clicks suspended window
Button 1206 can pop up the barrage list 1208 ' of a suspended window form, as shown in figure 14.The content of barrage list 1208 ' can
To be divided into this film comment, most comment four opinion, recent reviews and my comment classifications warmly, check that understanding is seen just convenient for user's switching
The film of hot broadcast, newest film have which or bright spot splendid moment on the film and internet of viewing, and provide a user
The review record of oneself, to carry out quick positioning playing.
In an embodiment of the present invention, user, which is also an option that, is published to barrage information such as the Web Community on barrage square
Platform is realized with the instant exchange and interdynamic of other viewings user with sharing.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
All any modification, equivalent and improvement made within refreshing and principle etc., should all be included in the protection scope of the present invention.