Media Capture plugin

Hi everyone,

I am making a ionic 3 application in which i want enable the user to capture pictures and videos. So i used the media capture plugin, once i capture a image or video i get the MediaFile[] promise in return. Now when i am trying to display that image as a preview in ion-img tag with [src] = mediaFile[‘0’].fullPath. it is not displaying the image.

please tell me if my appraoch is wrong then what should i do.