Jean-Baptiste Queru
4506c62abd
fix inaccurate copyrights
...
Change-Id: I33b0f68f2da34ca4728211d83159cf32a127f6dd
2010-07-29 17:35:37 -07:00
Andreas Huber
e67c1607cc
Support for customizable socket-read timeouts through the HTTP response.
...
Specify a response header of "X-SocketTimeout: 15" to override the default timeout
of 5 secs with a timeout of 15 seconds. Specify a negative value to disable the
timeout altogether.
Change-Id: I545adf3d8b3f7efe5f8d081a641c6404440a77db
related-to-bug: 2675721
2010-05-11 11:10:21 -07:00
Andreas Huber
388379f8b4
A new OggExtractor/VorbisDecoder combo to support approximate seeking.
...
Change-Id: Id5d0c1c8b1adc62896bb5ed951f7b5cfda811e95
related-to-bug: 2654400
2010-05-07 12:01:45 -07:00
Andreas Huber
62f7ffe106
Disable vorbis seek when streaming from localhost.
...
Change-Id: Icda523ae1c89e26482f1c1767fe3a8b9222bb30f
related-to-bug: 2654400
2010-05-06 10:31:57 -07:00
Andreas Huber
eb5eef3819
Support for Ogg Vorbis decoding in stagefright.
...
Set the magic property media.stagefright.enable-vorbis to true to use the new implementation instead of the standalon vorbis player for file-based playback. HTTP streaming of vorbis content will always go through stagefright.
Change-Id: Ie3843a99fadb22372f89540d0f8d65196e0c2af8
related-to-bug: 2654400
2010-05-04 11:58:16 -07:00
Andreas Huber
d0332ad8d2
Distinguish QCELP audio from mpeg4 audio, ignore QCELP audio tracks since we don't have a decoder for it, ignore potentially malformed metadata for AMR NB and WB tracks.
...
Change-Id: Ic9a9198413431db4ea40bb63b9de91aa8a7183af
related-to-bug: 2587341
2010-04-12 16:05:57 -07:00
Andreas Huber
aba965fdd8
Refactor connection/redirection code, support redirects on reconnection.
...
Change-Id: Id2517568000e028b01553c06a4893813a6883168
related-to-bug: 2580785
2010-04-08 10:09:35 -07:00
Andreas Huber
a51250bdc7
Increase the size of the pages used in CachingDataSource (total amount of memory used remains the same) to compensate for reduced locality of audio/video data requests. Also fixes a mistaken trailing "\r\n" in the range header and better error handling on http connection.
...
Change-Id: Ic9a6ef204362bc9afdc61e081c76bc62e5ef92ad
related-to-bug: 2580785
2010-04-08 07:51:20 -07:00
Andreas Huber
a4357addf6
Coalesce multiple encoded AAC frames into a single input buffer on this particular OMX codec to increase throughput significantly.
...
Change-Id: I90c7db6656a53339c5d454336548c4f00d0d9064
related-to-bug: 2548426
2010-04-02 12:55:31 -07:00
James Dong
e64d9a236e
Public API changes for CameraProfile and CamcorderProfile classes
...
1. CamcorderProfile: “@see” links are broken; Remove m prefix from fields; remove “final”
2. CamcorderProfile.Quality: use an int rather than an enum
3. Add API on MediaRecorder to pass in a CamcorderProfile
4. CameraProfile.getImageEncodingQualityLevels @hide or make it consistent with CamcorderProfile
5. Remove a convenient method and instead let the (mms) app do that task
bug - 2553862
Change-Id: I759215c7892f772aeddf3651d17038489c6fbc50
2010-04-01 00:12:20 -07:00
Andreas Huber
8783429932
While streaming media data, upon a socket-read error, try reconnecting to the server and attempt to re-read for at most 3 times.
...
Change-Id: I7534905e07a6456d18b26d5d60fa8915f25ae99e
related-to-bug: 2492187
2010-03-17 16:38:30 -07:00
Andreas Huber
2a09c7e042
Properly handle errors during the codec configuration phase, attempt to revert to next available (likely software-) codec if configuration fails.
...
Change-Id: Id1c699711e30139c9cc29df972254b5ba026e6fb
related-to-bug: 2517098
2010-03-16 11:44:07 -07:00
Andreas Huber
e3452d3fe1
Fix the media metadata retriever (tests). The native constants must match those published at the java layer.
...
Change-Id: Ic1efed709e4d93c61913b231a8cd3ef1074f8ca0
2010-03-12 15:08:52 -08:00
Andreas Huber
edbb4d8f39
HTTPStream and HTTPDataSource now support cancellation of the connection process, AwesomePlayer takes advantage of this in cases where ::reset() or ::suspend() is called while in the preparation phase to bail out early. Also fixes in issue where the audio codec was not properly stopped if no audio player object ever took ownership.
...
Change-Id: I6d73defe6d276693853a469db267bb2668d07af5
related-to-bugs: 2475845,2414536
2010-03-12 09:05:10 -08:00
Andreas Huber
fb1eb6fbc9
Reduce buffer sizes related to HTTP media data transfer in order to reduce the probability of a connection timeout/reset due to long periods of time between socket activity.
...
Change-Id: I799ce1d58d56a31088a89603d8a18d24780f5b57
related-to-bug: 2492187
2010-03-10 17:12:01 -08:00
Andreas Huber
1ce986767a
Instead of instantiating StagefrightMetadataRetriever directly, instantiate a MediaMetadataRetriever which will do-the-right-thing(tm) even for .wma/.wmv/.asf files.
...
Change-Id: Ibda4b5268514934f14a3d49a564902bc670f4384
related-to-bug: 2074137
2010-03-10 10:55:35 -08:00
Andreas Huber
dc9927d464
The audio track was accidentally not participating in the prefetch since it wasn't started at the time prepare() was called. Also, properly report the cached duration even near the end when the source has no more data to fetch.
...
Change-Id: I66a92fec24c9bfb25f1c186f1c877127bae2b4f9
related-to-bug: 2444425
2010-03-08 15:46:13 -08:00
Eric Laurent
47d0a9264f
Issue 2071329: audio track is shorter than video track for video capture on sholes
...
Add API to retrieve number of frames dropped by audio input kernel driver.
Submitted on behalf of Masaki Sato <masaki.sato@motorola.com>
2010-03-02 08:20:13 -08:00
James Dong
b93003649d
Merge "Image encoding settings java API through xml configuration file"
2010-02-25 15:11:29 -08:00
James Dong
9b433f0b65
Image encoding settings java API through xml configuration file
...
- I decided to completely remove jpeg decoding related stuff from this change
I think that setting is better off if it is specified by the system properties.
We don't have to include MediaProfiles.h header in skia files
2010-02-24 18:10:12 -08:00
Andreas Huber
d7d22eba3c
Propagate errors all the way through the MediaSources and send either MEDIA_PLAYBACK_COMPLETE or MEDIA_ERROR depending on the final reason for running out of buffers to play back.
...
related-to-bug: 2463749
2010-02-23 14:06:38 -08:00
Andreas Huber
b8de9578dc
This hardware video decoder lies about its required input buffer sizes allocating 2.7 MB of memory instead of the required 176 KB... Added another quirk.
...
related-to-bug: 2281327
2010-02-22 14:58:45 -08:00
Andreas Huber
fbb3885024
New API on java's MediaPlayer to suspend/resume a session.
...
related-to-bug: 2231576
2010-02-12 12:44:10 -08:00
Marco Nelissen
8b799a323c
Merge "Add support for "album artist" tag."
2010-02-11 13:43:40 -08:00
Marco Nelissen
c5d5ee34d7
Add support for "album artist" tag.
2010-02-11 13:32:04 -08:00
Mathias Agopian
000479f9e3
split libsurfaceflinger_client and libcamera_client out of libui
2010-02-11 13:16:22 -08:00
Andreas Huber
6ed937ebe9
Implementation of stagefright-enabled MediaPlayerService::decode functionality
...
related-to-bug: 2359268
2010-02-10 10:20:34 -08:00
Marco Nelissen
655306f8a8
Add support for the TPOS/TPA (disc number) id3 tag.
2010-02-08 14:50:19 -08:00
James Dong
e7038ace44
Camcorder profile Java API support
...
- Use Enum for Quality instead of int
- Use static values() method from Enum, rather than if-else
bug - 2417312
2010-02-04 13:47:36 -08:00
Andreas Huber
70d10c0156
Fix a deadlock caused by the AudioPlayer notifying the observer that the stream had ended at the same time the observer was shutting down the AudioPlayer.
...
related-to-bug: 2414536
2010-02-03 13:24:26 -08:00
Andreas Huber
b777bf3100
Don't use a HEAD request to determine redirects, instead do a regular GET (since that's always supported), also limit the number of redirects to avoid infinite redirects. Finally, properly handle the end of stream.
...
related-to-bug: 2403674
2010-02-02 13:54:57 -08:00
Andreas Huber
8cc1b2a32c
Properly advertise the content length of the HTTP stream if available.
...
related-to-bug: 2312941
2010-02-02 10:38:40 -08:00
James Dong
705300b842
Merge "Initial check-in for xml-based encoder capabilities retrieval - Changed the Java API as suggested - Treat /etc/media_profiles.xml as the default xml configurtion file"
2010-02-01 22:48:36 -08:00
James Dong
c371194e4e
Initial check-in for xml-based encoder capabilities retrieval
...
- Changed the Java API as suggested
- Treat /etc/media_profiles.xml as the default xml configurtion file
2010-02-01 22:38:37 -08:00
Andreas Huber
e331c7b2c4
The TI MP3 decoder lies about the number of channels it outputs, add a quirk for that.
2010-02-01 10:53:20 -08:00
Andreas Huber
62eac00850
Properly forward errors returned by AudioTrack up to the player.
...
related-to-bug: 2300197
2010-01-29 13:24:58 -08:00
Andreas Huber
433c9acaf7
Support the specification of additional HTTP headers in the creation of a DataSource.
...
related-to-bug: 2393577
2010-01-28 13:04:28 -08:00
Andreas Huber
2564300936
API Extension: Support for optionally specifying a map of extra request headers when specifying the uri of media data to be played.
...
related-to-bug: 2393577
Original change by Andrei Popescu <andreip@google.com>
2010-01-28 11:52:43 -08:00
Andreas Huber
46ce847a62
Fix http streaming for shoutcast servers that do not support http ranges.
...
related-to-bug: 2295438
2010-01-27 16:21:41 -08:00
Eric Laurent
0ebff76e95
Merge "Fix issue 2285561: New AudioFlinger and audio driver API needed for A/V sync"
2010-01-27 14:21:20 -08:00
Andreas Huber
8258879fe8
Merge "Better support for HTTP streaming media content, fixes to the way HTTPDataSource streams the data, prefetcher implementation."
2010-01-27 09:24:43 -08:00
Eric Laurent
0986e7907f
Fix issue 2285561: New AudioFlinger and audio driver API needed for A/V sync
...
Added getRenderPosition() API to IAudioFlinger to retreive number of audio frames
written by AudioFlinger to audio HAL and by DSP to DAC.
Added getRenderPosition() API to AudioHardwareInterface to retreive number of audio frames
written by DSP to DAC.
Exposed AudioTrack::getPosition() to AudioSink() to make it available to media player.
Removed excessive log in AudioHardwareGeneric.
2010-01-26 18:40:39 -08:00
Andreas Huber
b9e63830c6
Better support for HTTP streaming media content, fixes to the way HTTPDataSource streams the data, prefetcher implementation.
...
related-to-bug: 2295438
2010-01-26 16:20:10 -08:00
Andreas Huber
996dddff64
Support for audio recording into AMR NB/WB files as well as audio tracks in MPEG4 files.
...
related-to-bug: 2295449
2010-01-26 09:10:33 -08:00
Eric Laurent
473bd77675
Merge "Fix issue 2378022: AudioService should direct volume control to STREAM_VOICE_CALL stream when STREAM_VOICE_CALL stream is active."
2010-01-25 17:16:05 -08:00
Andreas Huber
07bf09da4a
Initial checkin of AudioSource and AMRWriter, a pair of classes supporting pure-audio recording in stagefright.
...
related-to-bug: 2295449
2010-01-25 16:17:40 -08:00
Eric Laurent
23f25cda0c
Fix issue 2378022: AudioService should direct volume control to STREAM_VOICE_CALL stream when STREAM_VOICE_CALL stream is active.
...
Modified AudioService.getActiveStreamType() so that STREAM_VOICE_CALL is selected when a track using this stream
type is playing.
Chanded isMusicActive() for a more generic isStreamActive(stream) method in AudioSystem, IAudioFlinger and AudioFlinger.
2010-01-25 14:00:10 -08:00
Andreas Huber
52733b83a7
The qcom OMX video decoders do not allocate output buffer memory at the time OMX_AllocateBuffer is called, wait until we received the first FILL_BUFFER_DONE notification until we rely on the buffer data ptr.
2010-01-25 11:24:26 -08:00
Andreas Huber
c712b9fe28
Fix no-copy-overhead OMXCodec implementation to actually work.
2010-01-20 15:05:46 -08:00
Andreas Huber
61fa01d47d
Merge "Support for 'iTunes-style' metadata in .mp4 and .3gp files."
2010-01-20 11:35:02 -08:00