CN103428525B - Internet video and the online query of TV programme and control method for playing back and system - Google Patents

Internet video and the online query of TV programme and control method for playing back and system Download PDF

Info

Publication number
CN103428525B
CN103428525B CN201310308593.3A CN201310308593A CN103428525B CN 103428525 B CN103428525 B CN 103428525B CN 201310308593 A CN201310308593 A CN 201310308593A CN 103428525 B CN103428525 B CN 103428525B
Authority
CN
China
Prior art keywords
video
information
programme
mobile terminal
internet
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.)
Active
Application number
CN201310308593.3A
Other languages
Chinese (zh)
Other versions
CN103428525A (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.)
Huazhong University of Science and Technology
Original Assignee
Huazhong University of Science and Technology
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 Huazhong University of Science and Technology filed Critical Huazhong University of Science and Technology
Priority to CN201310308593.3A priority Critical patent/CN103428525B/en
Publication of CN103428525A publication Critical patent/CN103428525A/en
Application granted granted Critical
Publication of CN103428525B publication Critical patent/CN103428525B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of Internet video based on mobile terminal and the online query of TV programme and control method for playing back, including: server end extracts and stores the video information on internet video website;Server end utilizes the video source web page address in video information, obtains video source web page source data, thus extracts video source true address and store;Server end, according to TV guide website and webpage data layout, extracts programme distant information and stores;Mobile terminal extracts information as client by Internet video and carries out online query acquisition video information, to play online, carries out online query by programme distant information and remote-controlled television set carries out TV programme broadcasting.The invention also discloses a kind of online query and broadcasting control system.The present invention is extracted by the TV program information providing all kinds of video source information on network or broadcasting and television network, such that it is able to realize the real-time online inquiry of Internet video and TV programme, and plays the problems such as control.

Description

