Abstract:Due to the capacity limitation of Android media framework,it is extended to support all normal containers and codecs of multimedia, aiming to satisfy the demands of Smart TV. Based on bridge pattern and FFmpeg libraries,a container extractor component and a decoder component are created and plugged in,respectively. Every plug-in adapts to the architectures of both Stagefright and Android media framework. The experimental results show that the extended Android can support all normal containers and audio/video codecs; moreover, it can parse multimedia streaming from local file system, http and Real Time Streaming Protocol(RTSP). Compared to traditional methods, this plug-in based design pattern promises the extended Android with portability and the compatibility with its Java applications.