Class RichTextEditorVideoSettings
A class used for configuring the video settings in the SfRichTextEditor.
Inherited Members
Namespace: Syncfusion.Blazor.RichTextEditor
Assembly: Syncfusion.Blazor.dll
Syntax
public class RichTextEditorVideoSettings : RichTextEditorMediaSettings
Constructors
RichTextEditorVideoSettings()
Declaration
public RichTextEditorVideoSettings()
Properties
AllowedTypes
Gets or sets the an video extensions that populate the allowed type of audio on browse.
Declaration
public List<string> AllowedTypes { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<System.String> | The list of video types that are allowed to be uploaded. The default values are |
Remarks
The File Browser allows secified extenions video files and restricts uploading of other types of files.
Examples
The following code example allows uploading only for mp4 and avi video files.
@using Syncfusion.Blazor.RichTextEditor;
<SfRichTextEditor>
<RichTextEditorToolbarSettings Items = "@Tools" />
<RichTextEditorVideoSettings AllowedTypes="@TypeList" />
</SfRichTextEditor>
@code {
List<string> TypeList = new List<string>() { ".mp4", ".avi" };
private List<ToolbarItemModel> Tools = new List<ToolbarItemModel>()
{
new ToolbarItemModel() { Command = ToolbarCommand.Video }
};
}
EnableResize
Gets or sets value indicating whether the video element can be resized in the editor's content.
Declaration
public bool EnableResize { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Remarks
You can resize video width, maximum upto MaxWidth value and maximum upto MinWidth value. Same as resize video height maximum upto MaxHeight value and maximum upto MinHeight value.
MaxFileSize
Gets or sets the maximum allowed file size of the video element to be uploaded in bytes.
Declaration
public double MaxFileSize { get; set; }
Property Value
Type | Description |
---|---|
System.Double | Accepts the double value representing that the maximum file size for the video element. The default value is |
Remarks
The property used to make sure that you cannot upload too large files.
MaxHeight
Gets or sets the maximum height constraint of the video element.
Declaration
public string MaxHeight { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string value that represents the maximum height. |
Remarks
To provide the maximum height value in pixel or percent (%) as string type.
MaxWidth
Gets or sets the maximum width constraint of the video element.
Declaration
public string MaxWidth { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string value that represents the maximum width. |
Remarks
To provide the maximum width value in pixel or percent (%) as string type.
MinHeight
Gets or sets the minimum height constraint of the video element.
Declaration
public string MinHeight { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string value that represents the minimum height. |
Remarks
To provide the minimum height value in pixel or percent (%) as string type.
MinWidth
Gets or sets the minimum width constraint of the video element.
Declaration
public string MinWidth { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string value that represents the minimum width. |
Remarks
To provide the minimum height value in pixel or percent (%) as string type.
ResizeByPercent
Gets or sets whether the video resizing should be enable percentage calculation.
Declaration
public bool ResizeByPercent { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Methods
Dispose(Boolean)
Dispose unmanaged resources in the Syncfusion Blazor component.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | Boolean value to dispose the object. |
Overrides
OnInitializedAsync()
Method invoked when the component is ready to start.
Declaration
protected override Task OnInitializedAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing any asynchronous operation. |
Overrides
OnParametersSetAsync()
Method invoked when the component has received parameters from its parent.
Declaration
protected override Task OnParametersSetAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing any asynchronous operation. |