setTextWatermark(text, options) {
    /** @type {!shaka.ui.Watermark.Options} */
    const defaultOptions = {
      type: 'static',
      text: text,
      position: 'top-right',
      color: 'rgba(255, 255, 255, 0.7)',
      size: 20,
      alpha: 0.7,
      interval: 2 * 1000,
      skip: 0.5 * 1000,
      displayDuration: 2 * 1000,
      transitionDuration: 0.5,
    };

    /** @type {!shaka.ui.Watermark.Options} */
    const config = /** @type {!shaka.ui.Watermark.Options} */ (
      Object.assign({}, defaultOptions, options || defaultOptions)
    );

    if (config.type === 'static') {
      this.drawStaticWatermark_(config);
    } else if (config.type === 'dynamic') {
      this.startDynamicWatermark_(config);
    }
  }
Sets a text watermark on the video with customizable options.
The watermark can be either static (fixed position) or dynamic (moving).
@param {string} text The text to display as watermark
@param {?shaka.ui.Watermark.Options=} options  configuration options
@export