Skip to main content
April 9, 2024
Question

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

  • April 9, 2024
  • 7 replies
  • 0 views

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
April 9, 2024

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
April 9, 2024

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

daniell
April 9, 2024

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

June 7, 2024

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

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