[go: up one dir, main page]

CN103269450B - A kind of multimedia system towards Android intelligent television - Google Patents

A kind of multimedia system towards Android intelligent television Download PDF

Info

Publication number
CN103269450B
CN103269450B CN201310146765.1A CN201310146765A CN103269450B CN 103269450 B CN103269450 B CN 103269450B CN 201310146765 A CN201310146765 A CN 201310146765A CN 103269450 B CN103269450 B CN 103269450B
Authority
CN
China
Prior art keywords
media
android
module
play
digital
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.)
Expired - Fee Related
Application number
CN201310146765.1A
Other languages
Chinese (zh)
Other versions
CN103269450A (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.)
Beijing Hiliway Digital Systems Co ltd
Institute of Acoustics CAS
Original Assignee
Beijing Hiliway Digital Systems Co ltd
Institute of Acoustics CAS
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 Beijing Hiliway Digital Systems Co ltd, Institute of Acoustics CAS filed Critical Beijing Hiliway Digital Systems Co ltd
Priority to CN201310146765.1A priority Critical patent/CN103269450B/en
Publication of CN103269450A publication Critical patent/CN103269450A/en
Application granted granted Critical
Publication of CN103269450B publication Critical patent/CN103269450B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

本发明涉及一种面向Android智能电视的多媒体系统,包括:数字电视服务模块,用于获取并存储与数字电视广播流相关的节目信息;电视操作系统媒体播放模块,用于从所述数字电视服务模块获取与NGB-H/J应用传入的媒体资源定位符相对应的数字电视广播流的节目信息,并且根据所述节目信息对所述媒体资源定位符进行重构;数字电视播放模块,用于对重构后的定位符进行数据结构解封装,根据解封装后的数据对数字电视广播流进行播放。本发明将数字电视广播的播放功能融入到Android多媒体系统中,从而达到上层应用的统一调用和Android框架层对各种媒体播放的统一管理,并可以对下一代广播电视规范中的媒体功能进行很好的支持。

The invention relates to a multimedia system for Android smart TVs, comprising: a digital TV service module, used to obtain and store program information related to digital TV broadcast streams; a TV operating system media player module, used to serve The module acquires the program information of the digital TV broadcast stream corresponding to the media resource locator imported by the NGB-H/J application, and reconstructs the media resource locator according to the program information; the digital TV playback module uses The method is to decapsulate the data structure of the reconstructed locator, and play the digital TV broadcast stream according to the decapsulated data. The present invention integrates the playing function of digital TV broadcasting into the Android multimedia system, so as to achieve the unified call of the upper layer application and the unified management of various media playing by the Android framework layer, and can perform a lot of media functions in the next generation broadcasting TV specification good support.

Description

一种面向Android智能电视的多媒体系统A multimedia system for Android smart TV

技术领域technical field

本发明涉及Android智能电视领域,尤其涉及一种面向Android智能电视的多媒体系统。The invention relates to the field of Android smart TVs, in particular to a multimedia system for Android smart TVs.

背景技术Background technique

随着移动终端中智能操作系统的发展,电视产业也开始了从传统的中间件技术向智能电视操作系统的转变。同时,Android系统作为一款开源的智能终端操作系统,以其开源性和易用性,正获得越来越大的普及。Android系统拥有大量的第三方应用程序支持,以Android系统作为智能电视系统的基础,能够为智能电视用户提供大量的第三方应用。With the development of smart operating systems in mobile terminals, the TV industry has also begun to transform from traditional middleware technology to smart TV operating systems. At the same time, as an open source smart terminal operating system, the Android system is gaining more and more popularity due to its open source and ease of use. The Android system is supported by a large number of third-party applications. With the Android system as the basis of the smart TV system, it can provide a large number of third-party applications for smart TV users.

目前,Android的多媒体系统支持本地文件和流媒体文件等的播放和控制,但是并没有对数字电视广播流的播放进行支持。目前传统的做法是,将数字电视广播流的播放功能做成一个本地动态库的形式,然后上层通过JNI调用,java层封装,最终以一个Android应用的形式呈现出来。这种做法并没有将数字电视广播流的播放功能融入Android的多媒体框架中,进而不利于上层应用对本地媒体、流媒体和数字电视广播流的播放功能的统一使用,也不利于Android框架对各种媒体播放功能的统一管理。At present, the multimedia system of Android supports the playback and control of local files and streaming media files, etc., but does not support the playback of digital TV broadcast streams. The current traditional approach is to make the playback function of the digital TV broadcast stream into the form of a local dynamic library, and then the upper layer calls it through JNI, encapsulates it in the java layer, and finally presents it in the form of an Android application. This approach does not integrate the playback function of digital TV broadcast streams into the Android multimedia framework, which is not conducive to the unified use of local media, streaming media, and digital TV broadcast stream playback functions by upper-layer applications, and is also not conducive to the Android framework’s ability to use various Unified management of various media playback functions.

