html input format,html
Whats the best way to set the input format when using smpte-timecode?
placeholder="In"
autoFocus={true}
onChange={e => this.onChange(e)}
type="time"
step="00.01"
pattern="^(?:(?:([01]?\d|2[0-3]):)?([0-5]?\d):)?([0-5]?\d)$"
style={{fontSize: "16px", width: "100%"}}/>
)}
onChange = (element, frameRate) => {
const { form } = this.props;
const keys = form.getFieldValue('keys');
keys.forEach(function (value) {
var inTc = Timecode(form.getFieldValue('1-in'), 25); // errors
console.log(inTc.toString());
});
This keeps resulting in the following
Error: Timecode string expected as HH:MM:SS:FF or HH:MM:SS;FF
html input format,html
Whats the best way to set the input format when using smpte-timecode?
placeholder="In"
autoFocus={true}
onChange={e => this.onChange(e)}
type="time"
step="00.01"
pattern="^(?:(?:([01]?\d|2[0-3]):)?([0-5]?\d):)?([0-5]?\d)$"
style={{fontSize: "16px", width: "100%"}}/>
)}
onChange = (element, frameRate) => {
const { form } = this.props;
const keys = form.getFieldValue('keys');
keys.forEach(function (value) {
var inTc = Timecode(form.getFieldValue('1-in'), 25); // errors
console.log(inTc.toString());
});
This keeps resulting in the following
Error: Timecode string expected as HH:MM:SS:FF or HH:MM:SS;FF