Video input to Shortcuts action

1 day ago 2
ARTICLE AD BOX

I'm trying to develop an AppIntent / action for Shortcuts that accepts a video input that comes from a Photos action (e.g., "Select Photos").

Everything I've read says "IntentFile" is the only appropriate data type, which I have previously used successfully for accepting photo inputs from the same actions.

However, here's what I've observed with this use case:

Magic variable data type Swift variable data type Result
"Photo media" (default) or "File" "IntentFile" Input rejected - action re-prompts for input with magic variable highlighted red
"Photo media" (default) or "File" "[IntentFile]" Input accepted but blank - ".count" is 0.

I've also tried adding interim step "Save File", but that didn't change the behaviour.

I've even tried encoding the video as Base64 and passing it in as a string, but that action seems to have a maximum data size.

Shockingly, I cannot find anything online for this use case, and I've pretty much exhausted Codex, hence this post.

Read Entire Article