diff options
author | Jeffrey Tinker <jtinker@google.com> | 2012-08-23 01:56:53 -0700 |
---|---|---|
committer | Jeffrey Tinker <jtinker@google.com> | 2012-08-23 01:56:53 -0700 |
commit | f10f36d34812bae602ff018fb503ad07eaf550b1 (patch) | |
tree | b6b7ce250b453bd8713c9e6acfb4cef9f7f7a9fe /media/libstagefright/WVMExtractor.cpp | |
parent | cd3ed11664d16939f1f5763a896d7fc75dd3642e (diff) | |
download | frameworks_av-f10f36d34812bae602ff018fb503ad07eaf550b1.zip frameworks_av-f10f36d34812bae602ff018fb503ad07eaf550b1.tar.gz frameworks_av-f10f36d34812bae602ff018fb503ad07eaf550b1.tar.bz2 |
Send current bandwidth info event when buffering occurs
There is a dependent change in vendor/widevine repo.
Change-Id: If063f4b1c8857e5bfc7be54ab0f97a4ed169b303
related-to-bug: 5883234
Diffstat (limited to 'media/libstagefright/WVMExtractor.cpp')
-rw-r--r-- | media/libstagefright/WVMExtractor.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/media/libstagefright/WVMExtractor.cpp b/media/libstagefright/WVMExtractor.cpp index 08d2ae2..d94fc65 100644 --- a/media/libstagefright/WVMExtractor.cpp +++ b/media/libstagefright/WVMExtractor.cpp @@ -121,6 +121,15 @@ int64_t WVMExtractor::getCachedDurationUs(status_t *finalStatus) { return mImpl->getCachedDurationUs(finalStatus); } +status_t WVMExtractor::getEstimatedBandwidthKbps(int32_t *kbps) { + if (mImpl == NULL) { + return UNKNOWN_ERROR; + } + + return mImpl->getEstimatedBandwidthKbps(kbps); +} + + void WVMExtractor::setAdaptiveStreamingMode(bool adaptive) { if (mImpl != NULL) { mImpl->setAdaptiveStreamingMode(adaptive); |