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
0f6e2594
Commit
0f6e2594
authored
Jun 14, 2013
by
Valera Rozuvan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #127 from edx/anton/fix_event_tracking
Add additional events for tracking
parents
89da47a1
74426bdc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
common/lib/xmodule/xmodule/js/src/videoalpha/display/video_caption.coffee
+4
-0
common/lib/xmodule/xmodule/js/src/videoalpha/display/video_player.coffee
+6
-0
No files found.
common/lib/xmodule/xmodule/js/src/videoalpha/display/video_caption.coffee
View file @
0f6e2594
...
...
@@ -140,12 +140,16 @@ class @VideoCaptionAlpha extends SubviewAlpha
hideCaptions
:
(
hide_captions
)
=>
if
hide_captions
type
=
'hide_transcript'
@
$
(
'.hide-subtitles'
).
attr
(
'title'
,
'Turn on captions'
)
@
el
.
addClass
(
'closed'
)
else
type
=
'show_transcript'
@
$
(
'.hide-subtitles'
).
attr
(
'title'
,
'Turn off captions'
)
@
el
.
removeClass
(
'closed'
)
@
scrollCaption
()
@
video
.
log
type
,
currentTime
:
@
player
.
currentTime
$
.
cookie
(
'hide_captions'
,
hide_captions
,
expires
:
3650
,
path
:
'/'
)
captionHeight
:
->
...
...
common/lib/xmodule/xmodule/js/src/videoalpha/display/video_player.coffee
View file @
0f6e2594
...
...
@@ -45,6 +45,8 @@ class @VideoPlayerAlpha extends SubviewAlpha
if
@
video
.
show_captions
is
true
@
caption
=
new
VideoCaptionAlpha
el
:
@
el
video
:
@
video
player
:
@
youtubeId
:
@
video
.
youtubeId
(
'1.0'
)
currentSpeed
:
@
currentSpeed
()
captionAssetPath
:
@
video
.
caption_asset_path
...
...
@@ -277,11 +279,15 @@ class @VideoPlayerAlpha extends SubviewAlpha
toggleFullScreen
:
(
event
)
=>
event
.
preventDefault
()
if
@
el
.
hasClass
(
'fullscreen'
)
type
=
'not_fullscreen'
@
$
(
'.add-fullscreen'
).
attr
(
'title'
,
'Fill browser'
)
@
el
.
removeClass
(
'fullscreen'
)
else
type
=
'fullscreen'
@
el
.
addClass
(
'fullscreen'
)
@
$
(
'.add-fullscreen'
).
attr
(
'title'
,
'Exit fill browser'
)
@
video
.
log
type
,
currentTime
:
@
currentTime
if
@
video
.
show_captions
is
true
@
caption
.
resize
()
...
...
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