* Sets the media element's playback time. * * The parameter, `time`, is optional. It's a number that specifies the * time, in seconds, to jump to when playback begins. * * Calling `media.time()` without an argument returns the number of seconds * the audio/video has played. *
(val)
| 665 | * } |
| 666 | */ |
| 667 | time(val) { |
| 668 | if (typeof val !== 'undefined') { |
| 669 | this.elt.currentTime = val; |
| 670 | } |
| 671 | return this.elt.currentTime; |
| 672 | } |
| 673 | |
| 674 | /** |
| 675 | * Returns the audio/video's duration in seconds. |
no outgoing calls
no test coverage detected