AdScheduler.AdScheduler constructor
Initializes a new instance of the AdScheduler class.
Syntax
var adScheduler = new MicrosoftNSJS.Advertising.AdScheduler(mediaPlayerElement, options);
Parameters
- mediaPlayerElement
-
Type: HTMLElement
The MediaPlayer element into which the ads will be scheduled. If null or undefined, the ad schedule data will be retrieved and made available, but not automatically played.
- options
-
Type: Object
The set of properties and values to apply to the new AdScheduler.
Remarks
The constructor will create some default options if you do not override them with the options parameter.
Requirements
|
Minimum supported client |
Windows 10 |
|---|---|
|
Minimum supported server |
None supported |
|
Minimum supported phone |
Windows 10 Mobile |
|
Namespace |
MicrosoftNSJS.Advertising |
|
Metadata |
|
See also