基于此,现阶段急需解决的问题是让Android支持数字电视广播流播放功能的同时,能够将数字电视广播流的播放功能融入到Android多媒体系统中,从而达到上层应用的统一调用和Android框架层对各种媒体播放的统一管理。Based on this, the problem that needs to be solved urgently at this stage is to allow Android to support the digital TV broadcast stream playback function, and at the same time integrate the digital TV broadcast stream playback function into the Android multimedia system, so as to achieve the unified call of the upper application and the Android framework layer. Unified management of various media playback.

发明内容Contents of the invention

本发明的目的是提供一种能克服上述缺陷的面向Android智能电视的多媒体系统。The purpose of the present invention is to provide a multimedia system for Android smart TVs that can overcome the above-mentioned defects.

在第一方面,本发明提供了一种面向Android智能电视的多媒体系统,包括电视操作系统媒体播放模块、数字电视服务模块和数字电视播放模块,其中:所述数字电视服务模块,用于获取并存储与数字电视广播流相关的节目信息;所述电视操作系统媒体播放模块,用于从所述数字电视服务模块获取与NGB-H/J应用传入的媒体资源定位符相对应的数字电视广播流的节目信息,并且根据所述节目信息对所述媒体资源定位符进行重构;所述数字电视播放模块,用于对重构后的定位符进行数据结构解封装,根据解封装后的数据对数字电视广播流进行播放。In a first aspect, the present invention provides a multimedia system for Android smart TVs, including a TV operating system media player module, a digital TV service module, and a digital TV player module, wherein: the digital TV service module is used to acquire and Store program information related to the digital TV broadcast stream; the media player module of the TV operating system is used to obtain from the digital TV service module the digital TV broadcast corresponding to the media resource locator imported by the NGB-H/J application stream program information, and reconstruct the media resource locator according to the program information; the digital TV playback module is used to decapsulate the reconstructed locator data structure, and Plays a digital TV broadcast stream.

优选地,所述电视操作系统媒体播放模块被配置用于:将NGB-H/J应用传入的媒体资源定位符从16进制转换为10进制;根据转换后的媒体资源定位符从所述数字电视服务模块获取与所述媒体资源定位符相对应的节目信息;根据所述节目信息对所述媒体资源定位符进行重构。Preferably, the TV operating system media player module is configured to: convert the media resource locator passed in by the NGB-H/J application from hexadecimal to decimal; The digital TV service module acquires program information corresponding to the media resource locator; and reconstructs the media resource locator according to the program information.

优选地,所述系统还包括Android媒体播放客户端和Android媒体播放服务端和Android媒体播放模块,其中,所述电视操作系统媒体播放模块还被配置用于:对所述媒体资源定位符进行判断;如果所述媒体资源定位符属于数字电视广播流的播放业务,则进行所述节目信息的获取;如果所述媒体资源定位符不属于数字电视广播流的播放业务,则将所述媒体资源定位符传给所述Android媒体播放客户端,并且通过Android的binder通信机制从Android媒体播放客户端传到Android媒体播放服务端,并且传给所述Android媒体播放模块;所述Android媒体播放模块根据所述媒体资源定位符对不属于数字电视广播流的播放业务进行播放。Preferably, the system also includes an Android media player client, an Android media player server and an Android media player module, wherein the TV operating system media player module is also configured to: judge the media resource locator ; If the media resource locator belongs to the broadcasting service of the digital TV broadcast stream, then obtain the program information; if the media resource locator does not belong to the broadcasting service of the digital TV broadcast stream, then locate the media resource The character is passed to the Android media player client, and passed to the Android media player server from the Android media player client through the binder communication mechanism of Android, and passed to the Android media player module; the Android media player module is based on the The above media resource locator is used to play the broadcasting services that do not belong to the digital TV broadcasting stream.

优选地,所述数字电视服务模块还用于存储与多个节目信息相关的多个项目,每个项目包括原始网络ID、传输流ID和服务ID,所述电视操作系统媒体播放模块通过将所述媒体资源定位符中的原始网络ID、传输流ID和服务ID与所述多个项目进行比对,根据比对结果获得与所述媒体资源定位符相关的节目信息。Preferably, the digital TV service module is also used to store a plurality of items related to a plurality of program information, each item includes an original network ID, a transport stream ID and a service ID, and the media player module of the TV operating system passes the comparing the original network ID, transport stream ID and service ID in the media resource locator with the multiple items, and obtaining the program information related to the media resource locator according to the comparison result.

优选地,通过对所述节目信息和对统一资源定位符url的类型进行数据封装,所述电视操作系统媒体播放模块对所述媒体资源定位符进行重构。Preferably, the TV operating system media playing module reconstructs the media resource locator by encapsulating the program information and the type of the uniform resource locator url.

优选地,所述节目信息中的音频编解码类型、视频编解码类型、音频PID和视频PID被设置到Android内置的数据类型KeyVector中,所述统一资源定位符url的类型是数字视频广播。Preferably, the audio codec type, video codec type, audio PID and video PID in the program information are set in the Android built-in data type KeyVector, and the type of the uniform resource locator url is digital video broadcasting.

优选地,所述电视操作系统媒体播放模块、所述Android媒体播放客户端和所述Android媒体播放服务端分别具有符合NGB-H/J标准的相互对应的一个或多个扩展接口。Preferably, the media player module of the TV operating system, the Android media player client and the Android media player server respectively have one or more corresponding extension interfaces conforming to the NGB-H/J standard.

优选地,所述电视操作系统媒体播放模块从所述数字电视服务模块查询到当前的tunerID,并且通过所述tunerID、所述原始网络ID和所述传输流ID进行锁频操作。Preferably, the media playing module of the TV operating system inquires the current tunerID from the digital TV service module, and performs a frequency locking operation through the tunerID, the original network ID and the transport stream ID.

优选地,所述系统还包括:符合下一代广播电视网规范NGB-H/J的接口,用于将NGB-H/J应用的媒体资源定位符传入所述电视操作系统媒体播放模块。Preferably, the system further includes: an interface conforming to the NGB-H/J specification of the next generation broadcasting network, for transferring the media resource locator of the NGB-H/J application to the media playing module of the TV operating system.

在第二方面,本发明提供了一种Android智能电视,其包含有在上述第一方面中所述的面向Android智能电视的多媒体系统。In the second aspect, the present invention provides an Android smart TV, which includes the Android smart TV-oriented multimedia system described in the first aspect.

本发明扩展了Android的多媒体系统,使得Android支持数字电视广播流播放的同时,将数字电视广播的播放功能融入到Android多媒体系统中,从而达到上层应用的统一调用和Android框架层对各种媒体播放的统一管理,并可以对下一代广播电视规范中的媒体功能进行很好的支持。The present invention expands the multimedia system of Android, makes Android support digital TV broadcast stream playing, and integrates the playback function of digital TV broadcast into the Android multimedia system, so as to achieve the unified call of the upper layer application and the playback of various media by the Android framework layer Unified management, and can well support the media functions in the next generation broadcast television specification.

附图说明Description of drawings

下面将参照附图对本发明的具体实施方案进行更详细的说明,在附图中:Specific embodiments of the present invention will be described in more detail below with reference to the accompanying drawings, in the accompanying drawings:

图1是根据本发明实施例的面向Android智能电视的多媒体系统的结构框图;以及Fig. 1 is the structural block diagram of the multimedia system facing Android Smart TV according to the embodiment of the present invention; And

图2是根据本发明实施例的面向Android智能电视的多媒体系统的实现方法的流程图。Fig. 2 is a flowchart of a method for implementing a multimedia system oriented to an Android smart TV according to an embodiment of the present invention.

具体实施方式detailed description

下面通过附图和实施例,对本发明的技术方案做进一步的详细描述。The technical solutions of the present invention will be described in further detail below with reference to the accompanying drawings and embodiments.

图1是根据本发明实施例的面向Android智能电视的多媒体系统的结构框图。Fig. 1 is a structural block diagram of a multimedia system oriented to an Android smart TV according to an embodiment of the present invention.

