How to play a video using mediacontrol library ?
Posted: 03 Dec 2009 09:23
I was trying to play a video using MediaControl Library to make use of MediaControl_snapshot function, when I call MediaControl_start I get the Exception "Attempted to read or write protected memory. This is often an indication that other memory is corrupt"
here is my code
here is my code
Code: Select all
IntPtr mediaControlInstance = InteropMethods.mediacontrol_new_from_instance(p_instance, null);
String mrl = "c:\\video.mp4";
InteropMethods.mediacontrol_set_mrl(mediaControlInstance, mrl, null);
InteropMethods.mediacontrol_start(mediaControlInstance, null, null);