GemBox.Presentation
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    VideoContent Class

    Namespace:
    GemBox.Presentation.Media
    Assembly:
    GemBox.Presentation.dll

    Represents a Video that has an associated content that is either embedded in or linked to the presentation file.

    • C#
    • VB.NET
    public sealed class VideoContent : MediaContent
    Public NotInheritable Class VideoContent
        Inherits MediaContent
    Inheritance:
    System.Object
    MediaObject
    MediaContent
    VideoContent

    Properties

    ContentType

    Gets the type of the video content.

    • C#
    • VB.NET
    public VideoContentType ContentType { get; }
    Public ReadOnly Property ContentType As VideoContentType
    Property Value
    VideoContentType

    The type of the video content.

    MediaType

    Gets the Video value.

    • C#
    • VB.NET
    public override MediaType MediaType { get; }
    Public Overrides ReadOnly Property MediaType As MediaType
    Property Value
    MediaType

    The Video value.

    Overrides
    MediaObject.MediaType

    Methods

    SetContent(VideoContentType, Stream)

    Sets the video content.

    • C#
    • VB.NET
    public Content SetContent(VideoContentType contentType, Stream stream)
    Public Function SetContent(contentType As VideoContentType, stream As Stream) As Content
    Parameters
    contentType
    VideoContentType

    Content type of the video content.

    stream
    System.IO.Stream

    The video content stream.

    Returns
    Content

    An instance of a Content class that represents the video content that has been set.

    Exceptions
    System.ArgumentNullException

    stream is null.

    Inherited Properties

    Bookmarks

    Gets the collection of bookmarks on the media.

    (Inherited from MediaObject)

    Content

    Gets or sets the media content (audio or video data encoded in a particular format) that is either embedded in or linked to the presentation file.

    (Inherited from MediaContent)

    Fade

    Gets the starting and ending fade durations for the media.

    (Inherited from MediaObject)

    IsFile

    Gets the true value since this media has an associated content that is either embedded in or linked to the presentation file.

    (Inherited from MediaContent)

    Picture

    Gets the Picture associated with this media.

    (Inherited from MediaObject)

    Trim

    Gets the amount of time to be trimmed from the start and end of the media during playback.

    (Inherited from MediaObject)

    Inherited Methods

    SetContent(System.String)

    Sets the media content (audio or video data encoded in a particular format).

    (Inherited from MediaContent)

    SetContent(System.String, System.IO.Stream)

    Sets the media content (audio or video data encoded in a particular format).

    (Inherited from MediaContent)

    Examples

    Audio and Video Example
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.