Skip to main content
New Participant
Apr 9, 2024 7:08 PM UTC
Question

Can we save MP4 file using file upload and use it in UI?

Hi,

I am trying to experiment on Video Field and I would like to upload my videos to appian and play them in UI. As I am implementing this, I got stuck as a!webVideo taking URL as source but how can I implement this?

7 replies

daniell
Participating Frequently
Apr 9, 2024 7:36 PM UTC

I don't believe there is a way to directly play a video stored as an Appian Document (uploaded by the user). As you noted the a!videoField requires that the a!webVideo is hosted at some URL. If this is a requirement then you may need to find a way to programmatically take the user's uploaded video file, host it somewhere, and then use a!webVideo pointed to that URL. 

davidj137213
Brainy
Apr 9, 2024 9:01 PM UTC

If you need the url, you can experiment with "/suite/doc/<docId>", being the docId the video you have just stored in Appian

daniell
Participating Frequently
Apr 9, 2024 9:08 PM UTC

I have not tried to be sure but the docs page for a!webVideo says "Appian documents cannot be used as the source video."

Brainy
Jun 7, 2024 12:23 PM UTC

Try "url" propery of document. See sample below:

a!videoField(
  videos: a!webVideo(
	source: document(local!documentId, "url")
	)
)