问题
I'm investigating building a "Game Capture" App that works within UWP on Xbox One, as for capturing the actual content of the screen during game-play, it appears there are two ways to go within the wider eco-system of Microsoft libraries:
- DirectX (Now part of Windows API)
- Microsoft Media Foundation
With that in mind, my assumption is that DirectX is natively accessible by UWP apps via the Windows Runtime API, and aside from limitations on the DirectX feature-sets and hardware, basic APIs exist for capturing the content of the Xbox's screen.
MMF I'm not so sure about, though it does encapsulate some interesting access to using an accelerated video encoding but does not appear to be part of the UWP subset of APIs available on the Xbox.
Beyond the correct library to use, are there any other known limitations on developing apps that "capture" the Xbox's screen that run natively on the device.
Thanks
回答1:
It's not possible at this time.
The Xbox One is a closed platform and not as open as Windows 10 running on a desktop PC, for example.
On a PC it's possible to use existing APIs to capture the output from a game, app, etc. On Xbox One, this is handled by the system only. The console is recording all the time, but the user decides when to save that footage or broadcast it via Twitch, YouTube, etc.
UWP apps running on Xbox One cannot record footage themselves or access the built-in APIs for this functionality.
来源:https://stackoverflow.com/questions/36395413/uwp-game-capture-on-xbox-directx-or-mmf