Created
August 27, 2022 15:52
-
-
Save el3um4s/fc0182eec6fe6c702bac564a23f08c62 to your computer and use it in GitHub Desktop.
MEDIUM - How To Create a Simple YouTube Player With JavaScript - 09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function getCurrentTime(iframeId) { | |
return Globals.ytPlayer[iframeId]["player"].getCurrentTime(); | |
} | |
export function getDuration(iframeId) { | |
return Globals.ytPlayer[iframeId]["player"].getDuration(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment