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/include | |
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/include')
-rw-r--r-- | media/libstagefright/include/WVMExtractor.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/media/libstagefright/include/WVMExtractor.h b/media/libstagefright/include/WVMExtractor.h index 2b952e2..c43c801 100644 --- a/media/libstagefright/include/WVMExtractor.h +++ b/media/libstagefright/include/WVMExtractor.h @@ -33,6 +33,7 @@ public: virtual ~WVMLoadableExtractor() {} virtual int64_t getCachedDurationUs(status_t *finalStatus) = 0; + virtual status_t getEstimatedBandwidthKbps(int32_t *kbps) = 0; virtual void setAdaptiveStreamingMode(bool adaptive) = 0; virtual void setCryptoPluginMode(bool cryptoPluginMode) = 0; virtual void setUID(uid_t uid) = 0; @@ -55,6 +56,9 @@ public: // *finalStatus == ERROR_END_OF_STREAM int64_t getCachedDurationUs(status_t *finalStatus); + // Return the current estimated bandwidth + status_t getEstimatedBandwidthKbps(int32_t *kbps); + // Set to use adaptive streaming mode by the WV component. // If adaptive == true, adaptive streaming mode will be used. // Default mode is non-adaptive streaming mode. |