The requested page is not available for the requested platform. You are viewing the content for Default platform.

ASPxClientCommandConsts.INSERTVIDEO_COMMAND Property

Identifies a command that inserts a new video.



Property Value

Type Description

Value: "insertvideo"


The INSERTVIDEO_COMMAND property can be used in the followng ways.

  • In the ASPxClientHtmlEditor.CommandExecuted event — to determine the action performed by an end-user. If the ASPxClientHtmlEditorCommandEventArgs.commandName event parameter returns the INSERTVIDEO_COMMAND property value, this means that an end-user has clicked the OK button within the Insert Video dialog.
  • In the ASPxClientHtmlEditor.ExecuteCommand method — to execute the command manually.

    In this case, the method requires an additional parameter, which is an object of the ASPxClientHtmlEditorInsertVideoCommandArguments type.

    // Inserting a new video element instead of the "myDiv" div
    var myDiv = htmlEditor.GetDesignViewDocument().getElementById("myDiv");
    var args = new ASPxClientHtmlEditorInsertVideoCommandArguments(htmlEditor, myDiv);
    args.posterUrl = "/Content/SampleImage.png";
    args.src = "/Content/SampleVideo.mp4";
    htmlEditor.ExecuteCommand(ASPxClientCommandConsts.INSERTVIDEO_COMMAND, args);

This command is available only in the Design View.

See Also