如图1所示,所述多媒体系统包括Android的java层的播放接口、Android的JNI层、符合下一代广播电视(NextGenerationBroadcasting,NGB)的媒体接口规范NGB-H/J的NGB-H/J接口、电视操作系统媒体播放模块(TvosMediaPlayer)、数字电视服务模块(DTVServer)、Android媒体播放客户端、Android媒体播放服务端、数字电视播放模块(DTVPlayer)、Android媒体播放模块(StagefrightPlayer)。As shown in Figure 1, the multimedia system includes the playback interface of the java layer of Android, the JNI layer of Android, and the NGB-H/J interface conforming to the media interface specification NGB-H/J of Next Generation Broadcasting (NGB) , TV operating system media player module (TvosMediaPlayer), digital TV service module (DTVServer), Android media player client, Android media player server, digital TV player module (DTVPlayer), Android media player module (StagefrightPlayer).

Android应用一般与Android的java层的播放接口和Android的JNI层相关,这是本领域技术人员所熟知的,因此不再赘述以免模糊本发明的主题。Android applications are generally related to the playback interface of the java layer of Android and the JNI layer of Android, which are well known to those skilled in the art, so they will not be described in detail so as not to obscure the subject of the present invention.

下面着重描述本发明的重点,即对NGB-H/J应用的处理。The focus of the present invention will be described below, that is, the processing of NGB-H/J applications.

NGB-H/J的应用通过NBG-H/J接口来执行,上层应用(NGB-H/J应用)通过NGB-H/J接口将媒体资源定位符传入TvosMediaPlayer。媒体资源定位符中包括原始网络ID、传输流ID和服务ID。The application of NGB-H/J is executed through the NBG-H/J interface, and the upper layer application (NGB-H/J application) transmits the media resource locator to TvosMediaPlayer through the NGB-H/J interface. The media resource locator includes original network ID, transport stream ID and service ID.

DTVServer获取并分析数字电视广播流的节目信息,一般来说,可以从连接到电视的机顶盒中的tuner模块得到该节目信息。DTVServer以Android本地服务的形式存在于系统当中,为系统中其他模块提供数字电视广播流的节目信息表、频道搜索和锁频等功能。The DTVServer acquires and analyzes the program information of the digital TV broadcast stream, generally, the program information can be obtained from the tuner module in the set-top box connected to the TV. DTVServer exists in the system in the form of Android local service, and provides other modules in the system with functions such as program information list, channel search and frequency locking of digital TV broadcast streams.

TvosMediaPlayer通过与DTVServer进行交互,从DTVServer拿到数字电视广播流的节目信息,根据节目信息重构NGB-H/J传入的媒体资源定位符。重构的媒体资源定位符被传入Andriod的媒体播放客户端。另外,TvosMediaPlayer从DTVServer查询到当前的tunerID,并且通过所述tunerID、所述原始网络ID和所述传输流ID进行锁频操作。TvosMediaPlayer可以屏蔽Android媒体框架的细节,同时可以对上提供NGB-H/J的功能支持。TvosMediaPlayer interacts with DTVServer, obtains the program information of digital TV broadcast stream from DTVServer, and reconstructs the media resource locator imported by NGB-H/J according to the program information. The reconstructed media resource locator is passed to the Android media player client. In addition, TvosMediaPlayer queries the current tunerID from the DTVServer, and performs a frequency locking operation through the tunerID, the original network ID and the transport stream ID. TvosMediaPlayer can shield the details of the Android media framework, and at the same time provide support for NGB-H/J functions.

通过Andriod中诸如binder之类的通信机制,重构的媒体资源定位符从Android媒体播放客户端传递到Android媒体播放服务端。另外,需要在TvosMediaPlayer、标准的Android的媒体播放服务端和客户端扩展相对应的一个或多个媒体接口,以满足NGB-H/J对媒体播放接口的需求。Through the communication mechanism such as binder in Andriod, the reconstructed media resource locator is passed from the Android media player client to the Android media player server. In addition, one or more corresponding media interfaces need to be extended in TvosMediaPlayer, standard Android media playback server and client to meet the requirements of NGB-H/J for media playback interfaces.

Andriod媒体播放服务端判断是否是数字电视广播流的播放,如果是,则调用DVBPlayer进行播放,将重构的媒体资源定位符传入DVBPlayer。The Andriod media player server judges whether it is a digital TV broadcast stream, if so, calls DVBPlayer to play, and passes the reconstructed media resource locator into DVBPlayer.

