none
streaming audio from a metro app

    Question

  • Hi,

    I'd like to stream audio from a metro app on one device and be able to access that stream from another device running Metro without having to upload the audio to any central server.

    What would be the best way to achieve this?

    Thanks.


    V

    Thursday, June 14, 2012 6:21 PM

Answers

All replies

  • Hello,

    This sample should be useful   --   http://code.msdn.microsoft.com/windowsapps/Connecting-with-WebSockets-643b10ab

    Thanks,
    Sagar


    Thursday, June 14, 2012 7:05 PM
  • Thanks for your reply.

    But don't websockets actually transfer content from one device to another?

    I need just streaming.


    V

    Thursday, June 14, 2012 7:15 PM
  • FYI, Windows Media Player kind of already does this.  If you wanted to roll your own solution, then you would need to set up a service on the source device to serve up the content to connection clients.  Metro-apps can't host WCF services, and it doesn't look like you have access to System.Net.Sockets (the namespace connection the networking primitives) in Metro apps either.  Your best bet is to write a WCF service that can serve binary streams across the network.  You can write a service controller the host computer (I think you can do this in a Metro app, too) and a service client on the client device that accesses the service and plays the media stream.  Keep in mind that if you don't own the content, releasing this as a product could get you into copyright trouble.

    Thursday, June 14, 2012 7:43 PM
  • Hello vsetlur,

    Our new "Play To" functionality might be your best bet.

    Media Server sample
    http://code.msdn.microsoft.com/windowsapps/Media-Server-sample-fffbe490

    PlayToReceiver sample
    http://code.msdn.microsoft.com/windowsapps/PlayToReceiver-sample-607f00ed

    I hope this helps,

    James


    Windows Media SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

    Thursday, June 14, 2012 8:27 PM
  • Hi James,

    Looks like to use the media server one needs to manually set up nearby media servers before sharing.

    Is there a way to programmatically do even that setup? And how is this different from the Smooth Streaming SDK ?

    Thanks.


    V


    • Edited by vsetlur Wednesday, June 27, 2012 8:39 PM
    Wednesday, June 27, 2012 8:15 PM
  • Q. Is there a way to programmatically do even that setup?

    A. No, all devices must be setup by the end user.

    Q. And how is this different from the Smooth Streaming SDK ?

    A. I don't understand this question. Can you give me more information about what you are looking for here?

    -James


    Windows Media SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

    Thursday, June 28, 2012 7:18 PM
  • Ok, so basically I need a local server running on a device that can stream media over the internet.

    How do I go about doing so? Is IIS 8 an option?

    When I googled for info an SDK called Smooth Streamign came up (http://www.iis.net/download/SmoothFormatSDK)

    Not sure how relevant this is...

    Thanks,

    V

     


    V

    Friday, June 29, 2012 6:41 AM
  • Hello vsetlur,

    Smooth Streaming is our latest internet streaming technology. You can use the IIS media services to serve up Smooth Streaming content.

    I hope this helps,

    James


    Windows Media SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

    Tuesday, July 03, 2012 9:07 PM
  • James,

    Thanks. Could you point me to more info on setting up smooth streaming with a metro app?

    V


    V

    Tuesday, July 03, 2012 9:24 PM