locked
opening multiple files and making playlist in c#

    Question

  • I am trying to open the multiple video files for my media player and show them in playlist to play them. I am confused here. do help.

    Thursday, September 04, 2014 1:45 PM

Answers

  • You could for example access the VideoLibrary on the phone like described in this article: http://msdn.microsoft.com/en-us/library/windows/apps/xaml/dn639127.aspx

    That will give you a list of all Videos in that Library. How you select your subset is then up to you (e.g. display the file names in a list and let the user select them). Another approach would be to use a FileOpenPicker to let the user select videos one by one.

    Thursday, September 04, 2014 4:38 PM

All replies

  • What exactlly is confusing to you? The basic approach would be to enumerate the Video files and upon selection by the user you open that file and hand it to your video player. Once the video has finished you open the next one. So basically you only keep a reference to the file in your playlist and open it once needed.
    Thursday, September 04, 2014 2:38 PM
  • yeah the main thing that confused me is how to select the multiple files. I have no idea how to select multiple media files

    Thursday, September 04, 2014 3:47 PM
  • You could for example access the VideoLibrary on the phone like described in this article: http://msdn.microsoft.com/en-us/library/windows/apps/xaml/dn639127.aspx

    That will give you a list of all Videos in that Library. How you select your subset is then up to you (e.g. display the file names in a list and let the user select them). Another approach would be to use a FileOpenPicker to let the user select videos one by one.

    Thursday, September 04, 2014 4:38 PM