CN106534905A - Method and system for intercommunication between video bullet screen live platform and bullet screen of third-party platform - Google Patents

Method and system for intercommunication between video bullet screen live platform and bullet screen of third-party platform Download PDF

Info

Publication number
CN106534905A
CN106534905A CN201611131729.8A CN201611131729A CN106534905A CN 106534905 A CN106534905 A CN 106534905A CN 201611131729 A CN201611131729 A CN 201611131729A CN 106534905 A CN106534905 A CN 106534905A
Authority
CN
China
Prior art keywords
barrage
platform
direct broadcasting
broadcasting room
party
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.)
Granted
Application number
CN201611131729.8A
Other languages
Chinese (zh)
Other versions
CN106534905B (en
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.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201611131729.8A priority Critical patent/CN106534905B/en
Publication of CN106534905A publication Critical patent/CN106534905A/en
Application granted granted Critical
Publication of CN106534905B publication Critical patent/CN106534905B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/254Management at additional data server, e.g. shopping server, rights management server
    • H04N21/2541Rights Management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/235Processing of additional data, e.g. scrambling of additional data or processing content descriptors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • H04N21/26613Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel for generating or managing keys in general

Abstract

The invention discloses a method and a system for intercommunication between a video bullet screen live platform and a bullet screen of a third-party platform. The method comprises the following steps of S1.constructing a distributed database with a plurality of nodes, hashing direct broadcasting rooms of the platform to various nodes of the distributed database and storing bullet screen contents into the distributed database in real time; S2.verifying validity of identity of the third-party platform and inputting call parameters through an API interface of the platform; S3.computing to obtain the node of the distributed database, which is corresponding to a direct broadcasting room number, according to the direct broadcasting room number and an Hash algorithm, and reading the bullet screen contents after a start time stamp for requesting the bullet screen from the node, wherein the number of the read bullet screen contents is not greater than the maximum number of the requested bullet screens; and S4.displaying on the third-party platform according to the read bullet screen contents. According to the method and the system, the intercommunication of the third-party platform can be realized, and the method and the system are easy to operate, expandable, high in real-time performance and high in security.

Description

A kind of method and system of the live platform of video barrage and third-party platform barrage intercommunication
Technical field
The present invention relates to net cast technical field, more particularly to a kind of live platform of video barrage and third-party platform bullet The method and system of curtain intercommunication.
Background technology
At present, the live industry of video barrage is like a raging fire develops.A kind of novelty that barrage has given what live intercommunication came Experience.Along with the hot development of net cast platform, many third-party platforms are wished by the live platform for having grown up To guide the development of oneself video live broadcast service, or bring participation other net cast barrages interactive to oneself platform user More easily approach is provided.For third-party platform, introduce during the demand which projects be live platform video content and Barrage, and the barrage that oneself platform is produced is presented on former live platform.For tackling this demand, the live platform of screen need to be carried For the scheme with third-party platform barrage intercommunication.
The content of the invention
The technical problem to be solved in the present invention is to be only limitted to respective live platform, nothing for barrage content in prior art Method carries out the defect of the 3rd platform barrage intercommunication, there is provided the side of a kind of live platform of video barrage and third-party platform barrage intercommunication Method and system.
The technical solution adopted for the present invention to solve the technical problems is:
The method that the present invention provides a kind of live platform of video barrage and third-party platform barrage intercommunication, including following step Suddenly:
S1, the distributed data base for building multiple nodes according to the barrage quantity of this platform, it is this is flat by hash algorithm The direct broadcasting room of platform is hashed in each node of distributed data base, when direct broadcasting room produces barrage, by barrage content real-time storage To in corresponding distributed data base;
The identity legitimacy of S2, checking third-party platform, allows third-party platform to access dividing for this platform after being verified Cloth data base, is input into call parameters by the api interface of this platform, and call parameters include:Direct broadcasting room number, request barrage are opened The maximum bar number of beginning timestamp and request barrage;
S3, the corresponding distributed data base node of the direct broadcasting room number is calculated according to direct broadcasting room number and hash algorithm, from Barrage content after the time started stamp of the node read requests barrage, and the bar number for reading no more than asks the maximum of barrage Bar number;
S4, according to read barrage content be shown on third-party platform.
Further, in step S1 of the invention, the concrete grammar of hash algorithm is:
The direct broadcasting room number of this platform is R, and the direct broadcasting room of this platform is numbered, and the distributed data base of this platform has K Individual node, any one direct broadcasting room number are n, 1≤n≤R;
By direct broadcasting room n divided by nodes K, its remainder g, 0≤g < K is taken, obtain the corresponding data base's section of the direct broadcasting room number Point m=g+1,1≤m≤K.
Further, verify in step S2 of the invention that the method for the identity legitimacy of third-party platform is specially:
By verifying that the token or key of third-party platform are judged to identity legitimacy, if token or the non-mistake of key Phase, and have permission, then judge that third-party platform identity is legal.
Further, after verifying in step S2 of the invention that identity legitimacy passes through, also include the tune to third-party platform The method limited with upper frequency limit, the method are specially:
The upper frequency limit of calling of third-party platform is limited to into 100 times/second, if exceed calling upper frequency limit, refuses the The data call request of tripartite's platform.
Further, after reading barrage content in step S3 of the invention, also include carrying out sensitive information to barrage content The method of filtration, the method are specially:
Whether sensitive information is contained in detection barrage content, if containing sensitive information in barrage content, to containing sensitive letter The barrage content of breath is filtered, and retains remaining barrage content.
Further, after reading barrage content in step S3 of the invention, also include carrying out advertising message to barrage content The method of filtration, the method are specially:
Whether advertising message is contained in detection barrage content, if containing advertising message in barrage content, to believing containing advertisement The barrage content of breath is filtered, and retains remaining barrage content;
If the advertising message quantity in barrage content exceedes threshold value, whole barrage contents of the direct broadcasting room are filtered.
Further, the method for the distributed data base for building multiple nodes in step S1 of the invention is specially:Prepare Multiple data bases, arrange the direct broadcasting room scope of each database node alignment processing, different to each database node distribution By distributed system, direct broadcasting room business, realizes that disparate databases process different business, and on disparate databases node Resource is isolated.
Further, build in step S1 of the invention multiple nodes distributed data base also include carrying out data it is standby Part and the method for dynamic capacity-expanding;
Backing up concrete operation method is:Periodically snapshot is carried out to each database node, the work provided using data itself The data that data base deposits are packaged into a file by tool or order, and copy this document is to another safe storage device On;
The concrete grammar of dynamic capacity-expanding is:If direct broadcasting room quantity increases, the corresponding database node that increases is to distributed type assemblies In.
Further, also include generating in step S2 of the invention the encryption method of token or key, the method is specially:
Distribute different key sk to different third-party platforms, in this platform maintenance portion private data, data content The mapping table of pid and its key sk is assumed to be for third-party platform ID;Third-party platform sends request every time, need to take pid, Present system time stabs t and encrypted algorithm for encryption pid, t, the encryption string pk after sk;When receiving request, this platform is obtained pid,t,pk;Sk is obtained according to the mapping table of pid, sk, the same AESs of Jing calculate pid, t, obtain result pk1, core after sk To which with pk whether;It is verified if the same, otherwise fails.
The system that the present invention provides a kind of live platform of video barrage and third-party platform barrage intercommunication, including:
Barrage distributed storage unit, for building the distributed data of multiple nodes according to the barrage quantity of this platform Storehouse, is hashed the direct broadcasting room of this platform in each node of distributed data base by hash algorithm, and direct broadcasting room produces barrage When, by barrage content real-time storage in corresponding distributed data base;
Platform safety dispensing unit, for verifying the identity legitimacy of third-party platform, allows third party after being verified The distributed data base of platform access this platform, is input into call parameters by the api interface of this platform, and call parameters include:Directly Between broadcasting number, the time started stamp of request barrage and ask the maximum bar number of barrage;
Barrage content reading unit, for being calculated corresponding point of the direct broadcasting room number according to direct broadcasting room number and hash algorithm Cloth database node, the barrage content from after the time started stamp of the node read requests barrage, and the bar number for reading is not More than the maximum bar number of request barrage;
Barrage content displaying unit, for being shown on third-party platform according to the barrage content for reading.
The beneficial effect comprise that:The live platform of video barrage of the present invention and third-party platform barrage intercommunication A kind of method and system, there is provided third-party platform of easy-operating, distributed, extendible capacity, high real-time, high security The method of barrage intercommunication;The method adopts distributed system structure, can tackle the scene of mass data and high concurrent;It is each to take Business module can tackle calmly data volume explosive growth with dynamic capacity-expanding;The method has higher real-time, strengthens user's body Test;And the safety measure by enriching, prevent Ben Pingtaiyin a variety of causes from bringing loss.
Description of the drawings
Below in conjunction with drawings and Examples, the invention will be further described, in accompanying drawing:
Fig. 1 is the method flow diagram of the embodiment of the present invention;
Fig. 2 is the offer barrage of the embodiment of the present invention to third-party flow chart;
Fig. 3 is the flow chart of access third party's barrage of the embodiment of the present invention.
Specific embodiment
In order that the objects, technical solutions and advantages of the present invention become more apparent, it is below in conjunction with drawings and Examples, right The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, not For limiting the present invention.
As shown in figure 1, the live platform of video barrage of the embodiment of the present invention and the method for third-party platform barrage intercommunication, wrap Include following steps:
S1, the distributed data base for building multiple nodes according to the barrage quantity of this platform, it is this is flat by hash algorithm The direct broadcasting room of platform is hashed in each node of distributed data base, when direct broadcasting room produces barrage, by barrage content real-time storage To in corresponding distributed data base;
Prepare N number of data base (DB1, DB2, DB3...DBN), design the direct broadcasting room scope that each database node is processed. For example, the live number direct broadcasting room for 1-100 is mapped to BD1 nodes to be stored, direct broadcasting room 101-200 is mapped to DB2 nodes Carry out storing etc..Distribute different direct broadcasting room business to each database node, make use of the advantage of distributed system, it is different The different business of database processing.Ensure that certain load equilibrium.Also ensure that certain resource isolation, different nodes On direct broadcasting room business, will not be affected by direct broadcasting room on other nodes.
The distributed data base for building multiple nodes also needs to back up data and dynamic capacity-expanding:1st, back up concrete behaviour Make method for periodically snapshot being carried out to each database node, be more specifically the instrument that provided using data itself or order The data that data base deposits can be packaged into a file, copy this document is in another comparatively safe storage device. During preventing database corruption from can not recover, data all lose the loss of coming.2nd, the concrete grammar of dynamic capacity-expanding is, if live Between quantity increase, such as former direct broadcasting room scope is 1-10000, will now increase 10001-10100 direct broadcasting rooms, it is only necessary to corresponding to increase Plus 1 database node is in distributed type assemblies, its alignment processing 10001-10100 direct broadcasting room is allowed.Dynamic expansion can be completed Hold.Additionally, if certain node amount of storage is excessive, such as No. 1-100 live barrage amount is excessive, can also be further added by a node processing 51-100 direct broadcasting rooms, origin node process 1-50 direct broadcasting rooms.Dynamic capacity-expanding can be completed.
The identity legitimacy of S2, checking third-party platform, allows third-party platform to access dividing for this platform after being verified Cloth data base, is input into call parameters by the api interface of this platform, and call parameters include:Direct broadcasting room number, request barrage are opened The maximum bar number of beginning timestamp and request barrage;
The encryption method for generating token or key is specially:Distribute different key sk to different third parties first, such as This can be in this platform maintenance portion private data, and data content is that third-party platform ID is assumed to be reflecting for pid and its key sk Firing table.Hereafter third party sends request every time, it is stipulated that must take pid, present system time stamp t, and encrypted algorithm (example Such as public algorithm md5, other algorithms also may be selected.But algorithm is needed with the characteristic that inversely can not be calculated) encryption pid, t, sk Encryption string pk afterwards.When receiving request, this platform obtains pid, t, pk.According to above-mentioned private data, (pid, sk's reflects for meeting Firing table) sk is obtained, with pk whether then Jing same AES pid, t, obtains pk1 after sk, check which.Test if the same Card passes through, and otherwise fails.
S3, the corresponding distributed data base node of the direct broadcasting room number is calculated according to direct broadcasting room number and hash algorithm, from Barrage content after the time started stamp of the node read requests barrage, and the bar number for reading no more than asks the maximum of barrage Bar number;
S4, according to read barrage content be shown on third-party platform.
In step S1, the concrete grammar of hash algorithm is:
The direct broadcasting room number of this platform is R, and the direct broadcasting room of this platform is numbered, and the distributed data base of this platform has K Individual node, any one direct broadcasting room number are n, 1≤n≤R;
By direct broadcasting room n divided by nodes K, its remainder g, 0≤g < K is taken, obtain the corresponding data base's section of the direct broadcasting room number Point m=g+1,1≤m≤K.
Verify in step S2 that the method for the identity legitimacy of third-party platform is specially:
By verifying that the token or key of third-party platform are judged to identity legitimacy, if token or the non-mistake of key Phase, and have permission, then judge that third-party platform identity is legal.
After verifying in step S2 that identity legitimacy passes through, also include limiting the upper frequency limit of calling of third-party platform Method, the method is specially:
The upper frequency limit of calling of third-party platform is limited to into 100 times/second, if exceed calling upper frequency limit, refuses the The data call request of tripartite's platform.
After barrage content is read in step S3, the method for also including carrying out sensitive information filtration to barrage content, the method Specially:
Whether sensitive information is contained in detection barrage content, if containing sensitive information in barrage content, to containing sensitive letter The barrage content of breath is filtered, and retains remaining barrage content.
After barrage content is read in step S3, the method for also including carrying out advertising message filtration to barrage content, the method Specially:
Whether advertising message is contained in detection barrage content, if containing advertising message in barrage content, to believing containing advertisement The barrage content of breath is filtered, and retains remaining barrage content;
If the advertising message quantity in barrage content exceedes threshold value, whole barrage contents of the direct broadcasting room are filtered.
The live platform of video barrage of the embodiment of the present invention and the system of third-party platform barrage intercommunication, including:
Barrage distributed storage unit, for building the distributed data of multiple nodes according to the barrage quantity of this platform Storehouse, is hashed the direct broadcasting room of this platform in each node of distributed data base by hash algorithm, and direct broadcasting room produces barrage When, by barrage content real-time storage in corresponding distributed data base;
Platform safety dispensing unit, for verifying the identity legitimacy of third-party platform, allows third party after being verified The distributed data base of platform access this platform, is input into call parameters by the api interface of this platform, and call parameters include:Directly Between broadcasting number, the time started stamp of request barrage and ask the maximum bar number of barrage;
Barrage content reading unit, for being calculated corresponding point of the direct broadcasting room number according to direct broadcasting room number and hash algorithm Cloth database node, the barrage content from after the time started stamp of the node read requests barrage, and the bar number for reading is not More than the maximum bar number of request barrage;
Barrage content displaying unit, for being shown on third-party platform according to the barrage content for reading.
In another specific embodiment of the present invention:
As shown in Figure 2, there is provided barrage specifically includes following steps to third-party implementation method:
(1) this platform direct broadcasting room is numbered into 1,2,3...R.User enters the direct broadcasting room of this platform, it is assumed which is live Between numbering be n.This barrage will be supplied to third party to be obtained by subsequent step when this direct broadcasting room sends out barrage by user.
(2) some data bases are prepared according to the barrage quantity of this platform, it is assumed that have K data base.
(3) hash algorithm is designed, R direct broadcasting room is hashed on K data base.For example by direct broadcasting room n divided by K (R%K takes its remainder with R divided by K) obtains result g (0<=g<K), then obtain corresponding database node m=g+1 (1<= m<=K).
(4) when hereafter having been enter into user's transmission barrage of direct broadcasting room n, by real-time write into Databasce node m.
(5) offer third-party platform is called and pulls barrage Distributed Services cluster, and specifically cluster provides the API of web Interface.Clustered node sum is Q.When third party needs to obtain this platform barrage, then filling call parameters are called into the interface. Invoked procedure can realize load balancing using dns resolution (a kind of technology that domain name is transformed into IP).
(6) it is direct broadcasting room a, the barrage time started stamp t of request that third party needs the major parameter for providing, and asks barrage The c such as maximum bar number, and as the token (or key) of checking third-party platform identity legitimacy.This platform is received and is called When, by the legitimacy of certificate parameter.For example, verify a whether between 1-R, t whether scopes within past 10 minutes, c Whether between 1-1000, whether token is expired, if limited etc..
(7) in addition, for preventing the situation that third party token (or key) is revealed or third-party platform is attacked, limit Single platform processed calls upper frequency limit (depending on actually situation is enlivened, can typically arrange 100 times/second).Call frequency mistake High then direct refusal services to guarantee that service load is normal.
(8) after being verified, using the hash algorithm in step (3), the corresponding database nodes of direct broadcasting room a are calculated b.Bullet needed for reading is returned response to third party's caller.There is provided with greetings barrage to complete to third party's flow process.
Summarize:The method that barrage is provided to the 3rd is easily understood, it is easy to accomplish.The reality of distributed type assemblies is taken into account simultaneously again It is existing, it is to avoid the impact that high concurrent amount is brought.In addition it is contemplated that under various abnormal conditions whole system safety.
As shown in figure 3, accessing third-party barrage implementation method specifically includes following steps:
(1) some data bases are prepared according to the barrage quantity of this platform, it is assumed that have K data base.
(2) hash algorithm is designed, R direct broadcasting room is hashed on K data base.For example by direct broadcasting room n divided by K (R%K takes its remainder with R divided by K) obtains result g (0<=g<K), then obtain corresponding database node m=g+1 (1<= m<=K).
(3) third-party platform is provided and calls upload barrage Distributed Services cluster, specifically cluster provides the API of web Interface.Clustered node sum is Q.
(4) third-party platform caller calls above-mentioned interface to need to provide parameter, mainly includes direct broadcasting room a, sends out barrage Pet name and barrage content of person etc., third-party platform numbering h, and as the token of checking third-party platform identity legitimacy (or key).
(5) legitimacy verifies after this platform is received and called to parameter area.Main checking includes token's (or key) Whether correctness, expired, whether, in illegal scope 1-R, content is long etc. for the pet name and barrage for a.
(6) while for preventing the situation that third party token (or key) is revealed or third-party platform is attacked, limiting single Platform calls upper frequency limit (depending on actually situation is enlivened, can typically arrange 100 times/second).Call frequency too high directly Refusal service.
(7) in the distributed experiment & measurement system described the real-time write step of the barrage (1) for uploading after being verified.
(8) distributed third party's barrage service cluster is provided, be responsible for third party being pulled from above-mentioned data-base cluster in real time The barrage of upload.Clustered node number is determined according to actual barrage amount.Generally use 2 to backup each other, it is to avoid single-point Failure.
(9) third party's barrage service inspection upload content whether (user's pet name and barrage content) sensitive information (swear at people, color The information such as feelings, violence, politics), filter the record of the upload containing illegal contents.
(10) the transmission barrage for arranging specific (or whole) third-party platform in third party's barrage service is limited, for example really Recognize certain third-party platform barrage and contain mass advertising information, can individually filter whole barrages of the platform.Some can also be set Direct broadcasting room does not allow third-party platform barrage to access, and filters arranging herein.
(11) finally the barrage that can be accessed is sent to the barrage access service of this platform.Complete follow-up barrage and show work( Energy.
Summarize:The method for receiving the 3rd upload barrage is easily understood, it is easy to accomplish.Distributed type assemblies are taken into account again simultaneously Realize, it is to avoid the impact that high concurrent amount is brought.In addition it is contemplated that under various abnormal conditions whole system safety.
It should be appreciated that for those of ordinary skills, can be improved according to the above description or be converted, And all these modifications and variations should all belong to the protection domain of claims of the present invention.

Claims (10)

1. the method for a kind of live platform of video barrage and third-party platform barrage intercommunication, it is characterised in that comprise the following steps:
S1, the distributed data base for building multiple nodes according to the barrage quantity of this platform, by hash algorithm by this platform Direct broadcasting room is hashed in each node of distributed data base, when direct broadcasting room produces barrage, by barrage content real-time storage to right In the distributed data base answered;
The identity legitimacy of S2, checking third-party platform, allows third-party platform to access the distributed of this platform after being verified Data base, is input into call parameters by the api interface of this platform, and call parameters include:When direct broadcasting room number, the beginning of request barrage Between stamp and ask barrage maximum bar number;
S3, the corresponding distributed data base node of the direct broadcasting room number is calculated according to direct broadcasting room number and hash algorithm, from the section Barrage content after the time started stamp of point read requests barrage, and the bar number for reading no more than asks the maximum bar of barrage Number;
S4, according to read barrage content be shown on third-party platform.
2. the method for the live platform of video barrage according to claim 1 and third-party platform barrage intercommunication, its feature exist In in step S1, the concrete grammar of hash algorithm is:
The direct broadcasting room number of this platform is R, and the direct broadcasting room of this platform is numbered, and the distributed data base of this platform has K section Point, any one direct broadcasting room number are n, 1≤n≤R;
By direct broadcasting room n divided by nodes K, its remainder g, 0≤g < K is taken, obtain the corresponding database node m of the direct broadcasting room number =g+1,1≤m≤K.
3. the method for the live platform of video barrage according to claim 1 and third-party platform barrage intercommunication, its feature exist In in step S2, the method for the identity legitimacy of checking third-party platform is specially:
By verifying that the token or key of third-party platform are judged to identity legitimacy, if token or key are not out of date, and Have permission, then judge that third-party platform identity is legal.
4. the method for the live platform of video barrage according to claim 1 and third-party platform barrage intercommunication, its feature exist In, after verifying that identity legitimacy passes through in step S2, also including calling the side limited by upper frequency limit to third-party platform Method, the method are specially:
The upper frequency limit of calling of third-party platform is limited to into 100 times/second, if exceed calling upper frequency limit, refuses third party The data call request of platform.
5. the method for the live platform of video barrage according to claim 1 and third-party platform barrage intercommunication, its feature exist In, after reading barrage content in step S3, the method for also including carrying out sensitive information filtration to barrage content, the method are concrete For:
Whether sensitive information is contained in detection barrage content, if containing sensitive information in barrage content, to containing sensitive information Barrage content is filtered, and retains remaining barrage content.
6. the method for the live platform of video barrage according to claim 1 and third-party platform barrage intercommunication, its feature exist In, after reading barrage content in step S3, the method for also including carrying out advertising message filtration to barrage content, the method are concrete For:
Whether advertising message is contained in detection barrage content, if containing advertising message in barrage content, to containing advertising message Barrage content is filtered, and retains remaining barrage content;
If the advertising message quantity in barrage content exceedes threshold value, whole barrage contents of the direct broadcasting room are filtered.
7. the method for the live platform of video barrage according to claim 1 and third-party platform barrage intercommunication, its feature exist In the method for building the distributed data base of multiple nodes in step S1 is specially:Prepare multiple data bases, each data is set The direct broadcasting room scope of storehouse node alignment processing, distributes different direct broadcasting room business to each database node, by distributed system System realizes that disparate databases process different business, and the resource on disparate databases node is isolated.
8. the method for the live platform of video barrage according to claim 1 and third-party platform barrage intercommunication, its feature exist In, build in step S1 multiple nodes distributed data base also include backing up data and dynamic capacity-expanding method;
Backing up concrete operation method is:Periodically carry out snapshot to each database node, using data itself provide instrument or The data that data base deposits are packaged into a file by person's order, and copy this document is in another safe storage device;
The concrete grammar of dynamic capacity-expanding is:If direct broadcasting room quantity increases, the corresponding database node that increases is in distributed type assemblies.
9. the method for the live platform of video barrage according to claim 3 and third-party platform barrage intercommunication, its feature exist In, also including generating in step S2 the encryption method of token or key, the method is specially:
Distribute different key sk to different third-party platform, in this platform maintenance portion private data, data content is the Tripartite platform ID is assumed to be the mapping table of pid and its key sk;Third-party platform sends request every time, needs to take pid, current System timestamp t and encrypted algorithm for encryption pid, t, the encryption string pk after sk;When receiving request, this platform obtains pid, t,pk;Sk is obtained according to the mapping table of pid, sk, and the same AESs of Jing calculate pid, t, obtain result pk1, which is checked after sk With pk whether;It is verified if the same, otherwise fails.
10. the system of a kind of live platform of video barrage and third-party platform barrage intercommunication, it is characterised in that include:
Barrage distributed storage unit, for building the distributed data base of multiple nodes according to the barrage quantity of this platform, leads to Cross hash algorithm to hash the direct broadcasting room of this platform in each node of distributed data base, when direct broadcasting room produces barrage, will Barrage content real-time storage is in corresponding distributed data base;
Platform safety dispensing unit, for verifying the identity legitimacy of third-party platform, allows third-party platform after being verified The distributed data base of this platform is accessed, call parameters are input into by the api interface of this platform, call parameters include:Direct broadcasting room Number, request barrage time started stamp and ask barrage maximum bar number;
Barrage content reading unit, it is corresponding distributed for being calculated the direct broadcasting room number according to direct broadcasting room number and hash algorithm Database node, the barrage content from after the time started stamp of the node read requests barrage, and the bar number for reading are not more than The maximum bar number of request barrage;
Barrage content displaying unit, for being shown on third-party platform according to the barrage content for reading.
CN201611131729.8A 2016-12-09 2016-12-09 A kind of method and system of the live streaming of video barrage platform and the intercommunication of third-party platform barrage Active CN106534905B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611131729.8A CN106534905B (en) 2016-12-09 2016-12-09 A kind of method and system of the live streaming of video barrage platform and the intercommunication of third-party platform barrage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611131729.8A CN106534905B (en) 2016-12-09 2016-12-09 A kind of method and system of the live streaming of video barrage platform and the intercommunication of third-party platform barrage

Publications (2)

Publication Number Publication Date
CN106534905A true CN106534905A (en) 2017-03-22
CN106534905B CN106534905B (en) 2019-08-02

Family

ID=58342878

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611131729.8A Active CN106534905B (en) 2016-12-09 2016-12-09 A kind of method and system of the live streaming of video barrage platform and the intercommunication of third-party platform barrage

Country Status (1)

Country Link
CN (1) CN106534905B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108322807A (en) * 2018-02-24 2018-07-24 武汉斗鱼网络科技有限公司 A kind of barrage methods of exhibiting and device
CN108418743A (en) * 2018-01-16 2018-08-17 北京奇艺世纪科技有限公司 A kind of chatroom message distributing method, device and electronic equipment
CN108769718A (en) * 2018-04-10 2018-11-06 武汉斗鱼网络科技有限公司 A kind of barrage verification method, computer equipment and storage medium
CN108769719A (en) * 2018-04-10 2018-11-06 武汉斗鱼网络科技有限公司 A kind of barrage verification method, computer equipment and storage medium
CN108769720A (en) * 2018-04-10 2018-11-06 武汉斗鱼网络科技有限公司 A kind of barrage verification method, computer equipment and storage medium
CN111263173A (en) * 2020-01-09 2020-06-09 安徽文香信息技术有限公司 Data resource adding method and device
CN112449206A (en) * 2019-09-05 2021-03-05 北京达佳互联信息技术有限公司 Data transmission method and device, electronic equipment and storage medium
CN114501082A (en) * 2022-02-16 2022-05-13 上海哔哩哔哩科技有限公司 Live broadcast room distribution method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090217149A1 (en) * 2008-02-08 2009-08-27 Mind-Alliance Systems, Llc. User Extensible Form-Based Data Association Apparatus
CN103778168A (en) * 2012-10-26 2014-05-07 北京华购网络技术有限公司 Full website commenting, comment query method and device and system thereof
CN104079538A (en) * 2013-03-28 2014-10-01 清华大学 Microblog aggregation method and system supporting cross-platform interaction
CN105491458A (en) * 2015-11-27 2016-04-13 武汉斗鱼网络科技有限公司 Optimization method for speaking time of barrage in live website
CN105791443A (en) * 2016-05-13 2016-07-20 武汉斗鱼网络科技有限公司 Distributed cluster-based user service providing system and method applied to live broadcast websites
CN105872582A (en) * 2016-06-07 2016-08-17 武汉斗鱼网络科技有限公司 Live commenting saving method and device for live video
CN106101851A (en) * 2016-07-01 2016-11-09 上海幻电信息科技有限公司 The overall implementation method of a kind of barrage service and network structure thereof
CN106162296A (en) * 2015-03-27 2016-11-23 天脉聚源(北京)科技有限公司 A kind of method and system playing barrage

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090217149A1 (en) * 2008-02-08 2009-08-27 Mind-Alliance Systems, Llc. User Extensible Form-Based Data Association Apparatus
CN103778168A (en) * 2012-10-26 2014-05-07 北京华购网络技术有限公司 Full website commenting, comment query method and device and system thereof
CN104079538A (en) * 2013-03-28 2014-10-01 清华大学 Microblog aggregation method and system supporting cross-platform interaction
CN106162296A (en) * 2015-03-27 2016-11-23 天脉聚源(北京)科技有限公司 A kind of method and system playing barrage
CN105491458A (en) * 2015-11-27 2016-04-13 武汉斗鱼网络科技有限公司 Optimization method for speaking time of barrage in live website
CN105791443A (en) * 2016-05-13 2016-07-20 武汉斗鱼网络科技有限公司 Distributed cluster-based user service providing system and method applied to live broadcast websites
CN105872582A (en) * 2016-06-07 2016-08-17 武汉斗鱼网络科技有限公司 Live commenting saving method and device for live video
CN106101851A (en) * 2016-07-01 2016-11-09 上海幻电信息科技有限公司 The overall implementation method of a kind of barrage service and network structure thereof

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108418743A (en) * 2018-01-16 2018-08-17 北京奇艺世纪科技有限公司 A kind of chatroom message distributing method, device and electronic equipment
CN108418743B (en) * 2018-01-16 2020-10-02 北京奇艺世纪科技有限公司 Chat room message distribution method and device and electronic equipment
CN108322807A (en) * 2018-02-24 2018-07-24 武汉斗鱼网络科技有限公司 A kind of barrage methods of exhibiting and device
CN108769719A (en) * 2018-04-10 2018-11-06 武汉斗鱼网络科技有限公司 A kind of barrage verification method, computer equipment and storage medium
CN108769720A (en) * 2018-04-10 2018-11-06 武汉斗鱼网络科技有限公司 A kind of barrage verification method, computer equipment and storage medium
CN108769718A (en) * 2018-04-10 2018-11-06 武汉斗鱼网络科技有限公司 A kind of barrage verification method, computer equipment and storage medium
CN108769720B (en) * 2018-04-10 2020-10-16 武汉斗鱼网络科技有限公司 Barrage verification method, computer equipment and storage medium
CN108769719B (en) * 2018-04-10 2020-12-15 武汉斗鱼网络科技有限公司 Barrage verification method, computer equipment and storage medium
CN112449206A (en) * 2019-09-05 2021-03-05 北京达佳互联信息技术有限公司 Data transmission method and device, electronic equipment and storage medium
CN111263173A (en) * 2020-01-09 2020-06-09 安徽文香信息技术有限公司 Data resource adding method and device
CN111263173B (en) * 2020-01-09 2021-10-19 安徽文香信息技术有限公司 Data resource adding method and device
CN114501082A (en) * 2022-02-16 2022-05-13 上海哔哩哔哩科技有限公司 Live broadcast room distribution method and device
CN114501082B (en) * 2022-02-16 2023-10-27 上海哔哩哔哩科技有限公司 Live broadcast room distribution method and device

Also Published As

Publication number Publication date
CN106534905B (en) 2019-08-02

Similar Documents

Publication Publication Date Title
CN106534905B (en) A kind of method and system of the live streaming of video barrage platform and the intercommunication of third-party platform barrage
CN107169765B (en) Method for dynamically adjusting block chain consensus based on business trust
CN111556120B (en) Data processing method and device based on block chain, storage medium and equipment
CN109766673A (en) A kind of alliance&#39;s formula audio-video copyright block catenary system and audio-video copyright cochain method
US9178708B2 (en) Non-deterministic time systems and methods
US20190342382A1 (en) Method and electronic device for supporting artificial participation in decision-making of blockchain
CN109376528A (en) A kind of trusted identity management system and method based on block chain
CN106254078A (en) The Internet evidence collecting method, device and the Internet safety system
JP2008250369A (en) Management method of secrete data file, management system and proxy server therefor
CN107196951A (en) The implementation method and firewall system of a kind of HDFS systems fire wall
US20090319405A1 (en) Auditing system and auditing method
CN109242404B (en) Resume information management method, resume information management device, computer equipment and readable storage medium
CN106648903A (en) Method and system for calling distributed file system
WO2020233149A1 (en) Method, apparatus and device for timing authentication in blockchain account book
CN107613316A (en) A kind of network direct broadcasting plug-flow verification method and system
CN112883117A (en) Data synchronization method, equipment and computer readable storage medium
CN110866261A (en) Data processing method and device based on block chain and storage medium
CN107451459A (en) The method and apparatus verified using picture validation code
CN106454767A (en) Business data synchronization method, device and system
CN109783595B (en) Routing and distribution method of loose sliced map service
WO2020085226A1 (en) Control method, content management system, program, and data structure
CN105302490B (en) Date storage method
KR102167026B1 (en) CCTV video storage system and method using block-chain
KR102280505B1 (en) System and method for providing authenticity and integrity of electronic document
CN108900869B (en) Communication group information encryption and decryption method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant