static void PlayVideo(uint id, string fileName, float volume) { CloseVideo(id); try { // Start playback var video = new MyVideoPlayerDx9(fileName, MyRender.GraphicsDevice); video.Play(); video.Volume = volume; m_videos.Add(id, video); } catch (Exception ex) { // Log this exception but then ignore it MyRender.Log.WriteLine(ex); } }
static void PlayVideo(uint id, string fileName, float volume) { CloseVideo(id); try { // Start playback var video = new MyVideoPlayerDx9(fileName, MyRender.GraphicsDevice); video.Play(); video.Volume = volume; m_videos.Add(id, video); } catch (Exception ex) { // Log this exception but then ignore it MyRender.Log.WriteLine(ex); } }