CN105373554A - Mobile device webpage based screen popup method and system - Google Patents

Mobile device webpage based screen popup method and system Download PDF

Info

Publication number
CN105373554A
CN105373554A CN201410423166.4A CN201410423166A CN105373554A CN 105373554 A CN105373554 A CN 105373554A CN 201410423166 A CN201410423166 A CN 201410423166A CN 105373554 A CN105373554 A CN 105373554A
Authority
CN
China
Prior art keywords
barrage
content
mobile device
module
web page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410423166.4A
Other languages
Chinese (zh)
Inventor
陈桦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Aisheng Sound Technology Co Ltd
Original Assignee
Beijing Aisheng Sound Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Aisheng Sound Technology Co Ltd filed Critical Beijing Aisheng Sound Technology Co Ltd
Priority to CN201410423166.4A priority Critical patent/CN105373554A/en
Publication of CN105373554A publication Critical patent/CN105373554A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a mobile device webpage based screen popup method and system. The method comprises: loading a specified webpage by a browser of a mobile device; when a request message of releasing screen popup content to a specific unit of the specified webpage is received, pushing a screen popup window bound with the specific unit; after the screen popup content returned through the screen popup window is received, positioning position information of the specific unit in the specified webpage; uploading mapping relationships among the obtained screen popup content, positioning data and specified website information to a server by the mobile device; after the content of the server is filtered, generating a screen popup ID, and sending correspondences among the screen popup ID, the screen popup content, the positioning data and the specified website information to a real-time pushing server cluster and a storage server cluster at the same time; and pushing the popup content to the mobile device which currently is being accessing to a specified position of the specified webpage by the real-time pushing server cluster and the storage server cluster. Therefore, real-time interaction experience of users browsing web pages through the mobile device is improved.

Description