DTVPlayer通过对重构的媒体资源定位符/参数数据结构进行解封装,根据解封装获取的参数对数字广播电视流进行播放。DTVPlayer decapsulates the reconstructed media resource locator/parameter data structure, and plays the digital broadcast TV stream according to the parameters obtained through decapsulation.

图2是根据本发明实施例的面向Android智能电视的多媒体系统的实现方法的流程图。Fig. 2 is a flowchart of a method for implementing a multimedia system oriented to an Android smart TV according to an embodiment of the present invention.

在步骤201,上层应用(NGB-H/J应用)通过NGB-H/J接口将资源定位符传入TvosMediaPlayer。对于不同的媒体类型,媒体资源定位符也有不同的形式。例如,本地媒体文件的定位符的形式为file://<host>/<path>。流媒体文件的定位符的形式为:http://<远程主机IP>:<远程主机端口>/<path>。dvb://<original_network_id>.<transport_stream_id>.<service_id>,这是数字电视广播流的媒体资源定位符的具体形式。In step 201, the upper layer application (NGB-H/J application) transmits the resource locator to TvosMediaPlayer through the NGB-H/J interface. For different media types, media resource locators also have different forms. For example, a locator for a local media file has the form file://<host>/<path>. The format of the locator of the streaming media file is: http://<remote host IP>:<remote host port>/<path>. dvb://<original_network_id>.<transport_stream_id>.<service_id>, this is the specific form of the media resource locator of the digital TV broadcast stream.

在步骤202,根据媒体资源定位符中开始的协议标记的不同,判断其是否属于数字电视广播流的播放业务。如步骤201所述,以dvb://开始的字符串代表该媒体资源定位符属于数字电视广播流的播放业务。如果该媒体资源定位符属于数字电视广播流的播放业务,则流程进行到步骤203;否则,则该媒体资源定位符不属于数字电视广播流的播放业务,流程进行到步骤206。In step 202, it is judged whether the media resource locator belongs to the playing service of the digital TV broadcast stream according to the difference of the initial protocol mark in the media resource locator. As described in step 201, the character string starting with dvb:// indicates that the media resource locator belongs to the playback service of the digital TV broadcast stream. If the media resource locator belongs to the playing service of the digital TV broadcast stream, the process proceeds to step 203 ; otherwise, the media resource locator does not belong to the playing service of the digital TV broadcast stream, and the process proceeds to step 206 .

在步骤203,重新设置媒体资源定位符。In step 203, the media resource locator is reset.

例如,在重新设置之前,数字电视广播节目流的媒体资源定位符是dvb://888.3.12D,其中888为原始网络ID,3为TS流ID,12D为服务ID。本领域技术人员应当理解,NGB-H/J规范中要求上述ID采用16进制。For example, before the reset, the media resource locator of the digital TV broadcast program stream is dvb://888.3.12D, where 888 is the original network ID, 3 is the TS stream ID, and 12D is the service ID. Those skilled in the art should understand that the NGB-H/J specification requires that the above-mentioned ID be in hexadecimal.

在重新设置媒体资源定位符的过程中,需要将上述ID从16进制转换为10进制。针对上述的媒体资源定位符的具体例子,重新设置是通过从16进制到10进制的转换,将原始的网络ID设置为2184,TS流ID设置为3,服务ID设置为301,从而得到一个新的资源定位符为dvb://2184.3.301。In the process of resetting the media resource locator, the above ID needs to be converted from hexadecimal to decimal. For the specific example of the media resource locator mentioned above, the reset is through the conversion from hexadecimal to decimal, and the original network ID is set to 2184, the TS stream ID is set to 3, and the service ID is set to 301, thus obtaining A new resource locator is dvb://2184.3.301.

在步骤204,根据新的资源定位符获取其对应的节目信息。In step 204, the corresponding program information is acquired according to the new resource locator.

由于媒体资源定位符是属于数字电视广播流播放业务,所以需要与DTVServer服务进行交互,获取节目信息。Since the media resource locator belongs to the digital TV broadcast streaming service, it needs to interact with the DTVServer service to obtain program information.

