aspnet-js-aspxclienthtmleditorinsertvideocommandarguments.md
Contains settings related to the ASPxClientCommandConsts.INSERTVIDEO_COMMAND command parameter.
declare class ASPxClientHtmlEditorInsertVideoCommandArguments extends ASPxClientHtmlEditorChangeHtml5MediaElementCommandArguments
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.
// 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);
ASPxClientHtmlEditorCommandArguments ASPxClientHtmlEditorChangeMediaElementCommandArguments ASPxClientHtmlEditorChangeHtml5MediaElementCommandArguments ASPxClientHtmlEditorInsertVideoCommandArguments ASPxClientHtmlEditorChangeVideoCommandArguments
See Also