Summary of the invention
The object of the present invention is to provide a kind of TV exchange method and network sharing system, be intended to solve the problem that existing Web TV does not have the network sharing model based on widget.
Technical scheme of the present invention is as follows: a kind of TV exchange method based on widget wherein, may further comprise the steps:
S100: the TV interactive system based on widget is installed in client, and being connected of foundation and service end;
S200: start the TV interactive system to the service end request msg, obtain login interface;
S300: utilize login account login TV interactive system;
S400: after entering the TV interactive system, service end is obtained the state of client and the number of place channel by the TV interactive system;
S500: select social service network application, and pass through the TV interactive system to service end request and/or the social service of transmission network data;
S600: service end is given client according to the social service of the request feedback network data of client.
Described TV exchange method based on widget, wherein, if there is not login account then to pass through to server registration application login account.
Described TV exchange method based on widget wherein, if client is not received the feedback information of service end, is then given to be out of order and is declared.
Described TV interactive system based on widget, wherein, described social service network data comprises: with the application number of the account, add the good friend, set up the interest cohort, deliver the state mood, see the back daily record, upload TV sectional drawing, DV video, share and subscribe to the hobby program, the invitation good friend watches jointly or adds the Internet trivial games, checks the corresponding data of operation such as numbering of good friend's tv state or place channel.
A kind of TV interactive system based on widget wherein, comprises client and service end, and described client comprises:
Be used to provide the widget kernel of application;
Be used to start the TV interactive system and set up and start module with the interactive system of obtaining login interface being connected of service end;
Be used for entering the login module of TV interactive system by input account and password;
Be used for obtaining the Registering modules of the number of the account of a login TV interactive system to service end;
Be used to provide the social service function of social various functions of serving that module is provided,
Described interactive system startup module, login module, Registering modules, social service function provide module, social service function renewal module and fault to declare module and are connected to kernel respectively.
Described TV interactive system based on widget, wherein, described client and described service end are by broadcasting and TV broadband networks transmission data.
Described TV interactive system based on widget, wherein, described service end is social service Website server.
Described TV interactive system based on widget, wherein, described kernel is the widget module, described widget module comprises that widget uses and the widget engine.
A kind of television set wherein, comprises the above-mentioned TV interactive system based on widget in the described television set.
Beneficial effect of the present invention: the present invention promotes that by set up the social networks share system on television system the user participates in the social interactions activity.Can apply for number of the account by this system user, add the good friend, set up the interest cohort, deliver oneself state mood, sight back daily record, upload TV sectional drawing, DV video, share the subscription favorite program, invite the good friend to watch jointly or add the Internet trivial games, can also check good friend's tv state at any time, the numbering of place channel.
Embodiment
For making purpose of the present invention, technical scheme and advantage clearer, clear and definite, below develop simultaneously with reference to accompanying drawing that the present invention is described in more detail for embodiment.
Referring to Fig. 1, the TV interactive system based on widget provided by the invention, it comprises that kernel, interactive system start module, login module, Registering modules, social service function provides module, social activity to serve the function renewal module and fault is declared module.Described interactive system startup module, login module, Registering modules, social service function provide module, social service function renewal module and fault to declare module and are connected to kernel respectively.Described client and described service end are by broadcasting and TV broadband networks transmission data.
The widget module that described kernel provides for present embodiment, widget module comprise that widget uses and the widget engine.Described interactive system startup module is used to start the TV interactive system and sets up and obtain login interface with being connected of service end.Described login module is used for entering the TV interactive system by input account and password.Described Registering modules is used for obtaining to service end the number of the account of a login TV interactive system.Described social service function provides module to be used to provide the various functions of social service, it comprises the interpolation good friend, set up the interest cohort, set up the interest cohort, deliver the state mood, see the back daily record, upload TV sectional drawing, DV video, share the subscription favorite program, the invitation good friend watches jointly or adds the Internet trivial games, can also check good friend's tv state at any time, the numbering of place channel etc.Described social service function renewal module is used for the update mode of continuous all social service functions of monitoring service end, and the prompting user various social service functions that upgrade in time.Described fault is declared module and is used for sending or/and when receiving social service network data failure the prompting of display operation failure on client to service end in client.
Widget is can be to an application of adding some dynamic contents on based on the Web page of HTML.The function of a Widget all is to be realized by the code that the third party provides, and Web developer only need embed the page with these code blocks and get final product.Widget needs to rely on some disclosed Web API usually.API(Application Interface) being meant the web application interface, in simple terms, is to see through open the Internet transfer protocol, the service content that the provides interface with standard is defined, so that carry out service assembly between point-to-point.These API may be open by browser, or open by some Widget engines.Widget allows Web developer's Widget code that integrated any third party Web website is provided in their page so that in the website of oneself various information of polymerization and resource.
Referring to Fig. 2, the flow process based on the TV exchange method of widget that the embodiment of the invention provides may further comprise the steps:
S100: the TV interactive system is installed in client, and being connected of foundation and service end;
S200: start the TV interactive system to the service end request msg, obtain login interface;
S300: utilize login account login TV interactive system, if there is not login account then to pass through to server registration application login account;
S400: after entering the TV interactive system, service end is obtained the state of client and the number of place channel by the TV interactive system;
S500: select social service network application, and pass through the TV interactive system to service end request and/or the social service of transmission network data;
S600: service end is given client according to the social service of the request feedback network data of client, if client is not received the feedback information of service end, then gives to be out of order and declares.
The Internet is full-duplex communication, and TV can utilize up link to send request to service end, can be by the login fault of networking feedback client, and as user cipher mistake repeatedly, the user can connect webpage, fills in and complains report.Certainly, program receiving is undesired, also contact service center like this.
Fig. 3 is based on the XML of Android WebKit browser engine and JS modules A PI development process figure.Its step comprises: set up engineering; Create the XML topology file, define required Layout; Create the XML description document, comprise size and the update cycle of Widget; Definition WidgetProvider, initialization also obtains the load page resource; With page resource and Widget binding; Be registered to configuration file; Debugging, compiling, installation; Give Web page developer.
After setting up engineering, at first under application program, create topology file and the description document of Widget, comprise space shared on video screen, cycle time of renewal or the like.The Widget framework is to come Widget is controlled by broadcast mode, so each describes the XML file of Widget all to a radio receiver should be arranged.For at carrying out different operating as the different conditions of deletion, renewal, instantiation and unloading, framework provides the subclass of inheriting radio receiver, realizes then calling different callback methods under the different conditions, responds control thus.Thereby create the XML topology file, define required Layout and create the XML description document, comprise size and the update cycle definition of Widget.
The suitable container of Widget engine; can hold dissimilar Widget uses; for the Widget operation provides good running environment; usually realize based on general browser Kernel Technology; generally all comprise JavaScript analytics engine and Web engine, shielded the difference of underlying operating system, the main upper strata Widget of giving uses unified interface is provided; be responsible for finishing the management of whole Widget operation life cycle, comprise installation, resolve, play up, present and unload etc.The parsing that the Widget engine of different browsers kernel is write grammer to webpage is also different, and the Widget display effect is also variant.The general main Widget running environment that comprises of Widget engine, the XML/HTML parsing module, JS resolves expansion module, security module and plug-in unit etc.
WidgetProvider is used for initialization and obtains the load page resource, with page resource and Widget binding.With packaged API registration profile, Web page developer is given in debugging, compiling, installation at last.Will register in this class mainly is in order to handle click event, or the data among the renewal widgets, accept the change of data in the self-application, it is a receiver, when receiving sender's broadcasting, will oneself call onReceive () method, this is a call back function, by system call.In brief, WidgetProvider inherits from BroadcastReceiver, also is that the realization for asynchronous message mechanism exists, to being the broadcast that sends out to be filtered accept and a class component of response.
Figure 4 shows that the development process figure that widget uses.Obtain the Widget engine; Write Html and JS code and realize sharing the function webpage; API according to the engine of selecting for use provides is loaded into client terminal web page among the Widget; Operation, debugging; Be configured in the kernel of client.
Put up behind the environment of Eclipse and jdk and start Widget SDK, new construction, automatically can generate template, write web page code on this basis and realize sharing the webpage of function, the API that provides according to the engine of selecting for use resolves expanded function, client terminal web page is loaded among the Widget, is the inlet file of Widget comprising * .html, the integral layout of definition TV interactive system Widget.* the .css file is used for telling how the Widget engine shows this Widget, for example the color and dimensions of each element.* the .js document definition action that can carry out of Widget, such as the API that calls existing television program video, config.xml has comprised the metamessage of Widget, Widget title for example, author etc.Be configured in the kernel of client after operation, the debugging and promptly finished development.
Realize that effect can be: after entering android TV, the client of the Widget of installation TV interactive system, clicking the desktop blank space can start, select the configuration personalization attributes, will park on the computer desktop just as opening computer unlatching QQ at the resident a part of interface display WebWidget of TV desktop area afterwards.Different is open here just support the WebWidget browser engine, startup be the homepage of TV interactive system, just as open any browser enters everybody net homepage, therefore the operation after and everybody user experience are just the same.Then when watching program, data in the TV also can be shared, as directly reading the positive place of user channel number in the EPG information, the sectional drawing data when watching program, server also can send TV guide to interest group on the same group, and sets up message group that popular collection of drama is discussed or the like.When treating that open TV next time, can keep user's configuration information, WebWidget still shows on the specific region of TV desktop operation last time, and allows the interface configurations of user's modification WebWidget, the data that can reception server after landing then send.
Should be understood that application of the present invention is not limited to above-mentioned giving an example, for those of ordinary skills, can be improved according to the above description or conversion that all these improvement and conversion all should belong to the protection range of claims of the present invention.