Answered by:
Example, Purchase/Play Video Store video in metro app flow

Question
-
I was wondering if there is an example for a Metro app of:
1) sending a user to the video.app to purchase a specific piece of content
2) sending the user back to the original app once purchase/download is complete
Is this flow possible? is it possible to play a DRM video from an app other than video.app?
Thanks,
Tuesday, August 6, 2013 11:52 PM
Answers
-
No, this is not possible.
Windows Store apps can interact with other apps only through well defined contracts such as Sharing. They cannot jump to another app and then return.
A Windows Store app can launch a video file or url to run in the default handler for that app. It cannot specifically choose to play the video in a specific external app.
--Rob
- Marked as answer by Rob Caplan [MSFT]Microsoft employee, Moderator Wednesday, August 7, 2013 9:32 PM
Wednesday, August 7, 2013 1:06 AMModerator
All replies
-
No, this is not possible.
Windows Store apps can interact with other apps only through well defined contracts such as Sharing. They cannot jump to another app and then return.
A Windows Store app can launch a video file or url to run in the default handler for that app. It cannot specifically choose to play the video in a specific external app.
--Rob
- Marked as answer by Rob Caplan [MSFT]Microsoft employee, Moderator Wednesday, August 7, 2013 9:32 PM
Wednesday, August 7, 2013 1:06 AMModerator -
Thanks, Rob. I'll assume that the user will return on his/her own. Is playing the video now in my app just a simple matter of looking in the local video library and playing with the MediaElement? Or will authentication (DRM) get in the way somehow?Wednesday, August 7, 2013 1:42 PM
-
An update, I used this code as base to test the flow:
http://msdn.microsoft.com/en-us/library/windows/apps/hh871377.aspx
Although I can pick the file, it doesn't play in my app example, throwing through MediaFailed:
ErrorMessage "MF_MEDIA_ENGINE_ERR_SRC_NOT_SUPPORTED : HRESULT - 0xC00D714C" string
Is this a DRM error?
Wednesday, August 7, 2013 3:42 PM -
Hello,
We have a code sample that should help you get up and running. Please take a look a the sample and let us know if you run into any other problems.
Simple PlayReady sample for Windows 8 Store apps
http://code.msdn.microsoft.com/windowsapps/Simple-PlayReady-sample-5c1aefaf
Thanks,
James
Windows SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/
- Proposed as answer by James Dailey - MSFTMicrosoft employee, Moderator Wednesday, August 7, 2013 9:24 PM
Wednesday, August 7, 2013 9:24 PMModerator -
Thanks!Friday, August 9, 2013 8:07 PM