← Back to team overview

ubuntu-phone team mailing list archive

[PATCH] Enabling chromium http support at stagefright

 

Hey,

Attached the needed patches to enable chromium http support at stagefright. This was by Jim to be able to test video streaming at the media player.

build: 0001-Adding-external-chromium-to-the-build-to-provide-lib.patch
frameworks/av: 0001-libstagefright-adding-chromium_http-back-by-default.patch

I already added external/chromium at the manifest file, just run repo sync and you should have it locally.

Thanks,
--
Ricardo Salveti de Araujo
>From 60b5e9e5223490751d2482965cab0fc4b19a5a6c Mon Sep 17 00:00:00 2001
From: Ricardo Salveti de Araujo <ricardo.salveti@xxxxxxxxxxxxx>
Date: Wed, 3 Apr 2013 20:01:07 -0300
Subject: [PATCH] Adding external/chromium to the build (to provide
 libchromium_net)

Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@xxxxxxxxxxxxx>
---
 core/main.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/core/main.mk b/core/main.mk
index caa9e72..507e740 100644
--- a/core/main.mk
+++ b/core/main.mk
@@ -476,6 +476,7 @@ subdirs := \
 	external/bsdiff \
 	external/busybox \
 	external/bzip2 \
+	external/chromium \
 	external/e2fsprogs \
 	external/expat \
 	external/flac \
-- 
1.8.1.2

>From 3acb62bf01eaf9f76a74247f8a9f774464c7e174 Mon Sep 17 00:00:00 2001
From: Ricardo Salveti de Araujo <ricardo.salveti@xxxxxxxxxxxxx>
Date: Wed, 3 Apr 2013 20:02:27 -0300
Subject: [PATCH] libstagefright: adding chromium_http back by default

Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@xxxxxxxxxxxxx>
---
 media/libstagefright/Android.mk               | 6 +++---
 media/libstagefright/chromium_http/Android.mk | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/media/libstagefright/Android.mk b/media/libstagefright/Android.mk
index db6d084..6a90979 100644
--- a/media/libstagefright/Android.mk
+++ b/media/libstagefright/Android.mk
@@ -132,9 +132,9 @@ LOCAL_STATIC_LIBRARIES := \
         libstagefright_id3 \
         libFLAC \
 
-#LOCAL_SRC_FILES += \
-#        chromium_http_stub.cpp
-#LOCAL_CPPFLAGS += -DCHROMIUM_AVAILABLE=1
+LOCAL_SRC_FILES += \
+        chromium_http_stub.cpp
+LOCAL_CPPFLAGS += -DCHROMIUM_AVAILABLE=1
 
 LOCAL_SHARED_LIBRARIES += libstlport
 include external/stlport/libstlport.mk
diff --git a/media/libstagefright/chromium_http/Android.mk b/media/libstagefright/chromium_http/Android.mk
index 77d7b0a..2c6d84c 100644
--- a/media/libstagefright/chromium_http/Android.mk
+++ b/media/libstagefright/chromium_http/Android.mk
@@ -32,5 +32,5 @@ LOCAL_MODULE:= libstagefright_chromium_http
 
 LOCAL_MODULE_TAGS := optional
 
-#include $(BUILD_SHARED_LIBRARY)
+include $(BUILD_SHARED_LIBRARY)
 endif
-- 
1.8.1.2


Follow ups