CN109213950B - Data processing method and device for browser application of IPTV (Internet protocol television) intelligent set top box - Google Patents

Data processing method and device for browser application of IPTV (Internet protocol television) intelligent set top box Download PDF

Info

Publication number
CN109213950B
CN109213950B CN201710518732.3A CN201710518732A CN109213950B CN 109213950 B CN109213950 B CN 109213950B CN 201710518732 A CN201710518732 A CN 201710518732A CN 109213950 B CN109213950 B CN 109213950B
Authority
CN
China
Prior art keywords
key
browser application
data
space
data processing
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
CN201710518732.3A
Other languages
Chinese (zh)
Other versions
CN109213950A (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.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN201710518732.3A priority Critical patent/CN109213950B/en
Publication of CN109213950A publication Critical patent/CN109213950A/en
Application granted granted Critical
Publication of CN109213950B publication Critical patent/CN109213950B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a data processing method and device for an IPTV intelligent set top box browser application, and relates to the field of information processing. The method comprises the following steps: the method comprises the following steps that a local storage service device receives a data processing request sent by a browser application through a data operation interface, the local storage service device is embedded in an interactive network television IPTV intelligent set top box, and the local storage service device comprises a service storage space; and the local storage service device performs corresponding data processing on the storage space corresponding to the data processing request. Therefore, the cross-page and cross-browser uniform data storage which does not depend on the local storage capacity of the browser is realized.

Description

Data processing method and device for browser application of IPTV (Internet protocol television) intelligent set top box
Technical Field
The invention relates to the field of information processing, in particular to a data processing method and device for an IPTV intelligent set top box browser application.
Background
The service EPG (Electronic Program Guide) of the interactive network television IPTV is based on a B/S (Browser/Server) architecture. The page data loss can be caused by the EPG page switching and the browser closing on the set-top box.
The traditional browser storage method is based on the cache cookie, and has the defects of bandwidth consumption, limitation on the length of stored content and the like. The new HTML5 standard defines a local storage method, part of IPTV set-top box browsers do not support, and part of set-top boxes disable the local storage capability of the browsers due to the safety problem, so that the method for storing local data of WEB pages or WEB applications is limited, a uniform storage interface is not provided, the set-top box browsers are adapted to different types of set-top box browsers, and the development is difficult.
Disclosure of Invention
The invention solves the technical problem of how to realize the cross-page and cross-browser uniform data storage independent of the local storage capacity of the browser.
According to an aspect of the embodiments of the present invention, a data processing method for an IPTV smart set-top box browser application is provided, which includes: the method comprises the following steps that a local storage service device receives a data processing request sent by a browser application through a data operation interface, the local storage service device is embedded in an interactive network television IPTV intelligent set top box, and the local storage service device comprises a service storage space; and the local storage service device performs corresponding data processing on the storage space corresponding to the data processing request.
In one embodiment, the local storage service device receives a data storage request sent by a browser application through a data storage interface, wherein the data storage request comprises a browser application name space, a key name and a key value; the local storage service stores the key name and the key value on the browser application namespace.
In one embodiment, the data processing method further comprises: if the browser application name space does not exist in the service storage space, the local storage service device creates the browser application name space in the service storage space; and if the service storage space is insufficient when the browser application name space is created, releasing the data in the other application name spaces according to the query frequency or the storage time, and storing the key names and the key values in the other application name spaces.
In one embodiment, the data processing method further comprises: the local storage service device records the key name and the storage time of the key value corresponding to the key name.
In one embodiment, the local storage service device receives a data query request sent by a browser application through a data query interface, wherein the data query request comprises a browser application name space and a key name; and the local storage service device inquires a key value corresponding to the key name on the browser application namespace and returns the corresponding key value to the browser application.
In one embodiment, the data processing method further comprises: the local storage service device records the key name and the query frequency of the key value corresponding to the key name.
In one embodiment, the local storage service device receives a data deletion request sent by a browser application through a data deletion interface, wherein the data deletion request comprises a browser application name space and a key name; and the local storage service device deletes the key name and the key value corresponding to the key name on the browser application namespace.
In one embodiment, the service storage space includes a memory space and a disk space; the data processing method further comprises the following steps: preferentially storing the key name with the newer storage time and the key value corresponding to the key name into a memory space; and preferentially releasing the key names with longer storage time and the key values corresponding to the key names from the memory space.
In one embodiment, the service storage space includes a memory space and a disk space; the data processing method further comprises the following steps: firstly, storing key names with higher query frequency and key values corresponding to the key names into a memory space; the key names with lower query frequency and the key values corresponding to the key names are released from the memory space preferentially.
In one embodiment, the data processing method further comprises: the local storage service device is automatically started after receiving the broadcast message of the IPTV intelligent set top box system.
According to another aspect of the embodiments of the present invention, a local storage service device is provided, where the local storage service device is embedded in an IPTV intelligent set-top box, and the local storage service device includes a service storage space, a data operation interface, a request monitoring module, and a data processing module; wherein the request listening module is configured to: receiving a data processing request sent by a browser application through a data operation interface; the data processing module is configured to: and performing corresponding data processing on the storage space corresponding to the data processing request.
In one embodiment, the request listening module is configured to: receiving a data storage request sent by a browser application through a data storage interface, wherein the data storage request comprises a browser application name space, a key name and a key value; the data processing module is configured to: the key name and key value are stored on the browser application namespace.
In one embodiment, the data processing module is further configured to: if the browser application name space does not exist in the service storage space, creating the browser application name space in the service storage space; and if the service storage space is insufficient when the browser application name space is created, releasing the data in the other application name spaces according to the query frequency or the storage time, and storing the key names and the key values in the other application name spaces.
In one embodiment, the data processing module is further configured to: and recording the key name and the storage time of the key value corresponding to the key name.
In one embodiment, the request listening module is configured to: receiving a data query request sent by a browser application through a data query interface, wherein the data query request comprises a browser application name space and a key name; the data processing module is configured to: and inquiring a key value corresponding to the key name on the browser application namespace, and returning the corresponding key value to the browser application.
In one embodiment, the data processing module is configured to: and recording the key names and the query frequency of the key values corresponding to the key names.
In one embodiment, the request listening module is configured to: receiving a data deletion request sent by a browser application through a data deletion interface, wherein the data deletion request comprises a browser application name space and a key name; the data processing module is configured to: and deleting the key name and the key value corresponding to the key name on the browser application namespace.
In one embodiment, the service storage space includes a memory space and a disk space; the local storage service device further comprises a storage resource dynamic monitoring module configured to: preferentially storing the key name with the newer storage time and the key value corresponding to the key name into a memory space; and preferentially releasing the key names with longer storage time and the key values corresponding to the key names from the memory space.
In one embodiment, the service storage space includes a memory space and a disk space; the local storage service device further comprises a storage resource dynamic monitoring module configured to: firstly, storing key names with higher query frequency and key values corresponding to the key names into a memory space; the key names with lower query frequency and the key values corresponding to the key names are released from the memory space preferentially.
In one embodiment, the local storage service is configured to: and after receiving the broadcast message of finishing the starting of the IPTV intelligent set top box system, automatically starting.
According to still another aspect of embodiments of the present invention, there is provided a computer-readable storage medium storing computer instructions which, when executed by a processor, implement the aforementioned data processing method.
The data processing method provided by the invention can realize the cross-page and cross-browser uniform data storage independent of the local storage capacity of the browser.
Other features of the present invention and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a schematic flow chart illustrating a data processing method for an IPTV smart set-top box browser application according to an embodiment of the present invention.
Fig. 2 is a schematic flow chart of a data processing method for an IPTV smart set-top box browser application according to another embodiment of the present invention.
Fig. 3 is a schematic flow chart of a data processing method for an IPTV smart set-top box browser application according to another embodiment of the present invention.
Fig. 4 is a flowchart illustrating a data processing method for an IPTV smart set-top box browser application according to still another embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a local storage service device according to an embodiment of the present invention.
Fig. 6 is a schematic structural diagram of another embodiment of the local storage service apparatus of the present invention.
Fig. 7 is a schematic structural diagram of a local storage service apparatus according to another embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention can provide a data processing method and a data processing device of a cross-page and cross-browser uniform data storage operation interface for browser application in an IPTV intelligent set top box, which do not depend on the storage capacity of a browser.
First, a data processing method for an IPTV smart set-top box browser application according to an embodiment of the present invention is described with reference to fig. 1.
Fig. 1 is a schematic flow chart illustrating a data processing method for an IPTV smart set-top box browser application according to an embodiment of the present invention. As shown in fig. 1, the data processing method for an IPTV smart set-top box browser application of this embodiment includes:
and step S100, the local storage service device is automatically started after receiving the broadcast message of finishing the starting of the IPTV intelligent set top box system. The local storage service device is embedded in the IPTV intelligent set top box and comprises a service storage space.
The local storage service device embedded in the IPTV intelligent set-top box needs to be automatically started after the IPTV intelligent set-top box is started. The automatic starting time point may be the automatic starting after receiving the broadcast message of the system starting completion. The service storage space may specifically include a memory and a disk storage space.
Step S102, the local storage service device receives a data processing request sent by the browser application through the data operation interface.
Specifically, the data operation interface provided by the local storage service device to the outside can include a data storage interface, a data query interface and a data deletion interface. The data processing request may include a data storage request, a data query request, and a data delete request. The browser application may invoke a data manipulation interface provided externally by the local storage service device through an HTTP/HTTPs request.
And step S104, the local storage service device performs corresponding data processing on the storage space corresponding to the data processing request.
Specifically, the data processing may include data storage, data query, and data deletion.
The embodiment provides a cross-page and cross-browser uniform data operation interface by combining the actual situation of the IPTV intelligent set top box under the condition of not depending on the local storage capacity of the browser. Therefore, the data processing method for providing the cross-page and cross-browser uniform interface for the IPTV browser application is realized, and the method can be generally applied to IPTV intelligent set-top boxes.
A data processing method for an IPTV smart set-top box browser application according to another embodiment of the present invention is described below with reference to fig. 2.
Fig. 2 is a schematic flow chart of a data processing method for an IPTV smart set-top box browser application according to another embodiment of the present invention. As shown in fig. 2, the data processing method for the IPTV smart set-top box browser application of the embodiment includes:
step S202, the local storage service device receives a data storage request sent by the browser application through the data storage interface, wherein the data storage request comprises a browser application name space, a key name and a key value.
For example, a browser application calls a data storage operation, and an application namespace (namespace), a key name (key), and a key value (value) are attached to a data storage request as input parameters of a data storage interface.
The application namespace (namespace) is used for appointing the specific memory and disk storage space of the browser application, and the data of the browser application needs to be put into the storage space of the browser application, so that the conflict of key names of the data stored by different browser applications is avoided. The application namespace is unique to each application. Such as using a format such as com. < company name > < application name >, application namespace conflicts are avoided. The application name space maps a section of memory in the memory, the data stored in the disk by using the file is the corresponding file name, and the data stored in the disk by using the database is the table name of a table of the database. A key name (key) is used as an index to stored data, and the corresponding data is mapped by using the key name in a storage space of an application. The key value (value) is used as the data to be stored. The key value should be data having a certain structure, such as data in json, xml, or the like.
In step S204, the local storage service device stores the key name and the key value in the browser application namespace.
For example, the local storage service device stores the key value pair in a space of a namespace corresponding to the memory and the disk for memory caching and disk persistence.
The persistence of the disk may store data in a file-selected manner, or a lightweight database such as SQLite in an IPTV set-top box. A threshold value needs to be set in the memory storage space corresponding to the browser application, and the data cached in the memory by each application does not exceed the set threshold value. The total memory occupied by the local storage service may also have a set threshold, which may be a given value or a given ratio calculated based on the size of the available memory of the system.
In step S206, if the browser application namespace does not exist in the service storage space, the local storage service device creates a browser application namespace in the service storage space.
Step S208, if the service storage space is insufficient when the browser application namespace is created, releasing the data in the other application namespaces according to the query frequency or the storage time, and storing the key names and the key values in the other application namespaces.
When the browser application requests to perform data storage operation, the local storage service device determines the storage space of the application in the memory and the disk according to the parameter application name space. And if the name space does not exist, creating the name space, and storing the attached key value pair into the corresponding memory for caching and disk persistence.
In the embodiment, under the condition of not depending on the local storage capability of the browser, a cross-page and cross-browser uniform data storage interface is provided by combining the actual situation of the IPTV intelligent set top box. Therefore, the data storage method for providing the cross-page and cross-browser uniform storage interface for the IPTV browser application is realized, and the method can be generally applied to IPTV intelligent set-top boxes.
Optionally, the data processing method for the IPTV intelligent set-top box browser application in this embodiment may further include:
in step S210, the local storage service device records the key name and the storage time of the key value corresponding to the key name.
In step S212, the key name with the newer storage time and the key value corresponding to the key name are preferentially stored in the memory space.
In step S214, the key names with longer storage time and the key values corresponding to the key names are preferentially released from the memory space.
If the memory space is insufficient, the memory space of the data in the naming space of other applications can be released to the application for use according to the query frequency and the storage time of the data, and the storage time of the data is recorded. For example, sorting is performed according to storage time, data with the same storage time is sorted according to query frequency, and the data with the longest storage time and the lowest query frequency after sorting is released until the memory is sufficient. The data cached in the memory is the data with the latest storage time and the highest query frequency until enough data is cached.
The embodiment can provide a dynamic storage mode for the browser application based on the actual capacity of the IPTV set top box, thereby dynamically managing storage resources and providing two storage modes with different performance levels of data memory caching and disk persistence for the browser application.
A data processing method for an IPTV smart set-top box browser application according to another embodiment of the present invention is described below with reference to fig. 3.
Fig. 3 is a schematic flow chart of a data processing method for an IPTV smart set-top box browser application according to another embodiment of the present invention. As shown in fig. 3, the data processing method for the IPTV smart set-top box browser application of the embodiment includes:
step S302, the local storage service device receives a data query request sent by a browser application through the data query interface, where the data query request includes a browser application namespace and a key name.
For example, a browser application calls a data query operation, an application namespace (namespace) is attached to a request, a key (key) is used as an input parameter of an interface, and a local storage service device queries data in a namespace corresponding to a memory and a disk according to the key.
Step S304, the local storage service device queries a key value corresponding to the key name in the browser application namespace, and returns the corresponding key value to the browser application.
When the browser application requests to perform data query operation, the local storage service device determines the storage space of the application in the memory and the disk according to the parameter application namespace, and if the storage space cannot be found, the returned namespace has no error. Searching data in a memory according to the key name, recording the incremental increase of the data query frequency and returning the data if the data is found; otherwise, searching in the disk, if the data is found, recording the increment of the data query frequency and returning the data, otherwise, returning the data without errors.
In the embodiment, under the condition of not depending on the local storage capacity of the browser, a cross-page and cross-browser uniform data query interface is provided by combining the actual situation of the IPTV intelligent set top box. Therefore, the data query method for providing the cross-page and cross-browser uniform query interface for the IPTV browser application is realized, and the method can be generally applied to IPTV intelligent set top boxes.
Optionally, the data processing method for the IPTV intelligent set-top box browser application in this embodiment may further include:
step S306, the local storage service device records the key name and the query frequency of the key value corresponding to the key name.
Step S308, preferentially store the key name with higher query frequency and the key value corresponding to the key name into the memory space.
In step S310, the key names with low query frequency and the key values corresponding to the key names are preferentially released from the memory space.
For example, the ranking is done with query frequency and the same frequency data is ranked with storage time. And releasing the memory, namely releasing the data which has the lowest query frequency and the longest storage time after sequencing until the memory is sufficient. The data cached in the memory is the data with the highest query frequency and the latest storage time until enough data is cached.
The embodiment can provide a dynamic storage mode for the browser application based on the actual capacity of the IPTV set top box, thereby dynamically managing storage resources and providing two storage modes with different performance levels of data memory caching and disk persistence for the browser application.
A data processing method for an IPTV smart set-top box browser application according to another embodiment of the present invention is described below with reference to fig. 4.
Fig. 4 is a flowchart illustrating a data processing method for an IPTV smart set-top box browser application according to still another embodiment of the present invention. As shown in fig. 4, the data processing method for the IPTV smart set-top box browser application of the embodiment includes:
step S402, the local storage service device receives a data deletion request sent by the browser application through the data deletion interface, where the data deletion request includes a browser application namespace and a key name.
For example, a browser application calls a data deletion operation, an application namespace (namespace) is attached to the request, a key name (key) is used as an input parameter of an interface, and the local storage service device deletes data in a namespace space corresponding to a memory and a disk according to the key name.
In step S404, the local storage service device deletes the key name and the key value corresponding to the key name in the browser application namespace.
When the browser application requests to delete data, the local storage service device determines the storage space of the application in the memory and the disk according to the parameter application name space, and if the storage space cannot be found, the local storage service device returns. And deleting the corresponding data in the memory and the disk according to the key name, and returning after deletion.
In the embodiment, under the condition of not depending on the local storage capacity of the browser, a cross-page and cross-browser uniform data deletion interface is provided by combining the actual situation of the IPTV intelligent set top box. Therefore, the data deleting method for providing the cross-page and cross-browser uniform deleting interface for the IPTV browser application is realized, and the method can be generally applied to IPTV intelligent set-top boxes.
The local storage service apparatus according to an embodiment of the present invention is described below with reference to fig. 5.
Fig. 5 is a schematic structural diagram of a local storage service device according to an embodiment of the present invention. As shown in fig. 5, the local storage service apparatus 50 of the present embodiment includes:
a service memory space 502, a data operation interface 504, a request listening module 506, and a data processing module 508. Wherein the content of the first and second substances,
request listening module 506 is configured to: receiving a data processing request sent by a browser application through a data operation interface;
the data processing module 508 is configured to: and performing corresponding data processing on the storage space corresponding to the data processing request.
In one embodiment, data manipulation interface 504 includes a data storage interface 5042, a data query interface 5044, and a data deletion interface 5046.
In one embodiment, request listening module 506 is configured to: receiving a data storage request sent by a browser application through a data storage interface, wherein the data storage request comprises a browser application name space, a key name and a key value; the data processing module 508 is configured to: the key name and key value are stored on the browser application namespace.
In one embodiment, the data processing module 508 is further configured to: if the browser application name space does not exist in the service storage space, creating the browser application name space in the service storage space; and if the service storage space is insufficient when the browser application name space is created, releasing the data in the other application name spaces according to the query frequency or the storage time, and storing the key names and the key values in the other application name spaces.
In one embodiment, the data processing module 508 is further configured to: and recording the key name and the storage time of the key value corresponding to the key name.
In one embodiment, request listening module 506 is configured to: receiving a data query request sent by a browser application through a data query interface, wherein the data query request comprises a browser application name space and a key name; the data processing module is configured to: and inquiring a key value corresponding to the key name on the browser application namespace, and returning the corresponding key value to the browser application.
In one embodiment, the data processing module 508 is configured to: and recording the key names and the query frequency of the key values corresponding to the key names.
In one embodiment, request listening module 506 is configured to: receiving a data deletion request sent by a browser application through a data deletion interface, wherein the data deletion request comprises a browser application name space and a key name; the data processing module 508 is configured to: and deleting the key name and the key value corresponding to the key name on the browser application namespace.
In one embodiment, the service storage space 502 includes a memory space 5022 and a disk space 5024; the local storage service 50 further includes a storage resource dynamic monitoring module 510 configured to: preferentially storing the key name with the newer storage time and the key value corresponding to the key name into a memory space; and preferentially releasing the key names with longer storage time and the key values corresponding to the key names from the memory space.
In one embodiment, the service storage space 502 includes a memory space 5022 and a disk space 5024; the local storage service 50 further includes a storage resource dynamic monitoring module 510 configured to: firstly, storing key names with higher query frequency and key values corresponding to the key names into a memory space; the key names with lower query frequency and the key values corresponding to the key names are released from the memory space preferentially.
In one embodiment, the local storage service 50 is further configured to: and after receiving the broadcast message of finishing the starting of the IPTV intelligent set top box system, automatically starting.
Fig. 6 is a schematic structural diagram of another embodiment of the local storage service apparatus of the present invention. As shown in fig. 6, the local storage service apparatus 60 of this embodiment includes: a memory 610 and a processor 620 coupled to the memory 610, wherein the processor 620 is configured to execute the data processing method of the IPTV smart set-top box browser application in any of the foregoing embodiments based on instructions stored in the memory 610.
Memory 610 may include, for example, system memory, fixed non-volatile storage media, and the like. The system memory stores, for example, an operating system, an application program, a Boot Loader (Boot Loader), and other programs.
Fig. 7 is a schematic structural diagram of a local storage service apparatus according to another embodiment of the present invention. As shown in fig. 7, the local storage service apparatus 70 of this embodiment includes: the memory 610 and the processor 620 may further include an input/output interface 730, a network interface 740, a storage interface 750, and the like. These interfaces 730, 740, 750, as well as the memory 610 and the processor 620, may be connected via a bus 750, for example. The input/output interface 730 provides a connection interface for input/output devices such as a display, a mouse, a keyboard, and a touch screen. The network interface 740 provides a connection interface for various networking devices. The storage interface 750 provides a connection interface for external storage devices such as an SD card and a usb disk.
The present invention also includes a computer readable storage medium having stored thereon computer instructions, which when executed by a processor, implement the data processing method of the IPTV smart set-top box browser application in any of the foregoing embodiments.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable non-transitory storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (12)

1. A data processing method for an IPTV intelligent set-top box browser application is characterized by comprising the following steps:
the method comprises the steps that a local storage service device is automatically started after a broadcast message of the IPTV intelligent set top box system is started is received, the local storage service device is embedded in an interactive network television IPTV intelligent set top box, the local storage service device comprises a service storage space, and the service storage space comprises a memory space and a disk space;
the local storage service device receives a data processing request sent by a browser application through a data operation interface, and comprises the following steps: the method comprises the steps that a local storage service device receives a data storage request sent by a browser application through a data storage interface, wherein the data storage request comprises a browser application name space, a key name and a key value;
the local storage service device performs corresponding data processing on the storage space corresponding to the data processing request, and the data processing method includes: the local storage service device stores the key name and the key value in the browser application namespace; if the browser application name space does not exist in the service storage space, the local storage service device creates the browser application name space in the service storage space; if the service storage space is insufficient when the browser application name space is created, releasing data in other application name spaces according to query frequency or storage time, and storing key names and key values in other application name spaces;
the local storage service device records the key names and the storage time of the key values corresponding to the key names, and preferentially stores the key names with the newer storage time and the key values corresponding to the key names into the memory space; and preferentially releasing the key names with longer storage time and the key values corresponding to the key names from the memory space.
2. The data processing method of claim 1,
the local storage service device receives a data query request sent by browser application through a data query interface, wherein the data query request comprises a browser application name space and a key name;
and the local storage service device inquires a key value corresponding to the key name on the browser application namespace and returns the corresponding key value to the browser application.
3. The data processing method of claim 2, wherein the data processing method further comprises:
the local storage service device records the key name and the query frequency of the key value corresponding to the key name.
4. The data processing method of claim 1,
the local storage service device receives a data deletion request sent by the browser application through a data deletion interface, wherein the data deletion request comprises a browser application name space and a key name;
and the local storage service device deletes the key name and the key value corresponding to the key name in the browser application namespace.
5. The data processing method of claim 3, wherein the service storage space comprises a memory space and a disk space;
the data processing method further comprises:
firstly, storing key names with higher query frequency and key values corresponding to the key names into a memory space;
the key names with lower query frequency and the key values corresponding to the key names are released from the memory space preferentially.
6. A local storage service device is embedded in an IPTV intelligent set top box and is configured to be automatically started after a broadcast message of the IPTV intelligent set top box system is received, the local storage service device comprises a service storage space, a data operation interface, a request monitoring module, a data processing module and a storage resource dynamic monitoring module, and the service storage space comprises a memory space and a disk space; wherein the content of the first and second substances,
the request listening module is configured to: receiving a data processing request sent by a browser application through a data operation interface, wherein the data processing request comprises the following steps: receiving a data storage request sent by a browser application through a data storage interface, wherein the data storage request comprises a browser application name space, a key name and a key value;
the data processing module is configured to: performing corresponding data processing on a storage space corresponding to the data processing request, including: storing a key name and a key value in the browser application namespace; if the browser application name space does not exist in the service storage space, the browser application name space is created in the service storage space; if the service storage space is insufficient when the browser application name space is created, releasing the data in the other application name spaces according to the query frequency or the storage time, and storing the key names and the key values in the other application name spaces
The data processing module is further configured to: recording key names and storage time of key values corresponding to the key names;
the storage resource dynamic monitoring module is configured to: preferentially storing the key name with the newer storage time and the key value corresponding to the key name into a memory space; and preferentially releasing the key names with longer storage time and the key values corresponding to the key names from the memory space.
7. The local storage service apparatus of claim 6,
the request listening module is configured to: receiving a data query request sent by a browser application through a data query interface, wherein the data query request comprises a browser application name space and a key name;
the data processing module is configured to: and inquiring a key value corresponding to the key name on the browser application namespace, and returning the corresponding key value to the browser application.
8. The local storage service apparatus of claim 7, wherein the data processing module is configured to: and recording the key names and the query frequency of the key values corresponding to the key names.
9. The local storage service apparatus of claim 6,
the request listening module is configured to: receiving a data deletion request sent by a browser application through a data deletion interface, wherein the data deletion request comprises a browser application name space and a key name;
the data processing module is configured to: and deleting the key name and the key value corresponding to the key name in the browser application namespace.
10. The local storage service as claimed in claim 8, wherein said service storage space comprises a memory space and a disk space;
the local storage service device further comprises a storage resource dynamic monitoring module configured to:
firstly, storing key names with higher query frequency and key values corresponding to the key names into a memory space;
the key names with lower query frequency and the key values corresponding to the key names are released from the memory space preferentially.
11. A local storage service apparatus, comprising:
a memory; and
a processor coupled to the memory, the processor configured to perform the data processing method of any of claims 1 to 5 based on instructions stored in the memory.
12. A computer-readable storage medium storing computer instructions which, when executed by a processor, implement the data processing method of any one of claims 1 to 5.
CN201710518732.3A 2017-06-30 2017-06-30 Data processing method and device for browser application of IPTV (Internet protocol television) intelligent set top box Active CN109213950B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710518732.3A CN109213950B (en) 2017-06-30 2017-06-30 Data processing method and device for browser application of IPTV (Internet protocol television) intelligent set top box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710518732.3A CN109213950B (en) 2017-06-30 2017-06-30 Data processing method and device for browser application of IPTV (Internet protocol television) intelligent set top box

Publications (2)

Publication Number Publication Date
CN109213950A CN109213950A (en) 2019-01-15
CN109213950B true CN109213950B (en) 2021-05-18

Family

ID=64960964

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710518732.3A Active CN109213950B (en) 2017-06-30 2017-06-30 Data processing method and device for browser application of IPTV (Internet protocol television) intelligent set top box

Country Status (1)

Country Link
CN (1) CN109213950B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109831701B (en) * 2019-01-28 2021-12-21 四川长虹电器股份有限公司 Digital television equipment browser and method for expanding cross-page system event
CN110597738B (en) * 2019-09-19 2023-09-12 浪潮软件集团有限公司 Memory release method, terminal and computer readable storage medium
CN114915854B (en) * 2022-05-18 2023-07-04 中山亿联智能科技有限公司 Method for constructing IPTV service based on external set top box equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102779181A (en) * 2012-06-29 2012-11-14 广州市动景计算机科技有限公司 Browser off-line storage data processing method based on hypertext markup language (HTML) 5 and browser
CN103294700A (en) * 2012-02-24 2013-09-11 腾讯科技(北京)有限公司 Cross-browser data local storage method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8489708B2 (en) * 2010-04-06 2013-07-16 Microsoft Corporation Virtual application extension points
US9934393B2 (en) * 2015-04-21 2018-04-03 Sap Se Transparent namespace-aware mechanism for encrypted storage of data within web applications

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103294700A (en) * 2012-02-24 2013-09-11 腾讯科技(北京)有限公司 Cross-browser data local storage method and device
CN102779181A (en) * 2012-06-29 2012-11-14 广州市动景计算机科技有限公司 Browser off-line storage data processing method based on hypertext markup language (HTML) 5 and browser

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"兼容多浏览器的本地存储 ";兰儿;《http://www.cnblogs.com/xiaowei0705/archive/2011/04/19/2021372.html 》;20140319;第1-20页 *

Also Published As

Publication number Publication date
CN109213950A (en) 2019-01-15

Similar Documents

Publication Publication Date Title
KR101994021B1 (en) File manipulation method and apparatus
US11394796B2 (en) Dynamic and static data of metadata objects
CN110688595B (en) File online preview method, device, equipment and storage medium
CN105843819B (en) Data export method and device
CN109213950B (en) Data processing method and device for browser application of IPTV (Internet protocol television) intelligent set top box
CN105095280A (en) Caching method and apparatus for browser
CN103699674A (en) Webpage storing method, webpage opening method, webpage storing device, webpage opening device and webpage browsing system
CN109634753B (en) Data processing method, device, terminal and storage medium for switching browser kernels
CN110134738A (en) Distributed memory system resource predictor method, device
CN111782692A (en) Frequency control method and device
CN112256772A (en) Data service method, device and readable storage medium
CN101808218A (en) Method, device and system for acquiring and updating content of electronic program guide
CN110688201B (en) Log management method and related equipment
CN113297267A (en) Data caching and task processing method, device, equipment and storage medium
CN109101429B (en) Method and device for debugging browser page of set top box
CN114637499B (en) Visualization component processing method, device, equipment and medium
CN103618961A (en) Method, system and browser for displaying video title
CN109889608B (en) Dynamic resource loading method and device, electronic equipment and storage medium
CN107103001B (en) Method, device and system for acquiring target front-end resource file based on browser
CN111143293B (en) Metadata acquisition method, device, equipment and computer readable storage medium
CN107918654B (en) File decompression method and device and electronic equipment
CN111405015A (en) Data processing method, device, equipment and storage medium
CN109324858B (en) Method and device for acquiring display content in webpage
CN114925026B (en) Electronic file utilization method and device, storage medium and electronic equipment
CN110809013B (en) Monitoring data acquisition method and device, electronic equipment and storage medium

Legal Events

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