Fix API level compatibility

Signed-off-by: Andrea Cappelli <a.cappelli87@gmail.com>
Fix MediaPlayer issues

Signed-off-by: Andrea Cappelli <a.cappelli87@gmail.com>