Search Results for

    Show / Hide Table of Contents
    View Source

    Class YouTube

    Embed Provider for YouTube the popular online video sharing and social media platform provider.

    Inheritance
    System.Object
    OEmbedProviderBase
    Namespace: Umbraco.Cms.Core.Media.EmbedProviders
    Assembly: Umbraco.Core.dll
    Syntax
    public class YouTube : OEmbedProviderBase, IEmbedProvider

    Constructors

    View Source

    YouTube(IJsonSerializer)

    Declaration
    public YouTube(IJsonSerializer jsonSerializer)
    Parameters
    Type Name Description
    IJsonSerializer jsonSerializer

    Properties

    View Source

    ApiEndpoint

    Declaration
    public override string ApiEndpoint { get; }
    Property Value
    Type Description
    System.String
    View Source

    RequestParams

    Declaration
    public override Dictionary<string, string> RequestParams { get; }
    Property Value
    Type Description
    Umbraco.Cms.Core.Dictionary<System.String, System.String>
    View Source

    UrlSchemeRegex

    Declaration
    public override string[] UrlSchemeRegex { get; }
    Property Value
    Type Description
    System.String[]

    Methods

    View Source

    GeOEmbedDataAsync(String, Nullable<Int32>, Nullable<Int32>, CancellationToken)

    Declaration
    public override async Task<string> GeOEmbedDataAsync(string url, int? maxWidth, int? maxHeight, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    System.String url
    System.Nullable<System.Int32> maxWidth
    System.Nullable<System.Int32> maxHeight
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<System.String>
    View Source

    GetMarkup(String, Int32, Int32)

    Declaration
    public override string GetMarkup(string url, int maxWidth = 0, int maxHeight = 0)
    Parameters
    Type Name Description
    System.String url
    System.Int32 maxWidth
    System.Int32 maxHeight
    Returns
    Type Description
    System.String
    View Source

    GetMarkupAsync(String, Nullable<Int32>, Nullable<Int32>, CancellationToken)

    Declaration
    public override async Task<string> GetMarkupAsync(string url, int? maxWidth, int? maxHeight, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    System.String url
    System.Nullable<System.Int32> maxWidth
    System.Nullable<System.Int32> maxHeight
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<System.String>
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • YouTube(IJsonSerializer)
    • Properties
      • ApiEndpoint
      • RequestParams
      • UrlSchemeRegex
    • Methods
      • GeOEmbedDataAsync(String, Nullable<Int32>, Nullable<Int32>, CancellationToken)
      • GetMarkup(String, Int32, Int32)
      • GetMarkupAsync(String, Nullable<Int32>, Nullable<Int32>, CancellationToken)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX