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
4647b62c
Commit
4647b62c
authored
Oct 16, 2013
by
jmclaus
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1314 from edx/jmclaus/bugfix_HD_control_state
Added two states to HD control: HD off - HD on
parents
fd49f092
49bd3567
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
6 deletions
+16
-6
common/lib/xmodule/xmodule/js/fixtures/video.html
+1
-1
common/lib/xmodule/xmodule/js/fixtures/video_all.html
+1
-1
common/lib/xmodule/xmodule/js/fixtures/video_yt_multiple.html
+1
-1
common/lib/xmodule/xmodule/js/src/video/05_video_quality_control.js
+12
-2
lms/templates/video.html
+1
-1
No files found.
common/lib/xmodule/xmodule/js/fixtures/video.html
View file @
4647b62c
...
...
@@ -45,7 +45,7 @@
</div>
</div>
<a
href=
"#"
class=
"add-fullscreen"
title=
"Fill browser"
role=
"button"
aria-disabled=
"false"
>
Fill Browser
</a>
<a
href=
"#"
class=
"quality_control"
title=
"HD
"
role=
"button"
aria-disabled=
"false"
>
HD
</a>
<a
href=
"#"
class=
"quality_control"
title=
"HD
off"
role=
"button"
aria-disabled=
"false"
>
HD off
</a>
<a
href=
"#"
class=
"hide-subtitles"
title=
"Turn off captions"
role=
"button"
aria-disabled=
"false"
>
Captions
</a>
</div>
</div>
...
...
common/lib/xmodule/xmodule/js/fixtures/video_all.html
View file @
4647b62c
...
...
@@ -48,7 +48,7 @@
</div>
</div>
<a
href=
"#"
class=
"add-fullscreen"
title=
"Fill browser"
role=
"button"
aria-disabled=
"false"
>
Fill Browser
</a>
<a
href=
"#"
class=
"quality_control"
title=
"HD
"
role=
"button"
aria-disabled=
"false"
>
HD
</a>
<a
href=
"#"
class=
"quality_control"
title=
"HD
off"
role=
"button"
aria-disabled=
"false"
>
HD off
</a>
<a
href=
"#"
class=
"hide-subtitles"
title=
"Turn off captions"
role=
"button"
aria-disabled=
"false"
>
Captions
</a>
</div>
</div>
...
...
common/lib/xmodule/xmodule/js/fixtures/video_yt_multiple.html
View file @
4647b62c
...
...
@@ -45,7 +45,7 @@
</div>
</div>
<a
href=
"#"
class=
"add-fullscreen"
title=
"Fill browser"
role=
"button"
aria-disabled=
"false"
>
Fill Browser
</a>
<a
href=
"#"
class=
"quality_control"
title=
"HD
"
role=
"button"
aria-disabled=
"false"
>
HD
</a>
<a
href=
"#"
class=
"quality_control"
title=
"HD
off"
role=
"button"
aria-disabled=
"false"
>
HD off
</a>
<a
href=
"#"
class=
"hide-subtitles"
title=
"Turn off captions"
role=
"button"
aria-disabled=
"false"
>
Captions
</a>
</div>
</div>
...
...
common/lib/xmodule/xmodule/js/src/video/05_video_quality_control.js
View file @
4647b62c
...
...
@@ -59,12 +59,22 @@ function () {
// ***************************************************************
function
onQualityChange
(
value
)
{
var
controlStateStr
;
this
.
videoQualityControl
.
quality
=
value
;
if
(
_
.
indexOf
(
this
.
config
.
availableQualities
,
value
)
!==
-
1
)
{
this
.
videoQualityControl
.
el
.
addClass
(
'active'
);
controlStateStr
=
gettext
(
'HD on'
);
this
.
videoQualityControl
.
el
.
addClass
(
'active'
)
.
attr
(
'title'
,
controlStateStr
)
.
text
(
controlStateStr
);
}
else
{
this
.
videoQualityControl
.
el
.
removeClass
(
'active'
);
controlStateStr
=
gettext
(
'HD off'
);
this
.
videoQualityControl
.
el
.
removeClass
(
'active'
)
.
attr
(
'title'
,
controlStateStr
)
.
text
(
controlStateStr
);
}
}
...
...
lms/templates/video.html
View file @
4647b62c
...
...
@@ -77,7 +77,7 @@
</div>
</div>
<a
href=
"#"
class=
"add-fullscreen"
title=
"${_('Fill browser')}"
role=
"button"
aria-disabled=
"false"
>
${_('Fill browser')}
</a>
<a
href=
"#"
class=
"quality_control"
title=
"${_('HD
')}"
role=
"button"
aria-disabled=
"false"
>
${_('HD
')}
</a>
<a
href=
"#"
class=
"quality_control"
title=
"${_('HD
off')}"
role=
"button"
aria-disabled=
"false"
>
${_('HD off
')}
</a>
<a
href=
"#"
class=
"hide-subtitles"
title=
"${_('Turn off captions')}"
role=
"button"
aria-disabled=
"false"
>
${_('Turn off captions')}
</a>
</div>
...
...
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