> I think media server code has been reused from Android
followings are my understanding.
Some android media server related source codes are used in FirefoxOSv1.
・media framework:
gecko's media framework uses libstagefright to play mp4&H.264 video and
mp3 audio. It uses parsers and codecs. hw codecs are directly loaded
into app's process. It demands very high privilege to the app.
- /gecko/content/media/omx/
・camera:
camera dom directly uses android camera hal. camera hal is directly
loaded into app's process. It demands very high privilege to the app.
- /gecko/dom/camera/
・audio out:
android AudioTrack is used to output audio. AudioTrack is connedted to
AudioFlinger in media server process. AudioFlinger mix and output audio
to audio hw.
- /gecko/media/libsydneyaudio/src/sydney_audio_gonk.cpp
・audio in:
audio record is only provided as video recording right now.
- /gecko/dom/camera/
・audio system control:
android AudioSystem class is used to control audio. AudioSystem is
connected to AudioFlinger and AudioPolicyService in media server process.
- /gecko/dom/system/gonk/AudioManager.cpp
regards,
sotaro
(2012/12/11 20:18), [email protected] wrote:
On Tuesday, 11 December 2012 14:32:44 UTC+5:30, Chris Double wrote:
On Tue, Dec 11, 2012 at 9:19 PM, <[email protected]> wrote:
Hi, If anybody there kindly to help me to brief about the media frame work
being used in B2G.
We use Gecko's internal media framework (the same as used in Firefox)
and decoders for open formats like WebM, Opus, Theora, etc. For
formats like H.264 and AAC we use Android's libstagefright framework.
This requires the device to have decoder binary blobs provided by the
device creator to do hardware/software decoding of these formats. The
libstagefright backend plugs into Gecko's media framework and exposes
it using normal HTML <video> and <audio> elements. So apps can use any
of the HTML media API's to playback these formats.
Chris.
--
http://www.bluishcoder.co.nz
Thanks Chris,
I have a concern about media server also, What is its role? Is
architecture of gecko's media framework similar to one Android has? I think
media server code has been reused from Android. Please clarify me these, and I
would be blessed if you could give me a brief idea about the b2g media
architecture
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g