Example #1
0
        internal static void Create(uint id, string videoFile)
        {
            VideoMutex.WaitOne();

            if (Videos.ContainsKey(id))
            {
                Videos[id].Stop();
                Videos[id].Dispose();
                Videos.Remove(id);
            }

            try
            {
                var video = Videos[id] = new MyVideoPlayer(videoFile);
                video.Play();
            }
            catch (Exception e)
            {
                MyRender11.Log.WriteLine(e);
            }

            VideoMutex.ReleaseMutex();
        }
Example #2
0
		internal static void Create(uint id, string videoFile)
		{
            Debug.Assert(false, "Video Not Supported yet on XB1!");
            VideoMutex.WaitOne();

            if(Videos.ContainsKey(id))
            {
                Videos[id].Stop();
                Videos[id].Dispose();
                Videos.Remove(id);
            }

            try
            {
                var video = Videos[id] = new MyVideoPlayer(videoFile);
                video.Play();
            }
            catch(Exception e)
            {
                MyRender11.Log.WriteLine(e);
            }

            VideoMutex.ReleaseMutex();
        }