Internet video and the online query of TV programme and control method for playing back and system
Technical field
The invention belongs to Computer Applied Technology field, be specifically related to a kind of Internet video and TV programme online query and The control method play and system, realize internet video online query and broadcasting, TV program information by mobile terminal Inquiry and RTV remote television play.
Background technology
In recent years, along with the fast development of multimedia and internet, internet has been increasingly becoming can not in people's life Or the part lacked.And along with the propelling of integration of three networks process, internet and the fusion of TV resource are also imperative. The generation of internet video data, processing and acquisition becomes increasingly to facilitate, the video data volume presents volatile growth. Contrary with quickly increasing of the video data volume, the rhythm of people's live and work is increasingly faster, is really used for watching TV The time of program and Internet video is fewer and feweri, in the face of substantial amounts of television channel and the video content of the internet of magnanimity, uses Family is the most at a loss as to what to do.
Along with developing rapidly of wireless access wide band technology and mobile terminal technology, people are highly desirable can be whenever and wherever possible To can obtain information and service in moving process easily from internet, but present stage network based on mobile terminal The acquisition of video information and TV program information is the most perfect, inadequate hommization.Such as with regard to the internet of mobile terminal For video acquisition, that takes often or plays form, owing to each video website is for preventing by the webpage of video website Video is downloaded, and all can be encrypted the true address of video, and the true address deciphering rule of video is embedded in website In flash player, when therefore playing different video, need to call the player of different web sites, it is clear that the experience of user Bad.And this video playback form based on webpage, when user searches for video resource, a lot of redundancy can be received Unnecessary page info, obtains accurate Internet video the most effectively, easily and then becomes for people The problem that becomes more concerned with.Same in terms of TV program information acquisition, the most a lot of weak points.Although broadcast Television network is provided that the live of TV programme, but the information of TV programme is but provided little, user is if it is desired to check The programme information that each TV station plays, then need to check the website of each TV station, and a lot of broadcaster website be only Providing television programme title, little to the content introduction of TV programme, this also gives user's sight arranging TV programme See that aspect adds difficulty.So obtaining this aspect at TV program information, lacking a unified search platform, using In being integrated by the programme information of each TV station, provide the user the online query of programme information, as program key word is looked into Ask, TV guide, current playing program etc..
On the other hand, along with the development of computer, control and the communication technology, home automation obtains in the past few decades Obtained huge development.Along with improving constantly of living standard, people propose higher demand to home automation.? In domestic automation system, remote control equipment then plays vital role, more and more with function of infrared remote control Electrical equipment enter family and various office, public place of entertainment.The manipulation that the use of remote control system provides a convenient Means.But facing to the appearance of the emerging affairs such as intelligent television, the integration of three networks, remote controller is also in initial development rank Section, provides only single function of infrared remote control, it is clear that cannot meet the demand of people.
Although the most having occurred in that multifunctional remote controlller at present, the function of remote controller and control mode all there occurs the biggest Change, facilitate daily life, but there is also some problems:
1. major part remote controller key layout is fixed.In the face of different use scene, use the identical key arrangement can be significantly Reduce Consumer's Experience, it has not been convenient to user uses operation;
2. major part remote-controller function is single.The overwhelming majority remote controllers only there is function of infrared remote control, this Science and Technology Day increasingly Cannot meet the demand of people in the environment of exhibition, people are in the urgent need to being provided that the intelligent remote controller of several functions;
3. major part remote manipulator system cannot be upgraded, and controls owing to major part remote controller uses simple program curing, So cannot upgrade system, the function that remote controller provides cannot change, and when manufacturer adds New function, user is only Can select to buy new hardware, this is one to lose greatly user, and the hardware product bought cannot obtain lasting service.
Summary of the invention
The present invention provides a kind of Internet video based on mobile terminal and the online query of TV programme and control method for playing back And system, its object is to be believed by the TV programme that all kinds of video source information on network or broadcasting and television network are provided Breath extracts, and is realized online query and the broadcasting of video or television program by unified interface, such that it is able to realize net The real-time online inquiry of network video and TV programme, and play the problems such as control.
For realizing the purpose of the present invention, it is another aspect of this invention to provide that provide a kind of Internet video based on mobile terminal Online query with TV programme and control method for playing back, it is by all kinds of video source on network and TV guide Information is extracted, and realizes the online query of video, broadcasting by mobile terminal, and realizes the inquiry of TV programme also Controlling television for play, the method specifically includes:
Network video information extracts, and takes unified data structure storage to interconnect particularly as follows: server end formulates extracting rule Video information in net video website;
Internet video true address extracts, particularly as follows: server end utilizes the video source web page address in video information, obtains The video source web page source data of decompression and the Unified coding of learning from else's experience, further according to the video ID in video information and video Source web page source data, extracts the video source true address of video website, and takes unified data structure to video truly Location information stores;
Television schedule information extracts: server end, according to TV guide website and webpage data layout, is formulated and extracted Rule, extracts programme distant information and stores the information extracted;
Described mobile terminal extracts information as client by the Internet video of storage and carries out online query acquisition video letter Breath, is play online by described video true address information, carries out online query by the programme distant information extracted And remote-controlled television set carries out TV programme broadcasting.
As present invention further optimization, described programme distant information extracts particularly as follows: be loaded into channel information table, often Secondary reading a line, processes the information read, and synthesizes the schedule information page of an every day, resolves after download, Then input database, completes programme distant information and extracts.
As present invention further optimization, the network video information of described extraction includes video essential information, video classification Information and video creation information, wherein, described video essential information includes video title, video presentation and video tab, Described video classification information includes that subordinate channel, visual classification and affiliated special edition, described video creation information include video Uploader information and video uplink time.
As present invention further optimization, the online query of described programme distant information includes:
Extracting query argument, the request to inquiring client terminal resolves, and obtains searching keyword and inquiry mode keyword;
Judge whether searching keyword is empty, the most then judge whether inquiry mode keyword is c, the most then inquire about The programme information that current slot broadcasts, sequentially in time, returns XML file to client;If searching keyword Not being empty, then judge inquiry mode, if s, then inquiry comprises the programme information of keyword, and temporally returns to visitor Family end;If a, then judge whether searching keyword is channel designation, if then returning all of this channel current week Programme distant information, and return to client in chronological order, if it is otherwise, terminate.
As present invention further optimization, the online query of described network video information includes:
Keyword pre-processes, and is i.e. removed, the useless character in the keyword of inquiry to prevent from affecting Search Results;
Keyword participle, will be divided into single word by the section of length sentence, including Chinese word segmentation and English string segmentation two kinds;
Search index, when network video information grabs this locality from internet, can index behaviour to video information Make, utilize Lucene to set up inverted index, when the process of inquiry, then utilize the Retrieval Interface of Solr to index into Row inquiry;
Result is ranked up, i.e. according to keyword degree of correlation, retrieval result is ranked up;
Information returns, and the video that i.e. basis retrieves is ID, inquires about database, it is thus achieved that detailed video information, according to aobvious Show content, generate XML file, return to client.
As present invention further optimization, described method also includes that authentication (includes conventional username, password login Log in recognition of face) step, for online query with before playing, the identity of client is authenticated.
As present invention further optimization, the remote control interface for described mobile terminal remote-controlled television set include multiple can phase The scene interface of switching mutually.
As present invention further optimization, described method also includes TV programme alarm clock calling, is used for reminding user's program Play.
It is another aspect of this invention to provide that provide a kind of Internet video based on mobile terminal and the online query of TV programme And broadcasting control system, it is by extracting all kinds of video source on network and television schedule information, and passes through Mobile terminal realizes the online query of video, broadcasting, and realizes the inquiry of TV programme and control television for play, and this is System specifically includes:
Network video information extraction module, including: server end is formulated extracting rule and is taked unified data structure storage mutual Video information on networked video website;
Internet video true address extraction module, including: server end utilizes the video source web page address in video information, Obtain through decompressing and the video source web page source data of Unified coding, further according to the video ID in video information with regard Frequently source web page source data, extracts the video source true address of video website, and takes unified data structure true to video Address information stores;
Television schedule information extraction module, including: server end according to TV guide website and webpage data layout, Formulate extracting rule, extract programme distant information and the information extracted is stored;
Described mobile terminal extracts information as client by the Internet video of storage and carries out online query acquisition video letter Breath, is play online by described video true address information, carries out online query by the programme distant information extracted And remote-controlled television set carries out TV programme broadcasting.
As present invention further optimization, described programme distant information extraction module is used for being loaded into channel information table, every time Read a line, the information read processed, synthesize the schedule information page of an every day, resolve after download, Then input database, completes programme distant information and extracts;
Described network video information extraction module is used for extracting video essential information, video classification information and video creation information, Wherein, described video essential information includes video title, video presentation and video tab, described video classification information bag Including subordinate channel, visual classification and affiliated special edition, described video creation information includes video uploader information and video Uplink time.
As present invention further optimization, described system also includes that authentication (includes conventional username, password login Log in recognition of face) module, before online query and broadcasting, the identity of client is authenticated.
As present invention further optimization, the remote control interface for described mobile terminal remote-controlled television set include multiple can phase The scene interface of switching mutually.
As present invention further optimization, described method also includes TV programme alarm clock calling, is used for reminding user's program Play.
The present invention uses CS and designs pattern, is divided into remote server and Android SmartClient two parts, clothes Business device end realizes video information and the crawl of programme distant information, database support and cloud service interface supplier, Android client provides interface operation, calls remote interface and realizes the function of intelligent distant control.
During the network data of the present invention is extracted, wherein info web extracts and includes that programme distant information extracts and internet regards Frequently information extraction two parts composition, uses extracting mode based on html tag.TV guide and video website Webpage format is relatively fixing and seldom changes, and therefore formulating of information extraction rule uses artificial mode.Program is pre- Announcement information is due to program quantitative limitation and fixes, and uses single website to extract.Internet video is various due to quantity, So using many form of websites to extract.
During the cloud service interface of the present invention realizes, cloud service interface utilizes remote server to provide for Android client Necessary resource.The high in the clouds interface realized has authentication module, video true address extraction module, TV guide inquiry Module, Internet video search module, program network of relation video recommendations module.Cloud service externally provides with the form of interface Call, it is provided that corresponding API can realize corresponding function.
In the present invention, Android client can be used to realize said method, Android client effect is for user Operate with, data source major part be all by calling interface access remote server data storehouse obtain, small part from Local SQLite database.Therefore client totally can be divided into data manipulation, file operation, network accesses, equipment is visited Ask etc. that several parts are constituted.And for client, of paramount importance part is client UI, this be user directly facing behaviour Making interface, therefore design must be the most both artistic and practical, for the straighforward operation interface of many scenes, then needs to consider people The factor such as use habit.
The present invention has been cooperated with Android client by remote server, and server end provides number for client According to supporting and service interface, client provides the user operation interface, and both together form TV intelligence based on Android Can remote control system.
In general, the present invention uses the most popular Android system, and the function powerful in conjunction with Android system and three nets melt The trend closed, extracts including network data, and service interface design and SmartClient realize several part, have passed through one Individual have TV guide inquiry, program timed reminding, program network of relation video recommendations, Internet video inquiry, network video The online intelligent multifunctional remote controller play of frequency, allows user can realize multiple operation under single equipment;Make user permissible In the case of more exchange device, by high in the clouds restoring data so that operating habit and software design patterns originally can be quick Apply on new equipment.Specifically, the invention have the advantages that
(1) present invention is to the video information on internet video website and broadcasting and TV programme distant information, and video is true Broadcast address has carried out unified collection and extraction, thus provides support for user in the unified manipulation of client;
(2) present invention is unified for the video information extracted and programme distant information and true broadcast address Interface processes, and facilitates user to manipulate in the concentration of client.
(3) by the unified online query of client and broadcasting, providing the user corresponding straighforward operation in the present invention Interface, improves Consumer's Experience while simplifying user operation;
Accompanying drawing explanation
Fig. 1 is the structural representation during method enforcement of the embodiment of the present invention.
Fig. 2 is the level schematic diagram during method enforcement of the embodiment of the present invention.
Fig. 3 is the master-plan block diagram during method enforcement of the embodiment of the present invention.
Fig. 4 is that the programme distant information of the embodiment of the present invention extracts flow chart.
Fig. 5 is that the network video information of the embodiment of the present invention extracts flow chart.
Fig. 6 is the interface schematic diagram that the embodiment of the present invention is applied to Android client.
Fig. 7 is the functional module division schematic diagram that the embodiment of the present invention is applied to Android client.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearer, below in conjunction with accompanying drawing, the present invention is entered Row further describes.If described herein as when relating to instantiation only in order to explain the present invention, do not limit this Bright.
It is illustrated in figure 1 composition schematic diagram when this method embodiment is implemented, is made up of Android development board and server. Development board is preferably made up of the friendly Tiny210 of arm and the LCD touch screen displays of 7 cun.External intelligence What infrared remote control module preferably employed is that HXD1282 Multifunctional learning type bluetooth turns infrared repeater.
The online query of the Internet video of this method embodiment and control method for playing back, by all kinds of video source on network Information is extracted, and is realized online query and the broadcasting of video by unified interface.
The method of the present embodiment specifically includes:
Network video information extracts with programme distant information, takes unified data structure to deposit particularly as follows: formulate extracting rule Video information on storage internet video website;According to TV guide website and webpage data layout, formulate extracting rule, carry Take programme distant information;The information extracted is stored;
Internet video true address extracts, particularly as follows: obtain through decompressing and the video source web page source number of Unified coding According to;Analyze the video source true address extraction algorithm of video website, and take unified data structure true to video accordingly Address information stores;
Local client carries out online query by the extraction information of storage and obtains video information or programme distant information, and root Corresponding video true address information is utilized to play online according to video with programme distant information.
System includes that service end forms with client two parts, and client provides the user operation interface, and server end provides Necessary data supports and remote service interface is to client.Whole system is divided into three layers: explicit layer, key-course and data Layer, as shown in Figure 2.
Display layer defines the interface of some user orienteds operation, authentication interface, registers including user, logs in, looks for Return password;TV guide interface, check including TV guide inquiry, programme information, TV guide, program associated video Recommend;Internet video interface, including Internet video inquiry and local broadcasting;Straighforward operation interface, including remote control and Scene selects.
Key-course is the logic realization part of system, including authenticating user identification, program inquiry, Internet video inquiry, regards Frequency recommendation, infrared remote control, data backup reduction, software design patterns and upgrading etc., be the core of whole system.
Data Layer is the offer part of system data, including TV guide, Internet video and user information database, for whole The operation of system provides data supporting.
Fig. 3 is the master-plan frame diagram of system, and when user is by client input account name password, client will be used Family information is sent to server by internet and verifies, and returns result.After user enters, client can be entered Row certain operations, as carried out infrared remote control, program inquiry, Internet video viewing etc..Whole process is server end and visitor The result that family end has cooperated.
(1) network data is extracted
It is to obtain data from internet that info web extracts, and is got up by scattered information, is managed collectively, this Process relates to the acquisition of web page source file, the formulation of extracting rule and info web storage three parts and constitutes.For Different types of information, have also needs to carry out the information extracted the operations such as integration duplicate removal.
Different internet information is extracted, except for the difference that the choosing of web page source, the difference of extracting rule and after extracting The processing mode of information different.For the information extraction that data source is more single, generally have only to from one or several station Point extracts, and the information redundance extracted is the highest, and major part all processes without duplicate removal can be stored in database, this type Fewer.On internet all there is redundancy in most information, and identical information can occur in multiple different website, And difference station data form is possible different, the when of therefore extracting information processing, need to consider duplicate removal, and formulation unification Data structure store.Specifically comprise the following steps that
(1.1) web page source file acquisition
The target pages of web page source file is typically to utilize web crawlers to acquire, and the acquisition of web page source file can approximate Regarding the process that html file is downloaded as, be different from common file download, this process needs the coding in view of information Mode and whether have compression.
The page coded system of different web sites is different, and current has GBK, UTF-8, GBK2312 etc..Due to information extraction Environment coding is fixing, usually ASCII or UTF-8, if it is different to extract page coded system, then the information extracted will Being that mess code shows, this will be unfavorable for the extraction of file, therefore need to judge webpage during extracting, webpage Coded system typically judged by the charset field of the meta label of page source file.
Number of site takes the mode of compression to reduce page-size, improves page loading velocity, for this kind of page, under What load program got is usually compressed file, it is impossible to read internal data.At present frequently with compress mode be gzip, For this kind of website, then utilize third party library first it to be decompressed, then read data and call for other modules.
(1.2) TV guide is extracted
Programme distant information is different from general information, and the TV guide in each week is fixing, and namely information is total Amount is certain, and therefore during extracting, to choose a good website the most extremely important, and special for its information Property, it is not necessary that go multiple website collection, only need to find a more complete website of information and gather.TV guide Information extraction is as shown in Figure 4.During beginning, it is loaded into local channel information table, reads a line every time, the information read is entered Row processes, and synthesizes the schedule information page of every day in a week, resolves, the information of extraction is carried out pre-place after download Reason, mainly removes some spaces etc., then input database, if local channel information table reads complete, then and program knot Bundle.
(1.3) network video information extracts
Network video information extracts substantially that flow process is as shown in Figure 5.Have multiple owing to network video information extracts website, and many The composition of individual web video information is not quite similar, but is substantially summed up and includes three parts, i.e. video self-information, Video classification information and video creation information.Video self-information generally comprises video title, video presentation and video mark Sign three parts.Video classification information generally comprises subordinate channel, visual classification and affiliated special edition, this type of letter of different web sites Breath is slightly different.Video creation information includes video uploader information and video uplink time.In view of extracting data to the greatest extent Possible comprises, and information of therefore extracting includes three category informations:
A) video essential information: include video title, video presentation information and video tab information;
B) video classification information: include special edition belonging to video subordinate channel, visual classification and video;
C) video creation information: include video uploader information and video uplink time.
Different video Website page data organizational form is different, it is therefore necessary to each website is formulated extracting rule, extracts rule Formulating generally by analyzing what video playback page source file obtained then, believes according to different classes of information labels and description Breath, judges whether information is category information herein.The description keyword of such as title typically has title, video information Describe keyword and typically have description etc..For some websites, the different classes of page of the different times page is also possible to deposit In difference, this must go to adjust dynamically during extracting.Therefore, also need to consider during formulating extracting rule Some special circumstances, so that the information of extraction is the most accurate.
(2) cloud service interface realizes
(2.1) video true address extraction module
Owing to the video true address of video website is all through encryption, it is so to prevent from directly downloading.Video net The video true address deciphering rule stood, being the most all embedded in the flash player of website, regarding if playing different web sites Frequency removes to call different players, and such Consumer's Experience can be bad.So acquisition Internet video true address must be analyzed, Play online realizing the unification of Internet video client.
Video true address is all encrypted by each big video website, and encryption rule is different, it is therefore necessary to respectively Individual video website formulates different acquisition modes.The most conventional video true address extracting mode has two kinds, and the first is Analyze source code and the AES of video web-pages, show that the true address of video, the advantage of this mode are that resolution speed is fast, It is obtained in that video details, but does not have versatility, and it is complicated to analyze process.
(2.2) TV guide enquiry module
Programme distant information is different from network video information, and it has real-time and the factor such as total amount is little, again due to system In the mode called have multiple, the most do not take the retrieval mode of traditional search engines, but directly utilize database Build query interface.During inquiry, Android client can send the inquiry request of subsidiary parameter to server, mesh Front query argument includes two parts, i.e. searching keyword and inquiry mode.Searching keyword is the keyword of program search, Inquiry mode is then to inquire about in which way, has three kinds of inquiry modes in system, and one is according to keyword query, second Planting is that inquiry current time plays TV guide, and the third is the TV guide of one program channel current week of inquiry.Joint It is as follows that substantially step is inquired about in mesh advance notice:
1. extract query argument.Request to Android client resolves, and obtains searching keyword and inquiry mode two Keyword, and searching keyword is pre-processed;
2. judge whether searching keyword is empty, the most then judge whether inquiry mode keyword is c, the most then look into Asking the programme information that current slot broadcasts, sequentially in time, return XML file is to Android client, otherwise EP (end of program).
3. if searching keyword is not empty, then judging inquiry mode, if s, then inquiry comprises the programme information of keyword, And temporally return to client;If a, then judge whether searching keyword is channel designation, if then returning this frequency All programme distant informations of road current week, and return to Android client in chronological order, if it is otherwise, program Terminate.
(2.3) Internet video enquiry module
The inquiry of Internet video includes that Internet video inquiry and TV guide associated video are recommended, owing to program is recommended to use Content-based recommendation mode, therefore program is recommended to regard the Internet video inquiry that keyword is programme information as.Net The step of network query video includes pre-processing keyword, to keyword participle, search index, arrange result Sequence, the return several part of video information XML file.
1. keyword pretreatment.The characters such as this process is to be removed the useless character in keyword, such as space, Prevent from affecting Search Results.
2. keyword participle.An one long section sentence is divided into single word, including Chinese word segmentation and English string segmentation by participle exactly Two kinds.English string segmentation is on the basis of space, fairly simple.Chinese word segmentation is then that a Chinese character sequence is cut into one Individual single vocabulary, uses forward based on dictionary air exercise matching algorithm to carry out participle in system.
3. search index.This process actually includes two processes.When network video information grabs this from internet During ground, video information can be indexed operation, utilize Lucene to set up inverted index.When the process of inquiry, Index is inquired about by the Retrieval Interface then utilizing Solr.
4. pair result is ranked up.This process uses the sort result of Solr, is usually according to keyword degree of correlation It is ranked up.
5. information returns.Video owing to retrieving is video ID, therefore needs to inquire about database, it is thus achieved that detailed video letter Breath, according to display content, generates XML file.
(2.4) authentication module
Authentication i.e. subscriber authentication relevant portion, registers including user, user logs in, password gives for change.Consider The factor such as network security, also password encryption and decryption portion up till now.
1. password encryption deciphering
Owing to present internet industry is more flourishing, because factors such as interests, occur in that much steal user profile illegal point Son, and the accounts information of website is typically stored on server database, if User Information Database is obtained by lawless person Take, huge loss will be caused in website and user.Therefore to avoid the generation of this type of thing, it is right to take in system Password is encrypted measure, even if therefore database is cracked by lawless person, also cannot obtain user cipher.
First cryptographic process needs to pre-process password string, judges after removing head and the tail space, if not empty, Then call correlation function storehouse and password string is carried out md5 encryption, the string obtained after encryption is returned.Deciphering be exactly one inverse Process, calls decryption function and carries out MD5 deciphering, is returned by the password string obtained.
2. user's registration
The operating process of user's registration actually database, will user profile store in database, Bu Guo Before storage, related data need to be pre-processed, including information pre-processing, judge whether user name exists, to password It is encrypted storage etc..Wherein information pre-processing includes removing some garbages, such as, remove the first space.Judge to use Whether name in an account book exists, and needs to inquire about database manipulation.It externally has two interfaces, and whether one exist for user name, and one Individual for user's registration interface.
3. user logs in
User login information actually can regard as one inquiry data manipulation, user name is verified with password, if with number Relevant information is then returned according to information matches in user information database in storehouse.This process includes the pretreatment to information and password Md5 encryption two parts.It is then to reduce data base querying number of times that password carries out md5 encryption.
4. password is given for change
Password is given for change with user logs in similar, is the operation of an inquiry database, to user name, password protection problem and close Protect answer checking, if with information match in user information database, then return to user cipher.
(3) SmartClient realizes
As user operation terminal part, Android client provides the various interfaces of user oriented operation, such as log in, Registration, remote control, inquiry etc..The design quality of client end interface directly affects Consumer's Experience, and therefore design must be rationally. A client logic functional module part relies on remote server and realizes, and a part is provided by own module and realizes, and is Unite and cooperate between each module, client and server common operational, constitute whole intelligent remote control system.
Whole client end interface designs as shown in Figure 6, and one is designed good operation interface and can bring to user different Experiencing, Android client interface includes five major parts, i.e. initializes interface, authentication related interfaces, client Main body interface, TV guide related interfaces and Internet video related interfaces.Various piece is assembled with function, and respectively one Entirety, five major parts join together to form whole intelligent distant control client.Many scenes infrared remote-control operation interface is available for user The remote control scene selected has default, video display, music and four kinds of patterns of standard, and (a), for presetting remote control interface, (b) is video display Scene remote control interface, (c) is music scenario remote control interface, and (d) is standard remote interface.
The inside of client realizes depending on what the cooperation of each functional module completed, and functional module is as Android client Logic realization part, can be divided into five major part, including Equipment Inspection module, authentication module, infrared remote control merit Energy module, network transmission module and data operation modules.Modules contains again the functional unit of a lot of segmentation, as Shown in Fig. 7.
(3.1) Equipment Inspection module
Equipment Inspection module application, at the initial phase of equipment, is run due to client and is needed network, external storage card etc. The support of some equipment, therefore when equipment starts, whether this module meeting detecting system related hardware exists, equipment state Whether reach demand etc..
1.SD card detects
Client operation generation information and backup and reduction operation etc. are required for place and deposit, and in program, acquiescence leaves in external On SD card, program can detect whether equipment has external storage card, if it is not, user ID etc. can be reminded when running Operation may be failed.
2. network detection
Network detection includes many-side, and whether whether equipment has relevant device, and can network, the type etc. of networking.Inspection The type action surveying networking is to remind user, and some operation may expend very much flow, if if using SIM online, Should be noted that operation.
(3.2) authentication module
Authentication is the module of a cooperation, needs to use network transmission module, and user logs in, user registers and close Code gives the process that can regard an information on the client as change.It is sent to server end by gathering relevant information, right The result that server returns judges, does next step operation.Wherein user log-in block also may require that data operation modules Cooperation, to the most logged account, client has record, can provide prompting when user operates again, helps user Rapidly input account number, save user time.
(3.3) function of infrared remote control module
Function of infrared remote control module relates to bluetooth transceiving data and JNI interface realizes two parts.Bluetooth transceiving data is The less radio-frequency function that android system is supported, mainly turns infrared repeater with bluetooth herein and interacts.JNI interface Write, then be that the data to Bluetooth receptions process.
1. bluetooth transceiving data
Owing to android system gives tacit consent to the infrared driving of non-burning, so mobile terminal based on Android is to receive and dispatch Infrared data, the most also cannot the direct infrared home equipment of remote control.All prop up in view of mobile terminal based on Android Hold Bluetooth function, so for the realization of RTV remote television playing function, taking mobile terminal to turn infrared repeater to bluetooth and send out Send Bluetooth command, bluetooth to turn infrared repeater the blue-teeth data received is processed, then send infrared command remote control The method televised.
2.JNI interface realizes
The abbreviation of JNI i.e. Java Native Interface, it can allow Java code interact with the code of other language. The purpose of its design is the form allowing other codes can be written as dynamic base, calls for Java, due to Android program Application is Java language, and the data processing module that C language to be called is write is not all right, it is necessary to utilize JNI Data processing module is packaged into dynamic base, quotes in Android program.Data processing module herein is to move The infrared remote control command study stage is called by terminal, and detailed process is: mobile terminal turns to bluetooth first with Bluetooth function Infrared repeater sends study order, guides repeater to gather the infrared control order of infrared home equipment, then repeater The data separate Bluetooth function collected is sent back mobile terminal, and mobile terminal is adjusted after receiving the data that repeater is beamed back By dynamic base packaged for JNI data processed and preserve.The data i.e. mobile terminal preserved is for the infrared family of remote control Turn, to bluetooth, the order that infrared repeater sends when occupying equipment.
(3.4) data operation modules
Data manipulation is one of nucleus module of client, and other module sections the most all have invoked data operation modules.System Middle data operation modules includes four parts, i.e. local data base operation, common file operations, XML resolve operation and SharePreferences file operation.
1. local SQLite database manipulation
At the running of client, a lot of relatively well-regulated data, for example user login information, user can be produced Query Information etc..If using plain text form, reading and condition query all can be cumbersome, if storage is to remotely On server database, network overhead can increase, and these data are the most not necessarily.Therefore use SQLite this The database of lightweight, it designs for embedded environment, it is possible to operate on development board, and it is the least to take resource, Support conventional SQL statement etc..The information of storage is the data produced during certain operations, and the login including user is believed Breath, user's program inquiry, Internet video search keyword information etc..The operation related to is mainly reading and writing data.
2.XML resolves
XML resolves the most common, no exception in Android.Android platform is commonly used XML parser has SAX parser, DOM parser and PULL resolver three kinds.SAX parser be a kind of based on The resolver of event, its advantage is that resolution speed is fast, it is less to take resource.DOM parser is based on tree structure The resolver of the set of node or information segment, due to DOM in internal memory with tree structure store, therefore retrieval and more New efficiency can be higher.But for bigger file, load and parsing can compare cost source.The operation of PULL resolver Mode is similar with SAX, is pattern based on event, and its advantage is that small volume and less weight, resolution speed are fast, easy to use. SAX parser is used to complete the parsing of XML document, in the data of regularization being stored in by parsing in systems In depositing, call for other modules.
3. common file operations
Common file operations includes file read-write, compresses, decompresses and copy.It is standby that these operations are mainly used for system Part reduction.Program operation information in mobile phone can be saved on external SD card by system backup operation, and by these files Pack, upload onto the server on.System reducing operation is then to be downloaded by the compressed file on server, decompression Contracting, is then copied in mobile phone.
4.SharePreferences file operation
SharePreferences is a kind of storage mode that Android provides, and is to store key assignments data based on XML file , it is particularly well-suited to the preservation of software configuration parameter.It is used in systems store some personal settings information.Android System provides SharedPreferences class to carry out the operation of SharePreferences file.

