FileDocument - absolute URL

2
Hi, how do I get the absolute URL of a File Document Stored in my DB? What I have now is a Microflow which uses the Community Commons (Java Actions: App-URL and GUID) to retrieve the File via GUID, e.g. http://localhost:8080/file?guid=5629499534214930 - works fine in the Browser - the same way as the Download File Activity works (opens a Open/Save Dialogue). What I need is the URL with the Filename and extension to use it in the JW Player - something like http://localhost:8080/something/test.mov I know that the Audio Video Player Widget has a build-in functionality to Play Videos from the Mendix File System but unfortunately this does not work on an iPad - so I want to try the JW Player... Thanks for your Input, Michael
asked
4 answers
1

Hi Michael,

Perhaps you can you the following URL in JW Player: http://localhost:8080/file?guid=5629499534214930&target=window?

Cheers,

Jeffrey

answered
1

You could publish a REST service with an operation that returns the file document. You can have the operationpath filename.mov, and JW Player would accept it.

(Don't forget to set the Content-Type header!)

answered
0

Hi Michael,

iOs as how more strict way of accepting the video tag.

The issue is solved in a newer version of the JW player lib. I will try to update the player widget this week.

Cheers Andries

answered
0

Hi Micheal,

If you want a simpler solution you could consider using deeplink mechanism. If the side effects are acceptable for you (to see the side effects you can better the deeplink mechanism, but think to creating for each document seperately a error handler):

- use deeplink mechanism (in order to custom request handlers/deeplink)

- give unique identifier to your file(object) you want to show and use the combo as a unique url for example: appurl.com/link/3121 -> s

answered