Summary of the invention
The invention provides a kind of Internet video comment polymerization, the method may further comprise the steps: when step (1) initialization generates a widget polymerization module, travel through the affiliated all Internet video ID of this widget module, comment under obtaining under each Internet video ID copies in the database and stores; Step (2) is when checking that server is confirmed in propelling movement formation corresponding to Internet video new comment content to be arranged, and the comment of newly delivering under the triggering synchronous module real time synchronization network video playback page is to the affiliated widget polymerization module of this Internet video; Step (3) goes to check whether have new needs to be synchronized to comment under the corresponding network video playback page by message queue is asynchronous when the theme page or leaf that is generated by widget polymerization module is accessed; Step (4) is synchronized to corresponding Internet video with comment and plays under the page confirming to have when needing synchronous comment.
Further, when execution in step (2), detect the last access time of current widget polymerization module, as at the appointed time not having accessed by the userly in the section, think that then this widget polymerization module is in disabled state, no longer carries out synchronous operation.
Further, all comments under the widget polymerization module can be resolved to literal or the icon of prescribed form by front end system.
The address of the widget module that generates in the time of further, can be with initialization pastes in the Internet video website or embeds on the page of any support iframe of other third party websites.
Further, when when Internet video broadcast page downloading table is newly commented on, comment data can enter and push the formation asynchronous push to corresponding widget polymerization module; When Widget polymerization module is accessed, whether check in the widget polymerization module has new comment to enter, if have then will newly comment on and put into the propelling movement formation, when Widget polymerization module in the schedule time does not have no longer will newly comment on being synchronized to widget polymerization module when accessed.
Further, when affiliated comment copies to and stores in the database under each Internet video ID that will obtain, in memory cache, preserve portion, directly from memory cache, read during reading out data.
The present invention also provides a kind of Internet video comment polyplant, this device comprises: initialization module when generating a widget polymerization module, travels through the affiliated all Internet video ID of this widget module, comment under obtaining under each Internet video ID copies in the database and stores; Synchronization module, when checking that server is confirmed in propelling movement formation corresponding to Internet video new comment content to be arranged, the comment of newly delivering under the triggering synchronous module real time synchronization network video playback page is to the affiliated widget polymerization module of this Internet video; Confirming to have the comment of delivering under need to be with widget polymerization module to be synchronized to the corresponding network video playback page lower time, comment is synchronized to corresponding Internet video plays under the page; The confirmation of synchronization module when theme page or leaf that is generated by widget polymerization module is accessed, goes to check the comment that whether has new needs synchronous by message queue is asynchronous.
Further, all comments under the widget polymerization module are resolved to literal or the icon of prescribed form by front end system.
The address of the widget module that generates in the time of further, can be with initialization pastes in the Internet video website or embeds on the page of any support iframe of other third party websites.
Further, when when Internet video broadcast page downloading table is newly commented on, comment data can enter and push the formation asynchronous push to corresponding widget polymerization module; When Widget polymerization module is accessed, whether check in the widget polymerization module has new comment to enter, if have then will newly comment on and put into the propelling movement formation, when Widget polymerization module in the schedule time does not have no longer will newly comment on being synchronized to widget polymerization module when accessed.
Further, when affiliated comment copies to and stores in the database under each Internet video ID that will obtain, in memory cache, preserve portion, directly from memory cache, read during reading out data.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage are become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
The explanation of widget module flowcollector aggregation scheme FlowCollector:
A) definition of widget module: the widget module is the aggregate that will combine the comment of Internet video issue with heterogeneous networks video ID.The user can browse, reply, be forwarded to comment wherein the operations such as third party website.
B) rule of comment polymerization:
1, the comment of a plurality of videos of polymerization
The Internet video comment (is also namely play under the page in Internet video and is commented on) originally take single network video ID as the unit polymerization.The comment of this widget module under can the self-defining a plurality of Internet videos of polymerization is an integral body.
2, the comment of a program of polymerization
Program is the intersection of a plurality of videos in the Internet video website, can be the organizational form of the Internet videos such as TV play, variety, documentary film.After specifying a program ID, the comment of all-network video is combined as an integral body under this program, generates a widget code.The widget module is nested in (the theme page or leaf is independently any page, can be set up by anyone, can comprise any content) in the theme page or leaf as a subpage frame.The network manager be endowed generate and the authority of management widget module after, he can specify all videos under several videos ID or the program as a whole, all comments under this is whole all can be aggregated to the widget module.When the user accessed a special topic page or leaf, the subpage frame that is embedded into (widget) also can be showed in the lump.
C) flexible configuration of widget module:
This widget module can be configured overall style (background, word look, link look etc.) easily, can do top set to relevant selected comment and show, can also be directly for selected topic content distributed (this content can be gone back to the comment district of Internet video broadcast page synchronously).Each bar comment that the user delivers under the widget module, all with a unique video ID binding, and real-time synchronization is regional to the comment under this Internet video broadcast page.
D) transplantability of widget module:
The address that can paste the widget module is in the Internet video website or embed any page of other third party websites.Instrument as comment intercommunication in a kind of and the Internet video website can be embedded in any content delivering system.
E) real-time of widget module:
Since adopt the storage mode of formation, the comment content of under the widget module, issuing, and real-time synchronization is shown under the corresponding Internet video of binding of institute.If deliver the user of this comment be provided with Tengxun, Sina, everybody, after being connected of the third party affiliate such as msn, this comment meeting real-time synchronization is illustrated on the third-party platform.
As shown in Figure 1, the concrete steps of the method according to this invention are as follows:
(1) initialization generates widget polymerization module;
When generating a polymerization widget, can carry out initialization operation: travel through the affiliated all Internet video ID of this widget module, comment under obtaining under each Internet video ID copies to separately storage in the NOSQL type database, preserves simultaneously a in the radis memory cache.
(2) comment of newly delivering under the real time synchronization network video playback page is to widget polymerization module;
When the user plays the new comment of page downloading table in Internet video, can form one with Internet video ID and affiliated all comments contents and push queue stores at server, whether belong in certain widget polymerization module by Internet video ID sync check current network video, perhaps belong to simultaneously in several widget polymerization modules.If this Internet video belongs to certain widget polymerization module.Then the triggering synchronous module is pushed to this widget polymerization module to this comment of newly delivering.The each execution before this step detected first the last access time of current widget polymerization module.As at the appointed time not having accessed by the userly in the section, think that then this widget is in disabled state (special topic or the focus that for example load this widget polymerization module are rolled off the production line), no longer carries out follow-up synchronous operation.This strategy can have been saved server resource to a great extent.
When the theme page or leaf is accessed, go to check that by message queue is asynchronous each the bar comment of synchronous comment ID(whether omission is arranged has a unique comment ID when database is stored, go to check whether have new comment to need synchronously by message queue is asynchronous).
Can (front end system be illustrated on the webpage for the comment data of lane database is read out by front end system with all comments under the widget polymerization module.Because what lane database was preserved is the clear data file.Utilize front end system to show data by various forms.Literal that various forms are for example commented on size, font, and the expression Code Substitution in the database become emotion icons) is converted to literal or the icon of prescribed form.。This can pass through page display technique, the comment data in the message queue is shown as the html form realizes.
The storage employing NOSQL(full name of widget polymerization module: Not Only SQL, the database of non-relational) type database and redis high-speed internal memory buffer memory carry out the access of comment data.Adopt on the whole push-and-pull mechanism.
The push-and-pull mechanism principle: when widget polymerization module has access, the video in the polymerization have new comment will real-time synchronization under widget polymerization module.When the no one's access in a day of widget polymerization module, there is the new video comment also no longer to be synchronized to widget polymerization module.When widget polymerization module had access again, system can extract the new video comment under some widget polymerization modules automatically, and in one day, the new video comment all can real-time synchronization under widget.The benefit of this mechanism is that the no one accesses widget polymerization module and do not enter with regard to not having the new video comment, can save the resource of whole system.
Under the Internet video a plurality of comments can be arranged, an Internet video only has one to push formation.Pushing tabulation can corresponding a plurality of widget polymerization module.
Under different a plurality of Internet videos the instant new comment meeting that occurs by real-time integration to together, according to issuing time from new to old reorganization.
Apparatus and method according to the present invention have obtained following technique effect:
This technological expansion the corresponding relation of Internet video and comment, the Internet video in the Internet video website is carried out polymerization by creating the modes such as special topic or focus, and comment can only be bound with the single network video for a long time.For making the Internet video special topic, the scenes such as presenting programs provide good comment support.
2. by the comment polymerization, create good mutual environment, promote the user to strengthen communication and interaction.
3. the relevant interface that pushes can in time push to former comment author with the answer to comment, realizes the effect of instant notice.
4. the user can do mutually the answer operation at Internet video broadcast page and the special topic page interaction of a carrying out comment, so just with the series connection of the interaction under the different scenes together.
More than be the detailed description that the preferred embodiments of the present invention are carried out, but those of ordinary skill in the art should be appreciated that within the scope of the present invention, and guided by the spirit, various improvement, interpolation and replacement all are possible.These are all in the protection domain that claim of the present invention limits.