Based on the barrage method and system of mobile device webpage
Technical field
The invention belongs to mobile internet technical field, be specifically related to a kind of barrage method and system based on mobile device webpage.
Background technology
In prior art, barrage system is present in the Video service of internet arena, specific works principle is: in video player, embed barrage content input frame, user in the process of observing a certain video file, when user watches a certain progress, by barrage content input frame input barrage content, then click after confirming, namely the enantiomorphic relationship of this barrage content and video file progress uploads onto the server.By this kind of mode, the enantiomorphic relationship table of a large amount of barrage content of server stores and video file progress.Then, when this video file is played, whenever being played to a certain video file progress that enantiomorphic relationship table stores, namely server pushes multiple barrage contents corresponding with current video file progress to client screen.By the way, the real-time interactive impression that user watches video file is improved.
The maximum feature of barrage system is: barrage content is synchronous with content source time shaft; Webpage due to internet lacks the time shaft that video barrage system relies on, and therefore, existing barrage system can only be applied to video field, and cannot be applied to the webpage of internet.
Therefore, at present, user, only after whole web page contents has been read, just can deliver evaluation by comment function to the overall content of webpage; Visible, when existing user browses webpage, not there is real-time interactive impression, there is the problem that Experience Degree is low.
Summary of the invention
For the defect that prior art exists, the invention provides a kind of barrage method and system based on mobile device webpage, in order to solve the problem.
The technical solution used in the present invention is as follows:
The invention provides a kind of barrage method based on mobile device webpage, comprise the following steps:
S1, the browser of mobile device loads and shows named web page;
S2, when described mobile device receive the request message of barrage content is delivered to the discrete cell of described named web page time, described mobile device pushes the barrage window bound with described discrete cell;
S3, after described mobile device receives the barrage content returned by described barrage window, described mobile device positions the positional information of described discrete cell at described named web page, obtains locator data; Described mobile device also obtains the appointment website information of described named web page;
S4, the mapping relations of the barrage content of acquisition, locator data and appointment website information are uploaded onto the server by described mobile device;
S5, described server judges that the barrage content received is the need of carrying out information filtering, if do not needed, then directly performs S6; If needed, then information filtering is carried out to described barrage content, then S6 is performed to the barrage content after filtration;
S6, described server is that the barrage content that S5 obtains generates unique corresponding barrage ID, then the corresponding relation of described barrage ID, described barrage content, described locator data and described appointment website information is sent to described real time propelling movement server cluster and storage server cluster simultaneously;
S7, described real time propelling movement server cluster receives the corresponding relation of described barrage ID, described barrage content, described locator data and described appointment website information;
Then, described real time propelling movement server cluster with described appointment website information for monitoring keyword, when listen to exist current accessing at least one mobile device of described appointment network address time, obtain the IP address of each mobile device listened to; Then with described locator data for monitor keyword, the access progress of each listened to mobile device to described named web page is monitored, when listen to exist the given content of at least one mobile device to described named web page conduct interviews time, then described barrage content is pushed to the mobile device of accessing described given content; Wherein, described given content refers to the web page contents corresponding to described locator data;
Described storage server cluster stores the corresponding relation of described barrage ID, described barrage content, described locator data and described appointment website information by memory module; In addition, described memory module stores the corresponding relation of barrage content, locator data and the website information that historical time that other mobile devices upload stores;
Then, described storage server cluster, according to default propelling movement strategy, reads from described memory module and needs the barrage content of propelling movement and push.
Preferably, in S2, the particular content of described named web page display comprises first kind content and Equations of The Second Kind content; Wherein, described first kind content comprises word, video, audio frequency, single screen can show first kind picture completely; Described Equations of The Second Kind content comprises: needs at least two screens could show Equations of The Second Kind picture completely;
When the time duration that the 1st regional area in described first kind content is pressed and the dynamics that is pressed exceed setting threshold value, then the 1st regional area is needs by the described discrete cell of locating, and is now the request message receiving and described discrete cell is delivered to barrage content;
When the time duration that certain the 2nd regional area in described Equations of The Second Kind content is pressed and the dynamics that is pressed exceed setting threshold value, described Equations of The Second Kind content ejects removable positioning mark; When this removable positioning mark is moved to another the 3rd regional area in this Equations of The Second Kind content, and when receiving the message of locating and determining, then the 3rd regional area is needs by the described discrete cell of locating, and is now the request message receiving and described discrete cell is delivered to barrage content.
Preferably, in S3, described mobile device positions the positional information of described discrete cell at described named web page, obtains locator data, is specially:
If described discrete cell is word, then judge whether the length of this discrete cell place paragraph exceedes setting threshold value, if be no more than, then directly obtain the relative position value of this discrete cell in the whole document of webpage, this relative position value is described locator data; If exceeded, then first obtain the first relative position value of the specific paragraph of this discrete cell belonging to it, then calculate second relative position value of this specific paragraph value in the whole document of webpage; First relative position value described in COMPREHENSIVE CALCULATING and described second relative position value, obtain the third phase of described discrete cell in the whole document of webpage to positional value, this third phase is described locator data to positional value;
Video, audio frequency and picture are referred to as content object;
If described discrete cell belongs to particular content object, then judge whether the height of this particular content object exceedes setting threshold value, if be no more than, then directly obtain the relative position value of this discrete cell in the whole document of webpage, this relative position value is described locator data; If exceeded, then first obtain four relative position value of this discrete cell in described particular content object, then calculate five relative position value of this particular content object in the whole document of webpage; 4th relative position value described in COMPREHENSIVE CALCULATING and described 5th relative position value, obtain six relative position value of described discrete cell in the whole document of webpage, the 6th relative position value is described locator data.
Preferably, in S7, described real time propelling movement server cluster and need receives pushes content mobile device between, employing following manner set up communication connection:
Described real time propelling movement server cluster is set up communication with mobile device by WebSocket agreement or LongPolling agreement and is connected.
Preferably, in S7, listen to the given content of mobile device to described named web page and conduct interviews, be specially:
The given content listening to described named web page is positioned at the viewing area of described mobile device.
Preferably, after S7, also comprise:
At mobile device end, the webpage fringe region shown by browser marks off barrage density viewing area, and this barrage density viewing area is divided into multiple subregion, and each subregion is for showing the barrage density of the web page area corresponding to it.
Preferably, described barrage density viewing area is color bar, is identified the barrage density of corresponding web page area by color value.
Preferably, in S7, described storage server cluster, according to default propelling movement strategy, reads from described memory module and needs the barrage content of propelling movement and push, specifically refer to:
Described storage server cluster with its each webpage network address stored for monitoring keyword, when listen to exist current accessing the mobile device of a certain webpage network address j time, obtain the IP address of this mobile device listened to; Then be monitor keyword with locator data, the access progress of listened to mobile device to webpage network address j is monitored, when listening to a certain web page contents of mobile device to webpage network address j and conducting interviews, then read the multiple barrage contents corresponding with a certain web page contents of webpage network address j from memory module, then, the multiple barrage contents read are sorted, pushes each barrage content by the backward mobile device of elder generation of sequence.
Preferably, multiple barrage content sorts by the height of scoring.
The present invention also provides a kind of barrage system based on mobile device webpage, comprises mobile device, server, real time propelling movement server cluster and storage server cluster;
Described mobile device comprises:
Load-on module, for loading by browser and showing named web page;
First receiver module, for receiving the request message discrete cell of the named web page that described load-on module loads being delivered to barrage content;
First pushing module, for pushing the barrage window bound with the discrete cell received by described first receiver module;
Second receiver module, for receiving the barrage content that the barrage window that pushed by described first pushing module is returned;
Locating module, for after described second receiver module receives barrage content, positions the positional information of described discrete cell at described named web page, obtains locator data;
Website acquisition module, for obtaining the appointment website information of the named web page at described discrete cell place;
Upper transmission module, the mapping relations of the appointment website information that the locator data navigated to for the barrage content received by described second receiver module, described locating module and described website acquisition module get are uploaded onto the server;
Described server comprises:
Judge module, for judging that barrage content that described upper transmission module uploads is the need of carrying out information filtering;
Content filtering module, for when described judge module judged result is for being, carries out information filtering to described barrage content;
Second pushing module, for to described judge module judged result for not no for barrage content, or, to the barrage content that described content filtering module is filled into, generate unique corresponding barrage ID, then the corresponding relation of described barrage ID, described barrage content, described locator data and described appointment website information is sent to described real time propelling movement server cluster and storage server cluster simultaneously;
Described real time propelling movement server cluster comprises:
3rd receiver module, for receiving the corresponding relation of described barrage ID, described barrage content, described locator data and described appointment website information that described second pushing module pushes;
First monitors module, is monitor keyword for the described appointment website information that receives with described 3rd receiver module, monitors currently whether to there is at least one mobile device of accessing described appointment network address; If listened to, then obtain the IP address of each mobile device listened to;
Second monitors module, monitors for the access progress of each mobile device to described named web page listened to described first monitoring module,
3rd pushing module, for when described second monitor module listen to exist the given content of at least one mobile device to described named web page conduct interviews time, then described barrage content is pushed to the mobile device of accessing described given content; Wherein, described given content refers to the web page contents corresponding to described locator data;
Described storage server cluster comprises:
Memory module, for storing the corresponding relation of described barrage ID, described barrage content, described locator data and described appointment website information that described second pushing module pushes; Also store the corresponding relation of the barrage content of the historical time storage that other mobile devices are uploaded, locator data and website information;
Read module, for according to default propelling movement strategy, reads the barrage content needing to push from described memory module;
4th pushing module, pushes to mobile device for the barrage content read by described read module.
Beneficial effect of the present invention is as follows:
Barrage method and system based on mobile device webpage provided by the invention, are applied to mobile device webpage by barrage system, improve the real-time interactive impression that user browses webpage.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the barrage method based on mobile device webpage provided by the invention;
Fig. 2 is the structural representation of the barrage system based on mobile device webpage provided by the invention.
Embodiment
Below in conjunction with accompanying drawing, the present invention is described in detail:
As shown in Figure 1, the invention provides a kind of barrage method based on mobile device webpage, comprise the following steps:
S1, the browser of mobile device loads and shows named web page;
Wherein, mobile device is any terminal with communication function, includes but not limited to mobile phone, panel computer.Be particularly useful for the less mobile phone of screen or panel computer.
S2, when described mobile device receive the request message of barrage content is delivered to the discrete cell of described named web page time, described mobile device pushes the barrage window bound with described discrete cell;
In this step, the discrete cell of named web page is the region that barrage content is delivered in user's expection.For the difference of the particular content that user presses, adopt different locator meamss, that is: the particular content that named web page shows is divided into first kind content and Equations of The Second Kind content; Wherein, first kind content comprises word, video, audio frequency, single screen can show first kind picture completely; Equations of The Second Kind content comprises: needs at least two screens could show Equations of The Second Kind picture completely;
When the time duration that the 1st regional area in described first kind content is pressed and the dynamics that is pressed exceed setting threshold value, then the 1st regional area is needs by the described discrete cell of locating, and is now the request message receiving and described discrete cell is delivered to barrage content; Such as, if named web page shows 10 sections of word contents altogether, if when user needs to deliver barrage content to the statement a of the 2nd section of the 2nd row, then user directly presses the statement a of the 2nd section of the 2nd row by finger, then statement a is needs by the discrete cell of locating.
Again such as, if named web page shows 10 sections of word contents altogether, and, between the 3rd section and the 4th section, be inserted with picture b, and picture b single screen can show completely; Then user directly presses picture b by finger, then picture b is needs by the discrete cell of locating.
Again such as, if named web page shows 10 sections of word contents altogether, and, between the 3rd section and the 4th section, be inserted with video c; Then user directly presses video c by finger, then video c is needs by the discrete cell of locating.
When the time duration that certain the 2nd regional area in described Equations of The Second Kind content is pressed and the dynamics that is pressed exceed setting threshold value, described Equations of The Second Kind content ejects removable positioning mark; When this removable positioning mark is moved to another the 3rd regional area in this Equations of The Second Kind content, and when receiving the message of locating and determining, then the 3rd regional area is needs by the described discrete cell of locating, and is now the request message receiving and described discrete cell is delivered to barrage content.
Such as, if named web page shows 10 sections of word contents altogether, and, between the 3rd section and the 4th section, be inserted with picture c, and picture c needs three screens could show completely, is simple declaration problem, if picture c needs screen 1, screen 2 and screen 3 could show completely; Then user directly presses the picture c of screen 1 correspondence by finger, now, picture c ejects removable positioning mark, such as one red circle or a red boxes etc.; If user expects that the position of delivering barrage content is certain target area on screen 3, the then removable positioning mark of user operation, removable positioning mark is moved to the target area on screen 3, then acknowledgement key or similar functions key is pressed, then to determining that the region at removable positioning mark place is target area, also for needing by the discrete cell of locating.
S3, after described mobile device receives the barrage content returned by described barrage window, described mobile device positions the positional information of described discrete cell at described named web page, obtains locator data; Described mobile device also obtains the appointment website information of described named web page;
Such as, if named web page shows 10 sections of word contents altogether, if when user needs to deliver barrage content to the statement a of the 2nd section of the 2nd row, then user directly presses the statement a of the 2nd section of the 2nd row by finger, then statement a is needs by the discrete cell of locating, now, mobile device ejects the barrage window bound with statement a, then, user is by the mode of copy editor, the barrage content delivered is needed, such as, to the understanding etc. of statement a to the input of barrage window; Then, press acknowledgement key or similar functions key, namely represent and inputted barrage content.Mobile device, after receiving barrage content, positions in the positional information of named web page statement a, obtains locator data.
Concrete locator meams is relevant with the determination mode of discrete cell, specifically comprises following several situation:
(1) the first situation
(1) discrete cell is word
If discrete cell is word, then judge whether the length of this discrete cell place paragraph exceedes setting threshold value, if be no more than, then directly obtain the relative position value of this discrete cell in the whole document of webpage, this relative position value is described locator data; If exceeded, then first obtain the first relative position value of the specific paragraph of this discrete cell belonging to it, then calculate second relative position value of this specific paragraph value in the whole document of webpage; First relative position value described in COMPREHENSIVE CALCULATING and described second relative position value, obtain the third phase of described discrete cell in the whole document of webpage to positional value, this third phase is described locator data to positional value;
Such as, if named web page shows 10 sections of word contents altogether, if discrete cell is the statement a of the 2nd section of the 2nd row; If setting threshold value is 7 row, then judge that whether the length of the 2nd section is more than 7 row, if be no more than, then think that the 2nd section for short paragraph, then directly obtain the relative position value of statement a in the whole document of webpage, wherein, relative position value can adopt the judgment mode of line number, as, if whole document is 100 row, and 10th row of statement a in whole document, the then relative position value=10/100=10% of statement a in the whole document of webpage, 10% is locator data.
On the contrary, if the length of the 2nd section is 20 row, more than 7 row, then think that the 2nd section for long paragraph, if statement a at the 4th row of the 2nd section, then the first relative position value=4/20=20%; If whole document is 100 row, the 1st section has 5 row, then the 2nd section of the second relative position value=6% ~ 25% in the whole document of webpage; Then third phase is to positional value=(25%-6%) * 20%+6%=9.8%, and 9.8% is the relative position of statement a in whole document.
It should be noted that, the above-mentioned relative position computing method enumerated, be only a kind of concrete example, in practical application, other computing method can be adopted flexibly.
(2) discrete cell is content object
Video, audio frequency and picture are referred to as content object;
If described discrete cell belongs to particular content object, then judge whether the height of this particular content object exceedes setting threshold value, if be no more than, then directly obtain the relative position value of this discrete cell in the whole document of webpage, this relative position value is described locator data; If exceeded, then first obtain four relative position value of this discrete cell in described particular content object, then calculate five relative position value of this particular content object in the whole document of webpage; 4th relative position value described in COMPREHENSIVE CALCULATING and described 5th relative position value, obtain six relative position value of described discrete cell in the whole document of webpage, the 6th relative position value is described locator data.
Such as, if highly setting threshold value is 5 centimetres; Content object is picture a, if named web page shows 10 sections of word contents altogether, picture a is between the 2nd section and the 3rd section, if the height of picture a is 3 centimetres, be less than setting threshold value, then directly calculate the relative position of picture a in whole document, as: if the height value of whole document is 100 centimetres, the top of picture a is positioned at 5 centimeters of whole document, then picture a is interval value 5% ~ 8% at the relative position of whole document; Also can get intermediate value is 6.5%.
If the height of picture a is 10 centimetres, be greater than setting threshold value, user is by mobile removable positioning mark, and the discrete cell obtained is a regional area a in picture a; If regional area a is positioned at 6 centimeters of picture a, then four relative position value=6/10=60%; Again because picture a is 5% ~ 8% at the relative position of whole document; Then the 5th relative position value=(8%-5%) * 60%+5%=5.018%.
S4, the mapping relations of the barrage content of acquisition, locator data and appointment website information are uploaded onto the server by described mobile device;
S5, described server judges that the barrage content received is the need of carrying out information filtering, if do not needed, then directly performs S6; If needed, then information filtering is carried out to described barrage content, such as, filter rude term, the anyway term etc. that comprise in barrage content, then S6 is performed to the barrage content after filtration;
S6, described server is that the barrage content that S5 obtains generates unique corresponding barrage ID, then the corresponding relation of described barrage ID, described barrage content, described locator data and described appointment website information is sent to described real time propelling movement server cluster and storage server cluster simultaneously;
S7, described real time propelling movement server cluster receives the corresponding relation of described barrage ID, described barrage content, described locator data and described appointment website information;
Then, described real time propelling movement server cluster with described appointment website information for monitoring keyword, when listen to exist current accessing at least one mobile device of described appointment network address time, obtain the IP address of each mobile device listened to; Then with described locator data for monitor keyword, the access progress of each listened to mobile device to described named web page is monitored, when listen to exist the given content of at least one mobile device to described named web page conduct interviews time, this only, the given content only referring to listen to described named web page is positioned at the viewing area of described mobile device; Then described barrage content is pushed to the mobile device of accessing described given content; Wherein, described given content refers to the web page contents corresponding to described locator data;
Concrete, key features due to barrage system is ageing, therefore, and specialized designs of the present invention real time propelling movement server cluster, the corresponding relation of its buffer memory barrage ID, barrage content, locator data and appointment website information, and do not stored by exterior storage mediums such as hard disks; When in buffer memory, the cache-time of some corresponding relation exceedes setting threshold value, such as: 5 seconds, this cache contents is namely removed.
To specify network address for http://finance.sina.com.cn/roll/20140818/075720039829.shtml, the document title is: endowment enterprise must calm reply segmentation trend.Locator data is 10%; Barrage content is: need to strengthen policy implementation dynamics.
Then: when real time propelling movement server cluster listen to current have 3 mobile devices accessing http://finance.sina.com.cn/roll/20140818/075720039829.shtml time, obtain the IP address of these 3 mobile devices, be respectively IP-1, IP-2 and IP-3; Then, with 10% for monitoring keyword, when listen to exist the 10% progress content of IP-1 to this webpage conduct interviews time, then the barrage content strengthening policy implementation dynamics will be needed to be pushed to the mobile device of IP-1.
In addition, for the propelling movement improving real time propelling movement server cluster is further effective, real time propelling movement server cluster and needing receives push content mobile device between, following manner can be adopted to set up communication connection:
Described real time propelling movement server cluster is set up communication with mobile device by WebSocket agreement or LongPolling agreement and is connected.Concrete, real time propelling movement service is long-chain welding system, the equipment supporting HTML5 uses WebSocket technology, other equipment uses LongPolling pattern, relatively old mobile device oneself realizes WebSocket communication by client.According to the difference of client device tenability, use above-mentioned communication modes, ensure that barrage meeting real time propelling movement is to user.
Described storage server cluster stores the corresponding relation of described barrage ID, described barrage content, described locator data and described appointment website information by memory module, certainly as required, also can store the cryptographic hash of URL simultaneously; In addition, described memory module stores the corresponding relation of barrage content, locator data and the website information that historical time that other mobile devices upload stores;
Then, described storage server cluster, according to default propelling movement strategy, reads from described memory module and needs the barrage content of propelling movement and push.
Concrete, storage server cluster with its each webpage network address stored for monitoring keyword, when listen to exist current accessing the mobile device of a certain webpage network address j time, obtain the IP address of this mobile device listened to; Then be monitor keyword with locator data, the access progress of listened to mobile device to webpage network address j is monitored, when listening to a certain web page contents of mobile device to webpage network address j and conducting interviews, then read the multiple barrage contents corresponding with a certain web page contents of webpage network address j from memory module, then, the multiple barrage contents read are sorted, pushes each barrage content by the backward mobile device of elder generation of sequence.
Wherein, multiple barrage content can sort by the height of scoring.
After S7, also comprise:
At mobile device end, the webpage fringe region shown by browser marks off barrage density viewing area, and this barrage density viewing area is divided into multiple subregion, and each subregion is used for the barrage density of the web page area shown corresponding to it.Such as, barrage density viewing area is color bar, is identified the barrage density of corresponding web page area by color value.
Such as, when user browses webpage, webpage fringe region can show the wide color bar of 2 pixel, uses the barrage density of color value mark correspondence position content.Along with web page contents checked by user's roll screen, webpage URL user accessed in real time and various locator data send to storage server cluster, storage server cluster is according to these conditions, filter out corresponding barrage content, and according to the ageing of barrage and recognized degree sequence, the barrage content that preferential displaying sequence is forward.
Sort method to be marked high and low points method for user, that is: user clicks barrage content, carries out scoring operation to barrage, then adopts content rating algorithm, calculates the DISPLAY ORDER of the multiple barrage contents at same position, is preferentially shown by the highest barrage of scoring.
In the present invention, following content rating algorithm can be adopted:
If the barrage A rise time is A, the barrage B rise time is B; Then calculate the rise time difference ts between barrage A and barrage B, wherein, ts uses number of seconds mark:
ts=A-B;
At current time, if barrage A supports that number is U1, opposition number is D1; If barrage B supports that number is U2, opposition number is D2;
Then x=U-D=(U1+U2)-(D1+D2);
y∈{-1,0,1}
y = 1 if x > 0 0 if x = 0 - 1 if x < 0 ;
z = | x | if | x | &GreaterEqual; 1 1 if | x | < 1
f ( t s , y , z ) = log 10 z + y t s 45000 &OverBar; ;
By calculating the size of f value between different barrage, the sequence to barrage can be realized.
For three barrage contents, introduce the concrete example of content rating algorithm:
For barrage A and barrage B, as: barrage A generation time is: 2014.8.19:00, and current support number is 1000 people, and opposition number is 50 people; Barrage B generation time is: 2014.8.29:00, and current support number is 500 people, and opposition number is 900 people;
First, calculate the number of seconds between 2014.8.29:00 and 2014.8.19:00, be designated as ts; Be 8.64*10 7second;
x=(1000+500)-(50+900)=1500-950=550
X>0, so y=1
| x|>=1 is so z=500
Then: f (ts, y, z)=log 10z+yts/45000=log 10500+8.64*10 7/ 45000=4.61897
Introduce barrage c again, calculate the f (ts, y, z) between barrage c and barrage B, obtain another value Fc; Relation according to Fc and 4.61897 sorts to barrage B and barrage c, such as, if Fc value is less than 4.61897, then preferentially shows barrage c; Because now system thinks that the temperature of current time barrage c is maximum.
As shown in Figure 2, the present invention also provides a kind of barrage system based on mobile device webpage, comprises mobile device, server, real time propelling movement server cluster and storage server cluster;
Described mobile device comprises:
Load-on module, for loading by browser and showing named web page;
First receiver module, for receiving the request message discrete cell of the named web page that described load-on module loads being delivered to barrage content;
First pushing module, for pushing the barrage window bound with the discrete cell received by described first receiver module;
Second receiver module, for receiving the barrage content that the barrage window that pushed by described first pushing module is returned;
Locating module, for after described second receiver module receives barrage content, positions the positional information of described discrete cell at described named web page, obtains locator data;
Website acquisition module, for obtaining the appointment website information of the named web page at described discrete cell place;
Upper transmission module, the mapping relations of the appointment website information that the locator data navigated to for the barrage content received by described second receiver module, described locating module and described website acquisition module get are uploaded onto the server;
Described server comprises:
Judge module, for judging that barrage content that described upper transmission module uploads is the need of carrying out information filtering;
Content filtering module, for when described judge module judged result is for being, carries out information filtering to described barrage content;
Second pushing module, for to described judge module judged result for not no for barrage content, or, to the barrage content that described content filtering module is filled into, generate unique corresponding barrage ID, then the corresponding relation of described barrage ID, described barrage content, described locator data and described appointment website information is sent to described real time propelling movement server cluster and storage server cluster simultaneously;
Described real time propelling movement server cluster comprises:
3rd receiver module, for receiving the corresponding relation of described barrage ID, described barrage content, described locator data and described appointment website information that described second pushing module pushes;
First monitors module, is monitor keyword for the described appointment website information that receives with described 3rd receiver module, monitors currently whether to there is at least one mobile device of accessing described appointment network address; If listened to, then obtain the IP address of each mobile device listened to;
Second monitors module, monitors for the access progress of each mobile device to described named web page listened to described first monitoring module,
3rd pushing module, for when described second monitor module listen to exist the given content of at least one mobile device to described named web page conduct interviews time, then described barrage content is pushed to the mobile device of accessing described given content; Wherein, described given content refers to the web page contents corresponding to described locator data;
Described storage server cluster comprises:
Memory module, for storing the corresponding relation of described barrage ID, described barrage content, described locator data and described appointment website information that described second pushing module pushes; Also store the corresponding relation of the barrage content of the historical time storage that other mobile devices are uploaded, locator data and website information;
Read module, for according to default propelling movement strategy, reads the barrage content needing to push from described memory module;
4th pushing module, pushes to mobile device for the barrage content read by described read module.
Barrage method and system based on mobile device webpage provided by the invention,
In view of the time shaft that the webpage of internet in prior art does not have video barrage system to rely on, barrage system cannot correspond to the particular location in content accurately; Especially, when user is by browsing page by mobile equipment, prior art the viewpoint of accurate track user cannot rest on the particular location of this content on screen.Therefore, the invention provides a kind of barrage method and system based on mobile device webpage, screen is pressed by user is long on the particular content shown by mobile device, and then accurately judge the particular location of object content in whole structure of web page, and the barrage content of this position and user's input is saved in server, thus produce barrage.When user browses this content by mobile device, Automatic Logos go out the dense degree of every a line barrage in webpage, user, when by slip screen browsing content, calculates the viewing area of user in real time, and barrage content relevant for this region is showed user with floating layer form rolling; User is to oneself thinking that valuable barrage content is evaluated, and representing of barrage can be sorted according to the ageing and approved degree of content, is exported by the barrage content priority of the most timely most worthy.Therefore, the invention solves barrage itself and need the characteristics such as synchronous with content source time shaft, be applicable to the function that mobile device realizes barrage, be particularly useful for the mobile device that screen size is less, make any web page contents on internet can realize barrage function by the present invention, final raising user is experienced by the real-time interactive of browsing page by mobile equipment.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should look protection scope of the present invention.

