Quantcast
Channel: Media Foundation Development for Windows Desktop forum
Viewing all articles
Browse latest Browse all 1079

Sharing a IMFMediaSource between multiple sessions?

$
0
0

Hello Everyone,

I have a video player based largely on the CPlayer example provided in the Media Session Playback Example example.
It works, but I would now like to play the same video through multiple sessions, with each instance of the video having independent playback control.

My first question is, can I share a single IMFMediaSource between multiple topologies or sessions?
(So far, when I try reusing the same IMFMediaSource with a whole new topology, I get an error on the MESessionStarted event: "Some component is already listening to events on this event generator.")

My second question is, do I really have to duplicate every element of the pipeline and process to play the same video?
Is there no part that can copied or shared?

How about IMFTopology::CloneFrom() method? Can this help me here?

thanks,
MM


Viewing all articles
Browse latest Browse all 1079

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>