Skip to main content

ASPxClientHtmlEditorInsertYouTubeVideoCommandArguments.showPlayerControls Property

Determines if the player controls are displayed for the target YouTube video.

Declaration

showPlayerControls: boolean

Property Value

Type Description
boolean

true, if the player controls are displayed; otherwise, false.

Remarks

// Inserting a new YouTube video element at the current cursor position
var args = new ASPxClientHtmlEditorInsertYouTubeVideoCommandArguments(htmlEditor);
args.enablePrivacyEnhancedMode = true;
args.showPlayerControls = true;
args.showRelatedVideos = false;
args.showVideoInfo = true;
args.src = "https://www.youtube.com/watch?v=jEddDJyWlBM";
htmlEditor.ExecuteCommand(args.GetCommandName(), args);
See Also