Skip to content

Update MediaElement.md with support for subtitles and local font files#432

Closed
ne0rrmatrix wants to merge 5 commits intoMicrosoftDocs:mainfrom
ne0rrmatrix:Subtitles
Closed

Update MediaElement.md with support for subtitles and local font files#432
ne0rrmatrix wants to merge 5 commits intoMicrosoftDocs:mainfrom
ne0rrmatrix:Subtitles

Conversation

@ne0rrmatrix
Copy link
Copy Markdown
Contributor

Add support for Subtitles to Media Element.

API:

/// <summary>
/// Backing store for the <see cref="CustomSubtitleParser"/> property.
/// </summary>
public static readonly BindableProperty ParserProperty = 
	BindableProperty.Create(nameof(CustomSubtitleParser), typeof(IParser), typeof(MediaElement), null);

/// <summary>
/// Backing store for the <see cref="SubtitleFont"/> property.
/// </summary>
public static readonly BindableProperty SubtitleFontProperty = BindableProperty.Create(nameof(SubtitleFont), typeof(string), typeof(MediaElement), string.Empty);

/// <summary>
/// Backing store for the <see cref="SubtitleFontSize"/> property.
/// </summary>
public static readonly BindableProperty SubtitleFontSizeProperty = BindableProperty.Create(nameof(SubtitleFontSize), typeof(double), typeof(MediaElement), 16.0);

/// <summary>
/// Backing store for the <see cref="SubtitleUrl"/> property.
/// </summary>
public static readonly BindableProperty SubtitleProperty = BindableProperty.Create(nameof(SubtitleUrl), typeof(string), typeof(MediaElement), string.Empty);

See: CommunityToolkit/Maui#1918

@learn-build-service-prod
Copy link
Copy Markdown

Learn Build status updates of commit a793bfd:

✅ Validation status: passed

File Status Preview URL Details
docs/maui/views/MediaElement.md ✅Succeeded View

For more details, please refer to the build report.

For any questions, please:

@learn-build-service-prod
Copy link
Copy Markdown

Learn Build status updates of commit ad44f12:

✅ Validation status: passed

File Status Preview URL Details
docs/maui/views/MediaElement.md ✅Succeeded View

For more details, please refer to the build report.

For any questions, please:

@learn-build-service-prod
Copy link
Copy Markdown

Learn Build status updates of commit 8732e40:

✅ Validation status: passed

File Status Preview URL Details
docs/maui/views/MediaElement.md ✅Succeeded View

For more details, please refer to the build report.

For any questions, please:

@learn-build-service-prod
Copy link
Copy Markdown

Learn Build status updates of commit df6942d:

✅ Validation status: passed

File Status Preview URL Details
docs/maui/views/MediaElement.md ✅Succeeded View

For more details, please refer to the build report.

For any questions, please:

@jfversluis jfversluis added the maui The .NET MAUI Community Toolkit label Dec 18, 2024
@learn-build-service-prod
Copy link
Copy Markdown

Learn Build status updates of commit c0cf1f5:

✅ Validation status: passed

File Status Preview URL Details
docs/maui/views/MediaElement.md ✅Succeeded View

For more details, please refer to the build report.

For any questions, please:

@ne0rrmatrix
Copy link
Copy Markdown
Contributor Author

PR has been closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maui The .NET MAUI Community Toolkit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants