i am trying to use Windows Media Foundation to play a simple video.
unfortunately there seems to be little documentation on how to do this.
actually i am using the sharpDX binding to accomplish this. but i would be happy about C++ samples as well.
here is what i have so far trying to follow this tutorial http://msdn.microsoft.com/en-us/library/windows/desktop/ms703190(v=vs.85).aspx
MediaManager.Startup();
MediaSession mediaSession;
MediaFactory.CreateMediaSession(null, out mediaSession);
SourceResolver sourceResolver;
MediaFactory.CreateSourceResolver(out sourceResolver);
ComObject comObject;
ObjectType objectType;
sourceResolver.CreateObjectFromURL("Jack.mp4", (int) SourceResolverFlags.None, null, out objectType, out comObject);
Topology topology;
MediaFactory.CreateTopology(out topology);
this runs without errors, but i havent figured out how to link this to a window or a texture so that i can actually see the video.