locked
Dynamically changing multiple MF media sources RRS feed

  • Question

  • Hello everybody,

    I'm working with MF topology that has multiple video sources. Until now I've been successfully using MFCreateAggregateSource() to combine them into a single source, since MF can't handle multiple sources in one topology. But now I also want to be able to add/remove certain sources dynamically(without shutting down other sources). Aggregate Source doesn't seem to provide any mechanism  to perform dynamic changes on the underlying media sources. And I can't create a new Aggregate Source without shutting down the previous one (because some of the underlying sources are the same and it returns MF_E_MULTIPLE_SUBSCRIBERS). Hence I can't create a new topology to pass to Sequencer Source.


    So what is the best way to go here? Is this even possible?


    I've read this 7 year old topic (http://social.msdn.microsoft.com/Forums/en-US/aa0080f0-efd5-4a53-8e03-815cddca2ef8/mf-video-media-source-example), that looks relevant. I guess a custom source with dynamically changing set of streams can do the trick. (I also guess that Aggregate Source works the similar way). Is there a more convenient way other than implementing my own Aggregate Source from scratch?

    Thanks in advance.

    Monday, March 3, 2014 10:33 AM

All replies

  • Hello.

    I think it's possible, but never try.

    With a custom source, you will need to stop the playback, update stream and so on. I think it should work.

    Did you try several Sequencer Source at the same time. Or perhaps one media session per file ? I don't know your project's specification to give you a correct answer.


    • Edited by Miaou77 Monday, March 3, 2014 10:36 PM
    Monday, March 3, 2014 10:36 PM