CN111356021A - Control method of television application, smart television and readable storage medium - Google Patents

Control method of television application, smart television and readable storage medium Download PDF

Info

Publication number
CN111356021A
CN111356021A CN202010289391.9A CN202010289391A CN111356021A CN 111356021 A CN111356021 A CN 111356021A CN 202010289391 A CN202010289391 A CN 202010289391A CN 111356021 A CN111356021 A CN 111356021A
Authority
CN
China
Prior art keywords
interface
television application
control instruction
interface function
television
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010289391.9A
Other languages
Chinese (zh)
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.)
Shenzhen TCL Digital Technology Co Ltd
Original Assignee
Shenzhen TCL Digital Technology Co 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 Shenzhen TCL Digital Technology Co Ltd filed Critical Shenzhen TCL Digital Technology Co Ltd
Priority to CN202010289391.9A priority Critical patent/CN111356021A/en
Publication of CN111356021A publication Critical patent/CN111356021A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4432Powering on the client, e.g. bootstrap loading using setup parameters being stored locally or received from the server
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4433Implementing client middleware, e.g. Multimedia Home Platform [MHP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content

Abstract

The invention discloses a control method of a television application, a smart television and a readable storage medium, wherein the method comprises the following steps: if a starting signal is detected, initializing a preset frame service with system authority for driving the current television hardware; and if the control instruction triggered by the television application is detected, calling and executing the service matched with the control instruction in the preset frame service. Therefore, the television application can directly drive the hardware of the current television application through the preset frame service, so that the aim of driving the current television application according to the preset frame service is fulfilled, the customization can be facilitated, and meanwhile, the third-party television application can be developed based on the preset frame service.

Description

Control method of television application, smart television and readable storage medium
Technical Field
The invention relates to the technical field of network televisions, in particular to a television application control method, an intelligent television and a readable storage medium.
Background
At present, the application development of the smart television is generally divided into system application development and third-party application development. When the smart television is loaded with the Android system, the Android native system does not sufficiently support the smart television, so that the customized development of the smart television is limited. For example, when a manufacturer of a smart television customizes a terminal product according to its service characteristics, some hardware structures of the terminal product cannot be sufficiently supported by the Android native system, so that a third-party application cannot be applied to the terminal product.
Disclosure of Invention
The invention mainly aims to provide a control method of a television application, a smart television and a readable storage medium, and aims to solve the technical problems that the Android native system in the prior art is not sufficient in support of a smart television terminal and limits customized development of the smart television.
In order to achieve the above object, the present invention provides a control method for a television application, the control method comprising:
if a starting signal is detected, initializing a preset frame service with system authority for driving the current television hardware;
and if the control instruction triggered by the television application is detected, calling and executing the service matched with the control instruction in the preset frame service.
Further, if a power-on signal is detected, initializing a preset framework service having a system authority for driving current television hardware, including:
if the starting signal is detected, establishing an object cache pool;
initializing the preset frame service, and loading the initialized preset content of the preset frame service to the object cache pool.
Further, the preset framework service comprises an audio and video interface and a system resource interface which are packaged by the middleware;
the step of initializing the preset framework service and loading the initialized preset content of the preset framework service to the object cache pool includes:
constructing a function list, wherein the function list records the audio and video interface packaged by the middleware and the system resource interface;
initializing the preset number of the audio and video interfaces and/or the preset number of the system resource interfaces in the function list, and loading the initialized system resource interfaces to the object cache pool.
Further, the preset framework service comprises an audio and video interface and a system resource interface which are packaged by the middleware, wherein the audio and video interface and the system resource interface which are packaged by the middleware are recorded in a function list;
if a control instruction triggered by the television application is detected, the step of calling and executing a service matched with the control instruction in the preset frame service comprises the following steps:
if a control instruction triggered by a television application is detected, establishing an association relationship between the television application and the preset frame service;
and calling and executing an interface function matched with the control instruction in the function list.
Further, the step of calling and executing the interface function matched with the control instruction in the function list includes:
judging whether an interface function matched with the control instruction is found in the object cache pool;
and if the interface function matched with the control instruction is found in the object cache pool, calling a thread to execute the interface function.
Further, after the step of determining whether an interface function matching the control instruction is found in the object cache pool, the method includes:
if the interface function matched with the control instruction is not found in the object cache pool, initializing the function list and loading the function list to the object cache pool until the interface function matched with the control instruction is found in the object cache pool.
Further, the step of executing the interface function by the calling thread includes:
calling a thread to execute the interface function, and performing synchronous locking on the interface function;
and releasing the synchronous lock for the interface function after the execution is finished.
Further, before the step of executing the interface function by the calling thread, the method includes:
judging whether the interface function is in a thread execution calling state or not;
if not, calling the thread to execute the interface function.
In addition, to achieve the above object, the present invention further provides a smart tv, including: the control program of the television application is stored on the memory and can be run on the processor, and when being executed by the processor, the control program of the television application realizes the steps of the control method of the television application.
In addition, to achieve the above object, the present invention further provides a readable storage medium, on which a computer program is stored, the computer program, when being executed by a processor, implementing the steps of the control method of the television application as described above.
According to the control method for the television application, provided by the embodiment of the invention, if the starting signal is detected, the preset framework service with the system authority for driving the current television hardware is initialized; and if the control instruction triggered by the television application is detected, calling and executing the service matched with the control instruction in the preset frame service. Therefore, the television application can directly drive the hardware of the current television application through the preset frame service, so that the aim of driving the current television application according to the preset frame service is fulfilled, the customization can be facilitated, and meanwhile, the third-party television application can be developed based on the preset frame service.
Drawings
Fig. 1 is a schematic structural diagram of a hardware-operated smart television according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a first embodiment of the control method of the television application of the present invention;
fig. 3 is a schematic diagram of a framework structure of an embodiment of a control device for tv application according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic diagram of a smart television structure of a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the smart tv may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the smart tv may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WiFi module, and the like. Such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust brightness of the display screen according to brightness of ambient light, and the proximity sensor may turn off the display screen and/or backlight when the smart television moves to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the motion sensor is stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration) for recognizing the attitude of the smart television, and related functions (such as pedometer and tapping) for vibration recognition; of course, the smart television may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described herein again.
Those skilled in the art will appreciate that the smart television architecture shown in fig. 1 does not constitute a limitation of the smart television, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage readable storage medium, may include an operating system, a network communication module, a user interface module, and a control program of a television application therein.
In the smart television shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to invoke a control program of a television application stored in the memory 1005 and perform the following operations:
if a starting signal is detected, initializing a preset frame service with system authority for driving the current television hardware;
and if the control instruction triggered by the television application is detected, calling and executing the service matched with the control instruction in the preset frame service.
Further, if the starting signal is detected, establishing an object cache pool;
initializing the preset frame service, and loading the initialized preset content of the preset frame service to the object cache pool.
Further, a function list is constructed, wherein the function list records the audio and video interface packaged by the middleware and the system resource interface;
initializing the preset number of the audio and video interfaces and/or the preset number of the system resource interfaces in the function list, and loading the initialized system resource interfaces to the object cache pool.
Further, if a control instruction triggered by a television application is detected, establishing an association relationship between the television application and the preset framework service;
and calling and executing an interface function matched with the control instruction in the function list.
Further, whether an interface function matched with the control instruction is found in the object cache pool is judged;
and if the interface function matched with the control instruction is found in the object cache pool, calling a thread to execute the interface function.
Further, the processor 1001 may call a control program of the television application stored in the memory 1005, and also perform the following operations:
if the interface function matched with the control instruction is not found in the object cache pool, initializing the function list and loading the function list to the object cache pool until the interface function matched with the control instruction is found in the object cache pool.
Further, a calling thread executes the interface function, and the interface function is synchronously locked;
and releasing the synchronous lock for the interface function after the execution is finished.
Further, the processor 1001 may call a control program of the television application stored in the memory 1005, and also perform the following operations:
judging whether the interface function is in a thread execution calling state or not;
if not, calling the thread to execute the interface function.
Referring to fig. 2, the present invention provides various embodiments of the method based on the above-mentioned hardware structure of the smart television.
The invention provides a control method of a television application, which is applied to an intelligent television, and in a first embodiment of the control method of the television application, referring to fig. 2, the control method comprises the following steps:
step S10, if a startup signal is detected, initializing a preset frame service with system authority for driving the current television hardware;
if the starting signal is detected, the preset framework service with the system authority can access software and hardware resources of the system, and the preset framework service is used for driving a driving service of current television hardware. The preset framework service comprises an audio and video interface packaged by the middleware and a system resource interface, wherein the system resource interface is used for driving service necessary for hardware of the system, such as task resource scheduling. And the audio and video interface encapsulated by the middleware is used for driving service of hardware for driving the audio and video. In this embodiment, it should be noted that, for convenience of description, the application programs running on the network television are collectively referred to as a television application, but the television application is not limited to an application running only on the television, and of course, the application programs may also run on other corresponding devices as long as the operating system of the device supports the application programs, for example, the application programs running on the android network television may also run on an android phone.
Step S20, if a control instruction triggered by the tv application is detected, a service matching the control instruction is called and executed in the preset framework service.
And if the control instruction triggered by the television application is detected, calling and executing the service matched with the control instruction in the preset frame service. In this embodiment, the television application is a network video player, and when the video player triggers a control instruction for pausing playing, for example, the control instruction may be pausing playing, a service matched with the pause playing instruction is called and executed in a preset framework service, so that the technical purpose of controlling playing of audio and video can be achieved by driving audio and video hardware of a current television through the television application.
In this embodiment, if a power-on signal is detected, a preset framework service with system authority for driving current television hardware is initialized; and if the control instruction triggered by the television application is detected, calling and executing the service matched with the control instruction in the preset frame service. Therefore, the television application can directly drive the hardware of the current television application through the preset frame service, so that the aim of driving the current television application according to the preset frame service is fulfilled, the customization can be facilitated, and meanwhile, the third-party television application can be developed based on the preset frame service.
Further, in step S10 of the above-mentioned first embodiment, if the power-on signal is detected, the step of initializing the preset framework service having the system authority for driving the current television hardware includes:
step S11, if a starting signal is detected, an object cache pool is established;
step S12, initialize the preset framework service, and load the initialized preset content of the preset framework service to the object cache pool.
If the starting signal is detected, an object cache pool is established, the preset frame service is initialized, and the initialized preset content of the preset frame service is loaded to the object cache pool. For example, when the preset frame service is initialized to a plurality of objects, the occupied space of the plurality of objects is large, and a part of the objects can be preloaded to the object cache pool, so that the preset content of the preset frame service which is frequently used can be preloaded to the object cache pool, and the speed of calling and executing the objects is increased. The object cache pool is used for caching an object initialized by the preset framework service, for example, functions corresponding to the video player include pause, play, fast forward, rewind, next, and the like, and if the functions corresponding to the video player are frequently used, the functions include pause, play, fast forward, rewind, next, and the like, and are loaded to the object cache pool.
Optionally, step S12 may specifically include:
step S121, constructing a function list;
step S122, initializing a preset number of audio/video interfaces and/or a preset number of system resource interfaces in the function list, and loading the initialized interfaces to the object cache pool.
And if the starting signal is detected, establishing an object cache pool and establishing a function list. The preset number of audio/video interfaces and/or the preset number of system resource interfaces may be preset with a certain number of audio/video interfaces and/or system resource interfaces, for example, two frequently used functional interfaces of pause and play may be set to be loaded to the object cache pool. The preset frame service comprises an audio and video interface and a system resource interface which are packaged by the middleware, and the audio and video interface and the system resource interface which are packaged by the middleware are recorded in the function list. In this embodiment, the function list is used to record audio and video interfaces and system resource interfaces encapsulated by the middleware, initialize a preset number of the audio and video interfaces and/or a preset number of the system resource interfaces in the function list, and load the initialized audio and video interfaces and/or system resource interfaces to the object cache pool. For example, the function list includes functions of pause play, fast forward play, and rewind play, and interfaces of pause play, fast forward play, and rewind play, which are frequently used, may be loaded to the object cache pool.
Further, in step S20 of the above first embodiment, if a control instruction triggered by the television application is detected, the step of invoking and executing a service matched with the control instruction in the preset framework service includes:
step S21, if a control instruction triggered by the television application is detected, establishing an association relationship between the television application and a preset frame service;
in step S22, an interface function matching the control instruction is called and executed in the function list.
And if the control instruction triggered by the television application is detected, establishing association between the television application and the preset frame service, and calling and executing an interface function matched with the control instruction in the function list. The preset framework service comprises an audio and video interface and a system resource interface which are packaged by the middleware, and the audio and video interface and the system resource interface which are packaged by the middleware are recorded in the function list. The association between the television application and the preset frame service means that the television application binding service calls an interface function of a function list in the preset frame service through a handle, that is, when the television application needs to call a customized function, the television application takes the handle of the service in a binding service mode, and calls the interface function of the service through the handle. The control command is that the functions corresponding to different or different types of applications are different, so the corresponding control command also includes control commands of pause, play, fast forward, rewind, next, etc. different from the functions corresponding to the video player, therefore, the control command corresponding to each function of the application program can be used for executing the corresponding function by controlling the control command. For example, when the user selects the send button, the send function is directly called to send the currently edited information through the entry address of the send function. And generating a control operation interface corresponding to the television application according to the control instruction so as to correspondingly control the television application. When the current control instruction is acquired, the man-machine interaction between the user and the network television is facilitated, so that the control instruction triggered by the current television application can be correspondingly controlled, the television application is associated with the preset frame service according to the acquired control instruction, an interface function matched with the control instruction is called and executed in a function list of the preset frame service, and a corresponding control operation interface is generated, so that the user can conveniently and intuitively control the current television application.
Optionally, step S22 may specifically include:
step S221, judging whether an interface function matched with the control instruction is found in the object cache pool;
in step S222, if the interface function matched with the control instruction is found in the object cache pool, the thread execution interface function is called.
And the intelligent television judges whether an interface function matched with the control instruction is found in the object cache pool, and if the interface function matched with the control instruction is found in the object cache pool, the intelligent television calls a thread to execute the interface function. And loading the function list in the preset framework service to the object cache pool. For example, the object cache pool includes video playing functions including interface functions such as pause playing, fast forward playing, and rewind playing, if a control instruction of pause playing is detected, the interface function matched with the pause playing is called in the object cache pool, whether the interface function called by the current application is called by other applications is judged, and if the interface function called by the current application is not called by other applications, the thread execution interface function is called. Searching an interface function matched with the control instruction in the object cache pool, judging whether the interface function exists or not, if the interface function exists, directly executing the interface function matched with the control instruction, and if the interface function does not exist, initializing a function list and loading the function list to the object cache pool until the interface function matched with the control instruction is found in the object cache pool. Meanwhile, the execution log of the interface function started at present is reserved so as to be convenient for inquiring in abnormal conditions, and when the interface of the middleware changes, if the interface of the middleware is deleted, a default value is directly returned to the interface function in the function list; if the function list is updated, only the function list needs to be updated; if so, adding the function list. Therefore, most of the change of the middleware is blocked between the system and the application, and the application breakdown caused by the change of the interface of the middleware is avoided. Meanwhile, due to the unified management of the interfaces, the use rules of the interfaces are standardized to a certain extent, and meanwhile, the system maintenance is facilitated.
Further, after the step of determining whether an interface function matching the control instruction is found in the object cache pool, the method includes:
and step 23, if the interface function matched with the control instruction is not found in the object cache pool, initializing the function list and loading the function list to the object cache pool until the interface function matched with the control instruction is found in the object cache pool.
In this embodiment, when the smart television detects a control instruction triggered by a television application, and if an interface function matched with the control instruction is not found in the object cache pool, the function list is initialized and loaded to the object cache pool until an interface function matched with the control instruction is found in the object cache pool. For example, the object cache pool includes an interface function for pausing the playing of the video playing function, and if a control instruction for pausing the playing is detected, the function list is initialized and the function for pausing the playing is loaded to the object cache pool until the interface function matched with the control instruction is found in the object cache pool. Objects in the object cache pool are dynamically replaced by an LRU (least Recently used) algorithm, i.e., a least Recently used algorithm.
Further, the step of calling one thread in the thread pool to execute the interface function includes:
step S2221, call thread execution interface function, and lock the interface function synchronously;
in step S2222, after the execution is completed, the interface function is released from the synchronization lock.
In this embodiment, when the smart television finds the interface function matched with the control instruction in the determination object cache pool, the smart television calls the thread to execute the interface function, performs a synchronous lock on the interface function, and releases the synchronous lock on the interface function after the execution is completed. When one thread executes the interface function, the interface function is synchronously locked, and if the interface function is executed completely, the synchronous lock is released to the interface function.
Further, before the step of executing the interface function by the calling thread, the method includes:
step A, judging whether an interface function is in a state of being executed and called by a thread;
and B, if not, calling a thread execution interface function.
In this embodiment, when the smart television finds an interface function matched with the control instruction in the determination object cache pool, it is determined whether the interface function is in a state of being executed and called by a thread, if the interface function is in the state of being executed and called, that is, a television application calling the interface function is blocked, an interface function call message is placed in a message queue, a next request of the message queue is executed after the execution of a previous interface function is completed, and the executed thread releases to wait for the call of a next interface; and if the interface function is in the acquisition state, directly returning to the state after the current interface function is completely executed and is informed.
In addition, referring to fig. 3, an embodiment of the present invention further provides a control device of a television application method, where the control device includes:
the initialization module is used for initializing a preset frame service with system authority used for driving the current television hardware if a starting signal is detected;
and the calling module is used for calling and executing the service matched with the control instruction in the preset frame service if the control instruction triggered by the television application is detected.
Further, the initialization module includes:
the detection unit is used for establishing an object cache pool if the starting signal is detected;
and the loading unit is used for initializing the preset frame service and loading the initialized preset content of the preset frame service to the object cache pool.
Further, the loading unit is further configured to construct a function list, where the function list records the audio/video interface encapsulated by the middleware and the system resource interface;
initializing the preset number of the audio and video interfaces and/or the preset number of the system resource interfaces in the function list, and loading the initialized system resource interfaces to the object cache pool.
Further, the calling module is further configured to establish an association relationship between the television application and the preset framework service if a control instruction triggered by the television application is detected;
and calling and executing an interface function matched with the control instruction in the function list.
Further, the calling module includes:
the judging unit is used for judging whether an interface function matched with the control instruction is found in the object cache pool;
and the calling unit is used for calling a thread to execute the interface function if the interface function matched with the control instruction is found in the object cache pool.
The calling unit is further used for calling a thread to execute the interface function and synchronously lock the interface function;
and releasing the synchronous lock for the interface function after the execution is finished.
Further, the determining unit is further configured to determine whether the interface function is in a state of being called by thread execution;
if not, calling the thread to execute the interface function.
Furthermore, an embodiment of the present invention further provides a readable storage medium (i.e., a computer readable memory), where a control program of a television application is stored on the readable storage medium, and when executed by a processor, the control program of the television application implements the following operations:
if a starting signal is detected, initializing a preset frame service with system authority for driving the current television hardware;
and if the control instruction triggered by the television application is detected, calling and executing the service matched with the control instruction in the preset frame service.
Further, if the starting signal is detected, establishing an object cache pool;
initializing the preset frame service, and loading the initialized preset content of the preset frame service to the object cache pool.
Further, a function list is constructed, wherein the function list records the audio and video interface packaged by the middleware and the system resource interface;
initializing the preset number of the audio and video interfaces and/or the preset number of the system resource interfaces in the function list, and loading the initialized system resource interfaces to the object cache pool.
Further, if a control instruction triggered by a television application is detected, establishing an association relationship between the television application and the preset framework service;
and calling and executing an interface function matched with the control instruction in the function list.
Further, whether an interface function matched with the control instruction is found in the object cache pool is judged;
and if the interface function matched with the control instruction is found in the object cache pool, calling a thread to execute the interface function.
Further, the television application control program when executed by the processor further performs the following operations:
if the interface function matched with the control instruction is not found in the object cache pool, initializing the function list and loading the function list to the object cache pool until the interface function matched with the control instruction is found in the object cache pool.
Further, a calling thread executes the interface function, and the interface function is synchronously locked;
and releasing the synchronous lock for the interface function after the execution is finished.
Further, the television application control program when executed by the processor further performs the following operations:
judging whether the interface function is in a thread execution calling state or not;
if not, calling the thread to execute the interface function.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage readable storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for causing an intelligent television apparatus to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method for controlling a television application, the method comprising:
if a starting signal is detected, initializing a preset frame service with system authority for driving the current television hardware;
and if the control instruction triggered by the television application is detected, calling and executing the service matched with the control instruction in the preset frame service.
2. The method for controlling a television application according to claim 1, wherein the step of initializing a preset framework service having a system right for driving current television hardware if the power-on signal is detected comprises:
if the starting signal is detected, establishing an object cache pool;
initializing the preset frame service, and loading the initialized preset content of the preset frame service to the object cache pool.
3. The control method of a television application according to claim 2, wherein the preset framework service includes an audio-video interface and a system resource interface encapsulated by middleware;
the step of initializing the preset framework service and loading the initialized preset content of the preset framework service to the object cache pool includes:
constructing a function list, wherein the function list records the audio and video interface packaged by the middleware and the system resource interface;
initializing the preset number of the audio and video interfaces and/or the preset number of the system resource interfaces in the function list, and loading the initialized system resource interfaces to the object cache pool.
4. The method according to claim 2, wherein the default framework service includes an audio/video interface and a system resource interface encapsulated by the middleware, and both the audio/video interface and the system resource interface encapsulated by the middleware are recorded in the function list;
if a control instruction triggered by the television application is detected, the step of calling and executing a service matched with the control instruction in the preset frame service comprises the following steps:
if a control instruction triggered by a television application is detected, establishing an association relationship between the television application and the preset frame service;
and calling and executing an interface function matched with the control instruction in the function list.
5. The method for controlling a television application according to claim 4, wherein the step of calling and executing the interface function matched to the control instruction in the function list comprises:
judging whether an interface function matched with the control instruction is found in the object cache pool;
and if the interface function matched with the control instruction is found in the object cache pool, calling a thread to execute the interface function.
6. The method for controlling a television application according to claim 5, wherein the step of determining whether the interface function matching the control command is found in the object cache pool comprises:
if the interface function matched with the control instruction is not found in the object cache pool, initializing the function list and loading the function list to the object cache pool until the interface function matched with the control instruction is found in the object cache pool.
7. The method for controlling a television application according to claim 5, wherein the step of executing the interface function by the calling thread comprises:
calling a thread to execute the interface function, and performing synchronous locking on the interface function;
and releasing the synchronous lock for the interface function after the execution is finished.
8. The method for controlling a television application according to claim 5, wherein the step of executing the interface function by the calling thread is preceded by the steps of:
judging whether the interface function is in a thread execution calling state or not;
if not, calling the thread to execute the interface function.
9. An intelligent television, characterized in that the intelligent television comprises: memory, a processor and a control program of a television application stored on the memory and executable on the processor, the control program of the television application realizing the steps of the control method of a television application according to any one of claims 1 to 8 when executed by the processor.
10. A readable storage medium, characterized in that the readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the control method of a television application according to any one of claims 1 to 8.
CN202010289391.9A 2020-04-13 2020-04-13 Control method of television application, smart television and readable storage medium Pending CN111356021A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010289391.9A CN111356021A (en) 2020-04-13 2020-04-13 Control method of television application, smart television and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010289391.9A CN111356021A (en) 2020-04-13 2020-04-13 Control method of television application, smart television and readable storage medium

Publications (1)

Publication Number Publication Date
CN111356021A true CN111356021A (en) 2020-06-30

Family

ID=71196442

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010289391.9A Pending CN111356021A (en) 2020-04-13 2020-04-13 Control method of television application, smart television and readable storage medium

Country Status (1)

Country Link
CN (1) CN111356021A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101895670A (en) * 2010-07-20 2010-11-24 深圳市茁壮网络股份有限公司 Universal digital television middleware system
CN103888797A (en) * 2014-03-10 2014-06-25 北京四达时代软件技术股份有限公司 System and set top box achieving digital television service based on Android system
CN104427388A (en) * 2013-09-10 2015-03-18 国家广播电影电视总局广播科学研究院 Operating system of intelligent television
KR20170004500A (en) * 2015-07-02 2017-01-11 삼성전자주식회사 Method and Electronic Apparatus for Executing an Application
US20180341502A1 (en) * 2017-05-24 2018-11-29 Twilio Inc. System and method for platform-integrated custom applications
CN109710428A (en) * 2018-12-27 2019-05-03 杭州数梦工场科技有限公司 A kind of dynamic call method and device for realizing class

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101895670A (en) * 2010-07-20 2010-11-24 深圳市茁壮网络股份有限公司 Universal digital television middleware system
CN104427388A (en) * 2013-09-10 2015-03-18 国家广播电影电视总局广播科学研究院 Operating system of intelligent television
CN103888797A (en) * 2014-03-10 2014-06-25 北京四达时代软件技术股份有限公司 System and set top box achieving digital television service based on Android system
KR20170004500A (en) * 2015-07-02 2017-01-11 삼성전자주식회사 Method and Electronic Apparatus for Executing an Application
US20180341502A1 (en) * 2017-05-24 2018-11-29 Twilio Inc. System and method for platform-integrated custom applications
CN109710428A (en) * 2018-12-27 2019-05-03 杭州数梦工场科技有限公司 A kind of dynamic call method and device for realizing class

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
朱允斌等: "基于智能电视操作系统TVOS2.0的终端软件管理与应用开发探索", 《广播与电视技术》 *

Similar Documents

Publication Publication Date Title
US11006166B2 (en) Method for television remote keypress response based on android operating system and television thereof
US8856502B2 (en) Pre-installed application activation
US10728486B2 (en) Smart television playing method and device
CN111930410A (en) Display device and idle time upgrading method
CN114640727B (en) Protocol analysis method, device and computer readable storage medium
CN113419452A (en) Vehicle, control method thereof and mobile terminal
CN103514924A (en) Method and device for playing videos in mobile terminal Widget, and player
KR20060028567A (en) Method for executing virtual machine application, and the digital broadcast receiver thereof
CN108182090B (en) Flash plug-in loading method and device based on blink kernel
KR101852482B1 (en) Image processing appratus and software upgrade method for performing operation according to force input and software upgrade
CN113593279B (en) Vehicle, interaction parameter adjusting method thereof and mobile terminal
CN114661581A (en) Terminal testing method and device, electronic equipment and computer readable storage medium
CN108322834B (en) Television setting method, television and computer readable storage medium
CN113064645B (en) Startup interface control method and display device
CN105278942B (en) Component management method and device
CN109151589B (en) Method, device and storage medium for rapidly playing television programs
CN111356021A (en) Control method of television application, smart television and readable storage medium
CN108600838B (en) Information source switching method and device for Android television, Android television and readable storage medium
CN113747244B (en) Multimedia data protection method, terminal equipment and server
CN114968010A (en) Starting method and device of co-processing chip, storage medium and electronic device
CN111752624B (en) Centralized control method and system for multiple devices and readable storage medium
CN112911359A (en) Resource display method, display equipment and remote controller
KR20090047152A (en) Mobile terminal based on wireless internet platform for preventing event crash and method for processing event using the same
CN111597021A (en) Method, device and system for realizing application program operation and related equipment
CN111556354B (en) Global interface display method, television and computer readable 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200630

RJ01 Rejection of invention patent application after publication