vendor/videojs/video.js
function parseTimeStamp(input) {

    function computeSeconds(h, m, s, f) {
      return (h | 0) * 3600 + (m | 0) * 60 + (s | 0) + (f | 0) / 1000;
    }

    var m = input.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);
    if (!m) {
      return null;
    }

    if (m[3]) {
      // Timestamp takes the form of [hours]:[minutes]:[seconds].[milliseconds]
      return computeSeconds(m[1], m[2], m[3].replace(":", ""), m[4]);
    } else if (m[1] > 59) {
      // Timestamp takes the form of [hours]:[minutes].[milliseconds]
      // First position is hours as it's over 59.
      return computeSeconds(m[1], m[2], 0,  m[4]);
    } else {
      // Timestamp takes the form of [minutes]:[seconds].[milliseconds]
      return computeSeconds(0, m[1], m[2], m[4]);
    }
  }
function parseTimeStamp(input) {

    function computeSeconds(h, m, s, f) {
      return (h | 0) * 3600 + (m | 0) * 60 + (s | 0) + (f | 0) / 1000;
    }

    var m = input.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);
    if (!m) {
      return null;
    }

    if (m[3]) {
      // Timestamp takes the form of [hours]:[minutes]:[seconds].[milliseconds]
      return computeSeconds(m[1], m[2], m[3].replace(":", ""), m[4]);
    } else if (m[1] > 59) {
      // Timestamp takes the form of [hours]:[minutes].[milliseconds]
      // First position is hours as it's over 59.
      return computeSeconds(m[1], m[2], 0,  m[4]);
    } else {
      // Timestamp takes the form of [minutes]:[seconds].[milliseconds]
      return computeSeconds(0, m[1], m[2], m[4]);
    }
  }
function parseTimeStamp ( input ) { function computeSeconds ( h , m , s , f ) { return ( h | 0 ) * 3600 + ( m | 0 ) * 60 + ( s | 0 ) + ( f | 0 ) / 1000 ; } var m = input . match ( / ^(\d+):(\d{2})(:\d{2})?\.(\d{3}) / ) ; if ( ! m ) { return null ; } if ( m [ 3 ] ) { // Timestamp takes the form of [hours]:[minutes]:[seconds].[milliseconds] return computeSeconds ( m [ 1 ] , m [ 2 ] , m [ 3 ] . replace ( ":" , "" ) , m [ 4 ] ) ; } else if ( m [ 1 ] > 59 ) { // Timestamp takes the form of [hours]:[minutes].[milliseconds] // First position is hours as it's over 59. return computeSeconds ( m [ 1 ] , m [ 2 ] , 0 , m [ 4 ] ) ; } else { // Timestamp takes the form of [minutes]:[seconds].[milliseconds] return computeSeconds ( 0 , m [ 1 ] , m [ 2 ] , m [ 4 ] ) ; } }
Try to parse input as a time stamp.
Try to parse input as a time stamp .