Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Method name

Description

Ex. of return value

GetMediaUrl()

Returns the media URL for the source file.

/media/512ffeba519249ff866095d7a25846ec/1-source

GetMediaUrl(string mediaFormatId, int resizeWidth = 0, int resizeHeight = 0, bool keepAspectRatio = true, bool allowUpScale = false))Returns a media URL for the specified quality (mediaFormatId). You have the opportunity resize the image. By default the keepAspectRation is true and allowUpScale is false./media/512ffeba519249ff866095d7a25846ec/1-50044/resize/100x0/options/keepaspectratio

GetDownloadUrl()

Returns the download URL for the source file.

/media/512ffeba519249ff866095d7a25846ec/1-source/options/download

GetDownloadUrl(string mediaFormatId)Returns the download URL for the specified quality (mediaFormatId)./media/512ffeba519249ff866095d7a25846ec/1-50044/options/download

GetDigizuiteStreamingUrl(string mediaFormatId)

Returns the direct streaming URL to Digizuite. Use this for video streams, can also be used for other types. If you use it for the type image, be aware that it does not use Sitecore cache. The link will contain a access token, which will expire, the default value is 24 hours. So dont make this URL static on your pages.

https://[DIGIZUITE URL]/Dmm3BWSV3/assetstream.aspx?assetid=23&mediaformatid=50052&destinationid=10010&accesskey=f0b020bc-81e3-4824-82e3-2e6c1d8f714c

Note about mediaFormatId. You can find the valid ids here Sitecore → System → Modules → Digizuite → MetadaraRoot_0 → FormatRoot. It will contain the complete list of formats available in your Sitecore solution for all the asset types. When you click on one of the formats, is has a file called AssetTypes, this tells which assettypes it support.

We created an admin page, where you can test and see all the metada for a specific asset item.
/sitecore/admin/dfs/GetMetadata.aspx?id=[Item ID]

Image Added

4.1 How to retrieve metadata from an item placed in the silo bucket

...