1

Would there be a trick to ensure synchronous display of several identical videos (several threads) with Media Foundation ?

See

How to run/start a thread at a given time using Media Foundation?

maz
  • 11
  • 1
  • 1
    Possible duplicate of [Windows Media Foundation recording audio](https://stackoverflow.com/questions/12917256/windows-media-foundation-recording-audio) – bated Sep 28 '17 at 18:24
  • You can play multiple media files in sync, by creating an IMFSourceReader for each file, in async mode. You can queue the samples received in OnReadSample. You can have a separate thread that will handle the queued samples, by selecting the due one(s) and send it/them to the rest of the pipeline, namely IMFSinkWriter(s) that will playback/record the samples. – VuVirt Sep 29 '17 at 08:53
  • And yes MFCreateAggregateSource is another option if you want/need to use IMFSession. – VuVirt Sep 29 '17 at 08:59
  • Would you please have a code example? – maz Oct 22 '17 at 14:08
  • I don't manage to it, thx – maz Oct 23 '17 at 13:51

0 Answers0