soundtouch-api
Version:
SoundTouch API using TypeScript
15 lines • 507 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.timeFromElement = void 0;
function timeFromElement(element) {
var totalString = element.getAttribute('total');
var currentString = element.getText();
var total = totalString ? parseInt(totalString) : 0;
var current = currentString ? parseInt(currentString) : 0;
return {
current: current,
total: total
};
}
exports.timeFromElement = timeFromElement;
//# sourceMappingURL=time.js.map