Created
August 27, 2022 15:49
-
-
Save el3um4s/64dc8020435eb4bd318f6cd0d6a5338e to your computer and use it in GitHub Desktop.
MEDIUM - How To Create a Simple YouTube Player With JavaScript - 05
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 playVideo(iframeId) { | |
Globals.ytPlayer[iframeId]["player"].playVideo(); | |
} | |
export function pauseVideo(iframeId) { | |
Globals.ytPlayer[iframeId]["player"].pauseVideo(); | |
} | |
export function stopVideo(iframeId) { | |
Globals.ytPlayer[iframeId]["player"].stopVideo(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment