Class MediaCacheItem
This class represents the cached media that is passed between the backend PropertyMedia controls and front ent javascript
Inheritance
System.Object
MediaCacheItem
Assembly: ImageVault.EPiServer.Common.dll
public class MediaCacheItem : Object
Constructors
Initializes a new instance of the MediaCacheItem class.
Declaration
Initializes a new instance of the MediaCacheItem class.
Declaration
public MediaCacheItem(int id, int vaultId, Thumbnail thumbMedia, Media originalMedia, string originalFormatContentType = "", string originalFormatUrl = "", string areaOfInterest = "")
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
System.Int32 |
vaultId |
|
Thumbnail |
thumbMedia |
|
Media |
originalMedia |
|
System.String |
originalFormatContentType |
|
System.String |
originalFormatUrl |
|
System.String |
areaOfInterest |
|
Properties
Get/Sets the AreaOfInterest of the MediaCacheItem
Declaration
public string AreaOfInterest { get; set; }
Property Value
Type |
Description |
System.String |
|
Get/Sets the Id of the MediaCacheItem
Declaration
public int Id { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Get/Sets the Original of the MediaCacheItem
Declaration
public Media Original { get; set; }
Property Value
OriginalFormatContentType
Get/Sets the OriginalContentType of the MediaCacheItem
Declaration
public string OriginalFormatContentType { get; set; }
Property Value
Type |
Description |
System.String |
|
Get/Sets the OriginalVideoUrl of the MediaCacheItem
Declaration
public string OriginalFormatUrl { get; set; }
Property Value
Type |
Description |
System.String |
|
Get/Sets the Thumb of the MediaCacheItem
Declaration
public Thumbnail Thumb { get; set; }
Property Value
Get/Sets the VaultId of the MediaCacheItem
Declaration
public int VaultId { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Get/Sets the VaultRole of the MediaCacheItem
Declaration
public Nullable<VaultRoles> VaultRole { get; set; }
Property Value
Methods
Declaration
public static MediaCacheItem CreateFromMediaItem(MediaItem mediaItem, Nullable<int> thumbFormatId)
Parameters
Type |
Name |
Description |
MediaItem |
mediaItem |
|
System.Nullable<System.Int32> |
thumbFormatId |
|
Returns
Parses the supplied json string to a MediaCacheItem instance
Declaration
public static MediaCacheItem Parse(string json)
Parameters
Type |
Name |
Description |
System.String |
json |
|
Returns
Declaration
public static List<MediaCacheItem> ParseList(string json)
Parameters
Type |
Name |
Description |
System.String |
json |
|
Returns
Declaration
public static string ToJson(List<MediaCacheItem> list)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<MediaCacheItem> |
list |
|
Returns
Type |
Description |
System.String |
|
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
A System.String that represents the current MediaCacheItem.
|
Duration is needed for the Azure Media Player Editor Trim tool to work,
need to add it to the renderData
Declaration
public static void UpdateRenderData(Media media, MediaItem mediaItem)
Parameters