Class VideoSourceElement
This class will represent a source tag if the request includes a conversion for the specified source type.
Implements
Inherited Members
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
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
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. |