コード例 #1
0
        public MediaState PlayTrack(Common.Music.Track track)
        {
            iTunesApp iTunes = null;

            try
            {
                iTunes = new iTunesApp();
                iTunes.PlayFile(track.FilePath);
                return GetMediaState();
            }
            catch (Exception ex)
            {
                LogUtility.LogException(ex);
                throw;
            }
            finally
            {
                // Marshall.ReleaseComObject?
            }
        }