PlayOn Plugin API

VirtualFileSystem.CreateImageFile Method

[This is preliminary documentation and subject to change.]

Creates a new image file in the virtual file system.

public VirtualImageFile CreateImageFile(
   VirtualFolder parent,
   string title,
   string path,
   string description,
   string thumbnailUrl,
   DateTime date,
   string sourceId,
   NameValueCollection mediaProperties,
   string dimensions
);

Parameters

parent
Parent folder to the create the image file in.
title
The display name. Required.
path
The physical path of the file, or URL to the online image. Required.
description
An optional textual description of this image. If no description is available, set this to null or an empty string.
thumbnailUrl
A URL or local path to an image icon or thumbnail for this image.
date
The date timestamp for this image (eg. "Date Picture Taken"). If none is available, set to DateTime.MinValue.
sourceId
A unique string that identifies this image as defined by the content provider. Required.
mediaProperties
A list of optional string-based name/value pairs for arbitrary metadata. Can be null.
dimensions
The size of this image in pixels as "widthxheight". Can be null or empty if unknown.

Return Value

A new instance of a VirtualImageFile added to the virtual file system.

See Also

VirtualFileSystem Class | MediaMallTechnologies.PlayOn.Plugin Namespace