Summary of the invention
For the above-mentioned defect of prior art, the invention provides a kind of video barrage adding method and device and corresponding video broadcasting method and video player, enable user's fast sharing and check that film is commented on, and can accurately locate by splendid moment of film of commenting on or bright spot.
The technical solution adopted for the present invention to solve the technical problems is: propose a kind of video barrage adding method, comprise the steps:
S11, activate barrage input frame based on first specific operation of user on player interface, receive the comment word that user inputs the video pictures of current play position;
S12, intercept the video pictures image of current play position based on second specific operation of user on player interface, and sectional drawing and at least described comment word, play position and video source cryptographic Hash are uploaded to barrage server as barrage information.
In an embodiment, described method also comprises before intercepting the video pictures image of current play position in step s 12:
Verifying whether described user logs in, as logged in, then directly obtaining the user ID of described user, as do not logged in, then receiving the log-on message of user's input to obtain the user ID of described user;
Barrage information in described step S12 also comprises described user ID.
In an embodiment, in described step S12, barrage information is uploaded to barrage server and comprises further:
Described sectional drawing is sent to barrage picture servers, and obtains the sectional drawing storing path information that barrage picture servers returns;
The sectional drawing storing path information described comment word, play position, video source cryptographic Hash and barrage picture servers returned is sent to barrage text server as barrage text message.
In an embodiment, described method also comprises:
With the barrage list that described barrage information updating player interface shows.
In an embodiment, described method also comprises:
The video pictures of current play position shows described comment word.
The present invention is that technical solution problem also proposes a kind of video barrage adding set, comprising:
Barrage input module, for activating barrage input frame based on first specific operation of user on player interface, receives the comment word that user inputs the video pictures of current play position;
Transmission module on barrage, for intercepting the video pictures image of current play position based on second specific operation of user on player interface, and sectional drawing and at least described comment word, play position and video source cryptographic Hash are uploaded to barrage server as barrage information.
In an embodiment, described device also comprises:
User profile acquisition module, for upload module intercepts current play position at described barrage video pictures image before verify whether described user logs in, as logged in, then directly obtain the user ID of described user, as do not logged in, then receive the log-on message of user's input to obtain the user ID of described user;
The barrage information that on described barrage, transmission module is uploaded also comprises described user ID.
The present invention also proposes a kind of video broadcasting method for solving its technical problem, comprises the steps:
S21, playing video file;
S22, download the barrage information of appointment number relevant to described video file from initial play position from barrage server, wherein described in every bar, barrage information at least comprises comment word, play position and video source cryptographic Hash;
S23, judge current play position with predetermined time interval after whether meet the barrage information downloaded of certain condition in addition, as nothing, then again from the barrage information of the appointment number after barrage server downloads current play position;
The barrage information downloaded of S24, foundation current play position display correspondence.
In an embodiment, download barrage information from barrage server in described step S22 and step S23 to comprise further: download barrage text message from barrage text server, described barrage text message at least comprises described comment word, play position and video source cryptographic Hash and the sectional drawing storing path information in barrage picture servers.
In an embodiment, described step S24 comprises further:
Comment word in the barrage information that display is corresponding with current play position one by one in video display process.
In an embodiment, described step S24 comprises further:
A barrage list is generated, at least play position in the barrage text message downloaded after described barrage list demonstrates current play position and comment word based on the 3rd specific operation of user on player interface;
Download corresponding sectional drawing based on the sectional drawing storing path information in one article of barrage text message that the 4th specific operation of user to described barrage list is selected from barrage picture servers to show.
In an embodiment, described step S24 also comprises:
Navigate to corresponding video pictures based on the play position in one article of barrage text message that the 5th specific operation of user to described barrage list is selected, and on described video pictures, show the comment word in described barrage text message.
The present invention also proposes a kind of video broadcasting method for solving its technical problem, comprises the steps:
S31, based on acquiescence Initialize installation or generate a barrage list based on the 6th specific operation of user on player interface, the relevant barrage information downloaded from barrage server is listed in described barrage list respectively by the classification preset, barrage information described in every bar at least comprises comment word, play position and video source cryptographic Hash;
S32, to resolve based on user the selected one article of barrage information of the 7th specific operation of described barrage list, obtain the comment word in described barrage information, play position and video source cryptographic Hash;
S33, detect current whether just at playing video file, and play corresponding video file when current non-playing video file according to the video source cryptographic Hash of described acquisition, and whether the video source cryptographic Hash comparing acquisition when current positive playing video file is further identical with the video source cryptographic Hash of the current video play, and when not identical, terminate the broadcasting of current video, play corresponding video file according to the video source cryptographic Hash obtained;
S34, navigate to the corresponding video pictures of the video file of current broadcasting according to the play position obtained, and on described video pictures, show the comment word of described acquisition.
The present invention also proposes a kind of video player for solving its technical problem, comprising:
Video playback module, for playing video file;
Barrage acquisition module, for downloading the barrage information of appointment number relevant to described video file from initial play position from barrage server, and after judging current play position with predetermined time interval, whether meet the barrage information downloaded of certain condition in addition, as nothing, then again download the barrage information of the appointment number after current play position from barrage server, wherein described in every bar, barrage information at least comprises comment word, play position and video source cryptographic Hash;
Barrage display module, for the barrage information downloaded according to current play position display correspondence.
In an embodiment, described barrage acquisition module is also for downloading barrage text message from barrage text server, and described barrage text message at least comprises described comment word, play position and video source cryptographic Hash and the sectional drawing storing path information in barrage picture servers;
Described barrage display module comprises further:
Barrage list display module, for generating a barrage list based on the 3rd specific operation of user on player interface, at least play position in the barrage text message downloaded after described barrage list demonstrates current play position and comment word;
Barrage sectional drawing display module, downloads corresponding sectional drawing for the sectional drawing storing path information in one article of barrage text message selecting based on the 4th specific operation of user to described barrage list from barrage picture servers and shows;
Barrage positioning display module, navigate to corresponding video pictures for the play position in one article of barrage text message selecting based on the 5th specific operation of user to described barrage list, and on described video pictures, show the comment word in described barrage text message.
The present invention also proposes a kind of video player for solving its technical problem, comprising:
Barrage list block, for based on acquiescence Initialize installation or generate a barrage list based on the 6th specific operation of user on player interface, the relevant barrage information downloaded from barrage server is listed in described barrage list respectively by the classification preset, barrage information described in every bar at least comprises comment word, play position and video source cryptographic Hash;
Barrage parsing module, for resolving the one article of barrage information selected the 7th specific operation of described barrage list based on user, obtains the comment word in described barrage information, play position and video source cryptographic Hash;
Video playback module, current whether just at playing video file for detecting, and play corresponding video file when current non-playing video file according to the video source cryptographic Hash of described acquisition, and it is whether identical with the video source cryptographic Hash of the current video play for the video source cryptographic Hash comparing acquisition when current positive playing video file further, and when not identical, terminate the broadcasting of current video, play corresponding video file according to the video source cryptographic Hash obtained;
Barrage positioning display module, for navigating to the corresponding video pictures of the video file of current broadcasting according to the play position of described acquisition, and shows the comment word of described acquisition on described video pictures.
By video barrage adding method of the present invention and device, user only need activate barrage input frame input comment by specific operation on player interface, barrage information can be added to barrage server, complete fast and once share, greatly save operating time and resource.And owing to containing film sectional drawing in barrage information, the comment of user is more directly perceived; Owing to containing video source cryptographic Hash and play position in barrage information, user can accurately navigate to comment for film in picture.By the barrage list that video broadcasting method of the present invention and video player generate, user can check the film of hot broadcast on the film and the Internet watched fast, which splendid moment or bright spot up-to-date film has, and can play by quick position.Therefore invention achieves the object of quick obtaining information or sharing information, optimize Consumer's Experience.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the 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 video barrage adding method 100 comprises the steps:
In step S101, activate barrage input frame based on first specific operation of user on player interface, receive the comment word that user inputs the video pictures of current play position.
In a concrete example, player interface can be provided with barrage input frame, when user wishes to comment on the current video pictures play, can be activated by clicking this barrage input frame, to receive the comment word that user inputs in this barrage input frame.In another concrete example, user to activate as "enter" key" by shortcut and opens barrage input frame on player interface, inputs and comment on word accordingly in this barrage input frame.When there is no input content in input frame, then input frame can be closed by "enter" key".
In step S102, intercept the video pictures image of current play position based on second specific operation of user on player interface, and sectional drawing and at least described comment word, play position and video source cryptographic Hash are uploaded to barrage server as barrage information.
As previously mentioned, after user completes the input of comment content, the video pictures image that a triggering signal intercepts current play position can be produced by the second specific operation on player interface, and after the play position of the comment word of sectional drawing and input and the video pictures corresponding to commenting on is uploaded to barrage server as barrage information together with the video source cryptographic Hash of video.In a concrete example, user can produce this triggering signal by the transmission button clicking barrage input frame side.In another concrete example, user by shortcut as "enter" key" produces time triggering signal.This sectional drawing can be the thumbnail of the video picture data generation according to the current play position obtained from player.
In a concrete example of the present invention, in step S102, barrage information being uploaded to barrage server can perform further by such as under type:
First, adopt Transmission Control Protocol that sectional drawing is sent to barrage picture servers, and obtain the sectional drawing storing path information that barrage picture servers returns;
Then, adopt http protocol that the sectional drawing storing path information that comment word, play position, video source cryptographic Hash and barrage picture servers return is sent to barrage text server as barrage text message.
Further in concrete example, this sectional drawing storing path information can be unique sectional drawing title that barrage picture servers is distributed, and can get corresponding sectional drawing based on this sectional drawing title from barrage picture servers.
By picture and text message separately being sent and preserve with upper type, can simplify the operation, alleviate server stress.When player loads barrage information, can show from barrage text server download barrage text message first fast, then determine whether download corresponding sectional drawing according to the sectional drawing path comprised in barrage text message from barrage picture servers according to the needs of user.
Adopt the video barrage adding method 100 of first embodiment of the invention, user only need activate barrage input frame input comment by specific operation on player interface, can add barrage information to barrage server, complete fast and once share.Owing to containing film sectional drawing in barrage information, the comment of user is more directly perceived; Owing to containing video source cryptographic Hash and play position in barrage information, user can accurately navigate to comment for film in picture.
Fig. 2 shows the flow chart of the video barrage adding method 200 of second embodiment of the invention.As shown in Figure 2, this video barrage adding method 200 comprises the steps:
In step S201, activate barrage input frame based on first specific operation of user on player interface.As previously described with Figure 1, user can pass through multiple known actuator-activated barrage input frame.
In step S202, receive the comment word of the video pictures for current play position that user inputs in this barrage input frame.
In step S203, judge whether the second specific operation user being detected.In concrete example, this second specific operation can be click send button or press shortcut, triggers shot operation with this.If second specific operation of user do not detected in step S203, then return step S202, wait for that user inputs comment word.If second specific operation of user detected in step S203, then perform step S204.
In step S204, whether authentication of users logs in.If authentication of users logs in step S204, then perform step S206.If authentication of users does not log in step S204, then perform step S205.
In step S205, the log-on message receiving user's input logs in.In a concrete example, a login window can be ejected on player interface, input username and password by user and log in.
In step S206, the log-on message based on user obtains the user ID of user.In a concrete example, the user name of this user ID and user.
In step S207, intercept the video pictures image of current play position.As previously mentioned, this sectional drawing can be the thumbnail of the video picture data generation according to the current play position obtained from player.
In step S208, sectional drawing is uploaded to barrage server as barrage information with comment word, user ID, play position together with video source cryptographic Hash.
The second embodiment of the present invention shown in Fig. 2 adds the step whether authentication of users has logged in obtain user ID compared with the first embodiment shown in Fig. 1, its objective is to comprise user totem information in barrage information.Adopt the barrage adding method 200 shown in Fig. 2 to share review information, the review record of user oneself can be provided to user based on user ID when player loads barrage information, help 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 barrage adding method 300 shown in Fig. 3 corresponds to the situation while user checks the barrage list of the video file of current broadcasting on a player, current video picture being shared to comment.As shown in Figure 3, this video barrage adding method 300 comprises the steps:
In step S301, activate barrage input frame based on first specific operation of user on player interface, receive the comment word that user inputs the video pictures of current play position.
In step S302, intercept the video pictures image of current play position based on second specific operation of user on player interface, and sectional drawing and at least described comment word, play position and video source cryptographic Hash are uploaded to barrage server as barrage information.
Step S101, S102 in video barrage adding method 100 shown in step S301, S302 and Fig. 1 of method 300 are identical, therefore do not repeat them here.On the basis of method 100 shown in Fig. 1, method 300 also comprises the steps:
In step S303, with the barrage list that described barrage information updating player interface shows.
In step S304, the video pictures of current play position shows described comment word.
As previously mentioned, method 300 corresponds to the situation while user checks the barrage list of the video file of current broadcasting on a player, current video picture being shared to comment.Therefore, when adding barrage information while user checks barrage list on a player, the barrage information that user adds is preserved except being uploaded to barrage server, also can be shown in immediately in checked barrage list, and the comment word of user's input also can show on the video pictures of current play position.In concrete example, comment word can adopt known various display formats to show, such as, and can roll display be out from right to left in the form of subtitles.
Fig. 4 shows the logic diagram of the video barrage adding set 400 of first embodiment of the invention.As shown in Figure 4, this video barrage adding set 400 comprises transmission module 402 on barrage input module 401 and barrage.Barrage input module 401, for activating barrage input frame based on first specific operation of user on player interface, receives the comment word that user inputs the video pictures of current play position.As front composition graphs 1 introduce, this first specific operation can be various known operations, and such as user can click barrage input frame to be activated, or user can activate as "enter" key" by shortcut and open a barrage input frame.On barrage, transmission module 402 is for intercepting the video pictures image of current play position based on second specific operation of user on player interface, and sectional drawing and at least described comment word, play position and video source cryptographic Hash are uploaded to barrage server 10 as barrage information.As shown in front composition graphs 1, in concrete example, this second specific operation can be click send button or press shortcut, triggers shot operation with this.On barrage, transmission module 402 can obtain the video picture data of current play position from player, and generate the sectional drawing of thumbnail as this video pictures, the play position corresponding with the comment word that barrage input module 401 receives and current video picture, the video source cryptographic Hash of current video send to barrage server 10 to preserve as barrage information together, are loaded so that follow-up and be shown to user by player.
Adopt the video barrage adding set 400 of first embodiment of the invention, user only need activate barrage input frame input comment by specific operation on player interface, can add barrage information to barrage server, complete fast and once share.Owing to containing film sectional drawing in barrage information, the comment of user is more directly perceived; Owing to containing video source cryptographic Hash and play position in barrage information, user can accurately navigate to comment for film in picture.
Fig. 5 shows the logic diagram of the barrage information adding set 500 of second embodiment of the invention.As shown in Figure 5, this barrage information adding set 500 comprises transmission module 502 on barrage input module 501, barrage, user profile acquisition module 503, update module 504 and barrage display module 505.Wherein, barrage input module 501, for activating barrage input frame based on first specific operation of user on player interface, receives the comment word that user inputs the video pictures of current play position.Barrage input module 501 is identical with the features and action of the barrage input module 401 in Fig. 4, therefore does not repeat them here.
On barrage, transmission module 502 is for intercepting the video pictures image of current play position based on second specific operation of user on player interface, and sectional drawing and at least described comment word, play position and video source cryptographic Hash are uploaded to barrage server as barrage information.In concrete example, as shown in Figure 5, barrage server comprises barrage picture servers 11 and barrage text server 12 further.On barrage, first transmission module 502 adopts Transmission Control Protocol that sectional drawing is sent to barrage picture servers 11, and obtains the sectional drawing storing path information that barrage picture servers 11 returns; Then on barrage, transmission module 502 adopts http protocol that the barrage text message at least comprising the sectional drawing storing path information that comment word, play position, video source cryptographic Hash and barrage picture servers return is sent to barrage text server.By picture and text message separately being sent and preserve with upper type, can simplify the operation, alleviate server stress.When player loads barrage information, can show from barrage text server download barrage text message first fast, then determine whether download corresponding sectional drawing according to the sectional drawing path comprised in barrage text message from barrage picture servers according to the needs of user.
Whether user profile acquisition module 503 first authentication of users before transmission module on barrage 502 intercepts the video pictures image of current play position logs in.As user logs in, then user profile acquisition module 503 directly obtains the user ID of user.As user does not log in, then user profile acquisition module 503 receives the log-on message of user's input to obtain the user ID of user.In a concrete example, a login window can be ejected on player interface, input username and password by user and log in, the user name of user ID and user.In the present embodiment, on barrage, transmission module 502 further comprises user ID in the barrage text message being uploaded to barrage text server 12, the review record of user oneself so just can be provided to user based on user ID when player loads barrage information, help user's video that positioning playing oneself was commented on different machines.
Update module 504 is for adding barrage information while checking barrage list when user, the barrage list that the barrage information updating player interface added with user shows, is shown in the barrage letter that user adds in this barrage list.Barrage display module 505 for show on the video pictures of current play position user input comment word, such as in the form of subtitles from right to left roll display on current video picture.
Based on above introduced video barrage adding method, the present invention also proposes a kind of video broadcasting method.Fig. 6 shows the flow chart of the video broadcasting method 600 of first embodiment of the invention.Method 600 shown in Fig. 6 corresponds to user and is seeing in sheet process the situation needing the related commentary understanding film subsequent content.As shown in Figure 6, this video broadcasting method 600 comprises the steps:
In step S601, playing video file.
In step S602, download the barrage information of appointment number relevant to this video file from initial play position from barrage server, wherein every bar barrage information at least comprises comment word, play position and video source cryptographic Hash.Thus the barrage information of certain number (such as 30) relevant to the video file of current broadcasting can be found out by the mode of match video source cryptographic Hash.
In step S603, start timer.
In step S604, judge whether the predetermined time interval (such as 300 milliseconds) reaching timer.If do not reach, then return in step S603 and continue to wait for.If reach, then perform step S605.
In step S605, after judging current play position, whether meet the barrage information downloaded of certain condition in addition.In a concrete example, the barrage information whether downloaded in addition after can current play position being judged in step S605.In another concrete example, after current play position can being judged in step S605, whether be greater than the barrage information downloaded of certain number in addition.If so, then return step S603 to continue to wait for the next time interval.If not, then step S606 is performed.
In step S606, again download the barrage information of the appointment number (such as 30) after current play position from barrage server.
In step S607, according to the barrage information downloaded that current play position display is corresponding.
The display of barrage information can have different forms according to the setting of player and the operation of user.Such as, in a concrete example, in video display process, on video pictures, the comment word in the barrage information corresponding with current play position can be shown one by one.
In another concrete example, when the barrage information downloaded in step S602 and step S606 directly contains sectional drawing, as shown in Figure 7, described step S607 comprises further:
In step S6071, generate a barrage list, at least play position in the barrage information downloaded after described barrage list demonstrates current play position, sectional drawing and comment word based on the 3rd specific operation of user on player interface.Such as, the process mid-point of the video that user can play in viewing hits pause button, can click pause button generate a barrage list in step S6071 based on user.In concrete example, this barrage list can be shown in the central authorities of player interface with the form of translucent bullet window, plays play position, sectional drawing and comment word in the barrage information downloaded after demonstrating current play position in window.Like this, user just can the comment checking the video further part content to current broadcasting of quicklook, understands the splendid moment in video or bright spot.
In step S6072, navigate to corresponding video pictures based on the play position in one article of barrage information that the 5th specific operation of user to barrage list is selected, and on described video pictures, show the comment word in described barrage information.Such as, user is after having browsed barrage list, corresponding barrage information can be selected by double-clicking a wherein comment, just can navigate to corresponding video pictures based on the play position player comprised in this barrage information, on this video pictures, then showing corresponding comment word.In concrete example, comment word can adopt known various display formats to show, such as, and can roll display be out from right to left in the form of subtitles.
Adopt the video broadcasting method 600 of first embodiment of the invention, user can select whether check barrage list according to the needs seen in sheet process, and by checking barrage list understands the film watched is follow-up for which splendid moment or bright spot fast, and can play by quick position.
Fig. 8 shows the flow chart of the video broadcasting method 700 of second embodiment of the invention.Sectional drawing in barrage information and text are separated situation about being kept in different server corresponding to of the present invention by the video broadcasting method 700 shown in Fig. 8.As shown in Figure 7, this video broadcasting method 700 comprises the steps:
In step S701, playing video file.
In step S702, download the barrage text message of appointment number (such as 30) relevant to this video file from initial play position from barrage text server.As previously mentioned, described barrage text message at least includes comment word, play position, video source cryptographic Hash and sectional drawing storing path information, thus can be found out the barrage text message of the certain number relevant to the video file of current broadcasting by the mode of match video source cryptographic Hash.
In step S703, start timer.
In step S704, judge whether the predetermined time interval (such as 300 milliseconds) reaching timer.If do not reach, then return in step S703 and continue to wait until.If reach, then perform step S705.
In step S705, after judging current play position, whether meet the barrage text message downloaded of certain condition in addition.If so, then return step S703 to continue to wait for the next time interval.If not, then step S706 is performed.
In step S706, again download the barrage text message of the appointment number (such as 30) after current play position from barrage text server.
In step S707, generate a barrage list based on the 3rd specific operation of user on player interface, at least play position in the barrage information downloaded after described barrage list demonstrates current play position and comment word.Such as, the process mid-point of the video that user can play in viewing hits pause button, can click pause button generate a barrage list in step S707 based on user.In concrete example, this barrage list can be shown in the central authorities of player interface with the form of translucent bullet window, plays the play position in the barrage text message downloaded after demonstrating current play position in window and comment word (shown in Figure 13).
In step 708, download corresponding sectional drawing based on the sectional drawing storing path information in one article of barrage text message that the 4th specific operation of user to barrage list is selected from barrage picture servers, and show this sectional drawing.Such as, user, after the comment word having browsed barrage list, can select to check the sectional drawing in corresponding barrage information by the preview button (shown in the label 1210 in Figure 13) clicked in the comment of every bar.Specifically, preview button can be clicked based on user, obtain by the sectional drawing storing path information in the barrage text message selected, download corresponding sectional drawing from barrage picture servers, and display it to user.The display of sectional drawing can adopt various ways according to predetermined arranging, such as, also can be shown by the form playing window, user can also be provided to close the function of sectional drawing.
In step 709, navigate to corresponding video pictures based on the play position in one article of barrage text message that the 5th specific operation of user to barrage list is selected, and on described video pictures, show the comment word in described barrage information.Such as, user is after having browsed barrage list, or user is after having checked the sectional drawing in barrage information further, corresponding barrage information can be selected by double-clicking a wherein comment word, based on the play position comprised in this barrage information, player just can navigate to corresponding video pictures, on this video pictures, then show corresponding comment word.In concrete example, comment word can adopt known various display formats to show, such as, and can roll display be out from right to left in the form of subtitles.
Adopt the video broadcasting method 700 of the second embodiment of the invention shown in Fig. 8, player, when loading barrage information, can first only be downloaded barrage text message from barrage text server and need not load the picture of big data quantity, thus greatly accelerate loading velocity.When user needs to check sectional drawing, also corresponding sectional drawing can be downloaded according to the sectional drawing storing path information in barrage text message from barrage picture servers.
Fig. 9 shows the flow chart of the video broadcasting method 800 of third embodiment of the invention.As shown in Figure 8, this video broadcasting method 800 comprises the steps:
In step S801, based on acquiescence Initialize installation or generate a barrage list based on the 6th specific operation of user on player interface, the relevant barrage information downloaded from barrage server is listed in described barrage list respectively by the classification preset, barrage information described in every bar at least comprises comment word, play position and video source cryptographic Hash.Further, every bar barrage information also includes the user ID of the user adding this barrage information.In a concrete example of step S801, when user opens player, player can Initialize installation be automatically generate a barrage list, and this barrage list can adopt the form of suspended window, utilizes WebBrowser assembly direct display web page barrage list content (shown in Figure 14).Barrage list content can be divided into such as this film comment, comment opinion, recent reviews and my comment four classifications most warmly, switches check for user.In another concrete example of step S801, the such as suspended window button (label 1206 see Figure 12 is shown) can clicked on player interface based on user when opening player or in the process of displaying video generates above-mentioned barrage list, shows different classes of barrage information (shown in Figure 14).
In the concrete further example of step S801, each the barrage information in barrage list also includes sectional drawing storing path information, based on this information, can download to corresponding sectional drawing from barrage picture servers.In another concrete example of step S801, each the barrage information in barrage list directly demonstrates sectional drawing, understands the film watched is follow-up for which splendid moment or bright spot with more convenient user.
In step S802, resolve the one article of barrage information the 7th specific operation of described barrage list selected based on user, obtain the comment word in described barrage information, play position and video source cryptographic Hash.Such as, user, after having browsed the barrage list generated in step S801, can select corresponding barrage information by double-clicking a wherein comment.Resolve this barrage information, just can obtain and comment on word, play position and video source cryptographic Hash accordingly.
In step S803, detect current whether just at playing video file.If the current words (such as user only opens player and do not select the situation of playing video file) not having playing video file of player, then skip to and perform step S806.If player is current just at playing video file, then perform step S804.
In step S804, whether the video source cryptographic Hash obtained in comparison step S802 is identical with the video source cryptographic Hash of the current video play.If identical, then perform step S807, if different, then perform step S805, terminate the broadcasting of current video.
In step S806, play corresponding video file according to the video source cryptographic Hash obtained in step S802.Parse video path according to video source cryptographic Hash and play corresponding video file by this video path, being prior art well known by persons skilled in the art, therefore not being described in detail at this.
In step S807, navigate to the corresponding video pictures of the video file of current broadcasting according to the play position obtained in step S802, and on described video pictures, show the comment word of acquisition.In concrete example, comment word can adopt known various display formats to show, such as, and can roll display be out from right to left in the form of subtitles.
Adopt the video broadcasting method 800 of third embodiment of the invention, user can to check the film of hot broadcast on the film and the Internet watched fast in the process of viewing film by barrage list suspended window, which splendid moment or bright spot up-to-date film has, and can play by quick position.In addition, user can also when not playing film by the sectional drawing of barrage list suspended window display and comment content, to find on the Internet most hot broadcast and up-to-date film to have which splendid moment or bright spot, and can play by quick position.
Figure 10 shows the logic diagram of the video player 1000 of first embodiment of the invention.As shown in Figure 10, this video player 1000 comprises video playback module 1010, barrage acquisition module 1020 and barrage display module 1030.Wherein, video playback module 1010 is for playing video file.Barrage acquisition module 1020 is for downloading the barrage information of appointment number (such as 30) relevant to described video file from initial play position from barrage server 10, wherein described in every bar, barrage information at least comprises comment word, play position and video source cryptographic Hash.Whether barrage acquisition module 1020 meets the barrage information downloaded of certain condition in addition after also judging current play position with predetermined time interval (such as 300 milliseconds), as nothing, then again download the barrage information of the appointment number after current play position from barrage server.Such as, in a concrete example, barrage acquisition module 1020 can judge whether based on the barrage information whether downloaded in addition after current play position again to download from server.Such as, in another concrete example, barrage acquisition module 1020 can judge whether based on the barrage information downloaded whether being greater than certain number after current play position in addition again to download from server.
Barrage display module 1030 is for the barrage information downloaded according to current play position display correspondence.The display of barrage information can have different forms according to the setting of player and the operation of user.Such as, in a concrete example, barrage display module 1030 can show the comment word in the barrage information corresponding with current play position one by one in video display process on video pictures.In another concrete example, as shown in Figure 10, barrage display module 1030 comprises barrage list display module 1031, barrage sectional drawing display module 1032 and barrage positioning display module 1033 further.
When barrage acquisition module 1020 directly contains sectional drawing from the barrage information that barrage server is downloaded, barrage list display module 1031 generates a barrage list, at least play position in the barrage information downloaded after described barrage list demonstrates current play position, sectional drawing and comment word based on the 3rd specific operation of user on player interface.Such as, the process mid-point of the video that user can play in viewing hits pause button, and barrage list display module 1031 can be clicked pause button based on user and generate a barrage list.Then, the play position in one article of barrage information that barrage positioning display module 1033 is selected based on the 5th specific operation of user to barrage list navigates to corresponding video pictures, and on described video pictures, show the comment word in described barrage information.Such as, user is after having browsed barrage list, corresponding barrage information can be selected by double-clicking a wherein comment, just can navigate to corresponding video pictures based on the play position player comprised in this barrage information, on this video pictures, then showing corresponding comment word.
When barrage acquisition module 1020 has only downloaded barrage text message from barrage text server, barrage list display module 1031 generates a barrage list based on the 3rd specific operation (such as pausing operation) of user on player interface, at least play position in the barrage text message downloaded after described barrage list demonstrates current play position and comment word.In concrete example, this barrage list can be shown in the central authorities of player interface with the form of translucent bullet window, plays the play position in the barrage text message downloaded after demonstrating current play position in window and comment word (shown in Figure 13).Like this, user just can the comment checking the video further part content to current broadcasting of quicklook, understands the splendid moment in video or bright spot.Barrage sectional drawing display module 1032 downloads corresponding sectional drawing to the sectional drawing storing path information in the selected one article of barrage text message of the 4th specific operation of barrage list (such as clicking the preview button in every article of comment) from barrage picture servers based on user, and shows this sectional drawing.Specifically, barrage sectional drawing display module 1032 can click preview button based on user, obtains by the sectional drawing storing path information in the barrage text message selected, downloads corresponding sectional drawing, and display it to user from barrage picture servers.The display of sectional drawing can adopt various ways according to predetermined arranging, such as, also can be shown by the form playing window, user can also be provided to close the function of sectional drawing.Barrage positioning display module 1033 navigates to corresponding video pictures based on user to the play position in the selected one article of barrage information of the 5th specific operation of barrage list (such as double-clicking), and the comment word shown on described video pictures in described barrage information, such as roll display goes out to comment on word from right to left in the form of subtitles.
Figure 11 shows the logic diagram of the video player 2000 of second embodiment of the invention.As shown in figure 11, this video player 2000 comprises barrage list block 2010, barrage parsing module 2020, video playback module 2030 and barrage positioning display module 2040.
Barrage list block 2010 for based on acquiescence Initialize installation or generate a barrage list based on the 5th specific operation of user on player interface, the relevant barrage information downloaded from barrage server is listed in described barrage list respectively by the classification preset, barrage information described in every bar at least comprises comment word, play position and video source cryptographic Hash, and can include the user ID of the user adding this barrage information further.In a concrete example, barrage list block 2010 can be opened when player carries out initialization user and automatically generate a barrage list, this barrage list can adopt the form of suspended window, utilize WebBrowser assembly direct display web page barrage list content (shown in Figure 14), barrage list content can be divided into such as this film comment, comment opinion, recent reviews and my comment four classifications most warmly, switches check for user.In another concrete example, the such as suspended window button (shown in Figure 12) that barrage list block 2010 can be clicked on player interface based on user when opening player or in the process of displaying video generates above-mentioned barrage list, shows different classes of barrage information (shown in Figure 14).
Further in concrete example, each the barrage information in the barrage list that barrage list block 2010 generates also includes sectional drawing storing path information, based on this information, can download to corresponding sectional drawing from barrage picture servers.In another concrete example, each the barrage information in the barrage list that barrage list block 2010 generates directly demonstrates sectional drawing, understands the film watched is follow-up for which splendid moment or bright spot with more convenient user.
Barrage parsing module 2020, for resolving the one article of barrage information selected the 6th specific operation of the barrage list that barrage list block 2010 generates based on user, obtains the comment word in described barrage information, play position and video source cryptographic Hash.Such as, corresponding barrage information is selected in the comment that barrage parsing module 2020 can be double-clicked in barrage list based on user, resolves this barrage information, just can obtain and comment on word, play position and video source cryptographic Hash accordingly.
Whether video playback module 2030 is current just at playing video file for detecting, and the video source cryptographic Hash obtained according to barrage parsing module 2020 when current non-playing video file plays corresponding video file, and it is whether identical with the video source cryptographic Hash of the current video play for the video source cryptographic Hash comparing acquisition when current positive playing video file further, and when not identical, terminate the broadcasting of current video, play corresponding video file according to the video source cryptographic Hash obtained.
Barrage positioning display module 2040 navigates to the corresponding video pictures of the video file of the current broadcasting of video playback module 2030 for the play position obtained according to barrage parsing module 2020, and on described video pictures, show the comment word of described acquisition.
As shown in figure 11, video playback module 2030 comprises detection sub-module 2031, comparison sub-module 2032 further and plays submodule 2033.Wherein, whether detection sub-module 2031 is current just at playing video file for detecting.If detection sub-module 2031 detects current non-playing video file, the then direct video file by playing the video source cryptographic Hash broadcasting correspondence that submodule 2033 obtains according to barrage parsing module 2020, then navigated to the corresponding video pictures of the video file playing the current broadcasting of submodule 2033 by barrage positioning display module 2040 according to the play position that barrage parsing module 2020 obtains, and on described video pictures, show the comment word of described acquisition.If detection sub-module 2031 detects current positive playing video file, then compare the video source cryptographic Hash of acquisition by comparison sub-module 2032 further whether identical with the video source cryptographic Hash of the current video play.If it is identical that comparison sub-module 2032 compares video cryptographic Hash, then navigated to the corresponding video pictures of the video file playing the current broadcasting of submodule 2033 by barrage positioning display module 2040 according to the play position obtained, and on described video pictures, show the comment word of described acquisition.If it is different that comparison sub-module 2032 compares video cryptographic Hash, the broadcasting of current video is then terminated by broadcasting submodule 2033, corresponding video file is play according to the video source cryptographic Hash that barrage parsing module 2020 obtains, then navigated to the corresponding video pictures of the video file playing the current broadcasting of submodule 2033 by barrage positioning display module 2040 according to the play position obtained, and on described video pictures, show the comment word of described 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 provided with video playback interface 1201, the video pictures during it displays the play.Player interface 1200 is also provided with such as progress monitoring button (F.F., rewind, time-out), progress monitoring bar, volume knob etc., to control the broadcasting of video.Further, player interface 1200 is also provided with barrage shift knob 1202, user can open and close the barrage function of player by clicking this barrage shift knob 1202.Provided with player can be given tacit consent to and opens barrage function first.If will issue comment to the video pictures of current play position, user can click barrage input frame 1203 and be activated, or presses shortcut as "enter" key" activation barrage input frame 1203, then input comment word in this input frame 1203.After having inputted, user can click and sends button 1204 or again press the interpolation that shortcut completes barrage information.When there is no input content in barrage input frame 1203, then barrage input frame 1203 can be closed by shortcut.
In video display process, if user wishes that understanding is follow-up fast which splendid moment or bright spot, pause button 1205 can be clicked and suspend video playback, now can show a translucent barrage list bullet window, as shown in the barrage list 1208 in Figure 13 in the central authorities of player interface 1200.Play position in the every bar barrage information 1209 downloaded after demonstrating current play position in this barrage list 1208 and comment word, so that the checking of user's quicklook.User, by double-clicking a wherein barrage information, just can navigate to the video pictures that the play position of this barrage information is corresponding on a player, and on this video pictures, show the comment word 1207 in barrage information.And, every bar barrage information 1209 also provides preview button 1210, clicks this preview button 1210, can take out the sectional drawing storing path information in corresponding barrage information 1209, corresponding sectional drawing can be downloaded to from barrage picture servers according to this sectional drawing storing path information, and be shown to user.
Further as shown in figure 12, player interface 1200 is also provided with suspended window button 1206.User clicks suspended window button 1206, just can eject the barrage list 1208 ' of a suspended window form, as shown in figure 14.The content of barrage list 1208 ' can be divided into this film to comment on, comment opinion, recent reviews and my comment four classifications most warmly, be convenient to user's switching check, understand see the film of hot broadcast on the film and the Internet watched, which splendid moment or bright spot up-to-date film have, and provide the review record of oneself to user, to carry out quick position broadcasting.
In an embodiment of the present invention, user can also select the Web Community platform of barrage Information issued to such as barrage square, realize with the instant exchange and interdynamic of other viewings user with share.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.