I am developing a VSTO add-in for Powerpoint which will automatically insert an audio and save the Powerpoint as Video.
I am able to succesfully insert audio file into the slide, but now i want to set its Playback property "Hide during Show" to true and "Start with Previous".
I have inserted the audio file using the following code,
Microsoft.Office.Interop.PowerPoint.Slide currSlide = Globals.ThisAddIn.Application.ActiveWindow.View.Slide;
var sh = currSlide.Shapes.AddMediaObject2("d:\\media\\temp.wav", MsoTriState.msoFalse, MsoTriState.msoTrue);