Commit 27fa9a38 by Carlos A. Rocha

Temporary fix for youTube iframe player issues

parent 53d0a6ad
...@@ -34,17 +34,17 @@ class @VideoPlayer extends Subview ...@@ -34,17 +34,17 @@ class @VideoPlayer extends Subview
@volumeControl = new VideoVolumeControl el: @$('.secondary-controls') @volumeControl = new VideoVolumeControl el: @$('.secondary-controls')
@speedControl = new VideoSpeedControl el: @$('.secondary-controls'), speeds: @video.speeds, currentSpeed: @currentSpeed() @speedControl = new VideoSpeedControl el: @$('.secondary-controls'), speeds: @video.speeds, currentSpeed: @currentSpeed()
@progressSlider = new VideoProgressSlider el: @$('.slider') @progressSlider = new VideoProgressSlider el: @$('.slider')
@player = new YT.Player @video.id,
playerVars: params = { allowScriptAccess: "always" };
controls: 0 atts = { id: @videoid };
wmode: 'transparent' youtubeId = @video.youtubeId()
rel: 0
showinfo: 0 window.onYouTubePlayerReady = (e) =>
enablejsapi: 1 @player = document.getElementById("#{@video.id}")
videoId: @video.youtubeId()
events: swfobject.embedSWF("http://www.youtube.com/apiplayer?video_id=#{youtubeId}&enablejsapi=1&version=3&playerapiid=ytplayer&controls=0",
onReady: @onReady @video.id, "425", "356", "9", null, null, params, atts )
onStateChange: @onStateChange
addToolTip: -> addToolTip: ->
@$('.add-fullscreen, .hide-subtitles').qtip @$('.add-fullscreen, .hide-subtitles').qtip
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment