• Home
  • Articles
  • API Documentation
Search Results for

    Show / Hide Table of Contents
    • ToSic.Razor.Blade
      • IHtmlTag
      • IHtmlTagsService
      • IScrub
      • Tag
      • Tags
      • Text
    • ToSic.Razor.Html5
      • A
      • Abbr
      • Address
      • Area
      • Article
      • Aside
      • Audio
      • B
      • Base
      • Bdi
      • Bdo
      • Blockquote
      • Br
      • Button
      • Canvas
      • Caption
      • Cite
      • Code
      • Col
      • Colgroup
      • Comment
      • Data
      • Datalist
      • Dd
      • Del
      • Details
      • Dfn
      • Dialog
      • Div
      • Dl
      • Dt
      • Em
      • Embed
      • Fieldset
      • Figcaption
      • Figure
      • Footer
      • Form
      • H1
      • H2
      • H3
      • H4
      • H5
      • H6
      • Head
      • Header
      • Hr
      • I
      • Icon
      • Iframe
      • Img
      • Input
      • Ins
      • Kbd
      • Label
      • Legend
      • Li
      • Link
      • Main
      • Map
      • Mark
      • Meta
      • MetaOg
      • Meter
      • Nav
      • Noscript
      • Object
      • Ol
      • Optgroup
      • Option
      • Output
      • P
      • Param
      • Picture
      • Pre
      • Progress
      • Q
      • Rp
      • Rt
      • Ruby
      • S
      • Samp
      • Script
      • ScriptJsonLd
      • Section
      • Select
      • Small
      • Source
      • Span
      • Strong
      • Style
      • Sub
      • Summary
      • Sup
      • Svg
      • Table
      • Tbody
      • Td
      • Template
      • Textarea
      • Tfoot
      • Th
      • Thead
      • Time
      • Tr
      • Track
      • U
      • Ul
      • Var
      • Video
      • Wbr
    • ToSic.Razor.Markup
      • Attribute
      • AttributeOptions
      • Attributes
      • ITag
      • Tag<T>
      • TagBase
      • TagChildren
      • TagCustom
      • TagList
      • TagOptions
      • TagText
    • ToSic.Razor.StartUp
      • StartUp

    Class Video

    Generate a standard HTML5 <video> tag

    Inheritance
    System.Object
    ToSic.Razor.Markup.RawHtmlString
    TagBase
    Tag<Video>
    Video
    Implements
    System.Web.IHtmlString
    IHtmlTag
    ITag
    System.Collections.Generic.IEnumerable<ITag>
    System.Collections.IEnumerable
    Inherited Members
    Tag<Video>.Attr(String, Object, String)
    Tag<Video>.Attr(Object)
    Tag<Video>.Id(String)
    Tag<Video>.Class(String)
    Tag<Video>.Style(String)
    Tag<Video>.Title(String)
    Tag<Video>.Data(String, Object)
    Tag<Video>.On(String, Object)
    Tag<Video>.Add(Object[])
    Tag<Video>.Wrap(Object[])
    Tag<Video>.AsHtmlTag()
    TagBase.IsImmutable
    TagBase.PreProcessNewChild(Object)
    TagBase.ApplyChanges(CloneChanges)
    TagBase.TagName
    TagBase.TagOptions
    TagBase.ToString()
    TagBase.TagAttributes
    TagBase.TagChildren
    TagBase.TagStart
    TagBase.TagEnd
    Namespace: ToSic.Razor.Html5
    Assembly: ToSic.Razor.dll
    Syntax
    public class Video : Tag<Video>, IRawHtmlString, IHtmlString, IHtmlTag, ITag, IEnumerable<ITag>, IEnumerable

    Methods

    | Improve this Doc View Source

    Autoplay()

    Activate the autoplay attribute on the <video> tag

    Declaration
    public Video Autoplay()
    Returns
    Type Description
    Video

    a Video object to enable fluid command chaining

    | Improve this Doc View Source

    Autoplay(String)

    Set the autoplay attribute on the <video> tag

    Declaration
    public Video Autoplay(string value)
    Parameters
    Type Name Description
    System.String value

    what should be in autoplay='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Video

    a Video object to enable fluid command chaining

    | Improve this Doc View Source

    Controls()

    Activate the controls attribute on the <video> tag

    Declaration
    public Video Controls()
    Returns
    Type Description
    Video

    a Video object to enable fluid command chaining

    | Improve this Doc View Source

    Controls(String)

    Set the controls attribute on the <video> tag

    Declaration
    public Video Controls(string value)
    Parameters
    Type Name Description
    System.String value

    what should be in controls='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Video

    a Video object to enable fluid command chaining

    | Improve this Doc View Source

    Height(Int32)

    Set the height attribute on the <video> tag

    Declaration
    public Video Height(int value)
    Parameters
    Type Name Description
    System.Int32 value

    what should be in height='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Video

    a Video object to enable fluid command chaining

    | Improve this Doc View Source

    Height(String)

    Set the height attribute on the <video> tag

    Declaration
    public Video Height(string value)
    Parameters
    Type Name Description
    System.String value

    what should be in height='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Video

    a Video object to enable fluid command chaining

    | Improve this Doc View Source

    Loop()

    Activate the loop attribute on the <video> tag

    Declaration
    public Video Loop()
    Returns
    Type Description
    Video

    a Video object to enable fluid command chaining

    | Improve this Doc View Source

    Loop(String)

    Set the loop attribute on the <video> tag

    Declaration
    public Video Loop(string value)
    Parameters
    Type Name Description
    System.String value

    what should be in loop='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Video

    a Video object to enable fluid command chaining

    | Improve this Doc View Source

    Muted()

    Activate the muted attribute on the <video> tag

    Declaration
    public Video Muted()
    Returns
    Type Description
    Video

    a Video object to enable fluid command chaining

    | Improve this Doc View Source

    Muted(String)

    Set the muted attribute on the <video> tag

    Declaration
    public Video Muted(string value)
    Parameters
    Type Name Description
    System.String value

    what should be in muted='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Video

    a Video object to enable fluid command chaining

    | Improve this Doc View Source

    Poster(String)

    Set the poster attribute on the <video> tag Automatically url-encode it if contains spaces, umlauts or other unexpected chars

    Declaration
    public Video Poster(string value)
    Parameters
    Type Name Description
    System.String value

    what should be in poster='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Video

    a Video object to enable fluid command chaining

    | Improve this Doc View Source

    Preload(String)

    Set the preload attribute on the <video> tag

    Declaration
    public Video Preload(string value)
    Parameters
    Type Name Description
    System.String value

    what should be in preload='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Video

    a Video object to enable fluid command chaining

    | Improve this Doc View Source

    Src(String)

    Set the src attribute on the <video> tag Automatically url-encode it if contains spaces, umlauts or other unexpected chars

    Declaration
    public Video Src(string value)
    Parameters
    Type Name Description
    System.String value

    what should be in src='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Video

    a Video object to enable fluid command chaining

    | Improve this Doc View Source

    Width(Int32)

    Set the width attribute on the <video> tag

    Declaration
    public Video Width(int value)
    Parameters
    Type Name Description
    System.Int32 value

    what should be in width='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Video

    a Video object to enable fluid command chaining

    | Improve this Doc View Source

    Width(String)

    Set the width attribute on the <video> tag

    Declaration
    public Video Width(string value)
    Parameters
    Type Name Description
    System.String value

    what should be in width='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Video

    a Video object to enable fluid command chaining

    Implements

    System.Web.IHtmlString
    IHtmlTag
    ITag
    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX