0

I need to share an audio file which is opened (read-only) from foreground task (UI), and is being played by the BackgroundMediaPlayer task in Windows Phone 8.1.

While it is being played in the background, I also need to access the same file from the foreground UI, again as read-only to retrieve its byte content.

What is the best way to achieve it? Is storing it to IsolatedStorage an option?

user3261909
  • 145
  • 1
  • 2
  • 11
  • Could you clarify what exactly you're trying to achieve? As in do you want to pass the audio file path from foreground to background or vice verse? How exactly do you want to modify the file from the foreground while it's being played by the background agent? If you're simply trying to communicate between the two then the `BackgroundMediaPlayer` has `SendMessageToForeground` and `SendMessageToBackground` methods and also their corresponding events. – Ali250 Mar 12 '15 at 08:27
  • In the background, I need to initiate the audio file playback by passing the file path. In the foreground, I want to open the file from the same path (as read-only) to analyze its byte content. – user3261909 Mar 12 '15 at 08:43

0 Answers0