由于网络ID、TS流ID和服务ID对应一个节目,而其对应的节目信息在数据流通过模拟电视解调器传入时已经被存储在数据库中。换言之,数据库中的节目信息各自对应一组数据,即网络ID、TS流ID和服务ID。Since the network ID, TS stream ID and service ID correspond to a program, the corresponding program information has been stored in the database when the data stream is imported through the analog TV demodulator. In other words, the program information in the database corresponds to a set of data, namely network ID, TS stream ID and service ID.

因此,通过将重新设置的定位符中的ID组与数据库中的ID组进行比对,可以从数据库中提取出对应的节目信息。节目信息包括音频语言类型、音视频编解码类型、音视频PID等。Therefore, by comparing the ID group in the reset locator with the ID group in the database, the corresponding program information can be extracted from the database. Program information includes audio language type, audio and video codec type, audio and video PID, etc.

在步骤205,根据节目信息重构定位符,具体的步骤如下所示。In step 205, the locator is reconstructed according to the program information, and the specific steps are as follows.

音频编解码类型和视频编解码类型的值被分别赋予参数audiocodec和videocodec,音频PID和视频PID的值被分别赋予参数audiopid和videopid。The values of audio codec type and video codec type are assigned to parameters audiocodec and videocodec respectively, and the values of audio PID and video PID are assigned to parameters audiopid and videopid respectively.

Android的媒体播放客户端提供了如下的接口:The Android media player client provides the following interfaces:

status_tsetDataSource(constchar*url,status_tsetDataSource(constchar*url,

constKeyedVector<String8,String8>*headers);constKeyedVector<String8,String8>*headers);

将参数url设置为“dvb://”;Set the parameter url to "dvb://";

KeyVector是Android内置的一个数据类型,可以通过对其进行如下设置来设置这种类型的headers:KeyVector is a built-in data type of Android, you can set this type of headers by setting it as follows:

<”v_codec”,“videocodec”><"v_codec", "videocodec">

<”a_codec”,“audiocodec”><"a_codec", "audiocodec">

<”a_pid”,“audiopid”><"a_pid", "audiopid">

<”v_pid”,“videopid”><"v_pid", "video pid">

这样,将设置好的url和headers封装在如上的数据结构中。In this way, the set url and headers are encapsulated in the above data structure.

在步骤206,将来自于步骤202和/或步骤205的参数传递到Android的媒体播放客户端。进一步,媒体播放客户端进行下述判断:如果是从步骤205传入的参数,则url和headers都是有效的参数;如果是从步骤202传入的参数,则url是有效的,将headers置空即可。In step 206, the parameters from step 202 and/or step 205 are passed to the Android media player client. Further, the media player client carries out the following judgment: if it is the parameter imported from step 205, then url and headers are all valid parameters; Just empty.

在步骤207,将参数从Android的媒体播放客户端传递到媒体播放服务端。Android的媒体播放服务端和媒体播放客户端是运行在两个进程当中,它们通过Android的binder通信机制进行通信。例如,上述从客户端到服务端的参数传递可以通过二者之间的binder通信机制来进行。In step 207, the parameters are passed from the Android media player client to the media player server. Android's media player server and media player client run in two processes, and they communicate through Android's binder communication mechanism. For example, the above parameter transfer from the client to the server can be performed through a binder communication mechanism between the two.

在步骤208,媒体播放服务端判断是否是数字电视广播流的播放。In step 208, the media playing server determines whether it is playing a digital TV broadcast stream.

根据参数可以判断出是否是数字电视广播流的播放,例如,url为dvb://即属于数字电视广播流。如果是,则流程进行到步骤209;否则,流程进行到步骤210。Whether it is a digital TV broadcast stream can be judged according to the parameters. For example, if the url is dvb://, it belongs to the digital TV broadcast stream. If yes, the flow goes to step 209; otherwise, the flow goes to step 210.

在步骤209,调用DVBPlayer播放器对数字电视广播流进行播放。DVBPlayer播放器通过对步骤205封装的数据结构进行解封装,可以拿到音视频编解码类型和音视频PID,从而调用硬件平台的接口进行播放操作。In step 209, the DVBPlayer is invoked to play the digital TV broadcast stream. By decapsulating the data structure encapsulated in step 205, the DVBPlayer player can obtain the audio and video codec type and audio and video PID, thereby calling the interface of the hardware platform to perform the playback operation.

在步骤210,调用Android内置的播放器StagefrightPlayer对本地文件或流媒体文件进行播放。In step 210, the Android built-in player StagefrightPlayer is called to play the local file or streaming media file.

