ASPxClientHtmlEditorInsertYouTubeVideoCommandArguments.showPlayerControls Property
Determines if the player controls are displayed for the target YouTube video.
Declaration
showPlayerControls: boolean
Property Value
Type | Description |
---|---|
boolean |
|
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