[C#] Play Song or Movie without Media Player
[DllImport("winmm.dll")]
private static extern long mciSendString(string strCommand, StringBuilder strReturn, int iReturnLength,
IntPtr hwndCallback); Would go up top some where. Need using System.Runtime.InteropServices;
mciSendString("open \"" + File_To_Play + "\" type mpegvideo alias MediaFile", null, 0, IntPtr.Zero);
mciSendString("play MediaFile", null, 0, IntPtr.Zero); Goes in the play button and what not.
mciSendString("close MediaFile", null, 0, IntPtr.Zero);Stop playing.
uld be even awesome-er. Might want to do some research on how media players work before going into that, though.