ASPxClientHtmlEditorInsertYouTubeVideoCommandArguments.enablePrivacyEnhancedMode Property
Determines if the privacy-enhanced mode is enabled for the target YouTube video.
Declaration
enablePrivacyEnhancedMode: boolean
Property Value
Type | Description |
---|---|
boolean |
|
Remarks
When you turn on privacy-enhanced mode, YouTube doesn’t store information about visitors on your website unless they play the video.
// 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