26 lines
725 B
C#
26 lines
725 B
C#
using System.Collections.Generic;
|
|
|
|
namespace Umbraco.Core.Media
|
|
{
|
|
public interface IEmbedProvider
|
|
{
|
|
/// <summary>
|
|
/// The OEmbed API Endpoint
|
|
/// </summary>
|
|
string ApiEndpoint { get; }
|
|
|
|
/// <summary>
|
|
/// A string array of Regex patterns to match against the pasted OEmbed URL
|
|
/// </summary>
|
|
string[] UrlSchemeRegex { get; }
|
|
|
|
/// <summary>
|
|
/// A collection of querystring request parameters to append to the API Url
|
|
/// </summary>
|
|
/// <example>?key=value&key2=value2</example>
|
|
Dictionary<string, string> RequestParams { get; }
|
|
|
|
string GetMarkup(string url, int maxWidth = 0, int maxHeight = 0);
|
|
}
|
|
}
|