CN105554571B - A kind of TV network system realization and device based on Firefox OS - Google Patents
A kind of TV network system realization and device based on Firefox OS Download PDFInfo
- Publication number
- CN105554571B CN105554571B CN201410607393.2A CN201410607393A CN105554571B CN 105554571 B CN105554571 B CN 105554571B CN 201410607393 A CN201410607393 A CN 201410607393A CN 105554571 B CN105554571 B CN 105554571B
- Authority
- CN
- China
- Prior art keywords
- firefox
- function
- layer
- layers
- module
- 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
Links
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Alarm Systems (AREA)
Abstract
The present invention discloses a kind of TV network system realization and device based on Firefox OS, wherein, method is comprising steps of extend a service logic frame on upper layer, the service logic frame realizes the separation of interface and business using C/S framework, server end is abstract to be realized service logic and interacts with TV bottom library downwards, and client contains the control interface for meeting TV control function for pulling out and;The graphic layer of Firefox OS display system is carried out hollowing out processing, to appear osd layers, for exporting display TV picture;It monitors and is transmitted to application layer after listening to message from the message that driving layer transmits and is responded by call back function.The present invention is extended TV system in terms of three, realizes the logic control part of TV as linux, run the part can on the intelligent television system based on linux, and web application can operate smart television as operating common handheld device.
Description
Technical field
The present invention relates to intelligent television system field more particularly to a kind of TV network system realizations based on Firefox OS
And device.
Background technique
Firefox OS is a webpage layout engine write based on the gecko(of firefox with C++) intelligence of kernel
Web operating system, have at present the handheld devices such as the mobile phone based on the system listing, but due to the system be for handheld device and
Design, so can not also apply on smart television, such as without functions such as TV control, display and Message Processings, also without
The image of Buddha operates common handheld device and equally operates television equipment.
Therefore, the existing technology needs to be improved and developed.
Summary of the invention
In view of above-mentioned deficiencies of the prior art, the purpose of the present invention is to provide a kind of TV systems based on Firefox OS
Implementation method and device, it is intended to which solving existing smart television can not be using asking of being manipulated of Firefox OS operating system
Topic.
Technical scheme is as follows:
A kind of TV network system realization based on Firefox OS, wherein comprising steps of
A service logic frame is extended on upper layer, the service logic frame realizes interface and business using C/S framework
Separation, server end is abstract to be realized service logic and interacts with TV bottom library downwards, and client contains expiring of pulling out
The control interface of sufficient TV control function;
The graphic layer of Firefox OS display system is carried out hollowing out processing, to appear osd layers, for exporting display
TV picture;
It monitors and is transmitted to application layer after listening to message from the message that driving layer transmits and is rung by call back function
It answers.
The TV network system realization based on Firefox OS, wherein
A tv module is added in gecko layers of navigator object, each function of tv module corresponds to client
One control interface, the web on upper layer apply the function of being called in tv module in a manner of navigator.tv.function.
The TV network system realization based on Firefox OS, wherein the web on upper layer, which is applied, passes through webidl method
The tv object that tv module is converted to javascript applies the web on upper layer using navigator.tv.function mode
Access the method that the tv object and the tv object provide.
The TV network system realization based on Firefox OS, wherein gecko layers pass through binding between webidl
Mode is converted, and the module that c++ language is realized is converted to webidl language and is realized.
The TV network system realization based on Firefox OS, wherein pass through the device file interface of linux standard
Graphic layers are carried out hollow out processing, these device file interfaces are passed to web application layer, web application layer by gecko layers
The positions and dimensions size hollowed out by state modulator.
The TV network system realization based on Firefox OS, wherein lib layers of linux are monitored disappearing for driving layer
Breath, while realizing a registration function, registration function progress is successively encapsulated into webidl layers, web application is made to call registration letter
Number, passes to bottom by registration function for call back function.
A kind of TV system implementation device based on Firefox OS, wherein include:
TV control system, for extending a service logic frame on upper layer, the service logic frame uses C/S framework
Realize the separation of interface and business, server end is abstract to be realized service logic and interact with TV bottom library downwards, and client includes
Pull out the control interface that meets TV control function come;
TV display system carries out hollowing out processing, to appear osd for the graphic layer to Firefox OS display system
Layer, for exporting display TV picture;
TV message system is transmitted to application layer and passes through for monitoring from the message that driving layer transmits after listening to message
Call back function is responded.
The TV system implementation device based on Firefox OS, wherein the TV control system specifically includes:
Calling module, for adding a tv module, each letter of tv module in gecko layers of navigator object
One control interface of the corresponding client of number, the web on upper layer is applied calls tv module in a manner of navigator.tv.function
In function.
The TV system implementation device based on Firefox OS, wherein the TV display system specifically includes:
Module is hollowed out, graphic layers are carried out for the device file interface by linux standard to hollow out processing,
These device file interfaces are passed to web application layer by gecko layers, the position and ruler that web application layer is hollowed out by state modulator
Very little size.
The TV system implementation device based on Firefox OS, wherein the TV message system specifically includes:
Processing module monitors the message of driving layer for lib layers of linux, while realizing a registration function, will register
Function progress is successively encapsulated into webidl layers, so that web application is called registration function, call back function is passed to by registration function
Bottom.
The utility model has the advantages that the present invention on the basis of Firefox OS native system, according to the characteristic of intelligent television equipment, adds
TV system, and TV system is extended in terms of three: control, display and message, using the logic control part of TV as mark
Quasi- linux is realized, run the part can on any intelligent television system based on linux, and web application can be common as operating
Handheld device is the same, operates smart television.
Detailed description of the invention
Fig. 1 is a kind of flow chart of the TV network system realization preferred embodiment based on Firefox OS of the present invention.
Fig. 2 is the architecture diagram of service logic frame in the present invention.
Fig. 3 is the architecture diagram of gecko and service logic frame in the present invention.
Fig. 4 is the architecture diagram that tv module is called in web application in the present invention.
Fig. 5 is tv control system extension framework figure of the invention.
Fig. 6 is the displaying principle figure of tv display system of the invention.
Fig. 7 is to the graphic layers of displaying principle figure that hollows out that treated.
Fig. 8 is tv message system extension framework figure of the invention.
Fig. 9 is a kind of structural block diagram of the TV system implementation device preferred embodiment based on Firefox OS of the present invention.
Specific embodiment
The present invention provides a kind of TV network system realization and device based on Firefox OS, for make the purpose of the present invention,
Technical solution and effect are clearer, clear, and the present invention is described in more detail below.It should be appreciated that described herein
Specific embodiment is only used to explain the present invention, is not intended to limit the present invention.
Referring to Fig. 1, Fig. 1 is a kind of stream of the TV network system realization preferred embodiment based on Firefox OS of the present invention
Cheng Tu, as shown, itself comprising steps of
S101, a service logic frame is extended on upper layer, which realizes interface and industry using C/S framework
The separation of business, server end is abstract to be realized service logic and interacts with TV bottom library downwards, and client, which contains, to be pulled out
Meet the control interface of TV control function;
S102, the graphic layer of Firefox OS display system is carried out hollowing out processing, to appear osd layers, for exporting
Show TV picture;
S103, monitor from the message that transmits of driving layer, after listening to message, be transmitted to application layer by call back function into
Row response.
It should be noted that the sequence of above-mentioned steps is just for the sake of facilitating explanation, there are many modes realized.
In step s101, chip supplier can generally provide TV driving and a set of C for encapsulating TV bottom control interface
The dynamic base that language is realized, but these bank interfaces only simply enumerate the control interface of TV, and it is unable to satisfy the business on upper layer
Demand.
So the service logic in order to realize TV, this step extends a set of service logic frame, the service logic on upper layer
Frame can realize that the present embodiment is the hardware abstraction layer extension one in system (Firefox OS) in each layer of system framework
The service logic frame of a exclusive TV, performance is more excellent and is more convenient transplanting.
The service logic frame is using C Plus Plus realization, the performance compared with using java language or javascript language
There is large increase, while can be run in any intelligence system based on linux.
The service logic frame uses C/S(client/service, client end/server end) framework realizes interface and industry
The separation of business, the end client and the end service therein are deployed in the end TV, and task is reasonably allocated to client by C/S structure
End and the end service, wherein it has pulled out the control interface for meeting TV control function at the end client, is responsible for receiving user's
Request, its function of the end service are then to realize service logic, and directly interact with TV bottom library downwards, that is, realize the two function
The separation of energy.As shown in Fig. 2, the end client is communicated with the end service by the Inter-Process Communication mechanism of linux.
The service logic frame is compiled into the linux dynamic base of standard, and the linux dynamic base is by dlopen(to refer to
Mould-fixed opens specified dynamic link library file) mode loads TV bottom library.
The Web application of TV can't call directly the control interface at the end client of TV service logic frame, so also needing
The control interface at the end client is continued up into extension.In the present embodiment, as shown in figure 3, the navigator(in gecko navigates
Device includes the information in relation to browser) a tv module is added in object, the web on upper layer, which is applied, passes through javascript language
The function in tv module is called in a manner of navigator. tv.function.Gecko is firefox browser engine, and
The core layer of Firefox OS, the navigator object of gecko represent the function that gecko has, and Gecko layers can pass through volume
The mode for translating dynamic link loads the service logic frame of TV, and each function of tv module corresponds to a control at the end client
Interface processed.
The function in gecko is called in the Web application on upper layer, can be realized by webidl mode, webidl is W3C Web
A kind of extension javascript object of IDL specification and its specification of method as shown in Figure 4 and Figure 5 can by webidl method
The tv module of navigator is converted to a tv object of javascript, in this way, web application can be used
Navigator.tv.function mode accesses the method that the tv object and the tv object provide.Gecko layers between webidl
It is converted by bindings (binding) mode, the module that c++ language is realized is converted into webidl language description.
By the extension and encapsulation of above each layer, the web on upper layer, which is applied, can pass through javascript language call tv mould
The function of block controls TV.
A tv module is added in gecko layers of navigator object, each function of tv module corresponds to client
One control interface, the web on upper layer apply the function of being called in tv module in a manner of navigator.tv.function.
Firefox OS display system is divided into video layers, graphic layers and osd layers, this three layers of mixed displays;Such as Fig. 6 institute
Show, wherein graphic layers in top layer, osd layers in centre, video layers in bottom, operation system interface is i.e. at graphic layers
It has been shown that, TV picture are directly output to osd layers, and video class shows that this three layers are mixed by the graphics system of gecko at video layers
Close superposition.
In order to show TV picture, while TV picture size, position are controlled, scheme used by the embodiment of the present invention
That graphic layers are hollowed out, graphic layers be hollowed out after can appear osd layers of TV picture.
Specifically, hollowing out processing to graphic layers can be realized by the device file interface of linux standard, gecko layers
These device file interfaces are passed through into web application layer by webidl and binding mode, as shown in fig. 7, web application layer passes through
Transmit the coordinate and the size position that hollows out of control and size of cut-out, thus realize the control of TV picture position and
Picture size control.
TV message system is using callback mechanism realization, lib layers of the linux of TV, as shown in figure 8, it is responsible for monitoring driving layer
The message transmitted, while realizing a registration function, the parameter of the registration function is the call back function for handling message, i.e., specifically
That the message is handled by call back function, and in order to which the call back function of application layer is transmitted, registration function need to be carried out by
Layer encapsulation, is encapsulated into webidl layers, and when listening to driving layer has message, web application can call registration function, by its parameter
I.e. call back function transmits, and is finally handled by call back function and is handled the message.
Based on the above method, the present invention also provides a kind of TV system implementation devices based on Firefox OS, such as Fig. 9 institute
Show comprising:
TV control system 100, for extending a service logic frame on upper layer, the service logic frame uses C/S
Framework realizes the separation of interface and business, and server end is abstract to be realized service logic and interact with TV bottom library downwards, client
Contain the control interface for meeting TV control function for pulling out and;
TV display system 200 carries out hollowing out processing, to appear for the graphic layer to Firefox OS display system
Osd layers, for exporting display TV picture;
TV message system 300 is transmitted to application layer after listening to message for monitoring from the message that driving layer transmits
It is responded by call back function.
Further, the TV control system 100 specifically includes:
Calling module, for adding a tv module, each letter of tv module in gecko layers of navigator object
One control interface of the corresponding client of number, the web on upper layer is applied calls tv module in a manner of navigator.tv.function
In function.
Further, the TV display system 200 specifically includes:
Module is hollowed out, graphic layers are carried out for the graphical user interface by linux standard to hollow out processing,
These device file interfaces are passed to web application layer by gecko layers, the position and ruler that web application layer is hollowed out by state modulator
Very little size.
Further, the TV message system 300 specifically includes:
Processing module monitors the message of driving layer for lib layers of linux, while realizing a registration function, will register
Function progress is successively encapsulated into webidl layers, so that web application is called registration function, call back function is then passed to bottom, from
And the message of driving layer is handled.
It has been described in detail in the method for technical detail in front about above-mentioned module, so it will not be repeated.
In conclusion the present invention on the basis of Firefox OS native system, according to the characteristic of intelligent television equipment, adds
TV system, and TV system is extended in terms of three: control, display and message, using the logic control part of TV as mark
Quasi- linux is realized, run the part can on any intelligent television system based on linux, and web application can be common as operating
Handheld device is the same, operates smart television.
It should be understood that the application of the present invention is not limited to the above for those of ordinary skills can
With improvement or transformation based on the above description, all these modifications and variations all should belong to the guarantor of appended claims of the present invention
Protect range.
Claims (10)
1. a kind of TV network system realization based on Firefox OS, which is characterized in that comprising steps of
A service logic frame is extended in the hardware abstraction layer of Firefox OS, the service logic frame uses C/S framework
Realize the separation of interface and business, server end is abstract to be realized service logic and interact with TV bottom library downwards, and client includes
Pull out the control interface that meets TV control function come;
The graphic layer of Firefox OS display system is carried out hollowing out processing, to appear osd layers, is drawn for exporting display TV
Face;
It monitors and is transmitted to application layer after listening to message from the message that driving layer transmits and is responded by call back function.
2. the TV network system realization according to claim 1 based on Firefox OS, which is characterized in that
A tv module is added in gecko layers of navigator object, each function of tv module corresponds to one of client
Control interface, the web of the hardware abstraction layer of Firefox OS is applied calls tv module in a manner of navigator.tv.function
In function.
3. the TV network system realization according to claim 2 based on Firefox OS, which is characterized in that Firefox OS
The web of hardware abstraction layer apply tv module be converted to the tv object of javascript by webidl method, make Firefox
Using using, navigator.tv.function mode accesses the tv object to the web of the hardware abstraction layer of OS and the tv object mentions
The method of confession.
4. the TV network system realization according to claim 3 based on Firefox OS, which is characterized in that gecko layers with
It is converted between webidl by binding mode, the module that c++ language is realized is converted into webidl language and is realized.
5. the TV network system realization according to claim 1 based on Firefox OS, which is characterized in that pass through linux
The device file interface of standard carries out graphic layers hollowing out processing, and gecko layers pass to these device file interfaces
Web application layer, the positions and dimensions size that web application layer is hollowed out by state modulator.
6. the TV network system realization according to claim 1 based on Firefox OS, which is characterized in that linux lib
Layer monitors the message of driving layer, while realizing a registration function, and registration function progress is successively encapsulated into webidl layers, is made
Registration function is called in web application, and call back function is passed to bottom by registration function.
7. a kind of TV system implementation device based on Firefox OS characterized by comprising
TV control system extends a service logic frame, the service logic for the hardware abstraction layer in Firefox OS
Frame realizes the separation of interface and business using C/S framework, server end is abstract realize service logic and downwards with TV bottom library
Interaction, client contain the control interface for meeting TV control function for pulling out and;
TV display system carries out hollowing out processing for the graphic layer to Firefox OS display system, to appear osd layers, uses
TV picture is shown in output;
TV message system is transmitted to application layer and passes through readjustment for monitoring from the message that driving layer transmits after listening to message
Function is responded.
8. the TV system implementation device according to claim 7 based on Firefox OS, which is characterized in that the TV control
System specifically includes:
Calling module, for adding a tv module, each function pair of tv module in gecko layers of navigator object
A control interface of client is answered, the web of the hardware abstraction layer of Firefox OS is applied with navigator.tv.function
Mode calls the function in tv module.
9. the TV system implementation device according to claim 7 based on Firefox OS, which is characterized in that the TV is shown
System specifically includes:
Module is hollowed out, hollow out processing to graphic layers for the device file interface by linux standard, gecko layers
These device file interfaces are passed into web application layer, the positions and dimensions size that web application layer is hollowed out by state modulator.
10. the TV system implementation device according to claim 7 based on Firefox OS, which is characterized in that the TV disappears
Breath system specifically includes:
Processing module monitors the message of driving layer for lib layers of linux, while realizing a registration function, by registration function
Progress is successively encapsulated into webidl layers, so that web application is called registration function, call back function is passed to bottom by registration function
Layer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410607393.2A CN105554571B (en) | 2014-11-03 | 2014-11-03 | A kind of TV network system realization and device based on Firefox OS |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410607393.2A CN105554571B (en) | 2014-11-03 | 2014-11-03 | A kind of TV network system realization and device based on Firefox OS |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105554571A CN105554571A (en) | 2016-05-04 |
CN105554571B true CN105554571B (en) | 2019-01-04 |
Family
ID=55833473
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410607393.2A Active CN105554571B (en) | 2014-11-03 | 2014-11-03 | A kind of TV network system realization and device based on Firefox OS |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105554571B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019090658A1 (en) | 2017-11-10 | 2019-05-16 | 华为技术有限公司 | Method and device for playing television programs |
CN115174552B (en) * | 2022-05-31 | 2024-03-29 | 华东计算技术研究所(中国电子科技集团公司第三十二研究所) | Local area network communication and file transmission method and system based on WEB operating system |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8544040B2 (en) * | 2006-12-29 | 2013-09-24 | Google Inc. | System and method for displaying multimedia events scheduling information |
CN102375657A (en) * | 2010-08-09 | 2012-03-14 | 晨星软件研发(深圳)有限公司 | Display control device and method for controller to select display image interaction objects |
CN102945187B (en) * | 2012-09-29 | 2015-04-01 | 乐视致新电子科技(天津)有限公司 | QtWebKit optimization method based on set top box middleware |
CN103686365A (en) * | 2013-12-11 | 2014-03-26 | 上海巍岭数码科技有限公司 | Android set top box system under B/S service model |
-
2014
- 2014-11-03 CN CN201410607393.2A patent/CN105554571B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN105554571A (en) | 2016-05-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2911342B1 (en) | Home gateway and intelligent terminal integrated system and communication method therefor | |
CN104461575B (en) | The device and method that a kind of across Mobile operating system platform native interface of page script language is called | |
CN109634751B (en) | Method for realizing communication between application layer and bottom layer by utilizing electron framework | |
CN105320440B (en) | Information processing method, device and system | |
US11016716B2 (en) | Picture interface display method and apparatus according to jump protocol | |
CN102164167B (en) | Method and system for remote-control classified transmission | |
CA2557111A1 (en) | System and method for building mixed mode execution environment for component applications | |
CN104133610B (en) | The split screen exchange method of mobile terminal and mobile terminal | |
CN111580879A (en) | Applet running method and device, electronic equipment and computer storage medium | |
CN103544059B (en) | The realization method and system of pending buffer effect during a kind of application switching | |
CN103650458A (en) | Transmission method, device and system of media streams | |
CN110634171B (en) | Device and method for drawing map | |
US20240069850A1 (en) | Application Sharing Method, Electronic Device, and Storage Medium | |
CN109828848A (en) | Platform services cloud server and its multi-user operation method | |
CN105554571B (en) | A kind of TV network system realization and device based on Firefox OS | |
CN110991368A (en) | Camera scene recognition method and related device | |
CN103605535A (en) | Operation method and system of intelligent display device, intelligent display device and mobile device | |
CN102364920B (en) | A kind of remote operation method based on android system and system | |
CN103177028A (en) | Method and system for information interaction | |
CN104571782A (en) | Remote control method, system, controlling terminal and controlled terminal | |
CN106980531A (en) | Input method operation processing method and device | |
CN104020849A (en) | Multi-program simultaneous display method and system based on windows CE | |
CN106775616A (en) | Distribution service based on C++ Yu Java hybrid programmings | |
WO2023207912A1 (en) | Split-screen rendering method and apparatus, device, and storage medium | |
WO2023045510A1 (en) | Method and apparatus for establishing voice channel, electronic device, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |