WO2017128592A1 - 一种基于智能电视提高应用程序适配性的方法和装置 - Google Patents

一种基于智能电视提高应用程序适配性的方法和装置 Download PDF

Info

Publication number
WO2017128592A1
WO2017128592A1 PCT/CN2016/085319 CN2016085319W WO2017128592A1 WO 2017128592 A1 WO2017128592 A1 WO 2017128592A1 CN 2016085319 W CN2016085319 W CN 2016085319W WO 2017128592 A1 WO2017128592 A1 WO 2017128592A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
player
application
improving
module
Prior art date
Application number
PCT/CN2016/085319
Other languages
English (en)
French (fr)
Inventor
张磊
江楚发
Original Assignee
深圳国微技术有限公司
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 深圳国微技术有限公司 filed Critical 深圳国微技术有限公司
Publication of WO2017128592A1 publication Critical patent/WO2017128592A1/zh

Links

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/4431OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB characterized by the use of Application Program Interface [API] libraries

Definitions

  • the invention belongs to the field of smart television technology, and in particular relates to a method and device for improving application adaptability based on a smart television.
  • Android After the release of Google's Android system, it is very popular in the market. Now all kinds of smart terminals use Android system, including mobile phone, tablet, network box and TV. There are various chip solutions, and each chip maker uses its own solution and customizes it based on Android.
  • the first choice is to be very familiar with different platform solutions to optimize. This is very difficult for people who are doing applications.
  • the applications related to player applications are also very deep. In particular, it involves the hardware itself related to the chip itself. This chip-only talent has relevant technology. Other people can only understand one.
  • the optimization can only be a special person, and the targeted needs are very strong.
  • the embodiments of the present invention provide a method and an apparatus for improving application adaptability based on a smart TV, and aim to solve the problem of poor adaptability of applications of different platforms in the prior art.
  • the embodiment of the present invention is implemented by the method for improving application adaptability based on a smart TV, and the method includes:
  • the embodiment of the invention further provides an apparatus for improving application adaptability based on a smart television, the apparatus comprising:
  • An instruction receiving module configured to receive an instruction of an interface of a function module that invokes an application
  • An interface obtaining module configured to determine whether an interface of a preferred function module similar to the called function module is pre-configured, and if yes, obtain an interface of the preferred function module; otherwise, obtain an interface of a similar functional module in the system;
  • the interface calls the module to call the acquired interface.
  • the embodiment of the invention further provides a smart TV comprising the above-mentioned device for improving application adaptability based on the smart TV.
  • the present invention provides a method and apparatus for improving application adaptability based on a smart TV, by providing an interface channel on a system platform side and an application side that needs to be adapted, and providing the interface channel to an application that needs to be adapted,
  • the application that needs to be adapted does not need to take into account the differences in the application to different platforms during development.
  • the solution compared to the traditional compatibility does not need to be additionally loaded in order to improve compatibility.
  • Customized solutions to a certain extent Solved the problem of high memory and CPU usage of different platform applications, for the application of the player in smart TV, Solve the problem that the different platforms play TV programs slowly, the picture is stuck, and the picture is poor. Because the interface work is implemented on the system side, it can also prevent the player resources from being lost due to the release of other applications. The emergence of the problem can be described as one thing.
  • FIG. 1 is a flowchart of a method for improving application adaptability based on a smart TV according to Embodiment 1 of the present invention
  • FIG. 2 is a flowchart of a method for improving application adaptability based on a smart TV according to Embodiment 2 of the present invention
  • FIG. 3 is a schematic structural diagram of an apparatus for improving application adaptability based on a smart TV according to Embodiment 3 of the present invention.
  • FIG. 4 is a schematic structural diagram of an apparatus for improving application adaptability based on a smart TV according to Embodiment 4 of the present invention.
  • FIG. 5 is a schematic structural diagram of a smart television according to Embodiment 5 of the present invention.
  • the present invention is directed to the problem that the implementation steps are complicated and the portability is poor by the different frameworks for different platform systems by using a known framework to improve the adaptability of applications in different platform systems.
  • it is determined whether there is a preset preferred interface to increase the call success rate of the interface of the application, thereby improving the adaptability of the application, and the present invention is not directed to a specific platform system or specific to The application makes the invention more portable.
  • FIG. 1 is a flowchart of a method for improving application adaptability based on a smart TV according to Embodiment 1 of the present invention.
  • an application adaptability based on a smart TV according to an embodiment of the present invention is specifically described with reference to FIG. 1 .
  • the method, as shown in FIG. 1, includes the following steps:
  • S101 Receive an instruction of an interface of a function module that invokes an application.
  • the receiving of the interface call instruction is an instruction received when the system uses an application or opens an application at the request of the user. Taking the player as an example, the system needs to call the player's interface when booting up or when other players need to use the player to play the reminder. At this time, the system will automatically receive the corresponding function module from the internal calling application (for example, initialization).
  • the instructions of the interface similarly, when the system should open or play audio and video data according to the user's operation, the system will call the interface of the corresponding function module according to the open instruction.
  • the application is not limited to audio and video players, and the same is true for calls based on the browser interface.
  • S102 Determine whether an interface of a preferred function module similar to the called function module is pre-configured, and if yes, obtain an interface of the preferred function module; otherwise, obtain an interface of a similar functional module of the original type in the system.
  • the above-mentioned similar applications include, but are not limited to, a browser, an audio player, a video player, a live chat tool, and the like, and the function module is, for example, an initialization module of the video player, and the video player is turned off. Modules and more.
  • the native browser of the system such as the IE browser, invokes the interface of the native browser of the system, that is, the interface of the IE browser, and the preferred application of the same type of application, such as one of the Maxthon browser and the 360 quick browser.
  • the system's native player, such as the player that comes with the system, is a preset preferred player such as the iQiyi player.
  • the class names of the predefined applications are distinguished.
  • the player is a java class. Each class has its own unique class name. The whole system is unique. When there are multiple players in the system, the specific one is loaded. Which player knows which player is loaded by the class name system, for example, for the system's native player, we can call com.smit.player.SmitXPlayer, other such as the odd art player may be called com.qiyi.video.player.QiYiPlayer.
  • the method for improving the adaptability of the application further includes:
  • the reminder content is displayed on the pop-up box in the form of text or code for the user to view, and then, for example, in the form of a voice broadcast, the pre-storage will be stored.
  • the voice file corresponding to the current situation is voice broadcasted.
  • the interface channel is provided on the system platform side and the application side that needs to be adapted, so that the application that needs to be adapted does not need to consider the difference in application to different platforms during development, and for the platform system itself, There is no need to additionally load a solution customized to improve the compatibility, and the use efficiency of the system is improved, and the method provided in this embodiment is not directed to a specific platform system or a specific application, so that the embodiment is improving the application.
  • the adaptability of the program can also have better portability.
  • step S101 is specifically:
  • S201 Receive an instruction to call an interface of the player.
  • the method for improving the adaptability of an application further includes the following steps:
  • step S202 it is determined whether the interface of the preferred player is pre-set, if yes, then go to step S203, otherwise, go to step S205;
  • step S203 call the interface of the preferred player, proceeds to step S204;
  • step S204 initializing the preferred player, proceeds to step S207;
  • step S205 calling the interface of the native player in the system, proceeds to step S206;
  • step S206 initialize the native player in the system, proceeds to step S207;
  • step S207 reading video data or audio data, proceeds to step S208;
  • step S207 is specifically:
  • the method of the present embodiment in the Android smart television system can be implemented as follows:
  • the function of a certain type of application is separately made into a jar package and stored in the Android system.
  • the application When the application is started, the system loads the jar package, and the same preferred application can pass through the Java package.
  • Class preferably player to determine whether the system has this function module, if any, call this function module, indicating that the preferred function module is a preset preferred function module, if not, call the system's native function module, indicating There are no preferred functional modules for this category of applications.
  • a development package of a preferred function module includes a player management module (ie, a module implementing the embodiment), and the preferred function module provides a playback interface to play a live broadcast through a player in a third-party development package.
  • the program the player's television system determines which interface of the player is specifically called according to its own situation (whether there is a preset preferred interface).
  • the preferred application supporting the live broadcast is installed, and the dongle (digital signal receiver) and the cable television signal are connected.
  • the system first determines whether the system is by calling the player management module. There are preferred players to implement, and if so, the preferred player is used, and if not, the native system player is used.
  • the player in the Android smart television system is taken as an example, and the preferred application development method uses the method provided in this embodiment to obtain a live program by acquiring the optimized player of the platform system, thereby improving the achievability of the present invention. .
  • FIG. 3 is a schematic structural diagram of an apparatus for improving application adaptability based on a smart TV according to Embodiment 3 of the present invention, and FIG. 3 is specifically described below to improve application adaptability based on a smart TV according to an embodiment of the present invention.
  • the device as shown in FIG. 3, the device 30 for improving application adaptability based on the smart TV includes:
  • An instruction receiving module 31 configured to receive an instruction of an interface of a function module that invokes an application
  • the interface obtaining module 32 is configured to determine whether an interface of a preferred function module similar to the called function module is pre-configured, and if yes, obtain an interface of the preferred function module; otherwise, obtain an interface of a similar functional module in the system;
  • the interface invoking module 33 is used to invoke the acquired interface.
  • the device for improving the adaptability of the application further includes:
  • a reminder module that alerts you to an application launch error or the inability to open the corresponding file.
  • the reminder content is displayed on the pop-up box in the form of text or code for the user to view, and then, for example, in the form of a voice broadcast, the pre-storage will be stored.
  • the voice file corresponding to the current situation is voice broadcasted.
  • the device for improving application adaptability based on the smart TV can be used in various terminals, such as mobile phones, smart phones, notebook computers, digital broadcast receivers, PDAs.
  • Mobile terminals personal digital assistants
  • PADs tablets
  • PMPs portable multimedia players
  • navigation devices and the like
  • digital TVs A fixed terminal of a desktop computer or the like, however, those skilled in the art will appreciate that the configuration according to an embodiment of the present invention can be applied to a fixed type of terminal, as an option, in addition to an element particularly for mobile purposes.
  • a smart TV terminal for example, a smart TV terminal.
  • the device for improving application adaptability based on the smart TV solves the technical problem of improving the adaptability of the application in different platform systems by running and using the above method for improving application adaptability based on the smart TV.
  • the memory and CPU usage of different platform applications, the slow change of the TV program, the poor picture, and the poor picture effect can also avoid the problem that the player resources fail to be released and enter other applications.
  • the device includes the above-mentioned instruction receiving module 31, the interface obtaining module 32, and the interface calling module 33, the device further includes:
  • the initialization module 41 is configured to initialize the preferred player when the interface of the preferred player is pre-configured, otherwise initialize the native player in the system;
  • the data reading module 42 is configured to read video data or audio data.
  • the data reading module 42 further includes:
  • the code stream reading unit 43 is configured to read a live stream of audio data or video data.
  • the player in the system includes more than two, it is distinguished by the class name of the predefined application. Take the player in the Android smart TV system as an example.
  • the player is a java class. Each class has its own unique class name. The whole system is unique. When there are multiple players, which player is loaded? The class name system knows which player is loaded.
  • the device for improving application adaptability based on the smart TV can be used in various terminals, such as mobile phones, smart phones, notebook computers, digital broadcast receivers, PDAs.
  • Mobile terminals personal digital assistants
  • PADs tablets
  • PMPs portable multimedia players
  • navigation devices and the like
  • digital TVs A fixed terminal of a desktop computer or the like, however, those skilled in the art will appreciate that the configuration according to an embodiment of the present invention can be applied to a fixed type of terminal, as an option, in addition to an element particularly for mobile purposes.
  • a smart TV terminal for example, a smart TV terminal.
  • This embodiment takes the application of the player of the Android smart television system as an example, and improves the achievability and scalability of the present invention by providing a specific functional module of the player in the television system, thereby improving the present invention. portability.
  • FIG. 5 is a schematic structural diagram of a smart TV according to Embodiment 5 of the present invention.
  • a smart TV according to an embodiment of the present invention is specifically described below with reference to FIG. 5.
  • the smart TV 50 includes the above-mentioned smart TV.
  • the present invention provides an interface channel on the system platform side and the preferred application side and provides the interface channel to the preferred application, so that the preferred application does not need to be considered for the difference in application to different platforms during development, for the platform system.
  • there is no need to additionally load a solution that is customized to improve compatibility, and to a certain extent Solved the problem of high memory and CPU usage of different platform applications, for the application of the player in smart TV, Solve the problem that the different platforms play TV programs slowly, the picture is stuck, and the picture is poor. Because the interface work is implemented on the system side, it can also prevent the player resources from being lost due to the release of other applications. The problem arises.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Library & Information Science (AREA)
  • Telephone Function (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Stored Programmes (AREA)

Abstract

本发明适用于智能电视技术领域。提供了一种基于智能电视提高应用程序适配性的方法和装置。该基于智能电视提高应用程序适配性的方法包括:接收调用应用程序的功能模块的接口的指令;判断是否预设有与调用的功能模块同类的优选功能模块的接口,若是,则获取所述优选功能模块的接口,否则,获取系统中原生的同类功能模块的接口;调用获取的接口。本发明使得需要适配的功能模块在开发时不需要考虑到应用到不同平台的中的差异性,不需要另外加载为了提高适配性而自定义的解决方案,提高了系统的使用效率,且本实施例提供的方法不针对特定的平台系统也不针对特定的功能模块,使得本发明在提高应用程序的某些功能模块的适配性的基础上还能具有较好的可移植性。

Description

一种基于智能电视提高应用程序适配性的方法和装置 技术领域
本发明属于智能电视技术领域,尤其涉及一种基于智能电视提高应用程序适配性的方法和装置。
背景技术
谷歌的安卓(Android)系统发布以后,在市场上很受欢迎,现在各种智能终端都有用到Android系统,其中包括手机,平板,网络盒子,电视。现在有各种芯片方案,每个芯片商使用自己的方案,基于Android做了定制。
其各种平台都实现了Android的原生的例如多媒体播放器(Media Player)、浏览器这样的应用程序,但是不同平台的底层设计各有不同。以Media Player为例,Android应用在调用原生Media Player进行播放的时候,大部分情况各家方案性能差异不大,在特殊应用场景下会有明显差异。在智能电视的Android系统中,现在有很多提供视频服务的第三方播放器,在适配不同系统方案的Media Player都有自己的一些方法,但是要做到各个方案都能很好的兼容,都不尽人意。
兼容不同方案本身是很难做到的,因为一开始也不知道有多少方案,就算对已知的方案去做兼容,本身也有难度,因为这些方案的技术细节一般很难获取,而且随着软件和硬件的不断更新,方案本身也都在不断的调整,这样做兼容就很困难。
对不同平台优化也是很难做到,首选要对不同平台方案非常熟悉才能去优化,这样对于做应用的人来说基本是很困难的,类似播放器的应用程序所涉及的技术很多也很深,特别是涉及到芯片本身与硬件相关的东西,这个只有芯片原厂的人才有相关技术,其他的人只能了解一个大概,要做优化只能是专门的人,针对性的需要很强。
现有的一些适配多个平台的通用的应用程序都是基于已知的框架来自定义不同的处理过程,然后尽量做到兼容,在此基础上再进行优化,实现步骤复杂,需要根据不同的平台系统的特点分别定义处理过程,目前还没有一种比较好的方法在降低技术难度的基础上做到很好的适配不同平台中的应用程序。
技术问题
本发明实施例提供一种基于智能电视提高应用程序适配性的方法和装置,旨在解决现有技术中不同平台的应用程序适配性差的问题。
技术解决方案
本发明实施例是这样实现的,一种基于智能电视提高应用程序适配性的方法,该方法包括:
接收调用应用程序的功能模块的接口的指令;
判断是否预设有与调用的功能模块同类的优选功能模块的接口,若是,则获取优选功能模块的接口,否则,获取系统中原生的同类功能模块的接口;
调用获取的接口。
本发明实施例还提供一种基于智能电视提高应用程序适配性的装置,该装置包括:
指令接收模块,用于接收调用应用程序的功能模块的接口的指令;
接口获取模块,用于判断是否预设有与调用的功能模块同类的优选功能模块的接口,若是,则获取优选功能模块的接口,否则,获取系统中原生的同类功能模块的接口;
接口调用模块,用于调用获取的接口。
本发明实施例还提供一种智能电视,该智能电视包括上述的基于智能电视提高应用程序适配性的装置。
有益效果
本发明提供的一种基于智能电视提高应用程序适配性的方法和装置,通过在系统平台方和需要适配的应用程序方提供接口通道并将该接口通道提供给需要适配的应用程序,使得需要适配的应用程序在开发时不需要考虑到应用到不同平台的中的差异性,对于平台系统本身而言,相对于传统的兼容性的解决方法,不需要另外加载为了提高兼容性而自定义的解决方案,也在一定程度上 解决了不同平台应用程序的内存和CPU占用高的问题,对于应用在智能电视中的播放器这一应用程序而言,还能 解决不同平台在播放电视节目换台慢、画面卡顿、画面效果差的问题,且由于接口的利用工作是在系统这边实现,也能避免播放器资源因没有释放导致进入其他应用播放失败等问题的出现,可谓一举多得。
附图说明
图1是本发明实施例一提供的基于智能电视提高应用程序适配性的方法的流程图;
图2是本发明实施例二提供的基于智能电视提高应用程序适配性的方法的流程图;
图3是本发明实施例三提供的基于智能电视提高应用程序适配性的装置的结构示意图;
图4是本发明实施例四提供的基于智能电视提高应用程序适配性的装置的结构示意图;
图5是本发明实施例五提供的智能电视的结构示意图。
本发明的实施方式
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
本发明针对现有技术中通过已知的框架针对不同的平台系统来自定义不同的处理过程以提高不同平台系统中应用程序的适配性带来的实现步骤复杂、可移植性差的问题,通过在调用应用程序的接口之前判断是否有预设的优选接口,以增加应用程序的接口的调用成功率,从而提高该应用程序的适配性,且本发明不针对特定的平台系统也不针对特定的应用程序,使得本发明具有较好的可移植性。
实施例一
图1是本发明实施例一提供的基于智能电视提高应用程序适配性的方法的流程图,下面结合图1来具体描述根据本发明的一个实施例的基于智能电视提高应用程序适配性的方法,如图1所示,该方法包括以下步骤:
S101、接收调用应用程序的功能模块的接口的指令。
其中,接口调用指令的接收是在系统使用某一应用程序或应用户的请求打开某个应用程序时接收的指令。以播放器为例,系统在开机或是在其它需要利用播放器进行播放提醒时,会需要调用播放器的接口,此时系统会自动接收来自内部的调用应用程序中对应功能模块(例如初始化)的接口的指令,同样的,当系统应用户的操作,打开或播放音视频数据时,系统会根据该打开指令调用对应功能模块的接口。当然,该应用程序不限于音视频播放器,基于浏览器接口的调用也是同样的道理。
S102、判断是否预设有与调用的功能模块同类的优选功能模块的接口,若是,则获取该优选功能模块的接口,否则,获取系统中原生的同类功能模块的接口。
根据本实施例的一个示例,上述同类的应用程序包括但不限于浏览器、音频播放器、视频播放器、即时聊天工具等等,该功能模块例如视频播放器的初始化模块、视频播放器的关闭模块等等。其中系统原生的浏览器例如IE浏览器,调用系统原生的浏览器的接口即调用IE浏览器的接口,同类型应用程序的优选应用程序例如傲游浏览器、360急速浏览器中的一种。系统原生的播放器例如系统自带的播放器,预设的优选播放器例如爱奇艺播放器。
其中,当同类的优选功能模块包括两个以上时,通过预先定义的应用程序的类名加以区分。
以Android智能电视系统中的播放器为例,该播放器是一个java类,每个类有自己的唯一的类名的,整个系统唯一,当系统中的播放器有多个时,加载具体的哪个播放器通过类名系统就知道是加载的哪一个播放器,比如对于系统原生的播放器,我们的可以叫 com.smit.player.SmitXPlayer,其他的如奇艺播放器可能是叫com.qiyi.video.player.QiYiPlayer。
S103、调用获取的接口。
当预设有与调用的应用程序同类的优选功能模块的接口时,调用同类的优选功能模块的接口,当没有预设与调用的功能模块同类的优选功能模块的接口时,调用系统中原生的同类功能模块的接口。
作为可选的,当系统既没有预设的优选同类应用程序优选功能模块的接口也没有定义原生的同类功能模块的接口时,该提高应用程序的适配性的方法还包括:
发出应用程序启动错误或无法打开对应的文件的提醒。
其中,提醒方式可以有多种,例如以弹出框的形式进行提醒,提醒的内容以文字或代码的形式显示在该弹出框上供用户查看,再例如以语音播报的形式进行提醒,将预先存储的与当前情况对应的语音文件进行语音播报。
本实施例在系统平台方和需要适配的应用程序方提供接口通道,使得需要适配的应用程序在开发时不需要考虑到应用到不同平台的中的差异性,对于平台系统本身而言,不需要另外加载为了提高兼容性而自定义的解决方案,提高了系统的使用效率,且本实施例提供的方法不针对特定的平台系统也不针对特定的应用程序,使得本实施例在提高应用程序的适配性的基础上还能具有较好的可移植性。
实施例二
图2是本发明实施例二提供的基于智能电视提高应用程序适配性的流程图,如图2所示,本实施例提供的基于智能电视提高应用程序适配性的方法以播放器为例,上述步骤S101具体为:
S201、接收调用播放器的接口的指令。
此外,该提高应用程序的适配性的方法还包括以下步骤:
S202、判断是否预设有优选播放器的接口,若是,则跳转到步骤S203,否则,跳转到步骤S205;
S203、调用优选播放器的接口,进入步骤S204;
S204、初始化该优选播放器,进入步骤S207;
S205、调用系统中原生的播放器的接口,进入步骤S206;
S206、初始化系统中原生的播放器,进入步骤S207;
S207、读取视频数据或音频数据,进入步骤S208;
S208、开始播放。
其中,当平台系统为Android智能电视系统时,上述步骤S207具体为:
读取包含音频数据或视频数据的直播码流。
依据本实施例的一个示例,在Android智能电视系统本实施例的方法可以这样实现:
将某个确定类别的应用程序(例如播放器)的功能单独做成一个jar包,存放到Android系统中,需要启动该应用程序时系统去加载这个jar包,同类的优选应用可以通过Java包中的类(优选播放器)来判断系统是否有这个功能模块,如果有,就调用这个功能模块,表示该优选功能模块为预设的优选功能模块,如果没有就调用系统原生的功能模块,表示对于该类别的应用程序没有优选的功能模块。
不仅仅是这里播放器可以这样来优化,其他类似的同类应用程序,基于不同平台,需要做兼容的都可以用这种方法。即把不同的功能模块化,然后以jar包或者其他形式存放到系统中,这样优选应用就可以去调用。
根据本实施例的一个使用场景例如:优选功能模块的开发包包含了播放器管理模块(即实现本实施例的模块),该优选功能模块通过第三方开发包中播放器提供播放接口来播放直播节目,该播放器的电视系统根据自己的情况(是否有预设的优选接口)来确定具体调用哪个播放器的接口。用户购买智能电视后,安装支持直播的优选应用程序,接上dongle(数字信号接收器)和有线电视信号,用户在启动播放器的播放功能时,系统通过调用播放器管理模块,先判断系统是否有实现优选的播放器,如果有就使用该优选播放器,如果没有就使用原生的系统播放器。
本实施例以Android智能电视系统中的播放器为例,让优选应用程序开发使用本实施例提供的方法,通过获取平台系统优化后的播放器来播放直播节目,提高了本发明的可实现性。
实施例三
图3是本发明实施例三提供的基于智能电视提高应用程序适配性的装置的结构示意图,下面结合图3来具体描述根据本发明的一个实施例的基于智能电视提高应用程序适配性的装置,如图3所示,该基于智能电视提高应用程序适配性的装置30包括:
指令接收模块31,用于接收调用应用程序的功能模块的接口的指令;
接口获取模块32,用于判断是否预设有与调用的功能模块同类的优选功能模块的接口,若是,则获取优选功能模块的接口,否则,获取系统中原生的同类功能模块的接口;
接口调用模块33,用于调用获取的接口。
作为可选地,当系统既没有预设的优选同类功能模块的接口也没有定义原生的同类功能模块的接口时,该提高应用程序的适配性的装置还包括:
提醒模块,用于发出应用程序启动错误或无法打开对应的文件的提醒。
其中,提醒方式可以有多种,例如以弹出框的形式进行提醒,提醒的内容以文字或代码的形式显示在该弹出框上供用户查看,再例如以语音播报的形式进行提醒,将预先存储的与当前情况对应的语音文件进行语音播报。
本实施例提供的基于智能电视提高应用程序适配性的装置可用于多种终端中,诸如移动电话、智能电话、笔记本电脑、数字广播接收器、PDA (个人数字助理)、PAD(平板电脑)、PMP (便携式多媒体播放器)、导航装置等等的移动终端以及诸如数字TV 、台式计算机等等的固定终端,然而,本领域技术人员将理解的是,除了特别用于移动目的的元件之外,根据本发明的实施方式的构造也能够应用于固定类型的终端,作为优选地例如智能电视终端。
本实施例提供的基于智能电视提高应用程序适配性的装置通过运行和使用上述基于智能电视提高应用程序适配性的方法,在提高不同平台系统中应用程序的适配性的技术上解决了不同平台应用程序的内存和CPU占用、在播放电视节目换台慢、画面卡顿、画面效果差的问题,还能避免播放器资源因没有释放导致进入其他应用播放失败等问题的出现。
实施例四
图4是本发明实施例四提供的基于智能电视提高应用程序适配性的装置的结构示意图,如图4所示的基于智能电视提高应用程序适配性的装置,当上述应用程序为播放器时,该装置在包括上述的指令接收模块31、接口获取模块32和接口调用模块33的情况下,具体还包括:
初始化模块41,用于当预设有优选播放器的接口时,初始化该优选播放器,否则,初始化系统中原生的播放器;
数据读取模块42,用于读取视频数据或音频数据。
其中,作为可选地,当平台系统为Android智能电视系统时,该数据读取模块42还包括:
码流读取单元43,用于读取包含音频数据或视频数据的直播码流。
当系统中的播放器包括两个以上时,通过预先定义的应用程序的类名加以区分。以Android智能电视系统中的播放器为例,该播放器是一个java类,每个类有自己的唯一的类名的,整个系统唯一,当播放器有多个时,加载具体的哪个播放器通过类名系统就知道是加载的哪一个播放器。
本实施例提供的基于智能电视提高应用程序适配性的装置可用于多种终端中,诸如移动电话、智能电话、笔记本电脑、数字广播接收器、PDA (个人数字助理)、PAD(平板电脑)、PMP (便携式多媒体播放器)、导航装置等等的移动终端以及诸如数字TV 、台式计算机等等的固定终端,然而,本领域技术人员将理解的是,除了特别用于移动目的的元件之外,根据本发明的实施方式的构造也能够应用于固定类型的终端,作为优选地例如智能电视终端。
本实施例以Android智能电视系统的播放器这一应用程序为例,通过提供电视系统中播放器的具体功能模块,以提高了本发明的可实现性和可扩展性,从而提高了本发明的可移植性。
实施例五
图5是本发明实施例五提供的智能电视的结构示意图,下面结合图5来具体描述根据本发明的一个实施例的智能电视,如图5所示,该智能电视50包括上述的基于智能电视提高应用程序适配性的装置30。
本发明过在系统平台方和优选应用程序方提供接口通道并将该接口通道提供给优选应用程序,使得优选应用程序在开发时不需要考虑到应用到不同平台的中的差异性,对于平台系统本身,相对于传统的兼容性的解决方法而言,不需要另外加载为了提高兼容性而自定义的解决方案,也在一定程度上 解决了不同平台应用程序的内存和CPU占用高的问题,对于应用在智能电视中的播放器这一应用程序而言,还能 解决不同平台在播放电视节目换台慢、画面卡顿、画面效果差的问题,且由于接口的利用工作是在系统这边实现,也能避免播放器资源因没有释放导致进入其他应用播放失败等问题的出现。
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台电视终端设备执行本发明各个实施例所述的方法。
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。

Claims (9)

  1. 一种基于智能电视提高应用程序适配性的方法,其特征在于,所述方法包括:
    接收调用应用程序的功能模块的接口的指令;
    判断是否预设有与调用的功能模块同类的优选功能模块的接口,若是,则获取所述优选功能模块的接口,否则,获取系统中原生的同类功能模块的接口;
    调用获取的接口。
  2. 如权利要求1所述的提高应用程序的适配性的方法,其特征在于,所述应用程序包括播放器,所述方法具体包括:
    当预设有优选播放器的接口时,初始化所述优选播放器,否则,初始化系统中原生的播放器;
    读取视频数据或音频数据。
  3. 如权利要求2所述的提高应用程序的适配性的方法,其特征在于,所述系统包括安卓智能电视系统,针对所述读取视频数据或音频数据的步骤,所述方法具体包括:
    读取包含音频数据或视频数据的直播码流。
  4. 如权利要求1所述的提高应用程序的适配性的方法,其特征在于,当同类的所述优选功能模块包括两个以上时,通过预先定义的应用程序的类名加以区分。
  5. 如权利要求1至4任一项所述的提高应用程序的适配性的方法,其特征在于,所述应用程序包括浏览器、视频播放器和/或音频播放器。
  6. 一种基于智能电视提高应用程序适配性的装置,其特征在于,所述装置包括:
    指令接收模块,用于接收调用应用程序的功能模块的接口的指令;
    接口获取模块,用于判断是否预设有与调用的功能模块同类的优选功能模块的接口,若是,则获取所述优选功能模块的接口,否则,获取系统中原生的同类功能模块的接口;
    接口调用模块,用于调用获取的接口。
  7. 如权利要求6所述的装置,其特征在于,所述应用程序包括播放器,所述装置还包括:
    初始化模块,用于当预设有优选播放器的接口时,初始化所述优选播放器,否则,初始化系统中原生的播放器;
    数据读取模块,用于读取视频数据或音频数据。
  8. 如权利要求6或7所述的装置,其特征在于,所述系统包括安卓智能电视系统,所述数据读取模块具体包括:
    码流读取单元,用于读取包含音频数据或视频数据的直播码流。
  9. 一种智能电视,其特征在于,所述智能电视包括上述权利要求6至8任一项所述的基于智能电视提高应用程序适配性的装置。
PCT/CN2016/085319 2016-01-28 2016-06-08 一种基于智能电视提高应用程序适配性的方法和装置 WO2017128592A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610061639.X 2016-01-28
CN201610061639.XA CN105681905A (zh) 2016-01-28 2016-01-28 一种智能电视及其提高应用程序的适配性的方法和装置

Publications (1)

Publication Number Publication Date
WO2017128592A1 true WO2017128592A1 (zh) 2017-08-03

Family

ID=56303119

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/085319 WO2017128592A1 (zh) 2016-01-28 2016-06-08 一种基于智能电视提高应用程序适配性的方法和装置

Country Status (2)

Country Link
CN (1) CN105681905A (zh)
WO (1) WO2017128592A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112738632A (zh) * 2020-12-28 2021-04-30 深圳创维-Rgb电子有限公司 智能电视性能的优化方法、装置、设备及存储介质

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106454525B (zh) * 2016-10-26 2019-06-21 北京奇虎科技有限公司 直播方法、装置及终端
CN107087231B (zh) * 2017-03-31 2021-03-05 北京潘达互娱科技有限公司 视频数据播放方法及装置
CN111372134B (zh) * 2020-04-20 2022-05-24 聚好看科技股份有限公司 一种播放器调用方法及终端
CN113656115B (zh) * 2021-07-27 2023-10-27 厦门雅基软件有限公司 接口调用系统、方法及电子设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024572A (zh) * 2012-12-14 2013-04-03 深圳创维-Rgb电子有限公司 一种电视机
US20130194499A1 (en) * 2012-01-30 2013-08-01 Mstar Semiconductor, Inc. Television system and method for managing applications therein
CN103430564A (zh) * 2011-09-22 2013-12-04 Lgcns株式会社 利用在单个操作系统中包含的默认媒体播放器提供智能服务和数码电视服务的智能机顶盒和操作方法
CN103593238A (zh) * 2012-08-16 2014-02-19 腾讯科技(深圳)有限公司 控制应用程序编程接口调用的方法及装置

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080126988A1 (en) * 2006-11-24 2008-05-29 Jayprakash Mudaliar Application management tool
CN102722551B (zh) * 2012-05-26 2014-11-26 广州市动景计算机科技有限公司 一种浏览器内核智能切换方法及系统
CN103744666A (zh) * 2013-12-23 2014-04-23 乐视致新电子科技(天津)有限公司 一种对安卓设备中的音频进行调节的方法和装置
CN103793156B (zh) * 2014-02-28 2017-09-26 厦门美图之家科技有限公司 一种移动终端系统中应用程序的控制方法
CN104965723B (zh) * 2014-10-09 2019-01-08 腾讯科技(深圳)有限公司 应用程序的运行方法及装置
CN104615670A (zh) * 2015-01-16 2015-05-13 百纳(武汉)信息技术有限公司 一种android浏览器中支持多渲染引擎的方法及浏览器
CN104954867A (zh) * 2015-06-26 2015-09-30 努比亚技术有限公司 媒体播放方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103430564A (zh) * 2011-09-22 2013-12-04 Lgcns株式会社 利用在单个操作系统中包含的默认媒体播放器提供智能服务和数码电视服务的智能机顶盒和操作方法
US20130194499A1 (en) * 2012-01-30 2013-08-01 Mstar Semiconductor, Inc. Television system and method for managing applications therein
CN103593238A (zh) * 2012-08-16 2014-02-19 腾讯科技(深圳)有限公司 控制应用程序编程接口调用的方法及装置
CN103024572A (zh) * 2012-12-14 2013-04-03 深圳创维-Rgb电子有限公司 一种电视机

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112738632A (zh) * 2020-12-28 2021-04-30 深圳创维-Rgb电子有限公司 智能电视性能的优化方法、装置、设备及存储介质
CN112738632B (zh) * 2020-12-28 2022-11-25 深圳创维-Rgb电子有限公司 智能电视性能的优化方法、装置、设备及存储介质

Also Published As

Publication number Publication date
CN105681905A (zh) 2016-06-15

Similar Documents

Publication Publication Date Title
WO2017128592A1 (zh) 一种基于智能电视提高应用程序适配性的方法和装置
JP6742465B2 (ja) ブルートゥーススピーカーにおける連続ウェイクアップ遅延低減の方法、装置及びブルートゥーススピーカー
WO2017096796A1 (zh) 用于智能手机的系统更新方法和装置
CN109101335B (zh) 扩展主机设备的功能
WO2018000673A1 (zh) 一种终端应用程序运行的方法及装置
WO2015043173A1 (zh) 一种在通话过程中发送联系人信息的方法及系统
WO2017206506A1 (zh) 一种nfc移动支付终端的安全模块管理方法及终端
WO2018094839A1 (zh) 一种移动终端预装应用的安装方法及装置
WO2021042936A1 (zh) 视频数据的处理方法、装置、电子设备及计算机可读介质
WO2021088671A1 (zh) 一种端能力的调用方法、设备和计算机存储介质
WO2016150191A1 (zh) 一种数据共享方法及装置
WO2020135131A1 (zh) 网络热点的切换方法、智能终端及计算机可读存储介质
WO2016023350A1 (zh) 多媒体播放设备、播放器自动识别装置及方法
WO2015108282A1 (ko) 전자 장치의 광고 방법 및 그 전자 장치
WO2015093754A1 (ko) 전자 장치에서 연결 정보를 공유하는 방법 및 장치
WO2018068740A1 (zh) 终端及其应用程序的启动管理方法
WO2017050098A1 (zh) 一种短信处理方法及用户终端
WO2018218805A1 (zh) 终端响铃提示方法及系统
WO2017166640A1 (zh) 一种应用调用方法和终端
WO2013133537A1 (ko) 사용자 단말기에 디바이스 제어 정보를 제공하는 방법 및 시스템과 이를 이용하여 어플리케이션을 실행하는 방법 및 사용자 단말기
WO2018186685A1 (en) Electronic apparatus and method for control thereof
WO2019218434A1 (zh) 程序的启动方法、用户设备、存储介质及装置
WO2018218807A1 (zh) 微信的信息读取方法及系统
US7958207B2 (en) Method of installing software for enabling a connection of a phone to an interconnected network
WO2018117747A1 (en) Electronic device, method for controlling thereof and computer-readable recording medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16887474

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16887474

Country of ref document: EP

Kind code of ref document: A1