locked
Background audio in conjunction with MediaPlayer.SetSource RRS feed

  • Question

  • The past few days I've been experimenting with the idea to playback audio from a virtualized file-system such as a zip archive. For this I have implemented ZipArchive classes around the IRandomAccessStream as opposed to Stream. However I'm only able to playback this audio with Audio Category set to foreground, the background variants report 'Error loading from server' which suggests it's only adheres file/http uris.

    Is there any way to get background audio working in the case I describe?



    Saturday, March 3, 2012 12:01 PM

All replies

  • I take it from the lack of responses this is an impossible task.

    Monday, March 5, 2012 2:44 PM
  • Hello Lawrence,

    Sorry for the late reply. This is a very interesting question. I don't know that we really considered this scenario when developing the APIs. Is there any way you can provide me with code that I can use to try and reproduce the issue that you are seeing. If I can reproduce the problem I will talk with the engineers on the MF team and see if this is a scenario that we can support. Even if we can't support this scenario I will request that we update the documentation to take into account this case.

    Thanks,

    James


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

    Tuesday, March 6, 2012 2:00 AM
    Moderator
  • Here is the source code http://ul.to/h9yootjl I've included a sample file for testing purposes. I would like to take this opportunity to say that supporting such scenario's doesn't need to come from one side, if such means extending the audio-capabilities from low-level i.e. hosting own background audio-devices, with a point in the right direction I would be capable and willingly to do so.

    Thanks in advance


    Tuesday, March 6, 2012 10:31 AM
  • Hey Lawrence,

    Unfortunately I get an error when attempting to access the site with the URL you specified. I get a message saying that the service is not available in your country. Could you try using Microsoft's SkyDrive?

    https://skydrive.live.com/

    Thanks,

    James


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

    Wednesday, March 7, 2012 2:43 AM
    Moderator
  • https://skydrive.live.com/redir.aspx?cid=ed157e4eeb7c58e5&resid=ED157E4EEB7C58E5!414&parid=ED157E4EEB7C58E5!177&authkey=!ALHQ2JcHQum9RFE
    Wednesday, March 7, 2012 9:36 AM
  • Hello Lawrence,

    I was able to download your code. I will take a look at it and get back to you with what I find.

    Thanks,

    James


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

    Friday, March 9, 2012 12:33 AM
    Moderator