Search Results for

    Show / Hide Table of Contents

    Class VideoSourceElement

    This class will represent a source tag if the request includes a conversion for the specified source type.

    Inheritance
    System.Object
    Node
    HtmlElement
    VideoSourceElement
    Implements
    System.ICloneable
    Inherited Members
    HtmlElement.Attributes
    HtmlElement.ToString()
    HtmlElement.BindAttribute(String, AttributeBindName)
    HtmlElement.GetBaseUrl(String)
    HtmlElement.UrlEncodeWhiteSpace(String)
    HtmlElement.EnsureAttribute(String, AttributeValue)
    HtmlElement.EnsureAttribute(String, String)
    HtmlElement.TagName
    HtmlElement.SelfClosing
    HtmlElement.SelfClosingAlternateSetting
    HtmlElement.ClosingMode
    HtmlElement.ChildNodes
    Node.ICloneable.Clone()
    Node.Bind(Media, MediaItem)
    Node.Disabled
    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()
    Namespace: ImageVault.Common.Data.Display
    Assembly: ImageVault.Common.dll
    Syntax
    public class VideoSourceElement : HtmlElement, ICloneable
    Remarks

    By specifying the Type of the ImageVault content and the MediaKeyAndName for the content reference (internal or published) that it represents, a correct source html element will be displayed.

    Constructors

    VideoSourceElement()

    Initializes a new instance of the VideoSourceElement class.

    Declaration
    public VideoSourceElement()

    VideoSourceElement(VideoSourceElement)

    Initializes a new instance of the VideoSourceElement class.

    Declaration
    public VideoSourceElement(VideoSourceElement element)
    Parameters
    Type Name Description
    VideoSourceElement element

    VideoSourceElement(String)

    Creates a video source element that binds vs the current url

    Declaration
    public VideoSourceElement(string type)
    Parameters
    Type Name Description
    System.String type

    VideoSourceElement(String, String)

    Initializes a new instance of the VideoSourceElement class.

    Declaration
    public VideoSourceElement(string type, string mediaKeyAndName)
    Parameters
    Type Name Description
    System.String type
    System.String mediaKeyAndName

    Properties

    MediaKeyAndName

    Get/Sets the MediaKeyAndName of the VideoSourceElement

    Declaration
    public string MediaKeyAndName { get; set; }
    Property Value
    Type Description
    System.String

    Contains the MediaKeyAndName for the ImageVault content. MediaKeyAndName is the MediaKey and MediaName separated by a path separator (/). MediaKey is the MediaContentReferenceId for internal media and the PublishedMediaContentReferenceId for publishedMedia. MediaName is the Name of the MediaContentReference (like the filename).

    Type

    Get/Sets the Type of the VideoSourceElement

    Declaration
    public string Type { get; set; }
    Property Value
    Type Description
    System.String

    The content-type of the data that the source element points to

    Methods

    Bind(BindContext)

    Binds the node according to the supplied context

    Declaration
    public override void Bind(BindContext context)
    Parameters
    Type Name Description
    BindContext context
    Overrides
    HtmlElement.Bind(BindContext)

    Bind(Media)

    Binds the Node to the supplied mediaItem

    Declaration
    [Obsolete("Use Bind(BindContext) instead")]
    public override void Bind(Media info)
    Parameters
    Type Name Description
    Media info
    Overrides
    HtmlElement.Bind(Media)

    Clone()

    Creates a new object that is a copy of the current instance.

    Declaration
    public override Node Clone()
    Returns
    Type Description
    Node

    A new object that is a copy of this instance.

    Overrides
    HtmlElement.Clone()

    Implements

    System.ICloneable

    Extension Methods

    EnumExtensions.GetNames<TEnum>(TEnum)
    In This Article
    Back to top (c) Meriworks 2002-2022