CN109451335A - A kind of method that Java realizes storage video audience ratings - Google Patents
A kind of method that Java realizes storage video audience ratings Download PDFInfo
- Publication number
- CN109451335A CN109451335A CN201811599137.8A CN201811599137A CN109451335A CN 109451335 A CN109451335 A CN 109451335A CN 201811599137 A CN201811599137 A CN 201811599137A CN 109451335 A CN109451335 A CN 109451335A
- Authority
- CN
- China
- Prior art keywords
- message
- data
- java
- method described
- function
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/454—Content or additional data filtering, e.g. blocking advertisements
- H04N21/4542—Blocking scenes or portions of the received content, e.g. censoring scenes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management 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/258—Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
- H04N21/25866—Management of end-user data
- H04N21/25891—Management of end-user data being end-user preferences
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/44213—Monitoring of end-user related data
- H04N21/44218—Detecting physical presence or behaviour of the user, e.g. using sensors to detect if the user is leaving the room or changes his face expression during a TV program
Abstract
The present invention provides a kind of method that Java realizes storage video audience ratings, belong to and is related to java applet design field, the present invention passes through Java filter, message-oriented middleware, database fastening means etc., it realizes the functions such as request data intercepts, queue message is sent and reception, data parse, and then the audience rating data after arrangement is stored into database.
Description
Technical field
The present invention relates to the sides that java applet design field more particularly to a kind of Java realize storage video audience ratings
Method.
Background technique
During Project-developing, such a demand is encountered.Client wants the live streaming for watching user on the set-top box
The user behaviors such as channel, program request film are stored to database, when channels/programs, viewing start time including viewing, viewing
Length, User ID, viewing type etc..
Since apk has issued online version, it will not go that back office interface is actively adjusted to store, can only want to do in server end
Method storing data.
Open source technology brief introduction:
Filter: Java filter can request to target resource and response intercept, thus realize it is some special
Function.Such as it realizes the other right access control of URL level, filter some Premium Features such as sensitive vocabulary, compression response message.
Message-oriented middleware: message queue (MQ) is a kind of communication means of application program to application program.Message transmission refers to
Be between program by the message send data communicated.Queuing refers to application program by queue to communicate.Team
The use of column, which eliminates, sends and receivees the requirement that application program is performed simultaneously.
Mongo database: MongoDB is the database based on distributed document storage.The data structure that it is supported
It is very loose, it is the bjson format of similar json, therefore can store more complicated data type.
If solving an existing issue on the contrary most suitable selection by the above open source technology.
Summary of the invention
In order to solve the above technical problems, containing the invention proposes a kind of method that Java realizes storage video audience ratings
Cover the functions such as Java filter, Apache activemq message queue, audience rating data storage.
The technical scheme is that
A kind of method that Java realizes storage video audience ratings, is connected by Java filter, message-oriented middleware, database
Tool etc. realizes that request data intercepts, queue message is sent and receives, the functions such as data parsing, and then by the rating after arrangement
Rate data are stored into database.
Further,
By Java filter intercept set-top box requests video source url, then parse url obtain User ID, program ID,
The information such as viewing time, viewing type, then true video source url is returned to set-top box by redirecting.
In order to avoid storage audience rating data time-consuming influences user's viewing experience, and then message-oriented middleware is introduced, is used for team
Storing data work relatively time-consuming in this way is placed on backstage and executed, with mongo database purchase by the transmission and reception of column message
Data.
Main operational steps are as follows:
1, using written in Java filter function.The function can realize the video source url for intercepting set-top box requests, and reset
To arrive correct video source url.
2, using written in Java data analytical function.The function can realize the url that analyzing step 1 is intercepted, and obtain user
The information such as ID, program ID, viewing time, viewing type, and it is assembled into entity class.
3, using written in Java data storage function.The function is used to the assembled good entity class of step 2 pressing specified format
It stores in mongo database.
4, Apache activemq message-oriented middleware is integrated, sender of the message and message consumer, sender of the message are defined
For sending message queue for the entity class after assembly in step 2, the data-message that message consumer is responsible for receive makes
It is stored with the method for step 3.
Detailed description of the invention
Fig. 1 is workflow schematic diagram of the invention.
Specific embodiment
More detailed elaboration is carried out to the contents of the present invention below:
Main operational steps of the present invention are as follows:
1, using written in Java filter function.The function can realize the video source url for intercepting set-top box requests, and reset
To arrive correct video source url.
2, using written in Java data analytical function.The function can realize the url that analyzing step 1 is intercepted, and obtain user
The information such as ID, program ID, viewing time, viewing type, and it is assembled into entity class.
3, using written in Java data storage function.The function is used to the assembled good entity class of step 2 pressing specified format
It stores in mongo database.
4, Apache activemq message-oriented middleware is integrated, sender of the message and message consumer, sender of the message are defined
For sending message queue for the entity class after assembly in step 2, the data-message that message consumer is responsible for receive makes
It is stored with the method for step 3.
Specific code is realized:
1, filter
2, data analytical function
3, data storage function
4, sender of the message
5, message consumer
Embodiment described above, only one kind of the specific embodiment of the invention, those skilled in the art is in this hair
The usual variations and alternatives carried out in bright technical proposal scope should be all included within the scope of the present invention.
Claims (9)
1. a kind of method that Java realizes storage video audience ratings, which is characterized in that
Mainly by Java filter, message-oriented middleware, database fastening means, realize that request data intercepts, queue message is sent out
It send and receives, data parsing function, and then the audience rating data after arrangement is stored into database.
2. the method according to claim 1, wherein
The video source url of set-top box requests is intercepted by Java filter, is then parsed url and is obtained User ID, program ID, viewing
Time, viewing type, then true video source url is returned to set-top box by redirecting.
3. according to the method described in claim 2, it is characterized in that,
In order to avoid storage audience rating data time-consuming influences user's viewing experience, and then message-oriented middleware is introduced, disappeared for queue
Storing data work relatively time-consuming in this way is placed on backstage and executed, with mongo database purchase number by the transmission and reception of breath
According to.
4. according to the method described in claim 3, it is characterized in that,
Key step is as follows:
1), using written in Java filter function, which realizes the video source url for intercepting set-top box requests, and is redirected to
Correct video source url;
2), using written in Java data analytical function, which realizes analyzing step 1) url that intercepts, obtain User ID, section
Mesh ID, viewing time, viewing type, and it is assembled into entity class;
3), using written in Java data storage function, which is used to deposit the assembled good entity class of step 2) by specified format
It stores up in mongo database;
4) Apache activemq message-oriented middleware, is integrated, sender of the message and message consumer are defined, sender of the message uses
In sending message queue for the entity class after assembly in step 2), message consumer is responsible for using the data-message received
The method of step 3 stores.
5. according to the method described in claim 4, it is characterized in that, the filter function code is as follows:
6. according to the method described in claim 4, it is characterized in that,
The data analytical function code is as follows
7. according to the method described in claim 4, it is characterized in that,
The data storage function
8. according to the method described in claim 4, it is characterized in that,
Sender of the message's code is as follows
9. according to the method described in claim 4, it is characterized in that,
Message consumer's code is as follows:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811599137.8A CN109451335A (en) | 2018-12-26 | 2018-12-26 | A kind of method that Java realizes storage video audience ratings |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811599137.8A CN109451335A (en) | 2018-12-26 | 2018-12-26 | A kind of method that Java realizes storage video audience ratings |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109451335A true CN109451335A (en) | 2019-03-08 |
Family
ID=65535677
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811599137.8A Pending CN109451335A (en) | 2018-12-26 | 2018-12-26 | A kind of method that Java realizes storage video audience ratings |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109451335A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112653927A (en) * | 2020-12-17 | 2021-04-13 | 杭州当虹科技股份有限公司 | System for counting video playing times in real time |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20070013389A (en) * | 2005-07-26 | 2007-01-31 | 주식회사 제프정보기술 | System and method to collect audience information using interactive digital broadcasting middleware |
CN102447943A (en) * | 2010-10-13 | 2012-05-09 | 康佳集团股份有限公司 | Network television server and program ratings counting method thereof |
CN103617287A (en) * | 2013-12-12 | 2014-03-05 | 用友软件股份有限公司 | Log management method and device in distributed environment |
CN103647794A (en) * | 2013-12-31 | 2014-03-19 | 北京启明星辰信息安全技术有限公司 | Data correlation method based on J2EE platform and correlation plug-in |
CN106469202A (en) * | 2016-08-31 | 2017-03-01 | 杭州探索文化传媒有限公司 | A kind of data analysing method of video display big data platform |
CN104219547B (en) * | 2014-09-28 | 2018-02-23 | 浪潮软件集团有限公司 | Method for realizing real-time audience rating statistics of set top box based on SignalR technology |
-
2018
- 2018-12-26 CN CN201811599137.8A patent/CN109451335A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20070013389A (en) * | 2005-07-26 | 2007-01-31 | 주식회사 제프정보기술 | System and method to collect audience information using interactive digital broadcasting middleware |
CN102447943A (en) * | 2010-10-13 | 2012-05-09 | 康佳集团股份有限公司 | Network television server and program ratings counting method thereof |
CN103617287A (en) * | 2013-12-12 | 2014-03-05 | 用友软件股份有限公司 | Log management method and device in distributed environment |
CN103647794A (en) * | 2013-12-31 | 2014-03-19 | 北京启明星辰信息安全技术有限公司 | Data correlation method based on J2EE platform and correlation plug-in |
CN104219547B (en) * | 2014-09-28 | 2018-02-23 | 浪潮软件集团有限公司 | Method for realizing real-time audience rating statistics of set top box based on SignalR technology |
CN106469202A (en) * | 2016-08-31 | 2017-03-01 | 杭州探索文化传媒有限公司 | A kind of data analysing method of video display big data platform |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112653927A (en) * | 2020-12-17 | 2021-04-13 | 杭州当虹科技股份有限公司 | System for counting video playing times in real time |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3468177B1 (en) | Receiver, reception method, program and information processing system | |
KR102033809B1 (en) | Reception device, reception method, and program | |
US10986397B2 (en) | Reception apparatus, transmission apparatus, and data processing method | |
US9003032B2 (en) | Video aware pages | |
US7904929B1 (en) | Log entries | |
US9420027B1 (en) | Systems and methods of communicating platform-independent representation of source code | |
KR20130009745A (en) | System and method for publishing content on the internet | |
US20170026681A9 (en) | Notice-based digital video recording system and method | |
CN109521956B (en) | Cloud storage method, device, equipment and storage medium based on block chain | |
US20110239263A1 (en) | Method and apparatus for receiving non-real time content included in real time broadcasting signal | |
WO2021101934A1 (en) | Adaptive broadcast media and data services | |
US20110239251A1 (en) | Electronic Program Guide Generation | |
EP2782335A1 (en) | Terminal device, server device, information processing method, program, and collaborative application supply system | |
US9277257B1 (en) | Automatic video service actions based on social networking affinity relationships | |
US9607084B2 (en) | Assigning a single master identifier to all related content assets | |
KR20210058791A (en) | System and method for providing cloud based user interfaces | |
US9569624B1 (en) | Recording third party content to a primary service provider digital video recorder or other storage medium | |
KR100924646B1 (en) | System and method for providing individual broadcasting service using iptv | |
KR101821603B1 (en) | Method for providing customized advertisement/news on scalable application service system | |
CN109451335A (en) | A kind of method that Java realizes storage video audience ratings | |
US8983275B2 (en) | Systems, methods, and apparatus for recording time delayed broadband content | |
CN114040232A (en) | Screen projection system, method, electronic device and storage medium | |
KR101597843B1 (en) | Content management that addresses levels of functionality | |
US8693838B1 (en) | Digital video recording (“DVR”) data exchange systems and methods | |
KR101076587B1 (en) | Method for obtaining content selectively using service guide delivered through broadcast network, and device using the same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190308 |
|
RJ01 | Rejection of invention patent application after publication |