From c9792cdfba32fd517b7940d5d1a2a93496afb80c Mon Sep 17 00:00:00 2001 From: Manikanta Sivapala Date: Tue, 21 Jul 2015 19:33:40 +0530 Subject: frameworks/av: Changes related to DASH 1) Add MEDIA_QOE event type 2) Open certain methods for extension by declaring them as virtual 3) Add DASH_PLAYER as a new player type 4) Creating DASH Player factory Change-Id: I0376841530218703fabd9d4f45d2c9a32a1f52b2 --- media/libmediaplayerservice/MediaPlayerFactory.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'media/libmediaplayerservice/MediaPlayerFactory.cpp') diff --git a/media/libmediaplayerservice/MediaPlayerFactory.cpp b/media/libmediaplayerservice/MediaPlayerFactory.cpp index 1be86d0..f0afc5a 100644 --- a/media/libmediaplayerservice/MediaPlayerFactory.cpp +++ b/media/libmediaplayerservice/MediaPlayerFactory.cpp @@ -32,6 +32,7 @@ #include "TestPlayerStub.h" #include "nuplayer/NuPlayerDriver.h" +#include namespace android { @@ -241,6 +242,8 @@ class TestPlayerFactory : public MediaPlayerFactory::IFactory { }; void MediaPlayerFactory::registerBuiltinFactories() { + + MediaPlayerFactory::IFactory* pCustomFactory = NULL; Mutex::Autolock lock_(&sLock); if (sInitComplete) @@ -248,6 +251,11 @@ void MediaPlayerFactory::registerBuiltinFactories() { registerFactory_l(new NuPlayerFactory(), NU_PLAYER); registerFactory_l(new TestPlayerFactory(), TEST_PLAYER); + AVMediaServiceUtils::get()->getDashPlayerFactory(pCustomFactory, DASH_PLAYER); + if(pCustomFactory != NULL) { + ALOGV("Registering DASH_PLAYER"); + registerFactory_l(pCustomFactory, DASH_PLAYER); + } sInitComplete = true; } -- cgit v1.1