Claims (9)

1. Internet video based on mobile terminal and the online query of TV programme and a control method for playing back, it passes through All kinds of video source on network and television schedule information are extracted, and realizes video information by mobile terminal Server end inquiry is play with the online of video, and realizes the inquiry of TV programme and control television for play, the method Specifically include:
Network video information extracts, and takes unified data structure to extract and deposit particularly as follows: server end formulates extracting rule Video information on storage internet video website;
Internet video true address extracts, particularly as follows: server end utilizes the video source web page address in video information, obtains The video source web page source data of decompression and the Unified coding of learning from else's experience, further according to the video ID in video information and video Source web page source data, extracts the video source true address of video website, and takes unified data structure to video truly Location information stores;
Television schedule information extracts: server end, according to TV guide website and webpage data layout, is formulated and extracted Rule, extracts programme distant information and stores the information extracted;
Described mobile terminal carries out online query as client by the Internet video extraction information that server end stores and obtains Obtain video information, play online by described video true address information, carried out by the programme distant information extracted Online query remote-controlled television set carry out TV programme broadcasting.
The online query of a kind of Internet video based on mobile terminal the most according to claim 1 and TV programme and Control method for playing back, it is characterised in that described programme distant information extracts particularly as follows: be loaded into channel information table, every time Read a line, the i.e. link information of a channel, the information read is processed, synthesize the schedule information of an every day The page, resolves after download, then input database, completes programme distant information and extracts.
Internet video based on mobile terminal the most according to claim 1 and the online query of TV programme and broadcasting Control method, it is characterised in that the network video information of described extraction includes video essential information, video classification information and Video creation information, wherein, described video essential information includes video title, video presentation and video tab, described Video classification information includes that subordinate channel, visual classification and affiliated special edition, described video creation information include that video is uploaded Person's information and video uplink time.
4. according to a kind of based on mobile terminal the Internet video according to any one of claim 1-3 and TV programme Online query and control method for playing back, it is characterised in that the online query of described programme distant information includes:
Extracting query argument, the request to inquiring client terminal resolves, and obtains searching keyword and inquiry mode keyword;
Judge whether searching keyword is empty, the most then judge inquiry mode keyword, and corresponding described inquiry mode closes Corresponding programme information is returned to client by keyword;If searching keyword is not empty, then determine whether inquiry mode, And process according to inquiry mode, temporally return to client including the programme information that inquiry is comprised keyword, or Person returns all programme distant informations of inquiry channel current week and returns to client in chronological order.
5. according to a kind of based on mobile terminal the Internet video according to any one of claim 1-3 and TV programme Online query and control method for playing back, it is characterised in that described method also includes the step of authentication, for looking into online Before asking and playing, the identity to client is authenticated.
6. according to a kind of based on mobile terminal the Internet video according to any one of claim 1-3 and TV programme Online query and control method for playing back, it is characterised in that the remote control interface for described mobile terminal remote-controlled television set includes Multiple scene interfaces that can mutually switch.
7. Internet video based on mobile terminal and the online query of TV programme and a broadcasting control system, it passes through All kinds of video source on network and television schedule information are extracted, and realizes video information by mobile terminal Server end inquiry is play with the online of video, and realizes the inquiry of TV programme and control television for play, and this system has Body includes:
Network video information extraction module, including: server end is formulated extracting rule and is taked unified data structure storage mutual Video information on networked video website;
Internet video true address extraction module, including: server end utilizes the video source web page address in video information, Obtain through decompressing and the video source web page source data of Unified coding, further according to the video ID in video information with regard Frequently source web page source data, extracts the video source true address of video website, and takes unified data structure true to video Address information stores;
Television schedule information extraction module, including: server end according to TV guide website and webpage data layout, Formulate extracting rule, extract programme distant information and the information extracted is stored;
Described mobile terminal carries out online query as client by the Internet video extraction information that server end stores and obtains Obtain video information, play online by described video true address information, carried out by the programme distant information extracted Online query remote-controlled television set carry out TV programme broadcasting.
The online query of a kind of Internet video based on mobile terminal the most according to claim 7 and TV programme and Broadcasting control system, it is characterised in that described programme distant information extraction module is used for being loaded into channel information table, reads every time Take a line, the information read is processed, synthesize the schedule information page of an every day, resolve after download, so Rear input database, completes programme distant information and extracts;
Described network video information extraction module is used for extracting video essential information, video classification information and video creation information, Wherein, described video essential information includes video title, video presentation and video tab, described video classification information bag Including subordinate channel, visual classification and affiliated special edition, described video creation information includes video uploader information and video Uplink time.
9. looking into online according to a kind of based on mobile terminal the Internet video described in claim 7 or 8 and TV programme Ask and broadcasting control system, it is characterised in that described system also includes program alarm clock calling module, for the desire to inquiry Viewing setting of the programs alarm clock calling.
CN201310308593.3A 2013-07-22 2013-07-22 Internet video and the online query of TV programme and control method for playing back and system Active CN103428525B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310308593.3A CN103428525B (en) 2013-07-22 2013-07-22 Internet video and the online query of TV programme and control method for playing back and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310308593.3A CN103428525B (en) 2013-07-22 2013-07-22 Internet video and the online query of TV programme and control method for playing back and system

