注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

分享,态度 ·~~

—— 十年太长,五年;如果可以回到五年前,你最想对那时候的自己说什么?

 
 
 

日志

 
 

OESF DLNA Extension  

2010-12-09 11:36:51|  分类: DLNA |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

What is DLNA

The Digital Living Network Alliance (DLNA) is a non-profit collaborative trade organization comprising more than 250 member companies in the mobile, consumer electronics, PC, and service provider industries. Alliance members have stated the common goal of using standards-based technology to make it easier for consumers to use, share and enjoy their digital photos, music and videos. Now More than 8,000 different devices had obtained "DLNA Certified" status, indicated by a logo on their packaging and confirming their interoperability with other devices.

Usually DNLA means specification that DLNA created industry standard for digital home appliances. This document provide OESF's DLNA extention for Android?. Next picture illustrate how DLNA works.

OESF DLNA Extension - 乂乂 - 一个人,一支烟  ·~~ 

What is DLNA Certified Device

The DLNA Certified Device Classes are separated as follows:

  • Digital Media Server (DMS): These devices store content and make it available to networked digital media players (DMP) and digital media renderers (DMR). Some digital media servers can also help protect your content once stored. Examples include PCs and network attached storage (NAS) devices.
  • Digital Media Player (DMP): These devices find content on digital media servers (DMS) and provide playback and rendering capabilities. Examples include TVs, stereos and home theaters, wireless monitors and game consoles.
  • Digital Media Renderer (DMR): These devices play content received from a digital media controller (DMC), which will find content from a digital media server (DMS). Examples include TVs, audio/video receivers, video displays and remote speakers for music.
  • Digital Media Controller (DMC): These devices find content on digital media servers (DMS) and play it on digital media renderers (DMR). Examples include Internet tablets, Wi-Fi? enabled digital cameras and personal digital assistants (PDAs).
  • Digital Media Printer (DMPr): These devices provide printing services to the DLNA home network. Generally, digital media players (DMP) and digital media controllers (DMC) with print capability can print to DMPr. Examples include networked photo printers and networked all-in-one printers.

DLNA specification and softwre

DLNA specification is created, mainteined and published from Digital Living Network Alliance, Its only provide to alliance members. DLNA does not certify software at this time, only complete devices. The vendors of software are allowed to claim that their software is a DLNA Technology Component if the software has gone through certification testing on a device and the device has been granted DLNA Certification. DLNA Technology Components are not marketed to the consumer but only to industry.

Therefor OESF DLNA Extention is not certified product of DLNA, device vender have to get DLNA Certification by their on aim. The main purpose of our implementation of DLNA to Androd? is to provide API guidelines and standards for Android? application developers.

OESF DLNA Extention

OESF DLNA Extension - 乂乂 - 一个人,一支烟  ·~~

OESF DLNA Extention currentry suport minimum set of functionality of DNLA standard. It consist from the follow open-spurce based software packages and libraries. We provide Java based APIs for developers to easy create your applications. Also we provide DLNA framework to Android? framework layer and sample Digital Media Player application to perform typical media search and play. OESF DLNA Extention also include open-source based media decoders.

MiniDLNA is server software with the aim of being fully compliant with DLNA/UPnP clients.

libupnp is a portable SDK for UPnP Devices that provides developers with an API and open source code for building control points, devices, and bridges that are compliant with Version 1.0 of the Universal Plug and Play Device Architecture Specification. UPnP is an architecture that enables discovery, event notification, and control of devices on a network, independent of operating system, programming language, or physical network connection. UPnP is based on common Internet standards and specifications such as TCP/IP, HTTP, and XML

libdlna aims at being the reference open-source implementation of DLNA (Digital Living Network Alliance) standards. Its primary goal is to provide DLNA support to uShare, an embedded DLNA & UPnP A/V Media Server, but it will be used to build both DLNA servers and players in the long term.

libexif is a library to read and write EXIF meta information from and to image files.

libid3tag is an ID3 tag manipulation library for MP3 audio file. MP3 is an audio-specific format that was designed by the Moving Picture Experts Group as part of its MPEG-1 standard and later extended in MPEG-2 standard.

Libogg is contains necessary functionality to create, decode, and work with Ogg bitstreams. Ogg is a multimedia container format, and the native file and stream format for the Xiph.org multimedia codecs. As with all Xiph.org technology is it an open format free for anyone to use. Ogg is a stream oriented container, meaning it can be written and read in one pass, making it a natural fit for internet streaming and use in processing pipelines. This stream orientation is the major design difference over other file-based container formats.

Flac(Free Lossless Audio Codec) is an audio compression codec, a fully open, and general purpose compressed audio format with lossless feature.

libvorbis reference implementation provides both a standard encoder and decoder. Vorbis is a fully open, non-proprietary, patent-and-royalty-free, general-purpose compressed audio format for mid to high quality (8kHz-48.0kHz, 16+ bit, polyphonic) audio and music at fixed and variable bitrates from 16 to 128 kbps/channel.

Implement DLNA to Android?

There are many approach to realize DLNA implementation to Andrid?.

OESF DLNA Extension - 乂乂 - 一个人,一支烟  ·~~

 The most easy way to realize DLNA functions is to provide DLNA libraries for application shown figure 1. In this case, application size will be too big and it cause difficulty to update DLNA modules sepalately due to all libraries is tightly linked with applications. To update libraries, rebuild application each times.

OESF DLNA Extension - 乂乂 - 一个人,一支烟  ·~~

 To be a good citizen of Android?, our implemantation conforms Android? layered architecture to provide developer more usability and flexability to develope their applications. The figure 2 illstrates OESF implementation of DLNA.


Features

OESF DLNA Extention provide fruitfull DLNA framework that Android? developers developement style. Depelopers can easy develope complex applications. It's easy to modify current applications to extend the function to support DLNA.

  • Can use Intent for asyncronus request to DLNA service and can get return by broadcast reciever.
  • Independent from codecs and/or transfer method of contents.

Introducing cach for information retrieval to increase response time.

All source is open source license based.

Note: Some of source code is GPL or LGPL based license, Please chech each source code license condition at source code header or copyright text.

Operation flow (How its works)

Search server

The following figure shows how to perform to search sever from DMP application. Send intent to DNLA server, and get return through Broadcast Receiver. This process is done asynchronously. After receive return, retrieve query(maagedQuery) to DLNA content provider that hold server list. DLNA content provider is cashing server list for future use. This mechanize provide more higher performance.

OESF DLNA Extension - 乂乂 - 一个人,一支烟  ·~~ 

Search contsnts

The following figure shows how to perform to search contents from DMP application. The flow is almost same as to search server. Send intent to DNLA server, and get return through Broadcast Receiver. This process is done asynchronously. After receive return, retrieve query(maagedQuery) to DLNA content provider that hold contents list. DLNA content provider is cashing contents list for future use.

OESF DLNA Extension - 乂乂 - 一个人,一支烟  ·~~

Get content URI and Play

DLNA content provider is holding content information, to get content URI, retrieve query(maagedQuery) to DLNA content provider. Content provider returns content URI to play. After get content URI, DMP application execute viewer to play content.

OESF DLNA Extension - 乂乂 - 一个人,一支烟  ·~~

Intent Overview

An intent is an abstract description of an operation to be performed. An Intent provides a facility for performing late runtime binding between the code in different applications. Its most significant use is in the launching of activities, where it can be thought of as the glue between activities. It is basically a passive data structure holding an abstract description of an action to be performed.

The followings are exsample cording for new defined intent for DLNA service.

// Search DMS  Intent IntentService = new Intent("biz.oesf.dlna.action.DlnaService");  IntentService.addCategory("biz.oesf.dlna.category.SearchServer");  sendBroadcast(IntentService);    // Search Container List  Intent intentService = new Intent("biz.oesf.dlna.action.DlnaService");  intentService.addCategory("biz.oesf.dlna.category.SearchContainer");  intentService.putExtra("SERVER", PFMain.sSelectServer);  intentService.putExtra("ID", "0");  sendBroadcast(intentService);  

Implement DLNA to your system

To support DLNA, all vendors who support DLNA functionality have to join alliance to get certification. The certification only provid to DLNA supported hardware devices. OESF's implementation is only provide guidelines, OESF only provides implementation framework and API standard on Android? environment. If hardware vendors or DLNA software provider would like to release DNLA for Android? devices, We stromgly recomment you to follow this framework and APIs. OESF promote this implementation standard to be acceptable to DMP application developers strongly.

This approach has big merits for Android? software developers, they can start to develop their application using this OESF environment without wait target devices. Those developed application can keep compatibility through OESF DLNA compliant platforms.

Also this approach provide big merits for DLNA software stack providers. If you provide OESF standard API based your stack, You do not need promote and educate engineers to learn your proprietary APIs and original implementation framework on Android?.

【from http://developer.oesf.biz/em/developer/dev_guide/DLNA.html

  评论这张
 
阅读(2087)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017