在步骤211中,播放开始。In step 211, playback starts.

专业人员应该还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Professionals should further realize that the units and algorithm steps described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the relationship between hardware and software Interchangeability. In the above description, the composition and steps of each example have been generally described according to their functions. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

结合本文中所公开的实施例描述的方法或算法的步骤可以用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of the methods or algorithms described in connection with the embodiments disclosed herein may be implemented by hardware, software modules executed by a processor, or a combination of both. Software modules can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other Any other known storage medium.

以上所述的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The specific embodiments described above have further described the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above descriptions are only specific embodiments of the present invention and are not intended to limit the scope of the present invention. Protection scope, within the spirit and principles of the present invention, any modification, equivalent replacement, improvement, etc., shall be included in the protection scope of the present invention.

Claims (9)

1. towards a multimedia system for Android intelligent television, comprising:
Digital television service module, for obtaining and relevant program letter is flowed in storage and digital television broadcastingBreath;
TV operation system media play module, for obtain from described digital television service module withIt is corresponding that generation broadcasting and television network media interface specification NGB-H/J applies the media resource finger URL importing intoThe programme information of digital television broadcasting stream, and fixed to described media resource according to described programme informationPosition symbol is reconstructed, and concrete steps comprise:
Next generation broadcasting network media interface specification NGB-H/J is applied to the media resource finger URL importing intoBe converted to 10 systems from 16 systems; Take from described DTV according to the media resource finger URL after conversionBusiness module is obtained the programme information corresponding with described media resource finger URL; And according to described program letterBreath is reconstructed described media resource finger URL;
DTV playing module, carries out data structure decapsulation, root for the finger URL to after reconstructAccording to the data after decapsulation, digital television broadcast stream is play.
2. system according to claim 1, also comprise Android media play client andAndroid media play service end and Android media play module, wherein, described TV operation systemMedia play module is also arranged to:
Described media resource finger URL is judged;
If described media resource finger URL belongs to the play service of digital television broadcasting stream, described in carrying outObtaining of programme information;
If described media resource finger URL does not belong to the play service of digital television broadcasting stream, described in inciting somebody to actionMedia resource finger URL is passed to described Android media play client, and by Android'sBinder communication mechanism passes to Android media play service end from Android media play client,And pass to described Android media play module;
Described Android media play module according to described media resource finger URL to not belonging to DTVThe play service of broadcasting stream is play.
3. system according to claim 1, wherein, described digital television service module is also for depositingStore up the multiple projects relevant to multiple programme informations, each project comprise primitive network ID, MPTS ID andService ID, former by by described media resource finger URL of described TV operation system media play moduleBeginning network ID, MPTS ID and service ID and described multiple project are compared, and obtain according to comparison resultProgramme information that must be relevant to described media resource finger URL.
4. system according to claim 1, wherein, by providing to described programme information with to unifiedThe type of source finger URL url is carried out data encapsulation, and described TV operation system media play module is to describedMedia resource finger URL is reconstructed.
5. system according to claim 4, wherein, the audio coding decoding class in described programme informationType, coding and decoding video type, audio frequency PID and video PID are set to the built-in data class of AndroidIn type KeyVector, the type of described URL url is DVB.
6. system according to claim 1, wherein, described TV operation system media play mouldPiece, described Android media play client and described Android media play service end have respectivelyMeet mutual correspondence one or more of Next generation broadcasting network media interface specification NGB-H/J standardExpansion interface.
7. system according to claim 3, wherein, described TV operation system media play moduleInquire current tunerID from described digital television service module, and by described tunerID,Described primitive network ID and described MPTS ID carry out frequency locking operation.
8. system according to claim 1, also comprises: meet Next generation broadcasting network media and connectThe interface of mouth specification NGB-H/J, for answering Next generation broadcasting network media interface specification NGB-H/JWith media resource finger URL import described TV operation system media play module into.
9. an Android intelligent television, comprise as described in one of claim 1-8 towardsThe multimedia system of Android intelligent television.
CN201310146765.1A 2013-04-25 2013-04-25 A kind of multimedia system towards Android intelligent television Expired - Fee Related CN103269450B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310146765.1A CN103269450B (en) 2013-04-25 2013-04-25 A kind of multimedia system towards Android intelligent television

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310146765.1A CN103269450B (en) 2013-04-25 2013-04-25 A kind of multimedia system towards Android intelligent television

