mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
Update Vimeo embed player params
This commit is contained in:
parent
9d4c3cc163
commit
70cd8aa20d
1 changed files with 2 additions and 1 deletions
|
@ -110,6 +110,7 @@ module.exports = class LevelGuideView extends CocoView
|
|||
# https://developers.google.com/youtube/iframe_api_reference
|
||||
# TODO: Can't load a YouTube video twice in one level
|
||||
# TODO: window.onYouTubeIframeAPIReady is only called once
|
||||
# TODO: Consider ripping out YouTube support and migrating all videos to Vimeo
|
||||
|
||||
onPlayerStateChange = (e) =>
|
||||
if e.data is 1
|
||||
|
@ -153,7 +154,7 @@ module.exports = class LevelGuideView extends CocoView
|
|||
# Create Vimeo iframe player
|
||||
tag = document.createElement('iframe')
|
||||
tag.id = 'help-video-player'
|
||||
tag.src = helpVideoURL + "?api=1"
|
||||
tag.src = helpVideoURL + "?api=1&badge=0&byline=0&portrait=0&title=0"
|
||||
tag.height = @helpVideoHeight
|
||||
tag.width = @helpVideoWidth
|
||||
tag.frameborder = '0'
|
||||
|
|
Loading…
Reference in a new issue