cancel
Showing results for 
Search instead for 
Did you mean: 

How to force conversion of media asset by remote client call

maumig_
Confirmed Champ
Confirmed Champ

Hi all, it there a way to force conversion of media asset by remote client call? If not, how to do it using local API?

Tnx a lot! M-

1 ACCEPTED ANSWER

Thomas_Roger
Star Contributor
Star Contributor

Hi,

There is no operation yet to trigger the conversions of Pictures or Videos.

For Videos, you can use the VideoService:

  • VideoService#launchConvertion to launch a specific conversion
  • VideoService#launchAutomaticConversions to launch all the registered automatic conversions

For Pictures, the easiest way for now is to reset the main blob on the Picture: that will trigger all the default conversions:

BlobHolder blobHolder = doc.getAdapter(BlobHolder.class);
if (blobHolder.getBlob() != null) {
    blobHolder.setBlob(blobHolder.getBlob());
    documentManager.saveDocument(doc);
    documentManager.save();
}

View answer in original post

1 REPLY 1

Thomas_Roger
Star Contributor
Star Contributor

Hi,

There is no operation yet to trigger the conversions of Pictures or Videos.

For Videos, you can use the VideoService:

  • VideoService#launchConvertion to launch a specific conversion
  • VideoService#launchAutomaticConversions to launch all the registered automatic conversions

For Pictures, the easiest way for now is to reset the main blob on the Picture: that will trigger all the default conversions:

BlobHolder blobHolder = doc.getAdapter(BlobHolder.class);
if (blobHolder.getBlob() != null) {
    blobHolder.setBlob(blobHolder.getBlob());
    documentManager.saveDocument(doc);
    documentManager.save();
}
Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.