locked
MediaStreamSource

    Question

  • Hi!

    I'm currently working on the HLS support for Windows 8 / Windows RT. I've done my custom MediaStreamSource for Silverlight, it works very well and I'd like to re-use that code for Win8/WinRT.

    I found a good example (in Win8 SDK examples) http://code.msdn.microsoft.com/MediaStreamSource-media-dfd55dff/view/ , but unfortunately, this sample demonstrates just a basic idea. Actually, it uses uncompressed PCM format and only one audio stream but I need to send raw h.264/AAC media sample to the system player.

    I've tried to modify MediaStreamSourceStream.cpp to work with raw AAC data (demuxed and extracted by my C# code) but have no luck. Could anyone please  tell me how should I modify function HRESULT CMediaStreamSourceStream::Initialize(_In_ ABI::Windows::Foundation::Collections::IPropertySet *pStreamAttributes) at MediaStreamSourceStream.cpp from the sample mentioned above, to get it work with AAC stream?

    I've spent days by googling/binging that stuff but found nothing. MSDN also wasn't too helpful. 

    WBR, Sergey
    Thursday, December 06, 2012 6:50 PM

All replies

  • Try another sample code http://code.msdn.microsoft.com/windowsapps/Media-extensions-sample-7b466096

    You can transform coding using this sample.


    NEU_ShieldEdge

    Monday, December 10, 2012 8:13 AM
  • Did you tried recommended sample by yourself? Of course I've tried all provided samples (for Media Foundation) but no one has what I'm looking for.

    "Media extensions" sample shows another basic techniques but has nothing about AAC or H.264. So next time please try to read a question before answering...

    It's very strange but it looks like Media Foundation is a "top-secret" technology used by "top secret scientists" only (and all of 'em signed government NDA) :(

    P.S. If any MS representative is reading that topic: guys, do you have a PAID consultation services? I need an expert in MF/WinRT to help me to adapt my solution and (if i can't find an answer for free) I'll pay you - but it should be a real help, not a newbies advice or RTFM like "just browse and read MSDN"...


    WBR, SeNS

    Monday, December 10, 2012 7:39 PM
  • some one else is working on it, may you work with them. 

    There is code sample on http://code.google.com/p/xvids/source/browse/trunk/HLS/HLSSampleTest/ you can browse the repository to view mf code for the custom HLS schemehandler.


    • Edited by slyi Friday, January 18, 2013 11:29 AM update link
    Saturday, January 12, 2013 11:03 AM