Back to Devexpress

ASPxClientHtmlEditorInsertVideoCommandArguments Class

aspnet-js-aspxclienthtmleditorinsertvideocommandarguments.md

latest2.3 KB
Original Source

ASPxClientHtmlEditorInsertVideoCommandArguments Class

Contains settings related to the ASPxClientCommandConsts.INSERTVIDEO_COMMAND command parameter.

Declaration

ts
declare class ASPxClientHtmlEditorInsertVideoCommandArguments extends ASPxClientHtmlEditorChangeHtml5MediaElementCommandArguments

Remarks

When the ASPxClientHtmlEditor.ExecuteCommand method is used to execute the ASPxClientCommandConsts.INSERTVIDEO_COMMAND command manually, it requires an additional parameter of the ASPxClientHtmlEditorInsertVideoCommandArguments type.

To create an instance of this class, use the ASPxClientHtmlEditorInsertVideoCommandArguments constructor. Specify all required properties of the newly created object and pass the resulting parameter to the ASPxClientHtmlEditor.ExecuteCommand method.

javascript
// Inserting a new video element at the current cursor position
var args = new ASPxClientHtmlEditorInsertVideoCommandArguments(htmlEditor);
args.posterUrl = "/Content/SampleImage.png";
args.src = "/Content/SampleVideo.mp4";
htmlEditor.ExecuteCommand(args.GetCommandName(), args);

Inheritance

ASPxClientHtmlEditorCommandArguments ASPxClientHtmlEditorChangeMediaElementCommandArguments ASPxClientHtmlEditorChangeHtml5MediaElementCommandArguments ASPxClientHtmlEditorInsertVideoCommandArguments ASPxClientHtmlEditorChangeVideoCommandArguments

See Also

Client-Side Commands

ASPxClientHtmlEditorInsertVideoCommandArguments Members