locked
How to identify file in Digital Media Server?

Answers

All replies

  • Hi,

    Add some information,

    If I put the DMS's file to playlist file.
    And then, opening the playlist file by other edit tool (NotePad, UltraEdit)
    I can see some information in "media src" tag for this DMS's file

    EX:

    <?wpl version="1.0"?>
    <smil>    
      <head>        
        <meta name="Generator" content="Microsoft Windows Playlist API"/>        
        <meta name="IsNetworkFeed" content="0"/>        
        <title></title>    
        <meta name="ItemCount" content="1"/>
      </head>    
      <body>       
        <seq>        
          <media src="dlna-playsingle://uuid:435dec11-fcdb-40b4-8a6c-7dd97cd1df0a?sid=urn:upnp-org:serviceId:ContentDirectory&amp;iid={8D1C63E5-E097-4603-8E4F-0B5B143A718C}.0.8" trackTitle="We're Going on a Bear Hunt.wmv - YouTube"/>
        </seq>    
      </body>
    </smil>
    How to get this information by C++ in Metro App.
    Thursday, July 19, 2012 7:53 AM
  • Hi,

    I'm not clear your point. The file->DisplayName can distinguish the media files. Also, you can combine the folder name with file name to distinguish.

    You can get these value in the Scenario1::LoadMediaFiles() function in locatVideo.xaml.cpp

    Best regards,
    Jesse


    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us

    Friday, July 20, 2012 8:46 AM
  • Hi,

    The key point is "if I put the same file in different folder"
    For example:
    I have a file(abc.txt), and I put it in two folders(folder1 and folder2)
    ex:
    //videos//folder1//abc.txt
    //videos//folder2//abc.txt

    And then, in the Scenario1::LoadMediaFiles() function in locatVideo.xaml.cpp
    Try to get the abc.txt's Path and FolderRelativeId property, and compare with other abc.txt
    The result is no different.
    I can't distinguish which file in folder1 or in folder2
    • Edited by woody tk Friday, July 20, 2012 10:32 AM
    Friday, July 20, 2012 10:28 AM
  • Can give me some feedback?
    Thanks
    Monday, July 23, 2012 4:15 PM
  • The workaround for this is to give the two files different file names. Another option would be for you to ignore duplicate file names as WMP does.

    -James


    Windows Media SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/


    Friday, July 27, 2012 9:20 PM
    Moderator