Reputation: 39
Is there any way to change default buffer size on streaming MediaPlayer?
Upvotes: 0
Views: 2345
Reputation: 5980
In standard android distribution, the input DataSource
is cached through a NuCachedSource2
implementation as seen here.
The NuCachedSource2
is implemented through a page-cache mechanism with a lower and higher thresholds of 4 MB and 20 MB as shown here.
I presume you could tweak these parameters, rebuild libstagefright.so
and replace the same to test it in your system.
Upvotes: 2