Publications (2)

Publication Number Publication Date
CN103269450A CN103269450A (en) 2013-08-28
CN103269450B true CN103269450B (en) 2016-05-04

Family

ID=49013055

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310146765.1A Expired - Fee Related CN103269450B (en) 2013-04-25 2013-04-25 A kind of multimedia system towards Android intelligent television

Country Status (1)

Country Link
CN (1) CN103269450B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683419B (en) * 2013-12-03 2019-08-27 航天信息股份有限公司 A kind of communication means and system based on Android system and m2m
CN106658149A (en) * 2015-10-28 2017-05-10 中兴通讯股份有限公司 Media play method and device
CN105704505B (en) * 2016-02-03 2018-02-09 国家新闻出版广电总局广播科学研究院 A kind of method and Intelligent television terminal that full media play is supported in intelligent television operating system
CN107566899B (en) * 2017-07-21 2020-11-27 深圳创维数字技术有限公司 Digital video broadcasting terminal and storage device based on android system
US20210056220A1 (en) * 2019-08-22 2021-02-25 Mediatek Inc. Method for improving confidentiality protection of neural network model
CN115426339A (en) * 2022-08-29 2022-12-02 中国建设银行股份有限公司 Multimedia data processing method, device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102789381A (en) * 2011-12-31 2012-11-21 浙江创佳数字技术有限公司 Method for achieving digital televisions in accordance to digital video broadcasting (DVB) standards in Andriod system
CN202696815U (en) * 2012-06-29 2013-01-23 吴李海 Digital video broadcast player
CN103024572A (en) * 2012-12-14 2013-04-03 深圳创维-Rgb电子有限公司 Television
US8418209B1 (en) * 2012-02-03 2013-04-09 Silicon Valley Patent Agency, Inc. Mobile devices for receiving real-time digital TV

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102789381A (en) * 2011-12-31 2012-11-21 浙江创佳数字技术有限公司 Method for achieving digital televisions in accordance to digital video broadcasting (DVB) standards in Andriod system
US8418209B1 (en) * 2012-02-03 2013-04-09 Silicon Valley Patent Agency, Inc. Mobile devices for receiving real-time digital TV
CN202696815U (en) * 2012-06-29 2013-01-23 吴李海 Digital video broadcast player
CN103024572A (en) * 2012-12-14 2013-04-03 深圳创维-Rgb电子有限公司 Television

Also Published As

Publication number Publication date
CN103269450A (en) 2013-08-28

Similar Documents

Publication Publication Date Title
CN103269450B (en) A kind of multimedia system towards Android intelligent television
US20160007078A1 (en) Method and system for providing user-generated content via a gateway
WO2016138844A1 (en) Multimedia file live broadcast method, system and server
US7574514B2 (en) Systems and methods for identifying original streams of media content
US10051026B2 (en) Real-time transcode transfer method and system based on HTTP under DLNA
US20110119724A1 (en) Proxy Functionality
WO2008061416A1 (en) A method and a system for supporting media data of various coding formats
CN101325666A (en) An intelligent mobile terminal TV remote control system
WO2013152580A1 (en) Method for converting online media data or playing video and apparatus thereof
US8850496B2 (en) Dynamic provisioning of closed captioning to user devices
CN101505405A (en) Digital media content playing method and system based on content indexing
CN105577645A (en) Proxy-based HLS client device and its implementation method
WO2021042936A1 (en) Video data processing method, apparatus, electronic device and computer-readable medium
CN109379209A (en) A kind of upgrade method and device of view networking storage service
CN107276990B (en) A kind of streaming media live broadcast method and device
CN109451259A (en) Tv line, television system and data capture method of televising
CN109977137A (en) A kind of data query method and apparatus
CN103648056A (en) Point-to-point transmission method and apparatus for smart television
WO2017183403A1 (en) Systems and methods for signaling of an identifier of a data channel
WO2012041039A1 (en) Method, correlative equipment and system for digital tv terminal accessing internet video
CN104092664B (en) A kind of multimedia resource management method, Cloud Server and electronic equipment
CN111212255B (en) Monitoring resource obtaining method and device and computer readable storage medium
CN108632331A (en) A kind of installation method and device regarding working application
CN110072139A (en) A kind of sharing method and transfer server based on view networking
CN110445761A (en) A kind of video drawing stream method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160504

Termination date: 20200425