applyRequestSegmentData(request, context) {
    try {
      if (!this.config_.enabled) {
        return;
      }
      const data = this.getDataForSegment_(context, request.uris[0]);
      this.applyRequest_(request, data);
    } catch (error) {
      shaka.log.warnOnce('CMCD_SEGMENT_ERROR',
          'Could not generate segment CMCD data.', error);
    }
  }
Apply CMCD data to a segment request

@param {!shaka.extern.Request} request
@param {shaka.extern.RequestContext} context
  The request context