jeudi 9 avril 2015

Android MediaMetadata image on lockscreen is zoomed

When playing media, I am able to place media image onto a lockscreen via



RemoteControlClient.MetadataEditor editor = remoteControlClient.editMetadata(true);
editor.putBitmap(RemoteControlClient.MetadataEditor.BITMAP_KEY_ARTWORK, bitmap);


or



MediaMetadataCompat.Builder builder = new MediaMetadataCompat.Builder();
builder.putBitmap(MediaMetadataCompat.METADATA_KEY_ART, bitmap);


however, if I use landscape source image (16:9) and lockscreen orientation is potrait, the background image is zoomed (pan and scan) instead of letter boxed. Is there any api I can use to force the scaling method, or the system will render the image only this way?


Aucun commentaire:

Enregistrer un commentaire