media_codecs: add adaptive playback feature

Change-Id: Idf167d3d90c05967f699e0ffd6b91dd0a6b3c179