ytplayer = document.getElementById("movie_player");
ytplayer.getCurrentTime();
See the api
Update: if it didn’t work, also try player.playerInfo.currentTime
(codepen live example)
More Related Contents:
- How do I get the YouTube video ID from a URL?
- Failed to execute ‘postMessage’ on ‘DOMWindow’: https://www.youtube.com !== http://localhost:9000
- How to detect when a youtube video finishes playing?
- Stop a youtube video with jquery?
- How to embed an autoplaying YouTube video in an iframe?
- Listening for Youtube Event in JavaScript or jQuery
- How do I automatically play a Youtube video (IFrame API) muted?
- Twitter Bootstrap Modal stop Youtube video
- how to block website from loading in iframe?
- Event when YouTube video finished
- How do you mute an embedded Youtube player?
- Embed HTML5 YouTube video without iframe?
- AngularJS multiple expressions concatenating in interpolation with a URL
- Make youtube video fullscreen using iframe and javascript API
- How to find out the exact number of followers on YouTube?
- How to play only the audio of a Youtube video using HTML 5?
- Auto-Full Screen for a Youtube embed
- jQuery Youtube URL Validation with regex
- How to call Greasemonkey’s GM_ functions from code that must run in the target page scope?
- YouTube iFrame API “setPlaybackQuality” or “suggestedQuality” not working
- Youtube iframe api not triggering onYouTubeIframeAPIReady
- Converting Youtube Data API V3 video duration format to seconds in JavaScript/Node.js
- How to get direct url for youtube videos
- gapi.client.youtube is undefined?
- Youtube embed: Unsafe JavaScript attempt to access frame
- Replace url from youtube to embed code – Error: Permission denied to access property ‘toString’
- loading multiple video players with youtube api
- YouTube Player API: How to get duration of a loaded/cued video without playing it?
- Pause youtube video, youtube api
- Array of object deep comparison with lodash