Class MediaCacheItem
This class represents the cached media that is passed between the backend PropertyMedia controls and front ent javascript
Inheritance
System.Object
MediaCacheItem
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: ImageVault.EPiServer.Common.dll
public class MediaCacheItem
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, Media thumbMedia, Media originalMedia, string originalFormatContentType = "", string originalFormatUrl = "", string areaOfInterest = "")
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
System.Int32 |
vaultId |
|
Media |
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 Media 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 VaultRoles? VaultRole { get; set; }
Property Value
Methods
Declaration
public static MediaCacheItem CreateFromMediaItem(MediaItem mediaItem, 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.
|
Overrides
System.Object.ToString()
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