androidmedia: Read video codec details from VideoCapabilities
If available from API level 21 the width, height and framerate constraints of each video codec are now read from MediaCodecInfo.VideoCapabilities.
The cached codec info now has a version suffix which invalidates cached codec data if GstAmcCodecInfo changes.
Fixes #3387
Edited by Tim-Philipp Müller