I am trying to get Vista Media Center to play a DVD via a managed code add-in using the method "AddInHost.Current.MediaCenterEnvironment.PlayMedia(mediaType, parameter, queueSelection)" where mediaType is specified as 'Dvd'. Some movies play, some do not. As an example, if I pass "DVD://SDSERVER/My Movies/Finding Nemo Widescreen Edition/VIDEO_TS" as the parameter, I get an exception thrown by VMC of "Value does not fall within the expected range.". However, if I simply change the path and the parameter to remove the spaces in the directory, the movie will play (So "DVD://SDSERVER/My Movies/FindingNemoWidescreenEdition/VIDEO_TS" works).
But it is not as simple as an issue of spaces in the name as this movie plays: "DVD://SDSERVER/My Movies/Dream Theater - Live At Budokan/VIDEO_TS".
So what should I be doing to process the string so that it is handled correctly?