Function
| Static Private Summary | ||
| private |
formatTime(seconds: number, guide: number, displayMilliseconds: boolean): string Format seconds as a duration string. |
|
| private |
Log message (if the debug option is enabled). |
|
Static Private
private formatTime(seconds: number, guide: number, displayMilliseconds: boolean): string source
import formatTime from 'videojs-wavesurfer/src/js/utils/format-time.js'Format seconds as a duration string.
Either formatted as:
- DD:HH:MM:SS (> 24 hours)
- HH:MM:SS (> 1 hour)
- MM:SS:MSS (
displayMilliseconds = true) - MM:SS (
displayMilliseconds = false)
Supplying a guide (in seconds) will force a number of leading zeros to cover the length of the guide.
private log(args: Array, logType: string, debug: boolean) source
import log from 'videojs-wavesurfer/src/js/utils/log.js'Log message (if the debug option is enabled).