Claims (10)

1., based on a barrage method for mobile device webpage, it is characterized in that, comprise the following steps:
S1, the browser of mobile device loads and shows named web page;
S2, when described mobile device receive the request message of barrage content is delivered to the discrete cell of described named web page time, described mobile device pushes the barrage window bound with described discrete cell;
S3, after described mobile device receives the barrage content returned by described barrage window, described mobile device positions the positional information of described discrete cell at described named web page, obtains locator data; Described mobile device also obtains the appointment website information of described named web page;
S4, the mapping relations of the barrage content of acquisition, locator data and appointment website information are uploaded onto the server by described mobile device;
S5, described server judges that the barrage content received is the need of carrying out information filtering, if do not needed, then directly performs S6; If needed, then information filtering is carried out to described barrage content, then S6 is performed to the barrage content after filtration;
S6, described server is that the barrage content that S5 obtains generates unique corresponding barrage ID, then the corresponding relation of described barrage ID, described barrage content, described locator data and described appointment website information is sent to described real time propelling movement server cluster and storage server cluster simultaneously;
S7, described real time propelling movement server cluster receives the corresponding relation of described barrage ID, described barrage content, described locator data and described appointment website information;
Then, described real time propelling movement server cluster with described appointment website information for monitoring keyword, when listen to exist current accessing at least one mobile device of described appointment network address time, obtain the IP address of each mobile device listened to; Then with described locator data for monitor keyword, the access progress of each listened to mobile device to described named web page is monitored, when listen to exist the given content of at least one mobile device to described named web page conduct interviews time, then described barrage content is pushed to the mobile device of accessing described given content; Wherein, described given content refers to the web page contents corresponding to described locator data;
Described storage server cluster stores the corresponding relation of described barrage ID, described barrage content, described locator data and described appointment website information by memory module; In addition, described memory module stores the corresponding relation of barrage content, locator data and the website information that historical time that other mobile devices upload stores;
Then, described storage server cluster, according to default propelling movement strategy, reads from described memory module and needs the barrage content of propelling movement and push.
2. the barrage method based on mobile device webpage according to claim 1, is characterized in that, in S2, the particular content of described named web page display comprises first kind content and Equations of The Second Kind content; Wherein, described first kind content comprises word, video, audio frequency, single screen can show first kind picture completely; Described Equations of The Second Kind content comprises: needs at least two screens could show Equations of The Second Kind picture completely;
When the time duration that the 1st regional area in described first kind content is pressed and the dynamics that is pressed exceed setting threshold value, then the 1st regional area is needs by the described discrete cell of locating, and is now the request message receiving and described discrete cell is delivered to barrage content;
When the time duration that certain the 2nd regional area in described Equations of The Second Kind content is pressed and the dynamics that is pressed exceed setting threshold value, described Equations of The Second Kind content ejects removable positioning mark; When this removable positioning mark is moved to another the 3rd regional area in this Equations of The Second Kind content, and when receiving the message of locating and determining, then the 3rd regional area is needs by the described discrete cell of locating, and is now the request message receiving and described discrete cell is delivered to barrage content.
3. the barrage method based on mobile device webpage according to claim 2, is characterized in that, in S3, described mobile device positions the positional information of described discrete cell at described named web page, obtains locator data, is specially:
If described discrete cell is word, then judge whether the length of this discrete cell place paragraph exceedes setting threshold value, if be no more than, then directly obtain the relative position value of this discrete cell in the whole document of webpage, this relative position value is described locator data; If exceeded, then first obtain the first relative position value of the specific paragraph of this discrete cell belonging to it, then calculate second relative position value of this specific paragraph value in the whole document of webpage; First relative position value described in COMPREHENSIVE CALCULATING and described second relative position value, obtain the third phase of described discrete cell in the whole document of webpage to positional value, this third phase is described locator data to positional value;
Video, audio frequency and picture are referred to as content object;
If described discrete cell belongs to particular content object, then judge whether the height of this particular content object exceedes setting threshold value, if be no more than, then directly obtain the relative position value of this discrete cell in the whole document of webpage, this relative position value is described locator data; If exceeded, then first obtain four relative position value of this discrete cell in described particular content object, then calculate five relative position value of this particular content object in the whole document of webpage; 4th relative position value described in COMPREHENSIVE CALCULATING and described 5th relative position value, obtain six relative position value of described discrete cell in the whole document of webpage, the 6th relative position value is described locator data.
4. the barrage method based on mobile device webpage according to claim 1, is characterized in that, in S7, described real time propelling movement server cluster and need receives pushes content mobile device between, employing following manner set up communication connection:
Described real time propelling movement server cluster is set up communication with mobile device by WebSocket agreement or LongPolling agreement and is connected.
5. the barrage method based on mobile device webpage according to claim 1, is characterized in that, in S7, listens to the given content of mobile device to described named web page and conducts interviews, be specially:
The given content listening to described named web page is positioned at the viewing area of described mobile device.
6. the barrage method based on mobile device webpage according to claim 1, is characterized in that, after S7, also comprise:
At mobile device end, the webpage fringe region shown by browser marks off barrage density viewing area, and this barrage density viewing area is divided into multiple subregion, and each subregion is for showing the barrage density of the web page area corresponding to it.
7. the barrage method based on mobile device webpage according to claim 6, is characterized in that, described barrage density viewing area is color bar, is identified the barrage density of corresponding web page area by color value.
8. the barrage method based on mobile device webpage according to claim 6, is characterized in that, in S7, described storage server cluster, according to default propelling movement strategy, reads from described memory module and needs the barrage content of propelling movement and push, specifically refer to:
Described storage server cluster with its each webpage network address stored for monitoring keyword, when listen to exist current accessing the mobile device of a certain webpage network address j time, obtain the IP address of this mobile device listened to; Then be monitor keyword with locator data, the access progress of listened to mobile device to webpage network address j is monitored, when listening to a certain web page contents of mobile device to webpage network address j and conducting interviews, then read the multiple barrage contents corresponding with a certain web page contents of webpage network address j from memory module, then, the multiple barrage contents read are sorted, pushes each barrage content by the backward mobile device of elder generation of sequence.
9. the barrage method based on mobile device webpage according to claim 8, is characterized in that, multiple barrage content sorts by the height of scoring.
10. based on a barrage system for mobile device webpage, it is characterized in that, comprise mobile device, server, real time propelling movement server cluster and storage server cluster;
Described mobile device comprises:
Load-on module, for loading by browser and showing named web page;
First receiver module, for receiving the request message discrete cell of the named web page that described load-on module loads being delivered to barrage content;
First pushing module, for pushing the barrage window bound with the discrete cell received by described first receiver module;
Second receiver module, for receiving the barrage content that the barrage window that pushed by described first pushing module is returned;
Locating module, for after described second receiver module receives barrage content, positions the positional information of described discrete cell at described named web page, obtains locator data;
Website acquisition module, for obtaining the appointment website information of the named web page at described discrete cell place;
Upper transmission module, the mapping relations of the appointment website information that the locator data navigated to for the barrage content received by described second receiver module, described locating module and described website acquisition module get are uploaded onto the server;
Described server comprises:
Judge module, for judging that barrage content that described upper transmission module uploads is the need of carrying out information filtering;
Content filtering module, for when described judge module judged result is for being, carries out information filtering to described barrage content;
Second pushing module, for to described judge module judged result for not no for barrage content, or, to the barrage content that described content filtering module is filled into, generate unique corresponding barrage ID, then the corresponding relation of described barrage ID, described barrage content, described locator data and described appointment website information is sent to described real time propelling movement server cluster and storage server cluster simultaneously;
Described real time propelling movement server cluster comprises:
3rd receiver module, for receiving the corresponding relation of described barrage ID, described barrage content, described locator data and described appointment website information that described second pushing module pushes;
First monitors module, is monitor keyword for the described appointment website information that receives with described 3rd receiver module, monitors currently whether to there is at least one mobile device of accessing described appointment network address; If listened to, then obtain the IP address of each mobile device listened to;
Second monitors module, monitors for the access progress of each mobile device to described named web page listened to described first monitoring module,
3rd pushing module, for when described second monitor module listen to exist the given content of at least one mobile device to described named web page conduct interviews time, then described barrage content is pushed to the mobile device of accessing described given content; Wherein, described given content refers to the web page contents corresponding to described locator data;
Described storage server cluster comprises:
Memory module, for storing the corresponding relation of described barrage ID, described barrage content, described locator data and described appointment website information that described second pushing module pushes; Also store the corresponding relation of the barrage content of the historical time storage that other mobile devices are uploaded, locator data and website information;
Read module, for according to default propelling movement strategy, reads the barrage content needing to push from described memory module;
4th pushing module, pushes to mobile device for the barrage content read by described read module.
CN201410423166.4A 2014-08-25 2014-08-25 Mobile device webpage based screen popup method and system Pending CN105373554A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410423166.4A CN105373554A (en) 2014-08-25 2014-08-25 Mobile device webpage based screen popup method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410423166.4A CN105373554A (en) 2014-08-25 2014-08-25 Mobile device webpage based screen popup method and system

