(timeInSeconds)
| 55 | // formatTime takes a time length in seconds and returns the time in |
| 56 | // minutes and seconds |
| 57 | function formatTime(timeInSeconds) { |
| 58 | const result = new Date(timeInSeconds * 1000).toISOString().substr(11, 8); |
| 59 | |
| 60 | return { |
| 61 | minutes: result.substr(3, 2), |
| 62 | seconds: result.substr(6, 2), |
| 63 | }; |
| 64 | } |
| 65 | |
| 66 | // initializeVideo sets the video duration, and maximum value of the |
| 67 | // progressBar |
no outgoing calls
no test coverage detected