code: function timeFormat(time, options) {
  	// Video's duration is Infinity in GiONEE(金立) device
  	if (!isFinite(time) || time < 0) {
  		time = 0;
  	}
  	// Get hours
  	var _time = options.alwaysShowHours ? [0] : [];
  	if (Math.floor(time / 3600) % 24) {
  		_time.push(Math.floor(time / 3600) % 24)
  	}
  	// Get minutes
  	_time.push(Math.floor(time / 60) % 60);
  	// Get seconds
  	_time.push(Math.floor(time % 60));
  	_time = _time.join(':');
  	// Fill '0'
  	if (options.timeFormatType == 1) {
  		_time = _time.replace(/(:|^)([0-9])(?=:|$)/g, '$10$2')
  	}
  
  	return _time
  }
docs: Get time format