public float getRepeatDur() { try { float repeatDur = TimeImpl.parseClockValue(mSmilElement.getAttribute("repeatDur")); if (repeatDur > 0) { return repeatDur; } else { return 0; // default } } catch (IllegalArgumentException e) { return 0; // default } }
public float getDur() { float dur = 0; try { String durString = mSmilElement.getAttribute("dur"); if (durString != null) { dur = TimeImpl.parseClockValue(durString) / 1000f; } } catch (IllegalArgumentException e) { // Do nothing and return the minimum value } return dur; }