Publications (2)

Publication Number Publication Date
CN103428525A CN103428525A (en) 2013-12-04
CN103428525B true CN103428525B (en) 2016-08-31

Family

ID=49652600

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310308593.3A Active CN103428525B (en) 2013-07-22 2013-07-22 Internet video and the online query of TV programme and control method for playing back and system

Country Status (1)

Country Link
CN (1) CN103428525B (en)

Families Citing this family (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103686452B (en) * 2013-12-06 2017-02-08 北京普瑞众合国际科技有限公司 Addition processing method for video associated information
CN103796046B (en) * 2013-12-24 2018-08-31 Tcl集团股份有限公司 A kind of video source address detection method and device
CN103678694A (en) * 2013-12-26 2014-03-26 乐视网信息技术(北京)股份有限公司 Method and system for establishing reverse index file of video resources
CN103716720A (en) * 2013-12-26 2014-04-09 乐视网信息技术(北京)股份有限公司 Data adaptation method and system of video data
CN103778256B (en) * 2014-02-26 2017-02-01 赛特斯信息科技股份有限公司 Method for realizing extraction of Internet audiovisual programs based on context
JP2017524211A (en) * 2014-07-03 2017-08-24 エイブル ワールド インターナショナル リミテッド Method for unifying information and tools from a plurality of information sources, and computer program product and apparatus applying said method
US9727391B2 (en) 2014-07-08 2017-08-08 Able World International Limited Method for performing task on unified information units in a personal workspace
US9792092B2 (en) 2014-07-03 2017-10-17 Able World International Limited Method of unifying information and tool from a plurality of information sources and computer program product and matterizer using the same
US9626157B2 (en) 2014-07-03 2017-04-18 Able World International Limited Method of projecting a workspace and system using the same
US11360828B2 (en) 2014-07-08 2022-06-14 Able World International Limited Method for combining unified matters in personal workspace and system using the same
CN105634791A (en) * 2015-07-05 2016-06-01 东莞康佳电子有限公司 Cloud intelligent control system based on Android intelligent liquid crystal display television platform
CN105578306A (en) * 2015-12-24 2016-05-11 深圳创维-Rgb电子有限公司 Method and system for the aged to control smart TV and smart TV
CN105825143A (en) * 2016-03-07 2016-08-03 乐视移动智能信息技术(北京)有限公司 Application program data writing and reading method and device
CN106792696B (en) * 2017-01-11 2023-04-07 揭军平 Access management method, device and system for two-dimensional code scanning for intelligent display equipment
CN107396189A (en) * 2017-08-17 2017-11-24 四川长虹电器股份有限公司 System and method based on internet upgrading OSD
CN108347471B (en) * 2018-01-02 2021-07-23 武汉斗鱼网络科技有限公司 Method, device and system for acquiring third-party user information
CN108491524A (en) 2018-03-27 2018-09-04 深圳创维-Rgb电子有限公司 Video pushing method, device and computer readable storage medium
CN111176650B (en) * 2018-11-09 2023-04-18 阿里巴巴集团控股有限公司 Parser generation method, search method, server, and storage medium
CN109600625B (en) * 2018-12-20 2021-06-01 深圳创维-Rgb电子有限公司 Program searching method, device, equipment and medium
CN112399210A (en) * 2019-08-13 2021-02-23 青岛海尔多媒体有限公司 Multimedia playing equipment and control method and device thereof
CN115426510B (en) * 2022-08-24 2024-02-02 北京嗨动视觉科技有限公司 Program arrangement method, program arrangement device, electronic apparatus, and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101521797A (en) * 2009-03-11 2009-09-02 深圳市融创天下科技发展有限公司 Digital television content transmitting system
CN101969546A (en) * 2009-09-30 2011-02-09 突触计算机系统(上海)有限公司 Method and device for providing electric program, publishing and presenting advertisement
CN102111674A (en) * 2010-12-22 2011-06-29 深圳市五巨科技有限公司 System and method for playing on-line video by mobile terminal and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030084461A1 (en) * 2001-10-25 2003-05-01 Khoi Hoang Method and apparatus for transmitting non-VOD services

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101521797A (en) * 2009-03-11 2009-09-02 深圳市融创天下科技发展有限公司 Digital television content transmitting system
CN101969546A (en) * 2009-09-30 2011-02-09 突触计算机系统(上海)有限公司 Method and device for providing electric program, publishing and presenting advertisement
CN102111674A (en) * 2010-12-22 2011-06-29 深圳市五巨科技有限公司 System and method for playing on-line video by mobile terminal and mobile terminal

Also Published As

Publication number Publication date
CN103428525A (en) 2013-12-04

Similar Documents

Publication Publication Date Title
CN103428525B (en) Internet video and the online query of TV programme and control method for playing back and system
CN1703701B (en) Apparatus for managing a collection of portlets in a portal server
US9047166B2 (en) System for generating application software installed on a mobile terminal
CN109101425B (en) Index point burying method and device for dynamic page AB test
CN104321743B (en) For developing the method and system for inquiring the application program of content and service on a communication network
CN101170675B (en) Method and system for managing J2ME application in network TV system
CN104781805B (en) The method and apparatus that dynamic and personal data for metadata guidance are managed and protected
CN104025084B (en) Historical viewings session management
CN102016840A (en) System and method for tracking usage
KR101672349B1 (en) File cloud service apparatus and method
CN101821736A (en) Method and system of interacting with server, and method and system for generating and presenting search results
CN106649446B (en) Information pushing method and device
CN101207782A (en) Content linkage information prompting device and method
US20160260228A1 (en) Methods and devices for image loading and methods and devices for video playback
US20090187647A1 (en) Service providing apparatus
WO2006009414A1 (en) Extended package scheme to support application program downloading, and system and method for application program service using the same
CN104063475B (en) user-defined list processing method and device
CN104283865A (en) Download processing method and device, server and client device
CN109814868A (en) Network transmission analogy method, device, computer equipment and storage medium
CN104361007B (en) The processing method of browser and its collection
CN107404508A (en) Access method, client and the electronic equipment of customer terminal webpage
CN103020126B (en) The access control method of Web content and device
CN114647412A (en) Content display method and terminal equipment
CN112364186A (en) Method, device and equipment for presenting media recommendation information and storage medium
CN109474563A (en) Processing, providing method, client and the server of file stream

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant