aboutsummaryrefslogtreecommitdiff
path: root/en/devices/media/index.html
diff options
context:
space:
mode:
authorAndroid Partner Docs <noreply@android.com>2017-06-21 01:32:24 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-06-21 01:32:24 +0000
commitd9c0a94dd500fc616309192152fa737a83c185d8 (patch)
tree9d32c0a36693b9ce3d89bd10152cd3a2564f486e /en/devices/media/index.html
parent0d061a7f4d62ccb9174916e0abbe96d84646df45 (diff)
parentbb57032f17abb0cfb5ebe780451d58a97779c5b6 (diff)
downloadsource.android.com-d9c0a94dd500fc616309192152fa737a83c185d8.tar.gz
Merge "Docs: Changes to source.android.com" am: 14605d77b5 am: 833d7d4b81 am: f51ce41011
am: bb57032f17 Change-Id: I7c8bcc0487be283a76b1703188455ef18b255661
Diffstat (limited to 'en/devices/media/index.html')
-rw-r--r--en/devices/media/index.html14
1 files changed, 9 insertions, 5 deletions
diff --git a/en/devices/media/index.html b/en/devices/media/index.html
index f52da0e9..834c5cfb 100644
--- a/en/devices/media/index.html
+++ b/en/devices/media/index.html
@@ -44,7 +44,7 @@ update</a> process and as part of an Android OS release.</p>
<h2 id="architecture">Architecture</h2>
<p>Media applications interact with the Android native multimedia framework
according to the following architecture.</p>
-<img src="images/ape_fwk_media.png" alt="Android media architecture"
+<img src="/devices/media/images/ape_fwk_media.png" alt="Android media architecture"
id="figure1" /><p class="img-caption"><strong>Figure 1.</strong> Media
architecture</p>
@@ -98,14 +98,18 @@ service. For the interfaces to create the plugin, see
<li>Build your plugin as a shared library with the name
<code>libstagefrighthw.so</code> in your product Makefile. For example:
<br>
-<p><pre>LOCAL_MODULE := libstagefrighthw</pre></p>
+<pre class="devsite-click-to-copy">
+LOCAL_MODULE := libstagefrighthw
+</pre>
<p>In your device's Makefile, ensure you declare the module as a product
package:</p>
-<pre>
+<pre class="devsite-click-to-copy">
PRODUCT_PACKAGES += \
libstagefrighthw \
...
-</pre></li></ol>
+</pre>
+</li>
+</ol>
<h2 id="expose">Exposing codecs to the framework</h2>
<p>The Stagefright service parses the <code>system/etc/media_codecs.xml</code>
@@ -116,7 +120,7 @@ and profiles on the device to app developers via the
in the <code>device/&lt;company&gt;/&lt;device&gt;/</code> directory
and copy this over to the system image's <code>system/etc</code> directory in
your device's Makefile. For example:</p>
-<pre>
+<pre class="devsite-click-to-copy">
PRODUCT_COPY_FILES += \
device/samsung/tuna/media_profiles.xml:system/etc/media_profiles.xml \
device/samsung/tuna/media_codecs.xml:system/etc/media_codecs.xml \