locked
MediaElement - video dimension

    Question

  • Hi,

    I am playing a video (from file) in a MediaElement.  I'd like to resize the MediaElement to fit the video that's going to play-before it starts playing.  But it seems I cannot get the width/height until the current state is play.  I've tried NaturalVideoWidth but it only returns zero until play state is reached.  Is there another api I can use to open file file and get video properties from within a store app?

    Tuesday, March 5, 2013 12:02 AM

Answers