Publications (1)

Publication Number Publication Date
CN105373554A true CN105373554A (en) 2016-03-02

Family

ID=55375762

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410423166.4A Pending CN105373554A (en) 2014-08-25 2014-08-25 Mobile device webpage based screen popup method and system

Country Status (1)

Country Link
CN (1) CN105373554A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105975167A (en) * 2016-05-27 2016-09-28 网易(杭州)网络有限公司 Page comment control method and device
CN106060057A (en) * 2016-06-17 2016-10-26 武汉斗鱼网络科技有限公司 System and method for video live broadcast website to generate white list based on user barrage behavior
CN106060674A (en) * 2016-06-27 2016-10-26 武汉斗鱼网络科技有限公司 System and method for achieving intelligent video live broadcast on front end
CN106209579A (en) * 2016-06-28 2016-12-07 武汉斗鱼网络科技有限公司 Barrage website chat process quickly generates the system and method for hyperlink
CN106254922A (en) * 2016-08-08 2016-12-21 暴风集团股份有限公司 The method and system of barrage are play in prestrain
CN107102857A (en) * 2017-04-19 2017-08-29 张澄宇 The display control method of the App pages
WO2017166719A1 (en) * 2016-03-30 2017-10-05 乐视控股(北京)有限公司 Method and apparatus for displaying bullet screen information
CN107396144A (en) * 2017-06-30 2017-11-24 武汉斗鱼网络科技有限公司 A kind of barrage distribution method and device
CN108093306A (en) * 2017-12-11 2018-05-29 维沃移动通信有限公司 A kind of barrage display methods and mobile terminal
CN108200479A (en) * 2018-01-22 2018-06-22 上海哔哩哔哩科技有限公司 Playback method, server and the barrage play system of barrage based on streaming document
CN109275014A (en) * 2018-09-13 2019-01-25 武汉斗鱼网络科技有限公司 A kind of method and mobile terminal linking barrage
CN109948084A (en) * 2017-08-03 2019-06-28 腾讯科技(北京)有限公司 Methods of exhibiting, device, medium and the calculating equipment of webpage information
CN111538601A (en) * 2020-04-14 2020-08-14 北京宝兰德软件股份有限公司 Webpage end communication method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120143590A1 (en) * 2010-05-07 2012-06-07 For+side.com Co., Ltd Electronic book system and content server
CN103166982A (en) * 2011-12-09 2013-06-19 腾讯科技(深圳)有限公司 Sharing method and device of electronic book annotation information
CN103997676A (en) * 2014-04-28 2014-08-20 小米科技有限责任公司 Information display method, information display device and information display system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120143590A1 (en) * 2010-05-07 2012-06-07 For+side.com Co., Ltd Electronic book system and content server
CN103166982A (en) * 2011-12-09 2013-06-19 腾讯科技(深圳)有限公司 Sharing method and device of electronic book annotation information
CN103997676A (en) * 2014-04-28 2014-08-20 小米科技有限责任公司 Information display method, information display device and information display system

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017166719A1 (en) * 2016-03-30 2017-10-05 乐视控股(北京)有限公司 Method and apparatus for displaying bullet screen information
CN105975167A (en) * 2016-05-27 2016-09-28 网易(杭州)网络有限公司 Page comment control method and device
CN106060057A (en) * 2016-06-17 2016-10-26 武汉斗鱼网络科技有限公司 System and method for video live broadcast website to generate white list based on user barrage behavior
CN106060674A (en) * 2016-06-27 2016-10-26 武汉斗鱼网络科技有限公司 System and method for achieving intelligent video live broadcast on front end
CN106209579A (en) * 2016-06-28 2016-12-07 武汉斗鱼网络科技有限公司 Barrage website chat process quickly generates the system and method for hyperlink
CN106209579B (en) * 2016-06-28 2019-03-15 武汉斗鱼网络科技有限公司 The system and method for hyperlink is quickly generated in the chat process of barrage website
CN106254922B (en) * 2016-08-08 2019-06-18 暴风集团股份有限公司 Preload the method and system for playing barrage
CN106254922A (en) * 2016-08-08 2016-12-21 暴风集团股份有限公司 The method and system of barrage are play in prestrain
CN107102857A (en) * 2017-04-19 2017-08-29 张澄宇 The display control method of the App pages
CN107396144A (en) * 2017-06-30 2017-11-24 武汉斗鱼网络科技有限公司 A kind of barrage distribution method and device
CN109948084A (en) * 2017-08-03 2019-06-28 腾讯科技(北京)有限公司 Methods of exhibiting, device, medium and the calculating equipment of webpage information
CN108093306A (en) * 2017-12-11 2018-05-29 维沃移动通信有限公司 A kind of barrage display methods and mobile terminal
CN108200479A (en) * 2018-01-22 2018-06-22 上海哔哩哔哩科技有限公司 Playback method, server and the barrage play system of barrage based on streaming document
CN108200479B (en) * 2018-01-22 2020-02-28 上海哔哩哔哩科技有限公司 Bullet screen playing method, server and bullet screen playing system based on streaming document
CN109275014A (en) * 2018-09-13 2019-01-25 武汉斗鱼网络科技有限公司 A kind of method and mobile terminal linking barrage
CN111538601A (en) * 2020-04-14 2020-08-14 北京宝兰德软件股份有限公司 Webpage end communication method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN105373554A (en) Mobile device webpage based screen popup method and system
CN101599156B (en) A kind of showing advertisement methods, devices and systems
CN105578209B (en) Barrage display methods and device
CN101833570A (en) Method and device for optimizing page push of mobile terminal
CN101715104B (en) Network interaction reading system and method for user and content management
CN102314455A (en) Method and system for calculating click flow of web page
CN105975470B (en) Historical record processing method and device
CN103974057B (en) A kind of video quality user experience value assessment method, equipment and system
CN108256092A (en) Combined moving history in equipment
CN101609613A (en) Morphology tutoring system based on the panoramic intelligent scanning digital microtomy
CN104809116A (en) Method and device for collecting contents as well as terminal
CN103634736A (en) A hot news sharing method based on geographical information, an apparatus and a system
CN104394475A (en) Streaming media file playing method and media player
CN101657812A (en) System and method for displaying multimedia events scheduling information
CN110929183A (en) Data processing method, device and machine readable medium
CN104504096A (en) Cross-web information transmitting method and web browsing device
CN101354706A (en) Method and apparatus for collecting web page information
CN106055612A (en) Data paging display method and terminal equipment
US20140006918A1 (en) Method and system for web page rearrangement
CN103327036B (en) The identification method of internet browsing equipment and Cookie server
CN104426863B (en) A kind of page request method, page request device, transfer server and terminal
CN104869132A (en) Media resource sharing system, method and server set based on Internet
CN103793496A (en) Processing method and system of tile images
CN103577496A (en) Method and device for displaying E-mail
JP2008310654A (en) Contributed data management server device, contributed data management method, and contributed data management server program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
AD01 Patent right deemed abandoned
AD01 Patent right deemed abandoned

Effective date of abandoning: 20190409