Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
11d0c0d4
Commit
11d0c0d4
authored
Sep 13, 2012
by
Carlos A. Rocha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove video controls, use default youTube controls instead
parent
27fa9a38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
16 deletions
+2
-16
common/lib/xmodule/xmodule/js/src/video/display/video_player.coffee
+2
-16
No files found.
common/lib/xmodule/xmodule/js/src/video/display/video_player.coffee
View file @
11d0c0d4
...
...
@@ -24,26 +24,12 @@ class @VideoPlayer extends Subview
@
toggleFullScreen
(
event
)
render
:
->
@
control
=
new
VideoControl
el
:
@
$
(
'.video-controls'
)
@
caption
=
new
VideoCaption
el
:
@
el
youtubeId
:
@
video
.
youtubeId
(
'1.0'
)
currentSpeed
:
@
currentSpeed
()
captionDataDir
:
@
video
.
caption_data_dir
unless
onTouchBasedDevice
()
@
volumeControl
=
new
VideoVolumeControl
el
:
@
$
(
'.secondary-controls'
)
@
speedControl
=
new
VideoSpeedControl
el
:
@
$
(
'.secondary-controls'
),
speeds
:
@
video
.
speeds
,
currentSpeed
:
@
currentSpeed
()
@
progressSlider
=
new
VideoProgressSlider
el
:
@
$
(
'.slider'
)
params
=
{
allowScriptAccess
:
"always"
};
atts
=
{
id
:
@
videoid
};
youtubeId
=
@
video
.
youtubeId
()
window
.
onYouTubePlayerReady
=
(
e
)
=>
@
player
=
document
.
getElementById
(
"
#{
@
video
.
id
}
"
)
swfobject
.
embedSWF
(
"http://www.youtube.com/apiplayer?video_id=
#{
youtubeId
}
&enablejsapi=1&version=3&playerapiid=ytplayer&controls=0"
,
@
video
.
id
,
"425"
,
"356"
,
"9"
,
null
,
null
,
params
,
atts
)
swfobject
.
embedSWF
(
"http://www.youtube.com/v/
#{
youtubeId
}
?enablejsapi=1&version=3&playerapiid=ytplayer"
,
@
video
.
id
,
"425"
,
"356"
,
"9"
,
null
,
null
,
params
,
atts
)
addToolTip
:
->
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment