The Media Center Sandbox

Resources and discussion for developing experiences in the Windows Media Center platform.
Welcome to The Media Center Sandbox Sign in | Join | Help
in Search

PlayMedia argument

Last post 08-21-2008, 9:19 AM by MarkStega. 0 replies.
Sort Posts: Previous Next
  •  08-21-2008, 9:19 AM 8184

    PlayMedia argument

    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?

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems