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
3f9554f2
Commit
3f9554f2
authored
Jun 26, 2012
by
Prem Sichanugrist
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #141 from MITx/ps-player-slider
Scroll the caption upon video seeking
parents
a988452d
05f4e4fb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
lms/static/coffee/spec/modules/video/video_caption_spec.coffee
+3
-0
lms/static/coffee/src/modules/video/video_caption.coffee
+1
-0
No files found.
lms/static/coffee/spec/modules/video/video_caption_spec.coffee
View file @
3f9554f2
...
...
@@ -35,6 +35,9 @@ describe 'VideoCaption', ->
it
'bind player resize event'
,
->
expect
(
$
(
@
player
)).
toHandleWith
'resize'
,
@
caption
.
onWindowResize
it
'bind player seek event'
,
->
expect
(
$
(
@
player
)).
toHandleWith
'seek'
,
@
caption
.
onUpdatePlayTime
it
'bind player updatePlayTime event'
,
->
expect
(
$
(
@
player
)).
toHandleWith
'updatePlayTime'
,
@
caption
.
onUpdatePlayTime
...
...
lms/static/coffee/src/modules/video/video_caption.coffee
View file @
3f9554f2
...
...
@@ -10,6 +10,7 @@ class @VideoCaption
$
(
window
).
bind
(
'resize'
,
@
onWindowResize
)
$
(
@
player
).
bind
(
'resize'
,
@
onWindowResize
)
$
(
@
player
).
bind
(
'updatePlayTime'
,
@
onUpdatePlayTime
)
$
(
@
player
).
bind
(
'seek'
,
@
onUpdatePlayTime
)
$
(
@
player
).
bind
(
'play'
,
@
onPlay
)
@
$
(
'.hide-subtitles'
).
click
@
toggle
@
$
(
'.subtitles'
).
mouseenter
(
@
onMouseEnter
).
mouseleave
(
@
onMouseLeave
)
...
...
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