Reputation: 4081
I am trying to pass real time video (essentially byte arrays) received in one UWP app to another UWP app to display it.
I have been using app services to communicate between my two apps, but app services does not seem to designed for transferring large amounts of data quickly.
Is there a better way to pass large amounts of data between two UWP apps?
(This answer says no, but hopefully things have changed since then.)
Upvotes: 1
Views: 230
Reputation: 2762
For large amount of data you can use MemoryMappedFiles to share data, don't forget to include codeGeneration
capability in your manifest to be able to create MMF.
Upvotes: 1
Reputation: 8666
There are some ways to pass data between two UWP apps. The first one is app services you are using. It is a common way used to transfer data.
If the publisher of both apps is you, maybe you could use the mechanism that share data across apps of the same publisher and data shared across multiple users of an app. You could save the data you want to pass to another app into the publisher folder and then in another app, you could access it too. For more information, please refer to this blog: Sharing your local app data.
Upvotes: 1