Answered by:
Registering a SchemeHandler with IMFMediaEngine

Question
-
Hi,
I have a an implementation of MediaEngine that I use to play video by directly drawing on a D2D texture. Now I want to play a streaming video over a network using the same.
I've been trying to follow the SimpleCommunication sample from Windows 10 Universal samples github. As I understand, the scheme handler simply hast be registered using MediaExtensionsManager and then when the Source property is set for a MediaElement, it will all come together nicely.
How can I achieve the same behavior with MediaEngine? That is after I register a SchemeHandler, if I call MediaEngine->SetSource(BSTR url) will it work? I tried to write code for this, but it didn't work.
Thursday, March 24, 2016 11:52 AM
Answers
-
There are some page about this:https://social.msdn.microsoft.com/Forums/en-US/a74aa261-31eb-4bfb-976c-e30d84889581/get-pointer-to-the-imfmediasource-from-a-imfmediaengine?forum=winappswithnativecode
https://social.msdn.microsoft.com/Forums/windowsapps/en-US/05325ff8-2ba3-44cf-99f3-58e9d513de1e/imfmediaengine?forum=winappswithnativecode
https://social.msdn.microsoft.com/Forums/windowsapps/en-US/7317acc4-7ee7-444b-81e4-bc370b909e73/mediaelement-and-custom-schemehandle?forum=winappswithnativecode
https://social.msdn.microsoft.com/Forums/windowsapps/en-US/8afd934c-5a06-4d21-aa4a-850ab68edc5d/feeding-the-imfmediaengine-from-the-imfmediasource?forum=winappswithnativecode
Hope it can help you.
- Proposed as answer by Active Geometry Thursday, March 31, 2016 9:46 AM
- Marked as answer by Barry Wang Friday, April 1, 2016 1:44 AM
Friday, March 25, 2016 1:01 PM
All replies
-
There are some page about this:https://social.msdn.microsoft.com/Forums/en-US/a74aa261-31eb-4bfb-976c-e30d84889581/get-pointer-to-the-imfmediasource-from-a-imfmediaengine?forum=winappswithnativecode
https://social.msdn.microsoft.com/Forums/windowsapps/en-US/05325ff8-2ba3-44cf-99f3-58e9d513de1e/imfmediaengine?forum=winappswithnativecode
https://social.msdn.microsoft.com/Forums/windowsapps/en-US/7317acc4-7ee7-444b-81e4-bc370b909e73/mediaelement-and-custom-schemehandle?forum=winappswithnativecode
https://social.msdn.microsoft.com/Forums/windowsapps/en-US/8afd934c-5a06-4d21-aa4a-850ab68edc5d/feeding-the-imfmediaengine-from-the-imfmediasource?forum=winappswithnativecode
Hope it can help you.
- Proposed as answer by Active Geometry Thursday, March 31, 2016 9:46 AM
- Marked as answer by Barry Wang Friday, April 1, 2016 1:44 AM
Friday, March 25, 2016 1:01 PM -
Thanks for the threads. I especially find the last one interesting. It seems he was able to register a scheme handler for IMFMediaEngine, and that's exactly what I want to do.
So if I register a scheme handler, and then call IMFMediaEngine->SetSource(url), will the scheme handler get invoked and set the correct source for MediaEngine?
Monday, March 28, 2016 4:07 AM -
Yes, I think so.Thursday, March 31, 2016 9:45 AM