static parseTime(time) {
    if (!time) {
      return null;
    }
    const parser = new shaka.util.TextParser(time);
    return parser.parseTime();
  }
Parses a time from string.

@param {?string} time
@return {?number}