Using the new API to display photo and play media using MediaInfo object.